/* b04.css – блок 04 «Эксплуатация и замены». Продолжение вида блока 00. */
.b04-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
@media (max-width: 1180px) { .b04-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .b04-kpi-grid { grid-template-columns: 1fr; } }
.b04-kpi-grid .deck-kpi-card { margin: 0; }

.b04-card { background: #ffffff; border: 1px solid #d4ded7; border-radius: 8px; padding: 16px 18px; margin-bottom: 18px; box-sizing: border-box; }
.b04-h3 { font-size: 15px; font-weight: 700; color: var(--ink, #080e1b); margin: 0 0 8px; line-height: 1.35; }

.b04-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted, #626d77); margin: 0 0 8px; }
.b04-legend span { display: inline-flex; align-items: center; gap: 7px; }
.b04-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.b04-legend .b04-hatch-sw { background: repeating-linear-gradient(135deg, #9aa59f 0 2px, #ffffff 2px 4px); border: 1px solid #9aa59f; box-sizing: border-box; }

.b04-svg-container { width: 100%; overflow: hidden; }
.b04-svg-container svg { display: block; width: 100%; height: auto; }
.b04-col { cursor: pointer; outline: none; }
.b04-col:focus-visible .b04-axis-lbl { font-weight: 700; }
.b04-col:hover .b04-bar { opacity: 0.86; }
.b04-svg-container text { font-variant-numeric: tabular-nums; }
.b04-ns { margin: 0; padding-left: 18px; font-size: 13px; }

.b04-year-detail { background: #eaeee5; border-radius: 6px; padding: 12px 16px; margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--ink, #080e1b); }
.b04-year-detail p { margin: 0 0 6px !important; font-size: 14px !important; line-height: 1.55 !important; }
.b04-year-detail p:last-child { margin-bottom: 0 !important; }
.b04-yd-chips { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.b04-chip { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.b04-chip i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; align-self: center; }
.b04-chip em { font-style: normal; color: var(--muted, #626d77); font-size: 13px; }
.b04-yd-note { color: var(--ink, #080e1b); }

.b04-comp-bar { display: flex; width: 100%; height: 26px; border-radius: 4px; overflow: hidden; background: #eef1ef; }
.b04-seg { display: block; height: 100%; min-width: 2px; border-right: 2px solid #ffffff; box-sizing: border-box; }
.b04-seg:last-child { border-right: 0; }
.strategy-r03 .b04-comp-legend, .b04-comp-legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; font-size: 13px; }
.strategy-r03 .b04-comp-legend li, .b04-comp-legend li { display: flex !important; align-items: baseline; gap: 8px; margin: 0; padding: 0; line-height: 1.35; }
.b04-comp-legend i { display: inline-block; flex: none; width: 12px; height: 10px; border-radius: 2px; }
.b04-comp-legend .b04-leg-name { flex: 1 1 auto; min-width: 0; }
.b04-comp-legend b { flex: none; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .strategy-r03 .b04-comp-legend, .b04-comp-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strategy-r03 .b04-comp-legend, .b04-comp-legend { grid-template-columns: 1fr; } }

.b04-xlsx-wrap { margin: 0 0 18px; }
.b04-xlsx { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #2e5c3e; color: #2e5c3e; background: transparent; border-radius: 6px; font-size: 13px; font-weight: 600; padding: 8px 14px; text-decoration: none; line-height: 1.3; }
.b04-xlsx:hover { background: #e3efe6; }
.b04-how { padding-left: 18px; font-size: 14px; line-height: 1.55; }
.b04-how ul { margin: 4px 0; padding-left: 18px; font-size: 13px; }
@media (max-width: 480px) { .b04-card { padding: 12px 12px; } .b04-year-detail { padding: 10px 12px; } }
.b04-hint { font-size: 12px; color: var(--muted, #626d77); }
.s00-dynamic-text-wrap .b04-irr-line { margin-top: 6px !important; font-weight: 600; }
