/* Diseño autónomo para el informe: independiente del tema claro/oscuro. */
.mc-report {color:#172331;background:#fff;font:11px/1.45 "Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums}
.mc-report * {box-sizing:border-box}
.report-page {width:186mm;min-height:270mm;margin:0 auto;padding:0;display:flex;flex-direction:column;background:white}
.report-header {position:relative;border-top:5px solid #841c29;padding:13px 0 10px;margin-bottom:13px;border-bottom:1px solid #ccd3db}
.report-brand {display:flex;align-items:center;gap:10px;letter-spacing:1.5px;font-size:12px;color:#67131e}
.report-brand-mark {display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;background:#841c29;color:white;font-weight:800;font-size:14px;letter-spacing:0;border-radius:5px}
.report-brand-sub {display:block;font-size:8px;letter-spacing:2px;color:#687789;margin-top:2px}
.report-page-tag {position:absolute;right:0;top:21px;font-size:8px;font-weight:600;letter-spacing:1px;color:#687789}
.report-heading {margin-top:17px}
.report-eyebrow {color:#687789;font-size:8px;letter-spacing:2px;margin:0 0 3px;font-weight:700}
.report-heading h1 {font-size:27px;letter-spacing:.4px;line-height:1.1;margin:0;color:#172331;font-weight:800}
.report-study-name {margin:5px 0 0;font-size:12px;color:#677587}
.report-facts {display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 10px}
.report-fact {padding:9px 10px;background:#f3f5f7;border:1px solid #e1e5e9;border-radius:5px}
.report-fact-label {display:block;font-size:8px;color:#677587;margin-bottom:3px;text-transform:uppercase;letter-spacing:.4px}
.report-fact strong {font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.report-run-line {font-size:9px;color:#677587;margin:0 0 10px}
.report-section {margin:0 0 13px}
.report-section-title {font-size:13px;letter-spacing:.1px;margin:0 0 7px;padding-bottom:4px;border-bottom:1px solid #d6dde4;color:#172331}
.report-risk-cards {display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:8px}
.report-risk-card {padding:10px 11px;border-radius:5px;border:1px solid #dce2e8;border-top:3px solid #7c8a99;background:#f5f7f9}
.report-risk-card span {display:block;font-size:9px;color:#455466}
.report-risk-card strong {display:block;font-size:23px;margin-top:2px;line-height:1.1;color:#243444}
.report-risk-card.loss {border-top-color:#b42b36;background:#fff4f4}.report-risk-card.loss strong,.report-loss{color:#a32530}
.report-risk-card.gain {border-top-color:#238456;background:#f1faf5}.report-risk-card.gain strong,.report-gain{color:#186a43}
.report-risk-card.reference {border-top-color:#841c29}
.report-reading {font-size:10px;color:#38485b;margin:5px 0 8px;line-height:1.5}
.report-caption {font-size:10px;color:#677587;margin:5px 0;line-height:1.5}
.report-table {width:100%;border-collapse:collapse;font-size:11px;line-height:1.35;margin:4px 0 7px;table-layout:auto}
.report-table th {padding:6px 5px;text-align:right;background:#edf1f5;border-bottom:1px solid #cbd4de;color:#38485b;font-size:10px;font-weight:700;white-space:normal}
.report-table td {padding:5px;border-bottom:1px solid #e6eaf0;text-align:right;vertical-align:middle}
.report-table th:first-child,.report-table td:first-child {text-align:left}
.report-table tbody tr:nth-child(even) {background:#f8fafc}
.report-table .report-loss,.report-table .report-gain {font-weight:700}
.report-compact td {padding-top:3px;padding-bottom:3px}
.report-prob-cell {display:grid;grid-template-columns:1fr 65px;gap:9px;align-items:center;min-width:200px}
.report-prob-track {height:13px;background:#edf1f5;border-radius:3px;overflow:hidden}
.report-distribution-table .report-prob-cell {min-width:125px}
.report-prob-bar {height:100%;border-radius:3px}.report-prob-bar.loss{background:#b42b36}.report-prob-bar.gain{background:#238456}.report-prob-bar.keep{background:#778697}
.report-disclaimer {padding:10px 12px;border-left:3px solid #841c29;background:#f5f1f2;font-size:9px;line-height:1.6;color:#4c3c42;margin:10px 0}
.report-alert {background:#fff3da;border-left:3px solid #b07817;color:#7a5415;padding:8px 10px;font-size:9px;margin:8px 0}
.report-footer {margin-top:auto;padding:9px 0 0;border-top:1px solid #ccd3db;display:flex;justify-content:space-between;color:#7a8796;font-size:8px;gap:10px}
.report-facts-small .report-fact strong {font-size:10px}
.report-preview {background:#e8edf2;padding:24px}
.report-preview .report-page {padding:12mm;margin:0 auto 24px;width:210mm;min-height:297mm;box-shadow:0 3px 20px #263b5533}
@media print {
  @page {size:A4 portrait;margin:12mm}
  body:has(#mc-print-report) {margin:0!important;padding:0!important;background:#fff!important}
  #mc-print-report {display:block!important;background:white!important;color:#172331!important}
  .mc-report {print-color-adjust:exact;-webkit-print-color-adjust:exact;font-size:11px}
  .report-page {width:100%;min-height:269mm;break-after:page;margin:0;padding:0;box-shadow:none}
  .report-page:last-child {break-after:auto}
  .report-section,.report-facts,.report-risk-cards {break-inside:avoid}
  .report-table tr {break-inside:avoid}.report-table thead{display:table-header-group}
  .report-preview {padding:0;background:white}.report-preview .report-page{width:100%;min-height:269mm;padding:0;margin:0;box-shadow:none}
}
