/* ==========================================================================
   AURORA HQ – Презентационный меморандум CAPEX (Deck Mode)
   Стили исполнительного дашборда, таймлайна капитала и двухколоночной сетки
   ========================================================================== */

:root {
  --deck-accent: #2e5c3e;
  --deck-accent-light: #eaf3ed;
  --deck-accent-border: #9ec5aa;
  --deck-gold: #b37d2e;
  --deck-gold-light: #fbf5ea;
  --deck-gold-border: #dfc498;
  --deck-dark: #121d17;
  --deck-card-bg: #ffffff;
  --deck-card-border: #d4ded7;
  --deck-radius: 10px;
}

/* 1. Заглавная плашка меморандума */
.deck-memo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--deck-accent-light);
  border: 1px solid var(--deck-accent-border);
  color: var(--deck-accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* 1.1. Заголовки разделов и вопросов инвестора */
.deck-hero > h2,
.experiment-proof-block > h2,
.deck-block > h2 {
  max-width: 100% !important;
  text-wrap: wrap !important;
  border-top: none !important;
  padding-top: 0 !important;
}

@media (min-width: 1200px) {
  #strategy-answer > h2 {
    white-space: nowrap;
  }
}

/* 2. Сетка ключевых KPI (Executive Dashboard) */
.deck-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

@media (max-width: 1024px) {
  .deck-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .deck-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.deck-kpi-card {
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-card-border);
  border-radius: var(--deck-radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(18, 29, 23, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

a.deck-kpi-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.deck-kpi-card:focus-visible {
  outline: 2px solid var(--deck-accent);
  outline-offset: 2px;
}

.deck-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 29, 23, 0.08);
}

.deck-kpi-card.is-primary {
  border-top: 4px solid var(--deck-accent);
}

.deck-kpi-card.is-gold {
  border-top: 4px solid var(--deck-gold);
}

.deck-kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.deck-kpi-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #63768a);
}

.deck-kpi-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--wash, #f0f4f1);
  color: var(--deck-accent);
}

.deck-kpi-card.is-gold .deck-kpi-badge {
  background: var(--deck-gold-light);
  color: var(--deck-gold);
}

.deck-kpi-val {
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--deck-dark);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.deck-kpi-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1c2826);
  margin-bottom: 6px;
}

.deck-kpi-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #53606b);
  margin: 0;
}

.deck-kpi-link-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--deck-accent);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.deck-kpi-card.is-gold .deck-kpi-link-hint {
  color: var(--deck-gold);
}

.deck-kpi-card:hover .deck-kpi-link-hint {
  opacity: 1;
  transform: translateY(2px);
}

/* 2.1 Подсветка целевых строк в матрице параметров */
.strategy-matrix tr[id^="matrix-row-"] {
  scroll-margin-top: 100px;
  transition: background-color 0.4s ease, outline 0.4s ease;
}

/* tr:target removed to prevent sticky highlighting */

.strategy-matrix tr.profit-row td {
  font-weight: 650;
  color: var(--deck-accent);
  background: rgba(46, 92, 62, 0.05);
}

.strategy-matrix tr.return-row:target {
  background: rgba(179, 125, 46, 0.18) !important;
  outline: 2px solid var(--deck-gold);
}

/* 2.2 Заголовок сводной матрицы параметров */
#capex-answer-matrix-card h3 {
  font-size: clamp(16px, 1.25vw, 20px) !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  #capex-answer-matrix-card h3 {
    white-space: normal !important;
  }
}

/* 3. Горизонтальный таймлайн капитала (Capital Flow Timeline) */
.deck-timeline-wrap {
  background: #ffffff;
  border: 1px solid var(--deck-card-border);
  border-radius: var(--deck-radius);
  padding: 24px 26px 28px;
  margin: 32px 0;
  box-shadow: 0 2px 12px rgba(18, 29, 23, 0.04);
}

.deck-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.deck-timeline-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--deck-dark);
}

.deck-timeline-subtitle {
  font-size: 13.5px;
  color: var(--muted);
}

/* 3.1 Полосы макро-фаз проекта */
.deck-timeline-phases {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.deck-phase-band {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-phase-band.is-build {
  background: rgba(26, 92, 56, 0.07);
  color: var(--deck-accent);
  border: 1px solid rgba(26, 92, 56, 0.2);
  border-left: 3px solid var(--deck-accent);
}

.deck-phase-band.is-exit {
  background: rgba(179, 125, 46, 0.09);
  color: var(--deck-gold);
  border: 1px solid rgba(179, 125, 46, 0.25);
  border-left: 3px solid var(--deck-gold);
}

/* 3.2 Сквозная хронологическая ось времени */
.deck-timeline-axis-wrap {
  position: relative;
  margin-top: 10px;
}

.deck-timeline-track {
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(to right, var(--deck-accent) 0%, var(--deck-accent) 72%, var(--deck-gold) 90%, var(--deck-gold) 100%);
  z-index: 1;
  border-radius: 2px;
}

.deck-timeline-track::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  border-left: 9px solid var(--deck-gold);
}

.deck-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}

.deck-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  position: relative;
}

/* 3.3 Маркер-узел вехи на оси */
.deck-timeline-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--deck-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px #ffffff, 0 2px 8px rgba(18, 29, 23, 0.08);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  z-index: 3;
  cursor: default;
  position: relative;
}

.deck-timeline-node::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: var(--deck-accent);
}

.deck-timeline-node.is-gold::after {
  background: var(--deck-gold);
}

.deck-timeline-node:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px #ffffff, 0 4px 14px rgba(26, 92, 56, 0.22);
}

.deck-node-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--deck-accent);
  letter-spacing: -0.02em;
}

.deck-timeline-node.is-gold {
  border-color: var(--deck-gold);
  box-shadow: 0 0 0 4px #ffffff, 0 0 10px rgba(179, 125, 46, 0.35);
}

.deck-timeline-node.is-gold .deck-node-num {
  color: var(--deck-gold);
}

.deck-timeline-node.is-gold:hover {
  box-shadow: 0 0 0 4px #ffffff, 0 4px 16px rgba(179, 125, 46, 0.4);
}

/* 3.4 Хронологическая колонка вехи под осью (без замкнутых рамок-плиток) */
.deck-timeline-content {
  width: 100%;
  background: transparent;
  border: none;
  border-top: 2px solid rgba(26, 92, 56, 0.25);
  border-radius: 0;
  padding: 10px 4px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.deck-timeline-step.is-highlight .deck-timeline-content {
  background: transparent;
  border-top-color: var(--deck-accent);
}

.deck-timeline-step.is-exit .deck-timeline-content {
  background: transparent;
  border-top-color: var(--deck-gold);
}

.deck-timeline-date {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.deck-timeline-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--deck-dark);
  margin-bottom: 6px;
  line-height: 1.25;
}

.deck-timeline-metric {
  font-size: 11px;
  font-weight: 700;
  color: var(--deck-accent);
  background: rgba(26, 92, 56, 0.09);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}

.deck-timeline-step.is-exit .deck-timeline-metric {
  color: var(--deck-gold);
  background: rgba(179, 125, 46, 0.14);
}

.deck-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.deck-timeline-list li {
  font-size: 11.5px !important;
  line-height: 1.4 !important;
  color: #3a4b41;
  margin: 0 !important;
  padding-left: 11px !important;
  position: relative;
}

.deck-timeline-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--deck-accent);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
}

.deck-timeline-step.is-exit .deck-timeline-list li::before {
  color: var(--deck-gold);
}

/* 3.5 Адаптивность для экранов до 960px */
@media (max-width: 960px) {
  .deck-timeline-phases {
    grid-template-columns: 1fr;
  }
  
  .deck-timeline-track {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--deck-accent) 0%, var(--deck-accent) 70%, var(--deck-gold) 100%);
  }

  .deck-timeline-track::after {
    right: auto;
    left: -4px;
    top: auto;
    bottom: -8px;
    border-left: 5.5px solid transparent;
    border-right: 5.5px solid transparent;
    border-top: 9px solid var(--deck-gold);
    border-bottom: 0;
  }

  .deck-timeline {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 56px;
  }

  .deck-timeline-step {
    align-items: flex-start;
    position: relative;
  }

  .deck-timeline-node {
    position: absolute;
    left: -56px;
    top: 10px;
    margin-bottom: 0;
  }

  .deck-timeline-node::after {
    display: none;
  }

  .deck-timeline-content {
    border-top: none;
    border-left: 2px solid rgba(26, 92, 56, 0.25);
    padding: 2px 0 2px 12px;
  }

  .deck-timeline-step.is-highlight .deck-timeline-content {
    border-left-color: var(--deck-accent);
  }

  .deck-timeline-step.is-exit .deck-timeline-content {
    border-left-color: var(--deck-gold);
  }
}

.deck-status-under-review {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  color: #935a16;
  background: #fbf0dc;
  border: 1px solid #ecc98f;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px;
  line-height: 1.3;
}

.deck-proof-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: var(--deck-accent-border);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.deck-proof-link:hover {
  color: var(--deck-accent);
  text-decoration-style: solid;
  text-decoration-color: var(--deck-accent);
}

.deck-balance-warning {
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: #fff8eb;
  border: 1px solid #ebd4a8;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #7d5218;
}

/* 4. Баланс сделки (Deal Balance: Вход vs Выход) */
.deck-deal-balance {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 16px;
  margin: 32px 0 44px;
}

.deck-balance-card {
  background: #ffffff;
  border: 1px solid var(--deck-card-border);
  border-radius: var(--deck-radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(18, 29, 23, 0.03);
}

.deck-balance-card.is-input {
  border-left: 5px solid #4a6b57;
}

.deck-balance-card.is-output {
  border-left: 5px solid var(--deck-gold);
}

.deck-balance-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}

.deck-balance-val {
  font-size: 34px;
  font-weight: 700;
  color: var(--deck-dark);
  margin-bottom: 6px;
}

.deck-balance-subval {
  font-size: 14px;
  font-weight: 600;
  color: var(--deck-accent);
  margin-bottom: 16px;
}

.deck-balance-card.is-output .deck-balance-subval {
  color: var(--deck-gold);
}

.deck-balance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deck-balance-list li {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.deck-balance-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.deck-balance-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.deck-bridge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wash, #eff3ee);
  border: 1px solid var(--deck-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deck-accent);
  margin-bottom: 6px;
}

.deck-bridge-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

/* 5. Двухколоночный презентационный каркас (Two-Column Deck Layout) */
.deck-section {
  margin: 54px 0;
  padding-top: 34px;
  border-top: 1px solid #ced6d3;
}

.deck-section-head {
  margin-bottom: 24px;
}

.deck-section-num {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deck-accent);
  margin-bottom: 6px;
}

.deck-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--deck-dark);
  margin: 0 0 10px;
  line-height: 1.25;
}

.deck-section-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.55;
  margin: 0;
}

.deck-two-col {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 58%);
  gap: 32px;
  align-items: start;
}

.deck-speaker-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.deck-speaker-card {
  background: #ffffff;
  border: 1px solid var(--deck-card-border);
  border-radius: var(--deck-radius);
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(18, 29, 23, 0.02);
}

.deck-speaker-thesis {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--deck-dark);
  margin: 0 0 12px;
}

.deck-speaker-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.deck-speaker-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.deck-visual-col {
  background: #ffffff;
  border: 1px solid var(--deck-card-border);
  border-radius: var(--deck-radius);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(18, 29, 23, 0.03);
}

/* 6. Адаптивность для мобильных и планшетов */
@media (max-width: 960px) {
  .deck-timeline {
    grid-template-columns: 1fr;
  }
  
  .deck-deal-balance {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .deck-balance-bridge {
    display: none;
  }
  
  .deck-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 7. Коллапсируемые спойлеры для 60-месячных регистров (D-08, D-09) */
.capex-spoiler-details {
  margin: 16px 0 24px;
  border: 1px solid var(--deck-card-border);
  border-radius: var(--deck-radius);
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.capex-spoiler-details[open] {
  box-shadow: 0 4px 14px rgba(18, 29, 23, 0.05);
}

.capex-spoiler-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--deck-accent-light);
  color: var(--deck-accent);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.capex-spoiler-summary:hover {
  background: #deeee2;
}

.capex-spoiler-body {
  padding: 12px 14px;
  background: #ffffff;
  overflow-x: auto;
}

.capex-spoiler-body .capex-table-scroll {
  margin: 0;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.capex-spoiler-body table {
  width: 100%;
  font-size: 11.5px !important;
  line-height: 1.35;
  border-collapse: collapse;
}

/* Компактное масштабирование помесячных 60-месячных регистров (12–15 колонок) */
.capex-spoiler-body .capex-table-register {
  min-width: 1120px;
  max-width: 100%;
  font-size: 11.5px !important;
}

.capex-spoiler-body .capex-table-register thead th {
  padding: 8px 8px !important;
  font-size: 11.5px !important;
  font-weight: 600;
  line-height: 1.25;
  vertical-align: middle;
  white-space: nowrap !important; /* Полное исключение смещения и наложения колонок */
  color: var(--muted, #53606b);
  background: #f7f9f7;
  border-right: 1px solid #e2e8e3;
  border-top: 1px solid #c2cdc5;
  border-bottom: 2px solid #a9b7ab;
  text-align: right;
}

.capex-spoiler-body .capex-table-register tbody th,
.capex-spoiler-body .capex-table-register tbody td {
  padding: 5px 8px !important;
  font-size: 11.5px !important;
  line-height: 1.35;
  white-space: nowrap !important;
  border-right: 1px solid #edf1ee;
  border-bottom: 1px solid #e2e8e3;
  text-align: right;
}

/* Первый столбец (Месяц / Дата) - строго зафиксирован */
.capex-spoiler-body .capex-table-register :is(th, td):first-child {
  position: sticky;
  left: 0;
  background: #ffffff;
  min-width: 80px;
  padding-left: 10px !important;
  padding-right: 10px !important;
  text-align: left;
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
  border-right: 1px solid #d4ded6;
}

.capex-spoiler-body .capex-table-register thead th:first-child {
  z-index: 3;
  background: #edf2ee;
  text-align: left;
}

/* Сценарные таблицы (Таблица 57, Таблица 63) */
.capex-spoiler-body .capex-table-wide {
  min-width: 820px;
  font-size: 12px !important;
}

.capex-spoiler-body .capex-table-wide thead th {
  padding: 8px 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  background: #f7f9f7;
  border-right: 1px solid #e2e8e3;
}

.capex-spoiler-body .capex-table-wide :is(th, td) {
  padding: 6px 10px !important;
  font-size: 12px !important;
  border-right: 1px solid #edf1ee;
  border-bottom: 1px solid #e2e8e3;
}

.capex-spoiler-body .capex-table-medium,
.capex-spoiler-body .capex-table-compact {
  min-width: 100%;
  font-size: 12px !important;
}

.capex-spoiler-body .capex-table-compact :is(th, td) {
  padding: 6px 8px !important;
}

/* Интерактивная дата-таблица виджета V15 */
.data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 12px 0 16px;
  scrollbar-width: thin;
}

.data-table {
  min-width: 960px;
  width: 100%;
  font-size: 11.5px !important;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 8px 8px !important;
  font-size: 11.5px !important;
  font-weight: 600;
  white-space: nowrap !important;
  background: #f7f9f7;
  border-right: 1px solid #e2e8e3;
  border-top: 1px solid #c2cdc5;
  border-bottom: 2px solid #a9b7ab;
  text-align: right;
}

.data-table tbody td {
  padding: 5px 8px !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
  border-right: 1px solid #edf1ee;
  border-bottom: 1px solid #e2e8e3;
  text-align: right;
}

.data-table :is(th, td):first-child {
  position: sticky;
  left: 0;
  background: #ffffff;
  min-width: 80px;
  padding-left: 10px !important;
  text-align: left;
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
  border-right: 1px solid #d4ded6;
}

.data-table thead th:first-child {
  z-index: 3;
  background: #edf2ee;
}

.capex-spoiler-chevron {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  stroke: var(--deck-accent, #1a5c38);
}

.capex-spoiler-details[open] > .capex-spoiler-summary .capex-spoiler-chevron {
  transform: rotate(180deg);
}

.capex-exec-summary-card {
  background: var(--surface, #f9fbf9);
  border: 1px solid var(--line, #e2e8e3);
  border-radius: var(--deck-radius);
  padding: 18px 20px;
  margin: 16px 0 20px;
}

.capex-exec-summary-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--deck-dark);
  margin-bottom: 12px;
}

/* 9. Сводная годовая динамика капитала и операционной экономики (8 колонок) */
.deck-timeline-wrap table,
.capex-table-annual {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

.deck-timeline-wrap table th:first-child,
.capex-table-annual th:first-child {
  width: 28% !important;
  min-width: 220px !important;
  max-width: 300px !important;
  text-align: left !important;
  padding: 12px 16px 12px 0 !important;
  white-space: normal !important;
  font-weight: 550 !important;
  vertical-align: middle !important;
}

.deck-timeline-wrap table :is(th, td):not(:first-child),
.capex-table-annual :is(th, td):not(:first-child) {
  width: auto !important;
  min-width: 84px !important;
  text-align: right !important;
  white-space: nowrap !important; /* КРИТИЧНО: цифры никогда не переносятся по строкам */
  padding: 11px 10px !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 13.5px !important;
  vertical-align: middle !important;
}

.deck-timeline-wrap table thead th,
.capex-table-annual thead th {
  font-weight: 600 !important;
  color: var(--muted, #53606b) !important;
  border-bottom: 2px solid #a9b7ab !important;
  padding-bottom: 12px !important;
  background: transparent !important;
}

.deck-timeline-wrap table tbody td,
.capex-table-annual tbody td {
  border-bottom: 1px solid var(--line, #e2e8e3) !important;
}

.deck-timeline-wrap table tbody tr:hover td,
.capex-table-annual tbody tr:hover td {
  background: rgba(26, 92, 56, 0.03) !important;
}
