.report-workbench{margin-bottom:22px}.financial-report-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.report-bank-choice{display:grid;gap:8px;max-width:420px}.report-workbench form{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.scenario-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.scenario-inputs label{display:grid;gap:8px;font-size:.9rem}.scenario-inputs input{width:100%;min-width:0}.report-dialog{width:min(1240px,calc(100% - 24px))}.report-sheet{color:#16324b!important;--navy:#16324b;--green:#087f8c;--muted:#435d70;--line:#ccd9e1;font-family:Arial,sans-serif}.report-sheet *{box-sizing:border-box}.report-sheet .report-summary{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))}.report-sheet .report-summary>div{background:#f0f5f8!important;border-color:#c6d6e0!important;min-width:0}.report-sheet .report-summary span{color:#40586c!important;font-size:14px}.report-sheet .report-summary strong{color:#16324b!important;font-size:19px;overflow-wrap:anywhere}.report-sheet .report-table{font-size:14px;line-height:1.4;display:table;width:100%;max-width:100%;table-layout:auto;overflow:visible;color:#16324b!important}.report-sheet .report-table th{background:#16324b!important;color:#fff!important;font-size:13px;letter-spacing:0;text-transform:none}.report-sheet .report-table td{color:#16324b!important}.report-sheet .report-table th,.report-sheet .report-table td{padding:9px 8px;overflow-wrap:anywhere}.report-sheet .report-table tbody tr:nth-child(even){background:#f1f5f8!important}.report-number{white-space:nowrap;font-variant-numeric:tabular-nums}.report-number.negative{color:#a12b37}.numeric-cell{text-align:right!important;white-space:nowrap}.report-cell-detail{display:block;font-size:12px;color:#4b6273;line-height:1.35;margin-top:4px}.bank-report-section{margin:22px 0}.bank-report-section h3{font-size:17px;color:#16324b;border-bottom:2px solid #087f8c;padding-bottom:8px;margin:0 0 12px;break-after:avoid}.bank-report-note{font-size:14px;line-height:1.5;color:#40586c;overflow-wrap:anywhere}.report-insights{margin:0;padding-left:22px;color:#16324b;font-size:14px;line-height:1.55}.report-insights li{padding:4px 0;break-inside:avoid}.report-test-warning{padding:12px 14px;border:1px solid #b27c23;background:#fff3da;color:#684300;font-weight:bold;font-size:14px;margin-bottom:16px;break-inside:avoid}.scenario-result-chart{display:grid;gap:14px}.scenario-result-chart>div{display:grid;grid-template-columns:minmax(170px,1fr) auto;gap:7px 12px;break-inside:avoid;font-size:14px}.scenario-result-chart>div>span{font-variant-numeric:tabular-nums}.scenario-bar-track{grid-column:1/-1;height:15px;background:#e5edf2;border-radius:4px;overflow:hidden}.scenario-bar-track i{display:block;height:100%;min-width:0}.scenario-bar-track .positive{background:#087f8c}.scenario-bar-track .negative{background:#ad3546}#financialPrintRoot{display:none}.report-document-footer{font-size:12px}.report-document-meta{font-size:13px!important;color:#40586c!important}.report-document-identity>span{color:#087f8c!important}.report-document-identity h2{color:#16324b!important}.report-sheet .analysis-grid .panel{background:#fff!important;color:#16324b!important;box-shadow:none;border-color:#ccd9e1!important}.report-sheet .analysis-grid strong,.report-sheet .analysis-grid h3,.report-sheet .analysis-grid span{color:#16324b!important}
@media(max-width:800px){.scenario-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.report-sheet{padding:18px 12px}.report-sheet .report-table{font-size:13px}.report-sheet .report-table th{font-size:12px}.report-sheet .report-table .report-number{white-space:normal}.report-sheet .report-document-header{grid-template-columns:90px minmax(0,1fr);gap:12px}.report-sheet .report-document-header img{width:90px;height:58px}.report-sheet .report-document-identity h2{font-size:20px}.report-dialog-actions{flex-wrap:wrap}}
@media(max-width:480px){.scenario-inputs{grid-template-columns:1fr}.financial-report-buttons{flex-direction:column}.report-sheet .report-summary{grid-template-columns:1fr 1fr}.report-sheet .report-summary strong{font-size:16px}.report-sheet .report-table td,.report-sheet .report-table th{padding:6px 4px}.report-sheet .report-cell-detail{font-size:11px}}
@media print{
 @page{size:A4 landscape;margin:12mm;@bottom-right{content:"Página " counter(page);font-family:Arial,sans-serif;font-size:9pt;color:#40586c}}
 body.printing-financial-document{margin:0!important;padding:0!important;background:#fff!important;color:#16324b!important;font-size:10pt!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 body.printing-financial-document> *:not(#financialPrintRoot){display:none!important}
 body.printing-financial-document #financialPrintRoot{display:block!important;position:static!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;background:#fff!important;color:#16324b!important}
 #financialPrintRoot .report-document-header{display:grid!important;grid-template-columns:135px minmax(0,1fr)!important;gap:20px!important;border-bottom:3px solid #087f8c!important;padding:0 0 12px!important;margin-bottom:16px!important;break-inside:avoid}
 #financialPrintRoot .report-document-header img{width:135px!important;height:66px!important;object-fit:contain!important}
 #financialPrintRoot .report-document-identity h2{font-size:20pt!important;line-height:1.15!important}
 #financialPrintRoot .report-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;break-inside:avoid}
 #financialPrintRoot .report-summary span{font-size:9pt!important}#financialPrintRoot .report-summary strong{font-size:14pt!important}
 #financialPrintRoot .report-table{display:table!important;width:100%!important;table-layout:auto!important;font-size:9pt!important;line-height:1.3!important;overflow:visible!important}
 #financialPrintRoot .report-table thead{display:table-header-group!important}#financialPrintRoot .report-table tbody{display:table-row-group!important}#financialPrintRoot .report-table tr{display:table-row!important;break-inside:avoid;page-break-inside:avoid}
 #financialPrintRoot .report-table th,#financialPrintRoot .report-table td{font-size:9pt!important;padding:7px 6px!important;overflow-wrap:anywhere!important;vertical-align:top!important}
 #financialPrintRoot .report-number{white-space:nowrap!important}#financialPrintRoot .report-cell-detail{font-size:8pt!important}
 #financialPrintRoot .bank-report-section{margin:16px 0!important;break-inside:auto}#financialPrintRoot .bank-report-section h3{font-size:12pt!important;break-after:avoid}#financialPrintRoot .report-insights,#financialPrintRoot .bank-report-note{font-size:10pt!important}
 #financialPrintRoot .report-document-footer{font-size:8pt!important;break-inside:avoid;color:#40586c!important}#financialPrintRoot .report-test-warning{font-size:10pt!important}
 #financialPrintRoot .analysis-grid{display:block!important}#financialPrintRoot .analysis-grid .panel{break-inside:avoid;margin-bottom:12px;padding:12px!important}#financialPrintRoot .analysis-track{print-color-adjust:exact}
}

/* Every field stays visible; narrow reports become labelled record cards. */
@media screen{
 .report-sheet,.report-sheet #moduleReportContent,.bank-report-section{min-width:0;max-width:100%}
 .report-sheet .report-table{table-layout:fixed;min-width:0}
 .report-sheet .report-table th,.report-sheet .report-table td,.report-sheet .numeric-cell,.report-sheet .report-number{white-space:normal;overflow-wrap:anywhere}
}
@media screen and (max-width:900px){
 .report-dialog{width:calc(100% - 16px);max-width:100%;margin:8px auto}
 .report-sheet{padding:16px 12px}
 .report-sheet #moduleReportContent{overflow:visible}
 .report-sheet .report-table,.report-sheet .report-table tbody{display:block;width:100%;min-width:0}
 .report-sheet .report-table thead,.report-sheet .report-column-headings{display:none}
 .report-sheet .report-table tr:not(.report-column-headings){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #c6d6e0;border-radius:12px;margin:0 0 12px;background:#fff!important;overflow:hidden}
 .report-sheet .report-table td{display:block;min-width:0;padding:10px;border:0;border-bottom:1px solid #e3ebf0;text-align:left!important;font-size:13px;line-height:1.45}
 .report-sheet .report-table td::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;letter-spacing:.035em;color:#526b7a;margin-bottom:4px}
 .report-sheet .report-table td:first-child,.report-sheet .report-table td.report-wide-cell{grid-column:1/-1;background:#f0f5f8;font-weight:600}
 .report-sheet .report-cell-detail{font-size:11px;margin-top:3px}
 .report-sheet .report-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .report-sheet .report-summary>div{padding:10px}
 .report-sheet .report-summary span{font-size:11px}
 .report-sheet .report-summary strong{font-size:16px}
 .report-sheet .report-document-identity h2{font-size:18px;overflow-wrap:anywhere}
 .report-sheet .report-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .report-dialog-actions button{min-width:0;white-space:normal;padding:10px;font-size:12px}
 .report-sheet .scenario-result-chart>div{grid-template-columns:minmax(0,1fr) auto}
}
@media print{.report-table td::before{display:none!important}}

/* Mobile reading layout: the dialog owns vertical scrolling, never the table. */
@media screen and (max-width:900px){
 #moduleReportDialog{box-sizing:border-box;width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow-y:auto;}
 #moduleReportDialog .report-sheet{max-height:none;overflow:visible;width:100%;min-width:0;padding:18px 14px;}
 #moduleReportDialog .report-document-header{position:relative;grid-template-columns:76px minmax(0,1fr);padding-right:28px;gap:10px;}
 #moduleReportDialog .report-document-header img{width:76px;max-width:100%;height:50px;}
 #moduleReportDialog .report-close{position:absolute;right:0;top:0;}
 #moduleReportDialog .report-document-meta{gap:6px;font-size:11px!important;overflow-wrap:anywhere;}
 #moduleReportDialog .report-document-footer{flex-wrap:wrap;font-size:11px;}
 #moduleReportDialog .report-table{display:block!important;width:100%;max-width:100%;min-width:0;overflow:visible;}
 #moduleReportDialog .report-table thead{display:none!important;}
 #moduleReportDialog .report-table tbody{display:block!important;width:100%;}
 #moduleReportDialog .report-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
 #moduleReportDialog .report-table td{display:block!important;min-width:0;white-space:normal!important;overflow-wrap:anywhere;}
 #moduleReportDialog .report-table td::before{font-size:11px;text-transform:none;letter-spacing:0;}
 #moduleReportDialog .report-table td:nth-child(2){grid-column:1/-1;}
 #moduleReportDialog .report-table td.report-empty-cell{font-weight:normal;}
 #moduleReportDialog .report-table td.report-empty-cell::before{display:none;}
 #moduleReportDialog .report-number{white-space:normal;}
 #moduleReportDialog .report-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 14px 16px;}
 #moduleReportDialog .report-dialog-actions button{width:100%;min-height:44px;font-size:13px;white-space:normal;}
 #moduleReportDialog .report-dialog-actions .primary-button{grid-column:1/-1;}
}
@media screen and (max-width:340px){
 #moduleReportDialog .report-table tbody tr{grid-template-columns:minmax(0,1fr);}
 #moduleReportDialog .report-table td{grid-column:1/-1;}
 #moduleReportDialog .report-summary{grid-template-columns:minmax(0,1fr);}
}
