/* =====================================================================
   WINMER B2B — Дополнения к базовой системе styles.css (v34 / v39)
   Белый лист, тонкие разделительные линии var(--line), табличные цифры.
   ===================================================================== */

/* Приглашение по реферальной ссылке представителя (?ref=REP01) */
.b2b-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0 0 20px 0;
  padding: 14px 20px;
  border-radius: 14px;
  background: #f4f6f8;
  box-shadow: inset 3px 0 0 var(--cold), 0 0 0 1px var(--line);
}
.b2b-ref b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}
.b2b-ref span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.b2b-ref__code {
  flex: none;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cold);
}

/* Информационная плашка со ссылками для оптовых партнёров */
.b2b-partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  width: 100%;
  margin: 0 0 16px 0;
  padding: 12px 20px;
  border-radius: 14px;
  background: #f0f5fc;
  border: 1px solid #d4e3f8;
  font-size: 13.5px;
}
.b2b-partner-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--cold);
  white-space: nowrap;
}
.b2b-partner-strip__label svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.b2b-partner-strip__links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.b2b-partner-strip a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #c8dbf4;
  color: var(--cold);
  font-weight: 650;
  font-size: 12.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(27, 77, 177, 0.05);
}
.b2b-partner-strip a:hover {
  background: var(--cold);
  color: #ffffff;
  border-color: var(--cold);
  box-shadow: 0 3px 8px rgba(27, 77, 177, 0.22);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .b2b-partner-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Прогресс оборота в карточке авторизованного корпоративного клиента */
.b2b-tier {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.b2b-tier__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.b2b-tier__head span {
  color: var(--ink-2);
}
.b2b-tier__head b {
  font-weight: 650;
  color: var(--ink);
}
.b2b-tier__bar {
  height: 6px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: #eef1f4;
  overflow: hidden;
}
.b2b-tier__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--cold);
  transition: width .35s var(--ease-out);
}
.b2b-tier__foot {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

/* Блок реферальной ссылки в карточке мерчендайзера */
.b2b-rep-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.b2b-rep-box__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.b2b-rep-box__url {
  display: flex;
  gap: 6px;
}
.b2b-rep-box__url input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: #f4f6f8;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  color: var(--ink);
}

/* Поиск и фильтры внутри кабинета СТО */
.b2b-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  box-shadow: inset 0 -1px 0 var(--line);
}
.b2b-bar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.b2b-bar__filters .field {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f4f6f8;
  font-size: 14px;
  width: auto;
}
.b2b-bar__filters input.field {
  flex: 1 1 320px;
  min-width: 240px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.b2b-bar__filters select.field {
  flex: 0 1 215px;
  min-width: 185px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}
.b2b-bar__filters input.field:focus {
  box-shadow: inset 0 0 0 1.5px var(--cold), 0 0 0 4px var(--cold-tint);
}

/* Строка товара в оптовом каталоге B2B (расширение .pline из styles.css) */
.pline--b2b {
  grid-template-columns: 88px minmax(0, 1fr) 230px;
}
.pline__wo {
  width: 100%;
  height: 34px;
  margin-top: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #f4f6f8;
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
}
.pline__wo:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--cold);
}
.pline__subprice {
  font-size: 12.5px;
  color: var(--ink-3);
}
.pline__margin {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ok);
}

/* Таблицы на белом листе (рассылки, клиенты, заказы в админке) */
.b2b-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.b2b-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}
.b2b-sheet-table th,
.b2b-sheet-table td {
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
  box-shadow: inset 0 -1px 0 var(--line);
}
.b2b-sheet-table th:first-child,
.b2b-sheet-table td:first-child {
  padding-left: 0;
}
.b2b-sheet-table th:last-child,
.b2b-sheet-table td:last-child {
  padding-right: 0;
}
.b2b-sheet-table th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.25;
  white-space: normal;
  vertical-align: bottom;
}
.b2b-cell-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.b2b-cell-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.b2b-cell-phone {
  display: inline-block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cold);
  white-space: nowrap;
}
.b2b-cell-email {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
  word-break: break-all;
}
.b2b-nowrap {
  white-space: nowrap;
}
.b2b-disc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f2f4f7;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}

/* Подпись объёма на шагах градации (.isteps) */
.isteps__meta {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   Главная сетка входа и регистрации B2B (форма — основной широкий блок)
   ===================================================================== */
.b2b-auth-grid {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 120px;
}
.b2b-auth-card {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 32px 36px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  z-index: 10;
}
.b2b-auth-card .cseg {
  display: grid;
  width: 100%;
  margin-bottom: 22px;
}
.b2b-auth-head {
  margin-bottom: 22px;
}
.b2b-auth-head h2 {
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.b2b-auth-head p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.b2b-login-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  width: 100%;
  max-width: none;
}
.b2b-reg-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.b2b-consents {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8f9fa;
  box-shadow: inset 0 0 0 1px var(--line);
}
.b2b-auth-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

/* Правая компактная колонка с градацией корпоративных скидок */
.b2b-side-card {
  padding: 28px;
  border-radius: 20px;
  background: #f4f6f8;
  box-shadow: inset 0 0 0 1px var(--line);
}
.b2b-side-card h2 {
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.b2b-side-card__lead {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.b2b-steps-v {
  counter-reset: st;
  display: grid;
  gap: 0;
  margin-top: 22px;
}
.b2b-steps-v li {
  counter-increment: st;
  position: relative;
  padding: 0 0 20px 44px;
}
.b2b-steps-v li:last-child {
  padding-bottom: 0;
}
.b2b-steps-v li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 12.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.b2b-steps-v li::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 34px;
  bottom: 6px;
  width: 1px;
  background: var(--line-2);
}
.b2b-steps-v li:last-child::after {
  display: none;
}
.b2b-steps-v .isteps__meta {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}
.b2b-steps-v b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.3;
}
.b2b-steps-v p {
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.b2b-side-card__foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.b2b-side-card__foot a {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

@media (max-width: 760px) {
  .b2b-auth-card {
    padding: 22px 18px;
  }
  .b2b-login-form,
  .b2b-reg-form {
    grid-template-columns: 1fr;
  }
}

/* Входящие сообщения и переписка с менеджером (СТО / Корпоративный клиент) */
.b2b-inbox-header {
  margin-bottom: 16px;
}

/* Визитка персонального менеджера */
.b2b-inbox-mgr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.b2b-inbox-mgr__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.b2b-inbox-mgr__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cold);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 750;
  flex-shrink: 0;
}
.b2b-inbox-mgr__info {
  min-width: 0;
}
.b2b-inbox-mgr__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 17px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.25;
}
.b2b-inbox-mgr__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(17, 85, 204, 0.1);
  color: var(--cold);
  font-size: 11.5px;
  font-weight: 650;
}
.b2b-inbox-mgr__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.35;
}
.b2b-inbox-mgr__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Лента сообщений */
.b2b-inbox-stream {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.b2b-inbox-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color .15s, box-shadow .15s;
}
.b2b-inbox-card:hover {
  border-color: #cbd5e1;
}
.b2b-inbox-card--incoming {
  border-left: 4px solid var(--cold);
}
.b2b-inbox-card--outgoing {
  background: #fbfcfe;
  border-left: 4px solid #137a4b;
}

.b2b-inbox-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.b2b-inbox-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.b2b-inbox-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 750;
  flex-shrink: 0;
}
.b2b-inbox-card__avatar.is-mgr {
  background: var(--cold);
  color: #fff;
}
.b2b-inbox-card__avatar.is-comp {
  background: #137a4b;
  color: #fff;
  font-size: 11px;
}
.b2b-inbox-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.b2b-inbox-card__time {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
}

.b2b-inbox-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.b2b-inbox-tag--mgr {
  background: rgba(17, 85, 204, 0.08);
  color: var(--cold);
}
.b2b-inbox-tag--comp {
  background: rgba(19, 122, 75, 0.08);
  color: #137a4b;
}

.b2b-inbox-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
}
.b2b-inbox-badge.is-read {
  background: #f1f5f9;
  color: var(--ink-3);
}
.b2b-inbox-badge.is-sent {
  background: rgba(19, 122, 75, 0.1);
  color: #137a4b;
}

.b2b-inbox-card__subject {
  font-size: 1.125rem;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.35;
}
.b2b-inbox-card__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-line;
  max-width: 82ch;
}

/* Форма написания сообщения */
.b2b-inbox-compose {
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.b2b-inbox-compose__head {
  margin-bottom: 14px;
}
.b2b-inbox-compose__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.b2b-inbox-compose__title svg {
  width: 18px;
  height: 18px;
  color: var(--cold);
}
.b2b-inbox-compose__sub {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.b2b-inbox-compose__body {
  margin-bottom: 14px;
}
.b2b-inbox-compose__body textarea {
  width: 100%;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
}
.b2b-inbox-compose__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.b2b-inbox-compose__note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.b2b-inbox-compose__note a {
  color: var(--cold);
  font-weight: 600;
  text-decoration: none;
}
.b2b-inbox-compose__note a:hover {
  text-decoration: underline;
}

/* Старые классы для обратной совместимости кабинета ТП */
.b2b-msgs {
  display: grid;
  gap: 16px;
}
.b2b-msg {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.b2b-msg__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.b2b-msg__top h3 {
  font-size: 1.0625rem;
  font-weight: 650;
}
.b2b-msg__top small {
  font-size: 13px;
  color: var(--ink-3);
}
.b2b-msg__body {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  white-space: pre-line;
  max-width: 72ch;
}

@media (max-width: 760px) {
  .pline--b2b {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .b2b-sheet-table {
    display: block;
    overflow-x: auto;
  }
}

/* =====================================================================
   Аналитика, графики, срезы и помесячная отчётность (Кабинет ТП и Админка)
   Строго в дизайн-системе winmer.ru: белый лист, тонкие линии, var(--cold)
   ===================================================================== */

/* =====================================================================
   Полноширинная сетка рабочих кабинетов B2B (.b2b-workspace)
   Единая шрифтовая система с главным сайтом winmer.ru (Inter, var(--sans))
   ===================================================================== */
.b2b-workspace,
.b2b-auth-grid,
.modal.lead {
  font-family: var(--sans);
  font-feature-settings: "cv11", "ss01";
}
.b2b-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.b2b-workspace .acc__ph {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  box-shadow: inset 0 -1px 0 var(--line);
}
.b2b-workspace .acc__ph h2 {
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.b2b-workspace .acc__ph p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 74ch;
}

/* Модальные окна B2B без левой круглой/квадратной иконки-аватарки */
.modal.lead .modal__head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start;
  gap: 16px;
}
.modal.lead .modal__head h2 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.modal.lead .modal__head p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Раскрывающийся блок необязательных банковских реквизитов при регистрации СТО */
.b2b-opt-details {
  border-radius: 12px;
  background: #f8f9fb;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.b2b-opt-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cold);
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.b2b-opt-details > summary:hover {
  background: #f1f4f8;
}
.b2b-opt-details > summary::-webkit-details-marker {
  display: none;
}
.b2b-opt-details > summary::after {
  content: "+ Указать реквизиты";
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.b2b-opt-details[open] > summary {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.b2b-opt-details[open] > summary::after {
  content: "− Свернуть";
}
.b2b-opt-details__body {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  background: #fff;
}
@media (max-width: 640px) {
  .b2b-opt-details__body {
    grid-template-columns: 1fr;
  }
}

/* Верхняя карточка профиля (2 структурированных ряда на белом листе, без аватарок) */
.b2b-topcard {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.b2b-topcard__row1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
}
.b2b-topcard__row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.b2b-topcard__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.b2b-topcard__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.b2b-topcard__title b {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.25;
}
.b2b-topcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.b2b-ref-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 380px;
}
.b2b-ref-inline__lbl {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.b2b-ref-inline input {
  flex: 1 1 220px;
  max-width: 340px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #f4f6f8;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
}
.b2b-topcard__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.b2b-topcard__acts .btn {
  white-space: nowrap;
}

/* Внутренний переключатель фильтров («Все / Активные / Без заказов») без обрезания текста */
.b2b-subnav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #f2f4f7;
}
.b2b-subnav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.b2b-subnav button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.b2b-subnav button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 0 0 1px rgba(16, 24, 40, 0.05);
}

/* Полноширинная панель навигации (без обрезания вкладок) */
.b2b-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: #f2f4f7;
  width: 100%;
}
.b2b-nav button[role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.b2b-nav button[role="tab"]:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.b2b-nav button[role="tab"][aria-selected="true"],
.b2b-nav button[role="tab"][aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 0 0 1px rgba(16, 24, 40, 0.05);
}

/* Верхняя сводка KPI (4 карточки в ряд на всю ширину) */
.b2b-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.b2b-kpi-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.b2b-kpi-card--accent {
  background: #f8faff;
  box-shadow: 0 0 0 1px rgba(15, 89, 216, 0.22);
}
.b2b-kpi-card__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.b2b-kpi-card__label > span:first-child {
  line-height: 1.3;
}
.b2b-kpi-card__val {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.b2b-kpi-card__val--ok {
  color: var(--ok);
}
.b2b-kpi-card__val--cold {
  color: var(--cold);
}
.b2b-kpi-card__sub {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.b2b-delta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.b2b-delta.is-up {
  background: rgba(19, 122, 75, 0.1);
  color: var(--ok);
}
.b2b-delta.is-down {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}
.b2b-delta.is-flat {
  background: #eef1f4;
  color: var(--ink-2);
}

/* Блоки графиков и срезов */
.b2b-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.b2b-slices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.b2b-box {
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.b2b-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.b2b-box__head h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.b2b-box__head p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.b2b-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.b2b-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.b2b-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* Столбчатый график помесячной динамики (без фиксированной высоты и наложений) */
.b2b-mchart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  padding: 12px 0 4px;
}
.b2b-mchart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 12px;
  transition: background .2s;
}
.b2b-mchart__col:hover,
.b2b-mchart__col.is-active {
  background: #f4f7fb;
}
.b2b-mchart__top {
  min-height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 8px;
}
.b2b-mchart__val {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.b2b-mchart__comm {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.b2b-mchart__bars {
  width: 100%;
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line-2);
}
.b2b-mchart__bar {
  flex: 1;
  max-width: 24px;
  border-radius: 6px 6px 0 0;
  background: var(--cold);
  min-height: 4px;
  transition: height .35s var(--ease-out);
}
.b2b-mchart__bar--pending {
  background: #cbd5e1;
  max-width: 16px;
}
.b2b-mchart__bar--comm {
  background: var(--ok);
  max-width: 14px;
}
.b2b-mchart__foot {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.b2b-mchart__lbl {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.b2b-mchart__sub {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.b2b-mchart-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Горизонтальные полосы срезов (категории, уровни, география) */
.b2b-slist {
  display: grid;
  gap: 14px;
}
.b2b-sitem__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 14px;
  margin-bottom: 6px;
}
.b2b-sitem__name {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.b2b-sitem__meta {
  font-size: 13.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.b2b-sitem__bar {
  height: 7px;
  border-radius: 999px;
  background: #eef1f4;
  overflow: hidden;
}
.b2b-sitem__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--cold);
}
.b2b-sitem__bar--ok i {
  background: var(--ok);
}

/* Статус-бейджи полевой работы с клиентом (CRM мерчендайзера) */
.b2b-vstatus {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.b2b-vstatus--active_partner {
  background: rgba(19, 122, 75, 0.1);
  color: var(--ok);
}
.b2b-vstatus--visit_planned,
.b2b-vstatus--Onboarding {
  background: rgba(15, 89, 216, 0.1);
  color: var(--cold);
}
.b2b-vstatus--call_needed {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}
.b2b-vstatus--paused {
  background: #eef1f4;
  color: var(--ink-3);
}

/* Статус базы данных и резервного копирования */
.b2b-sys-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.b2b-sys-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8f9fb;
  box-shadow: inset 0 0 0 1px var(--line);
}
.b2b-sys-card > b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 6px;
}
.b2b-sys-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.b2b-sys-card p b {
  font-weight: 650;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .b2b-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2b-analytics-grid,
  .b2b-slices-grid,
  .b2b-sys-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .b2b-kpi-strip {
    grid-template-columns: 1fr;
  }
  .b2b-mchart {
    gap: 4px;
    overflow-x: auto;
  }
  .b2b-topcard {
    padding: 16px;
  }
}

@media print {
  .header, .footer, .acc__auth, .acc__tabs, .b2b-nav, .b2b-topcard__acts, [data-no-print] {
    display: none !important;
  }
  .acc__grid, .b2b-workspace {
    display: block !important;
  }
}

/* =====================================================================
   Привилегии юрлиц, статусы блокировки, карточки клиентов и Push-виджет
   ===================================================================== */

.b2b-priv-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.b2b-priv-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  background: rgba(15, 89, 216, 0.08);
  color: var(--cold);
  box-shadow: inset 0 0 0 1px rgba(15, 89, 216, 0.18);
}
.b2b-priv-chip--disc {
  background: rgba(19, 122, 75, 0.1);
  color: var(--ok);
  box-shadow: inset 0 0 0 1px rgba(19, 122, 75, 0.22);
}
.b2b-priv-chip--note {
  background: #f8f9fb;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: normal;
  line-height: 1.35;
}

.b2b-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
}
.b2b-status-pill.is-active {
  background: rgba(19, 122, 75, 0.1);
  color: var(--ok);
}
.b2b-status-pill.is-blocked {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}
tr.is-row-blocked {
  background: rgba(180, 35, 24, 0.03);
}

.b2b-row-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.btn.is-danger-btn {
  color: #b42318;
}
.btn.is-danger-btn:hover {
  background: rgba(180, 35, 24, 0.08);
}

.b2b-readonly-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8faff;
  box-shadow: inset 0 0 0 1px rgba(15, 89, 216, 0.2);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 16px;
  line-height: 1.45;
}

.b2b-priv-panel {
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8f9fb;
  box-shadow: inset 0 0 0 1px var(--line);
}
.b2b-priv-panel h3 {
  font-size: 1rem;
  font-weight: 680;
  color: var(--ink);
}

.b2b-push-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f9fb;
  box-shadow: inset 0 0 0 1px var(--line);
}
.b2b-push-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.b2b-push-box__row b {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.b2b-push-box__row span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.b2b-push-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.b2b-push-dot.is-on {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(19, 122, 75, 0.16);
}
.b2b-push-box__acts {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.b2b-push-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  white-space: nowrap;
}
.b2b-push-inline__lbl {
  font-weight: 600;
  color: var(--ink-2);
}

/* Шапка истории рассылок (поиск/матчинг) и пагинация (по 4 рассылки на страницу) */
.b2b-bcast-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.b2b-bcast-head h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--ink);
}
.b2b-bcast-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  max-width: 400px;
}
.b2b-bcast-search {
  height: 38px;
  width: 100%;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: #f2f4f7;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
}
.b2b-bcast-search:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px var(--cold);
}
.b2b-msg__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.b2b-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.b2b-pager__info {
  font-size: 13px;
  color: var(--ink-3);
}
.b2b-pager__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.b2b-pager__num {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.b2b-pager__num:hover {
  background: #e4e8ee;
  color: var(--ink);
}
.b2b-pager__num.is-active {
  background: var(--cold);
  color: #fff;
}

/* Бейджи синхронизации с МойСклад и блок выбора контрагента в заказе */
.b2b-ms-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(17, 85, 204, 0.1);
  color: var(--cold);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.b2b-ms-cp-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(19, 122, 75, 0.1);
  color: var(--ok);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.b2b-ms-state {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
  white-space: nowrap;
}
.b2b-cp-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 4px;
}
.b2b-cp-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.b2b-cp-card__eyebrow {
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cold);
}
.b2b-cp-card__title {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  margin-top: 2px;
}
.b2b-cp-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.b2b-cp-card__meta span {
  color: var(--ink-3);
}
@media (max-width: 640px) {
  .b2b-cp-card__meta {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   НОВЫЙ КОРПОРАТИВНЫЙ ДАШБОРД СТО (v100)
   Крупно и наглядно: 1. Компания  2. Процент скидки  3. Менеджер
   ===================================================================== */

.b2b-header-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cold-bg);
  color: var(--cold);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(17, 85, 204, 0.16);
}

.b2b-corp-hero {
  display: grid;
  grid-template-columns: 1.38fr 0.96fr 1.06fr;
  gap: 16px;
  align-items: stretch;
}

.b2b-corp-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 6px 20px -12px rgba(15, 20, 26, 0.06);
}

.b2b-corp-card--discount {
  background: linear-gradient(155deg, #f5f9ff 0%, #ffffff 68%);
  box-shadow:
    inset 0 0 0 1.5px rgba(17, 85, 204, 0.2),
    0 8px 24px -14px rgba(17, 85, 204, 0.12);
}

.b2b-corp-card--manager {
  background: linear-gradient(155deg, #f8fafc 0%, #ffffff 70%);
}

.b2b-corp-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.b2b-corp-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(19, 122, 75, 0.16);
}

.b2b-corp-title {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.b2b-corp-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #eef2f6;
}

.b2b-corp-kv dt {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.b2b-corp-kv dd {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}

.b2b-corp-kv__sub {
  font-weight: 500;
  color: var(--ink-2);
}

.b2b-corp-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Блок 2: Крупный процент скидки */
.b2b-disc-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0 2px;
}

.b2b-disc-hero__val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--cold);
  color: #fff;
  font-size: clamp(2.1rem, 2.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 20px -8px rgba(17, 85, 204, 0.5);
}

.b2b-disc-hero__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.b2b-disc-hero__tier {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(17, 85, 204, 0.1);
  color: var(--cold);
  font-size: 12.5px;
  font-weight: 700;
}

.b2b-disc-hero__note {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-2);
}

.b2b-disc-progress {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(17, 85, 204, 0.14);
}

.b2b-disc-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.b2b-disc-progress__head b {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
}

.b2b-disc-progress__foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
}

.b2b-disc-progress__foot b {
  color: var(--ink-2);
}

/* Блок 3: Персональный менеджер */
.b2b-mgr-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.b2b-mgr-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 750;
  flex-shrink: 0;
}

.b2b-mgr-head__txt {
  min-width: 0;
}

.b2b-mgr-name {
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.2;
}

.b2b-mgr-role {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.b2b-mgr-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--cold-bg);
  color: var(--cold);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px rgba(17, 85, 204, 0.16);
  transition: background .15s, transform .15s;
}

.b2b-mgr-phone:hover {
  background: #e1edff;
}

.b2b-mgr-phone svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.b2b-mgr-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.b2b-mgr-meta a {
  color: var(--ink-2);
  font-weight: 600;
}

/* Навигационные вкладки с иконками */
.b2b-nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.b2b-nav button svg {
  width: 16px;
  height: 16px;
  opacity: 0.78;
}

/* Полоса активной корзины над каталогом */
.b2b-cart-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1.5px rgba(17, 85, 204, 0.22);
}

.b2b-cart-banner__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.b2b-cart-banner__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cold);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.b2b-cart-banner__info b {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.b2b-cart-banner__info span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 1px;
}

/* Строки оптового каталога (.b2b-pline) в едином стиле с основным сайтом (.pline из styles.css) */
.b2b-cat-list {
  display: block;
  margin-top: 4px;
}

.b2b-pline {
  grid-template-columns: 96px minmax(0, 1fr) 196px;
}

.b2b-pline.is-in-cart {
  background: linear-gradient(90deg, rgba(17, 85, 204, 0.03) 0%, rgba(17, 85, 204, 0.06) 100%);
  border-radius: 12px;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

.b2b-pline__wh {
  margin-top: 8px;
}

.b2b-pline__old {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.b2b-pline__old s {
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #ef4444;
}

.b2b-pline__disc {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(17, 85, 204, 0.1);
  color: var(--cold);
  font-size: 11px;
  font-weight: 700;
}

.b2b-pline__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.b2b-sku-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: var(--sheet, #f1f5f9);
  color: var(--ink);
  font: 600 12.5px/1 var(--mono);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.b2b-sku-badge svg {
  width: 13px;
  height: 13px;
  color: var(--ink-3);
  opacity: .6;
}

.b2b-sku-badge:hover {
  background: var(--cold-bg);
  color: var(--cold);
}

.b2b-cat-row__saving {
  display: inline-flex;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 11.5px;
  font-weight: 700;
}

.b2b-cat-qty {
  height: 36px;
}

.b2b-cat-qty input {
  width: 34px;
}

/* Таблица корзины и блок итогов */
.b2b-cart-item-title {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}

.b2b-checkout-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

.b2b-checkout-summary__calc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 560px;
}

.b2b-checkout-summary__line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.b2b-checkout-summary__line.is-saving b {
  color: var(--ok);
}

.b2b-checkout-summary__total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

.b2b-checkout-summary__total b {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink);
}

.b2b-checkout-summary__legal {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

.b2b-checkout-summary__legal a {
  color: var(--cold);
  font-weight: 600;
}

/* Панель фильтрации заказов по периоду */
.b2b-period-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.b2b-period-bar__presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.b2b-period-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.3;
}
.b2b-period-pill:hover {
  border-color: #cbd5e1;
  color: var(--ink);
  background: #f1f5f9;
}
.b2b-period-pill.is-active {
  background: var(--cold);
  border-color: var(--cold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(17, 85, 204, 0.25);
}

.b2b-period-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f6;
}
.b2b-period-custom__label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.b2b-period-custom__fld {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.b2b-period-custom__fld input[type="date"] {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
}
.b2b-period-custom__fld input[type="date"]:focus {
  outline: none;
  border-color: var(--cold);
}

/* Структурированные карточки заказов и счетов (.b2b-order-card) */
.b2b-orders-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.b2b-order-card {
  border-radius: 16px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px #dce3ec,
    0 4px 14px -8px rgba(15, 20, 26, 0.05);
  overflow: hidden;
}

.b2b-order-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: #f8fafc;
  border-bottom: 1px solid #e6ebf2;
}

.b2b-order-card__idwrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.b2b-order-card__num {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
}

.b2b-order-card__date {
  font-size: 13px;
  color: var(--ink-3);
}

.b2b-order-card__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.b2b-order-card__body {
  padding: 0 22px;
  overflow-x: auto;
}

.b2b-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.b2b-order-table th {
  padding: 11px 10px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.b2b-order-table th:first-child,
.b2b-order-table td:first-child {
  padding-left: 0;
}

.b2b-order-table th:last-child,
.b2b-order-table td:last-child {
  padding-right: 0;
}

.b2b-order-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.b2b-order-table tbody tr:last-child td {
  border-bottom: 0;
}

.b2b-order-table__title {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
}

.b2b-order-table__note {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
}

.b2b-order-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: #fcfdfe;
  border-top: 1px solid #e6ebf2;
}

.b2b-order-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.b2b-order-card__saving {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 650;
}

.b2b-order-card__total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.b2b-order-card__total b {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 1120px) {
  .b2b-corp-hero {
    grid-template-columns: 1fr 1fr;
  }
  .b2b-corp-card--company {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .b2b-corp-hero {
    grid-template-columns: 1fr;
  }
  .b2b-corp-kv {
    grid-template-columns: 1fr;
  }
  .b2b-pline {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .b2b-pline__side {
    grid-template-areas:
      "old btn"
      "price btn"
      "status btn";
  }
  .b2b-pline__old {
    grid-area: old;
    justify-content: flex-start;
  }
}

/* =====================================================================
   ПОЛНОЦЕННЫЙ КАТАЛОГ КОРПОРАТИВНОГО КЛИЕНТА (v102)
   Поиск + Витрина категорий + Левая колонка фильтров + Спеццена СТО
   ===================================================================== */

.b2b-public-cat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1.5px rgba(17, 85, 204, 0.22);
}

.b2b-public-cat-bar b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.b2b-public-cat-bar span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-2);
}

/* Крупная поисковая панель каталога */
.b2b-search-hero {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

.b2b-search-hero__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2b-search-hero__ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
  display: inline-flex;
}

.b2b-search-hero__ico svg {
  width: 19px;
  height: 19px;
}

.b2b-search-hero__input {
  flex: 1;
  height: 50px;
  padding: 0 42px 0 46px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

.b2b-search-hero__input:focus {
  outline: none;
  border-color: var(--cold);
  box-shadow: 0 0 0 3px rgba(17, 85, 204, 0.14);
}

.b2b-search-hero__clear {
  position: absolute;
  right: 160px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: #f1f5f9;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.b2b-search-hero__clear:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.b2b-search-hero__btn {
  height: 50px;
  padding: 0 24px;
  font-size: 14.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.b2b-search-hero__examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.b2b-search-hero__examples button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #dce3ec;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}

.b2b-search-hero__examples button:hover {
  background: var(--cold-bg);
  color: var(--cold);
  box-shadow: inset 0 0 0 1px rgba(17, 85, 204, 0.25);
}

/* Витрина категорий (плитки с фото) */
.b2b-cat-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.b2b-cat-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 0;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .15s;
}

.b2b-cat-tile:hover {
  background: #fff;
  box-shadow:
    inset 0 0 0 1px #cbd5e1,
    0 4px 12px -6px rgba(15, 20, 26, 0.08);
}

.b2b-cat-tile.is-active {
  background: var(--cold-bg);
  box-shadow: inset 0 0 0 1.5px var(--cold);
}

.b2b-cat-tile__thumb {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.b2b-cat-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b2b-cat-tile__thumb--all {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.b2b-cat-tile.is-active .b2b-cat-tile__thumb--all {
  background: var(--cold);
}

.b2b-cat-tile__txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.b2b-cat-tile__txt b {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.b2b-cat-tile.is-active .b2b-cat-tile__txt b {
  color: var(--cold);
}

.b2b-cat-tile__txt small {
  font-size: 11px;
  color: var(--ink-3);
}

/* Двухколоночная сетка каталога (Фильтры + Товары) */
.b2b-catalog-grid {
  margin-top: 18px;
  padding-top: 0;
  grid-template-columns: 265px 1fr;
  gap: 22px;
}

.b2b-filters {
  top: 78px;
  max-height: calc(100vh - 96px);
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

.b2b-fopt-cnt {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
}

.b2b-toolbar {
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border-bottom: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}

.b2b-toolbar__disc {
  color: var(--cold);
  font-weight: 600;
}

.b2b-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.b2b-sort-select {
  width: auto !important;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Чёткое отображение перечёркнутой розничной цены и спеццены СТО */
.b2b-price-retail-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.b2b-price-retail-row s {
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #ef4444;
}

.b2b-price-spec-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.b2b-price-spec-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--cold);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

/* Плиточный вид карточек (.b2b-pcard) */
.b2b-pgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.b2b-pcard.is-in-cart {
  box-shadow: inset 0 0 0 1.5px var(--cold);
}

.b2b-pcard__disc {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--cold);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}

.b2b-pcard__pricing {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b2b-pcard__old {
  font-size: 12px;
  color: var(--ink-3);
}

.b2b-pcard__old s {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
}

.b2b-pcard__new {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.b2b-pcard__lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--cold);
}

.b2b-pcard__val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.b2b-pcard__save {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ok);
}

/* Детальная карточка товара внутри B2B-каталога (.b2b-pdetail) */
.b2b-pdetail {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.b2b-pdetail__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.b2b-pdetail__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.b2b-pdetail__crumbs .link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
}

.b2b-pdetail__crumbs .link:hover {
  color: var(--cold);
}

.b2b-pdetail__grid {
  padding: 0;
}

.b2b-pdetail__title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 750;
  line-height: 1.2;
  color: var(--ink);
}

.b2b-buy-panel {
  background: linear-gradient(155deg, #f5f9ff 0%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1.5px rgba(17, 85, 204, 0.2);
}

.b2b-buy-panel__prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-buy-panel__retail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.b2b-buy-panel__retail s {
  font-size: 15px;
  font-weight: 650;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #ef4444;
}

.b2b-buy-panel__special {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.b2b-buy-panel__lbl {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cold);
}

.b2b-buy-panel__val {
  font-size: clamp(1.85rem, 2.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 2px;
}

.b2b-buy-panel__save {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.b2b-pdetail__secs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.b2b-pdetail__sec {
  padding: 20px;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

.b2b-pdetail__sec--wide {
  grid-column: 1 / -1;
}

.b2b-pdetail__sec h3 {
  font-size: 15.5px;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 12px;
}

.b2b-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.b2b-spec-table th,
.b2b-spec-table td {
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  text-align: left;
}

.b2b-spec-table th {
  color: var(--ink-3);
  font-weight: 500;
  width: 52%;
}

.b2b-spec-table td {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 1180px) {
  .b2b-cat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .b2b-pgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .b2b-catalog-grid {
    grid-template-columns: 1fr;
  }
  .b2b-pdetail__secs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .b2b-cat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2b-pgrid {
    grid-template-columns: 1fr;
  }
  .b2b-search-hero__form {
    flex-direction: column;
    align-items: stretch;
  }
  .b2b-search-hero__btn {
    width: 100%;
  }
  .b2b-search-hero__clear {
    right: 12px;
    top: 25px;
  }
}

/* QR-код модалка строго по центру */
.b2b-qr-dialog,
.modal.lead.b2b-qr-dialog {
  display: grid !important;
  place-items: center !important;
}
.b2b-qr-panel,
.lead .modal__panel.b2b-qr-panel {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin: auto !important;
}

/* Статусы заказов - строго в одну строку без переносов */
.ocard__status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  flex-shrink: 0 !important;
}
.b2b-ms-state {
  white-space: nowrap !important;
  word-break: keep-all !important;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 3px;
}

/* Цена при оплате наличными и +10% при оплате на р/с ИП без НДС */
.b2b-pline__cash-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--ok, #137a4b);
  line-height: 1.2;
}
.b2b-pline__bank {
  font-size: 11.5px;
  color: var(--ink-2);
  background: #f8fafc;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  white-space: nowrap;
}
.b2b-pcard__bank {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}
.b2b-buy-panel__cash-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--ok, #137a4b);
  margin-top: 2px;
}
.b2b-cat-row__bank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  background: #f8fafc;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px #cbd5e1;
}
.b2b-sheet-table td.is-active-price {
  background: rgba(15, 89, 216, 0.06);
  color: var(--cold);
}

/* Баннер стартового заказа автовизитки (мерч WINMER для СТО) */
.b2b-merch-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.b2b-merch-banner__img {
  width: 112px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.b2b-merch-banner__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.b2b-merch-banner__body {
  flex: 1;
  min-width: 220px;
}
.b2b-merch-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 4px;
}
.b2b-merch-banner__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--cold, #1d4ed8);
  font-weight: 650;
}
.b2b-merch-banner__title {
  display: inline-block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 4px;
}
.b2b-merch-banner__title:hover {
  color: var(--cold);
}
.b2b-merch-banner__desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.b2b-merch-banner__act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.b2b-merch-banner__price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
@media (max-width: 760px) {
  .b2b-merch-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .b2b-merch-banner__act {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* =====================================================================
   Антифрод и контроль регистраций B2B (только для администратора)
   ===================================================================== */
.b2b-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}
.b2b-tab-badge.is-danger {
  background: #dc2626;
  color: #fff;
}
.b2b-tab-badge.is-warn {
  background: #f59e0b;
  color: #fff;
}

.b2b-kpi-card--danger {
  background: linear-gradient(155deg, #fff5f5 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px #fecaca;
}
.b2b-kpi-card__val--err {
  color: #b91c1c;
}
.b2b-delta.is-down {
  background: #fee2e2;
  color: #b91c1c;
}

.b2b-fraud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.b2b-fraud-pill.is-mini {
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
}
.b2b-fraud-pill.is-legit {
  background: #e6f6ec;
  color: #0f7b3f;
}
.b2b-fraud-pill.is-suspicious {
  background: #fef3c7;
  color: #b45309;
}
.b2b-fraud-pill.is-fraud {
  background: #fee2e2;
  color: #b91c1c;
}

.b2b-risk-num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.b2b-risk-bar {
  height: 5px;
  width: 100%;
  max-width: 170px;
  margin: 6px 0;
  border-radius: 999px;
  background: #eef1f4;
  overflow: hidden;
}
.b2b-risk-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.b2b-risk-bar i.is-legit { background: #16a34a; }
.b2b-risk-bar i.is-suspicious { background: #f59e0b; }
.b2b-risk-bar i.is-fraud { background: #dc2626; }

.b2b-admin-mark {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
}
.b2b-admin-mark.is-ok { color: #0f7b3f; }
.b2b-admin-mark.is-err { color: #b91c1c; }

.b2b-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.b2b-rchip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}
.b2b-rchip.is-critical { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.b2b-rchip.is-high { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.b2b-rchip.is-medium { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.b2b-rchip.is-low { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.b2b-rchip.is-trust { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* Шкала риска фрода и карточный журнал регистраций */
.b2b-fraud-scale-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 11px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.b2b-fraud-scale-bar__lead b {
  color: var(--ink);
}
.b2b-fraud-scale-bar__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.b2b-fraud-scale-bar__items > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.b2b-fraud-scale-bar__items i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}
.b2b-fraud-scale-bar__items i.is-legit { background: #16a34a; }
.b2b-fraud-scale-bar__items i.is-suspicious { background: #f59e0b; }
.b2b-fraud-scale-bar__items i.is-fraud { background: #dc2626; }

.b2b-fraud-cards {
  display: grid;
  gap: 12px;
}

.b2b-fcard {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #16a34a;
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.b2b-fcard:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.b2b-fcard.is-suspicious { border-left-color: #f59e0b; }
.b2b-fcard.is-fraud { border-left-color: #dc2626; background: #fffafa; }

.b2b-fcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.b2b-fcard__who {
  flex: 1 1 320px;
  min-width: 0;
}
.b2b-fcard__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.b2b-fcard__name {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.25;
}
.b2b-fcard__direct {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.b2b-fcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.b2b-fcard__addr {
  color: var(--ink-3);
}

.b2b-fcard__verdict-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.b2b-fcard__score-col {
  min-width: 195px;
}
.b2b-fcard__score-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.b2b-fcard__score-top .b2b-risk-num {
  font-size: 13px;
  color: var(--ink);
}
.b2b-fcard__score-top .b2b-risk-num small {
  font-weight: 500;
  color: var(--ink-3);
}
.b2b-fcard__score-col .b2b-risk-bar {
  max-width: none;
  height: 6px;
  margin: 6px 0 0;
}
.b2b-fcard__acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.b2b-fcard__ok-btn {
  color: #0f7b3f;
}

.b2b-fcard__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.b2b-fcard__cell {
  padding: 11px 13px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #e9eef5;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.b2b-fcard__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.b2b-fcard__val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}
.b2b-fcard__muted {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.35;
}
.b2b-fcard__sub {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
  word-break: break-word;
}
.b2b-fcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.b2b-fcard__chip-muted {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: var(--ink-2);
}

.b2b-fcard__reasons {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}
.b2b-fcard__reasons-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  padding-top: 5px;
  white-space: nowrap;
}
.b2b-fcard__reasons .b2b-reason-chips {
  flex: 1 1 300px;
  margin-top: 0;
}

@media (max-width: 960px) {
  .b2b-fcard__grid {
    grid-template-columns: 1fr;
  }
}

.b2b-src-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  background: #f1f5f9;
  color: var(--ink-2);
}
.b2b-src-pill.is-ref { background: #e8f0fe; color: #1b4db1; }
.b2b-src-pill.is-cab { background: #f3e8ff; color: #6b21a8; }
.b2b-src-pill.is-direct { background: #ecfdf5; color: #047857; }
.b2b-src-pill.is-mig { background: #f1f5f9; color: #64748b; }

.b2b-fp-code {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #334155;
}
.b2b-net-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}

.b2b-merch-dev-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  padding: 5px 8px;
  margin-bottom: 5px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 12px;
}
.b2b-merch-dev-chip:last-child { margin-bottom: 0; }

.b2b-fraud-clusters-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff5f5;
  border: 1px solid #fecaca;
}
.b2b-fraud-clusters-box__head h3 {
  font-size: 16px;
  font-weight: 720;
  color: #991b1b;
  margin: 0 0 4px;
}
.b2b-fraud-clusters-box__head p {
  font-size: 13px;
  color: #7f1d1d;
  margin: 0 0 14px;
}
.b2b-fraud-clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.b2b-cluster-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fca5a5;
  display: grid;
  gap: 8px;
}
.b2b-cluster-card__top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.b2b-cluster-tag {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.b2b-cluster-tag.is-critical { background: #dc2626; color: #fff; }
.b2b-cluster-tag.is-high { background: #ea580c; color: #fff; }
.b2b-cluster-tag.is-medium { background: #d97706; color: #fff; }
.b2b-cluster-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.b2b-cluster-card__sig {
  font-size: 12.5px;
  color: var(--ink-2);
}
.b2b-cluster-card__list {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.b2b-cluster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.b2b-cluster-row b {
  display: block;
  font-size: 13px;
}

.b2b-fraud-ok-strip {
  padding: 14px 18px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 13.5px;
  color: #166534;
}
.b2b-fraud-ok-strip b { display: block; margin-bottom: 3px; }
.b2b-fraud-ok-strip span { font-size: 12.5px; color: #15803d; }

.b2b-fraud-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.b2b-fraud-sel {
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  width: auto;
}
.b2b-fraud-search {
  flex: 1 1 220px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13px;
}

.b2b-fraud-row.is-fraud td:first-child {
  box-shadow: inset 3px 0 0 #dc2626, inset 0 -1px 0 var(--line);
  padding-left: 10px;
}
.b2b-fraud-row.is-suspicious td:first-child {
  box-shadow: inset 3px 0 0 #f59e0b, inset 0 -1px 0 var(--line);
  padding-left: 10px;
}

/* Модальное окно детального разбора (Антифрод-досье) */
.b2b-fraud-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.b2b-fraud-hero.is-fraud { background: #fff5f5; border-color: #fecaca; }
.b2b-fraud-hero.is-suspicious { background: #fffbeb; border-color: #fde68a; }
.b2b-fraud-hero.is-legit { background: #f0fdf4; border-color: #bbf7d0; }

.b2b-fraud-hero__score {
  text-align: center;
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.b2b-fraud-hero__score span {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
}
.b2b-fraud-hero.is-fraud .b2b-fraud-hero__score span { color: #b91c1c; }
.b2b-fraud-hero.is-suspicious .b2b-fraud-hero__score span { color: #b45309; }
.b2b-fraud-hero.is-legit .b2b-fraud-hero__score span { color: #0f7b3f; }
.b2b-fraud-hero__score small {
  font-size: 11px;
  color: var(--ink-3);
}

.b2b-fraud-sec {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.b2b-fraud-sec.is-alert {
  background: #fff5f5;
  border-color: #fecaca;
}
.b2b-fraud-sec h3 {
  font-size: 14.5px;
  font-weight: 720;
  color: var(--ink);
  margin: 0 0 10px;
}

.b2b-reasons-list {
  display: grid;
  gap: 8px;
}
.b2b-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.b2b-reason-item b { display: block; font-size: 13.5px; color: var(--ink); }
.b2b-reason-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.b2b-reason-pts {
  flex-shrink: 0;
  min-width: 42px;
  padding: 3px 7px;
  border-radius: 7px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
}
.b2b-reason-item.is-critical .b2b-reason-pts { background: #fee2e2; color: #b91c1c; }
.b2b-reason-item.is-high .b2b-reason-pts { background: #ffedd5; color: #c2410c; }
.b2b-reason-item.is-medium .b2b-reason-pts { background: #fef3c7; color: #b45309; }
.b2b-reason-item.is-low .b2b-reason-pts { background: #f1f5f9; color: #475569; }
.b2b-reason-item.is-trust .b2b-reason-pts { background: #dcfce7; color: #15803d; }

.b2b-match-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #7f1d1d;
}

.b2b-spec-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.b2b-spec-kv {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.b2b-spec-kv span { font-size: 11.5px; color: var(--ink-3); }
.b2b-spec-kv b { font-size: 13px; color: var(--ink); word-break: break-word; }

.b2b-ua-raw {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: var(--ink-2);
  word-break: break-all;
}
.b2b-ua-raw code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #334155;
}

.b2b-timeline {
  display: grid;
  gap: 8px;
}
.b2b-tl-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.b2b-tl-dt {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-3);
  width: 135px;
}
.b2b-tl-body { flex: 1; min-width: 0; }
.b2b-tl-body b { font-size: 13px; color: var(--ink); }

.b2b-fraud-verdict-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f0f5fc;
  border: 1px solid #c8dbf4;
}
.b2b-fraud-verdict-box h3 {
  font-size: 14.5px;
  font-weight: 720;
  color: var(--cold);
  margin: 0;
}

@media (max-width: 720px) {
  .b2b-spec-kv-grid { grid-template-columns: 1fr; }
  .b2b-tl-row { flex-direction: column; gap: 4px; }
  .b2b-tl-dt { width: auto; }
  .b2b-fraud-hero { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   КАРТА СТО И ПОРЯДКОВЫЕ НОМЕРА КОМПАНИЙ
   ===================================================================== */

.b2b-comp-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf3ff;
  border: 1px solid #c7dafc;
  color: #1b4db1;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
.b2b-comp-no.is-lg {
  height: 28px;
  min-width: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.b2b-map-wrap {
  display: grid;
  gap: 12px;
}

.b2b-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.b2b-map-search-box {
  flex: 1 1 240px;
  min-width: 210px;
}
.b2b-map-search-box .field {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
}
.b2b-map-merch-sel {
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  max-width: 220px;
}
.b2b-map-wh-chk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 6px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.b2b-map-wh-chk input {
  width: 16px;
  height: 16px;
  accent-color: #1b4db1;
}

.b2b-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 0 2px;
}
.b2b-map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.b2b-map-legend__hint {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12px;
}
.b2b-map-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .16);
}
.b2b-map-dot.is-active { background: #15803d; }
.b2b-map-dot.is-new { background: #1b4db1; }
.b2b-map-dot.is-blocked { background: #64748b; }
.b2b-map-dot.is-wh { background: #d97706; border-radius: 3px; }

.b2b-map-pickbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #78350f;
}
.b2b-map-pickbar[hidden] { display: none; }
.b2b-map-pickbar b { display: block; font-size: 13.5px; }
.b2b-map-pickbar span { display: block; font-size: 12.5px; margin-top: 2px; color: #92400e; }

.b2b-map-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.b2b-map-sidebar {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 640px;
}

.b2b-map-list {
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
}

.b2b-map-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.b2b-map-item:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
.b2b-map-item.is-selected {
  border-color: #1b4db1;
  background: #f0f6ff;
  box-shadow: 0 0 0 2px rgba(27, 77, 177, .12);
}
.b2b-map-item.is-nogeo {
  border-style: dashed;
}

.b2b-map-item__num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
}
.b2b-map-item__num.is-active { background: #15803d; }
.b2b-map-item__num.is-new { background: #1b4db1; }
.b2b-map-item__num.is-blocked { background: #64748b; }

.b2b-map-item__body {
  flex: 1;
  min-width: 0;
}
.b2b-map-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.b2b-map-item__head b {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}
.b2b-map-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.b2b-map-tag.is-warn { background: #fef3c7; color: #b45309; }
.b2b-map-tag.is-manual { background: #e0f2fe; color: #0369a1; }

.b2b-map-item__addr {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.35;
}
.b2b-map-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.b2b-map-item__rep {
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b2b-map-item__acts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eef2f6;
}
.b2b-map-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #1b4db1;
  cursor: pointer;
}
.b2b-map-link:hover { text-decoration: underline; }
.b2b-map-link.is-accent { color: #b45309; }

.b2b-map-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-3);
}
.b2b-map-empty b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.b2b-map-empty p { margin: 0; font-size: 12.5px; }

.b2b-map-stage {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  height: 640px;
}
.b2b-yandex-map {
  width: 100%;
  height: 100%;
}
.b2b-map-loader,
.b2b-map-error {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
}

/* Кастомные номерные маркеры Яндекс.Карт */
.b2b-ymap-pin {
  position: relative;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 999px;
  border: 2.5px solid #ffffff;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .34);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  user-select: none;
}
.b2b-ymap-pin:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 5px 14px rgba(15, 23, 42, .42);
}
.b2b-ymap-pin--active { background: #15803d; }
.b2b-ymap-pin--new { background: #1b4db1; }
.b2b-ymap-pin--blocked { background: #64748b; }
.b2b-ymap-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.22);
  box-shadow: 0 0 0 4px rgba(27, 77, 177, .28), 0 6px 16px rgba(15, 23, 42, .42);
}
.b2b-ymap-pin--active.is-selected {
  box-shadow: 0 0 0 4px rgba(21, 128, 61, .28), 0 6px 16px rgba(15, 23, 42, .42);
}

.b2b-ymap-wh {
  position: relative;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 6px;
  border-radius: 7px;
  background: #d97706;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .30);
  cursor: pointer;
  user-select: none;
}

/* Балун краткой сводки на карте */
.b2b-mbal {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  min-width: 245px;
  max-width: 310px;
  padding: 2px 2px 4px;
  color: #0f172a;
}
.b2b-mbal__top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.b2b-mbal__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  background: #edf3ff;
  color: #1b4db1;
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
}
.b2b-mbal__no.is-wh { background: #fef3c7; color: #b45309; }
.b2b-mbal__title-wrap { flex: 1; min-width: 0; }
.b2b-mbal__title { display: block; font-size: 14px; line-height: 1.3; color: #0f172a; }
.b2b-mbal__pill {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.b2b-mbal__pill.is-active { background: #dcfce7; color: #15803d; }
.b2b-mbal__pill.is-new { background: #dbeafe; color: #1d4ed8; }
.b2b-mbal__pill.is-blocked { background: #f1f5f9; color: #475569; }
.b2b-mbal__pill.is-wh { background: #fef3c7; color: #b45309; }

.b2b-mbal__addr {
  margin-top: 8px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.4;
}
.b2b-mbal__meta {
  margin-top: 8px;
  display: grid;
  gap: 3px;
  font-size: 12.5px;
}
.b2b-mbal__meta span { color: #64748b; }
.b2b-mbal__meta a { color: #1b4db1; font-weight: 700; text-decoration: none; }
.b2b-mbal__kpi {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.b2b-mbal__kpi small { display: block; font-size: 10.5px; color: #64748b; }
.b2b-mbal__kpi b { display: block; font-size: 12.5px; color: #0f172a; margin-top: 1px; }
.b2b-mbal__note {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12px;
  color: #78350f;
  line-height: 1.35;
}
.b2b-mbal__acts {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.b2b-mbal__acts .btn {
  flex: 1 1 auto;
  justify-content: center;
  text-decoration: none;
}

/* Карточка «Подробнее» */
.b2b-mdet-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.b2b-mdet-kpi > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.b2b-mdet-kpi span { display: block; font-size: 11.5px; color: var(--ink-3); }
.b2b-mdet-kpi b { display: block; font-size: 16px; color: var(--ink); margin-top: 4px; }
.b2b-mdet-kpi small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.b2b-mdet-sec {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.b2b-mdet-sec h3 {
  font-size: 14px;
  font-weight: 720;
  color: var(--ink);
  margin: 0 0 10px;
}

@media (max-width: 980px) {
  .b2b-map-layout {
    grid-template-columns: 1fr;
  }
  .b2b-map-stage {
    order: -1;
    height: 440px;
  }
  .b2b-map-sidebar {
    height: auto;
    max-height: 420px;
  }
  .b2b-map-legend__hint {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .b2b-mdet-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2b-map-stage {
    height: 380px;
  }
}

/* =====================================================================
   B2B Partner API v1 — Ключ, анкета активации, документация и админка
   ===================================================================== */

.b2b-api-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}
.b2b-api-dot.is-active { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
.b2b-api-dot.is-pending { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2); }

.b2b-api-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(27, 77, 177, 0.1);
  color: var(--cold);
  box-shadow: inset 0 0 0 1px rgba(27, 77, 177, 0.22);
}

.b2b-api-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.b2b-api-pill.is-inactive { background: #f2f4f7; color: #475467; box-shadow: inset 0 0 0 1px #d0d5dd; }
.b2b-api-pill.is-pending  { background: #fff7ed; color: #c2410c; box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.25); }
.b2b-api-pill.is-active   { background: rgba(19, 122, 75, 0.11); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(19, 122, 75, 0.25); }
.b2b-api-pill.is-suspended{ background: rgba(180, 35, 24, 0.11); color: #b42318; box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.25); }

.b2b-api-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  display: grid;
  gap: 18px;
}
.b2b-api-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.b2b-api-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.b2b-api-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.b2b-api-hero__desc {
  margin: 10px 0 0;
  font-size: 13.8px;
  color: var(--ink-2);
  max-width: 760px;
  line-height: 1.5;
}
.b2b-api-hero__cta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.b2b-api-keybox {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.b2b-api-keybox__lbl {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.b2b-api-keybox__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.b2b-api-keybox__input {
  flex: 1;
  min-width: 240px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 600;
  background: #fff;
}
.b2b-api-keybox__hint {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
}
.b2b-inline-code {
  background: #eef2f6;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--ink);
}

.b2b-api-app-summary {
  padding: 12px 15px;
  border-radius: 12px;
  background: #f8faff;
  border: 1px solid rgba(27, 77, 177, 0.2);
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
}

.b2b-api-usage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.b2b-api-usage-strip > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.b2b-api-usage-strip span { display: block; font-size: 11.5px; color: var(--ink-3); }
.b2b-api-usage-strip b { display: block; font-size: 14.5px; color: var(--ink); margin-top: 4px; word-break: break-word; }

.b2b-api-ip-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.b2b-api-test-res {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12.5px;
}
.b2b-api-test-res.is-ok { border-color: rgba(22, 163, 74, 0.45); }
.b2b-api-test-res.is-err { border-color: rgba(220, 38, 38, 0.45); }
.b2b-api-test-res pre {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.b2b-api-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.b2b-api-doc-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.b2b-api-doc-card h4 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 720;
  color: var(--ink);
}
.b2b-api-doc-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.b2b-api-ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
  display: grid;
  gap: 5px;
}
.b2b-api-ul code, .b2b-api-table code, .b2b-api-subh code {
  background: #eef2f6;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #0f172a;
}
.b2b-api-hint {
  margin: 8px 0 0 !important;
  font-size: 12px !important;
  color: var(--ink-3) !important;
}
.b2b-api-subh {
  margin: 20px 0 10px;
  font-size: 15px;
  font-weight: 720;
  color: var(--ink);
}
.b2b-http-m {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 750;
}
.b2b-http-m.is-get  { background: rgba(19, 122, 75, 0.11); color: var(--ok); }
.b2b-http-m.is-post { background: rgba(27, 77, 177, 0.11); color: var(--cold); }

.b2b-api-lang-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.b2b-api-lang-btn {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}
.b2b-api-lang-btn.is-active {
  background: var(--cold);
  border-color: var(--cold);
  color: #fff;
}

.b2b-api-codebox {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
}
.b2b-api-codebox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #94a3b8;
}
.b2b-api-codebox pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.3px;
  line-height: 1.55;
  color: #e2e8f0;
}

.b2b-api-checks {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
tr.b2b-api-row-pending {
  background: rgba(245, 158, 11, 0.06);
}

@media (max-width: 900px) {
  .b2b-api-docs-grid,
  .b2b-api-usage-strip {
    grid-template-columns: 1fr;
  }
  .b2b-api-hero {
    padding: 16px;
  }
}

#b2b-catalog-anchor,
.b2b-pdetail {
  scroll-margin-top: calc(var(--header-h, 68px) + 16px);
}

.b2b-merch-tier-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border-radius: 10px;
  background: #f2f4f7;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.b2b-merch-tier-btn {
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}

.b2b-merch-tier-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.b2b-merch-tier-btn.is-active {
  background: #fff;
  color: var(--cold);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 0 0 1px rgba(17, 85, 204, 0.16);
}

/* Поле пароля с переключателем видимости ("глаз") */
.b2b-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  font-weight: 400;
  z-index: 12;
}
.b2b-pwd-toggle {
  z-index: 15;
}
.b2b-pwd-wrap input {
  width: 100%;
  padding-right: 44px;
}
.b2b-pwd-wrap input::-ms-reveal,
.b2b-pwd-wrap input::-ms-clear {
  display: none;
}
.b2b-pwd-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3, #667085);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.b2b-pwd-toggle:hover,
.b2b-pwd-toggle:focus-visible {
  color: var(--ink, #14171b);
  background: rgba(16, 24, 40, .06);
  outline: none;
}
.b2b-pwd-toggle.is-shown {
  color: var(--cold, #1b4db1);
}


/* Autocomplete suggestions in B2B Search Hero */
#b2b-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
  max-height: min(480px, 75vh);
  overflow-y: auto;
}
#b2b-search-results:not([hidden]),
.b2b-search-hero__form.search--open #b2b-search-results {
  display: block !important;
}
#b2b-search-results[hidden] {
  display: none !important;
}
#b2b-search-results .results__row {
  cursor: pointer;
  transition: background .12s;
}
#b2b-search-results .results__row:hover {
  background: #f1f5f9;
}


/* --- Client Markup (Клиентская наценка как в РОССКО) --- */
.b2b-markup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink-2, #334155);
  cursor: pointer;
  transition: all .15s ease;
}
.b2b-markup-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.b2b-markup-btn.is-active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  box-shadow: 0 0 0 1px #10b981;
}
.b2b-markup-btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ink-2, #334155);
  font-size: 12px;
  font-weight: 700;
}
.b2b-markup-btn.is-active .b2b-markup-btn__badge {
  background: #10b981;
  color: #ffffff;
}

/* Quick round icon in catalog header or price column */
.b2b-markup-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink-2, #475569);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  transition: all .15s ease;
}
.b2b-markup-icon-btn:hover {
  border-color: #10b981;
  color: #047857;
  background: #ecfdf5;
}
.b2b-markup-icon-btn.is-active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Info banner when markup is enabled */
.b2b-markup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #065f46;
}
.b2b-markup-banner__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.b2b-markup-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.b2b-markup-banner__sub {
  display: block;
  font-size: 11px;
  color: #047857;
  opacity: .85;
}
.b2b-markup-banner__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Markup Modal / Dialog */
.b2b-markup-dialog-wrap {
  animation: b2bFadeIn .15s ease-out;
}
@keyframes b2bFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.b2b-markup-card {
  max-width: 480px;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.22);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}
.b2b-markup-tab-btn {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3, #64748b);
  cursor: pointer;
  transition: all .15s ease;
}
.b2b-markup-tab-btn:hover {
  color: var(--ink, #0f172a);
}
.b2b-markup-tab-btn.is-active {
  background: #ffffff;
  color: var(--ink, #0f172a);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.b2b-markup-chip {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #334155);
  cursor: pointer;
  transition: all .12s ease;
}
.b2b-markup-chip:hover {
  border-color: #10b981;
  color: #047857;
  background: #ecfdf5;
}
.b2b-markup-chip.is-active {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

/* Prices styling */
.pline__price--marked {
  color: #059669 !important;
}
.b2b-pline__cost-sub {
  font-size: 12px;
  color: var(--ink-3, #64748b);
  margin-top: 2px;
}
.b2b-pline__cost-sub b {
  color: var(--ink-2, #334155);
}
.b2b-profit-badge {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
