/**
 * styles.css — интерфейс приложения (колонка ~500px, «телеграмный» стиль).
 *
 * Оглавление (поиск по тексту «NN —»):
 *   01 — Токены :root, медиа, сброс, html/body
 *   02 — Каркас: .app-root, .app-main, сессия, .login-gate
 *   03 — Шапка: .app-header, поиск, печать
 *   04 — Вкладки: .view, .panel-card, .tab-bar
 *   05 — Вкладки «Пользователи» и «Звонки»: оболочки, списки, .calls-peer
 *   06 — Строка пользователя, тулбар, .tg-avatar; админка пользователя; .tg-btn; профиль
 *   07 — Список заказов: .orders-accordion (гармошка по статусам)
 *   08 — Строка заказа .order-row; контекстное меню; модалка оплаты; платежи RO
 *   09 — Общие .order-detail-* (профиль, шапка); страница заказа — order-page.css
 *   11 — Расчёт (вкладка «Сетки»): .sheet, выбор позиций, таблица .price-table
 *   12 — Док «Сохранить» .save-order-dock
 *
 * Подразделы внутри крупных зон: комментарии вида «--- … ---».
 */

/* ========== 01 — Токены, сброс, страница ========== */

:root {
  --bg: #f0f2f5;
  --surface: #fff;
  --text: #222;
  --hint: #6d7a87;
  --accent: #ff6b26;
  --accent-press: #e85a18;
  --field-border: #dfe4e9;
  --field-bg: #f4f6f9;
  --row-hover: #eef2f6;
  --bubble: #eef1f5;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .07);
  --shadow-float: 0 4px 24px rgba(0, 0, 0, .1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tap: 0.15s ease;
  /* Высота tab-bar: иконка + отступы + safe-area (см. .tab-bar__btn padding-bottom) */
  --tab-bar-stack: calc(54px + env(safe-area-inset-bottom, 0px));
  /* Нижний край шапки: как в .app-header (верхний отступ + блок заголовка/статуса + низ) */
  --app-header-stack: calc(max(6px, env(safe-area-inset-top, 0px)) + 4.35rem);
  --save-dock-scroll-pad: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

html {
  font-size: 15px;
}

/* iOS Safari: для системного pull-to-refresh нужен нативный скролл корня страницы */
@media (pointer: coarse) {
  html {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    min-height: 100%;
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  body:has(.app-main.is-production-active) {
    overflow: hidden;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  font: 0.94rem var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

/* ========== 02 — Каркас приложения и вход ========== */

.app-root {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}

.app-main {
  flex: 1;
  overflow: visible;
  padding: 0;
  padding-bottom: var(--tab-bar-stack);
}

/* Пока неизвестна сессия — не показываем интерфейс и не показываем форму входа (нет мигания для уже вошедших) */
.app-root.auth-pending {
  background: var(--bg);
}

.app-root.auth-pending .app-workspace,
.app-root.auth-pending .tab-bar,
.app-root.auth-pending .save-order-dock {
  visibility: hidden !important;
  pointer-events: none;
}

.app-root.auth-pending .app-main {
  padding-bottom: 0;
}

.app-root.auth-pending .login-gate {
  display: none !important;
}

.app-root.auth-pending #public-yandex-landing {
  display: none !important;
}

/* Гость: сначала публичный лендинг Яндекса, затем форма входа (без @media — clamp/min/flex) */
.public-yandex-landing {
  display: none;
  --landing-pad-x: clamp(14px, 5vw, 26px);
  --landing-max: min(100%, 36rem);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 var(--landing-pad-x) calc(28px + env(safe-area-inset-bottom, 0));
  padding-top: env(safe-area-inset-top, 0);
  background:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(255, 107, 38, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 15%, rgba(99, 102, 241, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #e8edf3 100%);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.public-yandex-landing__topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-left: calc(-1 * var(--landing-pad-x));
  margin-right: calc(-1 * var(--landing-pad-x));
  padding: max(10px, calc(env(safe-area-inset-top, 0px) + 6px)) var(--landing-pad-x) 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.public-yandex-landing__topbar-inner {
  width: 100%;
  max-width: var(--landing-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 3vw, 18px);
}

.public-yandex-landing__topbar-brand {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.public-yandex-landing__brand {
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.public-yandex-landing__topbar-tag {
  font-size: clamp(0.62rem, 2.6vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
  line-height: 1.3;
}

.public-yandex-landing__login-btn {
  flex: 0 0 auto;
  width: clamp(2.7rem, 9vmin, 3.35rem);
  height: clamp(2.7rem, 9vmin, 3.35rem);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: clamp(12px, 3.5vmin, 14px);
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.public-yandex-landing__login-btn:hover {
  border-color: rgba(255, 107, 38, 0.45);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(255, 107, 38, 0.15);
}

.public-yandex-landing__login-btn:active {
  transform: scale(0.96);
}

.public-yandex-landing__login-icon {
  display: block;
  width: clamp(1.15rem, 4.2vmin, 1.35rem);
  height: clamp(1.15rem, 4.2vmin, 1.35rem);
}

.public-yandex-landing__inner {
  width: 100%;
  max-width: var(--landing-max);
  margin: 0 auto;
  padding-top: clamp(14px, 3.5vw, 22px);
}

.public-yandex-landing__hero {
  margin-bottom: clamp(18px, 4vw, 26px);
}

.public-yandex-landing__headline {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.public-yandex-landing__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.public-yandex-landing__intro p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.public-yandex-landing__intro-note {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  color: #334155;
}

.public-yandex-landing__demo {
  margin-bottom: 12px;
}

.public-yandex-landing__demo-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.public-yandex-landing__demo-lead {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
}

.public-yandex-landing__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.public-yandex-landing__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.public-yandex-landing__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.public-yandex-landing__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 38, 0.2);
}

.public-yandex-landing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.public-yandex-landing__btn:active {
  transform: translateY(1px);
}

.public-yandex-landing__btn--primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-press) 100%);
  box-shadow: 0 4px 18px rgba(255, 107, 38, 0.38);
}

.public-yandex-landing__btn--primary:hover {
  filter: brightness(1.04);
}

.public-yandex-landing__hint {
  font-size: clamp(0.78rem, 2.8vw, 0.82rem);
  color: #b45309;
  margin-bottom: clamp(10px, 2.5vw, 14px);
  line-height: 1.45;
}

.public-yandex-landing__legal {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(14px, 3.5vw, 18px) clamp(14px, 3.5vw, 20px);
  margin-bottom: clamp(18px, 4vw, 28px);
}

.public-yandex-landing__legal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.public-yandex-landing__legal-lead {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.public-yandex-landing__legal-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
}

.public-yandex-landing__legal-list li {
  margin-bottom: 6px;
}

.public-yandex-landing__legal-links {
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0;
}

.public-yandex-landing__legal-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.public-yandex-landing__legal-links a:hover {
  text-decoration: underline;
}

.public-yandex-landing__map-section {
  padding-top: clamp(4px, 1.5vw, 10px);
  padding-bottom: clamp(6px, 2vw, 14px);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.public-yandex-landing__map-section-title {
  margin: 0 0 clamp(6px, 1.5vw, 10px);
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.public-yandex-landing__map-section-lead {
  margin: 0 0 clamp(12px, 3vw, 16px);
  font-size: clamp(0.8rem, 2.9vw, 0.88rem);
  line-height: 1.5;
  color: #64748b;
}

.public-yandex-landing__map-wrap {
  border-radius: clamp(12px, 3.5vw, 18px);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.1);
  margin-bottom: clamp(12px, 3vw, 16px);
  background: #e2e8f0;
}

.public-yandex-landing__map {
  width: 100%;
  height: clamp(10.5rem, 42vmin, 23rem);
}

.public-yandex-landing__note {
  font-size: clamp(0.82rem, 2.9vw, 0.9rem);
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  padding: clamp(12px, 3vw, 16px) clamp(12px, 3vw, 18px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: clamp(12px, 3vw, 14px);
  border: 1px solid #e2e8f0;
  min-height: clamp(2.75rem, 8vmin, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-root.is-guest.guest-yandex-landing #public-yandex-landing {
  display: block;
}

.app-root.is-guest.guest-yandex-landing .login-gate {
  display: none !important;
}

.app-root.is-guest.guest-picked-login #public-yandex-landing {
  display: none !important;
}

/* Гость: компактный вход, остальное скрыто */
.app-root.is-guest .login-gate {
  display: flex !important;
}

.app-root.is-guest .app-workspace,
.app-root.is-guest .tab-bar,
.app-root.is-guest .save-order-dock {
  display: none !important;
}

.app-root.is-guest .app-main {
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.app-root:not(.auth-pending):not(.is-guest) .login-gate {
  display: none !important;
}

/* --- Вход (гость) --- */

.login-gate {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 18px max(20px, env(safe-area-inset-bottom, 0px));
  min-height: min(100dvh, 100vh);
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(255, 107, 38, 0.1), transparent 55%),
    linear-gradient(180deg, #f1f5f9 0%, #e8edf3 100%);
}

.login-gate__inner {
  width: 100%;
  max-width: 400px;
}

.login-gate__card.panel-card {
  padding: 22px 20px 20px;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(15, 23, 42, 0.1);
}

.login-gate__back-public {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 107, 38, 0.08);
  border: 1px solid rgba(255, 107, 38, 0.25);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}

.login-gate__back-public:hover {
  background: rgba(255, 107, 38, 0.12);
}

.login-gate__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.2;
  color: #0f172a;
}

.login-gate__lead {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

.login-gate__field {
  margin-bottom: 10px;
}

.login-gate__field .lbl {
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.login-gate__field input {
  padding: 9px 11px;
  font-size: 0.92rem;
}

.login-gate__err {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #c62828;
}

.login-gate__submit {
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

/* ========== 03 — Шапка приложения ========== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 45;
  margin: 0;
  padding: max(6px, env(safe-area-inset-top, 0px)) 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-header__lead {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.app-header-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background var(--tap), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Иначе display из класса перебивает атрибут hidden — кнопка остаётся на Прайс / Заказы / и т.д. */
.app-header-back[hidden] {
  display: none !important;
}

.app-header-back:hover {
  background: rgba(255, 107, 38, 0.1);
}

.app-header-back:active {
  transform: scale(0.94);
}

.app-header-back__icon {
  display: block;
  margin-left: -2px;
}

.app-header__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: nowrap;
}

.app-header__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.app-header__status {
  margin: 0;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: fit-content;
  white-space: nowrap;
}

.app-header__status[hidden] {
  display: none !important;
}

.app-header__tail {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-header__titles-block {
  flex: 1;
  min-width: 0;
}

.app-header__search-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
}

.app-header__search-slot[hidden] {
  display: none !important;
}

/* Режим поиска: поле на всю шапку */
.app-header.is-orders-search-open {
  gap: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.app-header.is-orders-search-open .app-header__lead,
.app-header.is-orders-search-open .app-header__tail {
  display: none !important;
}

.app-header.is-orders-search-open .app-header__search-slot {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.app-header.is-orders-search-open .orders-header-search-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 8px 4px;
  font-size: 0.92rem;
  font-weight: 400;
  background: transparent;
}

.app-header.is-orders-search-open .orders-header-search-clear {
  width: 36px;
  height: 36px;
  color: rgba(0, 0, 0, 0.42);
}

.board-browse.is-search-loading #board-panel-search.is-active {
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.orders-hint--pending {
  opacity: 0.75;
}

.board-order__hl {
  background: rgba(255, 210, 64, 0.42);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.board-search-idle {
  padding: 24px 16px 28px;
  text-align: center;
}

.board-search-idle__hint {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.48);
  max-width: 22em;
  margin-inline: auto;
}

.board-search-idle__keys {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.42);
}

.board-search-idle__keys kbd {
  display: inline-block;
  min-width: 1.35em;
  padding: 2px 6px;
  font: inherit;
  font-size: 0.95em;
  line-height: 1.25;
  text-align: center;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.board-search-idle__sep {
  margin: 0 2px;
}

.board-search-idle__plus {
  margin: 0 -1px;
  opacity: 0.65;
}

.board-order__row.is-search-active {
  background: rgba(59, 130, 246, 0.09);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: inset 3px 0 0 rgba(59, 130, 246, 0.72);
}

.board-order__row--archived {
  opacity: 0.78;
}

.board-order__row--archived .board-order__t {
  color: rgba(0, 0, 0, 0.52);
}

/* «По дням»: не сегодня — мягкий тёмно-синий фон строки */
.board-order__row--compact-days.board-order__row--not-today {
  background: #dde4ef;
  border-color: rgba(30, 58, 95, 0.1);
  box-shadow: 0 1px 2px rgba(30, 58, 95, 0.06);
}
.board-order__row--compact-days.board-order__row--not-today.is-selected {
  background: #dce8f8;
  border-color: rgba(255, 107, 38, 0.32);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Сортировка списка на /board */
.app-header:has(.app-header-board-switch:not([hidden])) {
  padding-top: max(4px, env(safe-area-inset-top, 0px));
  padding-bottom: 6px;
}

.app-header:has(.app-header-board-switch:not([hidden])) .app-header__title {
  font-size: 0.88rem;
}

.app-header-board-switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0 0 0 6px;
  padding: 2px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 9px;
}

.app-header-board-switch[hidden] {
  display: none !important;
}

.app-header-board-switch__btn {
  flex: 0 0 auto;
  min-width: 5.6em;
  margin: 0;
  padding: 5px 8px;
  border: none;
  border-radius: 7px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--hint);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: color var(--tap), background var(--tap), box-shadow var(--tap);
  -webkit-tap-highlight-color: transparent;
}

.app-header-board-switch__btn[hidden] {
  display: none !important;
}

.app-header-board-switch__btn.is-active,
.app-header-board-switch__btn[aria-pressed='true'] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.app-header-board-switch__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.app-header-board-today {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 2px 4px 2px 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.app-header-board-today[hidden] {
  display: none !important;
}

.app-header-board-today__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--hint);
  white-space: nowrap;
}

.app-header-board-today__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.app-header-board-today__track {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.2);
  transition: background var(--tap);
}

.app-header-board-today__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  transition: transform var(--tap);
}

.app-header-board-today__input:checked + .app-header-board-today__track {
  background: var(--accent);
}

.app-header-board-today__input:checked + .app-header-board-today__track::after {
  transform: translateX(16px);
}

.app-header-board-today__input:focus-visible + .app-header-board-today__track {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.orders-header-search-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 5px 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.orders-header-search-input::-webkit-search-cancel-button,
.orders-header-search-input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.orders-header-search-input::placeholder {
  color: var(--hint);
  opacity: 0.88;
}

.orders-header-search-clear {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: background var(--tap), color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.orders-header-search-clear__icon {
  display: block;
}

.orders-header-search-clear:hover {
  color: rgba(0, 0, 0, 0.52);
  background: rgba(0, 0, 0, 0.05);
}

.orders-header-search-clear:active {
  background: rgba(0, 0, 0, 0.08);
}

.app-header-add-order {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background var(--tap), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-header-add-order:hover {
  background: rgba(255, 107, 38, 0.1);
}

.app-header-add-order:active {
  transform: scale(0.94);
}

.app-header-add-order:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-header-add-order__icon {
  display: block;
}

.app-header-add-order[hidden] {
  display: none !important;
}

.app-header-add-order:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.app-header-search-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background var(--tap), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-header-search-btn:hover {
  background: rgba(255, 107, 38, 0.1);
}

.app-header-search-btn:active {
  transform: scale(0.94);
}

.app-header-search-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-header-search-btn__icon {
  display: block;
}

.app-header-search-btn__icon--close {
  display: none;
}

.app-header-search-btn.is-open {
  background: rgba(255, 107, 38, 0.12);
}

.app-header-search-btn.is-open .app-header-search-btn__icon--open {
  display: none;
}

.app-header-search-btn.is-open .app-header-search-btn__icon--close {
  display: block;
}

.app-header-search-btn[hidden] {
  display: none !important;
}

.app-header-print {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--accent);
  cursor: pointer;
  transition: background var(--tap), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-header-print[hidden] {
  display: none !important;
}

.app-header-print:hover {
  background: rgba(255, 107, 38, 0.12);
}

.app-header-print:active {
  transform: scale(0.94);
}

.app-header-print:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-header-print__icon {
  display: block;
}

.app-brief-toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(var(--tab-bar-stack, 56px) + 12px);
  transform: translateX(-50%) translateY(12px);
  max-width: min(92vw, 22rem);
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-brief-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-brief-toast[hidden] {
  display: none !important;
}

.app-main.has-save-dock {
  padding-bottom: calc(var(--tab-bar-stack) + var(--save-dock-scroll-pad));
}

/* ========== 04 — Вкладки: вьюхи, карточки, нижний tab-bar ========== */

.view {
  display: none;
  animation: view-in 0.18s ease;
}

.view.is-active {
  display: block;
}

section.view.is-active > .panel-card,
section.view.is-active > .board-browse,
section.view.is-active > .calls-browse,
section.view.is-active > .users-browse,
section.view.is-active > .profile-browse,
section.view.is-active > .order-detail:not([hidden]) {
  margin-top: 4px;
}

/* Данные сводки / звонков — лёгкое затемнение на время запроса */
.board-browse.is-data-loading .board-browse__card,
.calls-browse.is-data-loading .calls-list,
.orders-map-root.is-data-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

#view-map.is-active {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--app-header-stack) - var(--tab-bar-stack));
}

.orders-map-hint {
  font-size: 12px;
  color: var(--color-text-secondary, #666);
  padding: 6px 12px 0;
  line-height: 1.35;
}

.orders-map-err {
  margin: 6px 12px 0;
}

.orders-map-root {
  flex: 1 1 auto;
  min-height: 280px;
  margin-top: 4px;
  position: relative;
}

.orders-map-root .leaflet-container {
  width: 100%;
  height: calc(100dvh - var(--app-header-stack) - var(--tab-bar-stack) - 36px);
  min-height: 280px;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: #eef1f4;
}

.orders-map-marker {
  background: none !important;
  border: none !important;
}

.orders-map-marker__pin {
  display: block;
  width: 28px;
  height: 36px;
  background: #3390ec;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(25, 32, 42, 0.28);
  position: relative;
}

.orders-map-marker__pin::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
}

.orders-map-marker--pinned .orders-map-marker__pin {
  background: var(--accent, #ff6b26);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent, #ff6b26) 45%, transparent);
}

.orders-map-leaflet-popup .leaflet-popup-content {
  margin: 10px 12px;
}

.orders-map-popup__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.orders-map-popup__addr {
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.orders-map-popup__status {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.orders-map-popup__open {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: #3390ec;
  color: #fff;
  cursor: pointer;
}

.orders-map-popup__open:hover {
  background: #2a7fd4;
}

@keyframes view-in {
  from { opacity: 0.88; }
  to { opacity: 1; }
}

.panel-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
}

.tab-bar {
  position: fixed;
  z-index: 60;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  /* Без боковых полей: вся ширина — зоны кнопок; safe-area только внутри кнопок */
  padding: 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, .07);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .04);
  pointer-events: auto;
}

.tab-bar__btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 10px 2px calc(10px + env(safe-area-inset-bottom, 0px));
  min-height: 48px;
  font: inherit;
  color: var(--hint);
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: color var(--tap), background var(--tap);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tab-bar__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
}

.tab-bar__btn:hover {
  color: var(--text);
  background: rgba(0, 0, 0, .03);
}

.tab-bar__btn.is-active {
  color: var(--accent);
}

.tab-bar__ico {
  display: block;
  flex-shrink: 0;
  opacity: 0.92;
}

.tab-bar__btn.is-active .tab-bar__ico {
  opacity: 1;
}

.users-browse .panel-card {
  padding: 10px 12px 12px;
}

.calls-browse .panel-card {
  /* как у заказов: список до краёв карточки */
  padding: 0;
}

.profile-browse .panel-card {
  padding: 10px 12px 12px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.profile-logout-btn {
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--hint);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  transition: background var(--tap), border-color var(--tap), color var(--tap);
}

.profile-logout-btn:hover {
  background: var(--row-hover);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.12);
}

.profile-logout-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.profile-google-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.profile-google-hint {
  margin: 4px 0 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--hint);
}

.profile-google-status {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text);
}

.profile-google-auto {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
}

.profile-google-auto input {
  margin-top: 2px;
  flex-shrink: 0;
}

.profile-google-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-google-actions .order-detail-save,
.profile-google-actions .tg-btn {
  width: 100%;
  justify-content: center;
}

.profile-google-progress {
  margin: 0 0 10px;
}

.profile-google-progress__bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.profile-google-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.profile-google-progress__text {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text);
}

/* ========== 05 — Вкладки «Пользователи» и «Звонки»: оболочки, списки, карточка звонка ========== */

.users-browse {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calls-browse {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calls-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.calls-load-more {
  display: flex;
  justify-content: center;
  padding: 8px 4px 4px;
}

.calls-load-more__btn {
  margin: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: rgba(51, 144, 236, 0.08);
  border: 1px solid rgba(51, 144, 236, 0.28);
  border-radius: 10px;
  transition: background var(--tap), border-color var(--tap);
  -webkit-tap-highlight-color: transparent;
}

.calls-load-more__btn:hover {
  background: rgba(51, 144, 236, 0.12);
  border-color: rgba(51, 144, 236, 0.4);
}

.calls-load-more__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Гармошка звонков по дням (класс .orders-accordion + .calls-acc-*) */
.calls-acc-head .calls-acc-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  width: 100%;
}

.calls-acc-day-primary {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--text);
}

.calls-acc-day-secondary {
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hint);
}

.calls-acc-day-stats {
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--text);
  margin-top: 2px;
  opacity: 0.95;
}

.calls-acc-section .orders-acc-head {
  align-items: flex-start;
}

.calls-acc-section .orders-acc-badge {
  margin-top: 1px;
}

.tg-avatar--xs {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

.tg-avatar--xs .tg-avatar-letter {
  font-size: 0.92rem;
}

/* Компактный аватар в списке звонков (как в чат-листе Telegram) */
.tg-avatar--2xs {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.tg-avatar--2xs .tg-avatar-letter {
  font-size: 0.82rem;
}

/* Колонка контента рядом с аватаром в .tg-peer (звонки, пользователи): общая сетка */
.tg-peer-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Списки пользователей: подписи слева; у карточек звонков колонка по умолчанию — stretch */
.user-row__main {
  align-items: flex-start;
}

/* ——— Звонки: как .order-row (карточка, hover), слева звонок, справа суммы→номера ——— */
.calls-peer.tg-peer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  min-height: 2.5rem;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--surface);
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-width: 0;
  transition: background var(--tap), border-color var(--tap), box-shadow var(--tap);
  -webkit-touch-callout: none;
}

.calls-peer.tg-peer:hover {
  background: var(--row-hover);
  border-color: rgba(51, 144, 236, 0.22);
}

.calls-peer.tg-peer:active {
  filter: brightness(0.99);
}

.calls-peer .calls-peer__call-col {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 2.85rem;
  min-width: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calls-peer .calls-peer__text-col {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.calls-peer .calls-peer__orderlike-main {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.calls-peer .order-row__tags {
  min-width: 0;
}

/* Номера справа — как .order-row__money: не сжимать колонку, адрес не заезжает */
.calls-peer .calls-peer__call-phones {
  flex-shrink: 0;
  max-width: 42%;
}

.calls-peer .calls-peer__call-phone-from,
.calls-peer .calls-peer__call-phone-to {
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
}

.calls-peer .calls-peer__rail-actions {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 30px;
}

/* Резерв под кнопку play, чтобы колонка номеров не «прыгала» */
.calls-peer__play-slot {
  box-sizing: border-box;
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* Плашка типа звонка — в духе .order-row__status-pill */
.calls-peer__kind-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}

.calls-peer__kind-pill[data-kind='missed'] {
  background: rgba(229, 57, 53, 0.14);
  color: #c62828;
}

.calls-peer__kind-pill[data-kind='out-unans'] {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.calls-peer__kind-pill[data-kind='out'] {
  background: rgba(51, 144, 236, 0.16);
  color: var(--accent);
}

.calls-peer__kind-pill[data-kind='answered-in'] {
  background: rgba(76, 175, 80, 0.16);
  color: #2e9d47;
}

.calls-peer__kind-pill[data-kind='answered-out'] {
  background: rgba(0, 137, 123, 0.14);
  color: #00695c;
}

.calls-peer__kind-pill[data-kind='other'] {
  background: rgba(107, 123, 140, 0.16);
  color: #5a6a7a;
}

.calls-peer__call,
.calls-peer__play-btn,
.calls-peer__rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  color: var(--accent);
  background: rgba(51, 144, 236, 0.1);
  border: 1px solid rgba(51, 144, 236, 0.28);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--tap), border-color var(--tap), filter var(--tap);
  -webkit-tap-highlight-color: transparent;
}

.calls-peer__call:hover,
.calls-peer__play-btn:hover,
.calls-peer__rail-btn:hover {
  background: rgba(51, 144, 236, 0.16);
  border-color: rgba(51, 144, 236, 0.4);
}

.calls-peer__call:focus-visible,
.calls-peer__play-btn:focus-visible,
.calls-peer__rail-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.calls-peer__rail-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.calls-peer__play-btn[aria-pressed='true'] {
  background: rgba(51, 144, 236, 0.2);
  border-color: rgba(51, 144, 236, 0.48);
}

.calls-peer__call--disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.38;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--hint);
}

.calls-peer__call-icon,
.calls-peer__play-icon {
  display: block;
  flex-shrink: 0;
}

.calls-peer__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: 1px;
  min-width: 0;
}

.calls-peer__order-row {
  min-width: 0;
  width: 100%;
}

.calls-peer__player-row {
  width: 100%;
  min-width: 0;
}

/* Как у .calls-peer__narrative (первая строка карточки) */
.calls-peer__order-btn {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #141820;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.calls-peer__order-btn:hover {
  opacity: 0.88;
}

.calls-peer__order-btn:active {
  opacity: 0.82;
}

.calls-peer__create-order-btn {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.calls-peer__create-order-btn:hover {
  opacity: 0.88;
  text-decoration: underline;
}

.calls-peer__create-order-btn:active {
  opacity: 0.82;
}

.calls-peer__create-order-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  text-decoration: none;
}

.calls-peer__order-no {
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: inherit;
  white-space: nowrap;
}

.calls-peer__order-sep {
  flex-shrink: 0;
  letter-spacing: inherit;
}

.calls-peer__order-addr {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: inherit;
  color: var(--text);
}

.calls-peer__recording-dateline {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--hint);
}

.calls-peer__player {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.calls-peer__audio {
  width: 100%;
  max-width: 100%;
  height: 22px;
  vertical-align: middle;
  opacity: 0.95;
}

#view-calls .orders-hint {
  margin: 4px 2px 2px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text);
}

#view-calls .orders-err {
  margin: 4px 2px 2px;
  font-size: 0.72rem;
  line-height: 1.3;
}

/* ========== 06 — Пользователи: тулбар, строка, аватары; админка; tg-btn; профиль ========== */

.users-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.users-list-toolbar__title {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.users-add-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  transition: filter var(--tap), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.users-add-btn:hover {
  filter: brightness(1.04);
}

.users-add-btn:active {
  transform: scale(0.98);
}

.users-add-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #ff9a6b 0%, #ff6b26 100%);
  display: grid;
  place-items: stretch;
  justify-items: stretch;
  align-items: stretch;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

.tg-avatar--sm {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
}

.tg-avatar--lg {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
}

.tg-avatar__img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

.tg-avatar-letter {
  grid-area: 1 / 1;
  z-index: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  text-align: center;
}

.tg-avatar--lg .tg-avatar-letter {
  font-size: 1.65rem;
}

.user-row.tg-peer {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  background: var(--field-bg);
  border-radius: 12px;
  border: 1px solid var(--field-border);
  transition: background var(--tap), border-color var(--tap);
}

.user-row--admin {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.user-row--admin:hover {
  background: var(--row-hover, rgba(51, 144, 236, 0.06));
  border-color: rgba(51, 144, 236, 0.22);
}

.user-row--admin:active {
  filter: brightness(0.99);
}

.user-row--admin:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.user-row__seen {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 1px;
}

.user-row__seen-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: min(11rem, 42vw);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--hint);
  white-space: nowrap;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(0, 0, 0, 0.04) 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-row__seen-pill__ico {
  flex-shrink: 0;
  display: block;
  opacity: 0.72;
}

.user-row__seen-pill__inner {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-row__seen--empty {
  opacity: 0.55;
}

.user-row__seen-pill.user-row__seen--empty {
  padding-left: 10px;
  background: rgba(0, 0, 0, 0.035);
  box-shadow: none;
}

.user-row__seen-pill.user-row__seen--empty .user-row__seen-pill__inner {
  font-weight: 500;
}

.user-row__chev {
  flex-shrink: 0;
  margin-left: 2px;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--hint);
  opacity: 0.65;
}

.user-row__title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.user-row__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.user-row__role-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.user-row__role-pill[data-role='administrator'] {
  background: rgba(51, 144, 236, 0.16);
  color: var(--accent);
}

.user-row__role-pill[data-role='master'] {
  background: rgba(76, 175, 80, 0.16);
  color: #2e9d47;
}

.user-row__phone {
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--hint);
}

.user-admin-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.user-admin-panel__head {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--field-border);
}

.user-admin-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.user-admin-panel__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}

.user-admin-phones-hint {
  margin: 0 0 8px;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--hint);
}

.profile-phone-ro-wrap {
  margin: 0;
}

.profile-phone-ro-wrap .profile-phone-line {
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}

.profile-phone-ro-wrap .profile-phone-line:last-child {
  margin-bottom: 0;
}

.profile-phone-ro-wrap .profile-phone-num {
  font-weight: 600;
}

.profile-phone-ro-wrap .profile-phone-lbl {
  font-size: 0.88em;
  color: var(--hint);
  font-weight: 500;
}

.user-admin-tg-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.user-admin-tg-head__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.profile-head-tg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--field-border);
}

.profile-head-tg__meta {
  gap: 8px;
}

.profile-head-tg__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--hint);
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity var(--tap), background var(--tap);
  -webkit-tap-highlight-color: transparent;
}

.tg-btn--secondary {
  background: rgba(51, 144, 236, 0.12);
  color: var(--accent);
  border-color: rgba(51, 144, 236, 0.28);
}

.tg-btn--secondary:hover {
  background: rgba(51, 144, 236, 0.18);
}

.tg-btn--ghost {
  background: transparent;
  color: var(--hint);
  border-color: var(--field-border);
}

.tg-btn--ghost:hover {
  background: var(--field-bg);
}

/* ========== 07 — Заказы: список и гармошка по статусам ========== */

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Гармошки заказов: компактно, в духе списков Telegram */
.orders-accordion {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.orders-acc-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.orders-acc-section--noviye .orders-acc-head {
  background: rgba(51, 144, 236, 0.07);
  border-color: rgba(51, 144, 236, 0.14);
}

.orders-acc-section--noviye .orders-acc-head:hover {
  background: rgba(51, 144, 236, 0.11);
}

.orders-acc-section--visit .orders-acc-head {
  background: var(--surface);
  border-color: rgba(0, 0, 0, 0.05);
}

.orders-acc-section--visit .orders-acc-head:hover {
  background: rgba(0, 0, 0, 0.028);
}

.orders-acc-section--stuck .orders-acc-head {
  background: rgba(229, 57, 53, 0.06);
  border-color: rgba(229, 57, 53, 0.14);
}

.orders-acc-section--stuck .orders-acc-head:hover {
  background: rgba(229, 57, 53, 0.09);
}

.orders-acc-section--no-answer .orders-acc-head {
  background: rgba(229, 57, 53, 0.06);
  border-color: rgba(229, 57, 53, 0.14);
}

.orders-acc-section--no-answer .orders-acc-head:hover {
  background: rgba(229, 57, 53, 0.09);
}

.orders-acc-section--ready-install .orders-acc-head {
  background: rgba(76, 175, 80, 0.07);
  border-color: rgba(46, 125, 50, 0.16);
}

.orders-acc-section--ready-install .orders-acc-head:hover {
  background: rgba(76, 175, 80, 0.1);
}

.orders-acc-section--sdelat .orders-acc-head {
  background: rgba(255, 152, 0, 0.07);
  border-color: rgba(230, 81, 0, 0.16);
}

.orders-acc-section--sdelat .orders-acc-head:hover {
  background: rgba(255, 152, 0, 0.1);
}

.orders-acc-section--delaem .orders-acc-head {
  background: rgba(92, 107, 192, 0.08);
  border-color: rgba(77, 95, 196, 0.2);
}

.orders-acc-section--delaem .orders-acc-head:hover {
  background: rgba(92, 107, 192, 0.12);
}

.orders-acc-title--visit {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: normal;
  text-wrap: balance;
}

.orders-acc-section--calculate .orders-acc-head {
  background: rgba(0, 151, 167, 0.06);
  border-color: rgba(0, 151, 167, 0.14);
}

.orders-acc-section--calculate .orders-acc-head:hover {
  background: rgba(0, 151, 167, 0.09);
}

.orders-acc-section--closed .orders-acc-head {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.orders-acc-section--closed .orders-acc-head:hover {
  background: rgba(0, 0, 0, 0.045);
}

.orders-acc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 5px 9px;
  min-height: 2rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 11px;
  box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: background var(--tap), border-color var(--tap), box-shadow var(--tap);
  -webkit-tap-highlight-color: transparent;
}

.orders-acc-head:hover {
  background: rgba(0, 0, 0, 0.025);
}

.orders-acc-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.orders-acc-title {
  flex: 1;
  min-width: 0;
}

.orders-acc-badge {
  flex-shrink: 0;
  min-width: 1.2rem;
  padding: 0 5px;
  height: 1.15rem;
  line-height: 1.15rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--hint);
  background: rgba(0, 0, 0, 0.05);
}

.orders-acc-chev {
  flex-shrink: 0;
  display: inline-block;
  font-size: 0.48rem;
  line-height: 1;
  opacity: 0.42;
  transition: transform 0.18s ease, opacity var(--tap);
}

.orders-acc-section.is-collapsed .orders-acc-chev {
  transform: rotate(-90deg);
}

.orders-acc-panel {
  min-width: 0;
  padding: 0 1px;
}

.orders-acc-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.orders-acc-empty {
  margin: 0;
  padding: 6px 6px 7px;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--hint);
  text-align: center;
}

/* ========== 08 — Строка заказа, контекстное меню, оплата, блок платежей (карточка) ========== */

.order-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  min-height: 2.5rem;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--surface);
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.04);
  transition: background var(--tap), border-color var(--tap), box-shadow var(--tap);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.order-ctx-scrim {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: rgba(25, 32, 42, 0.12);
  touch-action: none;
}

.print-choice-scrim {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-bottom));
}

.print-choice-panel {
  position: relative;
  z-index: 116;
  width: min(92vw, 20rem);
  padding: 14px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.print-choice-panel__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hint);
  padding: 2px 4px 4px;
}

.print-choice-panel__hint {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text);
  padding: 0 4px 2px;
}

.print-choice-panel__btn {
  font: inherit;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text);
  cursor: pointer;
  transition: background var(--tap), border-color var(--tap);
  -webkit-tap-highlight-color: transparent;
}

.print-choice-panel__btn:hover {
  background: var(--row-hover);
}

.print-choice-panel__btn:focus-visible {
  outline: 2px solid var(--focus-ring, #3b82f6);
  outline-offset: 2px;
}

.print-choice-panel__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-ctx-menu {
  position: fixed;
  z-index: 116;
  min-width: 15.5rem;
  max-width: min(94vw, 19rem);
  max-height: min(90dvh, calc(100vh - 24px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 8px 28px rgba(25, 32, 42, 0.14);
  overflow: hidden;
  gap: 0;
}

.order-ctx-menu__scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.order-ctx-menu__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.order-ctx-menu__title {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--hint);
  padding: 4px 8px 6px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2px;
}

.order-ctx-menu__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 4px 7px;
  flex-shrink: 0;
}

.order-ctx-menu__section + .order-ctx-menu__section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.order-ctx-menu__subtitle {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hint);
  padding: 0 4px 1px;
  flex-shrink: 0;
  opacity: 0.9;
}

.order-ctx-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.order-ctx-menu__react-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 0 2px;
  margin: 0;
  border: none;
  flex-shrink: 0;
}

.order-ctx-menu__react-btn {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--field-bg);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, background var(--tap), box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.order-ctx-menu__react-btn:hover {
  background: var(--row-hover);
  transform: scale(1.06);
}

.order-ctx-menu__react-btn:active {
  transform: scale(0.94);
}

.order-ctx-menu__react-btn.is-current {
  background: color-mix(in srgb, var(--accent) 16%, var(--field-bg));
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.order-ctx-menu__react-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.order-ctx-menu__sticker-row {
  border: none;
}

.order-ctx-menu__sticker-btn {
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
}

.order-ctx-menu__sticker-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.order-ctx-menu__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
}

.order-ctx-menu__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2rem;
  text-align: center;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.2;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--text);
  cursor: pointer;
  transition: background var(--tap), color var(--tap), box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-ctx-menu__btn:hover {
  background: var(--row-hover);
}

.order-ctx-menu__btn.is-current {
  background: color-mix(in srgb, var(--accent) 14%, var(--field-bg));
  color: var(--accent-press);
  font-weight: 650;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
}

.order-ctx-menu__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.order-ctx-menu__pay {
  width: 100%;
  margin: 0;
  font-weight: 650;
  color: var(--accent-press);
  background: color-mix(in srgb, var(--accent) 12%, var(--field-bg));
}

.order-ctx-menu__pay:hover {
  background: color-mix(in srgb, var(--accent) 20%, var(--field-bg));
}

.order-pay-root {
  position: fixed;
  inset: 0;
  z-index: 118;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.order-pay-scrim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(25, 32, 42, 0.22);
  -webkit-tap-highlight-color: transparent;
}

.order-pay-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: 16px 16px 14px;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.order-pay-title {
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.order-pay-msg {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
}

.order-pay-msg.is-err {
  color: #c62828;
}

.order-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.order-pay-btn {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--field-border);
  transition: background var(--tap), border-color var(--tap), opacity var(--tap);
}

.order-pay-btn--ghost {
  background: var(--field-bg);
  color: var(--text);
}

.order-pay-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.order-pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


/* --- Продолжение строки списка: ховер, номер, статусы, суммы --- */

.order-row:hover {
  background: var(--row-hover);
  border-color: rgba(51, 144, 236, .22);
}

.order-row:active {
  filter: brightness(0.99);
}

.order-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.order-row.is-selected {
  background: rgba(255, 107, 38, 0.09);
  border-color: rgba(255, 107, 38, 0.35);
  box-shadow: inset 3px 0 0 var(--accent);
}

.order-row__no-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 2.85rem;
  min-width: 2.85rem;
}

.order-row__no {
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
}

.order-row__visit-time {
  display: block;
  max-width: 100%;
  font-size: 0.54rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text);
  text-align: center;
  word-break: keep-all;
  hyphens: none;
}

.order-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.order-row__text-col {
  gap: 2px;
  align-items: flex-start;
}

.order-row__tags {
  --order-row-status-h: calc(4px + 0.62rem * 1.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.order-row__master-bubble.tg-avatar {
  width: var(--order-row-status-h);
  height: var(--order-row-status-h);
  min-width: var(--order-row-status-h);
  min-height: var(--order-row-status-h);
  max-width: var(--order-row-status-h);
  max-height: var(--order-row-status-h);
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}

.order-row__master-bubble .tg-avatar-letter {
  font-size: 0.5rem;
  font-weight: 700;
}

.order-row__master-bubble--empty.tg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.055);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.order-row__master-empty-icon {
  width: 56%;
  height: 56%;
  flex-shrink: 0;
  color: rgba(90, 106, 122, 0.88);
  pointer-events: none;
}

.order-row__reactions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.order-react-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px 1px 4px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.055);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
  user-select: none;
  -webkit-touch-callout: none;
}

.order-react-pill--mine {
  background: rgba(51, 144, 236, 0.14);
  box-shadow: inset 0 0 0 1px rgba(51, 144, 236, 0.35);
}

.order-react-pill__emoji {
  font-size: 1rem;
  line-height: 1;
}

.order-react-pill--sticker {
  padding: 1px 5px 1px 3px;
}

.order-react-pill__sticker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  vertical-align: middle;
}

.order-react-pill__cnt {
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--hint);
  min-width: 0.85em;
}

/* Плашки статуса — мягкие «телеграммовские» капсулы */
.order-row__status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}

.order-row__status-pill[data-status='Новый'] {
  background: rgba(51, 144, 236, 0.16);
  color: var(--accent);
}

.order-row__status-pill[data-status='Замер'] {
  background: rgba(245, 186, 40, 0.2);
  color: #b26a00;
}

.order-row__status-pill[data-status='Монтаж'] {
  background: rgba(76, 175, 80, 0.16);
  color: #2e9d47;
}

.order-row__status-pill[data-status='Не отвечает'] {
  background: rgba(229, 57, 53, 0.14);
  color: #c62828;
}

.order-row__status-pill[data-status='Рекламация'] {
  background: rgba(194, 24, 91, 0.12);
  color: #ad1457;
}

.order-row__status-pill[data-status='Делаем'] {
  background: rgba(92, 107, 192, 0.15);
  color: #4d5fc4;
}

.order-row__status-pill[data-status='Сделать'] {
  background: rgba(255, 152, 0, 0.18);
  color: #e65100;
}

.order-row__status-pill[data-status='Готов'] {
  background: rgba(0, 137, 123, 0.14);
  color: #00695c;
}

.order-row__status-pill[data-status='Рассчитать'] {
  background: rgba(0, 151, 167, 0.14);
  color: #00838f;
}

.order-row__status-pill[data-status='Закрыт'] {
  background: rgba(107, 123, 140, 0.16);
  color: #5a6a7a;
}

.order-row__status-pill[data-status='Удалён'] {
  background: rgba(121, 85, 72, 0.14);
  color: #6d4c41;
}

.order-row__address {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #141820;
  line-height: 1.35;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: subpixel-antialiased;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.order-row__money {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: right;
  max-width: 42%;
}

.order-row__money-due {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgba(20, 24, 32, 0.92);
  white-space: nowrap;
}

.order-row__money-paid {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: rgba(76, 122, 86, 0.95);
  white-space: nowrap;
}

/* ========== 09 — Общие .order-detail-* (профиль, админка, шапка; SR-заголовок заказа) ========== */

.order-detail-title--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.order-att-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.order-att-lightbox[hidden] {
  display: none !important;
}

.order-att-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.order-att-lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: min(100vw - 16px, 960px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.order-att-lightbox__close {
  pointer-events: auto;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-att-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.order-att-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(88dvh, 88vh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.order-detail-status-pill {
  display: inline-block;
  margin: 0;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(51, 144, 236, 0.12);
  color: #1a6ec9;
}

.order-detail-status-pill[data-status='Закрыт'],
.order-detail-status-pill[data-status='Удалён'] {
  background: rgba(0, 0, 0, 0.06);
  color: var(--hint);
}

.order-detail-status-pill[data-status='Монтаж'],
.order-detail-status-pill[data-status='Делаем'],
.order-detail-status-pill[data-status='Замер'] {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.order-detail-status-pill[data-status='Сделать'] {
  background: rgba(255, 152, 0, 0.18);
  color: #e65100;
}

.order-detail-status-pill[data-status='Готов'] {
  background: rgba(0, 137, 123, 0.14);
  color: #00695c;
}

.order-detail-status-pill[data-status='Не отвечает'],
.order-detail-status-pill[data-status='Рекламация'] {
  background: rgba(183, 28, 28, 0.1);
  color: #b42318;
}

.order-detail-value {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.36;
  color: var(--text);
  word-break: break-word;
}

.order-detail-value--multiline {
  white-space: pre-wrap;
}

.order-detail-kv {
  margin: 0 0 10px;
}

.order-detail-kv > .lbl {
  display: block;
  margin-bottom: 4px;
}

.order-detail-save {
  width: 100%;
  margin-top: 0;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  transition: background var(--tap), filter var(--tap);
}

.order-detail-save:hover {
  background: var(--accent-press);
}

.order-detail-save:active {
  filter: brightness(0.96);
}

.order-detail-save:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.order-detail-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.order-detail-msg {
  margin: 0 0 8px;
  font-size: 0.72rem;
  line-height: 1.32;
  text-align: center;
  color: var(--hint);
}

.order-detail-msg.is-ok {
  color: #1d7a3a;
}

.order-detail-msg.is-err {
  color: #b42318;
}

.orders-hint,
.orders-err {
  margin: 5px 0 0;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--hint);
  text-align: center;
}

.orders-hint--muted {
  opacity: 0.92;
}

.orders-err {
  color: #b42318;
}

/* Панель калькулятора в шапке: к правому краю области заголовка */
.app-header-calc-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
  margin-right: 0;
}
.app-header__title:empty {
  display: none;
}
.app-header-calc-toolbar[hidden] {
  display: none !important;
}

.app-header-icon-tool {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: var(--hint);
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: color var(--tap), background var(--tap), border-color var(--tap), box-shadow var(--tap);
  -webkit-tap-highlight-color: transparent;
}
.app-header-icon-tool:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.app-header-icon-tool[aria-pressed='true'],
.app-header-icon-tool.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.app-header-icon-tool:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.app-header-icon-tool__svg {
  display: block;
  pointer-events: none;
}

/* Все кнопки шапки калькулятора подряд, без разъезда вправо */
.app-header-order-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}
.app-header-order-tools[hidden] {
  display: none !important;
}

.delivery-toolbar-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
}

.delivery-toolbar-wrap[hidden] {
  display: none !important;
}

.delivery-toolbar-wrap--header {
  flex: 0 0 auto;
}

.delivery-select {
  width: 100%;
  margin: 0;
  padding: 9px 28px 9px 11px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  transition: border-color var(--tap), background var(--tap);
}

.delivery-select:hover {
  background: var(--row-hover);
  border-color: rgba(51, 144, 236, 0.35);
}

/* Шапка «Сетки»: иконка + прозрачный select (мм/см, прайс, доставка, скидка) */
.app-header-calc-unit-hit,
.app-header-tier-hit,
.app-header-delivery-hit,
.app-header-discount-hit {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--hint);
  transition: color var(--tap), background var(--tap), border-color var(--tap), box-shadow var(--tap);
  -webkit-tap-highlight-color: transparent;
}
.app-header-calc-unit-hit:hover,
.app-header-tier-hit:hover,
.app-header-delivery-hit:hover,
.app-header-discount-hit:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.app-header-calc-unit-hit:focus-within,
.app-header-tier-hit:focus-within,
.app-header-delivery-hit:focus-within,
.app-header-discount-hit:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.app-header-calc-unit-hit__svg,
.app-header-tier-hit__svg,
.app-header-delivery-hit__svg,
.app-header-discount-hit__svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.app-header-calc-unit-hit__select,
.app-header-tier-hit__select,
.app-header-delivery-hit__select,
.app-header-discount-hit__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.app-header-calc-unit-hit__select:focus,
.app-header-tier-hit__select:focus,
.app-header-delivery-hit__select:focus,
.app-header-discount-hit__select:focus {
  outline: none;
}
.field { margin: 0 0 11px; }
.field:last-of-type { margin-bottom: 0; }

.lbl {
  display: block;
  margin-bottom: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hint);
}

.field-hint {
  display: block;
  margin: -1px 0 6px;
  font-size: 0.7rem;
  line-height: 1.38;
  color: var(--hint);
  opacity: .95;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0;
  font: inherit;
  font-size: 0.93rem;
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--field-bg);
  transition: border-color var(--tap), box-shadow var(--tap), background var(--tap);
}

@media (max-width: 500px) {
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field textarea,
.field select,
.pop-field input[type="text"],
.pop-field input[type="number"],
.pop-manual-rub {
  padding: 9px 11px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5 6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
}

textarea { display: block; resize: vertical; min-height: 72px; line-height: 1.42; }

#sizes {
  resize: none;
  min-height: 6.5rem;
  overflow-y: hidden;
  box-sizing: border-box;
}
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: #9aa3ad;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 2px rgba(51, 144, 236, .22);
}

.order-phones-field .order-phones-heading {
  margin-bottom: 6px;
}

.order-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.order-phones-empty {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--hint);
}

.order-phone-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 38%) auto;
  gap: 6px;
  align-items: center;
}

.order-phone-tel { min-width: 0; }

.order-phone-lbl-inp {
  min-width: 0;
  font-size: 0.88rem;
}

.order-phone-remove {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--hint);
  cursor: pointer;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  transition: color var(--tap), background var(--tap), border-color var(--tap);
}

.order-phone-remove:hover {
  color: #b42318;
  background: #fef2f2;
  border-color: rgba(180, 35, 24, .22);
}

.order-phones-add {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: var(--surface);
  border: 1px dashed rgba(51, 144, 236, .35);
  border-radius: var(--radius);
  transition: background var(--tap), border-color var(--tap);
}

.order-phones-add:hover {
  background: var(--row-hover);
  border-color: rgba(51, 144, 236, .5);
}

.positions-block { margin-top: 11px; }

.discount-row { margin-top: 8px; }

.discount-row--header {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  display: flex;
}

.discount-row--header[hidden] {
  display: none !important;
}

.install-summary-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--field-border);
}
.install-summary-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 8px 10px;
  padding: 7px 11px;
  margin-bottom: 4px;
  font-size: 0.84rem;
  background: var(--field-bg);
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.install-summary-row:last-child { margin-bottom: 0; }
.install-summary-title { font-weight: 500; min-width: 0; }
.install-summary-meta {
  font-size: 0.78rem;
  color: var(--hint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.install-summary-cost {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  margin-bottom: 6px;
  padding: 9px 11px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--field-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--tap), border-color var(--tap), transform .1s ease;
}

.pos-row:last-child { margin-bottom: 0; }
.pos-row:hover { background: var(--row-hover); border-color: var(--field-border); }
.pos-row:active { transform: scale(0.995); }

.pos-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.pos-title { font-size: 0.86rem; font-weight: 500; line-height: 1.3; flex: 1; min-width: 0; }
.pos-badge {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--hint);
  white-space: normal;
  text-align: left;
}
.pos-impost-reco {
  display: block;
  margin-top: 1px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent);
  text-align: left;
}
.pos-cost { font-size: 0.82rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }

.order-total {
  margin-top: 9px;
  padding: 9px 11px;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--bubble);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
}

/* ========== 11 — Расчёт: sheet, выбор позиций, таблица прайса ========== */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.pick-pop { z-index: 110; }

.pick-pop .sheet-title-sm {
  text-align: center;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.pick-pop .pick-err {
  text-align: center;
  color: #111;
}
.sheet[hidden] { display: none; }

.sheet-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  cursor: pointer;
}

.sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  max-width: 500px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) max(15px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.sheet-title-lg { margin: 0 0 8px; font-size: 0.98rem; font-weight: 600; line-height: 1.3; }

.sheet-heading-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pop-line-fields { margin: 0 0 10px; flex-shrink: 0; }
.pop-dims-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.pop-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  min-width: 0;
}
.pop-field-full { width: 100%; }
.pop-field input { width: 100%; }

.pop-impost-reco {
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent);
  flex-shrink: 0;
}

.pop-manual-block {
  margin: 6px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.pop-unit-breakdown {
  margin: 0;
  padding: 8px 2px 0;
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--hint);
}

.pos-manual-tag {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--accent);
  margin-left: 4px;
  white-space: nowrap;
}

.sheet-title-sm {
  margin: 0 0 10px;
  padding-bottom: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hint);
  flex-shrink: 0;
  border-bottom: 1px solid var(--field-border);
}

.sheet-row { margin: 0 0 12px; font-size: 0.85rem; line-height: 1.45; color: var(--hint); }
.sheet-row strong { font-weight: 600; color: var(--text); }

.sheet-open {
  width: 100%;
  margin-bottom: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.38;
  text-align: left;
  color: var(--accent);
  cursor: pointer;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  transition: background var(--tap), border-color var(--tap);
}

.sheet-open:hover { background: var(--row-hover); border-color: rgba(51, 144, 236, .35); }

/* Окно позиции: подписи как в pick — только название, тёмный текст по центру */
#product-pop .sheet-open {
  text-align: center;
  color: #111;
  font-weight: 500;
}

#product-pop .sheet-open:hover {
  color: #111;
}

#product-pop .pop-manual-rub.sheet-open {
  cursor: text;
}

#product-pop .pop-manual-rub.sheet-open::placeholder {
  color: var(--hint);
  font-weight: 500;
  opacity: 0.95;
}

#product-pop .pop-manual-rub.sheet-open::-webkit-outer-spin-button,
#product-pop .pop-manual-rub.sheet-open::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#product-pop .pop-manual-rub.sheet-open {
  -moz-appearance: textfield;
  appearance: textfield;
}

.product-pop-save-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}

.product-pop-apply-all-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 9px 8px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--accent);
  cursor: pointer;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(51, 144, 236, 0.35);
  border-radius: var(--radius);
  transition: background var(--tap), border-color var(--tap);
  -webkit-tap-highlight-color: transparent;
}

.product-pop-apply-all-btn:hover {
  background: rgba(51, 144, 236, 0.06);
  border-color: rgba(51, 144, 236, 0.55);
}

.product-pop-apply-all-btn:active {
  transform: scale(0.99);
}

.product-pop-apply-all-btn,
.product-pop-save-row .sheet-save {
  word-break: break-word;
}

.product-pop-save-row .sheet-save {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin-top: 0;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}

.sheet-save {
  width: 100%;
  margin-top: auto;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: background var(--tap), filter var(--tap);
}

.sheet-save:hover { background: var(--accent-press); }
.sheet-save:active,
.save-order-btn:active { filter: brightness(0.96); }
.sheet-save:focus-visible,
.save-order-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pick-choices {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.pick-item {
  width: 100%;
  padding: 9px 11px;
  text-align: center;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.38;
  color: #111;
  cursor: pointer;
  background: var(--field-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--tap), border-color var(--tap);
}

.pick-item:hover { background: var(--row-hover); border-color: var(--field-border); }
.pick-item:active { background: #e6ecf2; }
.pick-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.pick-item-frame {
  display: block;
  text-align: center;
}

.pick-err { margin: 0; font-size: 0.82rem; color: var(--hint); }

.price-section { margin-top: 0; }

.price-section .lbl {
  margin-bottom: 2px;
  font-size: 0.72rem;
}

.price-section-sub {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--field-border);
}

.price-section-hint {
  margin: 0 0 4px;
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--hint);
}

.price-frame-meta {
  margin: 0 0 8px;
  padding: 8px 10px;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--hint);
  background: var(--bubble);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
}

.price-frame-meta-p { margin: 0 0 6px; }
.price-frame-meta-p:last-of-type { margin-bottom: 4px; }
.price-frame-meta-p strong { color: var(--text); font-weight: 600; }

.price-frame-meta-colors {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-frame-meta-item { display: block; }
.price-frame-meta-id { opacity: 0.85; font-family: ui-monospace, monospace; font-size: 0.9em; }
.price-frame-meta-item strong { color: var(--text); font-weight: 600; }

.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  line-height: 1.2;
  table-layout: fixed;
  background: #fff;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 2px 3px;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #e1e8ef;
}

.price-table thead th {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #5f6f7f;
  background: #f5f8fb;
  vertical-align: top;
  border-bottom: 1px solid #c7d3df;
}

.price-table-matrix thead th.price-table-col-head {
  text-transform: none;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
  padding: 2px 3px;
  vertical-align: top;
}

.price-table .price-table-label {
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 600;
  overflow: hidden;
  max-height: calc(0.62rem * 1.2 * 2);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-overflow: clip;
}

.price-table-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  box-sizing: border-box;
  width: 20%;
  min-width: 3.5rem;
  max-width: none;
  padding: 2px 3px !important;
  background: #fff;
  box-shadow: 2px 0 8px -5px rgba(15, 23, 42, .22);
  vertical-align: top;
  border-right: 1px solid #c7d3df !important;
}

.price-table thead .price-table-sticky {
  z-index: 3;
  background: #f5f8fb;
}
.price-table-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 2px 2px !important;
  color: #1f2937;
}

.price-table-min {
  display: inline-block;
  margin-top: 1px;
  font-size: 0.58rem;
  line-height: 1.15;
  color: #8a97a5;
}

.price-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.price-table tbody tr:nth-child(even) .price-table-sticky {
  background: #fbfdff;
}

.price-table tbody tr:hover td {
  background: #f3f8fe;
}

.price-table tbody tr:hover .price-table-sticky {
  background: #f3f8fe;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table-muted { color: var(--hint); }

/* ========== 12 — Док «Сохранить заказ» над tab-bar ========== */

.save-order-dock {
  position: fixed;
  z-index: 55;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--tab-bar-stack);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, .07);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .04);
}

.save-order-dock[hidden] {
  display: none !important;
}

/* Без .save-order-actions в доке — одна кнопка на всю ширину */
.save-order-dock > .save-order-btn {
  width: 100%;
}

.save-order-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.save-order-actions .save-order-btn {
  flex: 1 1 calc(50% - 3px);
  min-width: 0;
  width: auto;
  max-width: 100%;
  padding: 7px 8px;
  font-size: 0.72rem;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: normal;
  hyphens: auto;
}

@media (max-width: 360px) {
  .save-order-actions {
    flex-direction: column;
  }
  .save-order-actions .save-order-btn {
    flex: none;
    width: 100%;
  }
}

.save-order-dock .save-order-msg {
  margin: 0;
  text-align: center;
}

.save-order-btn {
  flex-shrink: 0;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  transition: background var(--tap), filter var(--tap);
}

.save-order-btn:hover { background: var(--accent-press); }
.save-order-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.save-order-btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.save-order-btn--ghost:hover {
  background: #f8fafc;
}

.save-order-msg {
  margin: 6px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--hint);
}

.save-order-msg.is-ok { color: #1d7a3a; }
.save-order-msg.is-err { color: #b42318; }

/* ========== Вкладка «Сводка» (прототип 32132313, интеграция) ========== */

.board-browse__card {
  padding: 0;
  overflow: hidden;
}

.board-browse {
  --board-fs-title: 0.9375rem;
  --board-fs-body: 0.8125rem;
  --board-fs-caption: 0.6875rem;
  --board-fs-acc: 0.875rem;
  --board-status-col: 1.45rem;
}

.board-panel {
  display: none;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.board-panel[hidden] {
  display: none !important;
}
.board-panel.is-active {
  display: flex;
}

.board-acc {
  margin: 0 0 6px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.045);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.board-acc:not([open]) {
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  background: #f9fafb;
}

.board-acc-h {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: calc(1em + 10px);
  padding: 5px 7px;
  margin: 0;
  list-style: none;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  border: none;
}
.board-acc-h:hover {
  background: #fafbfc;
}
.board-acc:not([open]) > .board-acc-h {
  background: #f4f5f7;
}
.board-acc:not([open]) > .board-acc-h:hover {
  background: #eef0f3;
}
.board-acc[open] > .board-acc-h {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}
.board-acc-h::-webkit-details-marker,
.board-acc-h::marker {
  display: none;
}

.board-acc-b {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 20px 3px 11px;
  position: relative;
  border-radius: 999px;
  font-size: var(--board-fs-acc, 0.875rem);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--fg, #546e7a);
  background: var(--bg, rgba(118, 141, 160, 0.2));
  box-shadow: 0 0 0 0.5px var(--bd, rgba(118, 141, 160, 0.12));
  transition: background 0.14s, transform 0.12s, opacity 0.14s;
}
.board-acc:not([open]) .board-acc-b {
  opacity: 0.94;
}
.board-acc-h:hover .board-acc-b {
  background: var(--bgh, rgba(118, 141, 160, 0.27));
}
.board-acc-h:active .board-acc-b {
  transform: scale(0.98);
}

.board-acc-b::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border: solid rgba(84, 110, 122, 0.6);
  border-width: 0 1.5px 1.5px 0;
  transition: transform 0.18s ease, margin 0.18s ease;
}
.board-acc:not([open]) > .board-acc-h .board-acc-b::after {
  margin-top: -2px;
  transform: rotate(-45deg);
}
.board-acc[open] > .board-acc-h .board-acc-b::after {
  margin-top: -1px;
  transform: rotate(45deg);
}

.board-acc-t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-acc-c {
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
}

.board-acc-b--ready,
.board-order__st--ready {
  --fg: #206b38;
  --bg: rgba(49, 184, 92, 0.2);
  --bd: rgba(49, 184, 92, 0.18);
  --bgh: rgba(49, 184, 92, 0.28);
}
.board-acc-b--measure,
.board-order__st--measure {
  --fg: #92400e;
  --bg: rgba(240, 122, 42, 0.2);
  --bd: rgba(240, 122, 42, 0.2);
  --bgh: rgba(240, 122, 42, 0.3);
}
.board-acc-b--make,
.board-order__st--make {
  --fg: #1d4a9e;
  --bg: rgba(61, 140, 237, 0.18);
  --bd: rgba(61, 140, 237, 0.16);
  --bgh: rgba(61, 140, 237, 0.26);
}
.board-acc-b--new,
.board-order__st--new {
  --fg: #5b21b6;
  --bg: rgba(139, 92, 246, 0.16);
  --bd: rgba(139, 92, 246, 0.14);
  --bgh: rgba(139, 92, 246, 0.24);
}
.board-acc-b--noanswer,
.board-order__st--noanswer {
  --fg: #4a5562;
  --bg: rgba(139, 149, 161, 0.2);
  --bd: rgba(139, 149, 161, 0.15);
  --bgh: rgba(139, 149, 161, 0.28);
}
.board-acc-b--closed,
.board-order__st--closed {
  --fg: #3d4e60;
  --bg: rgba(82, 104, 124, 0.2);
  --bd: rgba(82, 104, 124, 0.14);
  --bgh: rgba(82, 104, 124, 0.3);
}
.board-acc-b--removed,
.board-order__st--removed {
  --fg: #5c6670;
  --bg: rgba(120, 128, 136, 0.22);
  --bd: rgba(120, 128, 136, 0.16);
  --bgh: rgba(120, 128, 136, 0.32);
}
.board-acc-b--bydate,
.board-order__st--bydate {
  --fg: #334155;
  --bg: rgba(71, 85, 105, 0.18);
  --bd: rgba(71, 85, 105, 0.16);
  --bgh: rgba(71, 85, 105, 0.28);
}

.board-lst {
  --board-lh: 1.3;
  --board-gap-row: 3px;
  --board-gap-col: 6px;
  --board-pad-y: 8px;
  --board-pad-x: 10px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: #f0f3f6;
}

@supports (grid-template-columns: subgrid) {
  .board-lst {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    column-gap: var(--board-gap-col);
    row-gap: var(--board-gap-row);
    min-width: 0;
  }
  .board-lst.board-lst--bytime {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .board-lst.board-lst--compact {
    grid-template-columns:
      var(--board-status-col, 1.45rem)
      auto
      minmax(0, 1.6fr)
      auto
      auto
      auto
      var(--board-compact-rx-w, 0px)
      auto;
  }
  .board-lst.board-lst--compact-days {
    grid-template-columns:
      var(--board-status-col, 1.45rem)
      auto
      minmax(0, 1fr)
      var(--board-compact-rx-w, 0px)
      auto;
  }
  .board-order__row--compact-days .board-order__compact-due-wrap,
  .board-order__row--compact-days .board-order__compact-order-no,
  .board-order__row--compact-days .board-order__compact-calc-no {
    display: none;
  }
  .board-order__row--compact {
    align-items: stretch;
    white-space: nowrap;
  }
  .board-order {
    display: contents;
    cursor: pointer;
  }
  .board-order__row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: start;
    min-width: 0;
    padding: 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.045);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .board-order__row:not(.board-order__row--compact) {
    padding: var(--board-pad-y) var(--board-pad-x);
  }
  .board-order__row--compact > :not(.board-order__compact-st) {
    padding-block: var(--board-pad-y);
  }
  .board-order__row--compact > .board-order__compact-rx,
  .board-order__row--compact > .board-order__compact-calc-ok {
    padding-right: var(--board-pad-x);
  }
  .board-order__row.is-selected {
    background: rgba(255, 107, 38, 0.09);
    border-color: rgba(255, 107, 38, 0.35);
    box-shadow: inset 3px 0 0 var(--accent);
  }
}

@supports not (grid-template-columns: subgrid) {
  .board-lst {
    display: flex;
    flex-direction: column;
    gap: var(--board-gap-row);
  }
  .board-order {
    padding: var(--board-pad-y) var(--board-pad-x);
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.045);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .board-order.board-order--compact {
    padding-left: 0;
  }
  .board-order__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: var(--board-gap-row) var(--board-gap-col);
    align-items: start;
    min-width: 0;
  }
  .board-order__row--bytime {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .board-order__row--compact {
    grid-template-columns:
      var(--board-status-col, 1.45rem)
      auto
      minmax(0, 1.6fr)
      auto
      auto
      auto
      var(--board-compact-rx-w, 0px)
      auto;
    align-items: center;
    white-space: nowrap;
  }
  .board-lst.board-lst--compact-days .board-order__row--compact,
  .board-order__row--compact-days {
    grid-template-columns:
      var(--board-status-col, 1.45rem)
      auto
      minmax(0, 1fr)
      var(--board-compact-rx-w, 0px)
      auto;
  }
  .board-order__row--compact-days .board-order__compact-due-wrap,
  .board-order__row--compact-days .board-order__compact-order-no,
  .board-order__row--compact-days .board-order__compact-calc-no {
    display: none;
  }
  .board-order__row.is-selected {
    background: rgba(255, 107, 38, 0.09);
    border-color: rgba(255, 107, 38, 0.35);
    box-shadow: inset 3px 0 0 var(--accent);
  }
}

/* Аватар мастера — размер с эмодзи (~18px), как реакции в строке */
.board-order__ma {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  background: #e8ecf1;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.board-order__ma-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.board-order__ma-letter {
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  color: #475569;
  letter-spacing: -0.03em;
  user-select: none;
}
.board-order__ma--empty {
  background: #eef1f5;
  border-color: rgba(0, 0, 0, 0.05);
}
.board-order__ma-empty-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
}
.board-order__main {
  min-width: 0;
}
.board-order__textblock {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  align-self: flex-start;
}
.board-order__t {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: var(--board-fs-title);
  font-weight: 600;
  line-height: var(--board-lh);
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Вторая строка: соцсети и заметка */
.board-order__note {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 5px;
  font-size: var(--board-fs-body);
  font-weight: 500;
  line-height: var(--board-lh);
  white-space: normal;
  overflow: visible;
}
.board-order__note:not([hidden]) {
  /* WebKit + subgrid: без min-height вторая строка иногда рисуется с нулевой высотой */
  min-height: calc(var(--board-fs-body) * var(--board-lh));
}
.board-order__calc-head {
  flex: 0 0 auto;
  font-size: inherit;
  font-weight: inherit;
  color: #1a4a7a;
}
.board-order__soc {
  flex: 0 0 auto;
  font-size: inherit;
  font-weight: inherit;
}
.board-order__soc--max {
  color: #1a4a7a;
  text-decoration: none;
}
.board-order__soc--max:hover {
  text-decoration: underline;
}
.board-order__soc--tg {
  color: #229ed9;
}
.board-order__soc--avito {
  color: #1a8f3a;
}
.board-order__note-text {
  flex: 1 1 100%;
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: visible;
}
.board-order__note[hidden] {
  display: none !important;
}
/* Третья строка в «По дням»: другие даты визита */
.board-order__visit-alt {
  margin: 0;
  min-width: 0;
  font-size: var(--board-fs-body);
  font-weight: 500;
  line-height: var(--board-lh);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-order__visit-alt:not([hidden]) {
  min-height: calc(var(--board-fs-body) * var(--board-lh));
}
.board-order__visit-alt--flex {
  color: #1a8f3a;
}
.board-order__visit-alt--or {
  color: #64748b;
}
.board-order__visit-alt[hidden] {
  display: none !important;
}
.board-order__comment-hits {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.board-order__comment-hits[hidden] {
  display: none !important;
}
.board-order__comment-hit {
  margin: 0;
  min-width: 0;
  font-size: var(--board-fs-body, 0.8125rem);
  font-weight: 500;
  line-height: var(--board-lh, 1.3);
  white-space: pre-wrap;
  word-break: break-word;
  overflow: visible;
}
.board-order__comment-hit-label {
  flex: 0 0 auto;
  font-weight: 600;
  color: #6366f1;
  letter-spacing: 0.01em;
}
.board-order__comment-hit-text {
  color: #334155;
}
/* Правая колонка: статус → № заказа → расчёт */
.board-order__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 3px;
  justify-self: end;
  align-self: start;
  text-align: right;
  min-width: 3rem;
  max-width: 100%;
  font-size: var(--board-fs-body);
  font-weight: 500;
  line-height: var(--board-lh);
}

.board-order__st {
  margin: 0;
  flex: 0 0 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: var(--board-fs-body, 0.8125rem);
  font-weight: 600;
  line-height: 1.25;
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--fg, #546e7a);
  background: var(--bg, rgba(118, 141, 160, 0.2));
  box-shadow: 0 0 0 0.5px var(--bd, rgba(118, 141, 160, 0.12));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.board-order__st-calc-ok {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #15803d;
  width: 1em;
  height: 1em;
  max-height: 1em;
  line-height: 0;
}
.board-order__st-calc-ok--tg {
  color: #2aabee;
}
.board-order__st-calc-ok__ico {
  display: block;
  width: 100%;
  height: 100%;
}
.board-order__st[hidden] {
  display: none !important;
}

.board-order__st-date {
  font-weight: 500;
  color: #64748b;
}
.board-order__st-date--past {
  color: #ea580c;
}
.board-order__st-date--today {
  color: #16a34a;
}

.board-order__ids-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  min-width: 0;
}
.board-order__ids-row[hidden] {
  display: none !important;
}

.board-order__ids {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
  font-size: inherit;
  color: #64748b;
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  white-space: nowrap;
}
.board-order__ids-calc {
  font-weight: 600;
  color: #1a4a7a;
}
.board-order__ids-row .board-order__ids[hidden] {
  display: none !important;
  visibility: visible;
}
.board-order__ids[hidden] {
  display: block !important;
  visibility: hidden;
}

.board-order__time {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  text-align: right;
  white-space: nowrap;
}
.board-order__time[hidden] {
  display: none !important;
}

.board-order__due {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-order__due--positive {
  color: #0d9488;
  font-weight: 600;
}
.board-order__due--estimate {
  color: #64748b;
  font-weight: 500;
}
.board-order__due-sum {
  color: #1a4a7a;
  font-weight: 600;
}
.board-order__due[hidden] {
  display: none !important;
}

.board-order__row--bytime .board-order__d {
  display: none !important;
}

.board-order__rx {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  gap: 3px;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}
.board-order__rx .order-react-pill__sticker {
  width: 18px;
  height: 18px;
}
.board-order__rx--empty {
  visibility: hidden;
  pointer-events: none;
}

.board-order__s {
  justify-self: end;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.board-order__s-amount {
  color: #334155;
}
.board-order__s-amount--settled {
  color: #16a34a;
}
.board-order__s-paid {
  color: #16a34a;
}

.board-order__d {
  align-self: start;
  justify-self: end;
  text-align: right;
  font-size: var(--board-fs-body, 0.8125rem);
  font-weight: 500;
  line-height: var(--board-lh, 1.3);
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.board-order__d--empty {
  visibility: hidden;
  pointer-events: none;
}
/* «По статусу»: дата монтажа уже прошла (строго раньше сегодня) */
.board-order__d--past {
  color: #ea580c;
}
.board-order__d--today {
  color: #16a34a;
}

/* «Кратко»: одна строка на заказ, колонки по содержимому */
.board-lst.board-lst--compact {
  --board-gap-row: 3px;
  --board-pad-y: 0px;
  --board-pad-x: 8px;
  padding: 2px 2px;
}
.board-browse.board-browse--rows-wide .board-lst.board-lst--compact {
  --board-pad-y: 18px;
}
.board-order__row--compact {
  white-space: nowrap;
  border-radius: 8px;
  align-items: stretch;
  line-height: 1.15;
  min-height: 2.5rem;
}

.board-order.board-order--pinned .board-order__row--compact,
.board-order.board-order--pinned .board-order__row:not(.board-order__row--compact) {
  box-shadow: inset 3px 0 0 0 var(--accent, #3390ec);
  background: rgba(51, 144, 236, 0.06);
}

.board-order.board-order--pinned .board-order__row.is-selected {
  background: rgba(255, 107, 38, 0.14);
  border-color: rgba(255, 107, 38, 0.4);
  box-shadow: inset 3px 0 0 var(--accent);
}

.board-order.board-order--pinned .board-order__row--compact-days.board-order__row--not-today.is-selected {
  background: #d4e4f8;
  border-color: rgba(255, 107, 38, 0.35);
  box-shadow: inset 3px 0 0 var(--accent);
}

.board-order.board-order--pinned .board-order__compact-addr::before {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.35em;
  vertical-align: -0.02em;
  background: currentColor;
  opacity: 0.72;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16 3a1 1 0 0 1 .8 1.6L14.4 9H17a1 1 0 0 1 .8 1.6l-8 10A1 1 0 0 1 8 20v-6H5a1 1 0 0 1-.8-1.6l8-10A1 1 0 0 1 13 2h3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16 3a1 1 0 0 1 .8 1.6L14.4 9H17a1 1 0 0 1 .8 1.6l-8 10A1 1 0 0 1 8 20v-6H5a1 1 0 0 1-.8-1.6l8-10A1 1 0 0 1 13 2h3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.board-order__compact-st.board-order__st {
  align-self: stretch;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px 2px;
  border-radius: 10px 0 0 10px;
  overflow: visible;
  color: var(--fg, #546e7a);
  background: var(--bg, rgba(118, 141, 160, 0.2));
  box-shadow: none;
}
.board-order__compact-st__label {
  display: inline-block;
  font-size: var(--board-fs-caption, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
  text-transform: none;
  color: inherit;
  transform: rotate(270deg);
  transform-origin: center center;
}
.board-order__row--compact .board-order__compact-date-wrap,
.board-order__row--compact .board-order__compact-main,
.board-order__row--compact .board-order__compact-due-wrap,
.board-order__row--compact .board-order__compact-order-no,
.board-order__row--compact .board-order__compact-calc-no,
.board-order__row--compact .board-order__compact-rx,
.board-order__row--compact .board-order__compact-calc-ok {
  align-self: center;
}
.board-order__compact-main,
.board-order__compact-addr,
.board-order__compact-note,
.board-order__compact-prod-ready,
.board-order__compact-alt,
.board-order__compact-due-wrap,
.board-order__compact-order-no,
.board-order__compact-calc-no,
.board-order__compact-date-wrap,
.board-order__compact-date,
.board-order__compact-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
}
.board-order__compact-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  white-space: normal;
  line-height: 1.15;
}
.board-order__compact-addr,
.board-order__compact-note,
.board-order__compact-prod-ready,
.board-order__compact-alt {
  cursor: default;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.board-order__compact-note[aria-hidden='true'] {
  display: none;
}
.board-order__compact-prod-ready[aria-hidden='true'] {
  display: none;
}
.board-order__compact-alt[aria-hidden='true'] {
  display: none;
}
.board-order__compact-addr {
  font-size: var(--board-fs-title, 0.9375rem);
  font-weight: 600;
  color: #0f172a;
}
.board-order__compact-note {
  font-size: var(--board-fs-body, 0.8125rem);
  font-weight: 500;
  color: #64748b;
}
.board-order__compact-prod-ready {
  font-size: var(--board-fs-body, 0.8125rem);
  font-weight: 600;
}
.board-order__compact-prod-ready--full {
  color: #1a7f37;
}
.board-order__compact-prod-ready--partial {
  color: #b45309;
}
.board-order__compact-alt {
  font-size: var(--board-fs-caption, 0.6875rem);
  font-weight: 600;
  color: #0d9488;
}
.board-order__compact-rx {
  justify-self: end;
  align-self: center;
  flex-wrap: nowrap;
  max-width: 100%;
  min-width: 0;
  gap: 2px;
  font-size: var(--board-fs-body, 0.8125rem);
  line-height: 1.15;
  align-items: center;
}
.board-order__rx.board-order__compact-rx {
  align-items: center;
  align-self: center;
}
.board-order__compact-rx .order-react-pill,
.board-order__compact-rx .order-react-pill--mine {
  padding: 0 3px 0 2px;
  font-size: inherit;
  line-height: 1.15;
  gap: 1px;
  background: rgba(0, 0, 0, 0.055);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.07);
}
.board-order__compact-rx .order-react-pill--sticker {
  padding: 0 3px 0 1px;
}
.board-order__compact-rx .order-react-pill__emoji {
  font-size: 1em;
  line-height: 1;
}
.board-order__rx.board-order__compact-rx .order-react-pill__sticker {
  width: 1em;
  height: 1em;
}
.board-order__compact-rx .order-react-pill__cnt {
  font-size: 0.72em;
  line-height: 1;
}
.board-order__compact-due-wrap {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
}
.board-order__compact-due {
  font-size: var(--board-fs-body, 0.8125rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #64748b;
}
.board-order__compact-due--positive {
  color: #0d9488;
}
.board-order__compact-due--estimate {
  color: #64748b;
  font-weight: 500;
}
.board-order__compact-order-no {
  justify-self: end;
  font-size: var(--board-fs-body, 0.8125rem);
  font-variant-numeric: tabular-nums;
  color: #64748b;
}
.board-order__compact-calc-no {
  justify-self: end;
  font-size: var(--board-fs-body, 0.8125rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #1a4a7a;
}
.board-order__compact-date-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  line-height: 1.1;
  white-space: nowrap;
}
.board-order__compact-date-wrap.board-order__st {
  align-self: stretch;
  align-items: center;
  padding-inline: 8px;
  margin-left: calc(-1 * var(--board-gap-col, 6px));
  color: var(--fg, #546e7a);
  background: var(--bg, rgba(118, 141, 160, 0.2));
}
.board-order__compact-date-wrap .board-order__compact-date {
  color: inherit;
}
.board-order__compact-date-wrap .board-order__compact-date.board-order__st-date--past {
  color: #c2410c;
}
.board-order__compact-date-wrap .board-order__compact-date.board-order__st-date--today {
  color: #15803d;
}
.board-order__compact-date {
  font-size: var(--board-fs-body, 0.8125rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.board-order__compact-time {
  font-size: var(--board-fs-caption, 0.6875rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: inherit;
  opacity: 0.88;
  line-height: 1.1;
}
.board-order__compact-time[aria-hidden='true'] {
  display: none;
}
.board-order__compact-calc-ok {
  display: inline-flex;
  align-items: center;
  justify-self: center;
}

.board-browse__card > .orders-err {
  margin: 8px 4px 4px;
}

/* ========== Производство — таблица размеров ========== */

.app-header-production {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #8e8e93);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.app-header-production:hover {
  background: #ebecee;
  color: var(--text, #1c1c1e);
}

.app-header-production.is-active {
  color: var(--accent, #3390ec);
  background: #fff;
  box-shadow: 0 1px 3px #00000014;
}

.app-header-production[hidden] {
  display: none !important;
}

.app-main.is-production-active {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 550px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.app-main.is-production-active .app-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#view-production.view.is-active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.production-view {
  --production-r: 10px;
  --production-s: 8px;
  --production-cell: 5px;
  --production-fs: 4px;
  --production-fs-text: calc(11px + var(--production-fs));
  --production-sf: #f4f4f5;
  --production-bd: #e8e8ec;
  --production-grid: rgba(60, 60, 67, 0.09);
  --production-tm: #8e8e93;
  --production-ok: #d4edda;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.production-top {
  flex-shrink: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.production-hdr {
  flex-shrink: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 10px 10px;
  box-shadow: none;
}

.production-total-meshes {
  flex: 0 0 auto;
  max-width: 42%;
  font-size: calc(12px + var(--production-fs));
  font-weight: 600;
  line-height: 1.2;
  color: var(--production-tm);
  white-space: nowrap;
}

.production-total-meshes[hidden] {
  display: none !important;
}

.app-main.is-production-active .app-header__status {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary, #636366);
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.production-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 4px;
  background: var(--production-sf);
  border-radius: var(--production-r);
  padding: 4px;
}

.production-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: calc(14px + var(--production-fs));
  font-weight: 500;
  color: var(--production-tm);
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.production-tabs button.on {
  background: #fff;
  color: var(--accent, #3390ec);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.production-tabs button:not(.on):hover {
  color: var(--text, #1c1c1e);
}

.production-tabs button:not(.on):active {
  background: rgba(0, 0, 0, 0.04);
}

.production-share-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font: inherit;
  font-size: calc(13px + var(--production-fs));
  font-weight: 600;
  color: var(--accent, #3390ec);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.production-share-btn[hidden] {
  display: none !important;
}

.production-share-btn:active {
  opacity: 0.85;
}

.app-root.is-production-public .tab-bar,
.app-root.is-production-public #app-header,
.app-root.is-production-public #public-yandex-landing,
.app-root.is-production-public #login-gate {
  display: none !important;
}

.app-root.is-production-public .app-main {
  padding-bottom: 0;
}

.app-root.is-production-public .production-hdr {
  display: none;
}

.app-root.is-production-public .production-top {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.production-wrap {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px var(--production-s) var(--production-s);
  -webkit-overflow-scrolling: touch;
}

.production-table-toolbar {
  flex-shrink: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(8px, env(safe-area-inset-top, 0px)) 10px 6px;
  background: #fff;
  box-shadow: none;
}

.production-todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--production-sf);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.production-todo__num {
  font-size: calc(15px + var(--production-fs));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent, #3390ec);
}

.production-todo__label {
  font-size: calc(12px + var(--production-fs));
  font-weight: 500;
  line-height: 1.15;
  color: var(--production-tm);
  white-space: nowrap;
}

.production-todo--done .production-todo__label {
  font-weight: 600;
  color: #248a3d;
}

.production-hide-done {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.production-hide-done__label {
  font-size: calc(13px + var(--production-fs));
  font-weight: 500;
  color: var(--text, #1c1c1e);
  line-height: 1.2;
}

.production-hide-done__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.production-hide-done__track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.16);
  transition: background 0.2s ease;
}

.production-hide-done__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.production-hide-done__input:checked + .production-hide-done__track {
  background: var(--accent, #3390ec);
}

.production-hide-done__input:checked + .production-hide-done__track::after {
  transform: translateX(18px);
}

.production-hide-done__input:focus-visible + .production-hide-done__track {
  outline: 2px solid var(--accent, #3390ec);
  outline-offset: 2px;
}

.production-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  border: 1px solid var(--production-grid);
}

.production-table th,
.production-table td {
  border: 1px solid var(--production-grid);
}

.production-table th.production-fit,
.production-table td.production-fit {
  white-space: nowrap;
  width: auto;
}

.production-table th.production-fit {
  overflow: visible;
}

.production-table th.production-fit:not(.hk-note),
.production-table td.production-fit:not(.hk-note) {
  min-width: 3.5ch;
}

.production-table th.production-fit.hk-note,
.production-table td.production-fit.hk-note {
  min-width: 10ch;
  white-space: pre-line;
  line-height: 1.25;
  vertical-align: middle;
}

.production-view[data-production-mode='all'] .production-table col:nth-child(1) { width: 8%; }
.production-view[data-production-mode='all'] .production-table col:nth-child(2) { width: 8%; }
.production-view[data-production-mode='all'] .production-table col:nth-child(3) { width: 0; }
.production-view[data-production-mode='all'] .production-table col:nth-child(5) { width: 14%; }
.production-view[data-production-mode='all'] .production-table col:nth-child(6) { width: 0; }
.production-view[data-production-mode='all'] .production-table col:nth-child(8) { width: 0; }
.production-view[data-production-mode='all'] .production-table col:nth-child(9) { width: 14%; }
.production-view[data-production-mode='all'] .production-table col:nth-child(10) { width: 0; }
.production-view[data-production-mode='all'] .production-table col:nth-child(11) { width: 18%; }
.production-view[data-production-mode='all'] .production-table col:nth-child(12) { width: 0; }
.production-view[data-production-mode='all'] .production-table col:nth-child(13) { width: 0; }

.production-view[data-production-mode='pilim'] .production-table,
.production-view[data-production-mode='kataem'] .production-table,
.production-view[data-production-mode='all'] .production-table {
  table-layout: auto;
  width: 100%;
}

.production-view[data-production-mode='pilim'] .production-table col:nth-child(1) { width: 8%; }
.production-view[data-production-mode='pilim'] .production-table col:nth-child(2) { width: 11%; }
.production-view[data-production-mode='pilim'] .production-table col:nth-child(3) { width: 11%; }
.production-view[data-production-mode='pilim'] .production-table col:nth-child(14) { width: 7%; }
.production-view[data-production-mode='pilim'] .production-table col:nth-child(15) { width: 10%; }

.production-view[data-production-mode='kataem'] .production-table col:nth-child(1) { width: 7%; }
.production-view[data-production-mode='kataem'] .production-table col:nth-child(2) { width: 7%; }
.production-view[data-production-mode='kataem'] .production-table col:nth-child(3) { width: 11%; }
.production-view[data-production-mode='kataem'] .production-table col:nth-child(9) { width: 15%; }
.production-view[data-production-mode='kataem'] .production-table col:nth-child(10) { width: 15%; }
.production-view[data-production-mode='kataem'] .production-table col:nth-child(11) { width: 28%; }
.production-view[data-production-mode='kataem'] .production-table col:nth-child(12) { width: 0; }
.production-view[data-production-mode='kataem'] .production-table col:nth-child(13) { width: 0; }

.production-table thead {
  position: sticky;
  top: 0;
  z-index: 15;
}

.production-table thead th {
  white-space: normal;
  width: 1%;
  min-width: 0;
  overflow: hidden;
}

.production-table thead th.production-fit,
.production-table thead th.production-dim-pair,
.production-table thead th.hp {
  min-width: 0;
  white-space: normal;
}

.production-table thead th.production-fit:not(.hk-note),
.production-table thead th.production-fit.hk-note {
  min-width: 0;
}

.production-table thead th.production-dim-pair .production-th-btn,
.production-table thead th:first-child .production-th-btn {
  line-height: 1.1;
  padding-block: 4px;
}

.production-table thead .production-th-btn {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(1.1em * 3 + 8px);
  height: auto;
  padding: 4px 1px;
}

.production-table thead .production-th-label {
  display: block;
  max-height: calc(1.1em * 3);
  overflow: hidden;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.1;
  max-width: 2.6ch;
  text-overflow: clip;
  text-align: center;
  hyphens: none;
}

.production-table thead tr {
  background: #f8f8fa;
}

.production-table th {
  padding: 0;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.2;
  background: #f8f8fa;
  box-shadow: 0 1px 0 var(--production-grid);
}

.production-th-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 30px;
  padding: 5px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: calc(8px + var(--production-fs));
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--production-tm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.production-th-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text, #1c1c1e);
}

.production-th-btn.is-active {
  color: var(--accent, #3390ec);
  background: rgba(51, 144, 236, 0.08);
}

.production-th-btn:active {
  background: rgba(51, 144, 236, 0.14);
}

.production-th-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  font-size: calc(8px + var(--production-fs));
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.production-table td {
  padding: var(--production-cell);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--production-fs-text);
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s;
  background: #fff;
}

.production-table td.production-fit {
  overflow: visible;
  text-overflow: clip;
}

.production-table td.production-fit.production-dim-pair,
.production-table td.production-fit.hk-note {
  overflow: hidden;
}

.production-table td.hk-note {
  white-space: pre-line;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.production-table td.n {
  font-size: var(--production-fs-text);
}

.production-table td[data-production-col='num'],
.production-table th:first-child {
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
  padding-block: calc(var(--production-cell) + 2px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.production-table th:first-child .production-th-btn {
  line-height: 1.25;
  padding-block: 6px;
}

.production-table td.on {
  background: var(--production-ok) !important;
  color: var(--text, #1c1c1e) !important;
}

.production-table td.production-color.on {
  background: var(--production-ok) !important;
  box-shadow: none;
}

.production-table td.production-color.on .sw {
  background: transparent !important;
  border-color: transparent;
  color: var(--text, #1c1c1e) !important;
}

.production-table .production-color,
.production-table .production-qty {
  padding: var(--production-cell);
}

.production-table td.production-qty.on {
  background: var(--production-ok) !important;
  box-shadow: none;
}

.production-table td.production-qty.on .sw {
  background: transparent !important;
  border-color: transparent;
  color: var(--text, #1c1c1e) !important;
}

.production-table .sw--qty {
  min-height: 26px;
}

.production-table td.production-sm {
  font-size: calc(8px + var(--production-fs));
  line-height: 1.15;
  font-weight: 500;
}

.production-table .sw {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  min-height: 26px;
  border-radius: 3px;
  border: none;
  box-sizing: border-box;
  padding: 2px 1px;
}

.production-table .sw__sys {
  font-weight: 600;
  font-size: calc(7px + var(--production-fs));
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.production-table .sw__tx {
  font-weight: 700;
  font-size: calc(8px + var(--production-fs));
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.production-table col:nth-child(3),
.production-table .production-system-hide {
  display: none;
}

.production-table th.production-system-hide,
.production-table td.production-system-hide {
  display: none;
  width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
}

.production-table .grid {
  font-weight: 500;
}

.production-table__order-head td {
  background: var(--production-sf);
  font-size: var(--production-fs-text);
  font-weight: 600;
  text-align: left;
  padding: 4px var(--production-s);
  white-space: normal;
  word-break: normal;
  overflow: visible;
  text-overflow: clip;
  cursor: default;
  /* colspan-ячейка не должна раздувать колонки таблицы */
  width: 100%;
  max-width: 0;
}

.production-order-head__cell {
  position: relative;
}

.production-order-head__cell:has(.production-order-head__actions) {
  padding-right: 7.5rem;
}

.production-order-head__cell:has(.production-order-priority__input) {
  padding-right: 9.5rem;
}

.production-order-head__title {
  display: block;
  overflow: visible;
  white-space: normal;
  padding-right: 0.25rem;
}

.production-order-head__actions {
  position: absolute;
  top: 50%;
  right: var(--production-s);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 2rem);
  z-index: 1;
}

.production-order-head__done {
  margin: 0;
  padding: 2px 7px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: var(--field-bg, #f4f6f9);
  color: var(--production-tm, var(--hint, #6d7a87));
  font: inherit;
  font-size: max(10px, calc(var(--production-fs-text, 12px) * 0.88));
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  flex: 0 0 auto;
}

.production-order-head__done:hover {
  background: var(--row-hover, #eef2f6);
  color: var(--text, #222);
}

.production-order-head__done.is-armed {
  border-color: color-mix(in srgb, var(--accent, #ff6b26) 55%, transparent);
  background: color-mix(in srgb, var(--accent, #ff6b26) 14%, #fff);
  color: var(--accent-press, #e85a18);
}

.production-order-head__done.is-busy,
.production-order-head__done:disabled {
  opacity: 0.65;
  cursor: wait;
}

input[type="text"].production-order-priority__input {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  width: auto;
  min-width: 1ch;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: calc(8px + var(--production-fs));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--production-tm);
  box-sizing: content-box;
  field-sizing: content;
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
}

.production-order-priority__input:focus {
  outline: none;
  border-bottom-color: var(--accent, #3390ec);
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.production-order-priority__input::placeholder {
  color: transparent;
}

.production-table__empty {
  padding: 24px 8px !important;
  color: var(--production-tm);
  cursor: default !important;
  font-size: var(--production-fs-text);
}

.production-ft {
  flex-shrink: 0;
  border-top: 1px solid var(--production-bd);
  padding: 6px var(--production-s);
  text-align: center;
  font-size: calc(13px + var(--production-fs));
  font-weight: 500;
  background: #fff;
}

.production-ft span {
  color: var(--production-tm);
  font-weight: 400;
}

.production-view[data-production-mode='pilim'] col.hp,
.production-view[data-production-mode='pilim'] .hp,
.production-view[data-production-mode='kataem'] col.hk,
.production-view[data-production-mode='kataem'] .hk,
.production-view[data-production-mode='kataem'] col.hp-z,
.production-view[data-production-mode='kataem'] .hp-z,
.production-view[data-production-mode='all'] col.hk-note,
.production-view[data-production-mode='all'] .hk-note {
  display: none;
}

col.hi,
.hi {
  display: none;
}

.production-view[data-production-mode='pilim'] col.hi,
.production-view[data-production-mode='pilim'] th.hi,
.production-view[data-production-mode='pilim'] td.hi {
  display: table-cell;
}

.production-view[data-production-mode='pilim'] col.hi {
  display: table-column;
}

col.hi-len,
.hi-len {
  display: none;
}

.production-view[data-production-mode='pilim'] col.hi-len,
.production-view[data-production-mode='pilim'] th.hi-len,
.production-view[data-production-mode='pilim'] td.hi-len {
  display: table-cell;
}

.production-view[data-production-mode='pilim'] col.hi-len {
  display: table-column;
}

col.ho,
.ho {
  display: none;
}

.production-view[data-production-mode='orders'] col.ho,
.production-view[data-production-mode='orders'] th.ho,
.production-view[data-production-mode='orders'] td.ho {
  display: table-cell;
}

.production-view[data-production-mode='orders'] col.ho {
  display: table-column;
}

.production-table td.production-imp-ord {
  white-space: pre-line;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.production-view[data-production-mode='orders'] .production-table td.production-imp-ord {
  white-space: pre-line;
  line-height: 1.25;
  padding-block: calc(var(--production-cell) + 1px);
  overflow: visible;
}

.production-view.is-data-loading {
  opacity: 0.55;
  pointer-events: none;
}

.production-th-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.1;
}

.production-th-num {
  font-weight: 700;
}

.production-th-sub {
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.production-table td.production-dim-pair {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.35;
  padding-block: calc(var(--production-cell) + 2px);
  padding-inline: 1px;
  box-sizing: border-box;
}

.production-table th.production-dim-pair .production-th-btn {
  line-height: 1.25;
  padding-block: 6px;
}

.production-view[data-production-mode='orders'] .production-table td.production-dim-pair,
.production-view[data-production-mode='orders'] .production-table td.production-fit.production-dim-pair {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.production-view[data-production-mode='orders'] .production-table thead th.production-dim-pair {
  overflow: hidden;
  white-space: normal;
}

.production-view[data-production-mode='all'] .production-table th.production-dim-pair,
.production-view[data-production-mode='all'] .production-table td.production-dim-pair {
  max-width: none;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  min-width: 11ch;
}

.production-view[data-production-mode='all'] .production-table thead th.production-dim-pair {
  min-width: 0;
  overflow: hidden;
  white-space: normal;
}

.production-table col:nth-child(12),
.production-table col:nth-child(13),
.production-table .production-spec-hide {
  display: none;
}

.production-table th.production-spec-hide,
.production-table td.production-spec-hide {
  display: none;
  width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
}

.production-table td.production-spec-pair {
  white-space: pre-line;
  line-height: 1.2;
  font-size: var(--production-fs-compact, calc(9px + var(--production-fs)));
  font-weight: 400;
  text-transform: lowercase;
  overflow: hidden;
}

.production-view[data-production-mode='orders'] col:nth-child(6),
.production-view[data-production-mode='orders'] col:nth-child(10),
.production-view[data-production-mode='all'] col:nth-child(6),
.production-view[data-production-mode='all'] col:nth-child(10),
.production-view[data-production-mode='orders'] .production-dim-hide,
.production-view[data-production-mode='all'] .production-dim-hide {
  display: none;
}

.production-view[data-production-mode='orders'] th.production-dim-hide,
.production-view[data-production-mode='orders'] td.production-dim-hide,
.production-view[data-production-mode='all'] th.production-dim-hide,
.production-view[data-production-mode='all'] td.production-dim-hide {
  display: none;
  width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
}

.production-view[data-production-mode='orders'] {
  --production-cell: 1px;
  --production-s: 2px;
  --production-fs-num: clamp(7px, 3.05vw, 13px);
  --production-fs-head: clamp(5px, 1.95vw, 8.5px);
  --production-fs-sw: clamp(6px, 2.75vw, 11px);
  --production-canvas-fs: clamp(6px, 2.65vw, var(--production-fs-num));
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

.production-view[data-production-mode='orders'] .production-table th .production-th-btn,
.production-view[data-production-mode='orders'] .production-table .production-th-label {
  font-size: var(--production-fs-head);
}

.production-view[data-production-mode='orders'] .production-table td,
.production-view[data-production-mode='orders'] .production-table td.n,
.production-view[data-production-mode='orders'] .production-table td.production-fit,
.production-view[data-production-mode='orders'] .production-table td.production-sm,
.production-view[data-production-mode='orders'] .production-table .grid,
.production-view[data-production-mode='orders'] .production-qty--plain {
  font-size: var(--production-fs-num);
}

.production-view[data-production-mode='orders'] .production-table .sw {
  min-height: calc(var(--production-fs-sw) * 2.35);
  padding: 1px;
}

.production-view[data-production-mode='orders'] .production-table .sw__tx {
  font-size: var(--production-fs-sw);
}

.production-view[data-production-mode='orders'] .production-table .sw__sys {
  font-size: calc(var(--production-fs-sw) * 0.92);
}

.production-view[data-production-mode='orders'] .production-table__order-head td {
  font-size: clamp(6px, 2.35vw, 12px);
}

.production-view[data-production-mode='orders'] .production-table th.production-fit:not(.hk-note),
.production-view[data-production-mode='orders'] .production-table td.production-fit:not(.hk-note),
.production-view[data-production-mode='orders'] .production-table th.production-fit.hk-note,
.production-view[data-production-mode='orders'] .production-table td.production-fit.hk-note {
  min-width: 0;
}

.production-view[data-production-mode='orders'] .production-table thead .production-th-btn {
  min-height: calc(var(--production-fs-head) * 3.2 + 6px);
  padding: 3px 1px;
}

.production-view[data-production-mode='orders'] .production-wrap {
  overflow-x: clip;
  overflow-y: auto;
  padding: 2px var(--production-s) var(--production-s);
}

.production-view[data-production-mode='orders'] .production-table {
  table-layout: auto;
  width: 100%;
  max-width: 100%;
}

.production-view[data-production-mode='orders'] .production-table__order-head td {
  width: 100%;
  max-width: 0;
  box-sizing: border-box;
}

.production-view[data-production-mode='orders'] .production-table th,
.production-view[data-production-mode='orders'] .production-table td {
  overflow: visible;
  text-overflow: clip;
}

.production-view[data-production-mode='orders'] .production-table th {
  white-space: normal;
  overflow: visible;
}

.production-view[data-production-mode='orders'] .production-th-label {
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
}

.production-view[data-production-mode='orders'] .production-table thead .production-th-label {
  max-width: 2.6ch;
}

.production-view[data-production-mode='orders'] .production-table td.production-fit {
  white-space: nowrap;
}

.production-view[data-production-mode='orders'] .production-table td.hk-note,
.production-view[data-production-mode='orders'] .production-table td.production-imp-ord {
  white-space: pre-line;
}

.production-view[data-production-mode='orders'] .production-table th.hp,
.production-view[data-production-mode='orders'] .production-table td.production-spec-pair,
.production-view[data-production-mode='orders'] .production-table td[data-production-col='canvas'] {
  vertical-align: middle;
  font-size: var(--production-canvas-fs);
  font-weight: 400;
  text-transform: lowercase;
}

.production-view[data-production-mode='orders'] .production-table td.production-spec-pair,
.production-view[data-production-mode='orders'] .production-table td[data-production-col='canvas'] {
  min-width: 0;
  max-width: 12vw;
}

.production-view[data-production-mode='orders'] .production-table thead th.hp {
  min-width: 0;
  max-width: none;
  font-size: var(--production-fs-head);
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.production-view[data-production-mode='orders'] .production-table td.production-canvas-pair {
  overflow: hidden;
  line-height: 1.1;
}

.production-view[data-production-mode='orders'] .production-canvas-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.15;
  min-height: 1.15em;
}

.production-view[data-production-mode='orders'] .production-canvas-line:empty::before {
  content: '\00a0';
}

.production-view[data-production-mode='orders'] .production-table th.hp .production-th-label {
  font-size: inherit;
}

.production-view[data-production-mode='orders'] .production-table td.production-color {
  overflow: visible;
}

.production-view[data-production-mode='orders'] .production-table .grid {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.production-view[data-production-mode='orders'] .production-table .sw {
  min-height: 22px;
}

.production-view[data-production-mode='orders'] .production-qty--plain {
  background: #E8EDF2;
  color: #3D5A73;
  font-weight: 700;
}

.production-view[data-production-mode='orders'] .production-qty--plain.on {
  background: var(--production-ok) !important;
  color: var(--text, #1c1c1e) !important;
}

@media (max-width: 540px) {
  .production-view {
    --production-s: 2px;
    --production-cell: 2px;
    --production-fs-compact: 10px;
  }

  .production-hdr {
    padding: 6px 6px 8px;
    gap: 5px;
  }

  .production-wrap {
    padding: 2px var(--production-s) var(--production-s);
  }

  .production-table-toolbar {
    padding: max(6px, env(safe-area-inset-top, 0px)) 6px 4px;
    gap: 6px;
  }

  .production-todo {
    padding: 5px 9px;
    gap: 5px;
  }

  .production-todo__num {
    font-size: 14px;
  }

  .production-todo__label {
    font-size: 12px;
  }

  .production-hide-done__label {
    font-size: 13px;
  }

  .production-hide-done__track {
    width: 42px;
    height: 26px;
  }

  .production-hide-done__track::after {
    width: 22px;
    height: 22px;
  }

  .production-hide-done__input:checked + .production-hide-done__track::after {
    transform: translateX(16px);
  }

  .production-tabs {
    padding: 3px;
    gap: 3px;
  }

  .production-tabs button {
    min-height: 38px;
    padding: 6px 4px;
    font-size: 13px;
  }

  .production-share-btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .production-table td:not(.n):not(.production-fit):not(.hi):not(.hi-len):not(.ho),
  .production-table td.production-color,
  .production-table .grid {
    font-size: var(--production-fs-compact);
  }

  .production-table td.production-sm {
    font-size: 9px;
  }

  .production-table .sw {
    min-height: 18px;
    border-radius: 3px;
  }

  .production-table .sw__tx {
    font-size: 8px;
  }

  .production-th-btn {
    min-height: 22px;
    padding: 2px 1px;
  }

  .production-table thead .production-th-btn {
    min-height: calc(1.1em * 3 + 6px);
  }

  .production-table thead th.production-fit:not(.hk-note),
  .production-table thead th.production-fit.hk-note {
    min-width: 0;
  }

  .production-table th:not(.production-fit) .production-th-btn {
    font-size: 9px;
  }

  .production-table__order-head td {
    padding: 3px 2px;
    font-size: var(--production-fs-compact);
  }

  .production-ft {
    padding: 4px var(--production-s);
    font-size: 11px;
  }

  .production-table th.production-fit:not(.hk-note),
  .production-table td.production-fit:not(.hk-note) {
    min-width: 2.5ch;
  }

  .production-table th.production-fit.hk-note,
  .production-table td.production-fit.hk-note {
    min-width: 7ch;
  }

  .production-view[data-production-mode='orders'] {
    --production-fs-num: clamp(6.5px, 3.25vw, 12px);
    --production-fs-head: clamp(4.5px, 2.1vw, 8px);
    --production-fs-sw: clamp(5.5px, 2.95vw, 10px);
    --production-canvas-fs: clamp(5.5px, 2.85vw, var(--production-fs-num));
  }

  .production-view[data-production-mode='orders'] .production-table td.production-spec-pair,
  .production-view[data-production-mode='orders'] .production-table td[data-production-col='canvas'] {
    max-width: 11vw;
  }

  .production-view[data-production-mode='orders'] .production-table thead .production-th-label {
    max-width: 2.2ch;
  }

  .production-view[data-production-mode='orders'] .production-th-sub,
  .production-view[data-production-mode='all'] .production-th-sub {
    display: none;
  }

  .production-view[data-production-mode='all'] .production-table col:nth-child(5) { width: 14%; }
  .production-view[data-production-mode='all'] .production-table col:nth-child(9) { width: 14%; }
}
