/* Сила рынка: то, чего нет в общем наборе раздела. */

/* Отрасли: полоса - уровень (доля), поэтому синяя, а не зелёная. Черта -
   доля по рынку в целом, чтобы видеть отрасль сильнее или слабее рынка. */
.br-sec { --br-cols: minmax(0, 11rem) minmax(0, 1fr) 3rem 3.2rem; --br-gap: var(--cf-space-10);
  position: relative; display: grid; gap: var(--cf-space-2); padding-top: var(--cf-space-24); }
.br-sec__row { position: relative; z-index: 1; display: grid; grid-template-columns: var(--br-cols); gap: var(--br-gap); align-items: center;
  min-height: 30px; font-size: 14px; }
.br-sec__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-sec__row b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.br-sec__bar { position: relative; display: block; height: 8px; border-radius: var(--cf-radius-bar); background: var(--cf-surface-2); }
.br-sec__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--cf-radius-bar); background: var(--cf-chart-1); }
/* Линия рынка: слой с той же сеткой, что у строк, поэтому колонка полос
   совпадает сама. Сплошной волосяной пунктир и подпись сверху. */
.br-sec__mkt { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: var(--br-cols); gap: var(--br-gap); pointer-events: none; }
.br-sec__mktcol { position: relative; }
.br-sec__mktcol::before { content: ""; position: absolute; left: var(--mkt); top: 20px; bottom: 6px; border-left: 1px dashed var(--cf-ink-3); opacity: .7; }
.br-sec__mktcol em { position: absolute; left: var(--mkt); top: 0; transform: translateX(-50%); padding: 1px 7px; border-radius: var(--cf-radius-pill);
  background: var(--cf-surface-2); color: var(--cf-ink-2); font-size: 11.5px; font-style: normal; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.br-sec__sub { font-size: 12.5px; color: var(--cf-ink-3); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 767px) { .br-sec { --br-cols: minmax(0, 7.5rem) minmax(0, 1fr) 2.6rem 2.8rem; --br-gap: var(--cf-space-8); } .br-sec__row { font-size: 13.5px; } }

/* Таблица акций. */
.br-fbar { display: flex; flex-wrap: wrap; gap: var(--cf-space-10) var(--cf-space-12); align-items: center; margin-bottom: var(--cf-space-14); }
.br-fbar .cf-search { width: min(340px, 100%); }
.br-count { font-size: 13px; color: var(--cf-ink-3); }
.br-asset { display: flex; align-items: center; }
.br-asset small { display: block; color: var(--cf-ink-3); font-size: 12.5px; }
#brTable td:first-child { white-space: normal; min-width: 200px; }
#brTable td { white-space: nowrap; }
#brTable td:nth-child(4), #brTable th:nth-child(4), #brTable td:nth-child(5), #brTable th:nth-child(5) { text-align: left; }
#brTable .an-mono { width: 26px; height: 26px; font-size: 10.5px; margin-right: var(--cf-space-10); flex: none; }
.br-pos { display: inline-grid; grid-template-columns: 96px 28px; gap: var(--cf-space-8); align-items: center; }
.br-pos b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.an-table th[aria-sort] button::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; vertical-align: 1px; }
.an-table th[aria-sort="descending"] button::after { border-top-color: currentColor; border-bottom: 0; }
.an-table th[aria-sort="ascending"] button::after { border-bottom-color: currentColor; border-top: 0; }
.an-table th[aria-sort] button { color: var(--cf-accent); }
.an-table th button:focus-visible { outline: 2px solid var(--cf-accent); outline-offset: 2px; border-radius: var(--cf-radius-xs); }

@media (max-width: 767px) {
  #brChart { --an-h: 440px !important; }
  #brHiLo { --an-h: 360px !important; }
  #brTable td:first-child { min-width: 160px; }
  .br-pos { grid-template-columns: 64px 28px; }
}
