/* AURORA CAPEX R14.5-M-R02 — shared inline visualization layer.
   All rules stay inside the reading surface; report chrome keeps its own CSS.
   SVG geometry and actual rendered label sizes are owned by the rendering app. */

.capex-r145 {
  --page: #f7f7f4;
  --surface: #f7f7f4;
  --surface-muted: #eaeee5;
  --ink: #080e1b;
  --muted: #626d77;
  --border: #d1d7d4;
  --primary: #596b53;
  --accent: #596b53;
  --c-a: #596b53;
  --c-b: #7d878a;
  --c-c: #998269;
  --c-d: #a3b097;
  --negative: #8c655e;
  --positive: #596b53;
  --warning: #806e4b;
  --axis: #a9b2ac;
  --gridline: #dce1da;
  --focus: #596b53;
  --font-body: Aurora, Arial, sans-serif;
  --radius: 0;
  --radius-sm: 0;
  --gap: 28px;
  --shadow: none;
  --viz-min-width: 640px;
}

.capex-r145 .capex-visuals,
.capex-r145 .viz-grid {
  display: block;
  width: 100%;
  min-width: 0;
}

.capex-r145 .viz-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 38px 0 44px;
  padding: 24px 0 22px;
  border: 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-body);
  scroll-margin-top: 100px;
}

.capex-r145 .viz--wide { grid-column: auto; }
.capex-r145 .viz-code { display: none; }

.capex-r145 .viz-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  margin: 0;
  color: var(--ink);
}

.capex-r145 .viz-title > div { min-width: 0; }
.capex-r145 .viz-title h3 {
  max-width: 54ch;
  margin: 0 0 9px;
  padding: 0;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.capex-r145 .viz-title p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.capex-r145 .source-anchor {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 0 7px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.capex-r145 .source-anchor:hover { text-decoration: underline; }

.capex-r145 :is(.master-controls, .scenario-bar) {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 1.4fr);
  gap: 20px 28px;
  align-items: start;
  width: 100%;
  min-width: 0;
  margin: 30px 0;
  padding: 22px 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.capex-r145 :is(.master-controls, .scenario-bar) label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.capex-r145 :is(.master-controls, .scenario-bar) select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 14px/1.5 var(--font-body);
  cursor: pointer;
}

.capex-r145 .scenario-desc strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0;
}

.capex-r145 .scenario-desc p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.capex-r145 .scenario-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 0;
  border-top: 1px solid var(--border);
}

.capex-r145 .scenario-kpis > div {
  min-width: 0;
  padding: 16px 20px 0;
  border-left: 1px solid var(--border);
}

.capex-r145 .scenario-kpis > div:first-child { padding-left: 0; border-left: 0; }
.capex-r145 .scenario-kpis small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.capex-r145 .scenario-kpis b { display: block; margin-top: 5px; color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 550; font-variant-numeric: tabular-nums; }
.capex-r145 .scenario-control { min-width: 0; }
.capex-r145 .capex-visual-context { margin-block: 34px; }
.capex-r145 .capex-visual-context :is(.master-controls, .scenario-bar) { margin: 0; }
.capex-r145 .capex-visual-context > p { max-width: 76ch; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.capex-r145 .capex-exit-group > details { margin-top: 24px; border-block: 1px solid var(--border); }
.capex-r145 .capex-exit-group > details > summary { min-height: 44px; padding: 13px 0; color: var(--accent); font-size: 14px; line-height: 1.5; cursor: pointer; }
.capex-r145 .capex-exit-group > details .viz-card { margin-block: 12px 24px; border: 0; padding-top: 12px; }

.capex-r145 .controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 17px 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.capex-r145 .controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.capex-r145 .controls select {
  width: auto;
  max-width: 100%;
  min-width: 180px;
  min-height: 44px;
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 14px/1.5 var(--font-body);
  cursor: pointer;
}

.capex-r145 .controls .check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  cursor: pointer;
}

.capex-r145 .controls input { accent-color: var(--accent); caret-color: var(--accent); }
.capex-r145 .controls input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; }
.capex-r145 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: 500 14px/1.5 var(--font-body);
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
}

.capex-r145 .btn:hover { background: var(--surface-muted); }
.capex-r145 :is(.controls, .master-controls, .scenario-bar) :disabled { opacity: .55; cursor: default; }
.capex-r145 :is(button, select, input, .btn, .source-anchor, .viz-card[tabindex]):focus {
  outline: none;
  box-shadow: none;
}
.capex-r145 :is(button, select, input, .btn, .viz-card[tabindex]):focus-visible {
  outline: none;
  box-shadow: inset 0 -3px 0 var(--accent);
}
.capex-r145 .source-anchor:focus-visible { outline: none; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.capex-r145 .controls .check:has(input:focus-visible) { box-shadow: inset 0 -3px 0 var(--accent); }

.capex-r145 .viz-render {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 190px;
}

.capex-r145 .viz-chart {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--axis) var(--surface);
}

.capex-r145 .viz-svg {
  display: block;
  width: 100%;
  max-width: none;
  min-width: var(--viz-min-width);
  height: auto;
  min-height: 200px;
  overflow: visible;
  color: var(--ink);
}

.capex-r145 .viz-svg text { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.capex-r145 .viz-svg :is(path, line) { vector-effect: non-scaling-stroke; }
.capex-r145 .render-placeholder { max-width: none; margin: 0; padding: 24px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.capex-r145 .viz-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  min-width: 0;
  margin: 2px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.capex-r145 .viz-foot > span { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.capex-r145 .viz-status { color: var(--muted); font-size: 13px; font-weight: 550; line-height: 1.6; text-align: left; white-space: normal; }
.capex-r145 .note { max-width: 76ch; margin: 18px 0 2px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.capex-r145 .note strong { color: var(--ink); font-weight: 550; }

.capex-r145 .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0;
  margin: 8px 0 20px;
  border-block: 1px solid var(--border);
}
.capex-r145 .stat { min-width: 0; padding: 17px 18px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; }
.capex-r145 .stat:first-child { padding-left: 0; }
.capex-r145 .stat:last-child { border-right: 0; padding-right: 0; }
.capex-r145 .stat small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.capex-r145 .stat strong { display: block; margin-top: 6px; color: var(--ink); font-size: 22px; line-height: 1.35; font-weight: 550; letter-spacing: -.015em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.capex-r145 .panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; min-width: 0; }
.capex-r145 .panel-grid .viz-chart { min-width: 0; }

.capex-r145 .legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; justify-content: flex-start; max-width: 100%; margin-top: 12px; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.capex-r145 .legend > span { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; }
.capex-r145 .swatch { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; margin: 0; border-radius: 0; }

.capex-r145 .data-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: 540px;
  margin-top: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--axis) var(--surface);
}

.capex-r145 .data-table { width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.capex-r145 .data-table :is(th, td) { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--ink); text-align: right; white-space: nowrap; }
.capex-r145 .data-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 550; }
.capex-r145 .data-table :is(th, td):first-child { position: sticky; left: 0; z-index: 2; padding-left: 12px; border-right: 1px solid var(--border); background: var(--surface); text-align: left; }
.capex-r145 .data-table th:first-child { z-index: 3; }
.capex-r145 .data-table :is(th, td):last-child { padding-right: 14px; }
.capex-r145 .data-table tr:hover td { background: var(--surface-muted); }
.capex-r145 .data-table .num-negative { color: var(--negative); font-weight: 550; }
.capex-r145 .data-table .num-positive { color: var(--positive); }

.capex-r145 .process-strip,
.capex-r145 .info-rail,
.capex-r145 .math-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-block: 18px; border-block: 1px solid var(--border); }
.capex-r145 .process-strip span,
.capex-r145 .info-rail > div,
.capex-r145 .math-strip > div { min-width: 0; padding: 18px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; font-size: 14px; line-height: 1.6; }
.capex-r145 :is(.process-strip, .info-rail, .math-strip) > :first-child { padding-left: 0; }
.capex-r145 :is(.process-strip, .info-rail, .math-strip) > :last-child { border-right: 0; padding-right: 0; }
.capex-r145 .info-rail :is(b, span),
.capex-r145 .math-strip strong { display: block; }
.capex-r145 .info-rail span,
.capex-r145 .math-strip { color: var(--muted); }
.capex-r145 .math-strip strong { color: var(--ink); font-size: 22px; line-height: 1.35; font-weight: 550; font-variant-numeric: tabular-nums; }

.capex-r145 .path-label { margin: 0 0 14px; color: var(--ink); font-size: 15px; line-height: 1.5; font-weight: 550; letter-spacing: 0; }
.capex-r145 .critical-lane { margin-top: 20px; padding: 18px 0; border: 0; border-block: 1px solid var(--border); border-radius: 0; }
.capex-r145 .process-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 0; }
.capex-r145 .process-flow > div { position: relative; min-width: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.capex-r145 .process-flow b { display: block; margin-top: 6px; color: var(--ink); font-size: 14px; line-height: 1.55; font-weight: 550; }
.capex-r145 .process-flow small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.capex-r145 .process-flow .open { border-top-style: dashed; }

.capex-r145 .timeline-table { display: block; width: 100%; max-width: 100%; margin-top: 22px; overflow-x: auto; overscroll-behavior-inline: contain; border-collapse: collapse; font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; scrollbar-width: thin; scrollbar-color: var(--axis) var(--surface); }
.capex-r145 .timeline-table :is(th, td) { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; white-space: nowrap; }
.capex-r145 .timeline-table th { color: var(--muted); font-size: 13px; font-weight: 550; }
.capex-r145 .timeline-table :is(th, td):first-child { padding-left: 0; }
.capex-r145 .timeline-table :is(th, td):last-child { padding-right: 0; }

.capex-r145 .finance-bridge { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 0; margin-top: 18px; border-block: 1px solid var(--border); }
.capex-r145 .finance-bridge > div { min-width: 0; padding: 17px 18px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; }
.capex-r145 .finance-bridge > div:first-child { padding-left: 0; }
.capex-r145 .finance-bridge > div:last-child { border-right: 0; padding-right: 0; }
.capex-r145 .finance-bridge small { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.capex-r145 .finance-bridge b { display: block; margin-top: 6px; font-size: 22px; line-height: 1.35; font-weight: 550; font-variant-numeric: tabular-nums; }
.capex-r145 .bridge-negative b { color: var(--negative); }

.capex-r145 .gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; min-width: 0; border-top: 1px solid var(--border); }
.capex-r145 .gate { min-width: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.capex-r145 .gate > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.capex-r145 .gate strong { min-width: 0; color: var(--ink); font-size: 14px; line-height: 1.55; font-weight: 550; }
.capex-r145 .gate p { max-width: none; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.capex-r145 .gate-type { flex: 0 0 auto; padding: 3px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.capex-r145 .gate[data-status="fixed"] .gate-type { color: var(--positive); }
.capex-r145 .gate[data-status="open"] .gate-type { color: var(--warning); }

.capex-r145 :is(.viz-chart, .data-table-wrap, .timeline-table)::-webkit-scrollbar { width: 7px; height: 7px; }
.capex-r145 :is(.viz-chart, .data-table-wrap, .timeline-table)::-webkit-scrollbar-thumb { background: var(--axis); border-radius: 4px; }
.capex-r145 :is(.viz-chart, .data-table-wrap, .timeline-table)::-webkit-scrollbar-track { background: var(--surface); }

@media (max-width: 900px) {
  .capex-r145 .panel-grid { grid-template-columns: 1fr; gap: 24px; }
  .capex-r145 .process-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capex-r145 .gates { grid-template-columns: 1fr; }
  .capex-r145 .viz-title h3 { font-size: 22px; }
}

@media (max-width: 600px) {
  .capex-r145 .viz-card { gap: 15px; margin-block: 30px 36px; padding-block: 21px 20px; scroll-margin-top: 88px; }
  .capex-r145 .viz-title { gap: 12px; }
  .capex-r145 .viz-title h3 { font-size: 21px; line-height: 1.35; }
  .capex-r145 .source-anchor { align-self: flex-start; min-width: 44px; padding-inline: 3px 0; }
  .capex-r145 :is(.master-controls, .scenario-bar) { grid-template-columns: 1fr; gap: 18px; padding-block: 20px; }
  .capex-r145 .scenario-kpis { grid-template-columns: 1fr; }
  .capex-r145 .scenario-kpis > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--border); }
  .capex-r145 .scenario-kpis > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .capex-r145 .scenario-kpis b { margin-top: 0; font-size: 20px; }
  .capex-r145 .controls { gap: 16px; padding-block: 16px; }
  .capex-r145 .controls label { width: 100%; }
  .capex-r145 .controls select { width: 100%; min-width: 0; }
  .capex-r145 .controls .check { width: auto; }
  .capex-r145 .viz-foot { flex-direction: column; gap: 8px; padding-top: 14px; }
  .capex-r145 .stat-row,
  .capex-r145 .finance-bridge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capex-r145 .stat,
  .capex-r145 .finance-bridge > div { padding: 14px 12px; border-bottom: 1px solid var(--border); }
  .capex-r145 .stat:first-child,
  .capex-r145 .finance-bridge > div:first-child { padding-left: 0; }
  .capex-r145 .stat:nth-child(even),
  .capex-r145 .finance-bridge > div:nth-child(even) { border-right: 0; padding-right: 0; }
  .capex-r145 .stat:last-child:nth-child(odd),
  .capex-r145 .finance-bridge > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; padding-left: 0; }
  .capex-r145 .stat strong,
  .capex-r145 .finance-bridge b { font-size: 20px; }
  .capex-r145 .process-strip,
  .capex-r145 .info-rail,
  .capex-r145 .math-strip { grid-template-columns: 1fr; }
  .capex-r145 .process-strip span,
  .capex-r145 .info-rail > div,
  .capex-r145 .math-strip > div { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .capex-r145 :is(.process-strip, .info-rail, .math-strip) > :last-child { border-bottom: 0; }
  .capex-r145 .process-flow { gap: 14px 20px; }
  .capex-r145 .legend { gap: 9px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .capex-r145 :is(.viz-card, .viz-card *, .master-controls, .master-controls *, .scenario-bar, .scenario-bar *) {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .capex-r145 .viz-card { margin-block: 20pt; padding-block: 12pt; break-inside: avoid; box-shadow: none; }
  .capex-r145 .viz-title h3 { font-size: 14pt; }
  .capex-r145 .viz-title p,
  .capex-r145 .note,
  .capex-r145 .viz-foot,
  .capex-r145 .viz-status { font-size: 9pt; }
  .capex-r145 .viz-chart { overflow: visible; }
  .capex-r145 .viz-svg { min-width: 0; min-height: 0; width: 100%; }
  .capex-r145 .controls,
  .capex-r145 .master-controls,
  .capex-r145 .scenario-bar,
  .capex-r145 .source-anchor { display: none; }
  .capex-r145 .panel-grid { grid-template-columns: 1fr; }
  .capex-r145 .data-table-wrap { overflow: visible; max-height: none; }
  .capex-r145 .data-table { min-width: 0; table-layout: fixed; font-size: 7pt; }
  .capex-r145 .data-table :is(th, td) { position: static; padding: 5pt; white-space: normal; overflow-wrap: anywhere; }
  .capex-r145 .timeline-table { display: table; overflow: visible; font-size: 8pt; }
  .capex-r145 .timeline-table :is(th, td) { white-space: normal; }
}
