/*
 * RU: Дополнительные стили раздела БИ7 «Сеть», «Команда», «Добавить организацию» нового кабинета /biz/app/. Общие компоненты (card, btn, tbl, tabs, pill…) уже в
 *     /css/biztools.css; здесь — только то, чего там нет. Правила — внутри body.bt-page и на токенах сайта (--k-*), без
 *     литералов цвета (храповик check:theme). Файл свой у каждой фазы, чтобы параллельные потоки не правили один файл.
 * EN: Extra styles of the BI7 "Network", "Team", "Claim" section of the new /biz/app/ cabinet. Shared components (card, btn, tbl, tabs, pill…) are
 *     already in /css/biztools.css; only what is missing goes here. Rules sit inside body.bt-page and use site tokens
 *     (--k-*), no colour literals (the check:theme ratchet). Each phase has its own file so parallel tracks never edit one.
 */

/* RU: Лучшая и отстающая точка по показателю в таблице сети: мягкий фон ячейки плюс стрелка — цвет не единственный
       носитель смысла. Селектор с tr, чтобы перебить фон строки «открыта сейчас» (.tbl tr.is-self td).
   EN: The best and lagging point per metric in the network table: a soft cell background plus an arrow — colour is not
       the only carrier of meaning. The selector includes tr to beat the "open now" row background (.tbl tr.is-self td). */
body.bt-page .nw-tbl tr td.nw-best {background: var(--k-ok-soft);}
body.bt-page .nw-tbl tr td.nw-worst {background: var(--k-warn-soft);}
body.bt-page .nw-mark {display: inline-flex; vertical-align: middle; margin-left: 2px;}
body.bt-page .nw-best .nw-mark {color: var(--k-ok);}
body.bt-page .nw-worst .nw-mark {color: var(--k-warn);}
/* RU: Таблица сети на телефоне прокручивается сама (tbl-wrap), а подпись точки не должна сжиматься в столбик по букве.
   EN: On a phone the network table scrolls by itself (tbl-wrap), and a point label must not squeeze into a one-letter column. */
body.bt-page .nw-tbl td:nth-child(2) {min-width: 180px;}
/* RU: Скрытая подпись .sr (position: absolute) внутри широкой таблицы без позиционированного предка выпадала из
       прокрутки .tbl-wrap и растягивала страницу на телефоне до 700 px — даём ей опору внутри ячейки и строки диффа.
   EN: The hidden .sr label (position: absolute) inside a wide table without a positioned ancestor escaped the .tbl-wrap
       scroll and stretched the phone page to 700 px — it gets an anchor inside the cell and the diff row. */
body.bt-page .nw-mark, body.bt-page .sc-network .xa-diff li, body.bt-page .sc-team .xa-diff li {position: relative;}
/* RU: Переключатель расписания фида на узком экране переносится, а не вылезает за край карточки.
   EN: The feed schedule switch wraps on a narrow screen instead of sticking out of the card. */
body.bt-page .sc-network .seg {flex-wrap: wrap; max-width: 100%;}
/* RU: БП1.5–БП1.6 — мастер подтверждения (.sc-claim) и «Первые дела» на обзоре ([data-welcome-list]) по правилам П1 и П4
       (docs/UI-RULES.md): начертания не выше 600 — 700 оставлено знаку бренда, а у <b> и цифр шагов оно было по умолчанию;
       для пальца кнопки и поля не ниже --k-tap-min (44 px), а is-sm кабинета — 34 px.
   EN: БП1.5–БП1.6 — the confirmation wizard (.sc-claim) and "First steps" on the overview ([data-welcome-list]) under rules
       П1 and П4 (docs/UI-RULES.md): weights at most 600 — 700 stays for the brand mark, while <b> and step digits had it
       by default; for a finger, buttons and fields are at least --k-tap-min (44 px), while the cabinet's is-sm is 34 px. */
body.bt-page .sc-claim b, body.bt-page [data-welcome-list] b, body.bt-page .sc-claim .xa-steps li::before, body.bt-page [data-welcome-list] .xa-steps li::before {font-weight: 600;}
@media (pointer: coarse) {
  body.bt-page .sc-claim .btn, body.bt-page .sc-claim .inp, body.bt-page [data-welcome-list] .btn {min-height: var(--k-tap-min);}
}
