/* ==========================================================================
   Delovi — мобильная вёрстка
   Подключается ПОСЛЕ landing.css, переопределяет его правила до 760 px.

   Реальная разметка лендинга:
     .hero > .hero-copy > h1 + p.lead + .cta-row(.btn .btn-dark / .btn-line)
     .stats > .stat × 4
     .block > .perks > .perk (img.toy + h3 + p)
     .block.explore > .map + div(h2 + p.sub)
     .block#site > .site-copy
     .block.community > div + .cluster
     .block.quotes > .steps > .step × 6
     .block.ask > .ask-card + .faq
     .block.final-cta > .cta-card
     footer.foot > .foot-grid + .copy

   Правила:
   • Цель для пальца ≥ 44 px, текст ≥ 15 px, поля ввода 16 px.
   • Никакой горизонтальной прокрутки страницы.
   • Секции дышат: 48–56 px.
   ========================================================================== */

/* ── Планшет: 761–1000 px ─────────────────────────────────────────────── */
@media (min-width: 761px) and (max-width: 1000px) {
  .nav { padding: 16px 24px 8px; }
  .hero { padding: 40px 24px 40px; }
  .hero h1 { font-size: clamp(40px, 5.6vw, 54px); }
  .block { padding: 52px 24px; }
  .perks { gap: 24px; }
  .perk .toy { width: 132px; height: 132px; }
  .map { height: 380px; }
  .cluster { height: 380px; }
  .foot { padding: 40px 24px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
}

/* ── Телефон: до 760 px ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Якоря не прячутся под липкой шапкой */
    scroll-padding-top: 72px;
  }
  body {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
  .stage { padding: 0; }
  .sheet {
    overflow-x: clip;
    border-radius: 0;
    max-width: none;
  }

  /* ══ Шапка ══════════════════════════════════════════════════════════ */
  .nav {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(16, 24, 40, 0.07);
  }
  .brand { gap: 8px; min-width: 0; font-size: 18px; }
  .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .brand-name { font-size: 18px; letter-spacing: -0.04em; }
  .nav-login {
    order: 2;
    margin-left: auto;
    height: 42px;
    padding: 0 18px;
    font-size: 15px;
    border-radius: 12px;
  }
  /* Кнопка меню: аккуратный квадрат с тремя линиями по центру */
  .menu-btn {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    margin-left: 2px;
    padding: 0;
    border-radius: 13px;
    border: 0;
    background: transparent;
    transition: opacity 0.18s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-btn:active { opacity: 0.6; }

  .menu-btn span {
    display: block;
    width: 17px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    background: #1b1e27;
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.16s ease;
  }

  /* Открытое меню: две линии складываются в крестик, средняя исчезает */
  .nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav-panel {
    left: 0;
    right: 0;
    padding: 6px 16px 18px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.14);
  }
  .nav-links { gap: 2px; }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 4px;
    font-size: 17px;
    font-weight: 650;
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
  }
  .nav-links a:last-child { border-bottom: 0; }

  /* ══ Hero ═══════════════════════════════════════════════════════════ */
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: 28px 20px 36px;
  }
  .hero-copy { min-width: 0; }
  .hero h1 {
    margin: 0;
    font-size: clamp(31px, 8.4vw, 39px);
    line-height: 1.05;
    letter-spacing: -0.045em;
  }
  /* Первая строка должна переноситься — иначе вылезет за экран */
  .hero h1 .d1 { white-space: normal; }
  .hero h1 span { display: block; }

  .hero .lead {
    max-width: none;
    margin: 14px 0 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: #66707c;
  }
  .hero .cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
  }
  .hero .cta-row .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    font-size: 16px;
    border-radius: 14px;
  }

  /* ══ Полоса цифр ════════════════════════════════════════════════════ */
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    border-radius: 0;
  }
  .stat {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 18px 16px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.18); }
  .stat:nth-child(-n + 2) { border-top: 0; }
  .stat b {
    font-size: 25px;
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .stat span {
    max-width: none;
    font-size: 13px;
    line-height: 1.3;
    opacity: 0.9;
  }
  /* Ручные <br> в подписях на телефоне лишние */
  .stat span br { display: none; }

  /* ══ Общие секции ═══════════════════════════════════════════════════ */
  .block { padding: 48px 20px; }
  .perks,
  .explore,
  .community,
  .ask,
  .steps,
  .more-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .block h2,
  .perks h2,
  .split h2,
  .wide h2,
  .ask h2,
  .quotes h2,
  #site .site-copy h2 {
    font-size: clamp(26px, 7vw, 31px);
    line-height: 1.12;
    letter-spacing: -0.04em;
  }
  .perks .sub,
  .split .sub,
  .wide .sub,
  .ask .sub,
  #site .sub {
    max-width: none;
    margin-top: 12px;
    font-size: 15.5px;
    line-height: 1.55;
  }
  .sub, .fine { max-width: none; }

  /* ══ Продукт: карточки Заказы / Клиенты / Касса ══════════════════════
     Картинка слева в рамке, текст справа. Так блок читается быстрее,
     чем три больших фото в столбец, и занимает втрое меньше высоты. */
  .perks { gap: 0; }

  .perks-head {
    padding-bottom: 22px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  }
  .perks-head h2 { margin-bottom: 0; }
  .perks-head .sub { margin-top: 12px; }

  .perk {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0;
    text-align: left;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  }
  .perk:last-child {
    padding-bottom: 22px;
    border-bottom: 0;
  }

  /* Картинка: мягкая плитка вместо крупного фото */
  .perk .toy {
    display: block;
    width: 84px;
    height: 84px;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 18px;
    object-fit: cover;
    filter: none;
    box-shadow: 0 6px 16px rgba(48, 68, 98, 0.14);
    background: #f2f6fb;
  }

  .perk-body { min-width: 0; }
  .perk h3 {
    margin: 2px 0 6px;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }
  .perk p {
    max-width: none;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #5c6570;
  }

  /* ══ Карта с пинами и облачко поддержки ═════════════════════════════ */
  .explore { padding-top: 40px; }
  .map, .cluster {
    height: 290px;
    overflow: hidden;
    border-radius: 20px;
  }
  .scribble { display: none; }
  .pad { inset: 0; border-radius: 20px; }
  .pin { width: 58px; height: 58px; }
  .pin.lg { width: 88px; height: 88px; }
  .bubble {
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 13px;
  }
  .community { gap: 22px; }
  .community .cta-row { margin-top: 16px; }

  /* ══ Свой сайт ══════════════════════════════════════════════════════ */
  #site .site-copy {
    max-width: none;
    margin: 0;
    text-align: left;
  }
  #site .feat {
    width: auto;
    margin: 16px 0 0;
    padding-left: 20px;
    text-align: left;
  }
  #site .feat li {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.55;
  }
  #site .fine { margin-top: 14px; }

  /* ══ Шаги ═══════════════════════════════════════════════════════════ */
  .steps { gap: 12px; margin-top: 22px; }
  .step {
    min-width: 0;
    min-height: 0;
    padding: 20px 18px;
    border-radius: 18px;
  }
  .step i { font-size: 12.5px; }
  .step h3 { margin: 8px 0 6px; font-size: 19px; letter-spacing: -0.03em; }
  .step p { font-size: 14.5px; line-height: 1.55; }

  /* ══ Вопросы ════════════════════════════════════════════════════════ */
  .ask { gap: 26px; }
  .ask-card {
    min-width: 0;
    padding: 26px 20px;
    border-radius: 22px;
  }
  .ask-card h2 { max-width: none; }
  .ask-card .sub { max-width: none; }
  .ask-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border-radius: 14px;
  }
  .faq { min-width: 0; }
  .faq-item button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 16px 4px;
    text-align: left;
    white-space: normal;
    font-size: 16px;
    line-height: 1.4;
  }
  .faq-item button .chev { flex: none; }
  .faq-item .ans p {
    margin: 0 4px 16px;
    font-size: 15px;
    line-height: 1.55;
  }
  /* Длинный ответ не должен упираться в фиксированную высоту */
  .faq-item.open .ans { max-height: 800px; }

  /* ══ Финальный призыв ══════════════════════════════════════════════ */
  .final-cta { padding-bottom: 48px; }
  .cta-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 28px 20px;
    border-radius: 22px;
    text-align: left;
  }
  .cta-card h2 { font-size: 24px; line-height: 1.15; }
  .cta-card .sub { max-width: none; font-size: 15px; }
  .cta-actions { display: flex; width: 100%; }
  .cta-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 50px;
    border-radius: 14px;
  }

  /* ══ Подвал ════════════════════════════════════════════════════════ */
  .foot {
    padding: 36px 20px calc(28px + env(safe-area-inset-bottom));
  }
  .foot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .foot-grid > div:first-child .brand { margin-bottom: 10px; }
  .foot-grid > div:first-child p { max-width: 320px; }
  .foot h3 {
    margin: 0 0 10px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
  }
  .foot-grid a,
  .foot-grid p {
    display: flex;
    align-items: center;
    margin: 0 0 2px;
    min-height: 36px;
    font-size: 14.5px;
  }
  .copy {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
  }

  /* ══ Вход ══════════════════════════════════════════════════════════ */
  .auth-root {
    padding: 12px;
    padding-top: calc(12px + env(safe-area-inset-top));
    align-items: center;
  }
  .auth-card {
    display: block;
    width: min(440px, 100%);
    min-height: 0;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    border-radius: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .auth-side { display: none; }
  .auth-form { padding: 48px 20px 24px; }
  .auth-form h3 { font-size: 25px; line-height: 1.15; text-align: center; }
  .auth-lead { font-size: 15px; line-height: 1.5; }
  .auth-form input:not([type="checkbox"]),
  .auth-submit {
    width: 100%;
    min-height: 50px;
    font-size: 16px;  /* 16 px — иначе iOS зумит страницу */
  }
  .auth-code-cells {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .auth-code-cells input {
    width: 100%;
    min-height: 56px;
    font-size: 24px;
    text-align: center;
  }
  .auth-x {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  /* ══ Юридические документы ═════════════════════════════════════════ */
  .legal-doc {
    max-width: none;
    padding: 8px 20px calc(56px + env(safe-area-inset-bottom));
  }
  .legal-doc h1 {
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.03em;
  }
  .legal-doc h2 { margin-top: 26px; font-size: 19px; line-height: 1.25; }
  .legal-doc p,
  .legal-doc li {
    font-size: 15.5px;
    line-height: 1.62;
    overflow-wrap: anywhere;
  }
  .legal-doc li { margin: 8px 0; }

  /* ══════════════════════════════════════════════════════════════════
     CRM
     ══════════════════════════════════════════════════════════════════ */
  .desk-nav { display: none !important; }
  .crm-real .desk-nav { display: flex !important; }

  .desk {
    padding: 12px 14px calc(88px + env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    font-size: 15px;
  }
  .crm-real .desk {
    padding: 14px 16px 18px !important;
    font-size: inherit;
  }

  .desk-top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
  }
  .desk-brand { flex: none; margin-right: auto; font-size: 18px; }
  .desk-tools { flex: none; margin-left: 0; gap: 6px; }
  .desk-tools button,
  .note-btn,
  .gear-btn,
  .desk-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .desk-person { display: none; }

  .desk-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 34;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2px;
    margin: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 -8px 28px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .desk-tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 6px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    transition: background 0.16s ease, color 0.16s ease;
  }
  .desk-tabbar button.is-active { background: #e8f6ff; color: #0e7bbd; }

  .desk-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }
  .desk-head h1,
  .pay-title-line,
  .settings-hello h2 {
    font-size: clamp(22px, 6.4vw, 26px);
    line-height: 1.15;
    letter-spacing: -0.03em;
  }
  .desk-head p { font-size: 13.5px; line-height: 1.45; }
  .desk-head-actions,
  .wh-head-actions,
  .pay-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0;
  }
  .desk-head-actions > *,
  .desk-head-actions .desk-add,
  .desk-head-actions .export-btn,
  .desk-head-actions button,
  .wh-head-actions > button {
    flex: 1 1 140px;
    width: auto;
    min-height: 46px;
    justify-content: center;
    border-radius: 12px;
  }

  .desk input,
  .desk select,
  .desk textarea,
  .export-dialog input,
  .export-dialog select,
  .export-dialog textarea { font-size: 16px; }
  .desk input,
  .desk select,
  .desk textarea { min-height: 44px; border-radius: 10px; }

  .desk-kpis,
  .pay-kpis {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .crm-real .desk-kpis { grid-template-columns: repeat(4, 1fr) !important; }
  .desk-kpis article,
  .desk-kpis > * { min-width: 0; padding: 14px; border-radius: 16px; }
  .desk-kpis strong {
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .desk-grid,
  .desk-bottom,
  .cash-board,
  .cash-pair,
  .stats-main,
  .stats-side,
  .stats-wh-grid,
  .pay-accounts,
  .pay-pair,
  .create-split,
  .store-grid,
  .clients-board {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }
  .crm-real .desk-grid { grid-template-columns: 1.45fr 0.85fr !important; }
  .crm-real .desk-bottom { grid-template-columns: 0.8fr 1.6fr !important; }

  .desk-card,
  .cash-card,
  .stats-mini,
  .stats-money,
  .stats-clients,
  .stats-tasks,
  .stats-people,
  .stats-journal {
    min-width: 0;
    max-width: 100%;
    border-radius: 16px;
  }
  .desk-chart,
  .perf,
  .desk-chart svg,
  .stats-page svg { max-width: 100%; }
  .ring {
    width: min(160px, 46vw);
    margin-left: auto;
    margin-right: auto;
  }

  .orders-list > header,
  .clients-dir > header,
  .clients-page .desk-card > header,
  .wh-main > header,
  .pay-history > header,
  .stats-money > header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  /* ══ Панель инструментов: поиск + фильтры ══════════════════════════════
     Раньше это был flex с min-width: 140px у фильтров — на узком экране
     два фильтра не влезали в строку, один переносился и повисал слева.
     Теперь CSS Grid: поиск занимает всю ширину первой строки, фильтры и
     кнопки делят вторую поровну. Раскладка предсказуема на любом экране. */
  .clients-tools,
  .orders-page .clients-tools,
  .clients-page .clients-tools,
  .pay-filters,
  .wh-head-actions,
  .desk-head-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Поиск — на всю ширину, отдельной строкой сверху */
  .clients-tools > .clients-search,
  .clients-tools > label.clients-search,
  .orders-page .clients-tools > .clients-search,
  .clients-tools > .wh-search,
  .clients-tools > input.wh-search {
    grid-column: 1 / -1;
    order: -1;
    flex: none;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 46px;
    margin: 0;
    border-radius: 12px;
  }
  .clients-tools > .clients-search input,
  .orders-page .clients-tools > .clients-search input,
  .clients-tools > .wh-search input {
    width: 100% !important;
    min-width: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    font-size: 16px;
  }

  /* Фильтры и кнопки — по одной ячейке сетки, без min-width из landing.css */
  .clients-tools > div,
  .clients-tools > .filter-menu,
  .clients-tools > .filter-menu.clients-filter,
  .clients-tools > button,
  .clients-tools > .wh-bulk,
  .pay-filters > *,
  .wh-head-actions > *,
  .desk-head-actions > * {
    flex: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
  }

  .clients-filter,
  .filter-menu.clients-filter {
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }
  .clients-filter > button,
  .filter-menu.clients-filter > button,
  .filter-menu.clients-filter.is-icon > button,
  .filter-face.wh-filter-face {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .clients-tools > button,
  .clients-tools > .wh-bulk {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .clients-filter-pop,
  .status-pop,
  .range-pop,
  .note-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: min(60dvh, 420px);
    overflow: auto;
    z-index: 60;
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
  }

  /* Таблицы листаются вбок внутри обёртки, а не ломаются в карточки */
  .orders-page .desk-table-wrap,
  .clients-page .desk-table-wrap,
  .wh-board .wh-main .desk-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
    scrollbar-width: thin;
    border-radius: 14px;
  }
  .orders-page .orders-table,
  .clients-page .clients-table,
  .task-table,
  .wh-board .wh-main .wh-table {
    display: table !important;
    table-layout: auto !important;
    width: auto !important;
    min-width: 100% !important;
    max-width: none !important;
    border-collapse: collapse;
  }
  .orders-page .orders-table thead,
  .clients-page .clients-table thead,
  .task-table thead,
  .wh-board .wh-main .wh-table thead { display: table-header-group !important; }
  .orders-page .orders-table tbody,
  .clients-page .clients-table tbody,
  .task-table tbody,
  .wh-board .wh-main .wh-table tbody { display: table-row-group !important; }
  .orders-page .orders-table tr,
  .clients-page .clients-table tr,
  .task-table tr,
  .wh-board .wh-main .wh-table tr {
    position: static !important;
    display: table-row !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .orders-page .orders-table th,
  .clients-page .clients-table th,
  .task-table th,
  .wh-board .wh-main .wh-table th,
  .orders-page .orders-table td,
  .clients-page .clients-table td,
  .task-table td,
  .wh-board .wh-main .wh-table td {
    display: table-cell !important;
    position: static !important;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    padding: 11px 12px !important;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.35;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .orders-page .orders-table th,
  .clients-page .clients-table th,
  .task-table th,
  .wh-board .wh-main .wh-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    color: #667085;
    background: #f9fafb;
    white-space: nowrap !important;
  }
  .orders-page .orders-table td *,
  .clients-page .clients-table td *,
  .task-table td *,
  .wh-board .wh-main .wh-table td * {
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .orders-page .orders-table td[data-label]::before,
  .clients-page .clients-table td[data-label]::before,
  .task-table td[data-label]::before,
  .wh-board .wh-main .wh-table td[data-label]::before { content: none !important; }

  .orders-page .orders-table td.card-title,
  .clients-page .clients-table td.card-title,
  .task-table td.card-title {
    padding: 11px 12px !important;
    font-size: 13.5px;
    font-weight: 650;
  }
  .orders-page .orders-table td.pick-cell,
  .clients-page .clients-table td.pick-cell,
  .task-table td.pick-cell,
  .wh-board .wh-main .wh-table td.pick-cell,
  .orders-page .orders-table td:has(.orders-edit),
  .clients-page .clients-table td:has(.orders-edit),
  .task-table td:has(.orders-edit),
  .wh-board .wh-main .wh-table td:has(.orders-edit) {
    position: static !important;
    top: auto;
    right: auto;
    display: table-cell !important;
    flex-direction: row;
    width: auto !important;
    z-index: auto;
  }
  .orders-page .orders-table td.status-cell,
  .task-table td.status-cell { display: table-cell !important; }
  .pill { max-width: none; white-space: nowrap; text-align: center; }

  .wh-board,
  .wh-board.wh-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-side {
    display: flex;
    flex-direction: row;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .wh-side h2 { display: none; }
  .wh-side > button,
  .wh-side .wh-all { flex: none; min-height: 42px; border-radius: 12px; }
  .wh-thumb,
  .wh-board .wh-main .wh-table img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 9px;
  }

  .clients-load button,
  .empty-action,
  .desk-add { min-height: 46px; border-radius: 12px; }
  .section-blank,
  .empty-state { padding: 30px 10px; text-align: center; }

  .pay-page,
  .stats-page,
  .cash-board { min-width: 0; max-width: 100%; }
  .pay-list li,
  .cash-list li,
  .stats-money li {
    min-width: 0;
    overflow-wrap: anywhere;
    border-radius: 12px;
  }
  .pay-switch,
  .pay-accounts-row {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pay-amount input { font-size: 32px; }
  .stats-money header strong { font-size: 22px; }

  .settings-page,
  .settings-page.settings-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }
  .settings-page .settings-tabs,
  .settings-page .settings-tabs.settings-tabs {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #eaecf0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .settings-tabs button,
  .settings-group button {
    flex: none;
    min-height: 42px;
    white-space: nowrap;
    border-radius: 12px;
  }
  .settings-page .settings-main { min-width: 0; padding: 18px 2px 30px; }
  .settings-sub,
  .settings-sub.is-open,
  .settings-page .settings-sub.shop-sub.is-open {
    max-height: none;
    overflow: visible;
  }
  .profile-names,
  .settings-picks,
  .profile-id { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .settings-leave { width: 100%; min-height: 50px; border-radius: 14px; }

  .person-card { min-width: 0; }
  .person-card h2,
  .person-card .person-copy h2 {
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .export-modal { align-items: flex-end; padding: 0; }
  .export-modal > .export-dialog,
  .export-dialog.pay-dialog,
  .export-dialog.add-dialog,
  .export-dialog.client-base,
  .export-dialog.wh-view,
  .export-dialog.create-one,
  .wh-attach-dialog,
  .wh-qty-dialog,
  .soft-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 22px 22px 0 0;
    max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top)));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .export-modal > .export-dialog::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 3px;
    background: rgba(16, 24, 40, 0.16);
  }
  .export-dialog .desk-table-wrap,
  .export-dialog.client-base,
  .wh-attach,
  .sale-sheet,
  .create-split {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .order-client-row,
  .pay-pair,
  .export-dialog.pay-dialog .pay-pair,
  .export-dialog.pay-dialog .order-client-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .desk:has(.export-modal) .desk-tabbar,
  .desk:has(.desk-more-scrim) .desk-tabbar { visibility: hidden; }
}

/* ── Узкий телефон: до 380 px ───────────────────────────────────────────── */
@media (max-width: 380px) {
  .nav { padding-left: 12px; padding-right: 12px; }
  .brand-name { font-size: 16px; }
  .nav-login { padding: 0 14px; font-size: 14px; }

  .hero { padding: 22px 14px 30px; }
  .hero h1 { font-size: 28px; }
  .hero .lead { font-size: 15px; }

  .block { padding: 42px 14px; }
  .block h2,
  .perks h2,
  .ask h2,
  .quotes h2,
  #site .site-copy h2 { font-size: 24px; }

  .stat { padding: 15px 12px; }
  .stat b { font-size: 21px; }
  .stat span { font-size: 12px; }

  .perk .toy { border-radius: 16px; }
  .step { padding: 18px 15px; }
  .step h3 { font-size: 18px; }
  .map, .cluster { height: 250px; }

  .faq-item button { font-size: 15px; }
  .cta-card { padding: 24px 16px; }
  .cta-card h2 { font-size: 22px; }

  .foot { padding-left: 14px; padding-right: 14px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .foot-grid > div:first-child { grid-column: auto; }

  .desk { padding-left: 10px; padding-right: 10px; }
  .desk-tabbar button { font-size: 10.5px; min-height: 48px; }
  .desk-kpis strong { font-size: 18px; }
}

/* ── Ландшафт: экономим высоту ──────────────────────────────────────────── */
@media (max-width: 900px) and (max-height: 460px) and (orientation: landscape) {
  .nav { position: static; }
  .hero { padding-top: 16px; padding-bottom: 24px; }
  .hero .cta-row { flex-direction: row; }
  .auth-card { max-height: calc(100dvh - 12px); }
  .desk-tabbar { position: static; }
  .desk { padding-bottom: 16px; }
}

/* ── Уменьшенное движение ───────────────────────────────────────────────── */
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-btn span,
  .desk-tabbar button { transition: none; }
}

/* ══ ТОВАРЫ В НАСТРОЙКАХ → МАГАЗИН ══════════════════════════════════ */
.shop-goods-switch { display: flex; gap: 8px; margin: 0 0 14px; }
.shop-goods-switch button {
  height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #f2f4f7; color: #344054;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.shop-goods-switch button.is-active { background: #38b6ff; color: #fff; }
.shop-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-product {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 45, 74, 0.05);
}
.shop-product-photo {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 14px;
  background: #f2f6fb;
  color: #98a2b3;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.shop-product-photo:focus,
.shop-product-photo:focus-visible,
.shop-product-photo:active {
  outline: none;
  box-shadow: none;
}
.shop-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-product-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.shop-product-body b {
  font-size: 15px;
  color: #1d2939;
}
.shop-product-body small {
  font-size: 13px;
  color: #667085;
  line-height: 1.4;
}
.shop-product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.shop-product-meta strong {
  font-size: 16px;
  color: #1d2939;
}
.shop-product-meta i {
  padding: 2px 8px;
  border-radius: 7px;
  background: #f2f6fb;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: #667085;
}
.shop-product-buy {
  min-width: 110px;
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.shop-product-buy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .shop-product {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .shop-product-photo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    font-size: 22px;
  }
  .shop-product-buy {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* ══ КНОПКА ПОКУПКИ В МОДАЛКЕ ТОВАРА ═══════════════════════════════ */
.shop-modal-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: #38b6ff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-modal-buy:hover:not(:disabled) { background: #2aa9f0; }
.shop-modal-buy:active:not(:disabled) { background: #1f9ad9; }
.shop-modal-buy:disabled {
  background: #38b6ff;
  color: #fff;
  opacity: 0.65;
  cursor: not-allowed;
}


/* ══ КАРТОЧКА ТОВАРА В МОДАЛКЕ (вертикальная) ═══════════════════════ */
.export-dialog.shop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  padding: 26px 22px 22px;
  border-radius: 22px;
  text-align: center;
  overflow: visible;
}
.shop-card-photo {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #f4f7fb;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.shop-card-photo:hover,
.shop-card-photo:focus,
.shop-card-photo:focus-visible,
.shop-card-photo:active {
  outline: none;
  box-shadow: none;
  border: 0;
  transform: none;
  filter: none;
  opacity: 1;
}
.shop-card-photo img,
.shop-card-photo:hover img {
  transform: none;
  filter: none;
  opacity: 1;
  transition: none;
}
.shop-card-photo:not(.is-click) {
  cursor: default;
}
.shop-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-card-photo .wh-thumb {
  width: 88px;
  height: 88px;
}
.shop-card-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #1d2939;
  word-break: break-word;
}
.shop-card-desc {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.5;
  color: #667085;
  word-break: break-word;
}
.shop-card .shop-modal-buy {
  width: 100%;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .export-dialog.shop-card {
    width: calc(100vw - 24px);
    max-width: 420px;
    padding: 22px 16px 18px;
    gap: 12px;
  }
  .shop-card-photo {
    max-width: 100%;
  }
  .shop-card-name {
    font-size: 18px;
  }
}


/* Крестик закрытия карточки товара — как в окне склада, но без фона */
.export-dialog.shop-card .wh-view-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}
.export-dialog.shop-card .wh-view-close:hover { color: #344054; background: transparent; }
.export-dialog.shop-card .wh-view-close:focus,
.export-dialog.shop-card .wh-view-close:focus-visible,
.export-dialog.shop-card .wh-view-close:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}


/* ══ ФОТО В КАРТОЧКЕ ТОВАРА: БЕЗ БОРДЕРА И БЕЗ ХОВЕРА ══════════════ */
/* Перебиваем .wh-thumb.is-empty (border 1px #e4e7ec) и любые hover-наследства */
.export-dialog.shop-card .shop-card-photo,
.export-dialog.shop-card .shop-card-photo:hover,
.export-dialog.shop-card .shop-card-photo:focus,
.export-dialog.shop-card .shop-card-photo:focus-visible,
.export-dialog.shop-card .shop-card-photo:active {
  border: 0;
  outline: 0;
  box-shadow: none;
  transform: none;
  filter: none;
  opacity: 1;
  background: #f4f7fb;
  transition: none;
}
.export-dialog.shop-card .shop-card-photo .wh-thumb,
.export-dialog.shop-card .shop-card-photo .wh-thumb.is-empty,
.export-dialog.shop-card .shop-card-photo:hover .wh-thumb.is-empty {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}
.export-dialog.shop-card .shop-card-photo img,
.export-dialog.shop-card .shop-card-photo:hover img,
.export-dialog.shop-card .shop-card-photo:focus img {
  border: 0;
  outline: 0;
  box-shadow: none;
  transform: none;
  filter: none;
  opacity: 1;
  transition: none;
}


/* ══ ФОТО ТОВАРА: ПЕРЕБИВАЕМ .export-dialog > button ═══════════════ */
/* .export-dialog > button задаёт border 1px #e4e7ec + background #fff
   и :hover background #eef6ff. Наш <button> — прямой потомок, поэтому
   нужен селектор не слабее и с !important на критичных свойствах. */
.export-dialog.shop-card > button.shop-card-photo,
.export-dialog.shop-card > button.shop-card-photo:hover,
.export-dialog.shop-card > button.shop-card-photo:focus,
.export-dialog.shop-card > button.shop-card-photo:focus-visible,
.export-dialog.shop-card > button.shop-card-photo:active {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #f4f7fb !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  transition: none !important;
  text-align: center !important;
}
.export-dialog.shop-card > button.shop-card-photo .wh-thumb,
.export-dialog.shop-card > button.shop-card-photo .wh-thumb.is-empty,
.export-dialog.shop-card > button.shop-card-photo:hover .wh-thumb.is-empty {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.export-dialog.shop-card > button.shop-card-photo img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}


/* ══ КНОПКА ПОКУПКИ: ВСЕГДА ГОЛУБАЯ, ТЕКСТ БЕЛЫЙ ═══════════════════ */
.export-dialog.shop-card .shop-modal-buy,
.export-dialog.shop-card .shop-modal-buy.desk-add,
.export-dialog.shop-card .shop-modal-buy:disabled,
.export-dialog.shop-card .shop-modal-buy.desk-add:disabled,
.export-dialog.shop-card .shop-modal-buy:disabled:hover {
  background: #38b6ff !important;
  background-color: #38b6ff !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  cursor: pointer;
}
.export-dialog.shop-card .shop-modal-buy:disabled,
.export-dialog.shop-card .shop-modal-buy.desk-add:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}


/* ══ ОФОРМЛЕНИЕ ДОСТАВКИ В КАРТОЧКЕ ТОВАРА ═════════════════════════ */
.shop-checkout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  text-align: left;
}
.shop-checkout-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f9ff;
  border: 1px solid #d9edff;
}
.shop-checkout-note b { font-size: 13px; font-weight: 700; color: #1d2939; }
.shop-checkout-note span { font-size: 12.5px; color: #667085; line-height: 1.4; }

.shop-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: text;
}
.shop-field > span {
  font-size: 12px;
  font-weight: 650;
  color: #667085;
}
.export-dialog.shop-card .shop-field input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #1d2939;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
}
.export-dialog.shop-card .shop-field input::placeholder { color: #b6bfcd; font-weight: 500; }
.export-dialog.shop-card .shop-field input:focus {
  outline: none;
  border-color: #38b6ff;
  box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.16);
}

.shop-checkout-tip {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #667085;
}
.shop-checkout-err {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: #d92d20;
}
.shop-checkout-fine {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #98a2b3;
  text-align: center;
}

/* ══ МОИ ДОСТАВКИ ═════════════════════════════════════════════════ */
.shop-deliveries { display: flex; flex-direction: column; gap: 12px; }
.shop-delivery-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f4f9ff;
  border: 1px solid #d9edff;
  font-size: 12.5px;
  line-height: 1.45;
  color: #475467;
}
.shop-delivery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 12px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #fff;
}
.shop-delivery header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.shop-delivery header b { font-size: 14.5px; font-weight: 700; color: #1d2939; }
.shop-delivery header strong { font-size: 14.5px; font-weight: 700; color: #1d2939; white-space: nowrap; }

.shop-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-track li {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.shop-track li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #eaecf0;
}
.shop-track li:first-child::before { display: none; }
.shop-track li.is-done::before { background: #38b6ff; }
.shop-track i {
  position: relative;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eaecf0;
  box-shadow: none;
}
.shop-track li.is-done i { background: #38b6ff; }
.shop-track span {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #98a2b3;
}
.shop-track li.is-done span { color: #1d2939; }
.shop-delivery-info {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}
.shop-delivery-info div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.shop-delivery-info dt { font-size: 12.5px; color: #667085; }
.shop-delivery-info dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: #1d2939;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 760px) {
  .shop-track span { font-size: 10.5px; }
  .shop-delivery { padding: 12px 12px 10px; }
}


/* ══ БЕСПЛАТНАЯ ДОСТАВКА: МЕТКА ════════════════════════════════════ */
.shop-checkout-note b {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-free {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 7px;
  background: #e7f7ee;
  color: #027a48;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.shop-free-text { color: #027a48 !important; }


/* ══ ОТДЕЛЬНОЕ ОКНО ОФОРМЛЕНИЯ ЗАКАЗА ══════════════════════════════ */
.export-dialog.shop-checkout-dialog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  padding: 28px 24px 22px;
  border-radius: 22px;
  background: #fff;
  text-align: left;
  overflow: visible;
  position: relative;
}
.shop-checkout-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d2939;
}
.shop-checkout-head p {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #667085;
}
.export-dialog.shop-checkout-dialog .shop-checkout-note {
  margin-top: 2px;
}
.export-dialog.shop-checkout-dialog .shop-modal-buy {
  margin-top: 4px;
}
.export-dialog.shop-checkout-dialog .wh-view-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.15s ease;
}
.export-dialog.shop-checkout-dialog .wh-view-close:hover { color: #344054; background: transparent; }

@media (max-width: 760px) {
  .export-dialog.shop-checkout-dialog {
    width: calc(100vw - 24px);
    padding: 22px 16px 18px;
    gap: 10px;
  }
  .shop-checkout-head h2 { font-size: 17px; }
}


/* ══ ОКНО ОФОРМЛЕНИЯ: ТОВАР, ИНПУТЫ, ПОДВАЛ ════════════════════════ */

/* Товар сверху: название + цена */
/* Товар и цена: без фона, просто подписи и значения */
.shop-order-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.shop-order-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.shop-order-key {
  font-size: 13px;
  font-weight: 500;
  color: #667085;
}
.shop-order-value {
  font-size: 13.5px;
  font-weight: 650;
  color: #1d2939;
  text-align: right;
  word-break: break-word;
}

/* Инпуты: подпись сверху, поле с мягкой рамкой */


/* Подсказка про Ozon */
.shop-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 13px;
  background: #fbfcfe;
  border: 1px solid #eef2f7;
}
.shop-tip svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: #98a2b3;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-tip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #667085;
}

/* Подвал: доставка отдельно, легко читается */
.shop-checkout-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
  padding-top: 0;
  border-top: 0;
}
.shop-checkout-foot b {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: #1d2939;
}
.shop-checkout-foot > span {
  font-size: 12.5px;
  line-height: 1.5;
  color: #667085;
}
.shop-checkout-foot small {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #98a2b3;
}





/* ══ ПОЛЯ ОФОРМЛЕНИЯ — ТОЧНО КАК .doc-field В ДОКУМЕНТАЦИИ ═════════ */
.export-dialog.shop-checkout-dialog .shop-doc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #667085;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input,
.export-dialog.shop-checkout-dialog .shop-doc-phone {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #e4e9f0;
  border-radius: 11px;
  background: #fff;
  outline: none;
  transition: none;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input {
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #101828;
}
/* Наведение ничего не меняет — как в документации */
.export-dialog.shop-checkout-dialog .shop-doc-field > input:hover,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:not(:placeholder-shown):hover,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:focus,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:focus-visible,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:focus:hover,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:active {
  border: 1px solid #e4e9f0 !important;
  border-color: #e4e9f0 !important;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  transition: none !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input::placeholder {
  color: #a9b3c1;
  font-weight: 400;
}

/* Телефон: внешняя рамка как у полей, внутри флаг и +7 */
.export-dialog.shop-checkout-dialog .shop-doc-phone {
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone:hover,
.export-dialog.shop-checkout-dialog .shop-doc-phone:focus-within {
  border: 1px solid #e4e9f0 !important;
  border-color: #e4e9f0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 10px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #101828;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone input::placeholder {
  color: #a9b3c1;
  font-weight: 400;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-phone-prefix {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  pointer-events: none;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-flag {
  width: 21px;
  height: 14px;
  border-radius: 3px;
  box-shadow: none !important;
  display: block;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-phone-prefix b {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
}


/* ══ ПОЛЯ ОФОРМЛЕНИЯ ЗАКАЗА ════════════════════════════════════════ */
/* ВАЖНО: .export-dialog input { display: none } в landing.css прячет
   все инпуты внутри диалогов. Перебиваем явно. */
.export-dialog.shop-checkout-dialog .shop-doc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.export-dialog.shop-checkout-dialog .shop-doc-label {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #667085;
  text-align: left;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input {
  display: block !important;
  width: 100% !important;
  height: 40px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 11px !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: normal !important;
  color: #101828 !important;
  text-align: left !important;
  outline: none !important;
  box-shadow: none !important;
  transition: none !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input::placeholder {
  color: #a9b3c1 !important;
  font-weight: 400 !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input:hover,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:focus,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:focus-visible,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:active {
  border: 1px solid #e4e9f0 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Телефон: рамка на обёртке, инпут внутри без рамки */
.export-dialog.shop-checkout-dialog .shop-doc-phone {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  height: 40px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-phone-prefix {
  position: static !important;
  transform: none !important;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  pointer-events: none;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-flag {
  display: block;
  width: 21px;
  height: 14px;
  border-radius: 3px;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
  background: none;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-phone-prefix b {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone > input {
  display: block !important;
  flex: 1;
  min-width: 0;
  width: auto !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #101828 !important;
  outline: none !important;
  box-shadow: none !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone > input::placeholder {
  color: #a9b3c1 !important;
  font-weight: 400 !important;
}


/* ══ ПОЛЯ ОФОРМЛЕНИЯ ЗАКАЗА ════════════════════════════════════════ */
/* ВАЖНО: .export-dialog input { display: none } в landing.css прячет
   все инпуты внутри диалогов. Перебиваем явно. */
.export-dialog.shop-checkout-dialog .shop-doc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.export-dialog.shop-checkout-dialog .shop-doc-label {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #667085;
  text-align: left;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input {
  display: block !important;
  width: 100% !important;
  height: 40px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 11px !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: normal !important;
  color: #101828 !important;
  text-align: left !important;
  outline: none !important;
  box-shadow: none !important;
  transition: none !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input::placeholder {
  color: #a9b3c1 !important;
  font-weight: 400 !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-field > input:hover,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:focus,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:focus-visible,
.export-dialog.shop-checkout-dialog .shop-doc-field > input:active {
  border: 1px solid #e4e9f0 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Телефон: рамка на обёртке, инпут внутри без рамки */
.export-dialog.shop-checkout-dialog .shop-doc-phone {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  height: 40px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-phone-prefix {
  position: static !important;
  transform: none !important;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  pointer-events: none;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-flag {
  display: block;
  width: 21px;
  height: 14px;
  border-radius: 3px;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
  background: none;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-phone-prefix b {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone > input {
  display: block !important;
  flex: 1;
  min-width: 0;
  width: auto !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #101828 !important;
  outline: none !important;
  box-shadow: none !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone > input::placeholder {
  color: #a9b3c1 !important;
  font-weight: 400 !important;
}


/* Пояснение под заголовком «Оформление заказа» */
.export-dialog.shop-checkout-dialog .shop-checkout-head p {
  display: block;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #98a2b3;
  text-align: left;
}


/* Пояснение под заголовком «Оформление заказа» */
.export-dialog.shop-checkout-dialog .shop-checkout-head p {
  display: block;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #98a2b3;
  text-align: left;
}


/* Заголовок окна: подпись строго ПОД названием, не справа.
   .export-dialog header в landing.css задаёт display:flex — перебиваем. */
.export-dialog.shop-checkout-dialog .shop-checkout-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
.export-dialog.shop-checkout-dialog .shop-checkout-head h2 {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}
.export-dialog.shop-checkout-dialog .shop-checkout-head p {
  display: block !important;
  width: 100%;
  flex: none !important;
  margin: 5px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #98a2b3 !important;
  text-align: left !important;
  white-space: normal !important;
}


/* ══ КНОПКА «ЗАКАЗАТЬ»: ВСЕГДА ГОЛУБАЯ С БЕЛЫМ ТЕКСТОМ ════════════ */
.export-dialog.shop-checkout-dialog .shop-modal-buy,
.export-dialog.shop-checkout-dialog .shop-modal-buy.desk-add,
.export-dialog.shop-checkout-dialog .shop-modal-buy:disabled,
.export-dialog.shop-checkout-dialog .shop-modal-buy.desk-add:disabled,
.export-dialog.shop-checkout-dialog .shop-modal-buy:hover,
.export-dialog.shop-checkout-dialog .shop-modal-buy:active,
.export-dialog.shop-checkout-dialog .shop-modal-buy:focus,
.export-dialog.shop-checkout-dialog .shop-modal-buy:focus-visible {
  background: #38b6ff !important;
  background-color: #38b6ff !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-text-fill-color: #fff !important;
  cursor: pointer;
}
.export-dialog.shop-checkout-dialog .shop-modal-buy:disabled,
.export-dialog.shop-checkout-dialog .shop-modal-buy.desk-add:disabled {
  cursor: progress;
}


/* Флаг России: без обводки и тени */
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-flag {
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
}
/* Сроки доставки: две строки по центру */
.export-dialog.shop-checkout-dialog .shop-checkout-foot > span {
  display: block;
  width: 100%;
  text-align: center;
}


/* Флаг России: гарантированно без обводки, тени и рамки */
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-flag,
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-flag:hover,
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-flag:focus {
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
}
.export-dialog.shop-checkout-dialog .shop-doc-phone .shop-flag rect {
  stroke: none;
  stroke-width: 0;
}


/* ══ ОТМЕНА ЗАКАЗА И КОММЕНТАРИЙ МЕНЕДЖЕРА (клиент) ════════════════ */
.shop-delivery-canceled {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #b42318;
  background: #d92d20;
  font-size: 12.5px;
  color: #fff;
}
.shop-delivery-canceled b { font-size: 13px; font-weight: 700; color: #fff; }
.shop-delivery-canceled span { line-height: 1.4; color: #fff; }
.shop-delivery-canceled small { font-size: 11.5px; color: #ffe4e2; opacity: 1; }
.shop-delivery-note-admin {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid #d1e9ff;
  background: #f0f8ff;
  font-size: 12.5px;
  color: #175cd3;
}
.shop-delivery-note-admin b { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; opacity: 0.75; }
.shop-delivery-note-admin span { line-height: 1.45; }


/* ══ ЦВЕТНЫЕ КРУГИ ЭТАПОВ + КНОПКА «Я ЗАБРАЛ ЗАКАЗ» ════════════════ */
.shop-track li.is-created.is-done i { background: #38b6ff; }
.shop-track li.is-shipped.is-done i { background: #f79009; }
.shop-track li.is-arrived.is-done i { background: #12b76a; }
.shop-track li.is-created.is-done::before { background: #38b6ff; }
.shop-track li.is-shipped.is-done::before { background: #f79009; }
.shop-track li.is-arrived.is-done::before { background: #12b76a; }
.shop-pickup {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border: 0;
  border-radius: 11px;
  background: #12b76a;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}
.shop-pickup:hover:not(:disabled) { background: #0f9d58; }
.shop-pickup:disabled { opacity: 0.65; cursor: default; }
/* Компактная отметка «получен» — внизу карточки, а не на всю ширину */
.shop-picked-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 12px 0 0 0;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  border: 1px solid #cfe8ff;
  background: #eaf6ff;
  color: #157fbe;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}
.shop-picked-chip i {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #38b6ff;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
/* На приглушённом фоне полученного заказа чип держим контрастным */
.shop-delivery.is-picked .shop-picked-chip {
  background: #fff;
  border-color: #bcd9f2;
}


/* ══ КАРТОЧКА ДОСТАВКИ: ШИРИНА КАК У КАРТОЧКИ ТОВАРА ═══════════════ */
.shop-deliveries {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.shop-delivery {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 14px;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 45, 74, 0.05);
}


/* ══ ПОЛУЧЕННЫЙ ЗАКАЗ: ПРИТЕМНЁННЫЙ КОНТЕЙНЕР ═════════════════════ */
.shop-delivery.is-picked {
  background: #fff;
  border-color: #eaecf0;
}

.shop-delivery.is-picked .shop-delivery-info dt { color: #8a8a8a; }
.shop-delivery.is-picked .shop-delivery-info dd { color: #5f5f5f; }
.shop-delivery.is-picked header b,
.shop-delivery.is-picked .shop-track span { color: #a3a3a3; }
.shop-delivery.is-picked .shop-track li.is-done span { color: #7a7a7a; }

.shop-delivery-info div.shop-info-note {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.shop-delivery-info div.shop-info-note dd {
  text-align: left;
  font-weight: 600;
  color: #175cd3;
}

.shop-delivery-info div.shop-info-note.is-empty dd {
  font-weight: 500;
  color: #98a2b3;
  font-style: italic;
}
/* На приглушённом фоне полученного заказа подсказка остаётся читаемой */
.shop-delivery.is-picked .shop-info-note.is-empty dd { color: #8a8a8a; }

/* Отменённый заказ: карточка приглушена, блок отмены — насыщенный красный */
.shop-delivery.is-canceled {
  background: #fff;
  border-color: #eaecf0;
}
.shop-delivery.is-canceled .shop-delivery-info dt { color: #8a8a8a; }
.shop-delivery.is-canceled .shop-delivery-info dd { color: #5f5f5f; }
.shop-delivery.is-canceled .shop-track span { color: #a3a3a3; }
.shop-delivery.is-canceled .shop-track li.is-done span { color: #7a7a7a; }

/* ══ Конструктор документов A4 ══ */
.blank-sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 18mm 16mm;
  background: #fff;
  color: #111;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 12pt;
  line-height: 1.5;
  box-sizing: border-box;
}
.blank-head { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 10px; border-bottom: 1.5px solid #111; }
.blank-org { display: flex; flex-direction: column; gap: 2px; font-size: 10.5pt; }
.blank-org b { font-size: 12pt; }
.blank-org span { color: #333; }
.blank-meta { text-align: right; font-size: 11pt; white-space: nowrap; }
.blank-title { margin: 22px 0 6px; text-align: center; font-size: 16pt; letter-spacing: 1px; font-weight: 700; }
.blank-city { margin: 0 0 14px; text-align: center; font-size: 11pt; color: #333; }
.blank-intro { margin: 14px 0; text-align: justify; }
.blank-block { margin: 16px 0; }
.blank-block h2 { margin: 0 0 6px; font-size: 12.5pt; font-weight: 700; }
.blank-block p { margin: 0; text-align: justify; white-space: pre-wrap; }
.blank-req { width: 100%; margin: 12px 0 18px; border-collapse: collapse; font-size: 10.5pt; }
.blank-req td { padding: 2px 6px; vertical-align: top; }
.blank-req td:first-child { width: 28%; color: #555; }
.blank-table { width: 100%; border-collapse: collapse; font-size: 11pt; margin-top: 6px; }
.blank-table th, .blank-table td { border: 1px solid #333; padding: 5px 7px; text-align: left; vertical-align: top; }
.blank-table th { background: #f2f4f7; font-weight: 700; font-size: 10.5pt; }
.blank-table td { min-height: 20px; }
.blank-signs { display: flex; gap: 40px; margin-top: 34px; }
.blank-signs > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.blank-signs small { color: #555; font-size: 10pt; }
.blank-signs i { display: block; height: 1px; background: #111; }
.blank-signs em { font-size: 10pt; color: #333; font-style: normal; }

/* Редактор */
.blank-editor { display: flex; flex-direction: column; gap: 16px; }
.blank-blocks { display: flex; flex-direction: column; gap: 12px; }
.blank-block-card { border: 1px solid #eaecf0; border-radius: 12px; padding: 12px 14px; background: #fcfcfd; }
.blank-block-card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.blank-block-card > header b { font-size: 13px; color: #101828; }
.blank-block-card > header div { display: flex; gap: 6px; }
.blank-block-card > header button {
  border: 1px solid #e4e9f0; background: #fff; border-radius: 8px; padding: 4px 10px;
  font: inherit; font-size: 12px; color: #475467; cursor: pointer;
}
.blank-block-card > header button:hover { background: #f2f4f7; }
.blank-block-card > header button:disabled { opacity: 0.4; cursor: default; }
.blank-block-card > header button.is-danger { color: #d92d20; border-color: #fecdca; }
.blank-block-card > header button.is-danger:hover { background: #fef3f2; }
.blank-cols { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; align-items: center; }
.blank-col { display: flex; align-items: center; gap: 4px; }
.blank-col input { width: 110px; height: 34px; border: 1px solid #e4e9f0; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12px; }
.blank-col button, .blank-row button {
  width: 26px; height: 26px; border: 1px solid #e4e9f0; background: #fff; border-radius: 6px;
  color: #d92d20; cursor: pointer; line-height: 1;
}
.blank-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.blank-row { display: flex; gap: 6px; align-items: center; }
.blank-row input { flex: 1; height: 34px; border: 1px solid #e4e9f0; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12px; min-width: 60px; }
.blank-add { border: 1px dashed #cdd5df; background: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 12px; color: #475467; cursor: pointer; }
.blank-add:hover { background: #f9fafb; }
.blank-add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.blank-add-row button { border: 1px solid #e4e9f0; background: #fff; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 13px; color: #101828; cursor: pointer; }
.blank-add-row button:hover { background: #f2f4f7; }
.blank-preview { margin-top: 8px; padding: 16px; background: #f2f4f7; border-radius: 12px; overflow-x: auto; }
.doc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #344054; }
.doc-check input { width: 16px; height: 16px; }
.blank-print-btn {
  border: 0; border-radius: 10px; padding: 10px 18px; background: #157fbe; color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.blank-print-btn:hover { background: #12699c; }
.blank-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.blank-card-actions button {
  border: 1px solid #e4e9f0; background: #fff; border-radius: 10px; padding: 8px 14px;
  font: inherit; font-size: 13px; color: #101828; cursor: pointer;
}
.blank-card-actions button:hover { background: #f2f4f7; }
.blank-card-actions button.is-danger { color: #d92d20; border-color: #fecdca; }

@page blank-a4 {
  size: A4 portrait;
  margin: 0;
}

@media print {
  div[data-blank-print="1"] { page: blank-a4; }
  .blank-sheet-print {
    position: static !important;
    width: 210mm !important;
    min-height: 297mm !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12mm !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #000 !important;
    background: #fff !important;
    zoom: 1 !important;
    transform: none !important;
  }
}

/* Подпись сайта внизу чека — печатается всегда */
.rcpt-site {
  margin-top: 10px;
  padding-top: 8px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #475467;
}

/* Заголовок-элемент в конструкторе A4 */
.blank-block-heading {
  margin: 18px 0 8px;
  font-size: 13pt;
  font-weight: 700;
  text-align: left;
}
.blank-empty-hint {
  margin: 60px 0 0;
  text-align: center;
  color: #98a2b3;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11pt;
}
/* Палитра элементов */
.blank-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border: 1px dashed #cdd5df;
  border-radius: 12px;
  background: #f9fafb;
}
.blank-palette > span { font-size: 13px; color: #475467; margin-right: 4px; }
.blank-palette button {
  border: 1px solid #e4e9f0;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  color: #101828;
  cursor: pointer;
}
.blank-palette button:hover { background: #f2f4f7; border-color: #cfd6e4; }

/* Готовые документы — сетка карточек */
.blank-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}
.blank-template {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.blank-template:hover {
  border-color: #38b6ff;
  box-shadow: 0 2px 8px rgba(56, 182, 255, .16);
}
.blank-template b { font-size: 13px; color: #101828; font-weight: 650; }
.blank-template small { font-size: 12px; color: #667085; }

/* ══ Модальное окно документа / чека ═════════════════════════════════════ */
.blank-modal { z-index: 300; padding: 20px; overflow-y: auto; }
.blank-dialog {
  width: min(1080px, calc(100% - 24px)) !important;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  border-radius: 20px;
  overflow: hidden;
}
.blank-dialog-receipt { width: min(560px, calc(100% - 24px)) !important; }

.blank-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eef1f6;
  flex: 0 0 auto;
}
.blank-dialog-head strong { display: block; font-size: 18px; font-weight: 700; color: #101828; letter-spacing: -0.02em; }
.blank-dialog-head span { display: block; margin-top: 3px; font-size: 13px; color: #667085; }
.blank-dialog-head > button {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border: 0; border-radius: 10px;
  background: #f2f4f7;
  color: #475467;
  font-size: 22px; line-height: 1;
  cursor: pointer;
}
.blank-dialog-head > button:hover { background: #e8ecf2; }

.blank-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 18px;
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.blank-dialog-body.is-single { display: block; }
.blank-dialog-edit { min-width: 0; }
.blank-dialog-preview {
  min-width: 0;
  overflow: auto;
  padding: 10px;
  border-radius: 14px;
  background: #f2f4f7;
}
.blank-dialog-preview .blank-sheet { transform-origin: top left; }

.blank-dialog-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid #eef1f6;
  background: #fbfcfd;
  flex: 0 0 auto;
}
.blank-close-btn {
  padding: 10px 20px;
  border: 1px solid #e4e9f0;
  border-radius: 11px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.blank-close-btn:hover { background: #f5f7fa; }

/* Список сохранённых документов — компактные строки, открываются в окне */
.blank-saved { display: grid; gap: 8px; margin-top: 14px; }
.blank-saved-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  background: #fff;
  padding: 4px 6px 4px 0;
}
.blank-saved-open {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.blank-saved-open:hover { background: #f7f9fc; }
.blank-saved-open b { font-size: 14px; font-weight: 650; color: #101828; }
.blank-saved-open small { font-size: 12px; color: #667085; }
.blank-saved-del {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border: 0; border-radius: 9px;
  background: #fef3f2;
  color: #b42318;
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.blank-saved-del:hover { background: #fee4e2; }

@media (max-width: 900px) {
  .blank-dialog-body { grid-template-columns: minmax(0, 1fr); }
  .blank-dialog-preview { max-height: 320px; }
}

/* ══ Карточки документов: свои документы и статичные ═════════════════════ */
/* У «Чек» наведения нет — он не редактируется */
.blank-template.is-static,
.blank-template.is-static:hover {
  border-color: #e4e9f0;
  box-shadow: none;
  cursor: default;
}

/* Свой документ: карточка + крестик удаления при наведении */
.blank-template.is-own {
  position: relative;
  padding: 0;
  display: block;
  border-color: #e4e9f0;
}
.blank-template.is-own:hover { border-color: #38b6ff; box-shadow: 0 2px 8px rgba(56, 182, 255, .16); }

.blank-template-face {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.blank-template-face b { font-size: 13px; color: #101828; font-weight: 650; }
.blank-template-face small { font-size: 12px; color: #667085; }

/* Крестик: без фона, появляется только при наведении */
.blank-template-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #98a2b3;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, color .12s;
}
.blank-template.is-own:hover .blank-template-del { opacity: 1; }
.blank-template-del:hover,
.blank-template-del:focus {
  background: transparent;
  color: #b42318;
  box-shadow: none;
}

/* ══ Документы: карточки без наведения и обводок ═════════════════════════ */
.blank-template,
.blank-template:hover,
.blank-template:focus,
.blank-template:active,
.blank-template.is-static,
.blank-template.is-static:hover {
  border-color: #e9edf3;
  box-shadow: none;
  outline: none;
  background: #fff;
  cursor: pointer;
}
.blank-template.is-static,
.blank-template.is-static:hover { cursor: default; }

/* ══ Модальное окно документа — лёгкое ═══════════════════════════════════ */
.doc-modal { z-index: 300; padding: 24px; }

.doc-modal-box {
  width: min(1060px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #edf0f5;
  box-shadow: 0 20px 60px rgba(16, 24, 40, .14);
  overflow: hidden;
}
.doc-modal-box.is-narrow { width: min(480px, 100%); }

.doc-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f2f6;
  flex: 0 0 auto;
}
.doc-modal-top b { font-size: 15px; font-weight: 650; color: #101828; }
.doc-modal-top button {
  padding: 7px 14px;
  border: 1px solid #e7ebf1;
  border-radius: 9px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.doc-modal-top button:hover { background: #f7f9fc; border-color: #dde3ec; }

.doc-modal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}
.doc-modal-form {
  min-width: 0;
  overflow-y: auto;
  padding: 18px;
}
.doc-modal-sheet {
  min-width: 0;
  overflow: auto;
  padding: 18px;
  border-left: 1px solid #f0f2f6;
  background: #f7f9fc;
}

.doc-modal-bottom {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid #f0f2f6;
  flex: 0 0 auto;
}
.doc-modal-print {
  padding: 9px 20px;
  border: 0;
  border-radius: 10px;
  background: #1570ef;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.doc-modal-print:hover { background: #135cd0; }

.doc-modal-receipt {
  overflow-y: auto;
  padding: 20px;
  background: #f7f9fc;
}

/* ══ Поля редактора — легко и понятно ════════════════════════════════════ */
.blank-editor { display: grid; gap: 14px; }

.bf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bf {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.bf > span {
  font-size: 12px;
  font-weight: 550;
  color: #667085;
  letter-spacing: .01em;
}
.bf input,
.bf textarea,
.bf-input,
.bf-area {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.bf textarea,
.bf-area {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.bf input:focus,
.bf textarea:focus,
.bf-input:focus,
.bf-area:focus { border-color: #cfd8e6; }
.bf-wide { grid-column: 1 / -1; }

.bf-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 550;
  color: #344054;
  cursor: pointer;
}
.bf-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #1570ef; }

.bf-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px dashed #dfe4ec;
  border-radius: 11px;
  background: #fbfcfe;
}
.bf-add > span { font-size: 12px; font-weight: 550; color: #667085; margin-right: 2px; }
.bf-add button {
  padding: 6px 12px;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.bf-add button:hover { background: #f5f7fa; }

.bf-empty {
  margin: 0;
  padding: 14px;
  border-radius: 11px;
  background: #f9fafb;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.bf-items { display: grid; gap: 10px; }

.bf-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #fff;
}
.bf-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bf-item-top em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #667085;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.bf-item-tools { display: flex; gap: 2px; }
.bf-item-tools button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #98a2b3;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.bf-item-tools button:hover:not(:disabled) { background: #f2f4f7; color: #475467; }
.bf-item-tools button:disabled { opacity: .32; cursor: default; }
.bf-item-tools .bf-x { font-size: 17px; }
.bf-item-tools .bf-x:hover { color: #b42318; }

.bf-cols { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-col {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 120px;
  min-width: 0;
}
.bf-col input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.bf-col button,
.bf-row button {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #98a2b3;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.bf-col button:hover, .bf-row button:hover { color: #b42318; }

.bf-rows { display: grid; gap: 6px; }
.bf-row { display: flex; gap: 6px; align-items: center; }
.bf-row input {
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.bf-plus {
  align-self: flex-start;
  padding: 6px 11px;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.bf-plus:hover { background: #f5f7fa; }

@media (max-width: 900px) {
  .doc-modal-main { grid-template-columns: minmax(0, 1fr); }
  .doc-modal-sheet { border-left: 0; border-top: 1px solid #f0f2f6; max-height: 340px; }
  .bf-grid { grid-template-columns: 1fr; }
}

/* ══ Крестик закрытия и запрет горизонтального скролла ═══════════════════ */
.doc-modal-x {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.doc-modal-x:hover { background: transparent; color: #475467; }

/* Ничего не выходит за пределы окна по горизонтали */
.doc-modal {
  overflow-x: hidden;
}
.doc-modal-box {
  max-width: calc(100vw - 48px);
  overflow-x: hidden;
}
.doc-modal-form,
.doc-modal-sheet,
.doc-modal-receipt { overflow-x: hidden; }

.doc-modal-form .blank-editor,
.doc-modal-form .bf,
.doc-modal-form .bf-item,
.doc-modal-form .bf-items { min-width: 0; max-width: 100%; }

.bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-row { min-width: 0; }
.bf-row input { min-width: 0; }
.bf-cols { min-width: 0; }
.bf-col { min-width: 0; }
.bf-col input { min-width: 0; }

/* Масштабированный лист A4: вписывается в колонку целиком */
.doc-modal-sheet {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.sheet-fit {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.sheet-fit-inner {
  transform-origin: top left;
  flex: 0 0 auto;
}
.sheet-fit .blank-sheet {
  margin: 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .10);
}

/* Чек в окне тоже без горизонтального скролла */
.doc-modal-receipt .rcpt-wrap { gap: 0; }
.doc-modal-receipt .rcpt-sheet { max-width: 100%; }
.doc-modal-receipt > * { max-width: 100%; }

@media (max-width: 900px) {
  .doc-modal { padding: 12px; }
  .doc-modal-box { max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .bf-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ══ Стабильное окно документа: без дёрганья при открытии ════════════════ */
/* Никаких анимаций и переходов — окно появляется сразу в конечном виде */
.doc-modal,
.doc-modal-box,
.doc-modal-main,
.doc-modal-form,
.doc-modal-sheet,
.sheet-fit,
.sheet-fit-inner {
  animation: none !important;
  transition: none !important;
}

/* Фиксированные колонки: ширина не зависит от содержимого, поэтому окно
   не перестраивается, когда текст в полях меняется */
.doc-modal-main {
  grid-template-columns: minmax(0, 1fr) 440px;
}
.doc-modal-sheet {
  width: 440px;
  max-width: 440px;
  contain: layout paint;
}
.doc-modal-form { contain: layout paint; }

/* Лист занимает место сразу, ещё до расчёта масштаба */
.sheet-fit { height: 640px; contain: layout paint; }
.sheet-fit-inner { will-change: transform; }

/* Скроллбар внутри формы не должен менять ширину колонок */
.doc-modal-form { scrollbar-gutter: stable; }
.doc-modal-sheet { scrollbar-gutter: stable; }

@media (max-width: 1024px) {
  .doc-modal-main { grid-template-columns: minmax(0, 1fr); }
  .doc-modal-sheet { width: auto; max-width: none; }
  .sheet-fit { height: auto; }
}

/* ══ Исправление: лист A4 снова виден целиком ════════════════════════════ */
/* contain: layout paint обрезал лист, а flex-центрирование 794-пиксельного
   листа внутри узкой колонки сдвигало масштабированный лист за край. */
.doc-modal-sheet,
.sheet-fit,
.sheet-fit-inner {
  contain: none !important;
  will-change: auto !important;
}

.doc-modal-sheet {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  width: 440px;
  max-width: 440px;
  padding: 14px;
}

.sheet-fit {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.sheet-fit-inner {
  transform-origin: top left;
  flex: none;
}

.sheet-fit .blank-sheet {
  margin: 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .10);
}

@media (max-width: 1024px) {
  .doc-modal-sheet { width: auto; max-width: none; }
}

/* Лист не должен обрезаться ни при каких расчётах */
.sheet-fit { overflow: visible !important; }
.doc-modal-sheet { overflow-x: hidden !important; overflow-y: auto !important; }
.doc-modal-sheet .blank-sheet { display: block; }

/* ══ Лист A4 в окне: гарантированно виден ════════════════════════════════
   Базовая CSS-подстановка (масштаб под колонку 412 px), JS только уточняет
   значение через инлайн-стиль. Даже если расчёт не сработал, лист виден. */
.sheet-fit {
  overflow: visible !important;
  height: 583px;
  position: relative;
}
.sheet-fit-inner {
  transform: scale(0.52);
  transform-origin: top left;
  display: block;
  width: 794px;
}
.sheet-fit .blank-sheet {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.doc-modal-sheet {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  contain: none !important;
}

/* ══ Лист A4 в окне: zoom вместо transform ═══════════════════════════════
   zoom меняет layout-размеры (в отличие от transform: scale), поэтому
   контейнер сам подстраивает высоту и лист виден целиком. */
.sheet-fit {
  overflow: visible !important;
  height: auto !important;
  display: block !important;
  contain: none !important;
}
.sheet-fit-inner {
  display: block !important;
  width: auto !important;
  transform: none !important;
  transform-origin: top left;
  contain: none !important;
}
.sheet-fit .blank-sheet {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .10);
}
.doc-modal-sheet {
  display: block !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  contain: none !important;
  padding: 14px !important;
}

/* ══ Окно документа: высота по листу A4, левая колонка со скроллом ══════
   --sheet-h задаётся из JS после масштабирования листа. Поэтому окно по
   высоте ровно как A4, а длинная форма слева прокручивается внутри. */
.doc-modal-box {
  height: auto;
  max-height: calc(100vh - 48px);
}
.doc-modal-main {
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: stretch;
  height: min(var(--sheet-h, 640px), calc(100vh - 200px));
  min-height: 320px;
}
.doc-modal-form {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  max-height: 100%;
}
.doc-modal-sheet {
  width: 440px;
  max-width: 440px;
  padding: 14px;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 100%;
}
.sheet-fit {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

@media (max-width: 1024px) {
  .doc-modal-main {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .doc-modal-sheet { width: auto; max-width: none; }
}

/* ══ Большое окно документа: A4 виден крупно ═════════════════════════════ */
.doc-modal {
  padding: 16px !important;
}
.doc-modal-box {
  width: min(1440px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 32px) !important;
}
.doc-modal-main {
  grid-template-columns: minmax(360px, 1fr) minmax(520px, 640px) !important;
  height: min(var(--sheet-h, 720px), calc(100vh - 150px)) !important;
  min-height: 360px;
}
.doc-modal-form {
  padding: 20px 22px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.doc-modal-sheet {
  width: auto !important;
  max-width: none !important;
  padding: 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.doc-modal-bottom {
  padding: 12px 22px !important;
}

/* Окно чека тоже чуть шире, чтобы чек читался */
.doc-modal-box.is-narrow {
  width: min(560px, calc(100vw - 32px)) !important;
}
.doc-modal-receipt { padding: 22px !important; }

@media (max-width: 1180px) {
  .doc-modal-main {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr) !important;
  }
}
@media (max-width: 900px) {
  .doc-modal { padding: 10px !important; }
  .doc-modal-box {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
  }
  .doc-modal-main {
    grid-template-columns: minmax(0, 1fr) !important;
    height: auto !important;
  }
  .doc-modal-sheet {
    width: auto !important;
    max-width: none !important;
    max-height: 400px;
  }
}

/* ══ Лист A4 без прокрутки: вписан целиком ═══════════════════════════════ */
/* Высота окна фиксируется по экрану, колонка листа получает всю доступную
   высоту. Масштаб вписывает лист и по ширине, и по высоте — скролла нет. */
.doc-modal-box {
  height: calc(100vh - 32px) !important;
  max-height: calc(100vh - 32px) !important;
}
.doc-modal-main {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  grid-template-columns: minmax(340px, 1fr) minmax(480px, 660px) !important;
}
.doc-modal-form {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.doc-modal-sheet {
  width: auto !important;
  max-width: none !important;
  min-height: 0;
  max-height: 100%;
  padding: 14px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
}
.sheet-fit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}
.sheet-fit-inner {
  display: block !important;
  width: auto !important;
  flex: 0 0 auto;
  transform: none !important;
  contain: none !important;
}
.sheet-fit .blank-sheet {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
}

.doc-modal-bottom { flex: 0 0 auto; }
.doc-modal-top { flex: 0 0 auto; }

@media (max-width: 900px) {
  .doc-modal-box { height: calc(100vh - 20px) !important; max-height: calc(100vh - 20px) !important; }
  .doc-modal-main { grid-template-columns: minmax(0, 1fr) !important; }
  .doc-modal-sheet {
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* ══ Окно документа: слева скролл, справа A4 вплотную без отступов ══════ */
.doc-modal-box {
  height: calc(100vh - 24px) !important;
  max-height: calc(100vh - 24px) !important;
  padding: 0 !important;
}

.doc-modal-main {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  /* правая колонка по пропорции листа A4 (210:297) — без пустых полос */
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0 !important;
  padding: 0 !important;
}

/* Левая колонка: только она прокручивается */
.doc-modal-form {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 18px 20px !important;
}

/* Правая колонка: ровно пропорция A4, без отступов и скролла */
.doc-modal-sheet {
  height: 100% !important;
  aspect-ratio: 210 / 297;
  width: auto !important;
  max-width: none !important;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: #fff !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.sheet-fit {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.sheet-fit-inner {
  flex: 0 0 auto;
  display: block !important;
  width: auto !important;
  transform: none !important;
  contain: none !important;
}

.sheet-fit .blank-sheet {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Шапка и низ — минимальные отступы, чтобы лист получил максимум высоты */
.doc-modal-top { padding: 10px 14px !important; }
.doc-modal-bottom { padding: 8px 14px !important; }

@media (max-width: 900px) {
  .doc-modal-box {
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }
  .doc-modal-main { grid-template-columns: minmax(0, 1fr) !important; }
  .doc-modal-sheet {
    aspect-ratio: auto;
    height: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    border-top: 1px solid #f0f2f6;
  }
}

/* ══ У листа A4 своя собственная обводка ═════════════════════════════════ */
/* Тонкая серая рамка вокруг бумаги — чтобы лист читался как отдельный
   объект, а не сливался с фоном колонки. */
.doc-modal-sheet .blank-sheet,
.sheet-fit .blank-sheet {
  border: 1px solid #e1e6ee !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
  background: #fff !important;
}

/* ══ Нижней панели у документа нет ══════════════════════════════════════ */
.doc-modal-bottom { display: none !important; }

/* Кнопка печати переехала в шапку окна */
.doc-modal-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.doc-modal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.doc-modal-top .doc-modal-print {
  padding: 7px 16px;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.doc-modal-top .doc-modal-print:hover { background: #f7f9fc; border-color: #d5dbe5; }

/* ══ Подпись delovi.ru — всегда внизу листа по центру ═══════════════════ */
.blank-sheet { position: relative; }
.blank-site {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8mm;
  text-align: center;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 8.5pt;
  color: #8a93a3;
  letter-spacing: .04em;
}
.blank-sheet-print .blank-site { color: #555; }

/* В окне лист масштабируется через zoom — подпись едет вместе с ним */
.sheet-fit .blank-site { font-size: 8.5pt; }

/* ══ Этикетки: три размера ══════════════════════════════════════════════ */
.doc-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.doc-label-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.doc-label-card:hover {
  border-color: #d7e3f2;
  box-shadow: 0 8px 22px rgba(28, 45, 74, .07);
  transform: translateY(-1px);
}
.doc-label-card b {
  font-size: 14px;
  font-weight: 600;
  color: #1d2939;
}
.doc-label-card small {
  font-size: 12px;
  color: #98a2b3;
}

/* Превью этикетки — пропорции соответствуют размеру */
.doc-label-preview {
  display: block;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  background: #fbfcfe;
  flex: 0 0 auto;
}
.doc-label-preview.is-small {
  width: 43px;
  height: 25px;
}
.doc-label-preview.is-middle {
  width: 58px;
  height: 40px;
}
.doc-label-preview.is-large {
  width: 70px;
  height: 50px;
}

@media (max-width: 760px) {
  .doc-labels { grid-template-columns: minmax(0, 1fr); }
  .doc-label-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    padding: 14px;
  }
  .doc-label-card b { flex: 1 1 auto; }
}

/* ══ «Лучшие клиенты»: без линий между клиентами ═════════════════════════ */
.desk-people li + li,
.desk-bottom > article:first-child .desk-people li + li {
  border-top: 0 !important;
}
/* Расстояние между строками вместо линий */
.desk-people { gap: 0 !important; }
.desk-people li { padding: 9px 0 !important; }
.desk-people li + li { padding-top: 9px !important; }

/* ══ Рабочие этикетки: название, цена, артикул, delovi.ru ════════════════ */
.doc-label-preview.is-small  { width: 43px; height: 25px; }
.doc-label-preview.is-middle { width: 58px; height: 40px; }
.doc-label-preview.is-large  { width: 70px; height: 50px; }

/* Сама этикетка */
.label-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 2.5mm 2mm 4mm;
  border: 1px solid #d8dee8;
  border-radius: 1mm;
  background: #fff;
  color: #111;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  text-align: center;
  overflow: hidden;
}
.label-name {
  width: 100%;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.label-price {
  margin-top: 1mm;
  font-weight: 700;
  color: #101828;
  white-space: nowrap;
}
.label-sku {
  margin-top: .6mm;
  color: #667085;
  letter-spacing: .02em;
  white-space: nowrap;
}
.label-site {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.2mm;
  text-align: center;
  color: #98a2b3;
  letter-spacing: .03em;
}
.label-sheet { position: relative; }

/* Размеры текста под каждый формат */
.label-sheet.is-small .label-name  { font-size: 6.2pt; }
.label-sheet.is-small .label-price { font-size: 7pt; }
.label-sheet.is-small .label-sku   { font-size: 5.2pt; }
.label-sheet.is-small .label-site  { font-size: 4.6pt; }

.label-sheet.is-middle .label-name  { font-size: 8.4pt; }
.label-sheet.is-middle .label-price { font-size: 10pt; }
.label-sheet.is-middle .label-sku   { font-size: 6.6pt; }
.label-sheet.is-middle .label-site  { font-size: 5.4pt; }

.label-sheet.is-large .label-name  { font-size: 10.5pt; }
.label-sheet.is-large .label-price { font-size: 13pt; }
.label-sheet.is-large .label-sku   { font-size: 8pt; }
.label-sheet.is-large .label-site  { font-size: 6.4pt; }

/* Окно этикетки: список товаров слева, предпросмотр справа */
.label-modal-box { width: min(920px, calc(100vw - 32px)) !important; height: auto !important; }
.label-modal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: min(560px, calc(100vh - 160px));
}
.label-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 16px 18px;
  overflow-y: auto;
}
.label-search {
  flex: 0 0 auto;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e4e9f0;
  border-radius: 11px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: #344054;
  box-sizing: border-box;
}
.label-search:focus { outline: none; border-color: #b9d9f5; box-shadow: 0 0 0 3px rgba(26, 154, 232, .10); }
.label-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.label-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #eef2f6;
  border-radius: 11px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.label-list button:hover { border-color: #d7e3f2; background: #fbfcfe; }
.label-list button.is-active { border-color: #1a9ae8; background: #f4fbff; }
.label-list button span { min-width: 0; }
.label-list button b { display: block; font-size: 13px; font-weight: 600; color: #1d2939; }
.label-list button small { display: block; margin-top: 2px; font-size: 11.5px; color: #98a2b3; }
.label-list button em { flex: 0 0 auto; font-style: normal; font-size: 13px; font-weight: 650; color: #1d2939; }

/* Контейнер предпросмотра: без рамок и без фона — только сами этикетки */
.label-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
  overflow: auto;
}
.label-preview-box .label-sheet { transform: scale(2.2); transform-origin: center; }
.label-size-hint { margin: 0; font-size: 12px; color: #98a2b3; }

/* Печать: своя страница под каждый размер, без полей */
@media print {
  div[data-label-print="1"] { display: block !important; }
  div[data-label-print="1"] .label-sheet-print {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    page-break-after: always;
    break-after: page;
  }
  div[data-label-print="1"] .label-sheet-print:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  div[data-label-print="1"] .label-site { color: #555 !important; }
  div[data-label-print="1"] .label-sheet,
  div[data-label-print="1"] .label-barcode {
    zoom: 1 !important;
    transform: none !important;
  }
  div[data-label-print="1"] .label-barcode {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

@page lbl-s { size: 43mm 25mm; margin: 0; }
@page lbl-m { size: 58mm 40mm; margin: 0; }
@page lbl-l { size: 70mm 50mm; margin: 0; }
@media print {
  body > *:not([data-rcpt-print="1"]),
  body > .export-modal,
  body > .export-modal.doc-modal,
  body > .wh-lightbox {
    display: none !important;
  }
  body > [data-rcpt-print="1"] {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}

div[data-label-print="1"]:has(.label-sheet-print.is-small)  { page: lbl-s; }
div[data-label-print="1"]:has(.label-sheet-print.is-middle) { page: lbl-m; }
div[data-label-print="1"]:has(.label-sheet-print.is-large)  { page: lbl-l; }

/* ══ Документы: окно по центру экрана, лист ровно в колонке ══════════════
   Предыдущие правки наслаивались и тянули колонку через aspect-ratio,
   из-за этого окно и лист стояли криво. Эти правила перекрывают их. */
.export-modal.doc-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 400 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 28px !important;
  margin: 0 !important;
  overflow: auto !important;
  background: rgba(16, 24, 40, 0.46) !important;
}
.export-modal.doc-modal .doc-modal-box:not(.label-modal-box) {
  width: min(1120px, calc(100vw - 16px));
  height: min(780px, calc(100vh - 16px));
  max-width: calc(100vw - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  margin: auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid #e6ebf2 !important;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18) !important;
  overflow: hidden !important;
  aspect-ratio: auto !important;
}
.export-modal.doc-modal .doc-modal-box.is-narrow {
  width: auto;
  height: auto;
  max-height: calc(100vh - 16px) !important;
}
.export-modal.doc-modal .doc-modal-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  height: 48px !important;
  padding: 0 8px 0 18px !important;
  border-bottom: 1px solid #eef1f6 !important;
  background: #fff !important;
  flex: 0 0 48px !important;
}
.export-modal.doc-modal .doc-modal-top b {
  font-size: 15px !important;
  line-height: 1 !important;
}
.export-modal.doc-modal .doc-modal-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 48px !important;
}
.export-modal.doc-modal .doc-modal-top .doc-modal-print,
.export-modal.doc-modal .doc-modal-receipt .rcpt-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: 48px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.export-modal.doc-modal .doc-modal-top .doc-modal-print:hover,
.export-modal.doc-modal .doc-modal-receipt .rcpt-btn:hover {
  background: transparent !important;
  color: #101828 !important;
}
.export-modal.doc-modal .doc-modal-x {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #344054 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  flex: 0 0 36px !important;
}
.export-modal.doc-modal .doc-modal-x svg { display: block; }
.export-modal.doc-modal .doc-modal-x path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}
.export-modal.doc-modal .doc-modal-x:hover { background: transparent !important; color: #101828 !important; }
.export-modal.doc-modal .doc-modal-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--sheet-w, 520px) !important;
  gap: 0 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  align-items: stretch !important;
}
.export-modal.doc-modal .doc-modal-form {
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 16px 16px 24px !important;
  background: #fff !important;
}
.export-modal.doc-modal .doc-modal-sheet {
  width: var(--sheet-w, 520px) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
  display: block !important;
  overflow: hidden !important;
}
.export-modal.doc-modal .sheet-fit {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
.export-modal.doc-modal .sheet-fit-inner {
  display: block !important;
  width: 210mm !important;
  height: 297mm !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.export-modal.doc-modal .sheet-fit .blank-sheet {
  display: block !important;
  width: 210mm !important;
  height: 297mm !important;
  min-height: 297mm !important;
  max-height: 297mm !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow: hidden !important;
}

.export-modal.doc-modal .blank-editor { display: grid !important; gap: 12px !important; }
.export-modal.doc-modal .bf-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
}
.export-modal.doc-modal .bf input,
.export-modal.doc-modal .bf textarea,
.export-modal.doc-modal .bf-input,
.export-modal.doc-modal .bf-area,
.export-modal.doc-modal .bf-col input,
.export-modal.doc-modal .bf-cell input {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.export-modal.doc-modal .bf-cols { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
.export-modal.doc-modal .bf-col { flex: 1 1 140px !important; min-width: 0 !important; }
.export-modal.doc-modal .bf-rows { display: grid !important; gap: 8px !important; }
.export-modal.doc-modal .bf-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
  gap: 8px !important;
  align-items: end !important;
  min-width: 0 !important;
  padding: 10px !important;
  border: 1px solid #e7edf4 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}
.export-modal.doc-modal .bf-cell {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}
.export-modal.doc-modal .bf-cell > span {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #667085 !important;
}
.export-modal.doc-modal .bf-row > button {
  width: 32px !important;
  height: 36px !important;
  justify-self: end !important;
  align-self: end !important;
}

.export-modal.doc-modal .doc-modal-receipt {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  overflow: hidden !important;
}
.export-modal.doc-modal .doc-modal-receipt .rcpt-wrap {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}
.export-modal.doc-modal .doc-modal-receipt .rcpt-sheet {
  width: 72mm !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}
.export-modal.doc-modal .doc-modal-receipt .rcpt-tools {
  position: absolute !important;
  top: -48px !important;
  right: 40px !important;
  height: 48px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  z-index: 2 !important;
}
.export-modal.doc-modal .doc-modal-receipt .ord-hint { display: none !important; }
.export-modal.doc-modal .doc-modal-box.is-narrow { position: relative !important; overflow: hidden !important; }
.rcpt-lines { display: grid; gap: 8px; }
.rcpt-line b { display: block; font-weight: 700; }
.rcpt-line > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.rcpt-line span { color: #667085; }

/* Этикетка: название, артикул, цена. Предпросмотр без сдвига от scale. */
.label-sheet { display: flex !important; flex-direction: column !important; }
.label-sheet .label-name { order: 1; }
.label-sheet .label-sku { order: 2; margin-top: 0.7mm; }
.label-sheet .label-price { order: 3; margin-top: 1mm; }
.label-barcode {
  order: 4;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 12mm !important;
  margin: 0.6mm 0 0;
  object-fit: fill;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #fff;
  flex: 0 0 auto;
}
.label-sheet.is-small { padding: 1.2mm 1.2mm 3.2mm; }
.label-sheet.is-small .label-barcode { height: 10mm; }
.label-sheet.is-small .label-name { -webkit-line-clamp: 1; }
.label-sheet.is-middle .label-barcode { height: 16mm; }
.label-sheet.is-large .label-barcode { height: 18mm; }
/* Этикетки идут рядами и листаются вверх-вниз.
   В ширину влезает столько, сколько помещается; остальное — ниже.
   align-items: center — чтобы одиночная этикетка не растягивалась
   на всю ширину, а стояла по центру своего натурального размера. */
.label-preview-box {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  max-height: 360px;
  border: 0 !important;
  background: transparent !important;
}
/* Для одиночной этикетки (не пачка) оставляем по центру */
.label-preview-box:not(:has(.label-bulk-stack)) {
  justify-content: center;
}
.label-preview-box .label-sheet {
  transform: none !important;
  zoom: 1;
}
.label-preview-box .label-sheet.is-small { zoom: 2.15; }
.label-preview-box .label-sheet.is-middle { zoom: 1.6; }
.label-preview-box .label-sheet.is-large { zoom: 1.28; }

.doc-label-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 148px;
  padding: 16px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.doc-label-card,
.doc-label-card:hover,
.doc-label-card:focus-visible {
  cursor: default !important;
  transform: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  outline: none !important;
}
.doc-label-stage,
.doc-label-stage.is-small,
.doc-label-stage.is-middle,
.doc-label-stage.is-large {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.label-sheet .label-sku,
.label-sheet .label-price {
  white-space: normal;
  overflow-wrap: anywhere;
}
.doc-label-stage.is-small .label-sheet { zoom: 1.15; }
.doc-label-stage.is-middle .label-sheet { zoom: 0.92; }
.doc-label-stage.is-large .label-sheet { zoom: 0.78; }
.doc-label-same { display: grid; place-items: center; width: 100%; height: 132px; }
.doc-label-same .label-sheet { width: 168px !important; height: 108px !important; zoom: 1 !important; }
.doc-label-card > input,
.doc-label-size input { width: 100%; height: 36px; margin-top: 8px; padding: 0 10px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: #101828; box-sizing: border-box; }
.doc-label-size { display: grid; gap: 0; margin-top: 8px; color: #667085; font-size: 12px; font-weight: 650; text-align: left; }
.doc-label-size input { margin-top: 4px; }

.task-view dl div { border-bottom: 0; }
.task-repeat .field-name { position: relative; }
.export-dialog header strong.once-title { display: inline-flex; align-items: center; gap: 10px; }
.sale-goods-title {
  margin: 0 0 8px;
  color: #1d2939;
  font-size: 16px;
  font-weight: 700;
}
.once-title .task-repeat-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 1px 0 0;
  line-height: 16px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.task-repeat-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  background: #101828;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}
.export-dialog .task-repeat-help i,
.task-repeat-help i {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 220px;
  height: auto;
  max-width: 220px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  box-sizing: border-box;
  z-index: 6;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.28);
}
.export-dialog .task-repeat-help:hover i,
.export-dialog .task-repeat-help:focus i,
.task-repeat-help:hover i,
.task-repeat-help:focus i { display: block; height: auto; }
.task-repeat > input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.task-view > header .order-view-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.task-view > header .order-view-tools button {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0;
}
.order-view-tools { position: relative; }
.order-doc-menu {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}
.order-doc-menu button {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d2939;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.task-view > header .order-doc-menu button {
  width: 100%;
  height: auto;
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  text-align: left;
}
.order-doc-menu button:hover,
.task-view > header .order-doc-menu button:hover { background: #f4f7fb; }
.settings-page .settings-main:has(.tpl-studio) { height: 100%; max-height: 100%; overflow: hidden; padding: 12px 16px; display: flex; flex-direction: column; min-height: 0; }
.settings-page .settings-main:has(.tpl-studio) > .settings-card { flex: 1; min-height: 0; max-width: none; max-height: 100%; overflow: hidden; display: flex; }
.tpl-studio { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; flex: 1; width: 100%; height: 100%; max-height: 100%; min-height: 0; overflow: hidden; }
.tpl-studio aside { display: flex; flex-direction: column; gap: 8px; }
.tpl-studio aside header { display: flex; align-items: center; justify-content: space-between; }
.tpl-studio aside header button, .tpl-drop, .tpl-toolbar button, .tpl-file, .tpl-vars button {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font: inherit;
  cursor: pointer;
}
.tpl-studio aside header button, .tpl-drop { height: 32px; padding: 0 10px; }
.tpl-studio aside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tpl-studio aside li button { width: 100%; padding: 8px 10px; border: 1px solid #eef2f6; border-radius: 10px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.tpl-studio aside li button.is-active { border-color: #1a9ae8; background: #f4fbff; }
.tpl-studio aside small, .tpl-kinds small { display: block; color: #98a2b3; font-size: 12px; }
.tpl-meta, .tpl-kinds, .tpl-vars { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tpl-meta label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #667085; }
.tpl-meta input, .tpl-meta select { height: 36px; padding: 0 10px; border: 1px solid #e4e7ec; border-radius: 8px; font: inherit; }
.tpl-kinds label { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.tpl-vars button, .tpl-toolbar button, .tpl-file { height: 30px; padding: 0 8px; font-size: 12px; }
.tpl-file input { display: none; }
.tpl-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tpl-toolbar button.is-active { background: #e8f4fc; border-color: #1a9ae8; }
.tpl-editor { border: 1px solid #e6ebf2; border-radius: 12px; background: #fff; }
.tpl-editor .ProseMirror { min-height: 320px; padding: 16px 18px; outline: none; }
.tpl-editor .ProseMirror table { width: 100%; border-collapse: collapse; }
.tpl-editor .ProseMirror td, .tpl-editor .ProseMirror th, .doc-fill-goods td, .doc-fill-goods th { border: 1px solid #d0d5dd; padding: 4px 6px; }
.tpl-list { display: flex; flex-direction: column; gap: 8px; }
.tpl-list header { display: flex; align-items: center; justify-content: space-between; }
.tpl-list header button { height: 32px; padding: 0 10px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }
.tpl-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tpl-list li button { width: 100%; padding: 8px 10px; border: 1px solid #eef2f6; border-radius: 10px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.tpl-list li button.is-active { border-color: #1a9ae8; background: #f4fbff; }
.tpl-list small { display: block; color: #98a2b3; font-size: 12px; }
.tpl-work { display: flex; flex-direction: column; height: 100%; max-height: 100%; min-height: 0; border: 1px solid #e6ebf2; border-radius: 12px; background: #fff; overflow: hidden; }
.tpl-book { width: min(820px, calc(100% - 32px)); max-height: calc(100vh - 64px); margin: 5vh auto 0; padding: 22px 24px 28px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(16, 24, 40, .16); overflow: auto; }
.tpl-book > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tpl-book > header b { display: block; font-size: 18px; }
.tpl-book > header p { margin: 6px 0 0; color: #667085; font-size: 13px; line-height: 1.45; }
.tpl-book section { margin-top: 18px; }
.tpl-book h4 { margin: 0 0 8px; color: #667085; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tpl-book article { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid #f2f4f7; }
.tpl-book article b { color: #101828; font-size: 14px; }
.tpl-book code { display: block; padding: 8px 10px; border-radius: 8px; background: #f8fafc; color: #344054; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; user-select: text; }
.tpl-list { min-height: 0; max-height: 100%; overflow: auto; }
.tpl-canvas { flex: 1 1 auto; min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #eef2f6; }
.tpl-top { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #eef2f6; background: #fff; }
.tpl-title { width: 100%; height: 36px; border: 0; font: inherit; font-size: 18px; font-weight: 650; }
.tpl-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.tpl-page { display: flex; align-items: center; gap: 8px; color: #667085; font-size: 13px; font-weight: 600; }
.tpl-page select { height: 36px; padding: 0 10px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; color: #1d2939; font: inherit; font-size: 14px; }
.tpl-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tpl-save, .tpl-cancel, .tpl-drop { height: 36px; padding: 0 14px; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; }
.tpl-save { border: 0; background: #157fbe; color: #fff; }
.tpl-cancel { border: 1px solid #e4e7ec; background: #fff; color: #344054; }
.tpl-top .tpl-save,
.tpl-top .tpl-cancel,
.tpl-top .tpl-drop { height: 36px; padding: 0 14px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tpl-top .tpl-save { border: 0; background: #157fbe; color: #fff; }
.tpl-top .tpl-save:hover { background: #0f6ea8; }
.tpl-top .tpl-cancel { border: 1px solid #e4e7ec; background: #fff; color: #344054; }
.tpl-top .tpl-cancel:hover { background: #f8fafc; }
.tpl-top .tpl-drop { border: 0; background: #d92d20; color: #fff; }
.tpl-top .tpl-drop:hover { background: #b42318; }
.tpl-menubar { display: flex; gap: 4px; padding: 0; border-bottom: 0; }
.tpl-menu { position: relative; }
.tpl-menu > button { height: 30px; padding: 0 8px; border: 0; background: transparent; font: inherit; cursor: pointer; border-radius: 6px; }
.tpl-menu > button.is-active, .tpl-menu > button:hover { background: #f2f4f7; }
.tpl-menu-pop { position: absolute; z-index: 5; top: 32px; left: 0; min-width: 180px; padding: 4px; border: 1px solid #e6ebf2; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, .08); display: flex; flex-direction: column; }
.tpl-menu-pop button, .tpl-menu-pop .tpl-file { width: 100%; height: 32px; padding: 0 8px; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; border-radius: 6px; }
.tpl-menu-pop button:hover, .tpl-menu-pop .tpl-file:hover { background: #f4f7fb; }
.tpl-sheet-fit { position: relative; flex: 1 1 0; min-height: 0; max-height: 100%; overflow: auto; display: block; padding: 10px; }
.tpl-sheet-fit > div { height: auto; min-height: 100%; width: 100%; min-width: 0; }
.tpl-sheet-fit .tpl-live { width: min(100%, 820px); min-height: 0; margin: 0 auto; }
.tpl-canvas .ProseMirror { height: auto; min-height: 100%; margin: 0 auto; padding: 16px 18px; outline: none; overflow: visible; background: #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .08); box-sizing: border-box; }
.tpl-canvas.is-a4 .ProseMirror { width: min(100%, 820px); }
.tpl-canvas.is-tape .ProseMirror { width: min(100%, 280px); padding: 12px; }
.tpl-source { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; min-height: 0; overflow: auto; field-sizing: fixed; box-sizing: border-box; }
.tpl-confirm { width: min(420px, calc(100% - 32px)); margin: 18vh auto 0; padding: 20px; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(16, 24, 40, .16); }
.tpl-confirm b { display: block; font-size: 16px; }
.tpl-confirm p { margin: 8px 0 16px; color: #667085; }
.tpl-confirm div { display: flex; gap: 8px; justify-content: flex-end; }
.tpl-confirm .tpl-drop { border: 0; background: #d92d20; color: #fff; font-weight: 650; }
.tpl-confirm .tpl-drop:hover { background: #b42318; }
.tpl-canvas .ProseMirror table { width: 100%; border-collapse: collapse; }
.tpl-canvas .ProseMirror td, .tpl-canvas .ProseMirror th { border: 1px solid #d0d5dd; padding: 4px 6px; }
.tpl-source { margin: 0; padding: 16px; border: 0; resize: none; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #1d2939; background: #fff; }
.tpl-print-layer { position: fixed; left: -10000px; top: 0; width: 210mm; height: 297mm; overflow: hidden; background: #fff; pointer-events: none; }
.tpl-fields { border-left: 1px solid #eef2f6; background: #f8fafc; overflow: auto; min-height: 0; max-height: 100%; }
.tpl-fields details { border-bottom: 1px solid #eef2f6; }
.tpl-fields summary { padding: 8px 10px; font-weight: 650; font-size: 13px; cursor: pointer; }
.tpl-top .tpl-kinds { margin: 0; }
.tpl-fields button, .tpl-fields .tpl-file { display: block; width: calc(100% - 16px); margin: 0 8px 6px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.tpl-fields .tpl-help { margin: 0; padding: 10px 12px 6px; color: #667085; font-size: 12px; line-height: 1.4; }
.tpl-ref { margin: 0 10px 10px; }
.tpl-ref b { display: block; color: #1d2939; font-size: 13px; font-weight: 650; }
.tpl-ref code { display: block; margin-top: 4px; color: #344054; font-size: 11px; line-height: 1.35; white-space: pre-wrap; word-break: break-all; user-select: text; }
.tpl-fields summary:hover { background: #38b6ff; color: #fff; }
.tpl-canvas .tpl-kinds { padding: 8px 12px 12px; }
.export-dialog.sale-sheet {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
}
.export-dialog.sale-sheet .sale-table-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
}
.export-dialog.sale-sheet .sale-table-scroll {
  width: 100%;
  overflow: visible;
}
.export-dialog.sale-sheet .sale-table-scroll table {
  width: 100%;
  min-width: 0;
}
.export-dialog.sale-sheet thead { display: table-header-group; }
.export-dialog.sale-sheet tbody tr {
  display: table-row;
  margin: 0;
  padding: 0;
  border: 0;
}
.export-dialog.sale-sheet th,
.export-dialog.sale-sheet td {
  display: table-cell;
  padding: 8px;
  white-space: nowrap;
  vertical-align: middle;
}
.export-dialog.sale-sheet td::before { content: none; }
.export-dialog.sale-sheet td.sale-name {
  white-space: normal;
  min-width: 140px;
}
.export-dialog.sale-sheet td.sale-name b {
  display: block;
  font-weight: 650;
  line-height: 1.25;
}
.export-dialog.sale-sheet .sale-line-drop {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.export-dialog.sale-sheet .sale-line-drop:hover { color: #d92d20; }
.sale-qty { display: flex; align-items: center; gap: 6px; }
.sale-qty span { color: #667085; }
.export-dialog.sale-sheet td input,
.export-dialog.sale-sheet td select { width: 92px; height: 32px; }
.export-dialog.sale-sheet .sale-mini {
  align-self: center;
  display: grid;
  place-items: center;
  border: 0;
  background: #38b6ff;
  color: #fff;
}
.export-dialog.sale-sheet .sale-mini:hover { background: #1a9ae8; color: #fff; }
.order-wh-table.is-empty thead th { border-bottom: 0; }
.order-goods-add,
.order-goods-total {
  border: 0;
  background: #38b6ff;
  color: #fff;
}
.order-goods-add:hover { background: #1a9ae8; color: #fff; }
.export-dialog.deal-create.offer-sheet.create-one {
  width: min(1120px, calc(100vw - 32px));
}
.export-dialog.create-one .order-wh-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}
.export-dialog.create-one .order-wh-table thead th {
  position: static;
  height: auto;
  padding: 8px;
  background: transparent;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.order-wh-table tbody td,
.export-dialog.create-one .order-wh-table tbody td {
  height: auto;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 0;
}
.order-goods-foot { border-top: 0; }
.export-dialog.create-one .order-wh-table .col-check,
.export-dialog.create-one .order-wh-table .col-sku,
.export-dialog.create-one .order-wh-table .col-photo,
.export-dialog.create-one .order-wh-table .col-name,
.export-dialog.create-one .order-wh-table .col-stock,
.export-dialog.create-one .order-wh-table .col-cost,
.export-dialog.create-one .order-wh-table .col-price,
.export-dialog.create-one .order-wh-table .col-discount,
.export-dialog.create-one .order-wh-table th.col-qty,
.export-dialog.create-one .order-wh-table td.col-qty {
  width: auto;
}
.export-dialog.create-one .order-wh-table .col-name {
  overflow: visible;
  text-overflow: clip;
}
.export-dialog.create-one .order-wh-table th.col-qty,
.export-dialog.create-one .order-wh-table td.col-qty {
  padding-right: 8px;
  text-align: left;
}
.export-dialog .order-client-row .order-client-open,
.export-dialog .order-client-row .order-client-new {
  background: #38b6ff;
  color: #fff;
  border: 0;
}
.export-dialog .order-client-row .order-client-open:hover,
.export-dialog .order-client-row .order-client-new:hover {
  background: #1a9ae8;
  color: #fff;
  border-color: transparent;
}
.export-dialog.sale-sheet .order-client-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0;
}
.export-dialog.sale-sheet .order-client-row .order-client-pick { min-width: 0; margin: 0; }
.export-dialog.sale-sheet .order-client-row .order-client-open,
.export-dialog.sale-sheet .order-client-row .order-client-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: #38b6ff;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}
.export-dialog.sale-sheet .order-client-row .order-client-open:hover,
.export-dialog.sale-sheet .order-client-row .order-client-new:hover {
  background: #1a9ae8;
  border-color: transparent;
  color: #fff;
}
.export-dialog.create-one .order-client-row .order-client-open,
.export-dialog.create-one .order-client-row .order-client-new,
.export-dialog.pay-dialog .order-client-row .order-client-open,
.export-dialog.pay-dialog .order-client-row .order-client-new {
  background: #38b6ff;
  color: #fff;
  border: 0;
}
.export-dialog.create-one .order-client-row .order-client-open:hover,
.export-dialog.create-one .order-client-row .order-client-new:hover,
.export-dialog.pay-dialog .order-client-row .order-client-open:hover,
.export-dialog.pay-dialog .order-client-row .order-client-new:hover {
  background: #1a9ae8;
  color: #fff;
  border-color: transparent;
}
.export-dialog.sale-sheet .order-client-row .picked-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
}
.export-dialog.sale-sheet .order-client-row .picked-client-face {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.export-dialog.sale-sheet .order-client-row .picked-client-face b {
  min-width: 0;
  color: #101828;
  font-size: 14px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.export-dialog.sale-sheet .order-client-row .picked-client-face small {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.export-dialog.sale-sheet .order-client-row .picked-client > button[aria-label] {
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.export-dialog.sale-sheet .order-client-row .picked-client > button[aria-label]:hover { color: #d92d20; }
.export-dialog.sale-sheet > .sale-pay,
.export-dialog.sale-sheet > .sale-pay:disabled {
  display: grid;
  place-items: center;
  width: 100%;
  background: #38b6ff;
  color: #fff;
  text-align: center;
  opacity: 1;
  cursor: pointer;
}
.export-dialog.sale-sheet > .sale-pay:hover { background: #1a9ae8; }
.export-dialog.sale-pop > .sale-pay,
.export-dialog.sale-pop > .sale-pay:disabled {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 8px 0 0;
  border: 0;
  background: #38b6ff;
  color: #fff;
  text-align: center;
  opacity: 1;
  cursor: pointer;
}
.export-dialog.sale-pop > .sale-pay:hover { background: #1a9ae8; color: #fff; }
.export-modal:has(.sale-sheet) {
  background: rgba(16, 24, 40, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.export-modal:has(> .sale-pop) > .sale-sheet {
  filter: blur(6px);
  pointer-events: none;
}
.export-modal:has(> .sale-pop)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgba(16, 24, 40, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.export-modal > .sale-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 0;
  overflow: auto;
  box-sizing: border-box;
}
.sale-methods { flex-wrap: wrap; background: transparent; }
.sale-pop .sale-methods label,
.sale-pop .sale-check,
.sale-pop > p {
  background: transparent;
  box-shadow: none;
}
.sale-pop .sale-methods label:hover,
.sale-pop .sale-check:hover { background: transparent; }
.cash-list li.cash-account { gap: 8px; }
.cash-list li.cash-account b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cash-list li.cash-account input,
.cash-list li.cash-account select,
.cash-new select {
  height: 36px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 14px;
}
.cash-list li.cash-account input { flex: 1; min-width: 0; padding: 0 10px; }
.cash-list li.cash-account select,
.cash-new select { flex: none; padding: 0 8px; }
.cash-list li.cash-account span { display: flex; gap: 2px; flex: none; }
.cash-list li.cash-account span button { width: 28px; height: 28px; font-size: 14px; }
.cash-list li.cash-account .cash-edit,
.cash-list li.cash-account .cash-edit:hover,
.cash-list li.cash-account .cash-move,
.cash-list li.cash-account .cash-move:hover,
.cash-list li.cash-account .cash-drop,
.cash-list li.cash-account .cash-drop:hover {
  color: #c5ccd6;
  background: transparent;
}
.cash-list li.cash-account .cash-move:disabled,
.cash-list li.cash-account .cash-move:disabled:hover { color: #e4e7ec; cursor: default; background: transparent; }
.cash-new { flex-wrap: wrap; }
.cash-drop-modal { z-index: 120; }
.cash-drop-actions { display: flex; justify-content: center; margin-top: 16px; }
.cash-drop-actions .wh-drop-go { margin: 0; }
.pay-dialog.pay-flow {
  width: min(440px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border-radius: 16px;
}
.pay-dialog.pay-flow header { margin-bottom: 6px; }
.pay-dialog.pay-flow header strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.pay-dialog.pay-flow label.pay-flow-field,
.pay-dialog.pay-flow label.pay-flow-field:hover,
.export-dialog.pay-dialog.pay-flow label.pay-flow-field,
.export-dialog.pay-dialog.pay-flow label.pay-flow-field:hover {
  display: grid;
  gap: 8px;
  width: auto;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: default;
}
.pay-dialog.pay-flow .pay-flow-field { display: grid; gap: 8px; margin-top: 16px; }
.pay-dialog.pay-flow .pay-flow-field > span { color: #667085; font-size: 14px; font-weight: 650; }
.pay-dialog.pay-flow .pay-flow-field > span i.req { color: #f04438; }
i.req,
.export-dialog i.req,
.settings-page .shop-sum i.req,
.pay-dialog.pay-flow i.req { color: #f04438; }
.wm-fld select, .staff-form select {
  width: 100%; box-sizing: border-box; height: 44px; border: 1px solid #e4e7ec; border-radius: 12px;
  background: #f8fafc; padding: 0 12px; font: inherit; font-size: 14px; color: #101828;
}
.hire-fields i.req {
  display: inline;
  width: auto;
  height: auto;
  margin: 0 0 0 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #f04438;
  font-style: normal;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: 0;
  vertical-align: baseline;
  transform: none;
  opacity: 1;
  position: static;
  pointer-events: none;
}
.named-field { display: grid; gap: 6px; min-width: 0; }
.field-name { display: inline-flex; align-items: baseline; gap: 0; color: #667085; font-size: 13px; font-weight: 650; white-space: nowrap; }
.auth-code-name { margin: 0 0 8px; color: #3d4652; font-size: 13px; font-weight: 700; }
.pay-dialog.pay-flow .pay-methods {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  max-height: 168px;
  margin: 0;
  padding: 4px 8px 4px 12px;
  overflow: auto;
  scrollbar-width: thin !important;
  scrollbar-color: #d0d5dd transparent !important;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
}
.pay-dialog.pay-flow .pay-methods::-webkit-scrollbar { width: 4px; height: 4px; }
.pay-dialog.pay-flow .pay-methods::-webkit-scrollbar-track { background: transparent; }
.pay-dialog.pay-flow .pay-methods::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 99px; }
.pay-dialog.pay-flow .pay-methods label,
.pay-dialog.pay-flow .pay-methods label:hover,
.export-dialog.pay-dialog.pay-flow .pay-methods label,
.export-dialog.pay-dialog.pay-flow .pay-methods label:hover {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 1px 0;
  line-height: 1.15;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #101828;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.pay-dialog.pay-flow .pay-methods input,
.pay-dialog.pay-flow .pay-methods input:hover,
.pay-dialog.pay-flow .pay-methods input:focus {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  accent-color: #98a2b3;
  flex: none;
}
.pay-dialog.pay-flow .pay-methods input:checked {
  accent-color: #2e90fa;
}
.pay-dialog.pay-flow .pay-flow-field > input,
.pay-dialog.pay-flow .pay-flow-field > select,
.pay-dialog.pay-flow .pay-flow-field > textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}
.pay-dialog.pay-flow .pay-flow-field > input,
.pay-dialog.pay-flow .pay-flow-field > select { height: 48px; padding: 0 14px; }
.pay-dialog.pay-flow .pay-flow-field > textarea { min-height: 92px; padding: 12px 14px; resize: vertical; }
.pay-dialog.pay-flow .pay-flow-field > input:hover,
.pay-dialog.pay-flow .pay-flow-field > textarea:hover,
.pay-dialog.pay-flow .source-pick > button:hover {
  outline: none;
  border-color: #d0d5dd;
  box-shadow: none;
}
.pay-dialog.pay-flow .pay-flow-field > input:focus,
.pay-dialog.pay-flow .pay-flow-field > textarea:focus,
.pay-dialog.pay-flow .source-pick > button:focus,
.pay-dialog.pay-flow .source-pick:has([aria-expanded="true"]) > button {
  outline: none;
  border-color: #2e90fa;
  box-shadow: none;
}
.pay-dialog.pay-flow .source-pick > button {
  height: 48px;
  border-color: #d0d5dd;
  font-size: 15px;
  font-weight: 500;
}
.pay-dialog.pay-flow .pay-flow-field > input::placeholder,
.pay-dialog.pay-flow .pay-flow-field > textarea::placeholder { color: #98a2b3; font-weight: 500; }
.pay-dialog.pay-flow .pay-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin: 22px 0 0;
  border: 0;
  border-radius: 12px;
  background: #2e90fa;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
.pay-dialog.pay-flow .pay-submit:hover { background: #1570ef; }
.pay-dialog.pay-flow .pay-hint { margin: 12px 0 0; }
.sale-pop .sale-tree { display: grid; gap: 0; max-height: min(460px, 56vh); overflow: auto; margin: 0; }
.sale-pop .sale-tree button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.sale-pop .sale-tree button:hover { background: #f8fafc; }
.sale-pop .sale-tree .sale-cat:hover { background: transparent; color: inherit; }
.sale-pop .sale-tree .sale-back { color: #157fbe; justify-content: flex-start; }
.sale-pop .sale-tree .sale-cat span { color: #98a2b3; font-size: 18px; }
.sale-pop .sale-tree .sale-good {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 4px;
}
.sale-pop .sale-tree .sale-good .sale-pick-photo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f4f7;
}
.sale-pop .sale-tree .sale-good .sale-pick-photo img,
.sale-pop .sale-tree .sale-good .sale-pick-photo .wh-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}
.sale-pop .sale-tree .sale-good .sale-pick-text { display: grid; gap: 1px; min-width: 0; }
.sale-pop .sale-tree .sale-good .sale-pick-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.sale-pop .sale-tree .sale-good .sale-pick-text small,
.sale-pop .sale-tree .sale-good .sale-pick-text span { color: #98a2b3; font-size: 12px; line-height: 1.3; }
.sale-pop .sale-tree .sale-good em { color: #1d2939; font-style: normal; font-weight: 700; white-space: nowrap; }
.sale-pick-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}
.sale-pick-bar .sale-back,
.sale-pick-bar .sale-once {
  display: grid;
  place-items: center;
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: #38b6ff;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.sale-pick-bar .sale-back { padding: 0 16px; }
.sale-pick-bar .sale-once { width: 100%; padding: 0 12px; }
.sale-pick-bar .sale-back:hover,
.sale-pick-bar .sale-once:hover { background: #1a9ae8; color: #fff; }
.sale-once {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #1d2939;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.sale-once:hover { background: #f8fafc; }
.export-modal.once-modal { z-index: 90; }
.sale-pop .sale-tree p { margin: 12px 4px; color: #98a2b3; }
.doc-var { color: #157fbe; background: #e8f4fc; border-radius: 4px; padding: 0 4px; }
.doc-goods { padding: 8px; border: 1px dashed #98a2b3; color: #667085; text-align: center; }
.doc-sheet { box-sizing: border-box; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 12mm; background: #fff; color: #111; }
.doc-sheet, .doc-sheet * { color: #111; }
.doc-sheet .doc-var { background: transparent; padding: 0; }
.tpl-preview .doc-sheet { width: min(100%, 720px); min-height: 0; }
.tpl-preview .doc-sheet.is-tape { width: min(100%, 72mm); }
.doc-sheet table { width: 100%; border-collapse: collapse; }
.doc-sheet td, .doc-sheet th { border: 1px solid #d0d5dd; padding: 4px 6px; vertical-align: top; }
@media print {
  body > [data-rcpt-print="1"][data-blank-print="1"] {
    width: 210mm !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .doc-sheet {
    box-sizing: border-box !important;
    width: 210mm !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10mm 12mm !important;
    overflow: visible !important;
  }
  .doc-sheet h1, .doc-sheet h2 { margin: 0 0 4mm; font-size: 16pt; }
  .doc-sheet p { margin: 0 0 2.5mm; }
  .doc-sheet, .doc-sheet.is-tape { margin: 0 !important; break-after: avoid; page-break-after: avoid; }
}
.doc-sheet.is-tape { width: 72mm; min-height: 0; padding: 3mm; font-family: "Courier New", ui-monospace, monospace; }
.doc-sheet .rcpt-v2 table { width: 100%; border-collapse: collapse; }
.doc-sheet .rcpt-v2 td, .doc-sheet .rcpt-v2 th { border: 0; padding: 0; background: transparent; font-weight: 400; text-align: left; }
.rcpt-top td { padding-bottom: 5mm; border-bottom: 1.5px solid #111 !important; }
.rcpt-brand { margin-bottom: 2mm; font-size: 16pt; font-weight: 700; line-height: 1.25; }
.rcpt-aside { width: 78mm; text-align: right; }
.rcpt-kind { margin-bottom: 2mm; font-size: 13pt; font-weight: 700; letter-spacing: 0.03em; }
.rcpt-form { margin-top: 2mm; }
.rcpt-form th { padding: 5mm 0 1.5mm !important; border-bottom: 1px solid #111 !important; font-size: 12pt; font-weight: 700; }
.rcpt-form td { padding: 2.4mm 3mm 2.4mm 0 !important; border-bottom: 1px solid #e4e7ec !important; vertical-align: top; font-size: 12pt; }
.rcpt-form td:first-child { width: 36mm; }
.rcpt-form td:last-child { font-weight: 600; }
.rcpt-sign { margin-top: 14mm; }
.rcpt-sign td { width: 50%; padding-right: 14mm !important; }
.rcpt-role { font-size: 12pt; font-weight: 700; }
.rcpt-who { min-height: 7mm; margin: 2mm 0 7mm; font-size: 12pt; }
.doc-sheet .rcpt-line { width: 58mm; height: 0; border-bottom: 1px solid #111; }
.doc-sheet .form-doc { font-family: Arial, Helvetica, sans-serif; font-size: 11pt; line-height: 1.35; }
.doc-sheet .form-head td { border: 0; padding: 0 0 10px; vertical-align: top; }
.doc-sheet .form-title { font-size: 18pt; font-weight: 700; line-height: 1.15; }
.doc-sheet .form-sub { margin-top: 2px; font-size: 11pt; }
.doc-sheet .form-company { width: 72mm; text-align: right; font-size: 11pt; line-height: 1.35; }
.doc-sheet .form-fields { margin-top: 4px; }
.doc-sheet .form-fields td { border: 1px solid #111; padding: 4px 8px; vertical-align: middle; font-size: 11pt; }
.doc-sheet .form-fields td.lbl { width: 58mm; font-weight: 700; }
.doc-sheet .form-goods { margin-top: 12px; }
.doc-sheet .form-goods th, .doc-sheet .form-goods td { border: 1px solid #111; padding: 3px 5px; font-size: 9pt; text-align: center; font-weight: 400; }
.doc-sheet .form-goods th { font-weight: 700; }
.doc-sheet .form-goods td.pos { text-align: left; }
.doc-sheet .form-goods tfoot td { font-weight: 700; }
.doc-sheet .form-note { margin: 12px 0 0; font-size: 9pt; line-height: 1.35; text-align: justify; }
.doc-sheet [data-delovi-var="company.terms"] { display: block; margin-top: 4px; white-space: pre-line; }
.doc-field textarea {
  width: 100%;
  min-height: 240px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e4e9f0;
  border-radius: 11px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  resize: vertical;
}
.doc-sheet .form-sign { margin-top: 16px; }
.doc-sheet .form-sign td { border: 0; width: 50%; padding: 2px 16px 2px 0; vertical-align: top; font-size: 11pt; }
.doc-sheet .form-agree { margin-top: 2px; font-size: 9pt; }
.doc-sheet .form-date { margin: 8px 0 0; font-size: 11pt; }
.doc-sheet .form-line { display: inline-block; width: 28mm; border-bottom: 1px solid #111; transform: translateY(-2px); }
.doc-sheet .form-sub:empty { display: none; }
.doc-sheet .form-order { margin: 0 0 10px; padding: 0; background: transparent; color: #111; font-size: 11pt; font-weight: 400; }
.doc-sheet:has(.form-doc) { display: flex; flex-direction: column; }
.doc-sheet .form-doc { display: flex; flex-direction: column; flex: 1 1 auto; }
.doc-sheet .form-site { margin-top: auto; padding-top: 18px; text-align: center; color: #667085; font-size: 12px; }
.tpl-preview .doc-sheet:has(.form-doc),
.tpl-sheet-fit .doc-sheet.tpl-live:has(.form-doc) { min-height: 297mm; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; }
  body > [data-rcpt-print="1"],
  .tpl-print-layer {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .doc-sheet:has(.form-doc) {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    width: 210mm !important;
    height: auto !important;
    min-height: 297mm !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }
}
.ring .amber { color: #f79009; }
.desk-status .track .work { background: repeating-linear-gradient(-55deg, #f79009 0 4px, #fec84b 4px 7px); }
.doc-fill-goods { width: 100%; border-collapse: collapse; margin: 8px 0; }
.tpl-preview { overflow: auto; background: #f3f6fb; padding: 16px; }
.order-view-print svg { display: block; }
.order-view-print path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.order-print-box .doc-modal-main { grid-template-columns: minmax(0, 1fr) !important; }
.order-print-box .doc-modal-sheet {
  width: 100% !important;
  max-width: none !important;
  border-left: 0 !important;
}
.wh-view-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.export-dialog.wh-view .wh-view-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.export-dialog.wh-view .wh-view-tools .wh-view-close,
.export-dialog.wh-view .wh-view-tools .wh-view-print {
  position: static;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #667085;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.export-dialog.wh-view .wh-view-tools .wh-view-print:hover,
.export-dialog.wh-view .wh-view-tools .wh-view-close:hover { background: transparent; color: #101828; }
.export-dialog.wh-view .wh-view-print svg { display: block; }
.export-dialog.wh-view .wh-view-print path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.label-print-box {
  width: min(560px, calc(100vw - 32px)) !important;
  height: auto !important;
  max-height: calc(100vh - 32px) !important;
}
.label-print-main { display: grid; gap: 16px; padding: 18px 20px 22px; }
.label-print-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.label-print-formats button {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.label-print-formats button.is-active { border-color: #157fbe; background: #eef6ff; }
.label-print-formats b { font-size: 13px; }
.label-print-formats small { color: #667085; font-size: 12px; }
/* Сколько штук: подпись слева, инпут справа — одна строка */
.label-print-copies {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #344054;
  font-weight: 600;
}
.label-print-copies input {
  width: 84px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e4e9f0;
  border-radius: 9px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}
.label-print-copies input:focus {
  outline: none;
  border-color: #38b6ff;
}

.export-modal.doc-modal .label-modal-box {
  width: min(880px, calc(100vw - 48px)) !important;
  height: min(560px, calc(100vh - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
}
.label-sample {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #c5d7ea;
  border-radius: 11px;
  background: #f8fbfe;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.label-sample.is-on { border-style: solid; border-color: #1a9ae8; background: #f4fbff; }
.label-sample b { display: block; font-size: 13px; font-weight: 600; color: #1d2939; }
.label-sample small { display: block; margin-top: 2px; font-size: 11.5px; color: #98a2b3; }
.label-sample em { font-style: normal; font-size: 12px; font-weight: 650; color: #1570ef; }

/* ══ Вход и регистрация: ровное окно ═════════════════════════════════════ */
.auth-card {
  width: min(920px, calc(100vw - 48px));
  min-height: 520px;
}
.auth-side {
  justify-content: space-between;
  gap: 16px;
  padding: 32px 28px 24px;
}
.auth-side h2.auth-hello {
  white-space: normal;
  font-size: 28px;
  line-height: 1.15;
}
.auth-orca-stage {
  flex: 1 1 auto;
  min-height: 168px;
  max-height: 230px;
  margin: 0;
}
.auth-orca-canvas {
  min-height: 168px;
  height: 100%;
}
.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}
.auth-stats > div { min-width: 0; text-align: center; }
.auth-stats b { font-size: 22px; }
.auth-stats span {
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}
.auth-form {
  justify-content: center;
  padding: 36px 40px;
  background: #fff;
}
.auth-form h3 {
  text-align: center;
  font-size: 28px;
}
.auth-lead { text-align: center; }
.auth-form .auth-code-cells {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.auth-root .auth-x,
.auth-root .auth-x:hover,
.auth-root .auth-x:active,
.auth-root .auth-x:focus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #98a2b3 !important;
  line-height: 0 !important;
  transform: none !important;
}
.auth-root .auth-x:hover { color: #344054 !important; }
.auth-root .auth-x svg { display: block; }
.auth-root .auth-x path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}
.auth-steps { margin-bottom: 8px; }
.auth-step { text-align: left; }

@media (max-width: 980px) {
  .export-modal.doc-modal { padding: 8px !important; }
  .export-modal.doc-modal .doc-modal-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--sheet-w, 46vw)) !important;
  }
  .export-modal.doc-modal .bf-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

.tpl-list li button.is-active,
.tpl-studio aside li button.is-active,
.tpl-toolbar button.is-active,
.label-list button.is-active,
.label-print-formats button.is-active,
.label-sample.is-on,
.create-clients button.is-active,
.create-clients button.is-active:hover,
.pay-history .sale-list button.is-active,
.export-dialog.wh-view aside > button.is-active,
.shop-packs button.is-active,
.shop-log[aria-expanded="true"],
.doc-var {
  background: #38b6ff;
  border-color: #38b6ff;
  color: #fff;
}
.tpl-list li button.is-active b,
.tpl-list li button.is-active small,
.label-list button.is-active b,
.label-list button.is-active small,
.label-list button.is-active em,
.label-print-formats button.is-active b,
.label-print-formats button.is-active small,
.label-sample.is-on b,
.label-sample.is-on small,
.label-sample.is-on em,
.create-clients button.is-active small,
.pay-history .sale-list button.is-active em,
.export-dialog.wh-view aside > button.is-active span,
.shop-packs button.is-active small,
.shop-packs button.is-active b,
.shop-packs button.is-active em {
  color: #fff;
}
.doc-pane > .doc-block:last-child {
  padding-bottom: 28px;
}
.pay-sale-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f2f4f7;
}
.pay-sale-row .sale-pick-photo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.pay-sale-row .sale-pick-photo img,
.pay-sale-row .sale-pick-photo .wh-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.pay-sale-row .sale-pick-text { display: grid; gap: 1px; min-width: 0; }
.pay-sale-row .sale-pick-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #101828; font-size: 14px; font-weight: 650; }
.pay-sale-row .sale-pick-text small,
.pay-sale-row .sale-pick-text span { color: #98a2b3; font-size: 12px; line-height: 1.3; }
.pay-sale-row em { color: #101828; font-style: normal; font-weight: 700; white-space: nowrap; }
.export-modal.return-modal { z-index: 90; }
.return-modal .export-dialog > p { margin: 0 0 14px; color: #344054; font-size: 14px; }
.return-choice { display: grid; gap: 8px; }
.return-modal .return-stock:hover,
.return-modal .return-stock:hover .set-switch {
  background: transparent;
  color: #1d2939;
}
.return-modal .return-stock:hover .set-switch { background: #e4e7ec; }
.return-modal .return-stock:hover .set-switch.is-on { background: #38b6ff; }
.return-modal .return-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d2939;
  font-size: 14px;
  font-weight: 650;
  cursor: default;
}
.return-modal .set-switch { width: 44px; height: 26px; }
.return-modal .set-switch i { width: 20px; height: 20px; top: 3px; left: 3px; }
.return-modal .return-approve {
  display: grid;
  place-items: center;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: #2e90fa;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.return-modal .return-approve:hover { background: #1570ef; color: #fff; }
.export-dialog.wh-attach-dialog,
.wh-attach-dialog .wh-board.wh-board {
  background: #fff;
  border: 1px solid #fff;
  box-shadow: none;
}
.wh-attach-dialog .wh-foot .sale-once {
  width: auto;
  flex: none;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #38b6ff;
  color: #fff;
}
.wh-attach-dialog .wh-foot .sale-once:hover { background: #1a9ae8; color: #fff; }
.pay-page .pay-list li {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.pay-page .pay-list { padding-right: 16px; }
.pay-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.pay-side-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.pay-side b { font-size: 14px; }
.pay-side b.up { color: #12b76a; }
.pay-side b.down { color: #f04438; }
.pay-side em,
.pay-side small { color: #98a2b3; font-size: 13px; font-style: normal; }
.client-base-table tbody tr.is-on td,
.export-dialog.client-base .client-base-table tbody tr.is-on td {
  background: #fff;
  color: #1c2430;
}
.client-base-table tbody tr.is-on td b,
.export-dialog.client-base .client-base-table tbody tr.is-on td b {
  color: #1d2939;
}
.client-base-table tbody tr.is-on:hover td,
.export-dialog.client-base .client-base-table tbody tr.is-on:hover td {
  background: #f8fafc;
  color: #1c2430;
}
.wh-attach .wh-table tr.is-on td,
.wh-attach .wh-table tr.is-on:hover td {
  background: #fff;
}
.wh-attach .wh-table tr.is-out { cursor: default; }
.wh-attach .wh-table tr.is-out td { color: #98a2b3; }
.desk:has(.site-editor) { padding-bottom: 0; }
.settings-main .site-editor {
  min-height: 0;
  max-width: 1060px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-editor {
  display: flex; flex-direction: column; gap: 18px; align-content: start; width: 100%; min-width: 0; box-sizing: border-box;
  min-height: calc(100vh - 72px); padding: 22px 24px 28px;
  border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(28, 45, 74, 0.05);
}
.site-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.site-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 28px; align-items: start; }
.site-block { display: grid; gap: 12px; min-width: 0; padding: 0; background: transparent; box-shadow: none; }
.site-top + .site-block, .site-block + .site-block { padding-top: 18px; border-top: 1px solid #f2f4f7; }
.site-block h3 { margin: 0; color: #1d2939; font-size: 16px; font-weight: 700; }
.site-editor .field-name { color: #344054; font-size: 13px; font-weight: 650; }
.site-editor .field-box input,
.site-editor .field-box textarea,
.site-editor .site-slug,
.site-editor .auth-phone,
.site-editor input[type="time"] {
  width: 100%; box-sizing: border-box; border: 1px solid #e4e7ec; border-radius: 12px;
  background: #fff; color: #101828; font: inherit; font-size: 14px; font-weight: 500; box-shadow: none;
}
.site-editor .field-box input,
.site-editor .field-box textarea,
.site-editor .site-slug,
.site-editor .auth-phone,
.site-editor input[type="time"],
.site-editor .field-box input:hover,
.site-editor .field-box input:focus,
.site-editor .field-box textarea:hover,
.site-editor .field-box textarea:focus,
.site-editor .site-slug:hover,
.site-editor .site-slug:focus-within,
.site-editor .auth-phone:hover,
.site-editor .auth-phone:focus-within,
.site-editor input[type="time"]:hover,
.site-editor input[type="time"]:focus {
  background: #fff; outline: none; box-shadow: none; border-color: #e4e7ec;
}
.site-editor .field-box input { height: 44px; padding: 0 54px 0 14px; }
.site-editor .field-box textarea { min-height: 96px; padding: 10px 14px 24px; resize: vertical; }
.site-editor .auth-phone {
  display: flex; align-items: center; gap: 8px; height: 44px; margin: 0; padding: 0 14px;
}
.site-editor .auth-phone input {
  display: block; flex: 1; width: auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0;
  background: transparent; color: #101828; font: inherit; font-size: 14px; font-weight: 500; outline: none; box-shadow: none;
}
.site-editor .auth-prefix { color: #101828; font-weight: 700; }
.site-logo-row { display: flex; align-items: center; gap: 14px; }
.site-logo-row img, .site-logo-row > span {
  width: 84px; height: 84px; flex: none; border-radius: 20px; object-fit: contain; background: #f8fafc;
  border: 1px dashed #d0d5dd; display: grid; place-items: center; color: #98a2b3; font-size: 12px; font-weight: 650;
}
.site-logo-row img { border-style: solid; }
.site-logo-row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-logo-btn, .site-logo-row button, .site-open {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px;
  border: 0; border-radius: 12px; background: #38b6ff; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.site-logo-row button { background: #f2f4f7; color: #344054; }
.site-logo-btn input { display: none; }
.site-logo-row .site-hint { flex-basis: 100%; margin: 0; }
.site-hint { margin: -4px 0 0; color: #98a2b3; font-size: 13px; }
.site-hint.is-bad { color: #d92d20; }
.site-url-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-url {
  display: flex; align-items: stretch; flex: 1; min-width: 0; height: 44px; overflow: hidden;
  border: 1px solid #e4e7ec; border-radius: 12px; background: #fff;
}
.site-url-prefix {
  display: flex; align-items: center; flex: none; padding: 0 12px;
  border-right: 1px solid #e4e7ec; background: #f8fafc; color: #667085;
  font-size: 14px; font-weight: 650; white-space: nowrap;
}
.site-editor .site-url input {
  flex: 1; width: 0; min-width: 0; height: 100%; margin: 0; padding: 0 14px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
}
.site-slug { display: flex; align-items: center; height: 44px; padding-left: 12px; }
.site-slug input { flex: 1; min-width: 0; height: 100%; border: 0 !important; box-shadow: none !important; background: transparent; padding: 0 12px 0 0; }
.site-slug em { flex: none; color: #667085; font-style: normal; font-size: 14px; font-weight: 650; white-space: nowrap; }
.site-hours { display: grid; gap: 8px; }
.site-day {
  display: grid; grid-template-columns: 52px 124px 124px 92px 124px 124px; gap: 8px; align-items: center;
}
.site-day > button {
  width: 52px; height: 40px; border: 0; border-radius: 12px; background: #f2f4f7; color: #667085;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.site-day > button.is-active { background: #f2f4f7; color: #1d2939; }
.site-day input[type="time"] {
  display: block; width: 100%; height: 40px; padding: 0 8px; border: 1px solid #e4e7ec; border-radius: 12px;
  background: #fff; color: #1d2939; font: inherit; font-size: 14px; box-sizing: border-box;
}
.site-day > label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #344054; font-size: 13px; font-weight: 650; }
.site-day input[type="checkbox"] { display: inline-block; width: 16px; height: 16px; margin: 0; accent-color: #38b6ff; }
.site-off { color: #98a2b3; font-size: 13px; }
.site-socials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.site-url-row .site-open:disabled { opacity: .55; cursor: default; }
.settings-page .settings-sub button.is-locked { color: #98a2b3; }
.settings-page .settings-sub button .settings-lock { width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; }
.site-days { display: flex; flex-wrap: wrap; gap: 8px; }
.site-days button {
  min-width: 44px; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: #f2f4f7; color: #667085;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.site-days button.is-active { background: #38b6ff; color: #fff; }
.site-time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #344054; font-size: 14px; }
.site-editor .site-time input[type="time"] { width: 132px; flex: none; height: 40px; padding: 0 10px; }
.site-time label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 650; }
.site-time input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #38b6ff; }
.site-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.site-link .site-hint { margin: 0; color: #344054; font-size: 14px; }
.site-link > div { display: flex; align-items: center; gap: 8px; }
.site-link > div > button { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: #f2f4f7; color: #344054; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.site-link .site-slug { flex: 1; min-width: 220px; }
@media (max-width: 1100px) {
  .site-top, .site-socials { grid-template-columns: 1fr 1fr; }
  .site-day { grid-template-columns: 52px 1fr 1fr; }
  .site-day > label, .site-off { grid-column: 1 / -1; }
}
.shop-site-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex: none; }
.shop-subs b:has(.shop-look) { flex-wrap: wrap; row-gap: 8px; }
.shop-subs b a.shop-look {
  height: 26px; padding: 0 10px; border-radius: 999px; background: #f2f4f7; color: #344054;
  font-size: 12px; font-weight: 700; line-height: 26px; text-decoration: none; white-space: nowrap;
}
.shop-subs b button.shop-locked {
  display: inline-flex; align-items: center; gap: 6px; background: #f2f4f7; color: #667085;
}
.shop-subs b button.shop-locked svg,
.settings-page .settings-tabs button .settings-lock {
  width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
}
.settings-page .settings-tabs button.settings-leave {
  margin-top: auto;
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .site-top, .site-grid, .site-socials { grid-template-columns: 1fr; }
  .site-url-row { align-items: stretch; flex-direction: column; }
  .site-url-prefix { font-size: 13px; }
}
html:has(.visit-page),
body:has(.visit-page),
#root:has(.visit-page) { height: auto; min-height: 100%; overflow: auto; }
.visit-page {
  height: auto; min-height: 100vh; min-height: 100dvh; margin: 0; overflow: visible;
  display: flex; flex-direction: column; color: #e8eef5;
  background: #1a2744 url("/assets/visit-universal.jpg") center / cover no-repeat;
}
.visit-top {
  position: relative; z-index: 3; left: auto; right: auto; top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 36px;
}
.visit-word {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: #fff;
  font-size: 22px; font-weight: 650; letter-spacing: -0.03em; text-decoration: none;
}
.visit-word img { width: 28px; height: 28px; object-fit: contain; border-radius: 8px; }
.visit-word span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-head-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; color: #fff; text-align: center; }
.visit-head-mid b { font-size: 15px; font-weight: 700; }
.visit-head-mid span { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 550; }
.visit-go {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(18, 24, 36, .55); color: #e8eef5; font-size: 14px; font-weight: 600;
  line-height: 36px; text-decoration: none; white-space: nowrap;
}
.visit-go { justify-self: end; background: rgba(255,255,255,.08); }
.visit-nav a:hover, .visit-go:hover { background: rgba(255,255,255,.14); }
.visit-hero {
  position: relative; flex: 1; min-height: 0; margin: 0; padding: 12px 24px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center; overflow: visible;
  background: none;
}
.visit-hero::before, .visit-hero::after { content: none; }
.visit-land { display: none; }
.visit-hero h1 {
  position: relative; z-index: 1; margin: 6vh 0 0; max-width: 16ch; color: #eef3f8;
  font-weight: 450; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.035em;
}
.visit-under { position: relative; z-index: 1; margin-top: 12px; }
.visit-under p { margin: 0; color: #fff; font-size: 18px; font-weight: 650; }
.visit-under p + p { margin-top: 4px; color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; }
.visit-land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; }
.visit-hero-foot {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  width: min(1080px, 100%); margin-top: auto; padding: 0 0 8px;
}
.visit-hero-foot p { max-width: 460px; margin: 0; color: rgba(232, 238, 245, .78); font-size: 16px; line-height: 1.5; }
.visit-start {
  display: inline-flex; align-items: center; height: 46px; margin-top: 22px; padding: 0 26px;
  border-radius: 999px; background: #f4f7fb; color: #121820; font-size: 15px; font-weight: 700; text-decoration: none;
}
.visit-start:hover { background: #fff; }
.visit-kicker { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px !important; color: rgba(232, 238, 245, .62); font-size: 13px; }
.visit-kicker i { width: 5px; height: 5px; border-radius: 50%; background: #d5dbe3; }
.visit-body {
  position: relative; z-index: 2; width: min(860px, calc(100% - 32px)); margin: 12px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.visit-block {
  width: 100%; margin: 0; padding: 14px 16px; border-radius: 18px; text-align: center;
  background: rgba(8, 12, 20, .38); border: 1px solid rgba(255,255,255,.1);
}
.visit-block h2 { margin: 0 0 8px; color: #fff; font-size: 15px; font-weight: 700; text-align: center; }
.visit-block p {
  max-width: 640px; margin: 0 auto; color: rgba(244,247,247,.9); font-size: 14px; line-height: 1.45; text-align: center;
}
.visit-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.visit-week li {
  display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 64px; padding: 8px 4px;
  border: 0; border-radius: 12px; background: rgba(255,255,255,.08);
}
.visit-week b { color: #f7fbfb; font-size: 13px; font-weight: 700; }
.visit-week span { display: grid; justify-items: center; gap: 2px; color: rgba(244,247,247,.9); font-size: 11px; text-align: center; }
.visit-week em { font-style: normal; }
.visit-week small { color: rgba(244,247,247,.62); font-size: 10px; }
.visit-week li.is-off b, .visit-week li.is-off span { color: rgba(244,247,247,.4); }
.visit-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.visit-socials a {
  height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #f7fbfb;
  font-size: 14px; font-weight: 650; line-height: 36px; text-decoration: none;
}
.visit-socials a:hover { background: rgba(255,255,255,.2); }
.visit-foot { margin: 0; padding: 12px 24px; background: #1c2433; text-align: center; }
.visit-foot a { color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; }
.visit-miss { margin: 80px auto; color: rgba(244,247,247,.7); font-size: 16px; text-align: center; }
@media (max-width: 800px) {
  html:has(.visit-page),
  body:has(.visit-page),
  #root:has(.visit-page) { height: auto; min-height: 100%; overflow: auto; }
  .visit-page { height: auto; min-height: 100dvh; overflow: visible; }
  .visit-top { position: relative; padding: 14px 16px; gap: 10px; }
  .visit-word { flex: 1; font-size: 17px; }
  .visit-go { max-width: 54%; overflow: hidden; text-overflow: ellipsis; font-size: 13px; padding: 0 10px; }
  .visit-nav { display: none; }
  .visit-hero { flex: none; min-height: 0; padding: 8px 16px 20px; overflow: visible; }
  .visit-hero h1 { margin: 8px 0 0; max-width: 100%; font-size: 34px; }
  .visit-under p { font-size: 16px; }
  .visit-hero-foot { margin-top: 18px; width: 100%; }
  .visit-body { width: 100%; margin-top: 8px; }
  .visit-block p { display: block; overflow: visible; -webkit-line-clamp: unset; }
  .visit-week { grid-template-columns: 1fr; gap: 6px; }
  .visit-week li {
    grid-template-columns: 40px minmax(0, 1fr); justify-items: start; align-items: center;
    min-height: 0; padding: 10px 12px; text-align: left;
  }
  .visit-week span, .visit-week small { justify-items: start; text-align: left; font-size: 13px; }
  .visit-foot { padding: 14px 16px; }
}
@media (max-width: 640px) { .site-socials { grid-template-columns: 1fr; } }
.desk:has(.settings-page) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.desk:has(.settings-page) > .section-reload {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.settings-page.settings-page {
  height: 100%;
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}
.settings-page .settings-main {
  height: 100%;
  min-height: 0;
  overflow: auto;
}
.settings-main .site-editor { min-height: 0; }
.worker-modal-head { border-bottom: 0; }
.wage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.wage-card span { display: block; font-size: 12px; color: #98a2b3; font-weight: 650; }
.wage-card strong { display: block; margin-top: 2px; font-size: 20px; letter-spacing: -0.03em; color: #101828; font-variant-numeric: tabular-nums; }
.wage-card em { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: #667085; }
.wage-actions { display: flex; align-items: center; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; margin: 2px 0 0; padding: 0; width: 100%; }
.wage-actions > button { flex: 0 0 auto; white-space: nowrap; }
.wage-card:empty { display: none; }
.wage-quiet {
  height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wage-quiet:hover { color: #101828; }
.wage-pay { width: 420px; }
.wage-owed {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.wage-owed span { font-size: 13px; color: #667085; font-weight: 650; }
.wage-owed strong { font-size: 22px; letter-spacing: -0.03em; color: #101828; font-variant-numeric: tabular-nums; }
.wage-left { margin: 0; font-size: 12.5px; color: #667085; }
.worker-modal.wage-hist {
  width: 460px;
  height: 560px;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
}
.wage-hist .worker-modal-head { flex: none; border-bottom: 0; }
.wage-hist-list li,
.wage-hist-list li + li { border: 0; border-top: 0; box-shadow: none; }
.wage-hist .worker-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 6px 22px 18px;
}
.wage-hist .wage-empty { margin: auto; color: #98a2b3; font-size: 14px; text-align: center; }
.wage-hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wage-hist-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 16px;
  align-items: center;
  min-height: 64px;
  padding: 12px 2px;
  box-sizing: border-box;
}
.wage-hist-list span { color: #101828; font-size: 14px; font-weight: 650; }
.wage-hist-list b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: #101828; }
.wage-hist-list b.is-plus { color: #027a48; }
.wage-hist-list b.is-fine { color: #d92d20; }
.wage-hist-list small { grid-column: 1 / -1; color: #98a2b3; font-size: 12px; }

/* ── Звёздочка обязательного поля ────────────────────────────────────────
   Раньше в контейнерах с display:grid / display:flex звезда становилась
   отдельным блоком и уезжала на новую строку под текстом.
   Здесь она принудительно inline и всегда идёт сразу справа от подписи. */
.req,
i.req,
em.req,
span.req {
  display: inline !important;
  position: static !important;
  float: none !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #f04438 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: inherit !important;
  letter-spacing: 0 !important;
  vertical-align: baseline !important;
  text-align: left !important;
  text-transform: none !important;
  transform: none !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
  grid-area: auto !important;
}

/* Контейнер подписи со звёздочкой внутри: держим текст и звезду в одну строку. */
span:has(> i.req),
span:has(> .req),
.field-name:has(> .req) {
  display: inline-flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  white-space: nowrap !important;
}

label:has(> i.req),
label:has(> .req) {
  display: block !important;
  white-space: normal;
}

/* Дополнительно: если звезда лежит прямым ребёнком заголовка/абзаца,
   который сам стал grid/flex — возвращаем обычный блочный поток,
   иначе браузер делает звезду отдельным элементом сетки (новая строка). */
h3:has(> .req), h4:has(> .req), p:has(> .req) { display: block !important; }

/* ── Поступление на склад ─────────────────────────────────────────────── */
/* Окно поступления — тот же крупный каркас, что у «Новый заказ» */
.export-dialog.offer-sheet.create-one.wh-receipt {
  width: min(1040px, calc(100vw - 32px));
  height: min(660px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
}
/* Тело формы: слева детали, справа товары */
.wh-receipt-body { display: flex; flex: 1; min-height: 0; gap: 22px; }
.wh-receipt-side {
  width: 268px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding-right: 18px;
  border-right: 0;
  background: transparent;
  overflow: visible;
}
/* .export-dialog label даёт серую плашку, рамку и padding — в деталях поступления они лишние */
.wh-receipt-side .wh-receipt-field,
.wh-receipt-side .wh-receipt-field:hover {
  display: grid;
  gap: 4px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.wh-receipt-field { display: grid; gap: 4px; margin: 0; }
.wh-receipt-field-name { display: flex; align-items: center; gap: 2px; color: #1d2939; font-size: 13px; font-weight: 650; }
.wh-receipt-field em { color: #98a2b3; font-size: 12px; font-style: normal; font-weight: 500; line-height: 1.4; }
.wh-receipt-field select {
  width: 100%;
  height: 38px;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
}
.wh-receipt-field select:hover { border-color: #cfd8e3; }
.wh-receipt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
/* Кнопка печати в деталях поступления — как кнопки «Приход» / «Списание» в складе */
.wh-receipt-side-print {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #1d2939;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

/* Иконка печати в шапке — того же вида, что история, вид не зависит от товаров */
/* Узкие экраны: детали поступления над товарами, а не сбоку */
@media (max-width: 820px) {
  .export-dialog.offer-sheet.create-one.wh-receipt {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 18px;
  }
  .wh-receipt-body { flex-direction: column; gap: 12px; }
  .wh-receipt-side {
    width: auto;
    flex: none;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 0;
    overflow: visible;
  }
  .wh-receipt-field select { height: 40px; }
  .wh-receipt-side-print { height: 40px; }
  .wh-receipt-foot { flex-wrap: wrap; }
  .wh-receipt-foot-actions { width: 100%; }
  .wh-receipt-foot-actions .task-save { flex: 1; }

}
/* Кнопка «Оприходовать», когда нажать нельзя: вид неактивный, но клик ловится.
   Тряску запускаем из JS (см. shakePost) — CSS-анимации в диалогах погашены. */
.wh-receipt-foot-actions .task-save { position: relative; }
.wh-receipt-foot-actions .task-save.is-locked { opacity: 0.55; cursor: pointer; }
/* --- График «Эффективность заказов»: заполняет карточку по высоте --- */
/* Раньше внизу карточки оставалась пустая полоса: карточка растягивалась
   соседней, а svg держал фиксированную пропорцию 760x308. Теперь карточка —
   flex-колонка, .perf забирает остаток высоты (но не меньше 308px), а svg
   растянут абсолютно (inset:0). Абсолютный элемент не влияет на высоту .perf,
   поэтому обратной связи «svg вырос -> карточка выросла -> svg вырос ещё» нет.
   Пропорцию выравнивает JS: он пересчитывает viewBox под фактическую высоту. */
.desk-chart { display: flex; flex-direction: column; }
.desk-chart > header { flex: none; }
.desk-chart .perf { flex: 1 1 auto; min-height: 308px; }
.desk-chart .perf > svg,
.crm-real .desk-chart .perf svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* ══ ВОРОНКА ══════════════════════════════════════════════════════════════
   Колонки = статусы заказов + свои этапы. Свои этапы — пометки, статус
   заказа в разделе «Заказы» от них не меняется. */
.funnel-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  height: calc(100vh - 190px);
  min-height: 420px;
}

/* Доска: колонки одинаковой высоты, каждая листается сама */
/* Доска листается в обе стороны: и по горизонтали (колонки),
   и по вертикали (длинные колонки с карточками) */
.funnel-board {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow: auto;
  min-height: 0;
  min-width: 0;
  padding: 2px 2px 12px;
  scroll-behavior: smooth;
}

.funnel-col {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
  border-radius: 16px;
  background: #f4f6fa;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease;
}
.funnel-col.is-stage { background: #fafbfd; border: 1px dashed #e2e7ef; }
.funnel-col.is-over { background: #eef8ff; border: 1px solid #38b6ff; }
.funnel-col.is-over.is-stage { border-style: solid; }

/* Шапка колонки — липнет при прокрутке карточек */
.funnel-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 8px;
  background: inherit;
  cursor: default;
}
.funnel-col.is-stage .funnel-col-head { cursor: grab; }
.funnel-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.funnel-col-head b {
  flex: 0 1 auto;
  min-width: 0;
  color: #101828;
  font-size: 14.5px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.funnel-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff;
  color: #98a2b3;
  font-size: 10.5px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .02em;
}
.funnel-num {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 24px;
  text-align: center;
}
.funnel-del {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #98a2b3;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.funnel-del:hover { background: #fff; color: #d92d20; }

/* Сумма колонки */
.funnel-sum {
  padding: 0 4px 2px;
  color: #98a2b3;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Список карточек: своя прокрутка */
.funnel-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 44px;
  padding: 1px 0 0;
}
.funnel-cards::-webkit-scrollbar-thumb { background: #d8dee8; border-radius: 99px; }

/* Пустая колонка — пунктирная зона */
.funnel-empty {
  margin: 0;
  padding: 18px 10px;
  border: 1px dashed #e2e7ef;
  border-radius: 11px;
  color: #b0b8c4;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Карточка заказа */
.funnel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 14px 13px 17px;
  border: 1px solid #eef1f6;
  border-radius: 13px;
  background: #fff;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
/* Цветная полоска статуса слева */
.funnel-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--tone, #38b6ff);
}
.funnel-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .1); border-color: #e2e7ef; }
.funnel-card:active { cursor: grabbing; }
.funnel-card.is-dragging { opacity: .45; transform: scale(.98); }

.funnel-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.funnel-card header b {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.funnel-card-sum {
  color: #101828;
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.funnel-card strong {
  color: #101828;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.funnel-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.funnel-card-meta small {
  flex: 0 0 auto;
  color: #b0b8c4;
  font-size: 11px;
}
.funnel-card-meta i {
  min-width: 0;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f2f4f8;
  color: #667085;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.funnel-card-adr {
  color: #98a2b3;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Низ настроек: без закругления на экране.
   Контейнер страницы настроек доходит до нижней кромки окна и имеет
   радиус 22px — отсюда видимый скруглённый угол внизу. Гасим его.
   Отступ снизу у .settings-main не даёт контенту прилипнуть к кромке. */
.settings-page,
.settings-page.settings-page,
.settings-page.settings-page.settings-page {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
/* И у последней панели внутри — чтобы не было двойного закругления */
.settings-page .ord-set .ord-panel:last-of-type,
.settings-page .ord-set .ord-panels > .ord-panel:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}







/* ── Счёт в окне «Добавить заказ» ─────────────────────────────────────
   Один в один как блок «Способ оплаты» в окне оплаты: рамка-контейнер,
   радиокнопки 16px, подписи 14px, ряды с переносом.
   Правила окна заказа (.export-dialog.create-one .order-field input)
   задают width:100%/height:44px и растягивали радиокнопку в огромный
   круг — поэтому размер зафиксирован через !important. */
.export-dialog .order-field .sale-methods.is-order-pay {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
  margin: 0;
  padding: 12px !important;
  border: 1px solid #e4e7ec !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.export-dialog .order-field .sale-methods.is-order-pay label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1d2939 !important;
  font: inherit;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
}
.export-dialog .order-field .sale-methods.is-order-pay label:hover {
  background: transparent !important;
}
/* У выбранного кружка не должно быть чёрной обводки: гасим outline,
   рамку и тень браузера. Синий accent-color остаётся. */
.export-dialog .order-field .sale-methods.is-order-pay label input:checked,
.export-dialog .order-field .sale-methods.is-order-pay label input:focus,
.export-dialog .order-field .sale-methods.is-order-pay label input:focus-visible,
.export-dialog .order-field .sale-methods.is-order-pay label input:active {
  outline: 0 !important;
  outline-offset: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.export-dialog .order-field .sale-methods.is-order-pay label input,
.export-dialog .order-field .sale-methods.is-order-pay label input[type="radio"] {
  display: inline-block !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: #38b6ff !important;
  cursor: pointer;
  box-sizing: border-box;
}

/* ── Этапы воронки в настройках ───────────────────────────────────────
   Общий список плашек — grid с колонками minmax(150px, 1fr), из-за чего
   название обрезалось («На согласован..») при свободном месте в строке.
   Здесь раскладка по содержимому и имя без обрезки. */
.ord-chips.funnel-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 10px 10px;
}
.ord-chips.funnel-stages li,
.ord-chips.funnel-stages li:hover,
.ord-chips.funnel-stages li:focus,
.ord-chips.funnel-stages li:focus-within {
  width: auto;
  max-width: 100%;
  padding: 7px 4px 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}
/* Кнопки этапа видны всегда, а не только при наведении */
.ord-chips.funnel-stages li .ord-chip-actions {
  opacity: 1;
}
.ord-chips.funnel-stages li .ord-chip-actions button {
  opacity: 1;
}
.ord-chips.funnel-stages li b {
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

/* ══ СОЦСЕТИ: WhatsApp ════════════════════════════════════════════════════
   Иконка соцсетей стоит под аватаром; по клику ниже с пружинной анимацией
   появляется WhatsApp. По клику на него слева открывается виджет. */
.avatar-stack { position: relative; display: flex; flex: none; }
/* Шапка не должна обрезать раскрытый список и виджет */
.desk-top, .desk-tools, .avatar-stack { overflow: visible; }
.social-dock {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 72;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  background: #fff;
  color: #475467;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .10);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.social-dock:hover { transform: none; color: #1a9ae8; box-shadow: 0 8px 24px rgba(16, 24, 40, .10); }
.social-dock.is-open { color: #1a9ae8; box-shadow: inset 0 0 0 2px #38b6ff, 0 12px 28px rgba(16, 24, 40, .14); }
.social-dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.social-list {
  position: absolute;
  right: 0;
  top: calc(100% + 64px);
  z-index: 72;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-net {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  background: #fff;
  color: #25d366;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .10);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-14px) scale(.7);
  pointer-events: none;
  transition: opacity .22s ease, transform .26s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s ease;
}
.social-list.is-open .social-net {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: .06s;
}
/* Наведение на иконку без анимации — по просьбе: не подпрыгивает и не растёт */
.social-net:hover { transform: none; box-shadow: 0 8px 24px rgba(16, 24, 40, .10); }
.social-net.is-on { box-shadow: 0 12px 28px rgba(16, 24, 40, .14); }
.social-net svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.social-net em {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 2px #fff;
  opacity: 0;
}
.social-net.is-on em { opacity: 1; animation: waPulse 1.6s ease-in-out infinite; }
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .55; }
}

/* Виджет мессенджера — слева от иконки WhatsApp */
.wa-widget {
  position: absolute;
  right: calc(100% + 14px);
  top: calc(100% + 64px);
  z-index: 71;
  width: min(360px, calc(100vw - 110px));
  height: min(540px, calc(100vh - 170px));
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e9f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .20);
  overflow: hidden;
  animation: waIn .2s ease;
}
@keyframes waIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.wa-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; border-bottom: 0; flex: none; }
.wa-head b { flex: 1 1 auto; font-size: 14.5px; font-weight: 750; color: #101828; }
.wa-head button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wa-head button:hover { background: #f2f4f8; color: #475467; }
.wa-dot { width: 9px; height: 9px; border-radius: 50%; background: #12b76a; flex: none; }

.wa-note { margin: 0; padding: 14px 16px; color: #98a2b3; font-size: 12.5px; line-height: 1.5; }
.wa-note.is-warn { color: #b54708; background: transparent; border: 0; padding: 0; text-align: center; }

.wa-empty { padding: 22px 18px; text-align: center; color: #667085; }
.wa-empty b { display: block; color: #101828; font-size: 14px; margin-bottom: 6px; }
.wa-empty p { margin: 0; font-size: 12.5px; line-height: 1.55; }

.wa-qr { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px 18px 36px; overflow: auto; }
.wa-qr b { color: #101828; font-size: 14px; }
.wa-qr p { margin: 0; max-width: 260px; text-align: center; color: #667085; font-size: 12px; line-height: 1.5; }
.wa-qr img { width: min(230px, 70%); border-radius: 12px; background: #fff; }
.wa-btn {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #e4e9f0;
  border-radius: 11px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.wa-btn:hover { border-color: #38b6ff; color: #1a9ae8; }

.wa-body { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.wa-chats { display: flex; flex-direction: column; gap: 2px; padding: 8px; overflow-y: auto; flex: 1 1 auto; }
.wa-chats button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #101828;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.wa-chats button:hover { background: #f4f8ff; }
.wa-chats b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wa-chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #eef1f6; flex: none; }
.wa-chat-head button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #667085; font: inherit; cursor: pointer; }
.wa-chat-head button:hover { background: #f2f4f8; }
.wa-chat-head b { font-size: 13px; color: #101828; }

.wa-msgs { display: flex; flex-direction: column; gap: 6px; padding: 12px; overflow-y: auto; flex: 1 1 auto; }
.wa-msg {
  align-self: flex-start;
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 12px 12px 12px 4px;
  background: #f2f4f8;
  color: #101828;
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-word;
}
.wa-msg.is-out { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: #dcf3ff; }

.wa-send { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #eef1f6; flex: none; }
.wa-send input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e4e9f0;
  border-radius: 11px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
}
.wa-send input:focus { outline: none; border-color: #38b6ff; }
.wa-send button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #38b6ff;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.wa-send button:hover { background: #1a9ae8; }
.wa-send button:disabled { background: #d0d5dd; cursor: default; }

@media (max-width: 640px) {
  .social-dock { top: 62px; right: 12px; }
  .social-list { top: 112px; right: 12px; }
  .wa-widget {
    right: 12px;
    left: 12px;
    top: 112px;
    width: auto;
    height: min(70vh, calc(100vh - 140px));
  }
}

.wh-receipt > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wh-receipt > header strong { display: block; font-size: 18px; color: #101828; letter-spacing: -0.01em; }
.wh-receipt-head-actions { display: flex; align-items: center; gap: 2px; }
.wh-receipt-hist-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #98a2b3; cursor: pointer; }
.wh-receipt-hist-btn:hover { background: transparent; color: #1d2939; }
.wh-receipt-hist-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wh-receipt-x { border: 0; background: transparent; color: #98a2b3; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.wh-receipt-x:hover { color: #101828; }
/* Вкладки — тот же вид, что «Информация / История» у товара */
.wh-receipt-tabs { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin: 0; padding: 0; border-bottom: 1px solid #eaecf0; flex: none; }
.wh-receipt-tabs button { height: 40px; margin: 0; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #667085; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.wh-receipt-tabs button:hover { color: #1d2939; }
.wh-receipt-tabs button.is-active { color: #1d2939; border-bottom-color: #38b6ff; }
.wh-receipt-hist { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: auto; }
.wh-receipt-hist table { width: 100%; border-collapse: collapse; }
/* История без линий: только текст, разделяют сами строки */
.wh-receipt-hist th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; color: #98a2b3; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 0; }
.wh-receipt-hist td { padding: 11px 10px; font-size: 13.5px; color: #101828; border-bottom: 0; }
.wh-receipt-hist td b { display: block; font-weight: 650; }
.wh-receipt-hist td small { display: block; margin-top: 1px; font-size: 11.5px; color: #98a2b3; }
/* Пустая история поступлений — обычный текст, без плашки и фона */
/* Строка истории открывает окно с деталями поступления */
.wh-receipt-hist-row { cursor: pointer; }
.wh-receipt-hist-row:hover td { background: #f8fafc; }
.wh-receipt-hist-row:focus-visible { outline: 2px solid #38b6ff; outline-offset: -2px; }
/* Детали поступления — показываются внутри окна, на месте списка истории */
.wh-receipt-hist-detail { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0; }

/* Окно склада: .export-dialog input { display: none } из landing.css прячет поиск */
.export-dialog.wh-attach-dialog .wh-main > input.wh-search,
.export-dialog.wh-attach-dialog .wh-search {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0 0 12px;
  box-sizing: border-box;
  flex: none;
}
.wh-receipt-view-head,
.wh-receipt-view-info { flex: none; }
.wh-receipt-view-head { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.wh-receipt-view-back {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #38b6ff;
  border-radius: 10px;
  background: #38b6ff;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.wh-receipt-view-back:hover { border-color: #1a9ae8; background: #1a9ae8; color: #fff; }
.wh-receipt-view-print {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #38b6ff;
  border-radius: 10px;
  background: #38b6ff;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.wh-receipt-view-print:hover { border-color: #1a9ae8; background: #1a9ae8; }
.wh-receipt-view-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; }
.wh-receipt-view-info span { display: block; font-size: 11.5px; font-weight: 650; color: #98a2b3; text-transform: uppercase; letter-spacing: 0.04em; }
.wh-receipt-view-info b { display: block; margin-top: 3px; font-size: 14px; font-weight: 650; color: #101828; }
.wh-receipt-view-list { flex: 1; min-height: 0; overflow: auto; }
.wh-receipt-view-list table { width: 100%; border-collapse: collapse; }
.wh-receipt-view-list th { padding: 8px; text-align: left; font-size: 11px; font-weight: 700; color: #98a2b3; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #eef2f7; }
.wh-receipt-view-list td { padding: 9px 8px; font-size: 13.5px; color: #101828; border-bottom: 1px solid #f4f7fb; }
.wh-receipt-view-list td b { display: block; font-weight: 600; }
.wh-receipt-view-list td small { display: block; margin-top: 1px; font-size: 11.5px; color: #98a2b3; }
.wh-receipt-hist .ord-empty {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: left !important;
  color: #98a2b3 !important;
  font-size: 13px !important;
}
.wh-receipt-label { height: 30px; padding: 0 12px; border: 1px solid #e4e9f0; border-radius: 9px; background: #fff; color: #475467; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.wh-receipt-label:hover { border-color: #cfd8e3; color: #101828; }
.wh-receipt-new { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow: hidden; }
/* Поле «Поставщик» в окне поступления — без серой плашки и без рамки.
   .export-dialog label даёт фон #f8fafc и padding 12px, .export-dialog select — белый фон
   и рамку. Гасим оба, чтобы поле выглядело как настройки в задачах. */
.wh-receipt-new .named-field,
.wh-receipt-new .named-field:hover,
.wh-receipt-new .named-field:focus-within {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.wh-receipt-new .named-field > .field-name {
  padding: 0 !important;
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
.wh-receipt-new .named-field select,
.wh-receipt-new .named-field select:hover,
.wh-receipt-new .named-field select:focus {
  width: 100% !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #101828 !important;
  font: inherit !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
.wh-receipt-add { display: flex; gap: 8px; flex-wrap: wrap; }
/* Добавление товара в приход — голубые кнопки с белым текстом */
.wh-receipt-add > button,
.wh-receipt-picker > button { height: 36px; padding: 0 14px; border: 1px solid #38b6ff; border-radius: 10px; background: #38b6ff; color: #fff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.wh-receipt-add > button:hover,
.wh-receipt-picker > button:hover { border-color: #1a9ae8; background: #1a9ae8; color: #fff; }
.wh-receipt-add > button:disabled,
.wh-receipt-picker > button:disabled { opacity: 0.5; cursor: default; }
.wh-receipt-picker { position: relative; }
.wh-receipt-picker > button.is-open { border-style: solid; border-color: #38b6ff; color: #101828; }
.wh-receipt-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(360px, 84vw); padding: 8px; border: 1px solid #e4e9f0; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px -20px rgba(28, 45, 74, 0.3); }
.wh-receipt-pop input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #e4e9f0; border-radius: 9px; font: inherit; font-size: 13px; }
.wh-receipt-pop > div { max-height: 260px; overflow: auto; margin-top: 6px; }
.wh-receipt-pop > div > button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.wh-receipt-pop > div > button:hover { background: #f6f8fb; }
.wh-receipt-pop span { display: block; font-size: 13px; color: #101828; font-weight: 550; }
.wh-receipt-pop small { display: block; margin-top: 1px; font-size: 11.5px; color: #98a2b3; }
.wh-receipt-fresh { display: grid; grid-template-columns: 1.4fr 1fr 0.9fr 0.9fr auto; gap: 8px; padding: 10px; border-radius: 12px; background: #f8fafc; }
.wh-receipt-fresh input, .wh-receipt-fresh select { height: 34px; padding: 0 9px; border: 1px solid #e4e9f0; border-radius: 9px; background: #fff; font: inherit; font-size: 13px; min-width: 0; }
.wh-receipt-table { flex: 1; min-height: 0; overflow: auto; }
.wh-receipt-table table { width: 100%; border-collapse: collapse; }
.wh-receipt-table th { padding: 7px 8px; text-align: left; font-size: 11px; font-weight: 700; color: #98a2b3; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #eef2f7; }
.wh-receipt-table td { padding: 8px; font-size: 13.5px; color: #101828; border-bottom: 0; vertical-align: middle; }
.wh-receipt-table td b { display: block; font-weight: 600; }
.wh-receipt-table td small { display: block; margin-top: 1px; font-size: 11.5px; color: #98a2b3; }
.wh-receipt-table input { width: 100%; max-width: 104px; height: 34px; padding: 0 9px; border: 1px solid #e4e9f0; border-radius: 9px; background: #fff; font: inherit; font-size: 13px; text-align: right; }
.wh-receipt-drop { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #98a2b3; font-size: 18px; line-height: 1; cursor: pointer; }
.wh-receipt-drop:hover { background: #fef3f2; color: #f04438; }
/* Итог прихода прижат ко дну окна, на всю его ширину */
.wh-receipt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; padding-top: 12px; border-top: 0; }
.wh-receipt-foot span { font-size: 13.5px; color: #667085; }
.wh-receipt-foot b { color: #101828; font-weight: 700; }
/* Низ окна прихода: оприходовать */
.wh-receipt-foot-actions { display: flex; align-items: center; gap: 8px; flex: none; }
/* Действия в строке прихода: изменить и убрать */
.wh-receipt-row-actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.wh-receipt-edit {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.wh-receipt-edit:hover { background: #eef4ff; color: #1570ef; }
.wh-receipt-pop-empty { margin: 4px 2px 6px; color: #98a2b3; font-size: 12.5px; line-height: 1.45; }
/* Сохранено: одна надпись по центру окна — и по высоте, и по горизонтали.
   Наложение на всё окно, поэтому шапка не сдвигает центр вниз. */
.wh-receipt-done { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0; text-align: center; pointer-events: none; }
.wh-receipt-done b { font-size: 17px; font-weight: 650; color: #101828; }
/* Поставщики в настройках */
.wh-suppliers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wh-suppliers li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.wh-suppliers li:hover { background: #f8fafc; }
/* Строка в режиме правки: фон при наведении не нужен, мешает полю ввода */
.wh-suppliers li.is-editing,
.wh-suppliers li.is-editing:hover,
.wh-suppliers li:has(.wh-supplier-edit):hover { background: transparent !important; }

.wh-supplier-text b { display: block; font-size: 13.5px; color: #101828; font-weight: 600; }
.wh-supplier-text small { display: block; margin-top: 1px; font-size: 11.5px; color: #98a2b3; }
.wh-supplier-edit { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; width: 100%; }
.wh-supplier-edit input { height: 32px; padding: 0 9px; border: 1px solid #e4e9f0; border-radius: 8px; font: inherit; font-size: 13px; min-width: 0; }
.wh-supplier-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid #eef2f7; }
.wh-supplier-add .field-name { grid-column: 1 / -1; font-size: 12.5px; color: #98a2b3; }
.wh-supplier-add input { height: 34px; padding: 0 9px; border: 1px solid #e4e9f0; border-radius: 9px; font: inherit; font-size: 13px; min-width: 0; }
/* Поставщики: поле добавления — в точности как в «Задачах» (плоский инпут) */
.wh-supplier-add {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.wh-supplier-add .field-name { flex: 1 1 100%; }
.wh-supplier-add input,
.wh-supplier-add input:hover,
.wh-supplier-add input:focus,
.wh-supplier-add input:focus-visible,
.wh-supplier-add input:active {
  flex: 1 1 140px !important;
  min-width: 140px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 5px 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font: inherit !important;
  font-size: 13px !important;
  color: #101828 !important;
}
.wh-supplier-add input::placeholder { color: #98a2b3 !important; }
.wh-supplier-add .ord-status-add-btn {
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  flex: 0 0 auto !important;
}

/* Поле редактирования: без обводки, мягкая заливка */
.wh-supplier-edit input {
  border: 0 !important;
  border-radius: 9px !important;
  background: #f6f8fb !important;
  box-shadow: none !important;
  height: 38px !important;
  padding: 0 12px !important;
  font: inherit !important;
  font-size: 13.5px !important;
  color: #101828 !important;
  min-width: 0 !important;
}
.wh-supplier-edit input::placeholder { color: #98a2b3 !important; }
.wh-supplier-edit input:focus {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: #eef2f7 !important;
}
.wh-suppliers-empty {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
  color: #98a2b3 !important;
  font-size: 13px !important;
}
/* Кнопки в формах поставщика — той же высоты, что и поля */
.wh-supplier-edit .ord-status-save,
.wh-supplier-edit .ord-status-cancel {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border-radius: 9px !important;
}
.wh-suppliers-empty { border-radius: 0 !important; }
/* Поставщики: стрелки порядка, правка и удаление — всегда видны, в одну строку */
.wh-suppliers li .ord-status-actions {
  opacity: 1 !important;
  gap: 0 !important;
  flex: none !important;
}
.wh-suppliers li .ord-status-actions > button {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  flex: 0 0 24px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
.wh-suppliers li .ord-status-move:disabled {
  opacity: 0.22 !important;
  cursor: not-allowed !important;
  background: transparent !important;
}
.wh-suppliers li .ord-status-move:hover:not(:disabled) {
  background: rgba(16, 24, 40, 0.07) !important;
  color: #101828 !important;
}
@media (max-width: 720px) {
  .wh-suppliers li { flex-wrap: wrap; }
  .wh-suppliers li .wh-supplier-text { flex: 1 1 100%; }
}
/* Предпросмотр пачки этикеток */
/* Пачка этикеток: показываем сами этикетки, по одной на единицу товара */
.label-bulk-stack { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; align-content: flex-start; flex: none; width: 100%; }
.label-bulk-stack .label-sheet { zoom: 1 !important; transform: none !important; flex: 0 0 auto; }
.label-bulk-more { margin: 0; font-size: 12px; color: #98a2b3; }
@media (max-width: 720px) {
  .wh-receipt-fresh, .wh-supplier-add, .wh-supplier-edit { grid-template-columns: 1fr; }
  .wh-receipt { width: 96vw; padding: 16px; }
}

/* ══ Крестики, печать и история — без фона, одинаковый вид ═══════════════
   Одно правило на все окна: bare-иконка 36×36, серый #667085,
   при наведении только цвет темнеет, фон не появляется. */
button[aria-label="Закрыть"]:not(.filter-scrim):not(.orders-edit),
.wh-receipt-x,
.wh-receipt-hist-btn,
.doc-modal-x,
.worker-modal-x,
.soft-close,
.client-base-close,
.wh-view-close,
.wh-lightbox header button.is-close,
.ad-close,
.order-view-print,
.order-view-tools > button,
.task-view > header > button,
.wh-view-print,
.wh-view-sheet header button,
.pay-history .sale-panel > header button,
.blank-block-card > header button {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #667085 !important;
  font: inherit !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
  cursor: pointer !important;
}
button[aria-label="Закрыть"]:not(.filter-scrim):not(.orders-edit):hover,
.wh-receipt-x:hover,
.wh-receipt-hist-btn:hover,
.doc-modal-x:hover,
.worker-modal-x:hover,
.soft-close:hover,
.client-base-close:hover,
.wh-view-close:hover,
.wh-lightbox header button.is-close:hover,
.ad-close:hover,
.order-view-print:hover,
.order-view-tools > button:hover,
.task-view > header .order-view-tools button:hover,
.task-view > header > button:hover,
.wh-view-print:hover,
.wh-view-sheet header button:hover,
.pay-history .sale-panel > header button:hover,
.blank-block-card > header button:hover {
  background: transparent !important;
  color: #101828 !important;
}
button[aria-label="Закрыть"]:not(.filter-scrim):not(.orders-edit) svg,
.order-view-print svg,
.order-view-tools > button svg,
.task-view > header > button svg,
.wh-view-print svg,
.wh-view-sheet header button svg,
.pay-history .sale-panel > header button svg,
.blank-block-card > header button svg,
.wh-receipt-x svg,
.wh-receipt-hist-btn svg,
.doc-modal-x svg,
.worker-modal-x svg,
.soft-close svg,
.client-base-close svg,
.wh-view-close svg,
.wh-lightbox header button.is-close svg,
.ad-close svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}
button[aria-label="Закрыть"]:not(.filter-scrim):not(.orders-edit) path,
.order-view-print path,
.order-view-tools > button path,
.task-view > header > button path,
.wh-view-print path,
.wh-view-sheet header button path,
.pay-history .sale-panel > header button path,
.blank-block-card > header button path,
.wh-receipt-x path,
.wh-receipt-hist-btn path,
.doc-modal-x path,
.worker-modal-x path,
.soft-close path,
.client-base-close path,
.wh-view-close path,
.wh-lightbox header button.is-close path,
.ad-close path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
/* На тёмном лайтбоксе иконка остаётся белой — фон всё равно убран */
.wh-lightbox header a,
.wh-lightbox header button.is-close {
  color: #fff !important;
}
.wh-lightbox header a:hover,
.wh-lightbox header button.is-close:hover {
  background: transparent !important;
  color: #fff !important;
  opacity: 0.72;
}
/* Пункты выпадающего меню «печать документа» — обычные строки, не иконки */
.task-view > header .order-doc-menu button,
.order-view-tools .order-doc-menu button {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 10px !important;
  flex: initial !important;
  display: block !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: left !important;
  color: #344054 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
}
.task-view > header .order-doc-menu button:hover,
.order-view-tools .order-doc-menu button:hover {
  background: #f4f7fb !important;
  color: #101828 !important;
}
/* Текстовые кнопки в шапках (лайтбокс, склад) — обычные кнопки, не иконки */
.wh-lightbox header button:not(.is-close) {
  width: auto !important;
  height: 36px !important;
  padding: 0 12px !important;
  flex: initial !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 34px !important;
  border-radius: 12px !important;
  color: #fff !important;
}
.wh-lightbox header a {
  width: auto !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  color: #fff !important;
}
.export-dialog.wh-view .wh-view-tools .wh-view-print {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  flex: initial !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
}
.export-dialog.wh-view .wh-view-tools .wh-view-print svg { display: block; }
/* Иконка истории в шапке «Поступления» — та же bare-манера, без рамок */

/* Печать: та же манера — текст без рамки, фона и скругления */
.doc-modal-top .doc-modal-print,
.export-modal.doc-modal .doc-modal-top .doc-modal-print,
.wh-view-print,
.wh-receipt-label {
  height: 36px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #667085 !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}
.doc-modal-top .doc-modal-print:hover,
.export-modal.doc-modal .doc-modal-top .doc-modal-print:hover,
.wh-view-print:hover,
.wh-receipt-label:hover {
  background: transparent !important;
  border: 0 !important;
  color: #101828 !important;
}
.wh-view-print svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* ══ Окно этикетки: у шапки нет линии снизу ══════════════════════════════
   Правило .export-modal.doc-modal .doc-modal-top задаёт border-bottom
   с !important. Специфичность (0,3,0) — ровно как у .label-print-box
   .doc-modal-top, поэтому здесь два класса контейнера: (0,4,0). */
.export-modal.doc-modal .label-print-box .doc-modal-top,
.label-print-box.label-print-box .doc-modal-top {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.wa-phone {
  width: min(240px, 100%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e4e9f0;
  border-radius: 11px;
  background: #fff;
  text-align: center;
  font: inherit;
  font-size: 15px;
  color: #101828;
}
.wa-code {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 2px;
  color: #101828;
}

.wa-steps { width: 100%; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wa-steps li { display: flex; align-items: flex-start; gap: 8px; margin: 0; max-width: none; text-align: left; color: #475467; font-size: 13px; line-height: 1.35; }
.wa-steps i { flex: none; width: auto; height: auto; border-radius: 0; background: none; color: #101828; font-style: normal; font-size: 13px; font-weight: 750; }
.wa-qr img { width: min(220px, 78%); padding: 10px; border: 1px solid #e7edf3; border-radius: 18px; box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06); }
.wa-qr .wa-btn { width: 100%; border: 0; background: #38b6ff; color: #fff; }
.wa-qr .wa-btn:hover { background: #1aa3ef; color: #fff; }
.wa-qr .wa-btn:disabled { opacity: 0.65; cursor: default; }

.wa-frame { width: min(220px, 78%); aspect-ratio: 1; margin-top: 22px; display: grid; place-items: center; padding: 10px; border: 1px solid #e7edf3; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06); }
.wa-frame img { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; }
.wa-frame span { color: #98a2b3; font-size: 13px; text-align: center; }

.desk-head { margin-top: 56px; }

.wa-chats button.wa-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.wa-ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 750; flex: none; }
.wa-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-row-main b { font-size: 14px; color: #101828; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-row-main small { color: #667085; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #98a2b3; font-size: 11px; }
.wa-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #38b6ff; color: #fff; font-style: normal; font-size: 11px; line-height: 18px; text-align: center; }
.wa-msg { display: flex; flex-direction: column; gap: 2px; }
.wa-msg small { align-self: flex-end; color: #667085; font-size: 10px; }

/* wa-messenger */
.wa-widget {
  width: min(380px, calc(100vw - 96px));
  height: min(640px, calc(100vh - 88px));
  background: #fff;
}
.wa-widget .wa-head { height: 54px; padding: 0 8px 0 14px; gap: 8px; }
.wa-widget .wa-head b { font-size: 15px; font-weight: 700; }
.wa-widget .wa-head button { width: 32px; height: 32px; display: grid; place-items: center; color: #475467; }
.wa-widget .wa-head button svg,
.wa-widget .wa-send button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-widget .wa-head .wa-ava { width: 32px; height: 32px; font-size: 12px; }
.wa-search { display: block; padding: 0 12px 8px; }
.wa-search input { width: 100%; height: 36px; border: 0; border-radius: 10px; background: #f2f4f7; padding: 0 12px; font: inherit; color: #101828; }
.wa-search input:focus { outline: none; }
.wa-widget .wa-chats { padding: 4px 6px 8px; }
.wa-widget .wa-chats button,
.wa-widget .wa-chats button.wa-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 52px; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.wa-widget .wa-chats button:hover { background: #f5f7fb; }
.wa-widget .wa-ava { width: 42px; height: 42px; overflow: hidden; font-size: 14px; }
.wa-widget .wa-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.wa-widget .wa-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-widget .wa-row-main b,
.wa-widget .wa-row-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-widget .wa-body { min-height: 0; background: #f6f8fb; }
.wa-widget .wa-msgs { min-height: 0; gap: 0; padding: 8px 10px 12px; background: #f6f8fb; }
.wa-widget .wa-thread { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.wa-day { align-self: center; margin: 8px 0 4px; padding: 3px 8px; border-radius: 99px; background: #fff; color: #667085; font-size: 11px; }
.wa-widget .wa-msg { max-width: 78%; padding: 7px 9px 4px; border: 1px solid #e6ebf2; background: #fff; box-shadow: none; }
.wa-widget .wa-msg.is-out { background: #e5f4ff; border-color: #d5ebfa; }
.wa-widget .wa-msg span { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.35; color: #101828; }
.wa-pic { display: block; width: min(220px, 100%); max-height: 240px; object-fit: cover; border-radius: 10px; background: #eef2f6; }
.wa-audio { width: min(220px, 100%); height: 32px; }
.wa-file { color: #1570ef; font-size: 13px; text-decoration: none; }
.wa-wait { color: #98a2b3; font-size: 12px; }
.wa-widget .wa-send { background: #fff; gap: 4px; }
.wa-widget .wa-send input { height: 38px; border: 0; background: #f2f4f7; border-radius: 19px; }
.wa-widget .wa-send button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #667085; padding: 0; display: grid; place-items: center; }
.wa-widget .wa-send button[type="submit"],
.wa-widget .wa-send button.is-rec { background: #38b6ff; color: #fff; }
.wa-widget .wa-send button:hover { background: #eef2f6; color: #344054; }
.wa-widget .wa-send button[type="submit"]:hover,
.wa-widget .wa-send button.is-rec:hover { background: #1a9ae8; color: #fff; }
.wa-rec { flex: 1 1 auto; color: #d92d20; font-size: 13px; }
.wa-settings { display: flex; flex-direction: column; gap: 0; padding: 6px 0 16px; }
.wa-settings > div { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-bottom: 1px solid #f2f4f7; }
.wa-settings span { color: #667085; font-size: 13px; }
.wa-settings b { color: #101828; font-size: 13px; font-weight: 650; }
.wa-settings > div button { height: 28px; padding: 0 10px; border: 0; border-radius: 99px; background: #f2f4f7; color: #344054; font: inherit; font-size: 12px; cursor: pointer; }
.wa-settings > div button.is-active { background: #e5f4ff; color: #1570ef; }
.wa-refresh { margin: 16px; height: 40px; border: 0; border-radius: 12px; background: #101828; color: #fff; font: inherit; cursor: pointer; }
.wa-settings p { margin: 0 16px; color: #98a2b3; font-size: 12px; line-height: 1.45; }

/* wa-bubbles */
.wa-widget,
.wa-widget .wa-body,
.wa-widget .wa-msgs,
.wa-widget .wa-thread,
.wa-widget .wa-chats { overflow-x: hidden; max-width: 100%; }
.wa-pack { display: flex; flex-direction: column; width: 100%; min-width: 0; max-width: 100%; }
.wa-line { display: flex; width: 100%; min-width: 0; max-width: 100%; justify-content: flex-start; }
.wa-line.is-out { justify-content: flex-end; }
.wa-widget .wa-msg {
  width: fit-content;
  max-width: 78%;
  min-width: 0;
  align-self: auto;
  margin: 0;
  background: #fff;
  border: 1px solid #e7edf3;
  overflow: hidden;
}
.wa-widget .wa-msg.is-out { background: #d9fdd3; border-color: #c5edbc; }
.wa-widget .wa-msg span,
.wa-widget .wa-msg small,
.wa-widget .wa-file {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wa-widget .wa-pic,
.wa-widget .wa-audio { max-width: 100%; }

/* wa-width */
.wa-widget {
  width: 380px;
  max-width: calc(100vw - 28px);
}
@media (max-width: 640px) {
  .wa-widget {
    left: auto;
    right: 12px;
    width: min(380px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
}
.wa-widget .wa-chats button.wa-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.wa-widget .wa-row-main,
.wa-widget .wa-row-main b,
.wa-widget .wa-row-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* wa-empty-center */
.wa-widget .wa-thread.is-empty {
  flex: 1 1 auto;
  margin-top: 0;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}
.wa-widget .wa-thread.is-empty .wa-note {
  width: 100%;
  text-align: center;
}

/* wa-rowfix */
.wa-widget .wa-chats {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.wa-widget .wa-chats button.wa-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 52px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.wa-widget .wa-row-main {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.wa-widget .wa-name,
.wa-widget .wa-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-widget .wa-row-side {
  min-width: 0;
  overflow: hidden;
  justify-self: end;
}

/* wa-ticks */
.wa-widget .wa-chats button.wa-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
.wa-widget .wa-ava { flex: 0 0 42px; }
.wa-widget .wa-row-main { flex: 1 1 auto; text-align: left; }
.wa-widget .wa-row-side { flex: 0 0 52px; margin-left: auto; }
.wa-widget .wa-name,
.wa-widget .wa-preview,
.wa-widget .wa-preview > span {
  text-align: left;
  justify-content: flex-start;
}
.wa-widget .wa-preview {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.wa-widget .wa-preview > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-ticks {
  width: 16px;
  height: 11px;
  flex: none;
  fill: none;
  stroke: #98a2b3;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wa-ticks.is-read { stroke: #53bdeb; }
.wa-widget .wa-msg small {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

/* wa-chathead */
.wa-widget .wa-head .wa-back {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #101828;
  font-size: 16px;
  line-height: 1;
}
.wa-widget .wa-head .wa-back:hover { background: none; }
.wa-widget .wa-head .wa-ava,
.wa-widget .wa-ava.is-compact {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.wa-widget .wa-ava,
.wa-widget .wa-ava img {
  border-radius: 50%;
}
.wa-widget .wa-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wa-widget .wa-msgs,
.wa-widget .wa-chats {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 24, 40, .28) transparent;
}
.wa-widget .wa-msgs::-webkit-scrollbar,
.wa-widget .wa-chats::-webkit-scrollbar { width: 4px; height: 4px; }
.wa-widget .wa-msgs::-webkit-scrollbar-thumb,
.wa-widget .wa-chats::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 40, .28);
  border-radius: 99px;
}
.wa-widget .wa-thread { margin-top: auto; flex: 0 0 auto; width: 100%; }

/* wa-profile */
.wa-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wa-who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-profile {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 22px;
  overflow: auto;
  text-align: center;
}
.wa-profile h2 { margin: 10px 0 0; font-size: 18px; color: #101828; }
.wa-profile p { margin: 0; color: #667085; font-size: 13px; line-height: 1.4; }
.wa-profile .wa-about { margin-top: 10px; max-width: 280px; color: #344054; }
.wa-widget .wa-ava.is-large { width: 96px; height: 96px; min-width: 96px; font-size: 32px; }
.wa-spin {
  width: 22px;
  height: 22px;
  border: 2px solid #e4e7ec;
  border-top-color: #667085;
  border-radius: 50%;
  animation: waSpin .7s linear infinite;
}
@keyframes waSpin { to { transform: rotate(360deg); } }

/* wa-flat */
.wa-widget.is-list {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}
.wa-widget.is-list .wa-head,
.wa-widget .wa-chats,
.wa-widget .wa-chats button,
.wa-widget .wa-chats button.wa-row,
.wa-widget .wa-chats button:hover,
.wa-widget .wa-chats button.wa-row:hover {
  background: transparent;
  background-color: transparent;
  box-shadow: none;
}

/* wa-chatspin */
.wa-widget .wa-chats > .wa-spin { margin: auto; }

/* wa-drag */
.wa-widget .wa-head { cursor: grab; touch-action: none; }
.wa-widget .wa-head:active { cursor: grabbing; }
.wa-widget .wa-head button { cursor: pointer; touch-action: auto; }

/* wa-modalblur */
body:has(.export-modal) .wa-widget,
body:has(.export-modal) .social-dock,
body:has(.export-modal) .social-list,
body:has(.blank-modal) .wa-widget,
body:has(.blank-modal) .social-dock,
body:has(.blank-modal) .social-list,
body:has(.doc-modal) .wa-widget,
body:has(.doc-modal) .social-dock,
body:has(.doc-modal) .social-list,
body:has(.cash-drop-modal) .wa-widget,
body:has(.cash-drop-modal) .social-dock,
body:has(.cash-drop-modal) .social-list {
  filter: blur(6px);
  pointer-events: none;
}

/* wa-modalunder */
body:has(.export-modal) .wa-widget,
body:has(.export-modal) .social-dock,
body:has(.export-modal) .social-list,
body:has(.blank-modal) .wa-widget,
body:has(.blank-modal) .social-dock,
body:has(.blank-modal) .social-list,
body:has(.doc-modal) .wa-widget,
body:has(.doc-modal) .social-dock,
body:has(.doc-modal) .social-list,
body:has(.cash-drop-modal) .wa-widget,
body:has(.cash-drop-modal) .social-dock,
body:has(.cash-drop-modal) .social-list {
  filter: none;
  z-index: 20;
  pointer-events: none;
}

/* wa-icons */
.wa-widget { z-index: 40; }
.social-dock,
.social-list,
.social-net {
  z-index: 100;
}

/* wa-front */
.social-dock,
.social-list,
.social-net { z-index: 70; }
.wa-widget { z-index: 120; }

/* wa-badge */
.social-dock { overflow: visible; }
.wa-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #f04438;
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 750;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
/* wa-voice-note */
.wa-widget .wa-msg .wa-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  max-width: 100%;
  min-height: 36px;
}
.wa-widget .wa-voice audio { display: none; }
.wa-widget .wa-voice > button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}
.wa-widget .wa-voice > button svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.wa-widget .wa-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  min-width: 0;
  cursor: pointer;
}
.wa-widget .wa-wave i {
  flex: 1 1 2px;
  width: 2px;
  border-radius: 2px;
  background: #667781;
  opacity: .35;
  display: block;
}
.wa-widget .wa-msg.is-out .wa-wave i { background: #1d6b4f; }
.wa-widget .wa-wave i.is-on { opacity: 1; }
.wa-widget .wa-voice em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  color: #667781;
  min-width: 32px;
}
.wa-widget .wa-voice.is-wait { width: 72px; justify-content: center; }
.wa-widget .wa-msg small .wa-more {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: #667781;
  padding: 0;
  display: grid;
  place-items: center;
}
.wa-widget .wa-msg small .wa-more svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wa-widget .wa-msg small .wa-more.is-danger { color: #d92d20; }
.wa-widget .wa-editbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 10px;
  padding: 6px 2px 0;
  color: #027eb5;
  font-size: 12px;
}
.wa-widget .wa-editbar button {
  border: 0;
  background: transparent;
  color: #667781;
  padding: 0;
}
.wa-widget .wa-head > button[aria-label="Закрыть"] { margin-left: auto; }
.wa-widget .wa-head b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-widget .wa-head .wa-rename { width: 28px; font-size: 15px; }
.wa-widget .wa-name-edit {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 2px;
}
.wa-widget .wa-name-edit input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: inherit;
  touch-action: auto;
}
.wa-widget .wa-name-edit input:focus { outline: none; }
.wa-widget .wa-pic.is-soft { opacity: .72; }
/* wa-select-none */
.wa-widget .wa-head,
.wa-widget .wa-head b {
  -webkit-user-select: none;
  user-select: none;
}
.wa-widget .wa-head b {
  flex: 1 1 auto;
  min-width: 0;
}
.wa-widget .wa-head b.is-name { cursor: pointer; }
.wa-widget .wa-head .wa-rename { flex: 0 0 28px; }
.wa-widget .wa-name-edit input {
  -webkit-user-select: text;
  user-select: text;
}
.wa-widget .wa-msg {
  -webkit-user-select: none;
  user-select: none;
}
.wa-widget .wa-msg .wa-voice { position: relative; }
.wa-widget .wa-msg .wa-wave {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 28px;
}
.wa-widget .wa-msg .wa-wave i {
  display: block;
  flex: 0 0 3px;
  width: 3px;
}
.wa-widget .wa-voice audio {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.wa-widget .wa-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 8px;
  align-self: center;
  flex: 0 0 auto;
}
.wa-widget .wa-menu button {
  width: auto;
  height: auto;
  border: 0;
  background: #fff;
  color: #101828;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
}
.wa-widget .wa-menu button.is-danger { color: #d92d20; }
.wa-widget .wa-gone {
  display: block;
  color: #667781;
  font-style: italic;
}
/* wa-grab-space */
.wa-widget .wa-head b { flex: 0 1 auto; }
.wa-widget .wa-grab { flex: 1 1 auto; min-width: 28px; align-self: stretch; cursor: grab; }
.wa-widget .wa-head > button[aria-label="Закрыть"] { margin-left: 0; }
/* wa-head-act */
.wa-widget .wa-head .wa-act {
  width: auto;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: #eef2f6;
  color: #101828;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  flex: 0 0 auto;
  cursor: pointer;
}
.wa-widget .wa-head .wa-act.is-danger { background: #fee4e2; color: #d92d20; }
.wa-widget .wa-msg.is-picked { box-shadow: inset 0 0 0 1px #12b76a; }
.wa-widget .wa-voice > button { touch-action: manipulation; }

/* wa-confirm-modal */
.wa-confirm {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  background: rgba(18, 24, 34, 0.46);
}
.wa-confirm-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
}
.wa-confirm-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  color: #101828;
  text-align: left;
}
.wa-confirm-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.wa-widget .wa-confirm .wa-confirm-yes,
.wa-widget .wa-confirm .wa-confirm-no {
  width: auto;
  max-width: none;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 32px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.wa-widget .wa-confirm .wa-confirm-yes { background: #e11d48; color: #fff; }
.wa-widget .wa-confirm .wa-confirm-no {
  background: none;
  background-color: transparent;
  color: #475467;
}
.wa-widget .wa-head .wa-act.is-danger {
  background: #e11d48;
  color: #fff;
}
.wa-widget .wa-msg,
.wa-widget .wa-msg span {
  -webkit-user-select: none;
  user-select: none;
}
/* wa-audio-play */
.wa-widget .wa-msg .wa-voice audio {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.wa-widget .wa-msg .wa-voice > button { position: relative; z-index: 1; }

/* support-chat */
.support-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.support-head { position: relative; }
.support-head svg { width: 20px; height: 20px; fill: none; stroke: #344054; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.support-button {
  position: relative;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #157fbe;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(21, 127, 190, 0.35);
  cursor: pointer;
}
.support-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.support-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.support-window {
  width: min(340px, calc(100vw - 36px));
  height: min(460px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}
.support-window header {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 8px 0 12px;
  background: #38b6ff;
  color: #fff;
  cursor: grab;
  touch-action: none;
}
.support-window header button { cursor: pointer; touch-action: auto; }
.support-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  flex: none;
}
.support-ava svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.support-window header img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.support-window header div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.support-window header b { font-size: 14px; }
.support-window header span { color: rgba(255, 255, 255, 0.88); font-size: 12px; }
.support-window header button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.support-window header button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}
.support-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f4f7fb; }
.support-hello, .support-log p { margin: 0; max-width: 85%; padding: 8px 10px; border-radius: 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-hello, .support-log .is-agent { align-self: flex-start; background: #fff; color: #101828; }
.support-log .is-user { align-self: flex-end; background: #d9fdd3; color: #101828; }
.support-log .is-notice {
  align-self: center;
  max-width: 92%;
  padding: 2px 8px;
  background: transparent;
  color: #667085;
  text-align: center;
  font-size: 12.5px;
}
.support-log .is-typing { display: inline-flex; align-items: center; gap: 4px; color: #667085; }
.support-log .is-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #98a2b3;
  animation: support-dot 1s infinite ease-in-out;
}
.support-log .is-typing span:nth-child(2) { animation-delay: .15s; }
.support-log .is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes support-dot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.support-window form { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-top: 1px solid #eaecf0; }
.support-away { margin: 0; color: #b42318; font-size: 12px; line-height: 1.35; }
.support-compose { display: flex; gap: 8px; }
.support-window form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  background: #f2f4f7;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}
.support-window form button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #38b6ff;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.support-window form button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.support-window form button:disabled { opacity: 0.55; cursor: default; }
body:has(.export-modal) .support-dock,
body:has(.blank-modal) .support-dock,
body:has(.doc-modal) .support-dock,
body:has(.cash-drop-modal) .support-dock {
  z-index: 20;
  pointer-events: none;
}

/* Виджет и сети рисуются поверх страницы, а при размытии уходят под оверлей */
.wa-widget,
.social-dock,
.social-list,
.social-net {
  z-index: 1000;
}
.support-dock {
  z-index: 20000 !important;
  pointer-events: auto !important;
}
body:has(.contact-modal) .wa-widget,
body:has(.contact-modal) .social-dock,
body:has(.contact-modal) .social-list,
body:has(.contact-modal) .social-net,
body:has(.export-modal) .wa-widget,
body:has(.export-modal) .social-dock,
body:has(.export-modal) .social-list,
body:has(.export-modal) .social-net,
body:has(.blank-modal) .wa-widget,
body:has(.blank-modal) .social-dock,
body:has(.blank-modal) .social-list,
body:has(.blank-modal) .social-net,
body:has(.doc-modal) .wa-widget,
body:has(.doc-modal) .social-dock,
body:has(.doc-modal) .social-list,
body:has(.doc-modal) .social-net,
body:has(.cash-drop-modal) .wa-widget,
body:has(.cash-drop-modal) .social-dock,
body:has(.cash-drop-modal) .social-list,
body:has(.cash-drop-modal) .social-net,
body:has(.worker-modal-scrim) .wa-widget,
body:has(.worker-modal-scrim) .social-dock,
body:has(.worker-modal-scrim) .social-list,
body:has(.wh-lightbox) .wa-widget,
body:has(.wh-lightbox) .social-dock,
body:has(.wh-lightbox) .social-list,
body:has(.worker-modal-scrim) .social-net,
body:has(.wh-lightbox) .social-net {
  z-index: 30 !important;
  pointer-events: none !important;
}

/* Тот же круг и тот же размер, что у кнопок в шапке. Шаг — как между ними. */
.social-dock,
.social-net {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  box-sizing: border-box;
}
.social-dock svg,
.social-net svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 760px) {
  .social-dock,
  .social-net {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* Сети выезжают влево от иконки, а не вниз */
.social-list {
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
}
.social-net {
  transform: translateX(18px) scale(.72);
}
.social-list.is-open .social-net {
  transform: translateX(0) scale(1);
}
.social-list.is-open .social-net:nth-child(2) { transition-delay: .07s; }
.social-list.is-open .social-net:nth-child(3) { transition-delay: .12s; }

.client-phone {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.client-phone:hover { color: #157fbe; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 21000;
  background: transparent;
}
.contact-card {
  position: fixed;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 6px 8px;
  border-radius: 16px;
  background: #fff;
  color: #101828;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}
.contact-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 4px 4px 2px 10px;
}
.contact-card header strong { font-size: 13px; font-weight: 650; color: #101828; }
.contact-card header button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.contact-card a {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  color: #101828;
  text-decoration: none;
}
.contact-card a:hover { background: #f2f4f7; color: #101828; }
.contact-card a i {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.contact-card a i svg { width: 16px; height: 16px; fill: #fff; }
.contact-card a i.is-phone { background: #3a3a3c; }
.contact-card a i.is-viber { background: #7360f2; }
.contact-card a i.is-wa { background: #25d366; }
.contact-card a i.is-tg { background: #2aa1df; }
.contact-card a span { display: flex; flex-direction: column; gap: 1px; font-size: 15px; line-height: 1.2; }
.contact-card a small { color: #8e8e93; font-size: 12px; }

.orders-page .orders-table tbody td,
.clients-page .clients-table tbody td,
.wh-board .wh-main .wh-table tbody td {
  border-bottom: 1px solid #e4e7ec;
}
.orders-page .orders-table tbody tr:last-child td,
.clients-page .clients-table tbody tr:last-child td,
.wh-board .wh-main .wh-table tbody tr:last-child td {
  border-bottom: 0;
}

.clients-page .clients-table tbody tr:hover,
.orders-page .orders-table tbody tr:hover,
.wh-board .wh-main .wh-table tbody tr:hover,
.wh-cat:hover,
.pay-list li:hover {
  background: #f2f4f7;
}

html:has(.funnel-page),
body:has(.funnel-page) {
  overflow: hidden;
  height: 100%;
}
.desk:has(.funnel-page) {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding-bottom: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.desk:has(.funnel-page) > .section-reload {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.funnel-page {
  position: relative;
  flex: 1 1 auto;
  gap: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 10px 30px rgba(28, 45, 74, 0.05);
  overflow: hidden;
  box-sizing: border-box;
}
.funnel-hbar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 18px 16px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 22px 22px 0 0;
}
.funnel-hbar-line {
  height: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}
.funnel-hbar-line::-webkit-scrollbar { height: 6px; width: 0; }
.funnel-hbar-line::-webkit-scrollbar-track { background: transparent; }
.funnel-hbar-line::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 99px;
}
.funnel-hbar-line > div { height: 1px; }
.funnel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  margin: 0;
  overflow: auto;
  transform: none;
  scroll-behavior: auto;
  background: #fff;
  scrollbar-width: none;
}
.funnel-scroll::-webkit-scrollbar { width: 0; height: 0; }
.funnel-board {
  flex: none;
  overflow: visible;
  min-height: 100%;
  width: max-content;
  min-width: 100%;
  align-items: flex-start;
  transform: none;
  margin: 0;
  padding: 52px 16px 48px 16px;
  box-sizing: border-box;
}
.funnel-num {
  background: transparent;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  line-height: inherit;
}
.funnel-board > .funnel-col {
  transform: none;
}
.funnel-card-line,
.funnel-card-line span {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.35;
  color: #344054;
}
.funnel-card { overflow: hidden; }
.funnel-card::before {
  top: 0;
  bottom: 0;
  border-radius: 0;
}
.wa-widget { display: flex; flex-direction: column; }
.wa-widget .wa-chats,
.wa-widget .wa-body,
.wa-widget .wa-qr,
.wa-widget .wa-profile { flex: 1 1 auto; min-height: 0; overflow: auto; }
.wa-widget .wa-mail { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.wa-pic { cursor: pointer; }
.label-sheet .label-name { font-size: var(--ln, 8pt) !important; -webkit-line-clamp: 2; }
.label-sheet .label-price { font-size: var(--lp, 10pt) !important; }
.label-sheet .label-sku { font-size: var(--ls, 6.5pt) !important; }
.label-sheet .label-site { font-size: var(--site, 5pt) !important; }
.label-sheet .label-barcode { height: var(--bar, 12mm) !important; flex: 1 1 auto; min-height: 0; max-height: var(--bar, 12mm); }
.orders-edit,
.orders-edit:hover,
.orders-edit:focus,
.orders-edit:active {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.task-view > header.client-view-head .client-hist-btn { color: #344054; }
.task-view > header.client-view-head .client-hist-btn.is-on { color: #38b6ff; }
.task-view > header.client-view-head .client-hist-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.export-dialog.task-view {
  display: flex;
  flex-direction: column;
  height: auto;
  box-sizing: border-box;
}
.export-dialog.task-view > dl {
  flex: 0 0 auto;
  align-content: start;
  gap: 0;
}
.export-dialog.task-view > dl div {
  padding: 6px 0;
}
.task-create > header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
}
.task-create > header strong {
  display: block !important;
  margin: 0 auto 0 0 !important;
  text-align: left !important;
  color: #101828 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
.task-create > header > button[aria-label="Закрыть"] {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.client-view-body.is-hist > p,
.client-view-body.is-hist > dl { visibility: hidden; }
.client-view-body .client-story { display: none; }
.client-view-body.is-hist .client-story {
  display: block;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  text-align: left;
}
.client-story li { display: grid; grid-template-columns: max-content minmax(0, 1fr); justify-content: start; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef2f6; font-size: 13px; color: #344054; text-align: left; }
.client-story time { color: #98a2b3; font-size: 12px; white-space: nowrap; }
.doc-label-stage .label-sheet {
  zoom: min(1.15, calc(168 / (var(--lw, 58) * 3.78)), calc(112 / (var(--lh, 40) * 3.78))) !important;
}
.wa-widget .wa-msg:has(.wa-hold) { width: min(238px, 78%); }
.wa-widget .wa-msg .wa-hold {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  height: 148px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e4ebf2;
  white-space: normal;
  font-size: 0;
  line-height: 0;
  color: inherit;
}
.wa-widget .wa-msg .wa-hold .wa-hold-shine {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, .7) 46%, transparent 72%);
  transform: translateX(-120%);
  animation: wa-hold 1.35s ease-in-out infinite;
  white-space: normal;
  font-size: 0;
  line-height: 0;
}
.wa-widget .wa-msg .wa-hold svg {
  position: relative;
  width: 34px;
  height: 34px;
  fill: #98a2b3;
}
.wa-widget .wa-msg .wa-hold.is-video svg { width: 28px; height: 28px; }
@keyframes wa-hold { to { transform: translateX(120%); } }
.wa-touch-dock {
  flex: none;
  max-height: 46%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid #eef2f6;
  background: #fff;
}
.wa-touch-buy { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.wa-touch-buy button {
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  color: #344054;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wa-touch-buy button.is-on { background: #101828; color: #fff; }
.wa-touch-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 6px 8px; border-radius: 8px; background: #f8fafc; min-width: 0; box-sizing: border-box; overflow: hidden; }
.wa-touch-step b { font-size: 11px; color: #667085; font-weight: 650; align-self: center; }
.wa-touch-step textarea { grid-column: 1 / -1; width: 100%; min-height: 36px; height: 36px; resize: none; border: 0; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; color: #101828; background: #fff; box-sizing: border-box; }
.wa-touch-line { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; overflow: hidden; }
.wa-touch-line label { display: flex; align-items: center; gap: 4px; color: #667085; font-size: 11px; white-space: nowrap; min-width: 0; }
.wa-touch-line label:first-child { flex: none; }
.wa-touch-step select { height: 24px; max-width: 118px; border: 0; border-radius: 6px; background: #fff; padding: 0 4px; font: inherit; font-size: 11px; color: #101828; }
.wa-touch-stop { flex: 1 1 auto; color: #344054 !important; min-width: 0; white-space: normal; line-height: 1.15; }
.wa-touch-stop input { flex: none; }
.wa-touch-del { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: #101828; font-size: 16px; line-height: 1; cursor: pointer; }
.wa-touch-add { align-self: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #101828; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.wa-touch-go { height: 34px; border: 0; border-radius: 10px; background: #101828; color: #fff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.profile-secret { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.profile-secret > span { color: #667085; font-size: 12px; font-weight: 450; line-height: 1.35; }
.profile-secret-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile-secret-row input { flex: 1; height: 36px; border: 0; border-radius: 8px; background: #f2f4f7; padding: 0 10px; font: inherit; font-size: 14px; color: #101828; }
.profile-secret-row > button:not(.secret-eye) { height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: #101828; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.profile-secret-row > button:disabled { opacity: .5; cursor: default; }
.profile-secret-row b { min-width: 0; font-size: 16px; font-weight: 650; color: #101828; letter-spacing: .02em; }
.profile-secret-row b.is-pix { filter: url(#secret-pixel); user-select: none; }
.secret-eye { width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: #f2f4f7; color: #101828; cursor: pointer; }
.secret-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-pin-cells { display: flex; gap: 8px; }
.profile-pin-cell { position: relative; width: 42px; height: 46px; flex: none; }
.profile-pin-mark {
  display: block;
  width: 42px;
  height: 46px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #101828 !important;
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-align: center;
  line-height: 46px !important;
}
.profile-pin-cell input {
  position: absolute;
  inset: 0;
  width: 42px;
  height: 46px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: #101828;
  text-align: center;
  font-size: 22px;
}
.profile-pin-cells b.is-pix { filter: url(#secret-pixel); user-select: none; }
.auth-pin input { width: 100%; padding-right: 42px; box-sizing: border-box; }
.auth-pin .secret-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.rights-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #667085;
  background: none;
  box-shadow: none;
}
.profile-secret small.is-ok { color: #067647; }
.wa-touch-go:disabled { opacity: .55; cursor: default; }
.wa-touch-dock small { color: #667085; font-size: 12px; text-align: center; }
.wa-tabs {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px 8px;
  border: 0;
  background: transparent;
}
.wa-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 4px 6px;
  border-radius: 0;
  cursor: pointer;
}
.wa-tabs button.is-on {
  background: transparent;
  color: #101828;
  border-bottom-color: #101828;
}
.wa-mail { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.wa-mail-pick { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 12px; }
.wa-mail p { margin: 0; color: #667085; font-size: 13px; line-height: 1.4; }
.wa-mail-sources { display: flex; justify-content: center; gap: 6px; }
.wa-mail-sources button {
  border: 0;
  background: #101828;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.wa-mail-sources button.is-on { background: #101828; color: #fff; }
.wa-mail-sources button:not(.is-on) { opacity: .45; }
.wa-mail-list { display: flex; flex-direction: column; gap: 2px; max-height: none; overflow: visible; flex: 1; }
.wa-mail-wait { flex: 1; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.wa-mail-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 0 8px; align-items: center; padding: 6px 2px; font-size: 13px; color: #101828; }
.wa-mail-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-mail-list small { grid-column: auto; color: #98a2b3; font-size: 12px; text-align: right; white-space: nowrap; }
.wa-nums { display: flex; flex-direction: column; gap: 8px; }
.wa-num-add { display: flex; gap: 6px; }
.wa-num-add input {
  flex: 1;
  min-width: 0;
  height: 30px;
  box-sizing: border-box;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  color: #101828;
}
.wa-num-add button {
  flex: none;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.wa-num-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wa-num-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 4px 0 12px;
  border-radius: 10px;
  background: #f2f4f7;
  color: #101828;
  font-size: 14px;
}
.wa-num-clear {
  align-self: center;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.wa-num-list button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #101828;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}
.wa-mail-dock {
  flex: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 12px;
  background: #fff;
}
.wa-mail-dock textarea {
  width: 100%;
  min-height: 72px;
  max-height: 120px;
  box-sizing: border-box;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  resize: none;
}
.wa-mail-dock button {
  align-self: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.wa-mail-dock button:disabled { opacity: .55; cursor: default; }
.wa-mail small { color: #667085; font-size: 12px; text-align: center; }
.avatar-stack { gap: 8px; }

button.wh-drop-go {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.orders-edit,
.orders-edit:hover {
  background: transparent;
  box-shadow: none;
}

.clients-page .clients-table tbody tr:hover td,
.orders-page .orders-table tbody tr:hover td,
.wh-board .wh-main .wh-table tbody tr:hover td {
  background: #f2f4f7;
}

.pay-page .pay-list li {
  border-bottom: 1px solid #e4e7ec;
  border-radius: 0;
}
.pay-page .pay-list li:last-child { border-bottom: 0; }

.social-net.is-wa,
.social-net.is-tg,
.social-net.is-max { background: transparent; padding: 0; overflow: hidden; }
.social-net em { display: none; }
.social-net img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.social-net.is-wa img { transform: scale(1.28); }
.wa-brand {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
  border: 2px solid #fff;
  background: #fff;
  flex: 0 0 auto;
}
.wa-widget.is-wa .wa-brand { transform: scale(1.12); }

.wa-widget.is-wa .wa-head { background: #25d366; }
.wa-widget.is-tg .wa-head { background: #2aa1df; }
.wa-widget.is-max .wa-head { background: linear-gradient(90deg, #5b7cfa, #7a4dff); }
.wa-widget.is-wa .wa-head b,
.wa-widget.is-tg .wa-head b,
.wa-widget.is-max .wa-head b,
.wa-widget.is-wa .wa-head .wa-back,
.wa-widget.is-tg .wa-head .wa-back,
.wa-widget.is-max .wa-head .wa-back,
.wa-widget.is-wa .wa-head > button[aria-label="Закрыть"],
.wa-widget.is-tg .wa-head > button[aria-label="Закрыть"],
.wa-widget.is-max .wa-head > button[aria-label="Закрыть"] { color: #fff; }
.wa-pass { display: grid; gap: 8px; width: min(280px, 100%); }
.wa-pass p { margin: 0; color: #344054; font-size: 14px; }
.wa-pass input { height: 40px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 12px; }
.wa-pass button { height: 40px; border: 0; border-radius: 10px; background: #2aa1df; color: #fff; font-weight: 700; }
