:root {
  /* Вид как у «Финансов» (стиль rta-moscow.com, решение владельца 06.10.2026):
     белый фон, чёрный текст, розовый акцент, кнопки-таблетки, Manrope.
     Только светлая тема: встроенные части полей (календарь, флажок,
     полосы прокрутки) тоже светлые */
  color-scheme: light;
  --bg: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #F1F1F1;
  --panel-3: #F7F7F7;
  --line: #E8E8E8;
  --line-strong: #D6D6D6;
  --ink: #000000;
  --ink-2: #666666;
  --ink-3: #9A9A9A;
  --accent: #FC3A79;
  --accent-hover: #FF125F;
  --accent-soft: #FFE6EF;
  --accent-grad: linear-gradient(180deg, #FE8AAF 0%, #FE3678 100%);
  --good: #12A150;
  --good-bg: #E8F6EE;
  --bad: #E5484D;
  --bad-bg: #FDECEC;
  --warn: #D98300;
  --warn-bg: #FFF3DD;
  /* Склад: текст на цветной подложке (контраст не меньше 4,5) и насыщенные
     сигнальные полосы экранов сканирования с белым текстом */
  --good-ink: #0B6B35;
  --bad-ink: #B4232A;
  --warn-ink: #8A5300;
  --good-strong: #0E8A43;
  --bad-strong: #D2343A;
  --warn-strong: #B86E00;
  /* Полоса «сканируйте» (ждём скан) — синяя, как привыкли в цеху:
     решение владельца 27.10.2026 (ответ 15), не чёрная, как в «Финансах» */
  --wait-strong: #1D4ED8;
  --alert-strong: #C2410C;
  --return: #6D28D9;
  --return-bg: #F3EEFF;
  --radius: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --pill: 999px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  /* коды маркировки: буквы l/1/I и 0/O должны различаться */
  --mono: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  /* Старые имена — псевдонимы: на них ссылаются стили страниц */
  --panel2: var(--panel-2);
  --text: var(--ink);
  --muted: var(--ink-2);
  --violet: var(--accent);
  --violet-dim: var(--accent-hover);
  --ok: var(--good);
  --err: var(--bad);
  --info: var(--ink);
  accent-color: var(--accent);
}

/* Шрифт Manrope лежит в самой программе (static/vendor/fonts, лицензия
   SIL OFL 1.1 — OFL.txt рядом; файлы с Google Fonts). Решение владельца
   27.10.2026 (ответ 15): вид одинаковый и без интернета — раньше телефон
   без интернета показывал системный шрифт. Файл переменный: один на все
   жирности 400–800. Браузер берёт часть только для нужных букв */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/vendor/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/vendor/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/vendor/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

/* Атрибут hidden прячет всегда: раньше display:grid / display:block у
   .btngrid и label.field перебивали его, и скрытые кнопки и ползунки
   оставались на экране */
[hidden] { display: none !important; }

html, body { background: #fff; }
body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--accent-soft); }

h1 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15;
     margin: 0 0 6px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3;
     margin: 0 0 12px; color: var(--ink); }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
:where(a) { color: var(--accent); text-decoration: none; }
:where(a):hover { color: var(--accent-hover); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 36px 72px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
         padding: 22px 26px; margin-bottom: 20px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.col { flex: 1 1 320px; min-width: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
/* Цвет текста по смыслу — вместо зашитых цветов в разметке */
.text-good { color: var(--good-ink); }
.text-bad { color: var(--bad-ink); }
.text-warn { color: var(--warn-ink); }
.text-mute { color: var(--ink-3); }
.text-accent { color: var(--accent); }

/* ---------- кнопки ----------
   Голая кнопка и .btn — главное действие (розовая заливка);
   .ghost — второстепенная (белая с чёрной обводкой);
   .quiet — третьестепенная, без обводки («Убрать», «Скрыть», «Отмена»);
   .danger — опасная (красная обводка); .small / .sm — уменьшенная;
   .wide — во всю ширину. Высота задаётся отступами, а не height: у значка
   «?», плашек и счётчиков своя высота.
   :where() не добавляет веса: стиль кнопки на странице (.reg-copy,
   .counter .pm, .tabs a) перекрывает общий без !important */
:where(button, .btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; line-height: 20px; font-family: inherit; font-size: 14px;
  font-weight: 600; text-align: center; text-decoration: none; vertical-align: middle;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: var(--pill); cursor: pointer; max-width: 100%;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
:where(button, .btn):where(:hover:not(:disabled)) {
  background: var(--accent-hover); border-color: var(--accent-hover); color: #fff;
}
:where(button, .btn):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(button, .btn).primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:where(button, .btn).primary:where(:hover:not(:disabled)) {
  background: var(--accent-hover); border-color: var(--accent-hover); }
:where(button, .btn).ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
:where(button, .btn).ghost:where(:hover:not(:disabled)) {
  background: var(--ink); color: #fff; border-color: var(--ink); }
:where(button, .btn).quiet { background: transparent; color: var(--ink-2); border-color: transparent; }
:where(button, .btn).quiet:where(:hover:not(:disabled)) {
  background: var(--panel-2); color: var(--ink); border-color: transparent; }
:where(button, .btn).danger { background: #fff; color: var(--bad); border-color: var(--bad); }
:where(button, .btn).danger:where(:hover:not(:disabled)) {
  background: var(--bad); color: #fff; border-color: var(--bad); }
:where(button, .btn).small, :where(button, .btn).sm { padding: 5px 14px; font-size: 13px; }
:where(button, .btn).wide { width: 100%; }
:where(button, .btn):where(:disabled, .disabled, [aria-disabled="true"]) {
  opacity: .45; cursor: not-allowed; }
a.btn, a.btn:hover { text-decoration: none; }

/* ---------- поля ---------- */
select, input[type=text], input[type=file],
input[type=number], input[type=date], input[type=datetime-local], input[type=time],
input[type=search], input[type=password], input[type=email], input[type=tel],
input[type=url], input:not([type]), textarea {
  background: var(--panel-2); color: var(--ink); border: 2px solid transparent;
  border-radius: var(--radius-sm); padding: 9px 14px; line-height: 20px;
  font-size: 15px; font-family: inherit; max-width: 100%;
  transition: border-color .15s, background .15s;
}
/* Ширина 100% — только у списка, текстового поля и выбора файла, как
   раньше: у даты, числа и пароля ширина задана на месте */
select, input[type=text], input[type=file] { width: 100%; }
/* В ряду кнопок и фильтров список не растягивается на всю строку */
.row > select, .actions > select, .row > label > select,
button ~ select, select ~ select { width: auto; }
/* отдельным правилом: браузер без :has() отбросил бы и строку выше */
select:has(~ button), select:has(~ select) { width: auto; }
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: #fff; }
::placeholder { color: var(--ink-3); opacity: 1; }
textarea { line-height: 1.45; min-height: 96px; }
input[type=search] { border-radius: var(--pill); }
input[type=file] { padding: 7px 10px; cursor: pointer; }
input[type=file]::file-selector-button {
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 18px;
  margin-right: 10px; cursor: pointer;
  padding: 5px 14px; border-radius: var(--pill); border: 1px solid var(--ink);
  background: #fff; color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
td input, td select { padding: 5px 10px; font-size: 14px; }
label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2);
                   margin: 0 0 6px 4px; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
label.check input { width: 18px; height: 18px; }

.bar { height: 8px; background: var(--panel-2); border-radius: var(--pill); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); width: 0;
           border-radius: var(--pill); transition: width .25s; }
.bar.good > i { background: var(--good); }

/* Плашки: .pill (статус документа, WH.docStatus) и .chip — одна таблетка */
.pill, .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
               border-radius: var(--pill); font-size: 12px; font-weight: 600;
               line-height: 1.35; white-space: nowrap; background: var(--panel-2);
               color: var(--ink); border: 0; vertical-align: middle; }
.pill.ok, .chip.good { background: var(--good-bg); color: var(--good-ink); }
.pill.no, .chip.mute { background: var(--panel-2); color: var(--ink-2); }
.pill.warn, .chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.req, .chip.bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill.opt, .chip.accent { background: var(--accent-soft); color: var(--accent-hover); }
/* Фильтры-плашки (кнопки): серые, выбранная — чёрная */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
button.chip, a.chip { font-size: 13px; padding: 6px 14px; cursor: pointer; font-family: inherit;
                      text-decoration: none; }
button.chip:hover, a.chip:hover { background: var(--line); color: var(--ink); }
.chip.on, button.chip.on:hover, a.chip.on:hover { background: var(--ink); color: #fff; }
.chip b { margin-left: 2px; opacity: .6; }

/* ---------- таблицы ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
         vertical-align: top; }
th { color: var(--ink-2); font-size: 13px; font-weight: 500; padding-top: 12px; padding-bottom: 12px;
     position: sticky; top: 0; background: #fff; z-index: 1; }
tbody tr:hover td { background: var(--panel-3); }
tr.total td, tfoot td { font-weight: 700; border-top: 1.5px solid var(--ink); }
tr.done td, tr.done:hover td { background: var(--good-bg); }
tr.picked td, tr.picked:hover td { background: var(--accent-soft); }
td.kiz { font-family: var(--mono); font-size: 12px; word-break: break-all; max-width: 380px; }
.tablebox { max-height: 62vh; overflow: auto; border: 1px solid var(--line);
            border-radius: var(--radius-md); }
.tablebox tr:last-child td { border-bottom: 0; }

.log { font-size: 13px; max-height: 220px; overflow: auto; }
.log div { padding: 4px 0; border-bottom: 1px solid var(--line); }
.log .ok { color: var(--good-ink); }
.log .info { color: var(--ink-2); }
.log .warn { color: var(--warn-ink); }
.log .error { color: var(--bad-ink); }

/* ---------- телефон: экраны сканирования ---------- */
/* Сигнальные полосы — рабочий сигнал цеха, не украшение: насыщенный цвет и
   белый текст. Синий — ждём скан, жёлтый — второй шаг или внимание,
   зелёный — получилось, красный — ошибка */
.phone { padding: 0 0 env(safe-area-inset-bottom, 0px); }
.status {
  padding: 14px 16px; font-weight: 700; font-size: 17px; line-height: 1.3;
  background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 5;
}
.status.step1 { background: var(--wait-strong); }
.status.step2 { background: var(--warn-strong); }
.status.ok { background: var(--good-strong); }
.status.err { background: var(--bad-strong); }
.status .sub { display: block; font-size: 13.5px; font-weight: 500; opacity: .92; margin-top: 3px; }
/* Индикатор связи на экране сканирования WB */
#conn.ok { color: var(--good-ink); }
#conn.error { color: var(--bad-ink); font-weight: 600; }
/* Камера: квадрат во всю ширину, кадр обрезан сверху и снизу. В центре —
   прозрачное окошко рамки, куда кладут код; всё вокруг матовое. */
.videobox { position: relative; width: 100%; max-width: 520px; margin: 0 auto;
            background: #000; aspect-ratio: 1 / 1; overflow: hidden; }
.videobox video { width: 100%; height: 100%; display: block; object-fit: cover; }
.camdim { position: absolute; pointer-events: none; z-index: 1;
          background: rgba(12, 14, 20, .45);
          -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.camdim.top { top: 0; left: 0; right: 0; }
.camdim.bottom { bottom: 0; left: 0; right: 0; }
.camdim.left { left: 0; }
.camdim.right { right: 0; }
.camflash { position: absolute; inset: 0; pointer-events: none; opacity: 0;
            transition: opacity .12s; z-index: 3; }
.camflash.show { opacity: 1; }
.frame {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 3px solid rgba(255,255,255,.9); border-radius: 12px;
  pointer-events: none; z-index: 2;
}
.frame.dm { border-color: var(--warn); }
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.controls button { padding: 14px 6px; font-size: 14px; border-radius: var(--radius-sm); }
.counters { display: flex; justify-content: space-between; padding: 8px 14px;
            font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.counters b { color: var(--ink); font-size: 16px; }
.phone .panel { margin: 10px; }

details summary { cursor: pointer; color: var(--ink-2); padding: 6px 0; }
details summary:hover { color: var(--ink); }
/* «Подробнее»: свёрнутое пояснение, которое нужно не всем */
details.more { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
details.more > summary { color: var(--accent); font-weight: 600; list-style: none; padding: 2px 0;
                         display: inline-flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '↓'; font-size: 11px; }
details.more[open] > summary::after { content: '↑'; }
details.more > div, details.more > p { margin-top: 8px; line-height: 1.55; }
/* Одна строка пояснения под заголовком или блоком */
.hint-line { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
h1 + .hint-line, h2 + .hint-line { margin: -4px 0 14px; }
/* Пустое состояние: значок, заголовок, одна строка, одна кнопка */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty .big { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
              display: grid; place-items: center; font-size: 26px;
              background: var(--accent-soft); color: var(--accent); }
.empty h3 { color: var(--ink); font-size: 22px; margin: 0 0 8px; }
.empty p { max-width: 480px; margin: 0 auto 20px; }
/* Загрузка: крупный кружок по центру блока */
.loading { padding: 40px; text-align: center; color: var(--ink-3); }
.loader { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 12px;
          border: 3px solid var(--panel-2); border-top-color: var(--accent);
          animation: appspin .8s linear infinite; }

/* Плашки сборки: деньги (зелёная), «так нельзя» (красная), «обратите
   внимание» (жёлтая). Общие для экранов WB и Ozon */
.money { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--good-bg);
         color: var(--good-ink); margin: 8px 0; font-size: 15px; border: 0; }
.money.bad { background: var(--bad-bg); color: var(--bad-ink); box-shadow: inset 3px 0 0 var(--bad); }
.money.warn { background: var(--warn-bg); color: var(--warn-ink); }
.money .btn, .money button { margin-top: 4px; }
/* Скидка и доплата в сборке Ozon — тот же вид */
.discount { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--good-bg);
            color: var(--good-ink); margin: 8px 0 12px; font-size: 15px; }
.discount.surcharge { background: var(--bad-bg); color: var(--bad-ink); }
.hint { background: var(--warn-bg); color: var(--warn-ink); border: 0;
        padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; }
.hint.ok { background: var(--good-bg); color: var(--good-ink); }
.hint.bad { background: var(--bad-bg); color: var(--bad-ink); }
.hint.info { background: var(--panel-2); color: var(--ink); }
/* Подсказка «?»: значок рядом с названием, текст — в плавающем окне (WH.q) */
.q { display: inline-flex; align-items: center; justify-content: center;
     width: 17px; height: 17px; min-height: 0; margin-left: 5px; padding: 0; border-radius: 50%;
     border: 1px solid var(--ink-3); background: none; color: var(--ink-2);
     font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1;
     cursor: help; vertical-align: middle;
     flex: 0 0 auto; text-transform: none; letter-spacing: 0; }
.q:hover, .q:focus, .q.on { color: var(--ink); border-color: var(--ink); background: none; outline: none; }
#qbox { position: fixed; z-index: 90; max-width: min(360px, calc(100vw - 24px));
        background: #fff; color: var(--ink); border: 1px solid var(--line);
        border-radius: 18px; padding: 12px 14px; font-size: 13.5px; font-weight: 400;
        line-height: 1.5; text-align: left; white-space: normal; text-transform: none;
        letter-spacing: 0; box-shadow: 0 20px 50px -20px rgba(0,0,0,.25); }
#qbox b { color: var(--ink); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius-md); padding: 28px;
            text-align: center; color: var(--ink-2); background: var(--panel-3);
            transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
#qrbox { background: #fff; padding: 10px; border-radius: var(--radius-sm); display: inline-block;
         border: 1px solid var(--line); }
#qrbox img, #qrbox canvas { display: block; }

/* ---------- меню ---------- */
/* Сверху (телефон, экраны сканирования, узкое окно): сетка одинаковых
   кнопок в несколько рядов. Никакой прокрутки: ширина ячеек одна на весь
   ряд, число рядов зависит от ширины экрана. */
.mainnav { background: #fff; border-bottom: 1px solid var(--line); }
.navinner { max-width: 1180px; margin: 0 auto; padding: 8px;
            display: grid; gap: 6px;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.navinner a { color: var(--ink); text-decoration: none; height: 40px;
              display: flex; align-items: center; justify-content: center;
              padding: 0 10px; font-size: 13.5px; font-weight: 600; text-align: center;
              background: var(--panel-2); border: 0;
              border-radius: var(--pill); white-space: nowrap; overflow: hidden;
              text-overflow: ellipsis; transition: background .15s, color .15s; }
.navinner a:hover { background: var(--line); color: var(--ink); }
.navinner a.on { background: var(--ink); color: #fff; }
.navinner a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Выпадающий список группы: под кнопкой, поверх страницы */
.navcell { position: relative; }
.navcell > a { width: 100%; }
.navsub { position: absolute; top: 100%; left: 0; z-index: 60;
          min-width: 100%; width: max-content; padding: 8px; margin-top: 6px;
          display: grid; grid-template-columns: 1fr; gap: 2px;
          background: #fff; border: 1px solid var(--line);
          border-radius: var(--radius-md); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .25); }
/* невидимый мостик между кнопкой и списком — курсор не «теряется» в зазоре */
.navsub::before { content: ''; position: absolute; left: 0; right: 0;
                  top: -10px; height: 10px; }
.navsub[hidden] { display: none; }
.navinner .navsub a { min-width: 200px; height: 38px; justify-content: flex-start;
                      padding: 0 14px; background: transparent; font-weight: 500;
                      font-size: 14px; }
.navinner .navsub a:hover { background: var(--panel-2); color: var(--ink); }
.navinner .navsub a.on { background: var(--ink); color: #fff; font-weight: 600; }
.navinner.phone { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.navinner.phone a { font-size: 13px; padding: 0 6px; white-space: normal; line-height: 1.15;
                    border-radius: var(--radius-sm); }
/* Экраны сканирования: компактная полоса, одна колонка */
body.scanpage .navinner { max-width: 640px; padding: 6px; gap: 4px; }
body.scanpage .navinner a { height: 36px; }
body.scanpage .wrap { max-width: 640px; margin: 0 auto; }

/* Ноутбук (от 900 px): меню слева, как в «Финансах». Меню закреплено
   (position: fixed), узлы страницы не переносятся — камеру и окна это не
   задевает; все окна поверх (z-index от 50) закрывают и меню */
.mainnav.side { position: fixed; top: 0; left: 0; bottom: 0; width: 264px; z-index: 40;
                background: #fff; border-right: 1px solid var(--line); border-bottom: 0;
                overflow-y: auto; display: flex; flex-direction: column; }
.mainnav.side .brand { padding: 26px 24px 18px; display: flex; align-items: center; gap: 12px;
                       color: var(--ink); text-decoration: none; }
.mainnav.side .brand-mark { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
                            background: var(--accent-grad); display: grid; place-items: center;
                            color: #fff; font-weight: 800; font-size: 18px; }
.mainnav.side .brand-text { line-height: 1.15; }
.mainnav.side .brand-text b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.mainnav.side .brand-text span { font-size: 12px; color: var(--ink-3); }
.mainnav.side .sidenav { padding: 6px 12px 20px; display: flex; flex-direction: column; gap: 2px; }
.mainnav.side .group { font-size: 12px; color: var(--ink-3); padding: 16px 14px 6px; }
.mainnav.side .sidenav a { display: flex; align-items: center; gap: 10px; padding: 9px 14px;
                           border-radius: var(--pill); color: var(--ink); font-weight: 500;
                           font-size: 14.5px; text-decoration: none;
                           transition: background .15s, color .15s; }
.mainnav.side .sidenav a:hover { background: var(--panel-2); color: var(--ink); }
.mainnav.side .sidenav a.on { background: var(--ink); color: #fff; font-weight: 600; }
.mainnav.side a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.has-side { padding-left: 264px; }
/* Страница — на всю ширину экрана справа от меню (владелец, 11.11.2026: на
   большом мониторе справа оставалась пустая половина). Шире 1800 px не
   растягивается — тогда стоит по центру свободного места */
body.has-side .wrap { max-width: 1800px; margin: 0 auto; padding: 28px 36px 72px; }

/* Группа одинаковых кнопок: быстрые действия, ряды кнопок печати */
.btngrid, .dmbar { display: grid; gap: 8px;
           grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.btngrid > button, .btngrid > a.btn, .dmbar > button, .dmbar > a.btn {
  width: 100%; height: 46px; margin: 0; padding: 0 12px; font-size: 14px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) {
  .btngrid, .dmbar { grid-template-columns: repeat(2, 1fr); }
  /* На телефоне длинные подписи переносятся, а не обрезаются */
  .btngrid > button, .btngrid > a.btn, .dmbar > button, .dmbar > a.btn {
    font-size: 13.5px; padding: 0 8px; height: 52px; white-space: normal;
    line-height: 1.15; border-radius: var(--radius-sm); }
}

/* Плитки показателей (.tile на главной и в печати; .card внутри .grid и
   .cards — на экранах сборки и маркировки) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
         gap: 12px; }
.tile { background: var(--panel-2); border: 0; border-radius: var(--radius-md);
        padding: 18px 20px; }
.tile b { display: block; font-size: 30px; font-weight: 700; line-height: 1.15;
          letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile span { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.tile.good { background: var(--good-bg); }
.tile.good b { color: var(--good-ink); }
.tile.bad { background: var(--bad-bg); }
.tile.bad b { color: var(--bad-ink); }
.tile.warn { background: var(--warn-bg); }
.tile.warn b { color: var(--warn-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.grid > .card, .cards > .card { background: var(--panel-2); border: 0;
                                border-radius: var(--radius-md); padding: 14px 18px; }
.cards > .card { padding: 10px 14px; border-radius: var(--radius-sm); }
.grid > .card b, .cards > .card b { display: block; font-size: 24px; font-weight: 700;
                                    line-height: 1.2; font-variant-numeric: tabular-nums; }
.grid > .card .t, .cards > .card .t { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.grid > .card.ok, .cards > .card.ok { background: var(--good-bg); }
.grid > .card.ok b, .cards > .card.ok b { color: var(--good-ink); }
.grid > .card.warn, .cards > .card.warn { background: var(--warn-bg); }
.grid > .card.warn b, .cards > .card.warn b { color: var(--warn-ink); }
.grid > .card.bad, .cards > .card.bad { background: var(--bad-bg); }
.grid > .card.bad b, .cards > .card.bad b { color: var(--bad-ink); }

/* Вкладки-переключатель: серая таблетка, выбранный пункт чёрный.
   Дети — ссылки (.tabs a.on) или кнопки (.tabs button.on / .active) */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; max-width: 100%;
        background: var(--panel-2); border-radius: var(--radius-md); margin-bottom: 14px; }
.tabs > a, .tabs > button { display: inline-flex; align-items: center; gap: 6px;
        padding: 8px 18px; border: 0; border-radius: var(--pill); background: none;
        color: var(--ink-2); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 20px;
        text-decoration: none; cursor: pointer; }
.tabs > a:hover, .tabs > button:hover { color: var(--ink); background: none; }
.tabs > a.on, .tabs > button.on, .tabs > a.active, .tabs > button.active,
.tabs > a.on:hover, .tabs > button.on:hover { background: var(--ink); color: #fff; }
/* Ссылка на старую «Выгрузку WB» рядом с переключателем площадок «Сборки FBS»
   (ответ 14): тихая, чтобы не выглядела третьей площадкой */
.fbs-oldwb { display: inline-block; margin: 6px 0 0 14px; font-size: 13px; font-weight: 500;
             color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.fbs-oldwb:hover { color: var(--ink); }

/* Цвета состояний в таблицах сборки (стикер, срок, задание) */
.lbl-none, .st-none, .w-gray { color: var(--ink-3); }
.lbl-requested, .lbl-ready, .lbl-printing, .st-requested, .st-ready, .w-yellow { color: var(--warn-ink); }
.lbl-printed, .st-printed { color: var(--good-ink); }
.lbl-error, .st-error, .w-red { color: var(--bad-ink); font-weight: 700; }
.w-green { color: var(--good-ink); font-weight: 600; }
.w-lightgreen { color: var(--good); }
.w-orange { color: var(--alert-strong); font-weight: 600; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions button, .actions a.btn { text-decoration: none; }
/* Действия у задания в поставке (заменить код, снять код, стикер) */
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.docgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
           gap: 12px; }
.scanbig { font-size: 20px; padding: 18px; text-align: center; font-weight: 700;
           border-radius: var(--radius-md); margin-bottom: 10px; color: #fff;
           background: var(--ink); }
.scanbig.idle { background: var(--wait-strong); color: #fff; }
.scanbig.ok { background: var(--good-strong); color: #fff; }
.scanbig.err { background: var(--bad-strong); color: #fff; }
.scanbig small { display: block; font-size: 14px; font-weight: 500; opacity: .92;
                 margin-top: 4px; }

/* Всплывающие сообщения: чёрные, белый текст, слева цветная точка.
   Переносы строк в тексте видны (pre-line) */
#toastbox { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
            z-index: 100; display: flex; flex-direction: column; gap: 8px;
            width: min(520px, calc(100vw - 24px)); pointer-events: none; }
.toast { padding: 13px 18px 13px 36px; border-radius: 18px; font-size: 14px; line-height: 1.45;
         background: var(--ink); color: #fff; border: 0; position: relative;
         white-space: pre-line; overflow-wrap: anywhere; pointer-events: auto; cursor: pointer;
         box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
/* классы .error/.ok/.warn страниц (цвет текста) всплывашку не перекрашивают */
#toastbox .toast { color: #fff; font-weight: 500; }
.toast::before { content: ''; position: absolute; left: 18px; top: 20px; width: 8px; height: 8px;
                 border-radius: 50%; background: var(--accent); }
.toast.error::before { background: var(--bad); }
.toast.ok::before { background: var(--good); }
.toast.warn::before { background: var(--warn); }

.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--panel-3); }

/* ---------- переключатель режима на телефоне ---------- */
.modeswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px;
              background: var(--panel-2); border-radius: var(--radius-md); }
.modeswitch .mode { background: none; color: var(--ink-2); border: 0;
                    border-radius: 18px; padding: 12px 8px; font-size: 15px; font-weight: 700;
                    line-height: 1.25; display: block; width: 100%; }
.modeswitch .mode:hover { background: none; color: var(--ink); }
.modeswitch .mode span { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.modeswitch .mode.on, .modeswitch .mode.on:hover { background: var(--ink); color: #fff; }

@media (max-width: 820px) {
  h1 { font-size: 24px; }
  .wrap { padding: 12px; }
  .panel { padding: 16px; border-radius: var(--radius-md); margin-bottom: 12px; }
  :where(button, .btn) { padding: 13px 20px; font-size: 16px; }
  :where(button, .btn).small, :where(button, .btn).sm { padding: 9px 14px; font-size: 14px; }
  select, input[type=text], input[type=number], input[type=date], input[type=datetime-local],
  input[type=time], input[type=search], input[type=password], input[type=email],
  input[type=tel], input[type=url], input:not([type]), textarea { font-size: 16px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { padding: 12px; border-radius: 18px; }
  .tile b { font-size: 22px; }
  .tile span { font-size: 12px; }
  .scanbig { font-size: 19px; padding: 16px 12px; }
  table { font-size: 14px; }
  th, td { padding: 10px 8px; }
}

/* ---------- решение по дубликату поверх камеры ---------- */
/* Затемнение сильное: поверх камеры решение — единственное, что видно */
.decision {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, .7);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.decision[hidden] { display: none; }
.decision-card {
  width: min(460px, 100%);
  background: #fff; color: var(--ink); border: 3px solid var(--bad); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
}
.decision-title {
  font-size: 24px; font-weight: 800; color: var(--bad-ink); line-height: 1.2;
  margin-bottom: 8px;
}
.decision-msg { font-size: 16px; line-height: 1.4; margin-bottom: 16px; }
.decision-card button { padding: 16px; font-size: 18px; }
/* «Всё равно записать» — осознанное опасное действие: красная заливка */
.decision-card button.danger, .decision-card button.danger:hover {
  background: var(--bad-strong); border-color: var(--bad-strong); color: #fff; }
/* Проблема с принтером на телефоне: красная плашка во весь экран */
.faultplate { position: fixed; inset: 0; z-index: 250; background: var(--bad-strong);
              color: #fff; display: flex; flex-direction: column; align-items: center;
              justify-content: center; padding: 24px; text-align: center; }
.faultplate[hidden] { display: none; }
.faultplate-title { font-size: 30px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.faultplate-msg { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.faultplate-sub { font-size: 16px; line-height: 1.35; opacity: .95; margin-bottom: 22px; }
.faultplate button, .faultplate button:hover { max-width: 360px; width: 100%; background: #fff;
                     color: var(--bad-ink); border-color: #fff; font-size: 18px; padding: 16px; }
/* тот же экран, но это вопрос, а не ошибка */
.decision-card.decision-ask { border-color: var(--wait-strong); }
.decision-card.decision-ask .decision-title { color: var(--wait-strong); }

/* ---------- модуль печати этикеток ЧЗ (DM-Print) ---------- */
/* Раскладка окна DM-Print сохранена: широкая цветная полоса состояния,
   под ней подпись, последний скан, поле сканера, счётчики и ряды кнопок. */
.dmband {
  padding: 22px 18px; font-size: 30px; font-weight: 800; line-height: 1.15;
  text-align: center; color: #fff; background: var(--ink-2);
  border-radius: var(--radius-md) var(--radius-md) 0 0; letter-spacing: .01em;
}
.dmband.ready  { background: var(--good-strong); }
.dmband.busy   { background: var(--warn-strong); }
.dmband.alert  { background: var(--alert-strong); }
.dmband.fault  { background: var(--bad-strong); }
.dmband.idle   { background: #2B2B2B; }
.dmband.return { background: var(--return); }
.dmsub {
  padding: 11px 18px; font-size: 15px; text-align: center;
  background: var(--panel-2); color: var(--ink); border: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md); min-height: 20px;
}
.dmcode {
  background: var(--panel-2); border: 0; border-radius: var(--radius-sm);
  padding: 11px 14px; font-family: var(--mono);
  font-size: 13px; word-break: break-all; color: var(--ink); min-height: 20px;
}
.dmbar { margin-bottom: 8px; }
.dmentry { font-family: var(--mono); }

/* Режим возврата: спутать с боевой печатью невозможно. */
body.dm-return { background: var(--return-bg); }
html:has(body.dm-return) { background: var(--return-bg); }
body.dm-return .panel { border-color: var(--return); box-shadow: inset 0 0 0 1px var(--return); }

.dmmodal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.35);
           display: flex; align-items: flex-start; justify-content: center;
           padding: 24px 12px; overflow: auto; }
.dmmodal[hidden] { display: none; }
.dmmodal-card { width: min(880px, 100%); background: #fff;
                border: 0; border-radius: var(--radius); padding: 22px 26px;
                box-shadow: 0 40px 90px -30px rgba(0,0,0,.4); }
.dmmodal-head { display: flex; justify-content: space-between; align-items: center;
                gap: 12px; margin-bottom: 12px; }
.dmmodal-head h2 { margin: 0; }
.dmreport { font-size: 14px; line-height: 1.5; }
.dmreport b { color: var(--ink); }
.decision-msg.pre { white-space: pre-line; }
.dmreport .bad { color: var(--bad-ink); }
.dmreport .good { color: var(--good-ink); }

/* Очередь сканов сборки FBS */
.qhead { display:flex; align-items:center; gap:8px; padding:4px 0 8px; font-size:14px }
.qrow { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-bottom:1px solid var(--line); font-size:14px;
        animation: qin .25s ease-out }
.qrow .qicon { width:22px; text-align:center; flex:0 0 22px; font-size:15px }
.qrow .qbody { flex:1 1 auto; min-width:0; word-break:break-word }
.qrow .qbtns { flex:0 0 auto; display:flex; gap:6px; flex-wrap:wrap }
.q-done .qicon { color:var(--good) } .q-error .qicon { color:var(--bad) } .q-question .qicon { color:var(--warn) }
.q-working .qicon { color:var(--accent); animation: qspin 1s linear infinite; display:inline-block }
.qbad { color:var(--bad-ink) } .qwarn { color:var(--warn-ink) } .qwork { color:var(--accent) }
@keyframes qspin { to { transform: rotate(360deg) } }
@keyframes qin { from { opacity:0; transform: translateY(-4px) } to { opacity:1; transform:none } }
.flash-ok { animation: flashok .6s ease-out } .flash-bad { animation: flashbad .6s ease-out }
@keyframes flashok { 0% { box-shadow: inset 0 0 0 999px rgba(18,161,80,.35) } 100% { box-shadow:none } }
@keyframes flashbad { 0% { box-shadow: inset 0 0 0 999px rgba(229,72,77,.35) } 100% { box-shadow:none } }

/* Настройки: секции, подписи под полями, ровные колонки, переключатели */
.sgrid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:14px 18px }
.sfield { display:block }
.sfield > span { display:block; font-size:13px; font-weight:500; color:var(--ink-2); margin:0 0 6px 4px }
.sfield .hint { display:block; background:none; border:0; padding:0; border-radius:0;
                font-size:12px; color:var(--ink-3); margin:6px 0 0 4px }
.sfield input[type=text], .sfield input[type=number], .sfield select { width:100% }
.switch { display:flex; align-items:center; gap:12px; padding:10px 0; cursor:pointer; position:relative }
.switch input { position:absolute; opacity:0; width:0; height:0 }
.switch .knob { width:44px; height:26px; border-radius:13px; background:var(--line-strong); position:relative; flex:0 0 44px; transition: background .2s }
.switch .knob::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2) }
.switch input:checked + .knob { background:var(--accent) }
.switch input:focus-visible + .knob { outline:2px solid var(--accent); outline-offset:2px }
.switch input:checked + .knob::after { left:21px }
.switch .lbl { font-size:14px } .switch .lbl small { display:block; color:var(--ink-2); font-size:12px }
.sactions { display:flex; align-items:center; gap:12px; margin-top:16px }
.saved { color:var(--good-ink); font-size:14px; opacity:0; transition: opacity .3s } .saved.on { opacity:1 }

/* Карточка отгрузки в стиле кабинета площадки */
.kv { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:6px 24px; font-size:14px }
.kv div { display:flex; gap:8px; padding:3px 0 } .kv div > span:first-child { color:var(--ink-2); flex:0 0 150px }
.shipcard { border:0; border-radius:var(--radius-md); padding:16px 18px; margin-bottom:12px; background:var(--panel-2) }
.shipcard h3 { margin:0 0 10px; font-size:16px }
.shipcard .note { margin-top:10px; padding:10px 14px; border-radius:var(--radius-sm); background:var(--good-bg); color:var(--good-ink); font-size:14px }
.shipcard .note.warn { background:var(--warn-bg); color:var(--warn-ink) }
.countdown { font-variant-numeric: tabular-nums; font-weight:700 }
/* Кружок «идёт запрос» на кнопке (и в полосе «Честный ЗНАК» из wh.js) */
.spin { display:inline-block; width:12px; height:12px; border:2px solid currentColor;
        border-right-color:transparent; border-radius:50%; margin-right:6px;
        vertical-align:-2px; animation:appspin .8s linear infinite }
@keyframes appspin { to { transform:rotate(360deg) } }

/* ---------- очередь сканов: сигнал о неудаче ---------- */
/* Шапка очереди, когда есть сканы, которые НЕ записались: крупно и красным */
.qhead.qalarm { display:block; padding:12px 14px; margin-bottom:8px; border-radius:var(--radius-sm);
                background:var(--bad-bg); border:0; box-shadow: inset 3px 0 0 var(--bad);
                color:var(--bad-ink); font-size:15px; line-height:1.4 }
.qhead.qalarm b { color:var(--bad-ink); font-size:17px }
.qhead.qask { display:block; padding:10px 14px; margin-bottom:8px; border-radius:var(--radius-sm);
              background:var(--warn-bg); color:var(--warn-ink) }

/* ---------- телефон: удобство пальцем ---------- */
@media (max-width: 820px) {
  /* Очередь сканов: кнопки — отдельным рядом под текстом. Раньше кнопки не
     сжимались, и текст вопроса «у задания уже есть другой код» печатался по
     одной букве в столбик, а «Оставить старый» уходила за край экрана */
  .qrow { flex-wrap: wrap; }
  .qrow .qbody { flex: 1 1 calc(100% - 32px); }
  .qrow .qbtns { flex: 1 1 100%; margin: 6px 0 0 32px; }

  /* Меню: список группы («Склад ▾») открывается под всем меню во всю
     ширину экрана. Раньше он открывался вправо от кнопки шириной 214 px и
     на узком телефоне уезжал за правый край */
  .navinner { position: relative; }
  .navcell { position: static; }
  .navsub { left: 8px; right: 8px; top: 100%; width: auto; min-width: 0; margin-top: 2px; }
  .navinner .navsub a { min-width: 0; white-space: normal; height: 44px; }

  /* Значок подсказки «?» — под палец, а не 17 px */
  .q { width: 28px; height: 28px; font-size: 15px; }

  /* Действия у задания в поставке: те же кнопки, что на ноутбуке, и не
     впритык друг к другу */
  .acts .btn { padding: 10px 14px; font-size: 14px; min-height: 44px; }
  .tabs > a, .tabs > button { padding: 8px 14px; }
  .toast { font-size: 15px; }
}

/* iPhone: нижняя полоса-индикатор не закрывает всплывающие сообщения,
   кнопки внизу страницы и нижние кнопки окон */
#toastbox { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.wrap { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
/* У экранов сканирования свой отступ прямо в разметке (style="padding:10px")
   — он отменял нижний отступ под полосу iPhone */
.wrap[style*="padding"] { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
body.scanpage .wrap { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.decision, .faultplate, .dmmodal { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 820px) {
  .wrap { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* Плашка «подряд не записалось несколько сканов» поверх экрана телефона */
.qplate { position: fixed; inset: 0; z-index: 260; background: var(--bad-strong);
          color: #fff; display: flex; flex-direction: column; align-items: center;
          justify-content: center; padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
          text-align: center; }
.qplate[hidden] { display: none; }
.qplate-title { font-size: 28px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.qplate-msg { font-size: 17px; line-height: 1.4; margin-bottom: 20px; max-width: 460px; }
.qplate-msg b { color: #fff; }
.qplate button, .qplate button:hover { max-width: 360px; width: 100%; background: #fff; color: var(--bad-ink);
                 border-color: #fff; font-size: 18px; padding: 16px; }

/* ---------- учётная запись (склад на сервере, 13.11.2026) ---------- */
/* Низ меню слева: кто вошёл, роль и рабочее место, смена пароля, QR, выход */
.mainnav.side .navuser { margin-top: auto; padding: 10px 12px 22px; border-top: 1px solid var(--line); }
.mainnav.side .navuser .sidenav { padding: 4px 0 0; }
.mainnav.side .navuser .sidenav a { font-size: 14px; padding: 7px 14px; }
.navuser-who { padding: 8px 14px 2px; line-height: 1.25; }
.navuser-who b { display: block; font-size: 14.5px; font-weight: 700; }
.navuser-who span { font-size: 12px; color: var(--ink-3); }
.navuser-role { display: block; font-size: 12px; color: var(--ink-3); padding: 4px 14px 6px; }
/* Строка состояния рабочего места: агент печати на связи (шаг 2 проекта) */
.navstation { display: block; font-size: 12px; line-height: 1.4; padding: 6px 14px 2px; color: var(--ink-3); }
.navstation .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px;
                   background: var(--ink-3); vertical-align: 1px; }
.navstation.ok .dot { background: var(--good-strong); }
.navstation.bad { color: var(--bad-ink); }
.navstation.bad .dot { background: var(--bad); }
.navstation.warn { color: var(--warn-ink); }
.navstation.warn .dot { background: var(--warn); }
.navstation a { color: inherit; text-decoration: underline; padding: 0; display: inline; }
.navsub .navstation { padding: 4px 14px 6px; }
/* Окно «Принтеры рабочего места» */
.dmmodal-card.prncard { width: min(720px, 100%); }
.prnpart { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; }
.prnpart h3 { margin: 0 0 8px; font-size: 15px; }
.prnrow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.prnrow label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.prnrow select { min-width: 220px; max-width: 100%; }
.prnrow input { width: 96px; }
.prnlist { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.prnlist li { padding: 2px 0; }
/* Окно QR для телефона */
.dmmodal-card.qrcard { width: min(440px, 100%); }
.qrbig { display: flex; justify-content: center; align-items: center; min-height: 220px;
         background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
         padding: 12px; margin: 6px 0 10px; }
.qrbig img { display: block; max-width: 100%; height: auto; }
/* Страницы входа: одна карточка по центру */
.authwrap { max-width: 440px; margin: 0 auto; padding: 48px 20px 72px; }
.authwrap .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.authwrap .brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-grad);
                        display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.authwrap .brandline b { display: block; font-size: 20px; letter-spacing: -.02em; }
.authwrap .brandline span { font-size: 13px; color: var(--ink-3); }
.authwrap button.wide { width: 100%; height: 48px; font-size: 16px; }
/* Галочки прав роли */
.permlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 18px; }
.permlist label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.permlist label input { margin-top: 3px; }
.permlist label span b { display: block; font-weight: 600; font-size: 14px; }
.permlist label span small { color: var(--ink-2); font-size: 12.5px; }
