/* One expandable financial sheet, shared by Realizado, Proyectado and R+P. */
[data-page="resultados"]{--res-navy:#153859;--res-border:#cdd9e3;--res-muted:#60758a;min-width:0;padding-bottom:24px}
main:has([data-page="resultados"]:not([hidden])){max-width:none;padding-left:18px;padding-right:18px}
[data-page="resultados"] .heading{margin-bottom:18px;gap:20px}
[data-page="resultados"] .heading p{display:block;line-height:1.6;font-size:13px;max-width:650px}
.res-year{color:#826126;background:#fff6e5;border:1px solid #e6d1a3;border-radius:6px;padding:9px 14px;white-space:nowrap;font-size:13px;font-weight:700}
.res-topbar,.res-sheet-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.res-view-tabs{display:flex;gap:4px;background:#e1e8f1;padding:4px;border-radius:7px}
.res-view-tabs button{border:0;border-radius:4px;color:#50667f;font:600 13px Arial,sans-serif;padding:10px 17px;cursor:pointer;background:transparent;min-height:44px}
.res-view-tabs button span{display:block;font-size:10px;margin-top:3px}
.res-view-tabs button[aria-pressed="true"]{background:var(--res-navy);color:white}
.res-period-control{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600;color:#526981}
.res-period-control select,.res-filters select{font:inherit;border:1px solid #c9d5e3;border-radius:5px;background:white;color:#263e5b;padding:9px 28px 9px 10px;min-height:40px;max-width:100%}
.res-layout{display:inline-flex;gap:3px;background:#e8eef4;padding:3px;border-radius:5px}
.res-layout button,.res-expand-actions button{font:600 12px Arial,sans-serif;border:1px solid transparent;border-radius:4px;padding:8px 11px;background:transparent;color:#456079;cursor:pointer;min-height:36px}
.res-layout button[aria-pressed="true"]{background:white;color:#183d65;box-shadow:0 1px 3px #18365518}
.res-layout button:disabled{opacity:.5;cursor:default}
.res-expand-actions{display:flex;gap:6px}.res-expand-actions button{background:white;border-color:var(--res-border)}
.res-workbook{background:white;border:1px solid #b9c9d7;border-radius:7px;box-shadow:0 4px 18px #15385908;overflow:hidden}
.res-workbook>summary{background:var(--res-navy);color:white;display:flex;align-items:center;gap:13px;padding:16px 18px;cursor:pointer;list-style:none}
.res-workbook>summary .res-chevron{border-color:#e8c986}
.res-workbook>summary .res-detail-label strong{font-size:18px;color:white}.res-workbook>summary small{color:#d4dfe8}
.res-workbook-total{text-align:right;font-variant-numeric:tabular-nums}.res-workbook-total>small{display:block;font-size:10px;letter-spacing:.7px;margin-bottom:5px}.res-workbook-total>strong{display:block;font-size:22px;font-weight:800;white-space:nowrap}
.res-workbook-body{min-width:0}
.res-sheet-section,.res-section{border:0;border-bottom:1px solid var(--res-border);margin:0;background:white;min-width:0}
.res-workbook-body>details:last-child{border-bottom:0}
.res-sheet-section>summary,.res-section>summary,.res-structure>summary,.res-subsection>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:12px 16px;min-height:46px}
[data-page="resultados"] summary::-webkit-details-marker{display:none}
.res-sheet-section>summary{background:#f7fafc;color:#224765;font-size:14px}
.res-sheet-section>summary>strong{flex:1;font-weight:700}
.res-sheet-section[open]>summary,.res-section[open]>summary{border-bottom:1px solid var(--res-border);background:#eaf1f7}
.res-sheet-section>summary:hover,.res-section>summary:hover,.res-structure>summary:hover,.res-subsection>summary:hover{background:#edf3f8}
.res-sheet-summary>summary{background:#e8f4ee;color:#1a614c}
.res-sheet-search>summary{background:#fbfcfd;color:#63778a;font-size:12px;min-height:36px;padding-top:8px;padding-bottom:8px}
.res-section>summary{border-left:4px solid #4d79b2;background:#f3f7fc}
.res-section-central>summary{border-left-color:#b88e3e;background:#fcf8ed}
.res-section-personal>summary{border-left-color:#9473ac;background:#f6f0fa}
.res-section-personal .res-section>summary{border-left:2px solid #c7b4d9;background:#faf7fc}
.res-detail-label{flex:1;min-width:0}.res-detail-label strong{font-size:14px;font-weight:700;color:#234565;display:block}.res-detail-label small{display:block;font-size:11px;color:var(--res-muted);margin-top:4px;line-height:1.5}
.res-detail-amount,.res-sheet-amount{font-size:17px;font-weight:800;color:#234565;white-space:nowrap;font-variant-numeric:tabular-nums}
.res-chevron{width:7px;height:7px;border-right:2px solid #678198;border-bottom:2px solid #678198;transform:rotate(-45deg);flex:0 0 auto;transition:transform .15s;margin-right:3px}
details[open]>summary>.res-chevron{transform:rotate(45deg)}
.res-sheet-body,.res-detail-body{padding:10px 12px;min-width:0}
.res-section>.res-detail-body{padding:0 0 0 18px;border-left:4px solid #e5edf5}
.res-structure,.res-subsection{border:0;border-bottom:1px solid #dce5ed;margin:0;min-width:0;background:white}
.res-structure>summary{background:#f8fafc;padding:10px 14px;min-height:42px}
.res-structure .res-detail-amount{font-size:16px}.res-structure>.res-detail-body{padding:8px 8px 8px 15px}
.res-subsection>summary{padding:10px 9px;min-height:40px}.res-subsection .res-detail-label strong{font-size:12px;color:#46627c}
.res-subsection>.res-detail-body{padding:0 6px 10px}.res-subsection:last-child,.res-structure:last-child{border-bottom:0}
.res-filters{display:grid;grid-template-columns:1fr 1fr 1.6fr;gap:12px;margin-bottom:12px}
.res-filters label{font-size:11px;font-weight:600;color:#63788e;display:flex;flex-direction:column;gap:6px;min-width:0}.res-filters select{width:100%;font-size:12px}
.res-formula-toggle{display:inline-flex;gap:8px;align-items:center;font-size:12px;color:#566f85;cursor:pointer}.res-formula-toggle input{accent-color:#1c597c;width:16px;height:16px;margin:0}
.res-table-scroll{overflow:auto;max-width:100%;min-width:0;scrollbar-color:#a9bdcf #f2f5f9;scrollbar-width:thin}
.res-table-scroll:focus-visible{outline:2px solid #648db5;outline-offset:-2px}
.res-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed;background:white}
.res-table .res-label-col{width:220px}.res-table .res-accum-width{width:135px}.res-table .res-base-width{width:90px}
.res-table thead th{font-size:11px;font-weight:700;color:#536e86;background:#eaf0f5;text-align:right;padding:9px 6px;white-space:nowrap}
.res-table th,.res-table td{border:1px solid var(--res-border);padding:8px 6px;line-height:1.4}
.res-table tbody th{font-size:12px;background:white;text-align:left;font-weight:500;color:#35506b;white-space:normal}
.res-table thead th:first-child{text-align:left}.res-table tbody td{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;color:#28445f}
.res-table .res-total-col{background:#edf3f8;font-size:14px;font-weight:800;border-left:2px solid #b6c8d7}
.res-table .res-budget-col{background:#faf7ef;color:#80652c}
.res-table-monthly{min-width:1510px}.res-table-monthly .res-label-col{width:190px}.res-table-monthly .res-accum-width{width:125px}
.res-table-monthly th:first-child{position:sticky;left:0;z-index:1;border-right:2px solid #b6c8d7}
.res-table-monthly .res-total-col{position:sticky;right:0;z-index:1}
.res-table .res-row-subtotal>*,.res-table .res-row-result>*{background:#e8f0f7;font-size:14px;font-weight:800;color:#1f466c;border-top:2px solid #aec4d7}
.res-table .res-row-final>*{background:#dcefe4;color:#175f47;font-size:16px;font-weight:800;border-top:2px solid #91baa3;padding-top:11px;padding-bottom:11px}
.res-table .res-row-final .res-total-col{background:#cce5d7;font-size:17px}
.res-table .res-row-subtotal .res-total-col,.res-table .res-row-result .res-total-col{background:#dce8f3;font-size:15px}
.res-table .res-highlight>*{background:#fff3ce;box-shadow:inset 0 2px #dab456,inset 0 -2px #dab456}
.res-row-toggle{display:flex;gap:7px;width:100%;align-items:flex-start;padding:0;border:0;background:none;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:pointer}
.res-row-toggle>span:first-child{color:#206a83;font-size:14px;min-width:12px;font-weight:700}.res-row-toggle:hover .res-concept-name{text-decoration:underline}
.res-table .res-inline-detail>td{padding:10px;background:#f4f8fc;white-space:normal;text-align:left}
.res-inline-block{min-width:0}.res-inline-block .res-table{margin:0}
.res-number{font-variant-numeric:tabular-nums}.res-value-prefix,.res-value-suffix{font-size:.8em;font-weight:600;letter-spacing:0}.res-value-number{white-space:nowrap}
.res-table-monthly .res-value-prefix,.res-table-monthly .res-value-suffix{display:block;font-size:10px;line-height:1.35}
.res-table-monthly .res-number{display:inline-block;vertical-align:middle}
.res-negative{color:#ad3448!important}.res-muted{color:#8493a2;font-size:11px}
.res-open-link{display:inline-flex;align-items:center;gap:10px;border:0;background:none;padding:4px 0;color:#215d91;font:600 13px Arial,sans-serif;cursor:pointer;text-align:left}
.res-overview{margin:8px 0}.res-overview th:first-child{width:23%}
.res-source-note,.res-inline-note,.res-block-formula,.res-detail-note{font-size:11px;line-height:1.7;color:#667d92;margin:10px 0}
.res-inline-note,.res-block-formula{padding:6px 9px;background:#f5f8fb}.res-formula{display:block;color:#74834f;font-size:10px;font-weight:400;margin-top:5px}
.res-margin-note{padding:10px 0;margin:0;font-size:11px;color:#60758a;line-height:1.7}.res-margin-note strong{color:#345773}
.res-volume-issues{padding:9px 11px;background:#fff6dc;border:1px solid #e4ce8b;font-size:11px;line-height:1.7;color:#75591f}.res-volume-issues:empty{display:none}
.res-status{font-size:11px;color:#718498;margin:10px 2px}
.res-records{max-height:360px;overflow:auto;margin:8px 0;background:white}.res-record-table{min-width:620px}
.res-record-table th,.res-record-table td{white-space:normal;overflow-wrap:anywhere}.res-record-table th:first-child{width:90px}.res-record-table th:nth-last-child(-n+2){width:100px}
.res-record-table td{text-align:left}.res-record-table td:nth-last-child(-n+2){text-align:right}.res-record-table td small{display:block;color:#738093;font-size:10px;margin-top:4px}.res-record-table a{color:#1b638c}
.res-sim-controls{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap}.res-sim-controls fieldset{padding:0;border:0;margin:0;min-width:0}.res-sim-controls legend{font-size:12px;color:#3b6759;font-weight:600}
.res-sim-plants{display:flex;gap:7px;margin-top:9px;flex-wrap:wrap}.res-sim-plants label{display:flex;gap:7px;align-items:center;font-size:13px;border:1px solid #c5d6d0;background:white;color:#7c8d87;border-radius:5px;padding:9px;cursor:pointer}.res-sim-plants label.is-active{background:#e0f0e8;color:#235b46;border-color:#9bc6b3}.res-sim-plants input{accent-color:#287359;width:16px;height:16px;margin:0}
#res-sim-reset{border:1px solid #bdd2c9;background:white;color:#3f6c5b;padding:10px 13px;border-radius:5px;cursor:pointer;font:600 12px Arial,sans-serif}
.res-sim-status{font-size:12px;color:#386e5b;margin:14px 0;font-weight:600}.res-sim-impact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.res-sim-impact article{padding:12px;background:#f3f8f5;border:1px solid #d6e4de}.res-sim-impact article>span{display:block;font-size:11px;line-height:1.6;color:#667f74}.res-sim-impact article strong{display:block;font-size:20px;color:#215b47;margin-top:8px}
.res-comparison{min-width:560px}.res-comparison th:first-child{width:34%}.res-sim-assumptions{font-size:11px;line-height:1.8;color:#688075;margin:12px 0 0}
.res-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.res-error{padding:20px;background:#fff2e9;border:1px solid #e5bc95;color:#853d27}
[data-page="resultados"] summary:focus-visible,[data-page="resultados"] select:focus-visible,[data-page="resultados"] button:focus-visible{outline:3px solid #d7aa54;outline-offset:-2px}
@media(max-width:900px){.res-filters{grid-template-columns:1fr}.res-detail-amount,.res-sheet-amount{font-size:15px}.res-workbook-total>strong{font-size:19px}}
@media(max-width:700px){[data-page="resultados"] .heading{margin-bottom:12px}.res-year{font-size:11px;padding:7px}.res-view-tabs{width:100%}.res-view-tabs button{flex:1;padding:8px 6px;font-size:11px}.res-view-tabs button span{font-size:9px}.res-period-control{width:100%;justify-content:space-between}.res-workbook>summary{flex-wrap:wrap;padding:12px}.res-workbook>summary .res-detail-label strong{font-size:16px}.res-workbook-total{margin-left:22px;text-align:left;flex-basis:100%}.res-workbook-total>small{display:inline-block;margin-right:8px}.res-workbook-total>strong{display:inline-block;font-size:20px}.res-sheet-section>summary,.res-section>summary{padding:11px 9px;gap:9px;flex-wrap:wrap}.res-detail-label,.res-sheet-section>summary>strong{flex:1;min-width:55%}.res-detail-amount,.res-sheet-amount{margin-left:19px;font-size:15px}.res-sheet-body{padding:8px 6px}.res-section>.res-detail-body{padding-left:7px}.res-structure>.res-detail-body{padding:6px 3px 6px 7px}.res-structure>summary{flex-wrap:wrap;padding:10px 8px}.res-subsection>summary{flex-wrap:wrap}.res-sim-impact{grid-template-columns:1fr}.res-expand-actions button,.res-layout button{font-size:11px;padding:8px}.res-sheet-tools{gap:6px}}
@media(prefers-reduced-motion:reduce){.res-chevron{transition:none}}

/* Monthly amounts stay visible on collapsed menu rows; analyses have their own frame. */
.res-analysis{margin-top:22px}.res-analysis>summary{background:#365b6d}
.res-sheet-search{margin:0 0 12px;border:1px solid var(--res-border);border-radius:5px}
.res-mother-scroll{overflow:auto;max-width:100%;scrollbar-color:#a9bdcf #f2f5f9;scrollbar-width:thin}
.res-main-grid{--res-columns:minmax(230px,1fr) 145px;width:100%}
.res-main-grid.is-monthly{--res-columns:230px repeat(12,minmax(95px,1fr)) 145px;min-width:1515px}
.res-main-grid .res-summary-grid{display:grid;grid-template-columns:var(--res-columns);align-items:stretch;gap:0;padding:0;border-left:0;min-height:39px;font-size:12px}
.res-summary-grid>span{padding:6px 5px;min-width:0;border-right:1px solid #d4dfe7}
.res-menu-label{display:flex;align-items:center;gap:8px;position:sticky;left:0;z-index:2;background:#f3f7fb;padding-left:12px!important;line-height:1.3;text-align:left}
.res-menu-label strong{font-size:13px;font-weight:750;color:#24445f}
.res-main-grid .res-menu-value{text-align:right;font-variant-numeric:tabular-nums;font-weight:650;background:inherit;align-content:center;white-space:nowrap;line-height:1.2}
.res-menu-value .res-value-prefix{display:block;font-size:9px;line-height:1.1}.res-menu-value .res-value-number{font-size:12px}
.res-menu-value.res-menu-total{position:sticky;right:0;z-index:2;border-left:2px solid #b3c6d5;background:#e4edf5;font-weight:800}
.res-menu-total .res-value-number{font-size:14px}
.res-month-head{background:#e6edf4;color:#45627b;font-weight:700;border-bottom:1px solid #b6c8d7}
.res-month-head>span{text-align:center;align-content:center}.res-month-head>span:first-child{position:sticky;left:0;z-index:3;background:#e6edf4;text-align:left;padding-left:12px}.res-month-head>span:last-child{position:sticky;right:0;z-index:3;background:#dce7f1}
.res-main-grid details[open]>summary .res-menu-label>.res-chevron{transform:rotate(45deg)}
.res-main-grid .res-section>.res-detail-body,.res-main-grid .res-structure>.res-detail-body{padding:0;border-left:0}
.res-main-grid .res-structure>summary .res-menu-label{padding-left:28px!important;background:#fbfcfd}
.res-main-grid .res-section-personal .res-section>summary .res-menu-label{padding-left:28px!important;background:#f8f3fc}
.res-main-grid .res-section-central>summary .res-menu-label{background:#fcf7e9}
.res-main-grid .res-section-personal>summary .res-menu-label{background:#f3eaf8}
.res-main-grid .res-sheet-summary>summary .res-menu-label{background:#e8f4ee}
.res-main-grid .res-sheet-billing>summary .res-menu-label{background:#e9f2fb}
.res-main-grid .res-sheet-body{padding:6px 0}
.res-main-grid .res-structure .res-table{margin:0}
.res-main-grid .res-table .res-label-col{width:230px}.res-main-grid .res-table .res-accum-width{width:145px}
.res-main-grid .res-table th,.res-main-grid .res-table td{padding:4px 5px;font-size:11px;line-height:1.25}
.res-main-grid .res-table .res-row-subtotal>*,.res-main-grid .res-table .res-row-result>*{font-size:13px;font-weight:800}
.res-main-grid .res-table .res-row-final>*{font-size:14px;font-weight:800}
.res-main-grid .res-table-monthly .res-value-prefix,.res-main-grid .res-table-monthly .res-value-suffix{font-size:9px;line-height:1.1}
.res-main-grid .res-inline-note,.res-main-grid .res-source-note,.res-main-grid .res-margin-note{margin:5px 10px;padding:3px 0}
.res-master-final{background:#dcefe4;border-top:2px solid #91baa3;color:#175f47}
.res-master-final .res-menu-label{background:#dcefe4}.res-master-final .res-menu-label strong{font-weight:850;color:#175f47}
.res-master-final .res-menu-value{font-weight:850}.res-master-final .res-menu-value .res-value-number{font-size:14px}.res-master-final .res-menu-total{background:#cce5d7}.res-master-final .res-menu-total .res-value-number{font-size:15px}
.res-inline-label{font-size:12px;font-weight:700;color:#355873;margin:10px 3px 6px}
.res-main-grid .res-inline-block{margin-bottom:10px}
.res-main-grid .res-subsection{margin:0 8px}.res-main-grid .res-structure>summary{border-top:1px solid #dce5ed}
.res-analysis .res-sheet-body{padding:8px}.res-analysis .res-structure>.res-detail-body{padding:5px}
.res-sim-impact{gap:6px;margin-bottom:10px}.res-sim-impact article{padding:8px 10px}.res-sim-impact article strong{font-size:17px;margin-top:4px}
@media(max-width:700px){.res-main-grid.is-total{--res-columns:minmax(165px,1fr) 125px}.res-main-grid .res-menu-label{min-width:0}.res-main-grid .res-summary-grid{min-height:40px}.res-main-grid .res-menu-label strong{font-size:12px}.res-menu-value.res-menu-total{margin:0}.res-analysis{margin-top:16px}}

/* Calculation help remains available on hover, keyboard focus and touch. */
.res-ratio-help{appearance:none;border:0;border-bottom:1px dotted #69859a;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;padding:0;cursor:help;white-space:normal}
.res-ratio-help:hover,.res-ratio-help:focus-visible{color:#175f72;border-bottom-color:currentColor;outline:2px solid #a7c7d5;outline-offset:3px;border-radius:2px}
.res-calculation-tooltip{position:fixed;z-index:1000;max-width:min(380px,calc(100vw - 16px));box-sizing:border-box;padding:13px 16px;border:1px solid #648499;border-radius:8px;background:#183c50;color:#fff;font:13px/1.6 Arial,sans-serif;box-shadow:0 6px 24px #19394b33;white-space:normal}
.res-calculation-tooltip[hidden]{display:none}

/* Income statement: income, deductions and intermediate results in reading order. */
.res-main-grid .res-operation{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px;border-radius:5px;font-size:17px;font-weight:750;line-height:1;background:#e5edf4;color:#48647a}
.res-main-grid .res-operation-plus{background:#e1f0e9;color:#237253}
.res-main-grid .res-operation-minus{background:#f8eadc;color:#92602b}
.res-main-grid .res-operation-equals{background:#dce8f1;color:#234d70}
.res-main-grid .res-waterfall-income>summary{min-height:51px;background:#f6faf8}
.res-main-grid .res-waterfall-income>summary>.res-menu-label{background:#f6faf8}
.res-main-grid .res-waterfall-expense>summary{min-height:51px;background:#fffdf9}
.res-main-grid .res-waterfall-expense>summary>.res-menu-label{background:#fffdf9}
.res-main-grid .res-waterfall-result{background:#eaf1f7;color:#234d70;border-top:1px solid #afc3d2;border-bottom:1px solid #afc3d2}
.res-main-grid .res-waterfall-result.res-summary-grid,.res-main-grid .res-waterfall-result>summary{min-height:53px;background:#eaf1f7}
.res-main-grid .res-waterfall-result>.res-menu-label,.res-main-grid .res-waterfall-result>summary>.res-menu-label{background:#eaf1f7}
.res-main-grid .res-waterfall-result .res-menu-value{font-weight:800}
.res-main-grid .res-gross-result>.res-menu-label{padding-left:32px!important}
.res-main-grid .res-master-final{min-height:60px;margin-top:0;background:#d9eee2;border-top:3px solid #729e89}
.res-main-grid .res-master-final>.res-menu-label{background:#d9eee2;padding-left:32px!important}
.res-main-grid .res-master-final .res-operation-equals{background:#1d6247;color:white}
.res-main-grid .res-master-final .res-menu-value{background:#d9eee2}
.res-main-grid .res-master-final .res-menu-total{background:#c5e2d2}
.res-main-grid .res-detail-body .res-summary-grid{min-height:39px}
.res-main-grid .res-detail-body .res-menu-label{padding-left:32px!important}
.res-main-grid .res-label-text{min-width:0;display:block}.res-main-grid .res-label-text small{display:block;font-size:10px;letter-spacing:.5px;font-weight:500;color:#5c778b;margin-top:3px}

.res-expense-amount{display:block;width:100%;padding:5px 2px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;text-align:right;cursor:pointer}
.res-expense-amount:hover,.res-expense-amount[aria-expanded="true"]{background:#dcebf7;box-shadow:inset 0 -2px #337a9c}
.res-expense-amount:focus-visible{outline:2px solid #337a9c;outline-offset:1px}
.res-expense-detail-heading{margin:0 0 8px;font-size:12px;font-weight:700;color:#234862}
