/* tokens.css */
/* =====================================================================
   Pakovia 2.0 — токены интерфейса (единый стандарт, 25.11.2026)
   Компактные размеры — только у мобильной версии (pointer: coarse);
   на компьютере (pointer: fine) — размеры свода от 19.11, уже в коде.
   Единственный источник чисел и цветов. В CSS компонентов —
   только var(--…); исключения: 0, 1px (линии), 100%.
   Вид «как в CORD» меняет только цвета и шрифт: :root[data-look="cord"].
   Тёмная тема: [data-theme="dark"]. Режим «В пути»: [data-drive="on"].
   ===================================================================== */
/* Pakovia 2.0: copied from «Pakovia 2.0 — единый стандарт интерфейса» (docs/UI-RULES.md; owner, 25.11.2026 11:30: «построй
   на их основе мобильный веб-интерфейс системы»). Loaded first, before every other stylesheet. What this application adds
   is marked «Pakovia 2.0»: the Manrope file is named «Pakovia Manrope», the base rules sit in the lowest layer, and the
   old names keep the values a computer had (a computer looks exactly as before: owner, 25.11.2026 — compact sizes only
   on the phone). */

/* ---------- Цвет · Pakovia, светлая ---------- */
:root, [data-theme="light"] {
  --bg: #f2f4f7;            /* фон страницы */
  --surface: #ffffff;       /* карточки, листы, окна, меню, поля ввода */
  --surface-2: #e9edf3;     /* наведение, выбранный пункт меню, шапка таблицы */
  --line: #d6dde7;          /* разделители, рамки карточек */
  --line-strong: #7d8ba0;   /* рамки полей, галочек, обычных кнопок (3,5:1 на surface) */
  --ink: #13294a;           /* основной текст */
  --ink-2: #4a5c76;         /* подписи, описания, подсказки */
  --ink-3: #5f6e85;         /* «необязательно», плейсхолдер (5,2:1 на surface); не на surface-2 */
  --primary: #13294a;       /* главная кнопка, выбранный чип/сегмент, отмеченная галочка */
  --on-primary: #ffffff;
  --accent-bg: #f6d365;     /* «создать»: «+», «Внести», «Новый заказ» */
  --accent-ink: #13294a;
  --accent-line: #13294a;   /* обводка 2px на accent */
  --wing: #e8952f;          /* полосы, шаги, точка «внимание», фокус. Не для текста */
  --ok: #1d7348;   --ok-bg: #e1f2e8;
  --warn: #8a5300; --warn-bg: #fbebcc;
  --bad: #ae3527;  --bad-bg: #fadfda;
  --info: #24589c; --info-bg: #e2ebf8;
  --scrim: rgba(11, 20, 34, 0.42);
  --focus-ring: 0 0 0 2px var(--wing), 0 0 0 3px var(--ink);
  --shadow-card: 0 1px 2px rgba(19, 41, 74, 0.06), 0 8px 24px rgba(19, 41, 74, 0.07);
  --shadow-float: 0 4px 16px rgba(19, 41, 74, 0.14);
  --shadow-overlay: 0 12px 32px rgba(11, 20, 34, 0.18);
}

/* ---------- Цвет · Pakovia, тёмная ---------- */
[data-theme="dark"] {
  --bg: #0b1422;
  --surface: #132037;
  --surface-2: #1a2a45;
  --line: #253859;
  --line-strong: #5a728e;   /* 3,3:1 на surface */
  --ink: #e8eef7;
  --ink-2: #a9b7cc;
  --ink-3: #7e8fa8;
  --primary: #f6d365;
  --on-primary: #13294a;
  --accent-bg: #f6d365;
  --accent-ink: #13294a;
  --accent-line: #13294a;
  --wing: #f0a647;
  --ok: #74d6a2;   --ok-bg: #15392a;
  --warn: #f4c064; --warn-bg: #3b2c12;
  --bad: #ff8e7c;  --bad-bg: #43201c;
  --info: #93bcf3; --info-bg: #172e4e;
  --scrim: rgba(0, 0, 0, 0.6);
  --focus-ring: 0 0 0 2px var(--wing);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* ---------- Вид «как в CORD»: только цвета и шрифт ---------- */
:root[data-look="cord"] {
  --bg: #edf0f6;
  --surface-2: #f1f3f8;
  --primary: #0969b8;
  --on-primary: #ffffff;
  --accent-bg: linear-gradient(90deg, #2cc8e8, #1a86e0); /* было до #0873d8 — 4,0:1 с тёмным текстом */
  --accent-ink: #06111c;
  --accent-line: transparent;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-look="cord"][data-theme="dark"],
:root[data-look="cord"] [data-theme="dark"] {
  --bg: #0c1420;
  --surface-2: #223248;
  --primary: #6ec1f5;
  --on-primary: #06111c;
}

/* ---------- Шрифты ---------- */
:root {
  --font-display: "Nunito", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- Отступы: шаг 4px, семь ступеней ---------- */
:root {
  --space-1: 4px;   /* одно целое: подпись→поле, поле→подсказка, название→описание */
  --space-2: 8px;   /* связанные: кнопки в ряду, чипы, заголовок группы→первое поле, плитка↔плитка */
  --space-3: 12px;  /* соседи: поле↔поле, карточка↔карточка, галочка↔текст, поле внутри по бокам */
  --space-4: 16px;  /* отступ внутри контейнера, поля страницы на телефоне, подгруппа↔подгруппа */
  --space-5: 24px;  /* группа↔группа, блок↔блок, поля страницы от 900px */
  --space-6: 32px;  /* раздел↔раздел на компьютере, сдвиг зависимого варианта */
  --space-7: 48px;  /* пустой список, экран входа */
  /* смысловые отступы формы */
  --stack-label: var(--space-1);    /* подпись → поле, поле → подсказка */
  --stack-field: var(--space-3);    /* поле ↔ поле */
  --stack-group: var(--space-5);    /* группа ↔ группа */
  --stack-section: var(--space-6);  /* раздел ↔ раздел */
  --pad-box: var(--space-4);        /* внутри карточки, блока, листа, окна, панели */
  --pad-page: var(--space-4);       /* поля страницы */
}
@media (min-width: 900px) { :root { --pad-page: var(--space-5); } }
/* Компьютер (мышь) — отступы как в коде с 19.11: компактные только у мобильной версии */
@media (pointer: fine) {
  :root {
    --stack-label: var(--space-2);  /* 8 */
    --stack-field: var(--space-4);  /* 16 */
    --stack-group: var(--space-6);  /* 32 */
    --stack-section: var(--space-6);
  }
}
@media (pointer: fine) and (min-width: 900px) { :root { --pad-box: var(--space-5); } }

/* ---------- Размеры: палец (мобильная версия, компактно) / мышь (как в коде) ---------- */
:root {
  --hit: 44px;           /* наименьшая зона нажатия */
  --control-h: 44px;     /* поле, селект, поиск, обычная кнопка, сегменты */
  --btn-main-h: 48px;    /* главная кнопка в панели действия и внизу листа */
  --control-h-sm: 32px;  /* малая кнопка в карточке (зона нажатия 44) */
  --option-h: 44px;      /* строка с галочкой/радио/тумблером, пункт меню */
  --row-h: 56px;         /* строка списка в две строки текста */
  --row-h-1: 44px;       /* строка в одну строку: «ключ — значение», пункт «Ещё» */
  --icon-btn: 44px;      /* кнопка-иконка */
  --chip-h: 32px;        /* чип выбора и фильтра (зона нажатия 44); между чипами 8px */
  --check: 20px;
  --icon: 20px;
  --icon-nav: 24px;
  --topbar-h: 48px;
  --tabbar-h: 56px;      /* без выреза: + env(safe-area-inset-bottom) */
  --actionbar-h: 64px;   /* без выреза */
  --fab: 48px;           /* круглая «+» внутри нижней панели */
  --avatar: 32px;
  --tap-drive: 76px;     /* режим «В пути» (Android for Cars: 76dp) */
  --rail: 240px;
  --rail-mini: 68px;
  --panel-w: clamp(560px, 46vw, 940px);
  --content-max: 1180px;
  --form-max: 640px;
  --sheet-max: 640px;
  --confirm-max: 440px;
  --sheet-h: 92dvh;      /* лист карточки на телефоне */
}
@media (pointer: fine) {
  :root {
    --hit: 24px; --control-h: 40px; --btn-main-h: 40px; --control-h-sm: 32px;
    --option-h: 36px; --row-h: 44px; --row-h-1: 40px; --icon-btn: 40px; --chip-h: 32px;
    --topbar-h: 56px;  /* галочка 20, иконки 20 / 24, аватар 32 — как у пальца */
    --fab: 60px;       /* Pakovia 2.0: у мыши «+» в панели нет; место под круглой «ИИ» — как было */
  }
}
@media (min-width: 1100px) { :root { --content-max: 1500px; } }
@media (min-width: 1700px) { :root { --panel-w: min(52vw, 1000px); } }

/* ---------- Радиусы ---------- */
:root {
  --r-xs: 6px;    /* галочка, чип серийного номера */
  --r-sm: 8px;    /* пункт меню, маленькая кнопка, подсказка */
  --r-md: 12px;   /* поле, селект, кнопка, сегменты, сообщение, тост, меню */
  --r-lg: 16px;   /* карточка, лист, окно, плитка */
  --r-full: 999px;/* чип, плашка, аватар, переключатель, «+» */
}

/* ---------- Текст: не больше шести размеров на устройстве ----------
   палец: 24 · 20 · 16 · 15 · 13 · 12     мышь (как в коде с 19.11): 28 · 20 · 16 · 14 · 12 */
:root {
  --fs-number: 24px; --fs-title: 20px; --fs-bar: 16px; --fs-group: 16px;
  --fs-body: 15px;   --fs-input: 16px; --fs-label: 13px; --fs-small: 13px; --fs-caption: 12px;
  --lh-number: 1.25; --lh-body: 1.4; --lh-input: 1.35; --lh-small: 1.35;
}
@media (pointer: fine) {
  :root {
    --fs-number: 28px; --fs-bar: 20px; --fs-body: 14px; --fs-input: 14px; --fs-label: 14px; --fs-small: 12px;
    --lh-number: 1.2; --lh-body: 1.5; --lh-input: 1.5; --lh-small: 1.4;
  }
}
:root {
  --text-number:  800 var(--fs-number)/var(--lh-number) var(--font-display);
  --text-title:   800 var(--fs-title)/1.3 var(--font-display);
  --text-bar:     800 var(--fs-bar)/1.35 var(--font-display);
  --text-group:   800 var(--fs-group)/1.35 var(--font-display);
  --text-body:    400 var(--fs-body)/var(--lh-body) var(--font-body);
  --text-strong:  600 var(--fs-body)/var(--lh-body) var(--font-body);
  --text-input:   400 var(--fs-input)/var(--lh-input) var(--font-body);
  --text-label:   600 var(--fs-label)/var(--lh-small) var(--font-body);
  --text-small:   400 var(--fs-small)/var(--lh-small) var(--font-body);
  --text-caption: 600 var(--fs-caption)/var(--lh-small) var(--font-body);
}

/* ---------- Режим «В пути» ---------- */
[data-drive="on"] {
  --control-h: 76px; --btn-main-h: 76px; --option-h: 76px; --row-h: 76px; --row-h-1: 76px;
  --icon-btn: 76px; --hit: 76px;
  --icon: 32px;
  --fs-body: 20px; --fs-input: 20px; --fs-label: 20px; --fs-small: 20px;
  --fs-number: 28px; --fs-bar: 24px;
}

/* ---------- Время тоста (читает программа) ---------- */
:root { --toast-ms: 4000; --toast-undo-ms: 6000; }
[data-drive="on"] { --toast-ms: 10000; --toast-undo-ms: 10000; }

/* ---------- Слои ---------- */
:root {
  --z-top: 20; --z-nav: 30; --z-panel: 40; --z-sheet: 50;
  --z-gate: 60; --z-toast: 70; --z-confirm: 80;
}

/* ---------- Движение ---------- */
:root { --dur-sheet: 0.2s; --dur-scrim: 0.15s; --dur-confirm: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  :root { --dur-sheet: 0s; --dur-scrim: 0s; --dur-confirm: 0s; }
}

/* ---------- Границы ширины (в @media числа пишутся как есть) ----------
   700px  — лист → окно по центру; парные поля в строку
   900px  — меню слева вместо нижней панели; поля страницы 24px; плитки в 4 ряда
   1000px — две колонки на «Обзоре»
   1100px — меню по группам, таблицы, панель карточки справа, Ctrl+K
   1700px — панель карточки шире
   Размеры элементов зависят не от ширины, а от pointer: coarse / fine.
   Pakovia 2.0: нижняя панель телефона пока стоит до 800px, как раньше (docs/UI-INTEGRATION.md). */

/* ---------- Обязательные базовые правила ---------- */
/* Pakovia 2.0: the base rules are the lowest layer — a rule of a screen always wins over them, so «border-radius: inherit»
   works only where an element has no radius of its own (a field keeps its corners when focused). The focus ring for the
   whole application is set in ui-foundation.css. */
@layer pakovia-base {
input, select, textarea { font: var(--text-input); }
button, a, [role="button"], label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus-ring); border-radius: inherit; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font: var(--text-group); color: var(--ink); }
.tabular, td.num, .sum { font-variant-numeric: tabular-nums; }
}

/* ---------- Старые имена Pakovia 1.0 → новые (для перевода кода по частям) ---------- */
:root {
  --gap-4: var(--space-1);  --gap-6: var(--space-2);  --gap-8: var(--space-2);
  --gap-10: var(--space-3); --gap-12: var(--space-3); --gap-14: var(--space-4);
  --gap-16: var(--space-4); --gap-18: var(--space-4); --gap-22: var(--space-6);
  --gap-28: var(--space-5);
  --r: var(--r-lg); --r-s: var(--r-md); --r-field: var(--r-md); --r-block: var(--r-md);
  --r-dialog: var(--r-lg); --r-sheet: var(--r-lg); --r-pill: var(--r-full);
  --tap-confirm: var(--btn-main-h);
  --fs-section: var(--fs-title); --text-section: var(--text-title);
  --shadow: var(--shadow-card); --shadow-fab: var(--shadow-float); --shadow-panel: var(--shadow-overlay);
  --sun: #f6d365; --mark-line: #13294a;
}
/* Pakovia 2.0: names of the rulebook of 19.11 that screens of this application already use, with the values they had — a
   computer stays as it was. «tap-min» is the size of a button that is pressed with a finger: 44 on a phone. */
:root {
  --tap-min: var(--icon-btn);
  --fs-page: 24px;
  --text-page: 800 var(--fs-page)/1.2 var(--font-display);
}
@media (pointer: fine) { :root { --fs-page: 28px; } }

/* ---------- Pakovia 2.0: the Manrope file of this application ---------- */
:root[data-look="cord"] {
  --font-display: "Pakovia Manrope", "Manrope", system-ui, sans-serif;
  --font-body: "Pakovia Manrope", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Pakovia 2.0 · телефон по атласу «A — Светлый компактный» ----------
   Owner, 02.12.2026 12:26: «Произведи полное переоформление мобильного интерфейса согласно этому PDF-файлу… интерфейс
   должен стать удобнее и понятнее на мобильной версии, но при этом не потерять текущую функциональность». Only the phone
   (up to 800px, a signed-in page: body.mobile-app-ready); a computer keeps every value above. Atlas p.2: accent #1765D8,
   text #172033, secondary #667085, background #F5F6F8, divider #E2E6EC, field border #7B8798; title 24, body 16–17,
   secondary 13; the system font of the phone (SF Pro on an iPhone). The shorthands are set again here: a shorthand is
   resolved where it is declared, so new sizes reach it only when it is declared anew. */
@media (max-width: 800px) {
  html:root body.mobile-app-ready {
    --bg: #f5f6f8;  --surface: #ffffff;  --surface-2: #eef1f5;  --line: #e2e6ec;  --line-strong: #7b8798;
    --ink: #172033; --ink-2: #667085;    --ink-3: #667085;
    --primary: #1765d8; --on-primary: #ffffff;
    --accent-bg: #1765d8; --accent-ink: #ffffff; --accent-line: transparent;
    --ok: #137a3a;   --ok-bg: #e7f5ec;
    --warn: #8a5200; --warn-bg: #fdf0d5;
    --bad: #c22a20;  --bad-bg: #fdecea;
    --info: #1765d8; --info-bg: #e8f0fc;
    --selected-bg: #e8f0fc;      /* выбранный чип, вкладка «Ещё» внизу */
    --track: #e9ecf1;            /* дорожка сегментов */
    --shadow-tab: 0 1px 2px rgba(16, 24, 40, 0.1);   /* выбранный сегмент */
    --scrim: rgba(16, 24, 40, 0.4);
    --focus-ring: 0 0 0 3px rgba(23, 101, 216, 0.35);
    --shadow-card: none;
    --shadow-float: 0 4px 16px rgba(16, 24, 40, 0.12);
    --shadow-overlay: 0 12px 32px rgba(16, 24, 40, 0.18);
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --fs-page: 24px; --fs-number: 24px; --fs-title: 20px; --fs-bar: 17px; --fs-group: 17px;
    --fs-body: 16px; --fs-input: 16px; --fs-label: 13px; --fs-small: 13px; --fs-caption: 12px;
    --lh-body: 1.35; --lh-small: 1.35;
    --text-page:    700 var(--fs-page)/1.2 var(--font-display);
    --text-number:  700 var(--fs-number)/1.2 var(--font-display);
    --text-title:   700 var(--fs-title)/1.25 var(--font-display);
    --text-bar:     600 var(--fs-bar)/1.3 var(--font-display);
    --text-group:   700 var(--fs-group)/1.3 var(--font-display);
    --text-body:    400 var(--fs-body)/var(--lh-body) var(--font-body);
    --text-strong:  600 var(--fs-body)/var(--lh-body) var(--font-body);
    --text-input:   400 var(--fs-input)/1.3 var(--font-body);
    --text-label:   500 var(--fs-label)/var(--lh-small) var(--font-body);
    --text-small:   400 var(--fs-small)/var(--lh-small) var(--font-body);
    --text-caption: 600 var(--fs-caption)/var(--lh-small) var(--font-body);
    --r-sm: 8px; --r-md: 10px; --r-lg: 14px;
  }
  html:root[data-theme="dark"] body.mobile-app-ready {
    --bg: #0d1117;  --surface: #161b25;  --surface-2: #1f2633;  --line: #2a3242;  --line-strong: #6b778c;
    --ink: #eef2f8; --ink-2: #a4aec0;    --ink-3: #a4aec0;
    --primary: #4d8ef0; --on-primary: #ffffff;
    --accent-bg: #4d8ef0; --accent-ink: #ffffff; --accent-line: transparent;
    --ok: #6fd69a;   --ok-bg: #12301f;
    --warn: #f2c063; --warn-bg: #352a12;
    --bad: #ff8b7e;  --bad-bg: #3d1c19;
    --info: #8cb6f7; --info-bg: #17284a;
    --selected-bg: #17284a;
    --track: #222a38;
    --shadow-tab: 0 1px 2px rgba(0, 0, 0, 0.5);
    --scrim: rgba(0, 0, 0, 0.6);
    --focus-ring: 0 0 0 3px rgba(77, 142, 240, 0.45);
    --shadow-float: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.6);
  }
}


/* styles.css */
@font-face{font-family:'Pakovia Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url('/fonts/manrope-variable-468c0dbe.woff2') format('woff2')}
:root{--text:#0c1114;--muted:#687279;--dark:#0c1114;--lime:#27c4e7;--accent:#0572db;--red:#b3413a;--radius:12px;--font-ui:'Pakovia Manrope',Arial,sans-serif;font-family:var(--font-ui);color:var(--text);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button{font:inherit}input,select,textarea{font:var(--text-body)}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}input,select,textarea{width:100%;border:1px solid var(--line-strong);background:var(--surface);border-radius:var(--r-md);padding:0 var(--space-3);min-height:var(--control-h);color:var(--ink)}textarea{padding:var(--space-2) var(--space-3)}textarea{resize:vertical;min-height:90px}label{display:grid;gap:7px;font-size:.875rem;font-weight:550}small{font-size:.8rem;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-1px;font-weight:650;margin-bottom:8px}h2{font-size:1.15rem;font-weight:650;letter-spacing:-.3px}h3{font-size:1rem}p{line-height:1.55}svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:var(--dark);color:#fff;padding:30px 18px 20px;position:fixed;inset:0 auto 0 0;width:230px;display:flex;flex-direction:column;z-index:20}.logo{display:flex;align-items:center;gap:11px;font-size:1.6rem;letter-spacing:2px;font-weight:750;padding:0 12px}.logo img{width:35px;height:35px}.logo-sub{color:#91a1ad;font-size:.75rem;line-height:1.5;margin:12px 12px 34px;max-width:155px}.nav-label{font-size:.75rem;color:#778994;text-transform:uppercase;letter-spacing:1.2px;padding:0 14px;margin:14px 0 10px}.nav{display:grid;gap:5px}.nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;font-size:.9rem;color:#b3bec6;border-radius:8px}.nav a:hover{color:white;background:#1b2b36}.nav a.active{background:var(--lime);color:#08273d;font-weight:650}.nav .count{margin-left:auto;font-size:.75rem;background:#ffffff15;border-radius:4px;padding:2px 6px}.nav a.active .count{background:#ffffff30}.sidebar-bottom{margin-top:auto;padding:24px 8px 0}.demo-label{display:flex;gap:8px;align-items:center;font-size:.8rem;color:#b7c7d1}.demo-label span{width:7px;height:7px;border-radius:50%;background:#27c4e7}.sidebar-bottom p{color:#8396a4;font-size:.75rem;margin:8px 0 0}.workspace{grid-column:2;min-width:0}.topbar{height:80px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 36px}.breadcrumb{font-size:.875rem;color:var(--muted);display:flex;align-items:center;gap:10px}.breadcrumb b{color:var(--text);font-weight:500}.top-tools{display:flex;gap:15px;align-items:center}.top-tools select{border:0;background:transparent;padding:8px;max-width:150px}.top-tools button.profile{display:flex;align-items:center;gap:10px;font-size:.875rem;border-left:1px solid var(--line);padding-left:20px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8f3fa;color:#186ba9;font-size:.8rem;font-weight:650}.content{padding:34px 36px 48px;max-width:1660px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:27px}.page-head p{margin:0;color:var(--muted);font-size:.9rem}.eyebrow{font-size:.75rem;letter-spacing:1.4px;color:var(--muted);text-transform:uppercase;margin-bottom:10px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);white-space:nowrap;font-size:var(--fs-label);font-weight:600;padding:0 var(--space-4);border-radius:var(--r-md);border:1px solid var(--line-strong);background:var(--surface);min-height:var(--control-h)}.btn:hover{background:#eff7fb}.btn.primary{background:var(--dark);color:white;border-color:var(--dark)}.btn.primary:hover{background:#075cad}.btn.lime{background:var(--lime);border-color:var(--lime)}.btn.small{padding:7px 10px;min-height:32px;font-size:.8rem}.btn.danger{color:var(--red)}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.metric{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 21px}.metric-top{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:.875rem}.metric-top svg{color:#83928a}.metric strong{font-size:2rem;letter-spacing:-1px;font-weight:600;display:block;margin:17px 0 6px}.metric strong small{font-size:.8rem;letter-spacing:0;font-weight:500;margin-left:4px}.metric-foot{color:var(--muted);font-size:.78rem}.metric-foot .green{color:var(--accent)}.metric.featured{background:var(--dark);color:white;border-color:var(--dark)}.metric.featured .metric-top,.metric.featured small,.metric.featured .metric-foot{color:#9cafbd}.metric.featured .metric-top svg{color:var(--lime)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;margin-bottom:22px}.panel-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.panel-head h2{margin:0}.panel-body{padding:22px}.panel-footer{padding:14px 22px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}.text-link{color:var(--accent);font-size:.875rem;display:inline-flex;align-items:center;gap:7px;font-weight:550}.text-link svg{width:16px;height:16px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}th{font-weight:500;color:var(--muted);background:#f7f9fa;font-size:.78rem;letter-spacing:.1px;padding:13px 20px;border-bottom:1px solid var(--line)}td{font-size:.875rem;padding:17px 20px;border-bottom:1px solid #edf1f3;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr[data-open]{cursor:pointer}tbody tr[data-open]:hover{background:#f0f8fc}td strong{font-weight:550}td small{display:block;margin-top:5px;font-size:.75rem}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:5px 8px;font-size:.75rem;line-height:1.25;background:#edf0ed;color:#5d6b61}.badge.green{background:#e9f5df;color:#4a772c}.badge.blue{background:#eaf0f8;color:#4b6a9a}.badge.orange{background:#fff3dc;color:#9f7b29}.badge.red{background:#fcece9;color:#a64d42}.badge.dark{background:#e2f2fb;color:#14628e}.align-right{text-align:right}.muted{color:var(--muted)}.mono{font-family:var(--font-ui);font-variant-numeric:tabular-nums;font-size:.8rem}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}.search{position:relative;max-width:360px;flex:1;min-width:200px}.search svg{position:absolute;left:12px;top:12px;color:var(--muted);width:18px}.search input{padding-left:40px;background:white;font-size:.875rem}.tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);background:#eaf0f4;border-radius:9px}.tabs button{padding:7px 12px;font-size:.8rem;border-radius:6px;white-space:nowrap}.tabs button.active{background:white;box-shadow:0 1px 3px #1b30220d}.watch-item{display:flex;align-items:flex-start;gap:12px;padding:18px 22px;border-bottom:1px solid #edf1f3}.watch-item:last-child{border-bottom:0}.watch-icon{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:9px;background:#eaf4fb;color:#2686ac}.watch-item h3{font-size:.875rem;margin:0 0 5px}.watch-item p{margin:0;font-size:.78rem;color:var(--muted);line-height:1.5}.watch-item .n{margin-left:auto;font-size:1.1rem;font-weight:600}.integrity{background:#edf8fc;padding:21px;border:1px solid #cceaf4;border-radius:var(--radius);margin-bottom:22px}.integrity h3{display:flex;gap:9px;align-items:center;margin:0 0 10px;color:#156181;font-size:.9rem}.integrity p{font-size:.8rem;color:#648090;margin:0 0 12px;line-height:1.6}.integrity.error{background:#fcedea;border-color:#eac4b9}.brand-row{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#e7f2f8;font-weight:650;font-size:.875rem}.brand-name{flex:1;font-size:.875rem}.brand-name small{display:block;margin-top:3px}.bar{height:5px;border-radius:3px;background:#e7eef3;overflow:hidden;margin-top:10px}.bar span{height:100%;background:#27c4e7;display:block}.progress-item{padding:14px 22px}.progress-item>div:first-child{display:flex;justify-content:space-between;font-size:.85rem}.empty{padding:50px 24px;text-align:center;color:var(--muted);font-size:.9rem}.empty svg{width:28px;height:28px;margin-bottom:12px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.detail-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.detail-meta dt{font-size:.78rem;color:var(--muted);margin-bottom:7px}.detail-meta dd{margin:0;font-size:.9rem;line-height:1.6}.summary-line{display:flex;justify-content:space-between;font-size:.9rem;padding:9px 0;gap:14px}.summary-line.total{font-size:1.15rem;font-weight:650;border-top:1px solid var(--line);margin-top:7px;padding-top:16px}.summary-line.debt{color:#9f7b29}.feed{padding:18px 22px;border-bottom:1px solid var(--line)}.feed:last-child{border-bottom:0}.feed p{font-size:.875rem;margin:0 0 6px}.feed small{font-size:.75rem}.inline-note{padding:12px 15px;background:#eff8fc;border:1px solid #d3e9f5;border-radius:8px;font-size:.8rem;line-height:1.6;color:#406984;margin:16px 0}.notice{padding:12px 15px;border-radius:8px;background:#f7eddb;color:#8f702e;font-size:.8rem;line-height:1.6}.settings-grid{display:grid;grid-template-columns:210px 1fr;gap:22px}.settings-nav{display:grid;gap:4px;align-content:start}.settings-nav button{text-align:left;padding:11px 14px;border-radius:8px;font-size:.875rem}.settings-nav button.active{background:#e3f3fc;color:#076fb8;font-weight:600}.setting-card{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.setting-card strong{display:block;font-size:.9rem;margin-bottom:5px}.setting-card p{margin:0;color:var(--muted);font-size:.8rem}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}dialog{border:0;border-radius:16px;padding:0;width:min(600px,calc(100% - 32px));max-height:90vh;box-shadow:0 30px 100px #10271933;color:var(--text)}dialog::backdrop{background:#0c192d70;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:23px 26px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0}.icon-btn{display:inline-flex;padding:6px;border-radius:6px}.icon-btn:hover{background:#e7f5fb}.modal-body{padding:24px 26px;display:grid;gap:17px}.modal-body .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid var(--line);background:#f7f9fa}.form-error{background:#fff0ed;padding:12px;border-radius:8px;color:var(--red);font-size:.85rem;line-height:1.5}.form-error:empty{display:none}.modal-hint{font-size:.8rem;color:var(--muted);line-height:1.6;margin:0}.checks{display:flex;flex-wrap:wrap;gap:10px 16px}.checks label{display:flex;align-items:center;gap:6px}.checks input{width:16px;min-height:16px}.boot{padding:60px;text-align:center}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:var(--dark);color:white;padding:80px;display:flex;flex-direction:column;justify-content:space-between}.login-brand h1{font-size:4rem;color:var(--lime);margin-bottom:20px}.login-brand h2{font-size:2.5rem;line-height:1.2;max-width:460px;font-weight:500}.login-brand p{color:#a5b8c7;max-width:400px}.login-form{padding:70px;display:flex;flex-direction:column;justify-content:center}.login-form h1{font-size:1.8rem}.profile-choice{display:flex;align-items:center;gap:14px;padding:16px;margin:6px 0;border:1px solid var(--line);border-radius:10px;text-align:left;background:#fff}.profile-choice:hover{border-color:#27c4e7;background:#eff9fc}.profile-choice div:nth-child(2){flex:1}.profile-choice strong{font-size:.9rem;display:block;margin-bottom:4px}.profile-choice small{font-size:.78rem}#toasts{position:fixed;right:24px;bottom:24px;z-index:100;display:grid;gap:10px}#toasts[popover]{top:auto;left:auto;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:visible;width:auto;height:auto;max-width:none;max-height:none}#toasts::backdrop{background:transparent;pointer-events:none}.toast{padding:16px 22px;border-radius:10px;box-shadow:0 10px 50px #16332022;background:var(--dark);color:white;font-size:.875rem;max-width:420px;line-height:1.5}.toast.error{background:#963e35}.mobile-menu{display:none}.wrap{white-space:normal;min-width:160px;max-width:400px}.pre{white-space:pre-wrap}.checklist{padding-left:20px;font-size:.9rem;line-height:1.9}.footnote{font-size:.75rem;color:#8596a1;margin-top:24px;display:flex;justify-content:space-between;gap:12px}.negative{color:var(--red)}.good{color:var(--accent)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.wallet-card{padding:22px}.wallet-card strong{display:block;font-size:1.5rem;margin:18px 0}.wallet-card p{font-size:.875rem;margin:0}.wallet-card small{font-size:.78rem}.break{overflow-wrap:anywhere}.list-check{display:flex;align-items:center;gap:10px;font-size:.875rem;padding:13px 0;border-bottom:1px solid var(--line)}.list-check input{width:17px;min-height:17px}.list-check.done span{text-decoration:line-through;color:var(--muted)}
@media(min-width:1600px){.content{padding:42px 50px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 340px}.sidebar{width:250px}.shell{grid-template-columns:250px 1fr}}
@media(max-width:1200px){.sidebar{width:200px}.shell{grid-template-columns:200px 1fr}.content{padding:28px 24px}.topbar{padding:0 24px}.dashboard-grid,.detail-grid{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:18px}.metric{padding:17px}.metric strong{font-size:1.75rem}.detail-grid>aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.metrics{gap:12px}.profile-name{display:none}}
@media(max-width:800px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:230px}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vw #10241855}.workspace{width:100%}.mobile-menu{display:inline-flex}.topbar{height:65px;padding:0 18px}.breadcrumb>span{display:none}.content{padding:24px 18px}.top-tools{gap:6px}.top-tools button.profile{padding-left:8px}.top-tools select{max-width:120px}.page-head{flex-wrap:wrap;margin-bottom:20px}h1{font-size:1.7rem}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric strong{font-size:1.6rem;margin-top:12px}.metric-top{font-size:.8rem}.metric-foot{font-size:.75rem}.dashboard-side,.detail-grid>aside{display:block}.settings-grid{grid-template-columns:1fr}.settings-nav{display:flex;overflow:auto}.settings-nav button{white-space:nowrap}.detail-meta{grid-template-columns:1fr 1fr}.split,.cards{grid-template-columns:1fr}.panel-head{padding:17px}.panel-body{padding:17px}td,th{padding:14px 16px}.login{display:block}.login-brand{padding:35px}.login-brand h2,.login-brand p{display:none}.login-brand h1{font-size:2.5rem;margin:0}.login-form{padding:35px 24px}.modal-body{padding:20px}.modal-body .row{grid-template-columns:1fr}.modal-foot,.modal-head{padding:18px 20px}.footnote{display:block;line-height:1.8}.toolbar .tabs{overflow:auto;max-width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media print{.sidebar,.topbar,.actions,.footnote{display:none}.shell{display:block}.content{padding:0}.panel{break-inside:avoid}body{background:white}}
/* Pakovia · cyan → blue, ink and cool paper. */
:root{--brand-gradient:linear-gradient(112deg,#2cc8e8 0%,#149ce5 48%,#0873d8 100%)}
.nav a.active,.btn.primary{background:var(--brand-gradient);color:#fff;border-color:transparent}.btn.primary:hover{filter:brightness(.94)}.nav a.active svg{stroke-width:2}.nav a.active .count{color:#fff}.btn.lime{background:#e0f7fc;color:#076e9f;border-color:#b9edf8}.logo img{border:1px solid #2ac6e63d;border-radius:10px}.sidebar{overflow:auto}.sidebar-bottom{padding-top:20px}.logo-sub{margin-bottom:22px}.nav a{padding:10px 14px}.settings-nav button.active{box-shadow:inset 3px 0 #27c4e7}.metric.featured{background:linear-gradient(130deg,#0c1114,#122b3c)}.bar span{background:var(--brand-gradient)}.workflow-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}.workflow-tile{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:12px;align-content:start}.workflow-tile>span{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:600;color:#536e80}.workflow-tile>span svg{color:var(--accent);width:18px}.workflow-tile select{font-size:.95rem;font-weight:600;background:#f5faff}.workflow-tile small{line-height:1.5;min-height:20px}.workflow-tile.needs-choice{border-color:#27c4e7;box-shadow:0 0 0 2px #27c4e714}.workflow-tile select:disabled{cursor:default;opacity:.8}.product-link{color:#096da9;padding:0;text-align:left;font-weight:600;white-space:normal;line-height:1.45}.product-link:hover{text-decoration:underline}.client-hits:empty{display:none}.client-hits{display:grid;gap:4px}.client-hits>button{background:#f2f9fd;border:1px solid #dcecf7;padding:11px 14px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;text-align:left}.client-hits small{display:block;margin-top:5px}.client-hits>button:hover{border-color:#27c4e7}.wide-dialog{width:min(1120px,calc(100vw - 32px))}.template-dialog{width:min(1280px,calc(100vw - 32px))}.wide-dialog .modal-head,.template-dialog .modal-head{background:#f8fbfd}.sku-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;padding:26px}.sku-layout>div,.sku-layout>aside{min-width:0}.sku-layout aside{padding-left:22px;border-left:1px solid var(--line)}.sku-layout .detail-meta{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0;margin-bottom:26px}.sku-layout .detail-meta small{display:block;line-height:1.5;margin-top:5px}.sku-layout h3{margin-top:14px}.sku-comments{max-height:450px;overflow:auto;margin-top:18px}.sku-comments .feed{padding:15px 0}.sku-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px;max-width:500px}.sku-chips .btn{font-family:var(--font-ui);font-variant-numeric:tabular-nums;font-size:.7rem;padding:4px 7px;min-height:26px}.bulk-toolbar,.preview-toolbar,.variable-picker{display:flex;align-items:center;justify-content:space-between;gap:12px}.bulk-toolbar>span{font-size:.9rem;font-weight:550}.bulk-table{border:1px solid var(--line);border-radius:9px;max-height:48vh}.bulk-table th{position:sticky;top:0;background:#f0f6fa;z-index:1}.bulk-table th,.bulk-table td{padding:11px 12px}.bulk-table td:first-child{min-width:280px;width:48%}.bulk-table input[name=item_name]{min-width:280px}.bulk-table input[type=number]{min-width:105px;max-width:150px}.bulk-table textarea{min-width:200px;min-height:74px}.bulk-table input[readonly]{background:#f2f5f7;color:#687279}.bulk-total{text-align:right;font-size:1.1rem;font-weight:650;color:#126799;padding:8px 3px}.invalid-row input[name=item_name]{border-color:#db9b68}.row-error{color:#ab6340;white-space:normal}.template-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px}.template-settings,.template-content{display:grid;gap:16px;align-content:start;min-width:0}.template-settings{border-right:1px solid var(--line);padding-right:24px}.template-settings .row{gap:10px}.template-settings input,.template-settings select{padding:10px 8px;font-size:.85rem;min-width:0}.editor-toolbar{display:flex;gap:4px;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:6px;background:#f4f8fb}.editor-toolbar button{padding:7px 10px;font-size:.8rem;border-radius:5px;min-width:32px}.editor-toolbar button:hover{background:#dceefa}.variable-picker select,.preview-toolbar select{font-size:.85rem;min-width:0}.document-editor{min-height:320px;max-height:580px;overflow:auto;background:white;border:1px solid #cfdce5;border-radius:8px;padding:25px;line-height:1.7;font-family:Arial,sans-serif;font-size:15px;outline-color:#27c4e7;overflow-wrap:anywhere}.document-editor table{white-space:normal;margin:15px 0}.document-editor td,.document-editor th{border:1px solid #ccd8df;padding:9px;min-width:80px}.document-editor p{margin-bottom:14px}.document-editor h2{font-size:20px}.template-content iframe{width:100%;height:460px;border:1px solid var(--line);border-radius:8px;background:#f4f7f8}.template-content .modal-hint:empty{display:none}button:disabled{cursor:not-allowed}.bulk-table input:invalid{border-color:#d89d6d}dialog .modal-head{position:sticky;top:0;z-index:3;background:#fff}dialog .modal-foot{position:sticky;bottom:0;z-index:3}.template-dialog .modal-body{gap:20px}
@media(max-width:1050px){.workflow-tiles{gap:10px}.workflow-tile{padding:14px}.template-layout{grid-template-columns:240px minmax(0,1fr);gap:20px}.template-settings{padding-right:18px}.sku-layout{grid-template-columns:minmax(0,1fr) 250px}.sku-layout .detail-meta{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.workflow-tiles{grid-template-columns:1fr}.workflow-tile{gap:9px}.workflow-tile small{min-height:0}.sku-layout,.template-layout{grid-template-columns:1fr;padding:20px}.template-layout{padding:0}.sku-layout aside{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.template-settings{border-right:0;border-bottom:1px solid var(--line);padding:0 0 20px;grid-template-columns:1fr 1fr}.template-settings .row{grid-template-columns:1fr}.template-settings>label{min-width:0}.bulk-toolbar{align-items:flex-start;flex-direction:column}.wide-dialog,.template-dialog{width:calc(100vw - 20px)}.document-editor{padding:18px;min-height:260px}.preview-toolbar{flex-wrap:wrap}.variable-picker .btn{min-width:84px}}
/* Purchasing requests and explicit validation */
.purchase-tabs{margin:0 0 22px;width:max-content;max-width:100%;overflow:auto}.purchase-tabs button{padding:10px 16px}.demand-actions{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:14px;background:#eef8fc;border:1px solid #cce9f6;padding:14px 18px;border-radius:10px;margin-bottom:16px}.demand-actions>span{font-size:.9rem;color:#36637d}.demand-description{white-space:normal;min-width:310px;max-width:520px}.demand-description details{margin-top:9px}details summary{cursor:pointer;color:var(--accent);font-size:.8rem;line-height:1.5}details .pre{font-size:.8rem;line-height:1.5;white-space:pre-wrap}.demand-source{background:#f5f9fc;border:1px solid #e0edf5;border-radius:8px;padding:12px;margin-top:9px}.demand-source strong{font-size:.8rem}.demand-source p{margin:9px 0;font-size:.85rem}.demand-source small{line-height:1.5}input[data-demand-product],#select-all-demand{width:19px;height:19px;min-height:19px;accent-color:#0873d8;cursor:pointer}.request-table td:nth-child(3){min-width:280px}.request-table td:first-child{width:40%}#purchase-request-form .panel-body{display:grid;gap:18px}.currency-row{display:grid;grid-template-columns:230px minmax(0,1fr) auto;gap:16px;align-items:end}.rate-note{font-size:.85rem;line-height:1.6;color:#315a75;padding:12px 14px;background:#edf8fc;border:1px solid #d2ebf7;border-radius:8px;min-height:44px}.rate-note small{display:block;line-height:1.5;margin-top:4px}.rate-note a{text-decoration:underline;color:var(--accent)}.rate-note.error{background:#fff1ef;border-color:#efb2aa;color:#a02e28}.purchase-rate-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:.85rem;padding:15px 18px;background:#eaf6fc;border:1px solid #cfe8f7;border-radius:10px;margin-bottom:22px}.bulk-table input[name=item_comment]{min-width:220px}.bulk-table select[name=item_order]{margin-top:6px;max-width:320px;font-size:.75rem;padding:6px;min-height:30px}.unit-usd{color:#0873a7!important;white-space:normal;line-height:1.4}.field-error,form.was-validated input:invalid,form.was-validated select:invalid,form.was-validated textarea:invalid{border:2px solid #d63c35!important;background:#fff4f3!important;box-shadow:0 0 0 3px #d63c3510}.field-error-text{display:block!important;color:#b32924!important;font-size:.75rem;line-height:1.45;white-space:normal;max-width:320px;margin-top:6px}.bulk-table input:invalid:not(.field-error){border-color:var(--line)}.field-error:focus{outline-color:#e99590}.request-table .icon-btn{min-width:28px}.purchase-rate-summary+.text-link{margin-top:6px}
@media(max-width:800px){.currency-row{grid-template-columns:1fr}.demand-actions{align-items:stretch;flex-direction:column}.purchase-tabs{width:100%}.purchase-tabs button{padding:9px 12px}.demand-description{min-width:230px}.rate-note{font-size:.8rem}}
.reserve-request{border-top:1px solid var(--line);padding-top:18px}.reserve-request p{font-size:.875rem;color:var(--muted);margin-bottom:12px}.payment-policy{border:1px solid var(--line);border-radius:9px;padding:14px;margin:16px 0 0;min-width:0}.payment-policy legend{font-size:.875rem;font-weight:650;padding:0 6px}.payment-policy .policy-all{display:flex;align-items:center;gap:8px;font-size:.8rem}.payment-policy input[type=checkbox]{width:17px;min-height:17px;flex-shrink:0;accent-color:var(--accent)}.policy-choices{display:grid;gap:10px;padding:14px 0}.policy-choices label{font-size:.8rem;line-height:1.5}.policy-choices label:has(input:disabled){opacity:.55}#payment-policies{display:grid;gap:4px}#payment-policies h3{margin:12px 0 4px}.bulk-table td:first-child{white-space:normal}.bulk-table input[name=item_name]{display:block;width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.list-scope{width:max-content;max-width:100%;margin:0 0 18px;overflow:auto}.list-tools{padding:16px 20px;background:#fbfdfe;border-bottom:1px solid var(--line)}.list-tools-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.list-search{flex:1;min-width:190px;max-width:580px}.list-search input{font-size:.85rem}.list-tools-top>[data-list-count]{font-size:.78rem;color:var(--muted);margin-left:auto}.list-options{margin-top:12px}.list-options>summary{display:inline-flex;gap:7px;font-size:.85rem;font-weight:600}.list-options-body{padding-top:8px;max-width:1050px}.list-config-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:14px 0 10px}.list-config-title h3{font-size:.85rem;margin:0}.list-config-title select{width:auto;max-width:300px;min-height:34px;padding:7px;font-size:.78rem}.list-rule{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,.85fr) minmax(200px,1.5fr) 30px;gap:8px;align-items:start;background:#f0f6fa;border:1px solid #dce8f0;border-radius:8px;padding:10px;margin:8px 0}.list-rule select,.list-rule input,.list-sort select{font-size:.8rem;padding:8px;min-height:36px;min-width:0}.list-rule-values{display:flex;gap:8px;min-width:0}.list-rule-values>input{width:100%;min-width:0}.list-multiselect{width:100%;min-width:0}.list-multiselect select{height:100px;width:100%;padding:5px}.list-multiselect option{padding:4px 6px;white-space:normal}.list-multiselect small{font-weight:400;font-size:.7rem}.list-sort{display:grid;grid-template-columns:20px minmax(140px,1fr) minmax(160px,1fr) 30px;gap:8px;align-items:center;margin:8px 0}.list-sort>span{font-size:.8rem;color:var(--muted)}.list-empty-row td{text-align:center;padding:34px 20px;white-space:normal;color:var(--muted)}tr[hidden]{display:none!important}.list-tools .icon-btn{min-height:34px}.list-tools .btn.small{margin-top:3px}.repair-device-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px;background:#eff8fc;border:1px solid #d3e9f5;border-radius:9px;margin:16px 0}.repair-device-fields dt{font-size:.8rem;color:var(--muted);margin-bottom:8px}.repair-device-fields dd{font-size:.9rem;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:900px){.list-rule{grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) 30px}.list-rule-values{grid-column:1/3;grid-row:2}.list-rule>.icon-btn{grid-column:3;grid-row:1}.list-config-title{flex-wrap:wrap}.list-tools{padding:14px}.repair-device-fields{grid-template-columns:1fr}}@media(max-width:600px){.list-tools-top>[data-list-count]{margin-left:0}.list-search{flex-basis:100%;max-width:none}.list-sort{grid-template-columns:18px 1fr 30px}.list-sort [data-sort-direction]{grid-column:2;grid-row:2}.list-sort>.icon-btn{grid-column:3;grid-row:1}.list-config-title select{width:100%;max-width:none}}
.list-density select{font-size:.78rem;min-height:34px;padding:7px 9px;width:auto}.pakovia-data-list.dense-list th{padding:9px 10px;font-size:.73rem;font-weight:600;line-height:1.3}.pakovia-data-list.dense-list td{padding:6px 10px;height:36px;font-size:.8rem;line-height:1.35;border-bottom:1px solid #e3e9ed}.pakovia-data-list.dense-list tbody tr:nth-child(odd){background:#f8fafb}.pakovia-data-list.dense-list tbody tr:hover{background:#edf7fc}.pakovia-data-list.dense-list td small{font-size:.7rem;line-height:1.25;margin-top:2px}.pakovia-data-list.dense-list .product-link{font-size:.8rem;line-height:1.35;font-weight:500;max-width:360px;display:inline-block;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pakovia-data-list.dense-list .badge{font-size:.69rem;padding:3px 6px}.pakovia-data-list.dense-list .btn.small{min-height:26px;padding:4px 7px;font-size:.7rem;gap:4px}.pakovia-data-list.dense-list .actions{gap:5px}.pakovia-data-list.dense-list .actions svg{width:14px;height:14px}.pakovia-data-list.dense-list .sku-chips{margin-top:3px;gap:3px}.pakovia-data-list.dense-list .demand-description details{margin-top:3px}.pakovia-data-list.dense-list .demand-source{padding:9px}.pakovia-data-list.dense-list .mono{font-size:.74rem}.pakovia-data-list.dense-list .wrap{min-width:120px}.pakovia-data-list.dense-list input[type=checkbox]{width:16px;height:16px;min-height:16px}.pakovia-data-list.dense-list .list-empty-row td{height:auto;padding:25px 16px}.pakovia-data-list.dense-list .text-link{font-size:.78rem}

/* Compact, directly editable order amounts. */
.order-sku{display:flex;align-items:center;gap:8px;margin-top:3px}.order-sku .product-link{font-size:inherit}.order-sku span{font-size:11px;color:var(--muted)}
table input.line-qty,table input.line-price,table input.line-cost{padding:5px 7px;height:32px;min-height:32px;border-radius:5px;font-size:13px;font-variant-numeric:tabular-nums;background:transparent}
table input.line-qty{width:78px}table input.line-price{width:120px}
table input.line-qty:read-only{border-color:transparent;color:var(--muted)}
tr.line-dirty td{background:#ecfaff}.order-lock-note{margin:0;padding:10px 16px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--border)}

.sku-serial-fields{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.sku-serial-fields input{min-width:100px;flex:1;width:100px;font-size:13px;min-height:34px;padding:6px 8px}.sku-serial-fields .btn{white-space:nowrap}#sku-serial-form .form-error{margin:6px 0 0}.serial-history{margin:20px 0}.serial-history .feed{padding:8px 0}.serial-history .mono{overflow-wrap:anywhere}

.detail-meta.order-contacts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px 22px;margin:0}

.order-register th,.order-register td{white-space:nowrap;text-align:left;vertical-align:top}
.order-register td[data-order-column="status"] .status-color-badge{width:180px;max-width:100%;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere}
.order-register .order-register-status{width:180px;max-width:100%;min-height:0;height:calc(1.25em + 6px);padding:3px 6px;border:0;border-radius:20px;font-size:.69rem;font-weight:650;line-height:1.25;text-align:center;text-align-last:center;text-overflow:ellipsis;-webkit-appearance:none;appearance:none;background-image:none;cursor:pointer}
.order-register .order-register-status:disabled{cursor:wait}
.order-register td[data-order-column="composition"]{white-space:normal;min-width:220px;max-width:350px}
.order-register .order-device-serial{color:var(--muted);white-space:pre-line;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.order-register td small{display:block;font-size:11px}
.order-register .order-created-date,.order-register .order-created-time{display:block;white-space:nowrap}
.order-column-choice{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid var(--border)}
.order-column-choice label{display:flex;align-items:center;gap:9px;flex:1;margin:0;font-weight:500}
.order-column-choice input[type=checkbox]{width:auto}
.order-column-choice .btn{padding:3px 10px}
.cost-incomplete{color:#956300}

/* Keep validation messages from stretching neighbouring form fields. */
.modal-body label{min-width:0}
.sku-layout table{table-layout:fixed;white-space:normal}
.sku-layout th,.sku-layout td{overflow-wrap:anywhere;vertical-align:top}
.sku-layout th:nth-child(1){width:23%}
.sku-layout th:nth-child(2){width:16%}
.sku-layout th:nth-child(3){width:35%}
.sku-layout th:nth-child(4){width:26%}

.footnote>span{display:block}

.list-empty-state{padding:22px;color:var(--muted);font-size:.875rem;line-height:1.6}
.bulk-table td{vertical-align:top}
.catalog-price-list{table-layout:fixed;min-width:640px}.catalog-price-list th,.catalog-price-list td{padding:9px 10px;text-align:left;vertical-align:middle}.catalog-price-list th{white-space:normal;line-height:1.3}.catalog-price-list th[data-catalog-column="product"]{width:31%}.catalog-price-list th[data-catalog-column="actions"]{width:90px}.catalog-price-list th small{display:block;margin-top:2px;font-size:.7rem;font-weight:400}.catalog-price-list .catalog-product-cell .product-link{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-price-list .catalog-product-cell small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-price-list.pakovia-data-list.dense-list td{height:49px}.catalog-price-list.pakovia-data-list.dense-list .catalog-product-cell .product-link{display:block;max-width:100%}.catalog-price-list td:not([data-catalog-column="product"]){font-variant-numeric:tabular-nums}.catalog-price-list .btn.small{white-space:nowrap}@media(max-width:600px){.catalog-price-list{min-width:620px}.catalog-price-list th[data-catalog-column="product"]{width:200px}}
.document-studio{width:min(1480px,calc(100vw - 36px));max-width:none;max-height:94vh}.document-studio .modal-body{padding:18px 22px}.doc-studio-start{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--line)}.doc-studio-start label{flex:1;min-width:170px;font-size:.78rem}.doc-studio-start select{font-size:.8rem;padding:8px;min-height:36px}.doc-studio-grid{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px}.doc-studio-settings{min-width:0;border-right:1px solid var(--line);padding-right:20px}.doc-studio-settings>details{padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--line)}.doc-studio-settings summary{font-weight:650;color:var(--text);font-size:.85rem;margin-bottom:12px}.doc-studio-settings label{font-size:.78rem;margin-bottom:10px}.doc-studio-settings input,.doc-studio-settings select{font-size:.8rem;padding:8px;min-height:36px}.doc-studio-settings .row{gap:10px}.doc-studio-settings .btn.small{margin:3px 0 8px}.doc-studio-main{min-width:0}.doc-studio-main>label{margin-bottom:16px}.doc-editor-switch{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;flex-wrap:wrap}.doc-editor-switch>label{display:flex;align-items:center;gap:8px;font-size:.78rem}.doc-editor-switch select{width:auto;font-size:.78rem;padding:7px;min-height:34px}.doc-editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:7px;background:#edf5fa;border:1px solid var(--line);border-radius:8px 8px 0 0}.doc-editor-toolbar button{padding:6px 8px;font-size:.75rem;border-radius:4px}.doc-editor-toolbar button:hover{background:#d4eaf8}.doc-rich-editor,.doc-source-editor{box-sizing:border-box;width:100%;min-height:370px;border:1px solid var(--line);background:white;padding:26px;line-height:1.5;border-radius:0 0 8px 8px;overflow-wrap:anywhere;outline-color:var(--accent)}.doc-rich-editor{font-family:Arial,sans-serif;font-size:12pt}.doc-source-editor{font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;tab-size:2;resize:vertical}.doc-rich-editor table{white-space:normal;table-layout:fixed}.doc-rich-editor td,.doc-rich-editor th{border:1px solid #d8e0e6;padding:7px;white-space:normal}.doc-rich-editor .page-break{border-top:2px dashed #86acbf;margin:24px 0;position:relative}.doc-rich-editor .page-break:after{content:'Разрыв страницы';display:block;text-align:center;font:11px Arial;color:#62879c}.doc-header-footer{margin:16px 0;padding:13px 16px;border:1px solid var(--line);border-radius:8px}.doc-header-footer summary{margin-bottom:10px}.doc-header-footer label+label{margin-top:14px}.doc-header-footer textarea{font-size:.8rem;min-height:100px}.doc-variable-list{display:grid;gap:4px}.doc-variable-list button{text-align:left;border:1px solid #e1ebf1;background:#f7fbfd;padding:7px 9px;border-radius:5px;min-width:0}.doc-variable-list button:hover{background:#e3f4fc}.doc-variable-list span{display:block;font-size:.78rem}.doc-variable-list code{display:block;font:10px/1.5 ui-monospace,monospace;color:#668297;overflow-wrap:anywhere}#doc-variable-palette{max-height:420px;overflow:auto;margin-top:10px}#doc-variable-palette summary{font-size:.75rem;margin:10px 0 6px;color:var(--muted)}.doc-check{display:flex!important;align-items:center;gap:8px;font-size:.8rem;font-weight:500}.doc-check input[type=checkbox]{width:16px;min-height:16px;height:16px;flex:0 0 16px;accent-color:var(--accent)}.doc-table-columns>div{display:grid;grid-template-columns:minmax(0,1fr) 26px 26px;align-items:center;gap:4px;padding:4px 0;border-bottom:1px solid #edf1f4}.doc-table-columns label{margin:0}.doc-table-columns button{border:1px solid var(--line);border-radius:4px;height:26px}.doc-custom-row{padding:10px;border:1px solid var(--line);border-radius:7px;margin:10px 0;background:#f8fbfd}.doc-custom-row .row{display:block}.doc-custom-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;font-size:.78rem}.doc-custom-title .icon-btn{min-height:26px;width:26px}.doc-custom-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.doc-custom-values label{min-width:0;font-size:.8rem}.doc-preview-area{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.doc-preview-toolbar{display:flex;align-items:end;gap:12px}.doc-preview-toolbar label{flex:1;min-width:0;font-size:.8rem}.doc-preview-toolbar select{font-size:.8rem}#doc-preview-frame,#doc-generation-frame{width:100%;height:520px;border:1px solid var(--line);border-radius:8px;background:#f7f9fb}.document-generation{width:min(940px,calc(100vw - 32px));max-width:none}.document-generation #doc-generation-frame{margin-top:10px}.document-generation .modal-body>label{margin-bottom:14px}.document-studio [hidden],.document-generation [hidden]{display:none!important}@media(max-width:1000px){.doc-studio-grid{grid-template-columns:240px minmax(0,1fr);gap:16px}.doc-studio-settings{padding-right:14px}.doc-rich-editor{padding:18px}}@media(max-width:760px){.document-studio{width:calc(100vw - 16px);max-height:96vh}.document-studio .modal-body{padding:14px}.doc-studio-grid{grid-template-columns:1fr}.doc-studio-settings{border-right:0;padding:0;max-height:340px;overflow:auto;border-bottom:1px solid var(--line)}.doc-studio-settings>details{margin:0;padding:10px 0}.doc-studio-main{padding-top:8px}.doc-studio-start{gap:8px}.doc-studio-start label{min-width:160px}.doc-studio-start .btn{min-height:36px}.doc-editor-switch>label{flex-wrap:wrap}.doc-custom-values{grid-template-columns:1fr}.doc-preview-toolbar{flex-wrap:wrap}.doc-preview-toolbar label{flex-basis:100%}.doc-rich-editor,.doc-source-editor{min-height:300px;padding:15px}#doc-preview-frame,#doc-generation-frame{height:420px}}

/* Password authentication is isolated from operational forms and compact lists. */
.auth-page{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:40px 20px;background:radial-gradient(ellipse at top right,#e1f5fb,transparent 55%),var(--bg)}
.auth-card{width:100%;max-width:430px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:38px;box-shadow:0 18px 60px #12364c12}
.auth-brand{display:flex;align-items:center;gap:12px;font-size:30px;font-weight:750;letter-spacing:-1px}.auth-brand img{flex:none}
.auth-caption{font-size:11px;color:var(--muted);margin:10px 0 35px;letter-spacing:.15px}.auth-card h1{font-size:24px;margin-bottom:10px}.auth-intro{color:var(--muted);font-size:14px;line-height:1.5;margin:0 0 25px}
.auth-card form{display:grid;gap:18px}.auth-card label{display:grid;gap:8px;margin:0;font-size:14px;font-weight:600}.auth-card input{width:100%;min-height:var(--control-h)}.auth-card [type=submit]{width:100%;justify-content:center;min-height:var(--control-h);margin-top:4px}
@media(max-width:480px){.auth-page{padding:18px}.auth-card{padding:28px 22px;border-radius:14px}.auth-caption{margin-bottom:28px}}
/* Compact order workspace. Other page and modal layouts retain their sizing. */
.doc-image-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;font-size:.75rem}
.document-studio [hidden]{display:none!important}
.doc-image-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 8px;padding:10px;background:#f5f8fa;border:1px solid var(--line);border-radius:6px}
.doc-image-controls label{flex:1;min-width:120px;font-size:.75rem;margin:0}
.doc-image-controls input,.doc-image-controls select{padding:7px;font-size:.8rem;min-height:32px}
.doc-rich-editor .doc-image{display:block;max-width:100%;height:auto;cursor:pointer}
.doc-rich-editor .doc-image[data-align=center]{margin-left:auto;margin-right:auto}
.doc-rich-editor .doc-image[data-align=right]{margin-left:auto;margin-right:0}
.doc-rich-editor img[data-doc-selected]{outline:2px solid var(--accent);outline-offset:3px}
.task-inbox{position:fixed;top:76px;right:24px;width:min(390px,calc(100vw - 24px));z-index:45;background:white;border:1px solid var(--line);box-shadow:0 8px 28px #15334920;border-radius:8px;overflow:hidden}
.task-inbox-head{display:flex;align-items:center;justify-content:space-between;padding:10px;gap:10px;font-size:13px}
.task-inbox-head .btn{font-size:11px;min-height:28px;padding:5px 7px}
.task-inbox-list{max-height:260px;overflow:auto}
.task-inbox-item{display:block;width:100%;text-align:left;border:0;border-top:1px solid var(--line);background:white;padding:10px}
.task-inbox-item:hover{background:#f0f8fc}
.task-inbox-item strong,.task-inbox-item small{display:block;overflow-wrap:anywhere}
.task-inbox-item strong{font-size:13px}.task-inbox-item small{color:var(--muted);margin-top:4px}
@media(max-width:800px){.task-inbox{top:64px;right:12px;width:calc(100vw - 24px)}}
.content:has(> .orders-register-page){max-width:none;padding:16px 16px 24px}
.orders-register-page{min-width:0;width:100%}
.orders-register-page>.toolbar{padding:0 0 12px;margin:0;border-bottom:0;row-gap:12px}
.orders-register-page>.toolbar>.order-process-tabs{min-width:0;max-width:100%}
.orders-register-page>.toolbar>.actions{margin-left:auto;justify-content:flex-end;max-width:100%}
.orders-register-results{background:var(--surface);border:1px solid var(--line);border-radius:6px;min-width:0;overflow:hidden}
.orders-register-results>.list-tools{padding:12px 18px}
.orders-register-results>.table-wrap{border-radius:0}
.orders-register-page~.footnote{padding:0 18px}
@media(max-width:800px){.orders-register-page>.toolbar,.orders-register-results>.list-tools{padding-left:12px;padding-right:12px}}
.content:has(> .order-workspace){padding:16px;max-width:none}
.order-workspace{font-size:13px;--order-gap:12px}
.order-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.order-toolbar h1{font-size:20px;line-height:1.2;margin:0;white-space:nowrap}
.order-toolbar>.actions{margin-left:auto}
.order-back{display:flex;padding:5px}
.order-status{max-width:280px;min-width:180px}
.order-status small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.order-workspace select,.order-workspace input:not([type=checkbox]),.order-workspace textarea{font-size:13px;border-radius:5px;padding:6px 8px;min-height:30px}
.order-workspace select{width:100%;min-width:0}
.order-workspace .btn{min-height:30px;padding:6px 9px;font-size:12px;gap:5px;border-radius:5px}
.order-workspace .btn .icon{width:15px;height:15px}
.order-workspace .actions{gap:6px}
.order-top-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr) minmax(230px,1fr);gap:var(--order-gap);align-items:stretch;margin-bottom:var(--order-gap)}
.order-top-grid>div{min-width:0;display:flex}
.order-workspace .panel{margin-bottom:var(--order-gap);border-radius:6px;box-shadow:none}
.order-top-grid .panel{margin:0;min-width:0;width:100%;display:flex;flex-direction:column}
.order-activity>.panel>.panel-body{margin-top:auto}
.order-workspace .panel-head{padding:9px 12px;min-height:36px;background:#f7fafb;gap:8px}
.order-workspace .panel-head h2{font-size:12px;font-weight:700;letter-spacing:.01em;line-height:1.4}
.order-workspace .panel-body{padding:12px}
.order-info-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.order-workspace .detail-meta{display:grid;grid-template-columns:1fr;gap:8px;margin:0}
.order-workspace .detail-meta dt{font-size:11px;line-height:1.4;margin:0 0 2px;color:var(--muted)}
.order-workspace .detail-meta dd{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.order-workspace .order-staff{margin-top:8px}
.order-workspace .workflow-tiles{display:grid;grid-template-columns:1fr;gap:8px;margin:0;align-content:start}
.order-workspace .workflow-tile{padding:0;border:0;background:none;border-radius:0;gap:5px;min-width:0}
.order-workspace .workflow-tile>span{font-size:11px;font-weight:400;line-height:1.4;color:var(--muted);gap:5px}
.order-workspace .workflow-tile>span .icon{display:none}
.order-workspace .workflow-tile select{font-weight:500;font-size:12px}
.order-workspace .workflow-tile small{font-size:11px;line-height:1.4}
.order-workspace .order-payment-method{display:flex;justify-content:space-between;gap:12px;padding-bottom:8px;margin-bottom:3px;border-bottom:1px solid var(--line);font-size:11px}
.order-payment-method>span{color:var(--muted)}
.order-payment-method>div{text-align:right;overflow-wrap:anywhere}
.order-payment-method>div>span,.order-payment-method small{display:block}
.order-payment-method small{font-size:10px;color:var(--muted);margin-top:2px}
.order-workspace .summary-line{font-size:12px;padding:4px 0;gap:8px;line-height:1.4}
.order-workspace .summary-line>span:last-child,.order-workspace .summary-line>strong{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
.order-workspace .summary-line.total{font-size:14px;padding-top:8px;margin-top:3px}
.order-workspace .summary-line.debt{font-size:13px}
.order-finance .summary-line{color:var(--text)}
.order-finance .summary-line>span:first-child{color:var(--muted)}
.order-finance .summary-line>span:last-child,.order-finance .summary-line>strong{color:var(--text)}
.order-workspace .feed{padding:9px 12px;overflow-wrap:anywhere}
.order-workspace .feed p{font-size:12px;line-height:1.5;margin:3px 0}
.order-workspace .feed small{display:block;font-size:10px;line-height:1.5}
.order-workspace .feed .btn{margin-top:6px}
.order-comment-feed{max-height:170px;overflow-y:auto;scrollbar-gutter:stable}
.order-comment-feed:empty{display:none}
.order-workspace #comment-form textarea{min-height:62px;height:62px;resize:vertical;width:100%}
.order-workspace #comment-form .actions{margin-top:6px}
.order-workspace .empty{padding:20px 12px;font-size:12px}
.order-items{min-width:0}
.order-repair-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--order-gap);align-items:start;margin-bottom:var(--order-gap)}
.order-workspace .order-repair-columns>.panel{min-width:0;margin-bottom:0}
@media(max-width:800px){.order-repair-columns{grid-template-columns:minmax(0,1fr)}}
.order-workspace .list-tools{padding:8px 12px}
.order-workspace .list-tools-top{gap:8px}
.order-workspace .list-options{margin-top:6px}
.order-workspace .list-options>summary,.order-workspace .list-count{font-size:11px}
.order-workspace .list-search{min-width:160px;max-width:420px}
.order-workspace .list-density{max-width:180px}
.order-workspace .order-lock-note{font-size:11px;padding:7px 12px;margin:0}
.order-workspace .order-sku{display:inline-flex;flex-wrap:wrap;margin:3px 10px 0 0;gap:5px;font-size:11px}
.order-workspace .order-sku .btn{font-size:10px;min-height:22px;padding:3px 5px}
.order-workspace .table-wrap{border-radius:0 0 6px 6px}
.order-workspace td.actions{display:table-cell}
.order-workspace td.actions>.btn{margin:2px}
.order-workspace .line-qty,.order-workspace .line-price,.order-workspace .line-cost{height:29px}
.order-workspace .order-intake{margin-bottom:var(--order-gap)}
.order-workspace .repair-device-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding:10px 12px;border-radius:6px}
.order-workspace .repair-device-fields>div{display:grid;grid-template-columns:1fr;align-content:start;gap:3px}
.order-workspace .repair-device-fields dt{font-size:11px;line-height:1.4;color:var(--muted)}
.order-workspace .repair-device-fields dd{font-size:12px;margin:0;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}
.order-workspace .order-intake .modal-hint{display:none}
.order-approval{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.order-approval .summary-line{gap:16px}
.order-fold{border:1px solid var(--line);border-radius:6px;background:white;min-width:0;align-self:start;overflow:hidden}
.order-fold>summary{cursor:pointer;padding:9px 12px;font-size:12px;font-weight:600;background:#f7fafb;line-height:1.4}
.order-fold>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.order-fold-count{font-size:11px;font-weight:400;color:var(--muted);margin-left:8px}
.order-fold[open]>summary{border-bottom:1px solid var(--line)}
.order-workspace .order-fold>.panel{border:0;margin:0}
.order-fold>.panel>.panel-head{display:none}
.order-finance .order-fold{border:0;border-top:1px solid var(--line);border-radius:0 0 6px 6px;align-self:stretch;margin-top:auto}
.order-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--order-gap);align-items:stretch}
.order-workspace .order-secondary>.panel{min-width:0;margin:0;display:flex;flex-direction:column}
.order-secondary>.panel>.panel-head{min-height:46px;flex-wrap:wrap}
.order-secondary>.panel>.panel-body,.order-history-list,.order-document-list{max-height:300px;overflow-y:auto;scrollbar-gutter:stable}
.order-history-list{list-style:none;margin:0;padding:0}
.order-history-entry{padding:10px 12px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.order-history-entry:last-child{border-bottom:0}
.order-history-heading,.order-history-meta{display:flex;justify-content:space-between;align-items:baseline;gap:6px 12px;flex-wrap:wrap}
.order-history-meta{margin-top:3px;font-size:11px;color:var(--muted)}
.order-history-meta time{white-space:nowrap}
.order-history-heading .text-link{font-size:11px}
.order-history-changes{display:grid;gap:7px;margin:8px 0 0}
.order-history-changes dt{font-size:11px;font-weight:600;margin:0 0 2px}
.order-history-changes dd{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;margin:0;min-width:0}
.order-history-changes dd>span{min-width:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.order-history-before,.order-history-empty{color:var(--muted)}
.order-history-after{font-weight:500}
.order-history-arrow{color:var(--muted);flex:none}
.order-item-actions button:disabled{cursor:not-allowed}
.order-document-list{list-style:none;padding:0;margin:0}
.order-document-row{padding:10px 12px;border-bottom:1px solid var(--line);display:grid;gap:7px}
.order-document-row:last-child{border-bottom:0}
.order-document-info{min-width:0;overflow-wrap:anywhere;font-size:12px}
.order-document-info small{display:block;margin-top:4px;font-size:10px}
.order-document-actions,.order-document-preview-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.order-document-preview-links{margin-bottom:12px}
.order-document-preview{max-width:1100px;width:calc(100vw - 32px)}
.order-document-preview-frame{width:100%;height:65vh;border:1px solid var(--line);background:white}
.order-document-preview-image{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}
.order-document-add-options{display:flex;gap:12px;flex-wrap:wrap}
.order-document-upload .modal-body{display:grid;gap:12px}
.order-document-upload-progress{width:100%;accent-color:var(--accent)}
.order-document-upload-status{font-size:13px;overflow-wrap:anywhere}
.order-document-upload-files{margin:0;padding-left:20px;font-size:13px}
.order-document-empty{padding:14px 12px;color:var(--muted);font-size:12px}
.order-workspace .list-check{font-size:12px;padding:5px 0;gap:8px}
@media(min-width:1600px){.order-top-grid{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr) minmax(260px,1fr)}}
@media(max-width:1120px){.order-top-grid{grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr)}.order-activity{grid-column:1/-1}.order-activity>.panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1fr)}.order-activity .panel-head{grid-column:1/-1}.order-comment-feed{max-height:120px}}
@media(max-width:800px){.content:has(> .order-workspace){padding:14px 12px}.order-toolbar{gap:8px}.order-toolbar h1{font-size:18px}.order-toolbar>.actions{margin-left:0}.order-status{flex:1;max-width:none}.order-top-grid{grid-template-columns:1fr}.order-activity{grid-column:auto}.order-activity>.panel{display:block}.order-comment-feed{max-height:160px}.order-secondary{grid-template-columns:1fr}.order-info-columns{gap:12px}.order-workspace .list-tools-top{flex-wrap:wrap}.order-workspace .list-search{width:100%;max-width:none}.order-workspace .product-link{max-width:260px}.order-workspace .table-wrap{overflow-x:auto}}

@media(max-width:800px){.order-workspace .repair-device-fields{grid-template-columns:1fr;gap:10px}.order-workspace .repair-device-fields>div{grid-template-columns:115px minmax(0,1fr);gap:8px}}

/* Direct order editing: one compact field group per independently saved change. */
.order-workspace .order-card-form{margin:0;min-width:0}
.order-workspace .order-card-form label{font-size:11px;font-weight:400;color:var(--muted);gap:4px;line-height:1.4}
.order-workspace .order-card-form input,.order-workspace .order-card-form select,.order-workspace .order-card-form textarea{font-size:12px;font-weight:400;color:var(--text)}
.order-workspace .order-card-form select:disabled,.order-workspace .order-card-form input:disabled{opacity:1;background:#f6f8fa;color:var(--muted);cursor:default}
.order-staff-editors{display:grid;gap:8px;margin:0}
.order-requisites{display:grid;align-content:start;gap:8px;min-width:0}
.order-delivery-fields{display:grid;gap:9px;margin-top:9px}
.order-delivery-fields[hidden]{display:none}
.order-form-feedback{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;align-items:start;justify-content:flex-end}
.order-form-feedback:not(:has(.form-error:not(:empty))):not(:has(button:not([hidden]))){display:none}
.order-workspace .order-form-feedback .form-error{margin:0;flex-basis:100%;font-size:11px;padding:6px 8px;border-radius:4px}
.order-workspace .order-card-save[hidden]{display:none}
.order-workspace [data-order-cancel][hidden]{display:none}
.order-workspace .order-card-save{min-height:25px;padding:4px 8px}
.order-workspace [data-order-cancel]{min-height:25px;padding:4px 7px;color:var(--muted);border-color:transparent}
.order-note-editor{border-top:1px solid var(--line);margin-top:12px;padding-top:9px;font-size:11px;color:var(--muted)}
.order-note-editor>summary{cursor:pointer;line-height:1.5}
.order-note-editor[open]>summary{margin-bottom:8px}
.order-note-editor textarea{min-height:65px;max-height:180px}
.order-workspace .order-note-editor .order-card-form label{font-size:0;gap:0}
.order-workspace .order-note-editor .order-card-form textarea{font-size:12px}
.order-workspace .order-discount-line{align-items:center;padding:4px 0}
.order-workspace .order-discount-line>label{font-size:12px}
.order-discount-input{display:flex;gap:0;align-items:center;max-width:145px;min-width:0}
.order-workspace .order-discount-input input{width:90px;min-width:0;text-align:right;border-radius:4px 0 0 4px;border-right:0;min-height:28px;height:28px;font-variant-numeric:tabular-nums}
.order-workspace .order-discount-input select{width:60px;min-width:0;border-radius:0 4px 4px 0;padding-left:6px;min-height:28px;height:28px}
.order-finance .summary-line.debt{border-top:1px solid var(--line);margin-top:5px;padding-top:9px;color:var(--text)}
.order-finance .summary-line.total{font-size:13px}
.order-unclassified{font-size:10px;text-align:right;line-height:1.4;color:var(--muted);margin:0 0 5px}
.order-total-reconciliation{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.order-total-reconciliation p{font-size:12px;line-height:1.45;color:var(--muted);margin:8px 0}
.order-total-reconciliation .summary-line{gap:12px;align-items:flex-start}
.order-total-reconciliation .summary-line strong{white-space:nowrap}
.order-workspace .order-intake .panel{margin-bottom:0}
.order-intake-editors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.order-workspace .order-intake-editors textarea{height:62px;min-height:62px;max-height:240px}
.order-comment-count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.order-activity .order-comment-feed{flex:1;max-height:210px;min-height:130px;overflow-y:auto;scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#c5d2da transparent;padding:4px 12px}
.order-comment-feed ol{list-style:none;padding:0;margin:0}
.order-comment{display:flex;gap:9px;padding:11px 0;border-bottom:1px solid #edf1f3}
.order-comment:last-child{border-bottom:0}
.order-comment-avatar{width:25px;height:25px;display:grid;place-items:center;background:#f0f4f6;color:#5e707c;border-radius:50%;font-size:9px;font-weight:600;flex-shrink:0;margin-top:1px}
.order-comment-content{min-width:0;flex:1}
.order-comment-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 8px;line-height:1.4}
.order-comment-meta strong{font-size:11px;font-weight:600;color:var(--text);overflow-wrap:anywhere}
.order-comment-meta time{font-size:10px;color:var(--muted);white-space:nowrap}
.order-comment-content p{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:4px 0 0}
.order-comment-empty{font-size:12px;color:var(--muted);margin:14px 0;line-height:1.5;text-align:center}
.order-activity .order-comment-composer{border-top:1px solid var(--line);background:#fbfcfd;padding:10px 12px}
.order-workspace #comment-form textarea{min-height:60px;height:60px;font-size:12px;max-height:180px}
.order-workspace #comment-form .actions{justify-content:flex-end;margin-top:7px}
.order-workspace #comment-form .form-error{font-size:11px;padding:6px 8px;margin:6px 0}
/* Let the other order cards set the row height; the feed fills all space above
   its composer and scrolls only when comments exceed that available space. */
@media(min-width:1121px){
 .order-activity .order-comment-feed{flex:1 1 0;height:0;min-height:130px;max-height:none}
 .order-activity>.panel>.panel-head,.order-activity .order-comment-composer{flex-shrink:0}
}
@media(max-width:1120px){.order-activity .order-comment-feed{max-height:190px;min-height:130px}.order-activity .order-comment-composer{border-top:0;border-left:1px solid var(--line);height:100%;display:flex;align-items:center}.order-activity #comment-form{width:100%}}
@media(max-width:800px){.order-activity .order-comment-feed{flex:none;max-height:260px;min-height:0}.order-activity .order-comment-composer{height:auto;display:block;flex:none;border-top:1px solid var(--line);border-left:0}.order-activity>.panel>.panel-body{margin-top:0}.order-intake-editors{grid-template-columns:1fr;gap:9px}}
@media(max-width:460px){.order-info-columns{grid-template-columns:1fr}.order-requisites{grid-template-columns:1fr}.order-requisites>.order-card-form{min-width:0}.order-workspace .order-top-grid .panel-body{padding:10px}.order-comment-meta{display:block}.order-comment-meta time{display:block;margin-top:2px}}

/* Repair intake keeps the device, serials, equipment and reported fault together. */
.order-workspace .order-intake-editors,.order-workspace .order-intake .repair-device-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.order-workspace .order-intake-editors>label{min-width:0;grid-template-rows:1fr auto}
.order-workspace .order-intake .repair-device-fields{padding:0;border:0;border-radius:0;background:transparent}
.order-workspace .order-intake .repair-device-fields>div{grid-template-columns:1fr;min-width:0}
@media(max-width:1120px){.order-workspace .order-intake-editors,.order-workspace .order-intake .repair-device-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.order-workspace .order-intake-editors,.order-workspace .order-intake .repair-device-fields{grid-template-columns:1fr;gap:9px}}
.order-workspace .order-client-summary{display:grid;gap:5px;margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line)}
.order-workspace .order-client-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
.order-workspace .order-client-summary dt{font-size:11px;font-weight:400;color:var(--muted)}
.order-workspace .order-client-summary dd{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px 8px;min-width:0;margin:0;font-size:12px;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.order-workspace .order-client-summary dd>span{white-space:nowrap}
.order-workspace .order-approval-comment{min-width:0;font-size:12px;line-height:1.5;color:var(--text)}
.order-workspace .order-approval-comment label,.order-workspace .order-approval-comment dt{font-size:11px;font-weight:400;color:var(--muted);margin-bottom:3px}
.order-workspace .order-approval-comment p,.order-workspace .order-approval-comment dd,.order-workspace .order-approval-comment blockquote{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}

/* Dense operational controls: see .interface-design/system.md. */
option,optgroup{font-family:var(--font-ui)}
.order-workspace .order-overview .panel-body{padding:12px}
.order-workspace .order-overview .order-contacts{grid-template-columns:1fr;gap:8px}
.order-overview{container-type:inline-size}
.order-workspace .order-overview .order-overview-body{display:flex;flex-direction:column;gap:16px;flex:1;padding:16px}
.order-overview .order-info-columns{gap:20px;align-items:start}
.order-overview-client,.order-overview .order-requisites{display:grid;gap:16px;min-width:0;align-content:start}
.order-workspace .order-overview .order-contacts{gap:12px}
.order-overview .order-contacts>div:first-child dd{font-size:14px;font-weight:650;line-height:1.5}
.order-overview .order-contacts>div:first-child .text-link{font-weight:650}
.order-overview .detail-meta>div{min-width:0}
.order-overview .detail-meta dd{margin:0}
.order-overview .order-staff-editors{gap:4px}
.order-overview .order-staff-editors>small{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.order-workspace .order-overview .workflow-tiles{gap:16px}
.order-workspace .order-overview .workflow-tile{gap:4px}
.order-workspace .order-overview .workflow-tile>span svg{display:none}
.order-workspace .order-overview .workflow-tile small{min-height:0}
.order-overview-delivery{padding-top:12px;border-top:1px solid var(--line)}
.order-overview-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2,var(--bg));margin-top:auto}
.order-workspace .order-overview-facts .order-client-summary{display:contents}
.order-workspace .order-overview-facts .order-client-summary>div{display:block}
.order-workspace .order-overview-facts dt{font-size:11px;line-height:1.4;color:var(--muted);margin:0 0 4px}
.order-workspace .order-overview-facts dd{font-size:12px;line-height:1.5;text-align:left;justify-content:flex-start;font-weight:550;margin:0;font-variant-numeric:tabular-nums}
.order-workspace .order-overview-facts .order-client-summary dd>span{white-space:normal;overflow-wrap:anywhere}
.order-overview-facts:not(:has(.order-client-summary)){grid-template-columns:1fr}
@container(max-width:380px){.order-overview .order-info-columns{grid-template-columns:1fr;gap:16px}.order-overview .order-requisites{padding-top:16px;border-top:1px solid var(--line)}.order-overview-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.order-overview-facts>dl:first-child{grid-column:1/-1}}
.order-workspace .order-staff-editors select,.order-workspace .workflow-tile select{font-size:12px;font-weight:400;min-height:30px}
.order-finance-footer{margin-top:auto;border-top:1px solid var(--line);background:#f7fafb;border-radius:0 0 6px 6px}
.order-finance-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;flex-wrap:wrap}
.order-payments-toggle{min-height:30px;display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:0}
.order-payments-toggle .order-fold-count{margin-left:4px}
#order-payment-history{border-top:1px solid var(--line);max-height:240px;overflow:auto}
#order-payment-history[hidden]{display:none}
.task-comment-actions{margin-top:12px;display:flex;justify-content:flex-end}
.order-items .list-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:8px 12px}
.order-items .list-tools-top{display:flex;flex-wrap:nowrap;min-width:0;gap:8px}
.order-items .list-search{min-width:120px;max-width:360px}
.order-items .list-search input{font-size:12px;min-height:30px}
.order-items .list-density select{min-height:30px;font-size:11px}
.order-items .list-tools-top>[data-list-count]{font-size:10px;white-space:nowrap}
.order-items .list-tools .btn.small{margin:0;min-height:28px;font-size:11px}
.order-items .list-options{margin:0;min-width:0;grid-column:2;grid-row:1}
.order-items .list-options[open]{grid-column:1/-1;grid-row:2}
.order-items .list-options>summary{font-size:11px;white-space:nowrap;min-height:30px;display:flex;align-items:center;justify-content:flex-end}
.order-items .list-options-body{grid-column:1/-1;max-width:none;padding-top:0}
.order-items .list-options:not([open])>.list-options-body{display:none}
.order-workspace .order-lock-note{font-size:11px;line-height:1.4;padding:5px 12px;background:#fafbfc}
@media(max-width:1120px){.order-items .list-density{display:none}.order-items .list-tools-top>[data-list-count]{display:none}}
@media(max-width:800px){.content:has(> .orders-register-page){padding:12px}.order-items .list-tools{gap:6px 8px}.order-items .list-search{min-width:0;max-width:none;width:auto}.order-items .list-tools-top{flex-wrap:nowrap}.order-items .list-tools-top>[data-list-reset]{display:none}}
@media(pointer:coarse){.order-workspace .btn,.order-payments-toggle{min-height:40px}.order-workspace select,.order-workspace input:not([type=checkbox]){min-height:40px}}

.catalog-column-toolbar{display:flex;justify-content:flex-end;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line)}
.order-item-table th,.order-item-table td{text-align:left;vertical-align:middle}
.order-item-table [data-item-column=name]{min-width:240px}
.order-item-table [data-item-column=qty]{min-width:70px}
.order-item-table [data-item-column=price]{min-width:110px}
.order-item-table [data-item-column=amount]{min-width:120px;font-variant-numeric:tabular-nums}
.order-item-table [data-item-column=master]{min-width:150px}
.order-item-table .line-master{width:100%;min-width:140px;max-width:210px;min-height:29px;height:29px;padding:3px 24px 3px 7px;font-size:13px}
.order-item-table [data-item-column=result]{min-width:180px;max-width:380px;white-space:normal}
.order-item-table .work-result{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
.order-item-actions{display:flex;align-items:center;gap:4px;white-space:nowrap;flex-wrap:nowrap}
.order-item-dirty td{background:#edf7fc}
.order-item-table .line-qty{width:70px}.order-item-table .line-price,.order-item-table .line-cost{width:110px}

[hidden]{display:none!important}
.detail-meta dd>small{display:block;margin-top:3px}

.order-search-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid var(--line)}
.order-items .order-search-tools .list-search{width:min(100%,460px);max-width:460px;margin:0}
.order-search-tools [data-list-count]{font-size:11px;color:var(--muted);white-space:nowrap}
.line-product-options{max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:6px;margin:-10px 0 14px;background:#fff}
.line-product-options button{display:block;width:100%;padding:8px 12px;text-align:left;color:var(--text);background:#fff;border:0;border-bottom:1px solid var(--line);font:inherit;cursor:pointer}
.line-product-options button:last-child{border-bottom:0}
.line-product-options button small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.line-product-options button:hover,.line-product-options button[aria-selected=true]{background:#edf7fc}
.line-product-options p{padding:8px 12px;margin:0;color:var(--muted)}
.status-color-field{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.status-color-field label{flex:0 0 180px}
.status-color-field input[type=color]{height:36px;min-height:36px;padding:3px;cursor:pointer}
.status-color-preview{display:flex;align-items:center;min-height:36px}
.status-color-hint{font-size:12px;color:var(--muted);margin:0 0 14px}
.order-status-color-control{font-weight:600;color-scheme:light}
.order-status-color-control option{font-weight:400}
.employee-avatar{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.employee-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.employee-avatar.small{width:26px;height:26px;font-size:11px}
.employee-identity{display:flex;align-items:center;gap:8px}
.employee-photo-preview img{display:block;max-width:180px;max-height:180px;border-radius:8px;object-fit:cover}
#modal.stock-product-drawer{inset:0 0 0 auto;margin:0;width:min(620px,100%);max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;border-left:1px solid var(--line);box-shadow:-12px 0 36px #10202c20;overflow:auto}
.stock-product-drawer .modal-head{position:sticky;top:0;z-index:2;background:#fff;padding:16px 20px}
.stock-product-drawer .modal-head h2{font-size:18px}
.stock-product-drawer .modal-body{padding:16px 20px}
.stock-product-drawer .modal-foot{position:sticky;bottom:0;z-index:2;padding:12px 20px}
.stock-product-drawer .panel{margin-top:16px}
.bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line)}
.bulk-toolbar>small{flex-basis:100%;color:var(--muted);font-size:11px}
.bulk-toolbar select{width:auto;min-width:150px;font-size:12px;min-height:30px}
.bulk-toolbar .btn{min-height:30px}
.bulk-check-cell{width:32px!important;min-width:32px!important;text-align:center!important;padding:6px!important}
.bulk-check-cell input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;cursor:pointer;vertical-align:middle}
.bulk-selection-summary{max-height:280px;overflow:auto;margin:12px 0}
.bulk-selection-summary table{width:100%}
.bulk-selection-summary td{padding:6px;border-bottom:1px solid var(--line)}
.bulk-selection-summary input{width:80px;min-width:60px}
.bulk-problems{margin:12px 0;padding:12px;color:#96362f;background:#fff6f5;border:1px solid #efd1ce;border-radius:6px}
.bulk-print-preview{width:100%;height:55vh;border:1px solid var(--line)}
.stock-transfer-dialog{width:min(840px,calc(100vw - 32px))}
.stock-transfer-dialog .modal-head,.stock-transfer-dialog .modal-foot{padding:14px 22px}
.stock-transfer-dialog .modal-head h2{font-size:18px}
.stock-transfer-dialog .modal-body{padding:16px 22px;gap:10px}
.stock-transfer-dialog .modal-hint{margin:0;font-size:12px;line-height:1.5}
.stock-transfer-dialog label{font-size:12px;gap:5px}
.stock-transfer-dialog input,.stock-transfer-dialog select{min-height:34px;padding:7px 10px;font-size:13px}
.transfer-place-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.transfer-place-picker{min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fbfcfd}
.transfer-place-picker legend{padding:0 6px;font-size:13px;font-weight:700}
.transfer-place-fields{display:grid;gap:9px}
.transfer-place-fields label{min-width:0;font-size:12px}
.transfer-place-fields select{min-width:0;width:100%;font-size:13px;min-height:36px;padding:7px 10px}
.transfer-stock-summary{display:block;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5;white-space:pre-line}
.transfer-unit-fields{margin:0}
.stock-transfer-dialog [hidden]{display:none!important}
@media(max-width:640px){.transfer-place-grid{grid-template-columns:1fr;gap:10px}.stock-transfer-dialog .modal-body{padding:16px}.transfer-place-picker{padding:12px}}
@media(max-width:460px){.order-fulfillment-row{grid-template-columns:1fr}.order-search-tools [data-list-count]{display:none}.bulk-toolbar{gap:6px}.bulk-toolbar select{min-width:0;flex:1}}

/* Compact repair intake; equipment stays explicit and reusable. */
.repair-intake-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.repair-intake-create>.repair-equipment,.repair-intake-create>.repair-fault{grid-column:1/-1}
.repair-equipment{min-width:0;margin:0;padding:0;border:0;display:grid;gap:7px}
.repair-equipment legend{padding:0;margin:0 0 7px;font-size:.875rem;font-weight:550}
.repair-equipment-checks{display:flex;flex-wrap:wrap;gap:7px 12px;align-content:start}
.repair-equipment-checks label{display:flex;align-items:center;gap:6px;font-weight:400;line-height:1.4}
.repair-equipment-checks input{width:15px;height:15px;min-height:15px;padding:0;margin:0;flex-shrink:0;accent-color:var(--accent)}
.repair-equipment-other[hidden]{display:none}
.repair-equipment-other textarea,.repair-intake-create textarea{height:52px;min-height:52px;max-height:180px;padding:7px 9px}
.repair-intake-create input:not([type=checkbox]){min-height:34px;padding:7px 9px}
.order-workspace .order-intake-editors{align-items:start;grid-template-columns:1fr 1fr 1.25fr 1.25fr}
.order-workspace .order-intake-editors>label{grid-template-rows:auto auto;align-content:start}
.order-workspace .order-intake-editors input:not([type=checkbox]){height:32px;min-height:32px;padding:6px 8px}
.order-workspace .order-intake-editors textarea{height:48px;min-height:48px;padding:6px 8px}
.order-workspace .repair-equipment legend,.order-workspace .repair-equipment-checks label{font-size:11px}
.order-workspace .repair-equipment-checks{gap:6px 10px}
.repair-intake-create .repair-fault textarea{height:34px;min-height:34px;max-height:none;resize:none;overflow:hidden}
.order-workspace .order-intake-editors .repair-fault textarea{height:32px;min-height:32px;max-height:none;resize:none;overflow:hidden;line-height:1.4}
.order-workspace .order-intake-editors .repair-equipment legend{margin-bottom:4px;line-height:1.4;font-weight:400;color:var(--muted)}
.order-workspace .order-intake-editors .repair-equipment-checks{min-height:32px;align-items:center;align-content:center}
@media(max-width:1120px){.order-workspace .order-intake-editors{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.repair-intake-create,.order-workspace .order-intake-editors{grid-template-columns:1fr}.repair-intake-create>.repair-equipment,.repair-intake-create>.repair-fault{grid-column:auto}}

.payment-rate-info{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);margin:-6px 0 14px}
.payment-rate-info small{flex:1;min-width:180px;line-height:1.5}
.payment-rate-info[hidden],.payment-rate-info button[hidden]{display:none}
#payment-rate-auto-label{margin-bottom:14px}
#payment-rate-auto-label[hidden]{display:none!important}

.status-settings-group{min-width:0;border:1px solid var(--line);border-radius:8px;padding:14px;margin:0 0 18px}.status-settings-group legend{padding:0 6px;font-weight:650}.status-settings-group .row{margin:0 0 12px}.status-settings-group .row:last-child{margin-bottom:0}.status-settings-group .checks{margin:4px 0 10px}.status-settings-group .checks:last-child{margin-bottom:0}

/* Each country keeps its selling price beside its storefront display option. */
.country-price-rows{display:grid;gap:12px}.country-price-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,1fr);gap:16px;align-items:end}.country-price-row>label{margin:0;min-width:0}.country-price-row>.country-price-discount{display:flex;align-items:center;gap:8px;padding-bottom:10px;font-size:.8rem;font-weight:500;line-height:1.35}.country-price-discount input[type=checkbox]{padding:0;margin:0;width:16px;min-height:16px;height:16px;flex:0 0 16px;accent-color:var(--accent)}.country-price-row.no-site{grid-template-columns:minmax(0,1fr)}.country-price-discount small{display:block;color:var(--ink-3);font-size:var(--fs-small);font-weight:400}@media(max-width:480px){.country-price-row{grid-template-columns:minmax(0,1fr) minmax(140px,1fr);gap:10px}.country-price-row>.country-price-discount{font-size:.75rem}}
.boot-recovery-actions{justify-content:center;margin:20px 0}.boot #connection-recovery-error{max-width:560px;margin:18px auto 0;overflow-wrap:anywhere}

.document-generation .doc-custom-values:empty{display:none}.document-generation .doc-generation-columns{margin:18px 0 16px}.document-generation .doc-generation-columns>h3{font-size:.92rem;margin:0 0 6px}.document-generation .doc-generation-columns>.modal-hint{margin:0 0 12px}.document-generation .doc-generation-table{min-width:0;margin:0 0 12px;padding:12px 14px 14px;border:1px solid var(--line);border-radius:8px}.document-generation .doc-generation-table:last-child{margin-bottom:0}.document-generation .doc-generation-table>legend{padding:0 6px;font-size:.8rem;font-weight:600}.document-generation .doc-generation-column-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}.document-generation .doc-generation-column-grid .doc-check{margin:0;min-width:0;align-items:flex-start;line-height:1.4}.document-generation .doc-generation-column-grid input[type=checkbox]{padding:0;margin:1px 0 0}.document-generation .doc-generation-column-grid span{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.document-generation .doc-generation-column-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media(max-width:420px){.document-generation .doc-generation-column-grid{grid-template-columns:minmax(0,1fr)}}
/* the cost of a service (owner, 30.11.2026 12:27: «Добавь возможность устанавливать себестоимость услуги»): in the card of a
   service beside the price of each country; tokens only */
.country-price-fields:has([data-country-cost]) .country-price-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.catalog-service-costs{margin-top:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--line)}
.catalog-service-costs h3{margin:0 0 var(--space-2);color:var(--ink-2);font-size:var(--fs-small)}
/* «Восстановлен черновик» at the top of a form (30.11.2026; public/form-drafts.js) */
.form-draft-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-1) var(--space-3);padding:var(--space-2) var(--space-3);border:1px dashed var(--line);border-radius:var(--r-md);background:var(--surface-2)}
/* the photo of a product left of its name in «Каталог» (owner, 02.12.2026 14:36); without a photo — a quiet mark */
.catalog-product-line{display:flex;align-items:center;gap:var(--space-2);min-width:0}
.catalog-product-text{flex:1 1 auto;min-width:0}
.catalog-thumb{flex:none;display:grid;place-items:center;width:calc(var(--space-6) + var(--space-2));height:calc(var(--space-6) + var(--space-2));overflow:hidden;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface)}
.catalog-thumb>img{display:block;width:100%;height:100%;object-fit:contain}
.catalog-thumb-empty{background:var(--surface-2);color:var(--ink-2)}
.catalog-thumb-empty>svg{width:var(--icon);height:var(--icon);color:var(--ink-2)}


/* attendance.css */
.content:has(> .attendance-page){max-width:none;padding:16px}
.attendance-page{min-width:0}
.attendance-page .page-head{align-items:center;margin:0 0 15px}
.attendance-page .page-head h1{font-size:23px;margin-bottom:3px;letter-spacing:-.5px}
.attendance-page .page-head p{font-size:12px}
.attendance-page .btn{min-height:32px;padding:6px 10px;font-size:12px}
.attendance-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.attendance-toolbar .tabs{margin:0;max-width:100%}
.attendance-toolbar .tabs button{font-size:12px;padding:7px 10px;white-space:normal}
.attendance-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.attendance-filter-disclosure{min-width:0;max-width:100%}
.attendance-filter-disclosure>summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer}
.attendance-filter-disclosure>summary::-webkit-details-marker{display:none}
.attendance-filter-body,.attendance-filter-disclosure>.people-filters{margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2,var(--bg))}
.people-filter-disclosure{padding:12px 14px}
.attendance-controls input{min-height:32px;height:32px;padding:5px 9px;border-radius:6px;font-size:12px}
.attendance-search{width:240px;max-width:100%;margin:0}
.attendance-month{display:flex;align-items:center;gap:4px}
.attendance-month label{margin:0}
.attendance-month input{width:160px}
.attendance-month .btn{font-size:20px;line-height:1;width:30px;min-height:32px;padding:2px}
.attendance-panel{border-radius:7px;margin-bottom:0;min-width:0}
.attendance-directory th,.attendance-directory td{padding:9px 14px;font-size:12px}
.attendance-directory .employee-identity strong,.attendance-calendar .employee-identity strong{font-size:12px;display:block;white-space:normal;overflow-wrap:anywhere;font-weight:600}
.attendance-directory .employee-identity small,.attendance-calendar .employee-identity small{font-size:10px;display:block;margin-top:3px}
.attendance-directory .actions{justify-content:flex-end;gap:5px}
.attendance-directory .avatar,.attendance-calendar .avatar{width:28px;height:28px;font-size:11px}
.attendance-directory td:nth-child(2){white-space:normal}
.attendance-scroll{width:100%;max-width:100%;overflow:auto;max-height:68vh;overscroll-behavior:contain;scrollbar-gutter:stable}
.attendance-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.attendance-calendar{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-variant-numeric:tabular-nums}
.attendance-calendar th,.attendance-calendar td{padding:0;border-right:1px solid #edf0f2;border-bottom:1px solid var(--line);vertical-align:middle;font-size:11px}
.attendance-calendar thead th{text-align:center;font-weight:600;color:var(--text);height:37px;position:sticky;top:0;z-index:3;background:#f7f9fa;white-space:normal;line-height:1.25}
.attendance-calendar thead tr+tr th{top:31px}
.attendance-calendar thead tr:first-child th:not([rowspan]){height:31px}
.attendance-calendar .attendance-group{text-align:left;padding:7px 10px;color:var(--muted);font-size:11px}
.attendance-calendar .attendance-person{width:205px;min-width:205px;max-width:205px;text-align:left;padding:9px 10px;position:sticky;left:0;z-index:2;background:white;box-shadow:1px 0 0 var(--line);font-weight:400}
.attendance-calendar thead .attendance-person{z-index:5;background:#f7f9fa}
.attendance-calendar .attendance-person .employee-identity{gap:7px}
.attendance-calendar .attendance-day{width:31px;min-width:31px;max-width:31px;text-align:center}
.attendance-calendar .attendance-day small{display:block;margin-top:2px;color:var(--muted);font-size:9px;line-height:1}
.attendance-calendar tbody .attendance-day{height:53px;background:#fff}
.attendance-calendar .attendance-day.is-weekend{background:#f3f5f7}
.attendance-calendar .attendance-day.is-today{box-shadow:inset 1px 0 #4bb4df,inset -1px 0 #4bb4df}
.attendance-calendar thead .attendance-day.is-today{color:#116c9c;background:#e9f6fc}
.attendance-calendar .attendance-balance{width:86px;min-width:86px;max-width:86px;padding:7px;text-align:center;overflow-wrap:anywhere;white-space:normal}
.attendance-calendar tbody .attendance-balance{font-size:12px;background:white}
.attendance-calendar .attendance-available{background:#f7fbfd;font-weight:650}
.attendance-calendar tbody .attendance-available{background:#f7fbfd}
.attendance-calendar tbody tr:hover .attendance-person,.attendance-calendar tbody tr:hover .attendance-balance{background:#f0f8fc}
.attendance-calendar .attendance-overdrawn{color:var(--red)}
.attendance-day-mark{display:flex;align-items:center;justify-content:center;position:relative;margin:0 auto;padding:0;width:25px;height:29px;border-radius:4px;border:1px solid transparent;color:#9aa5ac;font-size:12px;font-weight:650}
.attendance-day-mark:hover{border-color:#82b7d0;background:#e7f2f9;color:#14618b}
.attendance-day-mark.has-note:after{content:'';position:absolute;top:3px;right:3px;width:3px;height:3px;background:currentColor;border-radius:50%}
.attendance-work{color:#19703b;background:#e6f5eb}
.attendance-vacation{color:#725721;background:#fbf1d9}
.attendance-sick{color:#b33038;background:#fde7e9}
.attendance-absent{color:#9d4b43;background:#fbecea}
.attendance-day_off{color:transparent;background:transparent}
.attendance-allowance{display:inline-flex;align-items:center;justify-content:center;gap:4px;color:#12699f;min-height:28px;padding:2px 3px;border-radius:4px;font-size:12px;font-weight:600;white-space:normal}
.attendance-allowance:hover{background:#e7f2f9}
.attendance-allowance svg{width:12px;height:12px;flex-shrink:0}
.attendance-legend{display:flex;align-items:center;flex-wrap:wrap;gap:7px 16px;padding:12px 14px;border-top:1px solid var(--line)}
.attendance-legend>span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}
.attendance-key{display:inline-flex;align-items:center;justify-content:center;width:21px;height:22px;font-size:11px;font-weight:650;border-radius:4px}
.attendance-notes{padding:0 14px 12px}
.attendance-notes p{font-size:11px;line-height:1.55;color:var(--muted);margin:0 0 3px}
.attendance-loading,.attendance-error{padding:34px 18px;font-size:13px;color:var(--muted)}
.attendance-error p{margin-bottom:12px;color:var(--red)}
.attendance-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.attendance-modal{width:min(570px,calc(100vw - 24px))}
.attendance-modal .modal-head,.attendance-modal .modal-foot{padding:16px 20px}
.attendance-modal .modal-head h2{font-size:18px}
.attendance-modal .modal-body{padding:18px 20px}
.attendance-modal .modal-body>label,.attendance-modal .modal-body>.row{margin-bottom:14px}
.attendance-modal .modal-body label{font-size:12px;gap:5px}
.attendance-modal input,.attendance-modal select,.attendance-modal textarea{font-size:13px;padding:8px 10px;min-height:36px}
.attendance-modal textarea{min-height:70px}
.attendance-modal .attendance-check{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:450;line-height:1.5}
.attendance-modal .attendance-check input{width:16px;height:16px;min-height:16px;margin:2px 0 0;flex:0 0 16px;accent-color:var(--accent)}
.attendance-modal .attendance-period-preview{display:flex;gap:8px 14px;flex-wrap:wrap;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:6px;background:#f7f9fa;font-size:12px}
.attendance-period-preview small,.attendance-period-preview p{width:100%;margin:0;font-size:11px;line-height:1.5}
.attendance-period-preview p{color:#85652d}
.attendance-modal [hidden]{display:none!important}
.attendance-form-identity{font-weight:600;font-size:13px;margin-bottom:16px}
.attendance-allowance-preview{font-size:12px;color:var(--muted);margin-bottom:0}
.attendance-day-details{margin:0;display:grid;gap:15px}
.attendance-day-details dt{font-size:11px;color:var(--muted);margin-bottom:4px}
.attendance-day-details dd{margin:0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.employee-directory{width:100%}
/* owner, 19.11.2026 15:07: «Обрезается и приходится прокручивать» — the cells wrap, the table fits its frame */
.employee-directory th,.employee-directory td{white-space:normal}
.employee-directory td.employee-login{overflow-wrap:anywhere;min-width:96px}
.employee-directory .employee-inline{display:none}
.table-wrap:has(>.employee-directory){container:people-table/inline-size}
@media(min-width:801px){
 @container people-table (max-width:900px){.employee-directory :is(.employee-col-attendance,.employee-col-login){display:none}.employee-directory :is(.employee-inline-attendance,.employee-inline-login){display:block}}
 @container people-table (max-width:700px){.employee-directory .employee-col-work{display:none}.employee-directory .employee-inline-work{display:block}}
}
.employee-directory th,.employee-directory td{padding-left:var(--space-3);padding-right:var(--space-3)}
.employee-directory th.employee-directory-menu,.employee-directory td.employee-directory-menu{width:1%;padding-left:var(--space-1);padding-right:var(--space-2);text-align:right}
.employee-directory .employee-contact{display:block;max-width:230px;overflow-wrap:anywhere;white-space:normal;line-height:1.5;font-size:12px}
.employee-directory td:nth-child(3){min-width:120px}
.employee-directory .employee-contact[href^="tel:"]{white-space:nowrap}
.employee-directory .employee-contact+.employee-contact{margin-top:3px}
.employee-directory td,.employee-directory th{vertical-align:middle}
.employee-directory td:first-child{min-width:120px}
.employee-directory td:nth-child(4){white-space:normal}
.employee-directory td small{display:block;color:var(--muted);font-size:10px;margin-top:3px;white-space:normal}
.employee-hire-date{white-space:nowrap}
.employee-empty{color:var(--muted)}
.employee-directory-actions{display:flex;justify-content:flex-end;gap:var(--space-1);flex-wrap:wrap}
.employee-directory-actions .btn{min-height:28px;padding:4px 7px;font-size:11px}
.employee-deleted>summary{padding:12px 14px;font-size:12px;color:var(--muted);cursor:pointer;border-top:1px solid var(--line)}
.employee-profile-modal{width:min(650px,calc(100vw - 24px))}
.account-identity{display:flex;align-items:center;gap:18px}
.account-identity p{margin:0;line-height:1.6}
#modal .account-identity .avatar.account-avatar{width:80px;height:80px;font-size:28px}
.account-photo-button{justify-self:start}
.account-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}
.employee-profile-modal .modal-head,.employee-profile-modal .modal-foot{padding:16px 20px}
.employee-profile-modal .modal-body{padding:18px 20px}
.employee-profile-modal .modal-head h2{font-size:18px}
.employee-profile-fields label{font-size:12px;gap:5px}
.employee-profile-fields input,.employee-profile-fields select{font-size:13px;min-height:35px;padding:7px 10px}
.employee-profile-fields .row{gap:12px}
.employee-access-fields{padding-top:12px;margin-top:16px;border-top:1px solid var(--line)}
.employee-access-fields h3{font-size:13px;margin:0 0 12px}
.employee-access-fields .checks{gap:8px 15px}
.employee-access-fields .checks label{font-weight:450}
.employee-access-fields input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0}
.employee-access-fields>label{margin-top:12px}
.employee-access-fields>label:first-of-type{margin-top:0}
.employee-access-fields .checks{margin:6px 0 2px}
/* «Учитывать в табеле рабочего времени» in the employee card: the same compact checkbox as in the attendance forms */
.employee-profile-modal .attendance-check{display:flex;align-items:center;gap:8px;margin:8px 0 2px;font-size:13px;font-weight:450;line-height:1.5}
.employee-profile-modal .attendance-check input{width:16px;height:16px;min-height:16px;margin:0;flex:0 0 16px;accent-color:var(--accent)}
@media(max-width:760px){.attendance-toolbar{align-items:stretch}.attendance-controls{width:100%}.attendance-search{flex:1;min-width:150px}.attendance-page .page-head{flex-wrap:wrap;gap:10px}.attendance-calendar .attendance-person{width:160px;min-width:160px;max-width:160px}.attendance-calendar .attendance-person .avatar{display:none}.attendance-calendar .attendance-balance{width:77px;min-width:77px;max-width:77px}.attendance-scroll{max-height:62vh}.attendance-directory th,.attendance-directory td{padding:9px 10px}.attendance-directory .actions{flex-wrap:nowrap}.attendance-modal .row{grid-template-columns:1fr 1fr;gap:10px}}
@media(prefers-reduced-motion:reduce){.attendance-scroll{scroll-behavior:auto}}

/* People directory and language-independent attendance marks. */
.attendance-day-mark span{font-size:17px;line-height:1}.attendance-key{font-size:15px}.attendance-legend .attendance-day_off{border:1px solid var(--line);background:white}.attendance-unmarked{border:1px dashed var(--line)}
.people-filters{display:flex;gap:12px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--line)}.people-filters label{font-size:11px;gap:4px;min-width:145px;margin:0}.people-filters select{min-height:32px;font-size:12px;padding:5px 8px}.people-role-labels{display:flex;gap:4px;flex-wrap:wrap;max-width:300px}.people-role-labels span{background:#eef4f7;border-radius:4px;padding:3px 6px;font-size:11px}.partner-directory{min-width:760px}.partner-directory td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.partner-directory td{white-space:normal;vertical-align:middle}.partner-directory .partner-note{max-width:300px;white-space:pre-wrap;overflow-wrap:anywhere}.partner-directory .employee-contact{display:block;line-height:1.5}.partner-directory .employee-directory-actions{min-width:130px}.employee-directory td:nth-child(5){white-space:normal;min-width:135px}
/* 17.11.2026 check: «Использовано», «Запланировано» were cut in the middle of the word */
.attendance-calendar th.attendance-balance{width:104px;min-width:104px;max-width:104px;overflow-wrap:normal;word-break:normal;hyphens:auto}


/* roles.css */
.role-editor-dialog{width:min(1080px,calc(100vw - 28px))}
.role-editor-dialog .modal-body{padding:18px 22px}
.role-editor-dialog .modal-head,.role-editor-dialog .modal-foot{padding:14px 22px}
.role-editor-dialog .modal-head h2{font-size:19px}
.role-editor-top{display:grid;grid-template-columns:minmax(200px,1fr) minmax(280px,1.3fr);gap:20px;margin-bottom:16px}
.role-editor-top>label{margin:0}
.role-master-option{display:flex;align-items:flex-start;gap:8px;margin:0 0 16px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:#f9fbfc;cursor:pointer}
.role-master-option input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:2px 0 0;accent-color:var(--accent)}
.role-visibility-field{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;max-width:420px}
.role-visibility-field small{font-size:12px;line-height:1.45}
.role-master-option strong{display:block;font-size:12px;line-height:1.5;font-weight:600}
.role-master-option small{display:block;font-size:11px;line-height:1.5;color:var(--muted);font-weight:400}
.role-editor-dialog label,.role-editor-dialog input{font-size:12px}
.role-editor-dialog input[type=text],.role-editor-dialog input[type=search]{min-height:34px;padding:7px 10px}
.role-country-field .checks{gap:8px 16px;margin:8px 0 0}
.role-country-field .checks label{font-size:12px;font-weight:450}
.role-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:7px}
.role-editor-toolbar label{width:390px;max-width:70%;margin:0}
.role-editor-toolbar>span{font-size:12px;white-space:nowrap;color:var(--muted)}
.role-dependency-note,.role-access-note{font-size:11px;line-height:1.5;color:var(--muted);margin:6px 0 12px}
.role-permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
.role-permission-group{border:1px solid var(--line);border-radius:6px;overflow:hidden;min-width:0}
.role-permission-group>summary{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:10px 12px;cursor:pointer;font-weight:650;font-size:13px;background:#f5f8fa}
.role-permission-group>summary>span:first-of-type{flex:1}
.role-permission-group>summary>span:last-child{font-size:11px;color:var(--muted);font-weight:450}
.role-group-actions{display:flex;gap:14px;padding:8px 12px 3px}
.role-group-actions button{font-size:11px;color:#12699f;padding:2px 0}
.role-permission-list{padding:4px 12px 10px}
.role-permission-option{display:flex;align-items:flex-start;gap:8px;margin:0;padding:7px 0;border-bottom:1px solid #eff2f4;cursor:pointer}
.role-permission-option:last-child{border-bottom:0}
.role-permission-option input,.role-country-field input{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:1px 0 0;accent-color:var(--accent)}
.role-permission-option strong{display:block;font-size:12px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.role-permission-option small{display:block;font-size:10px;line-height:1.5;color:var(--muted);font-weight:400;margin-top:2px}
.role-no-results{padding:20px 0;color:var(--muted);font-size:12px}
.role-editor-dialog [hidden]{display:none!important}
.role-access-note{margin-top:14px}
@media(max-width:700px){.role-editor-top,.role-permission-groups{grid-template-columns:1fr}.role-editor-top{gap:12px}.role-editor-dialog .modal-body{padding:14px}.role-editor-toolbar{align-items:flex-start;flex-direction:column;gap:5px}.role-editor-toolbar label{max-width:100%;width:100%}.role-editor-dialog .modal-head,.role-editor-dialog .modal-foot{padding:14px}.role-group-actions button{min-height:32px}.role-permission-option{min-height:40px}}

.role-warehouse-table{width:100%;border-collapse:collapse}.role-warehouse-table th,.role-warehouse-table td{padding:8px;text-align:left}.role-warehouse-table input{width:18px;height:18px}

.role-order-access{border:1px solid var(--line);border-radius:6px;margin:12px 0;overflow:hidden}.role-order-access h3{font-size:13px;margin:0;padding:10px 12px;background:#f5f8fa}.role-order-table{width:100%;border-collapse:collapse}.role-order-table th,.role-order-table td{padding:6px 12px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.35}.role-order-table th{text-align:left;font-weight:500}.role-order-table td,.role-order-table thead th:not(:first-child){width:100px;text-align:center}.role-order-table input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--accent)}.role-order-access>.role-dependency-note{padding:0 12px;margin:8px 0}.role-scope-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;align-items:start}.role-scope-groups p{font-size:11px;color:var(--muted);padding:0 12px}.role-permission-list{padding-top:0}.role-permission-option{padding:6px 0}.role-permission-groups{gap:10px}.role-editor-top{margin-bottom:10px}.role-master-option{padding:7px 10px;margin-bottom:10px}@media(max-width:700px){.role-scope-groups{grid-template-columns:1fr}.role-order-table td,.role-order-table thead th:not(:first-child){width:68px}.role-order-table th,.role-order-table td{padding:7px 8px}}

.settings-grid>.panel:has(.role-settings-country-tabs)>.panel-head{align-items:flex-end;flex-wrap:wrap;gap:10px 20px;padding-bottom:0}
.settings-grid>.panel:has(.role-settings-country-tabs)>.panel-head>h2{align-self:center;margin-bottom:12px}
/* to the right of the heading while it fits; a strip that does not fit begins at its first tab and moves — pushed to the right
   by its end, the first tabs would be out of reach */
:root[data-theme] .tabs.role-settings-country-tabs{flex:1;justify-content:flex-start;min-width:180px;background:transparent}
:root[data-theme] .tabs.role-settings-country-tabs>button:first-child{margin-left:auto}
:root[data-theme] .role-settings-country-tabs>button{min-height:42px;padding:9px 15px}
.role-settings-country-note{margin:0;padding:12px 18px;color:var(--muted);font-size:12px;line-height:1.5}
@media(max-width:600px){:root[data-theme] .tabs.role-settings-country-tabs{flex-basis:100%;justify-content:flex-start}:root[data-theme] .tabs.role-settings-country-tabs>button:first-child{margin-left:0}.settings-grid>.panel:has(.role-settings-country-tabs)>.panel-head>h2{margin-bottom:0}}
:root[data-theme=dark] .role-order-access h3{background:var(--surface-2)}
/* the same head as «Склады» (owner, 24.11.2026 17:40): heading, «Добавить роль» and the tabs on one middle line, no lines of
   the tabs' own, the chosen country and the note under it a shade darker (theme.css) */
.settings-grid>.panel:has(.role-settings-country-tabs)>.panel-head{align-items:center}
.settings-grid>.panel:has(.role-settings-country-tabs)>.panel-head>h2{margin-bottom:0}
:root[data-theme] .tabs.role-settings-country-tabs{align-self:flex-end;position:relative;z-index:1;margin-bottom:-1px}
:root[data-theme] .tabs.role-settings-country-tabs>button{border-color:transparent}
:root[data-theme] .tabs.role-settings-country-tabs>button.active{border-color:var(--line);border-bottom-color:var(--surface-2);background:var(--surface-2)}
:root[data-theme] .panel:has(>.panel-head>.role-settings-country-tabs) .role-settings-country-note{background:var(--surface-2);border-bottom:1px solid var(--line)}


/* pagination.css */
.list-pagination{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid var(--line,#cad5e3);font-size:14px}
.list-page-count{color:var(--muted,#596b83);margin-right:auto;font-variant-numeric:tabular-nums}
.list-page-size{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}
.list-page-size select{width:auto;min-width:72px;min-height:36px;padding:6px 10px}
.list-page-navigation{display:flex;align-items:center;gap:12px;font-variant-numeric:tabular-nums}
.list-page-navigation>span{white-space:nowrap;color:var(--muted,#596b83)}
.list-page-navigation .btn{min-height:36px;white-space:nowrap}
.list-page-error{flex-basis:100%;margin:0;color:var(--danger,#aa2432)}
.list-pagination[aria-busy="true"]{opacity:.7}
@media(max-width:640px){.list-pagination{padding:12px;gap:12px}.list-page-count{width:100%;margin:0}.list-page-navigation{width:100%;justify-content:space-between}.list-page-size{margin-left:auto}}
@media print{.list-pagination{display:none}}
.lookup-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border-top:1px solid var(--border,#cbd5e1)}
.lookup-pages>small{color:var(--muted,#64748b);white-space:nowrap}.lookup-pages>.btn{min-height:32px;width:auto;flex:none}
.remote-sku-options{display:grid;gap:6px;margin:8px 0;max-height:280px;overflow:auto}.remote-sku-options>.btn{display:flex;justify-content:flex-start;text-align:left;gap:10px;width:100%;height:auto;white-space:normal}.remote-sku-options>.btn>span{color:var(--muted,#64748b);font-weight:400;overflow-wrap:anywhere}.remote-sku-options>.btn[aria-pressed=true]{background:var(--soft,#eef4f9)}
.supplier-input-group>.paged-supplier-search{flex:1;min-width:0;width:0;border-top-right-radius:0!important;border-bottom-right-radius:0!important;height:var(--field-height,42px)}

/* Explicit search keeps the draft field and its commit button together. */
.explicit-search{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.explicit-search>label{flex:1;min-width:0;margin:0}
.explicit-search>input{flex:1;min-width:0;width:0}
.explicit-search>.btn{flex:0 0 auto;white-space:nowrap;min-height:var(--field-height,42px);align-self:flex-end}
.explicit-search>label>input{width:100%;min-width:0}
/* A submitted register query stays visibly acknowledged until it is edited. */
:root[data-theme] .list-search .btn[data-list-search-submit].list-search-activated,
:root[data-theme] .list-search .btn[data-list-search-submit].list-search-activated:hover:not(:disabled){background:#fff;color:#172e4c;border-color:#b9c8dc;filter:none}
@media(max-width:640px){.explicit-search{gap:6px}.explicit-search>.btn{padding-left:12px;padding-right:12px}}
.purchase-detail-search.explicit-search,.repair-model-settings-search.explicit-search{display:flex}
.repair-model-settings-search.explicit-search{max-width:660px}
.assignment-filter-toolbar>.explicit-search>label{font-size:12px}


/* assignments.css */
.assignment-filter-toolbar{display:flex;align-items:end;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line,#dce3e7)}
.assignment-filter-toolbar>label{flex:1;min-width:0;margin:0;font-size:12px}
.assignment-filter-toolbar>.btn{flex:none;min-height:44px}
.assignment-list-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 16px;background:var(--soft,#f1f3f8);border-bottom:1px solid var(--line,#dce3e7)}
.assignment-list-filters[hidden]{display:none!important}
.assignment-list-filters select{min-width:0;max-width:100%}
.assignment-list-filters label{font-size:12px}.assignment-person{display:inline-flex;align-items:center;gap:6px;margin:2px 6px 2px 0;font-size:12px}.assignment-people{display:flex;flex-wrap:wrap;gap:8px}.assignment-people .assignment-person{background:var(--soft,#f3f6f8);border:1px solid var(--line,#dce3e7);border-radius:6px;padding:6px 8px}
dialog.assignment-drawer{position:fixed;inset:0 0 0 auto;width:min(880px,96vw);max-width:96vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-left:1px solid var(--line,#dce3e7);border-radius:0;padding:0;overflow:auto;box-shadow:-12px 0 48px #10202722}
.assignment-drawer .modal-head{position:sticky;top:0;z-index:2;background:#fff;padding:18px 22px;align-items:flex-start}.assignment-drawer .modal-head h2{font-size:20px;line-height:1.3;margin-top:5px}.assignment-drawer .modal-head>div{min-width:0}.assignment-drawer .modal-head h2{overflow-wrap:anywhere}.assignment-drawer-body{padding:16px 22px 26px}.assignment-controls{display:flex;gap:8px;justify-content:flex-end;margin-bottom:16px}.assignment-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:0}.assignment-meta dt{font-size:12px;color:var(--muted,#647580);margin-bottom:5px}.assignment-meta dd{margin:0;font-size:14px}.assignment-meta dd small{display:block;font-size:11px;margin-top:4px;color:var(--muted,#647580)}.assignment-meta select{height:34px;font-size:13px;width:100%}.assignment-section{border-top:1px solid var(--line,#dce3e7);margin-top:20px;padding-top:16px}.assignment-section h3{font-size:14px;margin:0 0 12px}.assignment-section .pre{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.assignment-accept{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}.assignment-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.assignment-section-head h3{margin:0}.assignment-upload{position:relative;overflow:hidden;cursor:pointer}.assignment-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.assignment-file{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line,#e5eaed)}.assignment-file>a:first-child{display:flex;align-items:center;gap:6px;flex:1;min-width:160px;overflow-wrap:anywhere}.assignment-file svg{width:16px;height:16px;flex-shrink:0}.assignment-file small{color:var(--muted,#647580)}.assignment-comment-head{display:flex;justify-content:space-between;gap:10px;font-size:12px}.assignment-comments .comment{padding:12px 0;margin:0;border-bottom:1px solid var(--line,#e5eaed)}.assignment-comment-form{margin-top:18px}.assignment-comment-form textarea{min-height:85px}.assignment-comment-form input[type=file]{font-size:12px;margin:8px 0}.assignment-comment-form .task-comment-actions{margin-top:14px}.assignment-comment-form .form-error:empty{display:none}.assignment-editor{width:min(760px,95vw)}.assignment-participants{margin:16px 0;border:1px solid var(--line,#dce3e7);border-radius:8px;padding:12px}.assignment-participants legend{font-weight:600;padding:0 6px}.assignment-participants details{margin:10px 0}.assignment-participants summary{cursor:pointer;font-size:13px;font-weight:600}.assignment-checklist{max-height:180px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.assignment-check{display:flex!important;align-items:center;gap:8px;font-size:12px!important;font-weight:400!important}.assignment-check input{width:16px!important;height:16px!important;flex-shrink:0}.assignment-check[hidden]{display:none!important}.assignment-participants>input{height:34px}.assignment-participants small{font-size:11px;color:var(--muted,#647580)}
@media(max-width:700px){.assignment-list-filters{grid-template-columns:1fr 1fr}.assignment-meta{grid-template-columns:1fr 1fr;gap:12px}.assignment-drawer-body{padding:14px}.assignment-checklist{grid-template-columns:1fr}.assignment-drawer .modal-head{padding:14px}}
/* owner, 19.11.2026 15:13: the card of a task is a window like an order (order-overlay.js) — head: number, title, status, «⋯»;
   left: what to do, the result, the orders, the talk; right: the facts and the buttons of the work. 15:33: «элементы имеют
   слишком большие отступы… слишком крупными» — compact: blocks 16px inside (12px on a phone), 12px apart, headings 14px. */
:root[data-theme] .task-workspace{min-width:0}
:root[data-theme] .task-toolbar{display:flex;align-items:center;gap:var(--space-3);flex-wrap:nowrap}
:root[data-theme] .task-heading{display:flex;flex-direction:column;gap:var(--space-1);min-width:0;flex:1}
:root[data-theme] .task-heading>small{font:var(--text-caption);color:var(--ink-2)}
:root[data-theme] .task-workspace .task-heading h1{font:var(--text-section);color:var(--ink);margin:0;white-space:normal;overflow-wrap:anywhere}
:root[data-theme] .task-head-tools{display:flex;align-items:center;gap:var(--space-1);flex:none}
:root[data-theme] .task-window-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-3);align-items:start}
@media(min-width:1000px){:root[data-theme] .task-window-grid{grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:var(--space-4)}}
:root[data-theme] .task-main{display:flex;flex-direction:column;gap:var(--space-3);min-width:0}
:root[data-theme] .task-main>.assignment-section,:root[data-theme] .task-side{margin:0;padding:var(--space-4);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:none}
:root[data-theme] .task-main .assignment-section h3,:root[data-theme] .task-main .assignment-section>summary{margin:0 0 var(--space-2);font:var(--text-label);color:var(--ink-2)}
:root[data-theme] .task-main details.task-history>summary{margin:0;cursor:pointer}
:root[data-theme] .task-main details.task-history[open]>summary{margin-bottom:var(--space-2)}
:root[data-theme] .task-main .pre{font:var(--text-body);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
:root[data-theme] .task-side{display:flex;flex-direction:column;gap:var(--space-3);position:sticky;top:calc(var(--control-h) + var(--space-6))}
/* the labels make one column as wide as the longest of them («Вознаграждение» is not broken on a phone) */
:root[data-theme] .task-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:var(--space-2) var(--space-3);align-items:baseline;margin:0}
:root[data-theme] .task-facts>div{display:contents}
:root[data-theme] .task-facts dt{font:var(--text-caption);font-weight:400;color:var(--ink-2)}
:root[data-theme] .task-facts dd{margin:0;font:var(--text-label);color:var(--ink);min-width:0;overflow-wrap:anywhere}
:root[data-theme] .task-facts dd small{display:block;margin-top:2px;font:var(--text-caption);font-weight:400;color:var(--ink-2)}
:root[data-theme] .task-facts dd select{width:100%}
:root[data-theme] .task-facts .assignment-people{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-2)}
:root[data-theme] .task-facts .assignment-person{margin:0;padding:0;background:none;border:0;font:var(--text-label)}
:root[data-theme] .task-facts .assignment-person .avatar{width:var(--icon);height:var(--icon);font-size:10px}
:root[data-theme] .task-facts .employee-identity{gap:var(--space-2)}
:root[data-theme] .task-facts .employee-identity .avatar{width:var(--icon);height:var(--icon);font-size:10px}
:root[data-theme] .task-facts .assignment-accruals{margin-top:2px;font:var(--text-caption);font-weight:400;color:var(--ink-2)}
:root[data-theme] .task-side .assignment-accept{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding-top:var(--space-3);border-top:1px solid var(--line)}
:root[data-theme] .task-side .assignment-accept .btn{width:100%}
:root[data-theme] .task-side .assignment-accept>span{font:var(--text-small);color:var(--ink-2)}
:root[data-theme] .task-kind{display:inline-flex;align-items:center;font:var(--text-caption);color:var(--ink-2)}
:root[data-theme] .task-kind.task-kind-auto{color:var(--info)}
:root[data-theme] .task-facts .task-kind{font:var(--text-label);color:var(--ink)}
:root[data-theme] .task-facts .task-kind.task-kind-auto{color:var(--info)}
:root[data-theme] .task-main .assignment-comments{display:flex;flex-direction:column}
:root[data-theme] .task-main .comment{margin:0;padding:var(--space-2) 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
:root[data-theme] .task-main .comment:last-child{border-bottom:0}
:root[data-theme] .task-main .comment p{margin:var(--space-1) 0 0}
:root[data-theme] .task-main .assignment-comment-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);font:var(--text-small)}
:root[data-theme] .task-main .assignment-comment-head small{font:var(--text-caption);font-weight:400;color:var(--ink-3)}
:root[data-theme] .task-main .assignment-comment-form{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-3)}
:root[data-theme] .task-main .assignment-comment-form label:not(.btn){display:flex;flex-direction:column;gap:var(--space-1);margin:0;font:var(--text-caption);color:var(--ink-2)}
:root[data-theme] .task-main .assignment-comment-form textarea{min-height:calc(var(--control-h) * 1.5);height:auto;resize:vertical}
:root[data-theme] .task-main .task-comment-actions{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}
:root[data-theme] .task-main .task-comment-actions>.btn:last-child{margin-left:auto}
:root[data-theme] .task-main .task-attach-names{min-width:0;font:var(--text-caption);color:var(--ink-2);overflow-wrap:anywhere}
:root[data-theme] .task-main .task-attach-names:empty{display:none}
:root[data-theme] .task-main .assignment-section-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-2)}
:root[data-theme] .task-main .assignment-section-head h3{margin:0}
:root[data-theme] .task-main .muted{font:var(--text-small);color:var(--ink-3)}
:root[data-theme] .assignment-upload:has(input:focus-visible){box-shadow:var(--focus-ring)}
:root[data-theme] .assignment-upload input:focus-visible{box-shadow:none}
/* «Текущие» / «Архив» and a whole row opens its task */
:root[data-theme] .assignment-filter-toolbar{align-items:center}
:root[data-theme] .tasks-page tbody tr[data-open]:hover{background:var(--surface-2)}
:root[data-theme] .tasks-page td small .task-kind{font:var(--text-caption)}
@media(max-width:999px){:root[data-theme] .task-side{order:-1;position:static}}
@media(max-width:760px){
 :root[data-theme] .task-main>.assignment-section,:root[data-theme] .task-side{padding:var(--space-3);border-radius:var(--r-md)}
 :root[data-theme] .task-workspace .task-heading h1{font:var(--text-group)}
 :root[data-theme] .task-window-grid,:root[data-theme] .task-main{gap:var(--space-2)}
 :root[data-theme] .task-facts>div{grid-template-columns:88px minmax(0,1fr)}
}
/* the list toolbar: «Текущие / Архив» and «Фильтры» in one row, the search takes the rest and goes under them when narrow */
:root[data-theme] .tasks-page .assignment-filter-toolbar{flex-wrap:wrap;align-items:flex-end;gap:var(--space-2) var(--space-3)}
:root[data-theme] .tasks-page .assignment-filter-toolbar>.explicit-search{flex:1 1 260px;min-width:0}
:root[data-theme] .tasks-page .assignment-filter-toolbar>.segments,:root[data-theme] .tasks-page .assignment-filter-toolbar>.btn{flex:none}
/* owner, 19.11.2026 16:50: the orders of a task — one order a row: number and kind, client, status of the order; the window and
   the form use the same row. A long list scrolls inside after eight rows. */
:root[data-theme] .task-order-list{display:flex;flex-direction:column;max-height:calc(var(--option-h) * 8);overflow:auto;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
:root[data-theme] .task-order-row{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr) auto;align-items:center;gap:var(--space-3);width:100%;min-height:var(--option-h);margin:0;padding:0 var(--space-3);border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;font:var(--text-body);color:var(--ink);text-align:left}
:root[data-theme] .task-order-row:first-child{border-top:0}
:root[data-theme] button.task-order-row{cursor:pointer}
:root[data-theme] button.task-order-row:hover{background:var(--surface-2)}
:root[data-theme] .task-order-number{display:inline-flex;align-items:baseline;gap:var(--space-2);white-space:nowrap}
:root[data-theme] .task-order-number strong{font:var(--text-label);color:var(--ink)}
:root[data-theme] .task-order-number small{font:var(--text-small);color:var(--ink-2)}
:root[data-theme] .task-order-client{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--text-small);color:var(--ink-2)}
:root[data-theme] .task-order-row .badge{justify-self:end;white-space:nowrap}
:root[data-theme] .task-order-row .icon-btn{display:inline-flex;align-items:center;justify-content:center;align-self:center;justify-self:end;width:var(--chip-h);height:var(--chip-h);min-width:0;min-height:0;padding:0;border:0;background:none;box-shadow:none;border-radius:var(--r-full);color:var(--ink-2)}
:root[data-theme] .task-order-row .icon-btn:hover{background:var(--surface-2);color:var(--ink)}
:root[data-theme] .task-count{margin-left:var(--space-1);font:var(--text-caption);color:var(--ink-2)}
/* The tile of a task on a phone says what the task is about — its description and the orders it is put for (owner,
   22.11.2026 11:27); the table of a computer keeps its two lines. Numbers from tokens.css. */
:root[data-theme] .task-about{display:none}
@media(max-width:800px){
 :root[data-theme] body.mobile-app-ready .task-about{display:grid;gap:var(--space-1);padding:var(--space-1) 0;font:var(--text-small);color:var(--ink)}
 :root[data-theme] body.mobile-app-ready .task-about-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
 :root[data-theme] body.mobile-app-ready .task-about-orders,:root[data-theme] body.mobile-app-ready .task-about-facts{display:flex;flex-wrap:wrap;gap:0 var(--space-3);color:var(--ink-2)}
}
/* owner's audit 26.11.2026 — «подсказки дат»: what an empty date means and the usual terms under the dates of a task */
:root[data-theme] .task-date-hints{display:grid;gap:var(--space-2);margin:calc(var(--space-2) * -1) 0 var(--space-3)}
:root[data-theme] .task-date-chips{display:flex;flex-wrap:wrap;gap:var(--space-2)}
:root[data-theme] .task-date-chip{font-weight:500}

/* the block «Задания» of an order: a row is the task and its status (the status never breaks), then «Новое задание» (01.12.2026) */
:root[data-theme] .order-workspace .order-task-link{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3)}
:root[data-theme] .order-workspace .order-task-link>span{min-width:0}
:root[data-theme] .order-workspace .order-task-link small{flex:none;white-space:nowrap;overflow-wrap:normal}
:root[data-theme] .order-task-new{margin-top:var(--space-3)}


/* inventory-experience.css */
/* Stock starts with warehouse summaries; item lists stay compact. */
.warehouse-overview{padding:0;background:transparent;border:0}.warehouse-overview-search{display:flex;align-items:center;gap:16px;margin:0 0 16px}.warehouse-overview-search label{width:min(380px,100%)}.warehouse-overview-search input{min-height:36px;padding:8px 11px}.warehouse-overview-search>span{color:var(--muted);font-size:12px}.warehouse-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.warehouse-tile{display:flex;flex-direction:column;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;gap:20px;color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}.warehouse-tile:hover{border-color:#2c9fbe;box-shadow:0 3px 12px #10202c0d}.warehouse-tile:focus-visible{outline:2px solid #23a9ce;outline-offset:3px}.warehouse-tile-name{display:flex;align-items:center;gap:10px}.warehouse-tile-name svg{width:20px;height:20px;color:#2184a6}.warehouse-tile-name strong{font-size:15px}.warehouse-tile-total{display:flex;align-items:baseline;gap:9px;font-size:29px;font-weight:650;font-variant-numeric:tabular-nums}.warehouse-tile-total small{font-size:11px;font-weight:400;color:var(--muted)}.warehouse-tile-bottom{display:flex;gap:16px;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;font-size:10px;color:var(--muted)}.warehouse-tile-bottom span{display:flex;flex-direction:column;gap:4px}.warehouse-tile-bottom b{font-size:15px;font-weight:600;color:var(--ink)}.warehouse-selection{display:flex;align-items:center;gap:12px;margin:0 0 12px}.warehouse-selection>span{color:var(--muted);font-size:12px}.inventory-toolbar{gap:12px;flex-wrap:wrap}.inventory-toolbar .tabs{max-width:100%;overflow:auto}.product-warehouse-chips{display:flex;align-items:center;gap:6px;overflow:auto;max-width:100%;padding:4px 0 3px;scrollbar-width:thin;font-size:11px;line-height:1.3}.warehouse-chip{flex:none;display:inline-flex;align-items:center;gap:6px;padding:3px 6px;border-radius:4px;background:#edf4f7;color:#536775;white-space:nowrap}.warehouse-chip b{font-weight:650;color:#263d49;font-variant-numeric:tabular-nums}.product-warehouse-chips .muted{white-space:nowrap;font-size:11px}.catalog-product-cell>.product-link{padding:0;border:0;text-align:left;font:inherit;color:#147391;background:transparent;cursor:pointer}.catalog-price-list.pakovia-data-list.dense-list td{height:58px}.product-drawer-stock{padding:12px;border:1px solid var(--line);border-radius:7px;margin-bottom:18px}.product-drawer-stock h3{font-size:13px;margin:0 0 7px}.product-drawer-stock .product-warehouse-chips{flex-wrap:wrap}.stock-product-drawer .detail-meta{grid-template-columns:1fr 1fr}.stock-product-drawer .modal-head h2{font-size:16px;line-height:1.4}.stock-product-drawer .modal-head .drawer-heading{display:flex;flex-direction:column;gap:3px}.drawer-heading small{color:var(--muted);font-size:11px}.inventory-product-options{position:fixed;inset:auto;margin:0;padding:0;max-height:280px;overflow:auto;overscroll-behavior:contain;z-index:10000;box-sizing:border-box;border:1px solid var(--input-border,var(--line));border-radius:8px;box-shadow:0 8px 24px #10243b29;background:var(--surface,#fff);color:var(--text);font-size:13px}.inventory-product-options[hidden]{display:none}.inventory-product-options button{display:flex;align-items:center;gap:12px;min-height:36px;padding:8px 10px;line-height:1.35}.inventory-product-options button strong{flex:1;min-width:0;font-weight:500;overflow-wrap:anywhere}.inventory-product-options button small{flex:none;margin:0;font-size:10px}.inventory-product-options p{padding:10px}.list-tools{padding:10px 14px}.list-tools-top{gap:8px}.list-tools .list-search input{min-height:34px;padding:7px 10px}.list-quick-filters{display:flex;gap:10px;flex-wrap:wrap;margin-top:9px}.list-quick-filters>label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:400;color:var(--muted);min-width:0}.list-quick-filters select{font-size:11px;min-height:30px;width:auto;max-width:230px;padding:4px 25px 4px 7px}.list-options{margin-top:8px}.list-options>summary{font-size:11px}.list-filter-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.list-filter-chips[hidden]{display:none}.list-filter-chip{font:inherit;font-size:11px;border:1px solid #cce0e7;border-radius:5px;padding:4px 8px;background:#edf6fa;color:#256079;cursor:pointer}.list-check-options{max-height:160px;overflow:auto;display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid var(--line);border-radius:4px;padding:7px;width:100%}.list-check-options label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:400}.list-check-options input{min-height:0;width:15px;height:15px;padding:0;flex:none}.list-tools>.modal-hint{font-size:10px;margin:6px 0 0!important}.list-density select{font-size:11px;min-height:30px}.list-tools-top>[data-list-count]{font-size:11px}.list-tools .btn.small{margin-top:0}.inventory-toolbar .tabs button{white-space:nowrap}@media(max-width:650px){.warehouse-tiles{grid-template-columns:1fr}.warehouse-selection{flex-wrap:wrap}.warehouse-selection>span{display:none}.list-quick-filters>label{flex:1 1 140px;flex-direction:column;align-items:stretch;gap:3px}.list-quick-filters select{width:100%;max-width:none}.warehouse-tile{gap:15px}.inventory-toolbar .actions{margin-left:auto}}
#modal.new-order-dialog{width:min(960px,calc(100vw - 28px))}.new-order-idno{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:8px 12px;margin:12px 0}.new-order-idno[hidden]{display:none}.new-order-idno small{grid-column:1/-1;color:var(--muted);font-size:11px;min-height:15px}.new-order-idno .btn{margin-bottom:2px}.new-order-items{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.new-order-items-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.new-order-items-heading h3{font-size:14px;margin:0}.new-order-items table{table-layout:fixed;min-width:640px}.new-order-items th:nth-child(1){width:125px}.new-order-items th:nth-child(3),.new-order-items th:nth-child(4){width:115px}.new-order-items th:last-child{width:38px}.new-order-items td,.new-order-items th{padding:7px;vertical-align:top}.new-order-items input,.new-order-items select{min-height:34px;padding:6px 8px;font-size:12px;width:100%}.new-order-items [data-initial-product]{font-size:10px;color:var(--muted);display:block;white-space:normal;margin-top:4px}.new-order-items .icon-btn{min-width:26px;padding:4px}.new-order-items input[hidden]{display:none}.new-order-items [data-initial-name][hidden]{display:none}
.product-warehouse-chips a.warehouse-chip{text-decoration:none;cursor:pointer}
.product-warehouse-chips a.warehouse-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.product-warehouse-chips a.warehouse-chip[aria-busy=true]{opacity:.65;cursor:progress}

/* Keep stock actions in the tab header or the selected warehouse context. */
.inventory-section-header{display:flex;align-items:center;gap:12px;min-width:0;background:linear-gradient(var(--line),var(--line)) left bottom/100% 1px no-repeat}
.inventory-section-header>.tabs{flex:1 1 auto;min-width:0;margin:0}
.inventory-header-actions{flex:none;margin-left:auto}
.inventory-section-header>.inventory-header-actions{padding-bottom:6px}
.warehouse-selection{min-width:0;flex-wrap:wrap}
.warehouse-selection>strong{min-width:0;overflow-wrap:anywhere}
.warehouse-selection>span{min-width:0;overflow-wrap:anywhere}
.stock-column-table th{white-space:normal;min-width:78px;font-size:11px;line-height:1.3}
.stock-column-table td{font-size:12px;vertical-align:top;font-variant-numeric:tabular-nums}
.stock-column-table [data-stock-column=product]{min-width:180px;max-width:260px;white-space:normal}
.stock-column-table [data-stock-column=product]>.product-link{text-align:left;overflow-wrap:anywhere}
.stock-column-table [data-stock-column=other_countries]{min-width:130px;white-space:normal}
.stock-country-quantity{display:block;margin-bottom:3px}
.stock-column-table [data-stock-column=manager]{min-width:110px;white-space:normal}
.stock-column-table [data-stock-column=received]{min-width:100px;white-space:nowrap}
.stock-column-table [data-stock-column=received] small{display:block;color:var(--muted);margin-top:3px}
.stock-column-table .stock-receipt-link{border:0;background:transparent;color:var(--link,#147391);padding:0;min-height:24px;font:inherit;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.stock-receipts{font-size:10px;margin-top:4px;max-width:160px;white-space:normal}
.stock-receipts>summary{cursor:pointer;color:var(--muted)}
.stock-receipts .stock-receipt-link{display:block;margin:3px 0}
.stock-column-table th small,.stock-row-location{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px;line-height:1.3}
.stock-column-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:normal;min-width:130px;max-width:220px;overflow-wrap:anywhere}
@media(max-width:650px){.inventory-section-header{gap:8px}.inventory-section-header>.tabs{overflow-x:auto;flex-wrap:nowrap}.warehouse-selection{gap:8px}.warehouse-selection>strong{flex:1 1 120px}}

/* Compact stock rows keep the same scale with long names and SKU comments. */
.stock-column-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
[data-sku-receipt],[data-stock-receipt-back]{border:0;background:transparent;padding:0;font:inherit;color:var(--link,#147391);text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px;white-space:normal}
[data-stock-receipt-back]{margin-bottom:16px}
[data-sku-receipt]:focus-visible,[data-stock-receipt-back]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sku-movement-history th:nth-child(2){width:23%}
.sku-movement-history th:nth-child(3){width:32%}
.sku-movement-history th:nth-child(4){width:22%}
[data-sku-receipt]{overflow-wrap:normal;word-break:normal}
@media(min-width:651px){
 #results .stock-column-table{min-width:960px;width:100%;table-layout:auto}
 #results .stock-column-table th{min-width:0;padding:7px 8px;font-size:11px;line-height:1.2;vertical-align:middle;text-align:left}
 #results .stock-column-table td{padding:4px 8px;font-size:12px;line-height:1.25;vertical-align:middle}
 #results .stock-column-table tbody tr{height:32px}
 #results .stock-column-table .product-link{font:inherit;line-height:1.25;min-height:0;padding:0;text-align:left}
 #results .stock-column-table [data-stock-column=product]{min-width:155px;max-width:245px;width:23%}
 #results .stock-column-table [data-stock-column=product]>.product-link{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;font-weight:500}
 #results .stock-column-table [data-stock-column=sku]{min-width:82px;white-space:nowrap}
 #results .stock-column-table [data-stock-column=id]{min-width:48px}
 #results .stock-column-table [data-stock-column=received]{min-width:84px}
 #results .stock-column-table [data-stock-column=retail_price],#results .stock-column-table [data-stock-column=purchase_price],#results .stock-column-table [data-stock-column=final_cost]{min-width:80px;white-space:nowrap}
 #results .stock-column-table th[data-stock-column=retail_price],#results .stock-column-table th[data-stock-column=purchase_price],#results .stock-column-table th[data-stock-column=final_cost]{white-space:normal}
 #results .stock-column-table [data-stock-column=location],#results .stock-column-table [data-stock-column=storage_place],#results .stock-column-table [data-stock-column=supplier]{min-width:100px;max-width:160px;white-space:normal}
 #results .stock-column-table [data-stock-column=note]{min-width:130px;max-width:210px;width:16%}
 #results .stock-column-table .stock-column-note{min-width:0;max-width:none;-webkit-line-clamp:2}
 #results .stock-column-table [data-stock-column=received] small,#results .stock-column-table th small{font-size:10px;line-height:1.15;margin-top:1px}
 #results .stock-column-table .bulk-check-cell{width:28px!important;min-width:28px!important;padding:4px!important}
 #results .stock-column-table .bulk-check-cell input[type=checkbox]{width:14px;height:14px;min-height:14px}
}

/* Inventory filters allow several warehouses, places and states per query. */
.stock-filter-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;color:var(--muted)}
.stock-filter-multiple{position:relative;min-width:0;color:var(--text)}
.stock-filter-multiple[open]{z-index:26}
.panel:has(.stock-filter-multiple[open]){overflow:visible}
.stock-filter-multiple>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:7px 10px;list-style:none;border:1px solid var(--input-border,var(--line));border-radius:8px;background:var(--surface,#fff);cursor:pointer;line-height:1.35}
.stock-filter-multiple>summary::-webkit-details-marker{display:none}
.stock-filter-multiple>summary>span:first-child{min-width:0;overflow-wrap:anywhere}
.stock-filter-multiple>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.stock-filter-multiple[open]>summary{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent)}
.stock-filter-choices{position:absolute;z-index:25;left:0;right:0;top:calc(100% + 5px);min-width:0;max-height:280px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--input-border,var(--line));border-radius:10px;background:var(--surface,#fff);padding:6px;box-shadow:0 8px 24px #132a4326}
.stock-filter-choices>label{display:flex;flex-direction:row;align-items:center;gap:9px;min-height:38px;padding:6px 8px;margin:0;color:var(--text);font-size:13px;line-height:1.35;cursor:pointer}
.stock-filter-choices>label:hover{background:var(--surface-2,#f3f6fa);border-radius:6px}
.stock-filter-choices input[type=checkbox]{flex:none;width:17px;height:17px;min-height:17px;margin:0;accent-color:var(--accent)}
.stock-filter-choices>label>span{overflow-wrap:anywhere;min-width:0}
.stock-filter-choice-actions{display:flex;gap:8px;justify-content:space-between;padding:3px 8px 6px;border-bottom:1px solid var(--line);margin-bottom:4px}
.stock-filter-choice-actions>.text-link{font-size:12px;min-height:30px}
:root[data-theme] .list-filter-panel .stock-filter-choices>label:nth-child(n){display:flex;grid-template-rows:none;grid-column:auto;grid-row:auto;gap:9px;align-items:center}
:root[data-theme] .list-filter-panel .stock-filter-choices>label>span{align-self:auto;font-size:13px;font-weight:400}
@media(min-width:801px){
 :root[data-theme] .list-filter-bar:has(.stock-filter-field){grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px}
 :root[data-theme] .list-filter-panel .list-quick-filters>.stock-filter-field,:root[data-theme] .list-filter-panel .list-quick-filters:has(.stock-filter-field)>label:nth-child(n){display:flex;flex-direction:column;grid-template-rows:none;grid-column:auto;grid-row:auto;gap:7px;justify-content:flex-end}
 :root[data-theme] .list-filter-panel .stock-filter-field>span{font-size:12px;font-weight:600}
 :root[data-theme] .list-filter-panel .stock-filter-multiple>summary{min-height:40px;font-size:13px}
 :root[data-theme] .list-filter-bar:has(.stock-filter-field)>.list-filter-actions{display:flex;grid-row:2;grid-column:1/-1;gap:14px;align-items:center}
 :root[data-theme] .list-filter-bar:has(.stock-filter-field)>.list-filter-actions>.btn{width:160px;margin:0}
 :root[data-theme] .list-filter-bar:has(.stock-filter-field)>.list-filter-actions>.text-link{min-height:40px;margin:0}
}
@media(min-width:801px) and (max-width:1100px){
 :root[data-theme] .list-filter-bar:has(.stock-filter-field){grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme] .list-filter-bar:has(.stock-filter-field)>.list-filter-actions{grid-row:3}
}
@media(max-width:800px){
 .stock-filter-field{width:100%;gap:6px}
 .stock-filter-multiple>summary{min-height:44px;font-size:16px;padding:9px 12px}
 .stock-filter-choices{position:static;margin-top:6px;box-shadow:none;max-height:240px}
 .stock-filter-choices>label{min-height:44px;font-size:14px;padding:8px}
 .stock-filter-choice-actions>.text-link{min-height:44px;font-size:13px}
}
/* stock the page does not hold yet: «…», never 0 (owner's audit 23.11.2026); tokens only */
:root[data-theme] .stock-pending{color:var(--ink-3);cursor:progress}
/* a tablet: the country price columns keep room for «Не задана» and the table scrolls sideways in its frame (check
   25.11.2026: at 900 px the columns were 64 px and «Не заданаНе задана» ran together); the computer is not changed */
@media(min-width:801px) and (max-width:1100px){
html:root[data-theme] .catalog-price-list{table-layout:auto;width:max-content;min-width:100%}
html:root[data-theme] .catalog-price-list th[data-catalog-column=product],html:root[data-theme] .catalog-price-list td[data-catalog-column=product]{width:calc(var(--rail) - var(--space-6));max-width:calc(var(--rail) - var(--space-6))}
html:root[data-theme] .catalog-price-list th[data-catalog-column]:not([data-catalog-column=product]):not([data-catalog-column=actions]){min-width:calc(var(--space-7) * 2)}
html:root[data-theme] .catalog-price-list td[data-catalog-column]:not([data-catalog-column=product]):not([data-catalog-column=actions]){white-space:nowrap}
}
/* a computer: the product column takes the room the shown columns leave, so the warehouses of a product go on along its line
   instead of under each other (owner 02.12.2026 19:30: «они должны идти дальше в строку, а не переноситься на следующую и тем
   самым расширять строку товара»). The other columns are as wide as their figures; the product keeps a column of at least the
   rail, and its long name never widens the table (the line inside takes no room of its own). Tokens only. */
@media(min-width:1200px){
html:root[data-theme] .catalog-price-list{table-layout:auto;width:100%}
html:root[data-theme] .catalog-price-list th[data-catalog-column=product]{width:100%}
html:root[data-theme] .catalog-price-list th[data-catalog-column=product]::after{content:'';display:block;width:var(--rail)}
html:root[data-theme] .catalog-price-list td[data-catalog-column=product]>.catalog-product-line{width:0;min-width:100%}
html:root[data-theme] .catalog-price-list th[data-catalog-column]:not([data-catalog-column=product]):not([data-catalog-column=actions])::after{content:'';display:block;width:var(--space-7)}
html:root[data-theme] .catalog-price-list td[data-catalog-column]:not([data-catalog-column=product]):not([data-catalog-column=actions]){white-space:nowrap}
}
/* a narrower computer (1101–1199 px) — the same when the table shows few columns: with all of them it keeps its fixed columns, so
   that it does not scroll sideways */
@media(min-width:1101px) and (max-width:1199px){
html:root[data-theme] .catalog-price-list:not(:has(thead th:nth-child(7))){table-layout:auto;width:100%}
html:root[data-theme] .catalog-price-list:not(:has(thead th:nth-child(7))) th[data-catalog-column=product]{width:100%}
html:root[data-theme] .catalog-price-list:not(:has(thead th:nth-child(7))) th[data-catalog-column=product]::after{content:'';display:block;width:var(--rail)}
html:root[data-theme] .catalog-price-list:not(:has(thead th:nth-child(7))) td[data-catalog-column=product]>.catalog-product-line{width:0;min-width:100%}
html:root[data-theme] .catalog-price-list:not(:has(thead th:nth-child(7))) th[data-catalog-column]:not([data-catalog-column=product]):not([data-catalog-column=actions])::after{content:'';display:block;width:var(--space-7)}
html:root[data-theme] .catalog-price-list:not(:has(thead th:nth-child(7))) td[data-catalog-column]:not([data-catalog-column=product]):not([data-catalog-column=actions]){white-space:nowrap}
}


/* freight.css */
/* Freight uses the existing compact Pakovia controls and neutral cost presentation. */
.freight-workspace{overflow:hidden}.freight-filters{display:flex;gap:10px;align-items:end;padding:12px;border-bottom:1px solid var(--line,#dce3e8);flex-wrap:wrap}.freight-filters>label{margin:0;min-width:145px;font-size:12px}.freight-filters>label:first-child{flex:1;min-width:230px}.freight-filters input,.freight-filters select{min-height:34px;padding:6px 9px;font-size:13px}.freight-selection,.freight-assignment-strip,.freight-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.freight-selection{padding:9px 12px;background:var(--soft,#f6f8fa);border-bottom:1px solid var(--line,#dce3e8)}.freight-selection>span{margin-right:auto;font-size:12px;color:var(--muted,#687782)}.freight-workspace table td,.freight-workspace table th,.freight-dialog table td,.freight-dialog table th{padding:8px 10px;font-size:12px;vertical-align:top}.freight-workspace table small{font-size:11px;line-height:1.35}.freight-workspace input[type=checkbox],.freight-dialog input[type=checkbox]{width:15px;height:15px;min-height:0;margin:2px;accent-color:var(--blue,#087cca)}.freight-inline{display:block;border:0;background:none;padding:2px 0;color:var(--blue,#087cca);font-size:11px;cursor:pointer}.freight-dialog{width:min(1000px,calc(100vw - 36px));max-height:calc(100dvh - 32px);border-radius:12px}.freight-dialog .modal-body{padding:16px;overflow-y:auto}.freight-dialog .modal-head{padding:14px 16px;align-items:center}.freight-dialog .modal-head h2{font-size:18px}.freight-dialog .modal-head small{display:block;margin-top:3px}.freight-dialog h3{font-size:14px;margin:0 0 10px}.freight-dialog .freight-detail-toolbar h3{margin:0}.freight-dialog label{font-size:12px;margin-bottom:12px}.freight-dialog input:not([type=checkbox]),.freight-dialog select,.freight-dialog textarea{min-height:34px;padding:7px 9px;font-size:13px}.freight-dialog textarea{height:auto;min-height:64px}.freight-dialog .modal-foot{padding:12px 16px}.freight-dialog .modal-hint{font-size:12px;line-height:1.5;margin:8px 0}.freight-drawer{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:min(1000px,95vw);border-radius:0;border:0;box-shadow:-12px 0 40px #172c4533}.freight-drawer .modal-body{max-height:calc(100dvh - 85px)}.freight-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin:16px 0}.freight-meta dt{font-size:11px;color:var(--muted,#687782);margin-bottom:3px}.freight-meta dd{font-size:13px;margin:0;overflow-wrap:anywhere}.freight-section{margin-top:18px;padding-top:14px;border-top:1px solid var(--line,#dce3e8)}.freight-section .freight-detail-toolbar{margin-bottom:10px}.freight-totals{width:min(430px,100%);margin:16px 0 0 auto;font-size:13px}.freight-totals>div{display:flex;gap:20px;justify-content:space-between;padding:7px 0}.freight-totals strong{white-space:nowrap;color:var(--text,#16232b)}.freight-total{border-top:1px solid var(--line,#dce3e8)}.freight-allocations{font-size:11px;margin-top:5px}.freight-allocations summary{cursor:pointer;color:var(--blue,#087cca)}.freight-allocations div{display:flex;gap:14px;justify-content:space-between;margin:4px 0}.freight-voided{opacity:.6}.freight-voided strong{text-decoration:line-through}.freight-show-voided{display:flex;gap:7px;align-items:center;margin-top:10px}.freight-equivalent{padding:10px 12px;background:var(--soft,#f6f8fa);border:1px solid var(--line,#dce3e8);border-radius:6px;font-size:13px;font-weight:600}.freight-batch-recipient{font-size:12px;margin:0 0 12px;color:var(--muted,#687782)}.freight-assignment-strip{padding:12px;margin:12px 0;background:var(--panel,#fff);border:1px solid var(--line,#dce3e8);border-radius:8px;font-size:13px}.freight-assignment-strip>span{margin-right:auto}.freight-recipient-field{max-width:440px}.freight-editor .table-wrap{max-height:320px;overflow:auto}.freight-editor .table-wrap thead{position:sticky;top:0;z-index:1}
@media(max-width:640px){.freight-filters>label{flex:1;min-width:130px}.freight-filters>label:first-child{min-width:100%}.freight-meta{grid-template-columns:1fr}.freight-dialog{width:calc(100vw - 16px)}.freight-drawer{width:100vw}.freight-dialog .row{display:block}.freight-dialog .actions{gap:5px}}
.purchase-destination{display:grid;align-content:start;gap:12px;min-width:0}
.purchase-destination select{min-width:0;max-width:100%}
.purchase-destination [hidden]{display:none!important}
.freight-filters{display:block}
.freight-filter-toolbar{display:flex;align-items:end;gap:12px}
.freight-filter-toolbar>label{flex:1;min-width:0;margin:0;font-size:12px}
.freight-filter-toolbar>.btn{flex:none;min-height:40px}
.freight-filter-fields{display:flex;flex-wrap:wrap;gap:12px;padding:14px;margin-top:12px;background:var(--soft,#f1f3f8);border:1px solid var(--line,#cdd5e1);border-radius:8px}
.freight-filter-fields[hidden]{display:none!important}
.freight-filter-fields>label{flex:1;min-width:160px;margin:0;font-size:12px}
.freight-filter-fields input,.freight-filter-fields select{max-width:100%;min-width:0}
.freight-filter-fields .freight-show-voided{margin:0;min-height:32px}
.freight-expense-filters{margin-top:12px}
@media(max-width:640px){.freight-filter-toolbar{align-items:end;gap:8px}.freight-filter-toolbar .btn,.freight-filter-toolbar input,.freight-filter-fields select{min-height:44px}.freight-filter-fields>label{flex-basis:100%;min-width:0}}


/* exchange-settings.css */
.exchange-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}.exchange-header p{margin:5px 0}.exchange-help{padding:0 16px 12px}.exchange-freight-source{display:block;line-height:1.5;margin-top:4px;color:var(--muted)}@media(max-width:680px){.exchange-header{align-items:stretch;flex-direction:column}.exchange-header .actions{display:flex;flex-wrap:wrap}.exchange-header .btn{min-height:44px}}
.exchange-providers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 16px 16px}
.exchange-providers>section{border:1px solid var(--line);background:#f7f9fc;border-radius:9px;padding:12px 14px;min-width:0}
.exchange-providers strong{font-size:13px}.exchange-providers p{margin:6px 0;font-size:12px}.exchange-providers small{line-height:1.5}
@media(max-width:680px){.exchange-providers{grid-template-columns:1fr}}
/* check of 26.11.2026: the words «Покупка» / «Продажа» of a rate are for the tile and the sheet on a phone; on a computer the
   column says it */
.exchange-side-label{display:none}
html:root[data-theme] .exchange-provider-state{margin:var(--space-1) 0}


/* personal-workspace.css */
.personal-overview{max-width:none;margin:0 auto;color:var(--text);min-width:0}
.personal-overview-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.personal-overview-header>div:first-child{min-width:0}
.personal-overview-header h1{margin:0;font-size:28px;font-weight:700;line-height:1.25;letter-spacing:-.65px;overflow-wrap:anywhere}
.personal-overview-date{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.personal-overview-header .actions{flex-shrink:0;gap:8px}
.personal-overview-header .icon-btn{min-width:40px;min-height:40px}
.personal-overview-metrics{display:grid;grid-template-columns:repeat(var(--overview-metric-columns,4),minmax(0,1fr));gap:14px;margin-bottom:16px}
.personal-overview-metrics:empty{display:none}
.personal-metric{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:112px;padding:16px 18px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 6px #182d4c05;text-decoration:none;color:var(--text)}
.personal-metric-label{font-size:13px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.personal-metric>strong{display:block;margin-top:8px;font-size:29px;line-height:1.1;letter-spacing:-.7px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}
.personal-metric-hint{display:block;margin-top:7px;font-size:11px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.personal-metric:first-child{background:#bceef7;border-color:#254d69;color:#173751;box-shadow:0 2px 6px #182d4c0a}
.personal-metric:first-child .personal-metric-label,.personal-metric:first-child .personal-metric-hint{color:#294e65}
.personal-metric:hover{border-color:var(--accent);box-shadow:0 2px 8px #182d4c12}
.personal-metric:focus-visible,.overview-quick-action:focus-visible,.overview-record:focus-visible,.overview-section-link:focus-visible,.overview-list-more:focus-visible{outline:2px solid var(--accent,#087bbd);outline-offset:4px}
.personal-overview-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;margin-bottom:28px}
.overview-quick-action{appearance:none;display:inline-flex;align-items:center;gap:7px;min-width:0;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);color:var(--text);font:inherit;font-size:12px;font-weight:550;line-height:1.35;text-align:left;cursor:pointer}
.overview-quick-action>span:last-child{overflow-wrap:anywhere}
.overview-quick-icon{display:flex;align-items:center;justify-content:center;width:16px;height:18px;flex:none;color:var(--muted)}
.overview-quick-icon svg{width:16px;height:16px}
.overview-quick-action:hover{border-color:var(--accent);background:var(--surface-hover,var(--surface-2))}
.personal-overview-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.personal-overview-lists>div{min-width:0}
.personal-overview-section{min-width:0}
.personal-overview-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-height:26px}
.personal-overview-section-head h2{margin:0;font-size:16px;font-weight:650;line-height:1.4;letter-spacing:-.2px}
.overview-section-link{display:inline-flex;align-items:center;gap:5px;flex:none;color:var(--accent);font-size:12px;line-height:1.4;text-decoration:none}
.overview-section-link svg{width:14px;height:14px}
.overview-section-link:hover{text-decoration:underline}
.overview-section-card{background:var(--surface,#fff);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 2px 6px #182d4c05}
.overview-record{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:0;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none;background:transparent;width:100%;text-align:left;font:inherit;font-size:14px;line-height:1.4;min-height:70px}
.overview-record:last-child{border-bottom:0}
.overview-record:hover{background:var(--surface-hover,var(--surface-2))}
.overview-record>span{min-width:0}
.overview-record>span:last-child{text-align:right}
.overview-record>span:first-child{text-align:left}
.overview-record strong,.overview-record small{display:block;overflow-wrap:anywhere}
.overview-record strong{font-weight:600}
.overview-record small{font-size:12px;color:var(--muted);margin-top:4px}
.overview-record .badge{white-space:normal;flex-shrink:0;max-width:45%;text-align:center}
.overview-record>span .badge{max-width:100%}
.overview-attention-row{display:flex;align-items:flex-start;gap:11px;padding:18px;border-bottom:1px solid var(--line)}
.overview-attention-row:last-child{border-bottom:0}
.overview-attention-dot{width:7px;height:7px;border-radius:50%;flex:none;margin-top:6px;background:#c98419}
.overview-attention-urgent{background:#cf4d58}
.overview-attention-copy{min-width:0;flex:1}
.overview-attention-copy>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.overview-attention-copy strong{font-size:14px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.overview-attention-count{flex:none;font-size:14px;font-weight:650;line-height:1.45;font-variant-numeric:tabular-nums}
.overview-attention-copy p{margin:5px 0 12px;font-size:12px;line-height:1.5;color:var(--muted)}
.overview-attention-copy .btn{min-height:32px;padding:6px 10px;font-size:12px;border-radius:8px;gap:7px}
.overview-attention-copy .btn svg{width:14px;height:14px}
.overview-list-more{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-top:1px solid var(--line);color:var(--accent,#087bbd);font-size:12px;text-decoration:none}
.overview-list-more:hover{background:var(--surface-hover,var(--surface-2))}
.overview-list-more svg{width:14px;height:14px}
.overview-empty{margin:0;padding:24px 18px;color:var(--muted);font-size:13px;line-height:1.5}
.overview-details{padding:12px 18px 18px;font-size:14px;line-height:1.5}
.overview-details p{margin:6px 0 0}
.overview-context{margin:0;padding:8px 18px 18px;font-size:14px}
.overview-context>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.overview-context>div:last-child{border:0;padding-bottom:0}
.overview-context dt{color:var(--muted)}
.overview-context dd{margin:0;text-align:right;min-width:0;overflow-wrap:anywhere}
.personal-empty{padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff)}
.personal-empty h2{margin:0 0 10px;font-size:20px}
.personal-empty p{color:var(--muted);line-height:1.5;margin-bottom:20px}
:root[data-theme=dark] .personal-metric:first-child{background:#164f68;border-color:#65b5ce;color:#eef9ff}
:root[data-theme=dark] .personal-metric:first-child .personal-metric-label,:root[data-theme=dark] .personal-metric:first-child .personal-metric-hint{color:#c5e8f4}
:root[data-theme=dark] .overview-attention-dot{background:#e8b958}
:root[data-theme=dark] .overview-attention-urgent{background:#ff8a96}
.overview-choices{margin-bottom:16px}
.overview-choice{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}
.overview-choice>label{display:flex;align-items:center;gap:12px;margin:0;font-weight:500}
.overview-choice input{width:18px;min-width:18px;height:18px;margin:0}
.overview-choice small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:2px}
.overview-choice>div{display:flex;gap:4px}
.overview-choice .icon-btn{min-width:36px;height:36px;font-size:20px}
.personal-appearance-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.personal-appearance-fields>label{min-width:0}
.personal-appearance-fields select{min-width:0;width:100%}
.personal-mobile-section{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.personal-mobile-section h3{margin:0 0 8px;font-size:16px}
.personal-mobile-section>p{margin:0 0 10px;font-size:13px;line-height:1.5}
.personal-mobile-choices{margin-bottom:12px}
.personal-mobile-choices .overview-choice>label{min-height:44px;flex:1;min-width:0;cursor:pointer}
.personal-mobile-choices .overview-choice>label span{overflow-wrap:anywhere}
.personal-mobile-choices .overview-choice>div{flex-shrink:0}
.personal-mobile-choices .personal-choice-disabled>label{color:var(--muted);cursor:default}
.personal-mobile-count{display:block;margin-bottom:10px;color:var(--muted);font-size:12px}
.personal-shipment-toggle{display:flex!important;align-items:center;gap:10px;margin:0 0 14px!important;min-height:44px;cursor:pointer;font-size:14px!important}
.personal-shipment-toggle input{width:18px!important;min-width:18px;height:18px!important;min-height:18px!important;margin:0!important;flex:none}
.personal-shipment-setting .inbound-destination-picker[hidden]{display:none}
.personal-shipment-setting .inbound-destination-picker{min-width:0}
.personal-shipment-setting .inbound-destination-picker select{width:100%;min-width:0}
.personal-settings-summary .detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0;margin-bottom:20px}
.personal-settings-summary .detail-meta dd{overflow-wrap:anywhere}
@media(max-width:800px){
 .personal-overview-header{margin-bottom:18px;gap:10px;align-items:flex-start}
 .personal-overview-header h1{font-size:25px}
 .personal-overview-header .actions{gap:4px}
 .personal-overview-header .btn{font-size:12px;padding:8px 10px;min-height:44px}
 .personal-overview-header .icon-btn{min-width:44px;min-height:44px}
 .personal-overview-metrics{grid-template-columns:repeat(var(--overview-phone-columns,2),minmax(0,1fr));gap:12px;margin-bottom:14px}
 .personal-metric{padding:15px 16px;min-height:112px}
 .personal-metric>strong{font-size:28px}
 .personal-overview-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:24px}
 .overview-quick-action{min-height:44px;width:100%;padding:8px 10px;font-size:12px}
 .personal-overview-lists{grid-template-columns:1fr;gap:22px}
 .personal-overview-section-head{margin-bottom:9px}
 .personal-overview-section-head h2{font-size:16px}
 .overview-section-link{min-height:36px}
 .overview-record{padding:15px 16px;gap:12px}
 .overview-attention-row{padding:16px}
 .overview-attention-copy .btn{min-height:40px;padding:8px 12px}
 .overview-choice .icon-btn{min-width:44px;height:44px}
 .personal-mobile-choices .overview-choice{padding:4px 0}
 .personal-mobile-choices .overview-choice input{width:20px;min-width:20px;height:20px}
 .personal-mobile-choices .overview-choice>label{gap:10px;font-size:14px}
 .personal-mobile-section{margin-top:18px;padding-top:16px}
}
@media(max-width:540px){
 .personal-overview-metrics{gap:10px}
 .personal-overview-header{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center}
 .personal-overview-header>.actions{width:auto;justify-content:flex-end}
 .personal-overview-header h1{font-size:25px}
 .personal-overview-header [data-action=overview-customize]{width:44px;height:44px;padding:10px;font-size:0;gap:0}
 .personal-overview-header [data-action=overview-customize] svg{display:block;width:20px;height:20px}
 .personal-overview-header [data-action=refresh]{display:none}
 .personal-metric-label{font-size:12px}
 .personal-metric-hint{font-size:11px}
}
@media(max-width:480px){.personal-appearance-fields,.personal-settings-summary .detail-meta{grid-template-columns:1fr}.personal-metric{padding:14px}.personal-metric>strong{font-size:27px}}
@media(min-width:801px){.top-tools .personal-interface-button{display:none}}
/* the status of a task and its lateness, apart — the same marks as in «Задания» (owner's audit 23.11.2026) */
:root[data-theme] .overview-task-marks{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:var(--space-1)}
:root[data-theme] .personal-overview-lists+.personal-overview-charts,:root[data-theme] .personal-overview-charts+.personal-overview-lists{margin-top:var(--space-5)}
/* the simple phone mode makes every button larger and gives it text back: «Настроить обзор» ran past the screen
   (check 25.11.2026) — it stays a square gear there too */
@media(max-width:540px){
 html:root[data-theme] body.mobile-simple .personal-overview-header{grid-template-columns:minmax(0,1fr) auto}
 html:root[data-theme] body.mobile-simple .personal-overview-header [data-action=overview-customize]{font-size:0;gap:0;aspect-ratio:1;padding:0;justify-content:center}
}


/* overview-analytics.css */
/* Six lightweight monthly points; no external chart runtime or network request. */
.personal-overview-metrics{margin-bottom:24px}
.personal-overview-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:28px}
.personal-overview-charts:empty{display:none}
.overview-chart{--chart-sales:#1395c3;--chart-repairs:#6977d4;--chart-client:#25896f;min-width:0;border:1px solid var(--line);border-radius:16px;padding:20px 22px 14px;background:var(--surface);box-shadow:0 2px 6px #182d4c05}
.overview-chart-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.overview-chart-heading h2{margin:0;font-size:16px;line-height:1.35;font-weight:700;letter-spacing:-.2px}
.overview-chart-heading>span{color:var(--muted);font-size:11px;white-space:nowrap}
.overview-chart-summary{display:flex;gap:12px;align-items:center;margin:14px 0 12px;min-height:45px}
.overview-chart-summary>strong{font-size:34px;letter-spacing:-1px;line-height:1.1;font-variant-numeric:tabular-nums}
.overview-chart-summary b{font-size:12px;font-weight:600;text-transform:capitalize}
.overview-chart-summary small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.overview-chart-plot{position:relative;height:179px;margin-top:4px}
.overview-chart-grid{position:absolute;inset:0 0 35px 30px;pointer-events:none}
.overview-chart-grid>div{position:absolute;left:0;right:0;top:calc(var(--grid-row)*25%);border-top:1px dashed var(--line)}
.overview-chart-grid span{position:absolute;right:calc(100% + 7px);top:-7px;min-width:28px;white-space:nowrap;text-align:right;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.overview-chart-data{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:100%;margin-left:30px}
.overview-chart-month{position:relative;appearance:none;background:none;border:0;border-radius:6px;min-width:0;margin:0;padding:0 6px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;color:var(--muted);font:inherit;cursor:pointer;z-index:1}
.overview-chart-column{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;width:100%;height:144px;flex:none;border-radius:5px 5px 0 0}
.overview-chart-bar{display:flex;flex-direction:column;overflow:hidden;width:52%;max-width:48px;min-width:14px;border-radius:5px 5px 0 0;opacity:.7}
.overview-chart-bar i{display:block;width:100%;min-height:1px}
.overview-chart-bar .sales,.chart-key.sales{background:var(--chart-sales)}
.overview-chart-bar .repairs,.chart-key.repairs{background:var(--chart-repairs)}
.overview-chart-month-label{font-size:11px;height:35px;display:flex;align-items:center;justify-content:center;text-transform:capitalize}
.overview-chart-month.is-selected{color:var(--text);font-weight:700;background:color-mix(in srgb,var(--accent) 6%,transparent)}
.overview-chart-month.is-selected .overview-chart-bar,.overview-chart-month:hover .overview-chart-bar{opacity:1}
.overview-chart-month.is-selected .overview-chart-month-label{box-shadow:inset 0 -2px var(--accent)}
.overview-chart-month:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}
.overview-chart-month:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.overview-client-line{position:absolute;top:0;left:0;width:100%;height:144px;overflow:visible;pointer-events:none}
.overview-client-area{fill:var(--chart-client);opacity:.1}
.overview-client-stroke{fill:none;stroke:var(--chart-client);stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.overview-client-line circle{fill:var(--surface);stroke:var(--chart-client);stroke-width:2;vector-effect:non-scaling-stroke}
.overview-chart-legend{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:14px;min-height:20px;font-size:12px}
.overview-chart-legend>span{display:flex;align-items:center;gap:6px;color:var(--muted)}
.overview-chart-legend b{margin-left:2px;color:var(--text);font-weight:700}
.chart-key{width:8px;height:8px;border-radius:3px;display:inline-block;flex:none}
.overview-chart-footnote{color:var(--muted);font-size:10px;line-height:1.5;margin-top:7px;min-height:15px}
.overview-metric-comparison{display:flex;gap:6px;align-items:flex-start;max-width:100%}
.overview-metric-comparison>span:last-child{font-size:10px;line-height:1.5}
.overview-change{display:inline-flex;flex:none;gap:3px;padding:2px 5px;border-radius:5px;font-weight:700;font-size:10px;line-height:1.2;background:var(--surface-2);color:var(--muted)}
.overview-change.is-positive{background:#dff2e9;color:#21684b}
.overview-change.is-negative{background:#fbe9e8;color:#9d423c}
:root[data-theme=dark] .overview-chart{--chart-sales:#44bde7;--chart-repairs:#a39bf7;--chart-client:#65c9a6}
:root[data-theme=dark] .overview-change.is-positive{background:#204b3c;color:#9fe5c0}
:root[data-theme=dark] .overview-change.is-negative{background:#593339;color:#ffc1c5}
@media(max-width:1100px) and (min-width:801px){.overview-chart{padding:18px 16px 12px}.overview-chart-heading{align-items:flex-start;flex-direction:column;gap:4px}.overview-metric-comparison{flex-wrap:wrap}}
@media(max-width:800px){.personal-overview-charts{grid-template-columns:1fr;gap:14px;margin-bottom:24px}.overview-chart{padding:18px 16px 12px}.overview-chart-heading h2{font-size:15px}.overview-chart-summary>strong{font-size:30px}.overview-metric-comparison{flex-wrap:wrap;gap:5px}.overview-chart-month{padding:0 4px}.overview-chart-month-label{font-size:11px;height:44px}.overview-chart-plot{height:188px}.overview-chart-grid{bottom:44px}.overview-chart-legend{margin-top:12px}}


/* mobile-app.css */
/* Desktop keeps its dense workspace. Mobile gets a persistent thumb-level menu. */
.mobile-bottom-nav{display:none}.mobile-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(560px,100%);max-width:100%;max-height:min(85dvh,calc(var(--mobile-viewport-height,100dvh) - 20px));padding:0 16px calc(18px + env(safe-area-inset-bottom));border:1px solid #e0e7ed;border-radius:22px 22px 0 0;background:#fff;overflow:auto;overscroll-behavior:contain;box-shadow:0 -8px 50px #0b263c24}.mobile-sheet::backdrop{background:#10202f73;backdrop-filter:blur(2px)}.mobile-sheet-handle{width:40px;height:4px;border-radius:4px;background:#d8e0e6;margin:10px auto 5px}.mobile-sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 0 12px}.mobile-sheet-heading h2{font-size:19px;margin:0}.mobile-sheet-heading .icon-btn{min-width:44px;min-height:44px;align-items:center;justify-content:center}.mobile-sheet-body{display:grid;gap:14px}.mobile-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-action-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;min-height:144px;min-width:0;overflow-wrap:anywhere;border:1px solid #dce8ef;background:#f6fafc;border-radius:14px;padding:14px;text-align:left;font-size:14px;font-weight:600;line-height:1.4}.mobile-action-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e8f4fc;color:#087ab8;flex:none}.mobile-action-icon>svg{width:22px;height:22px}.mobile-action-copy{display:grid;gap:5px;min-width:0}.mobile-action-copy>strong{font-size:14px;font-weight:650;line-height:1.3}.mobile-action-copy>small{display:block;font-size:12px;font-weight:400;line-height:1.4;color:#627582}.mobile-action-tile:hover,.mobile-section-link:hover{background:#eef8fe}.mobile-action-tile:active{background:#dff1fb}.mobile-empty{grid-column:1/-1;margin:0;color:var(--muted);padding:12px 0;line-height:1.5}.mobile-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}.mobile-section-link{display:flex;align-items:center;gap:10px;min-height:52px;width:100%;padding:10px 6px;text-align:left;border-radius:9px;font-size:14px;line-height:1.35}.mobile-section-link>span{flex:1}.mobile-section-link>svg:first-child{color:#417088}.mobile-section-link>svg:last-child{width:14px;color:#78909f}.mobile-section-link[aria-current=page]{background:#e8f6ff;color:#066caa;font-weight:650}.mobile-sheet-preferences{border-top:1px solid var(--line);padding-top:6px}
@media(max-width:800px){
 html{scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom))}body.mobile-app-ready{--mobile-nav-height:70px}body.mobile-app-ready .workspace{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom))}body.mobile-app-ready .content{padding:16px 12px 24px;max-width:100%;overflow-wrap:anywhere}body.mobile-app-ready .content.order-list-content{padding:12px}body.mobile-app-ready .topbar{position:sticky;top:0;z-index:21;height:60px;gap:8px;padding:0 max(12px,env(safe-area-inset-left)) 0 max(12px,env(safe-area-inset-left));background:#ffffffed;backdrop-filter:blur(12px)}body.mobile-app-ready .breadcrumb{min-width:0;gap:4px}body.mobile-app-ready .breadcrumb>b{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.mobile-app-ready .breadcrumb>.mobile-menu,body.mobile-app-ready .breadcrumb>svg{display:none}body.mobile-app-ready .top-tools{gap:4px;flex:none}body.mobile-app-ready .top-tools>[data-action=profile-language],body.mobile-app-ready .top-tools>svg{display:none}body.mobile-app-ready .top-tools select{max-width:116px;min-height:44px;font-size:13px;padding:5px}body.mobile-app-ready .top-tools .profile{border:0;min-height:44px;min-width:44px;padding:5px}body.mobile-app-ready .sidebar{display:none}
 .mobile-bottom-nav{position:fixed;z-index:40;inset:auto 0 0;display:grid;grid-template-columns:repeat(var(--mobile-nav-columns,5),minmax(0,1fr));align-items:center;gap:2px;min-height:var(--mobile-nav-height,70px);padding:6px max(4px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));background:#ffffffed;backdrop-filter:blur(14px);border-top:1px solid #e0e8ee;box-shadow:0 -4px 20px #193f5010}.mobile-nav-item{position:relative;min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 1px;border-radius:12px;color:#667984;font-size:11px;font-weight:600;line-height:1.2}.mobile-nav-item>svg{width:22px;height:22px}.mobile-nav-item>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-nav-item.active{color:#0675b7;background:#eff8fe}.mobile-nav-item.active>svg{stroke-width:2}.mobile-nav-item>b{position:absolute;right:10px;top:1px;min-width:18px;height:18px;padding:2px 4px;border:2px solid #fff;border-radius:9px;color:#fff;background:#0577b9;font-size:9px;line-height:10px;text-align:center}.mobile-nav-item>b[hidden]{display:none}.mobile-nav-create{justify-self:center;display:grid;place-items:center;width:52px;height:52px;min-height:52px;padding:0;border-radius:17px;background:var(--brand-gradient,linear-gradient(130deg,#21bed9,#0675c7));color:white;box-shadow:0 5px 12px #087dbd2a}.mobile-nav-create>svg{width:28px;height:28px;stroke-width:2}.mobile-nav-create:active{transform:scale(.97)}body.mobile-keyboard-open .mobile-bottom-nav{display:none}body.mobile-keyboard-open .workspace{padding-bottom:8px}
 body.mobile-app-ready .btn,body.mobile-app-ready .btn.small,body.mobile-app-ready .icon-btn,body.mobile-app-ready .tabs button,body.mobile-app-ready .settings-nav button{min-height:44px}body.mobile-app-ready .icon-btn{min-width:44px;align-items:center;justify-content:center}body.mobile-app-ready input:not([type=checkbox]):not([type=radio]):not([type=color]),body.mobile-app-ready select,body.mobile-app-ready textarea{min-height:var(--control-h);font-size:16px}body.mobile-app-ready .checks label,body.mobile-app-ready .assignment-check,body.mobile-app-ready .list-check{min-height:44px}body.mobile-app-ready input[type=checkbox],body.mobile-app-ready input[type=radio]{min-width:20px;min-height:20px;width:20px;height:20px;flex:none}body.mobile-app-ready .table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}body.mobile-app-ready .toolbar{gap:10px}body.mobile-app-ready .page-head{gap:12px;margin-bottom:14px}body.mobile-app-ready .page-head h1{font-size:23px}body.mobile-app-ready .tabs{max-width:100%;overflow:auto;scrollbar-width:thin}body.mobile-app-ready .page-head>.actions{gap:8px}body.mobile-app-ready .modal-body .row{grid-template-columns:1fr}body.mobile-app-ready dialog:not(.mobile-sheet){max-height:calc(var(--mobile-viewport-height,100dvh) - 16px);width:calc(100% - 16px);max-width:100%;border-radius:16px}body.mobile-app-ready dialog.stock-product-drawer,body.mobile-app-ready dialog.assignment-drawer,body.mobile-app-ready dialog.freight-drawer{width:100%;max-height:var(--mobile-viewport-height,100dvh);border-radius:0;height:var(--mobile-viewport-height,100dvh)}body.mobile-app-ready .modal-head{padding:12px 14px;gap:8px}body.mobile-app-ready .modal-head h2{font-size:18px}body.mobile-app-ready .modal-body{padding:14px;gap:14px}body.mobile-app-ready .modal-foot{position:sticky;bottom:0;z-index:3;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#f7f9faf5;backdrop-filter:blur(8px)}body.mobile-app-ready .modal-foot .btn{min-height:46px;flex:1}body.mobile-app-ready .sku-layout{display:block;padding:16px}body.mobile-app-ready .sku-layout aside{border-left:0;border-top:1px solid var(--line);padding:16px 0 0;margin-top:16px}body.mobile-app-ready .sku-layout .detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body.mobile-app-ready .sku-layout .detail-meta dd{overflow-wrap:anywhere}body.mobile-app-ready .freight-drawer .modal-body{max-height:calc(var(--mobile-viewport-height,100dvh) - 85px)}body.mobile-app-ready #toasts{left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom))}body.mobile-app-ready .toast{max-width:100%;padding:12px 15px}body.mobile-keyboard-open #toasts{bottom:12px}body.mobile-app-ready .task-inbox{max-width:calc(100% - 24px);right:12px;bottom:calc(82px + env(safe-area-inset-bottom))}
 body.mobile-simple .btn,body.mobile-simple .btn.small,body.mobile-simple .icon-btn,body.mobile-simple .tabs button,body.mobile-simple .settings-nav button{min-height:52px;font-size:15px}body.mobile-simple .icon-btn{min-width:52px}body.mobile-simple input:not([type=checkbox]):not([type=radio]):not([type=color]),body.mobile-simple select{min-height:52px}body.mobile-simple textarea{min-height:100px}body.mobile-simple .mobile-action-tile{min-height:160px;font-size:16px}body.mobile-simple .mobile-action-copy>strong{font-size:16px}body.mobile-simple .mobile-action-copy>small{font-size:13px}body.mobile-simple .mobile-section-grid{grid-template-columns:1fr}body.mobile-simple .mobile-section-link{min-height:58px;font-size:16px}body.mobile-simple .mobile-nav-item{font-size:12px;min-height:56px}body.mobile-simple .topbar .profile{min-height:48px}body.mobile-simple .metric{padding:16px;border-radius:14px}body.mobile-simple .metric strong{font-size:26px}body.mobile-simple .metric-foot{line-height:1.5}body.mobile-simple .page-head>div>p,body.mobile-simple .footnote{display:none}
}
@media(max-width:360px){.mobile-section-grid{grid-template-columns:1fr}.mobile-nav-item{font-size:10px}}
@media print{.mobile-bottom-nav,.mobile-sheet{display:none!important}body.mobile-app-ready .workspace{padding-bottom:0}}
@media(max-width:800px){body.mobile-app-ready .product-link,body.mobile-app-ready a.text-link,body.mobile-app-ready button.text-link{min-height:44px;display:inline-flex;align-items:center}body.mobile-app-ready .mobile-checkbox-hit{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;margin:-8px}}
@media(min-width:801px){.mobile-checkbox-hit{display:contents}}

/* Order cards keep their full form, including submit actions, in the page flow. */
@media(max-width:800px){
 body.mobile-app-ready .order-workspace{min-width:0;--order-gap:12px}
 body.mobile-app-ready .order-top-grid{grid-template-columns:minmax(0,1fr);align-items:start}
 body.mobile-app-ready .order-top-grid>div{min-width:0}
 body.mobile-app-ready .order-activity>.panel{display:flex;flex-direction:column;height:auto;max-height:none}
 body.mobile-app-ready .order-activity .order-comment-feed{flex:none;min-height:0;max-height:240px;padding:8px 14px}
 body.mobile-app-ready .order-comment-empty{margin:14px 0;font-size:13px}
 body.mobile-app-ready .order-activity .order-comment-composer{display:block;height:auto;min-height:0;max-height:none;margin-top:0;padding:14px;border-left:0;border-top:1px solid var(--line)}
 body.mobile-app-ready .order-workspace #comment-form{display:grid;gap:10px;width:100%;min-width:0}
 body.mobile-app-ready .order-workspace #comment-form textarea{height:112px;min-height:112px;max-height:240px;font-size:16px;line-height:1.45;padding:10px 12px;resize:vertical}
 body.mobile-app-ready .order-workspace #comment-form .actions{display:flex;margin:0;min-width:0}
 body.mobile-app-ready .order-workspace #comment-form [data-action=comment]{width:100%;min-height:44px;font-size:14px;white-space:normal}
 body.mobile-app-ready .order-workspace #comment-form .form-error:empty{display:none}
 :root[data-theme] body.mobile-app-ready .order-workspace .panel-head{min-height:50px;padding:12px 14px;gap:10px}
 body.mobile-app-ready .order-workspace .panel-head h2{font-size:15px;line-height:1.3}
 body.mobile-app-ready .order-workspace .panel-body{padding:14px}
 body.mobile-app-ready .order-workspace .order-overview .order-overview-body{padding:14px}
 body.mobile-app-ready .order-toolbar{gap:8px;margin-bottom:12px}
 body.mobile-app-ready .order-toolbar h1{font-size:20px}
 body.mobile-app-ready .order-toolbar>.actions{flex-basis:100%;display:flex;gap:8px;margin:0}
 body.mobile-app-ready .order-toolbar>.actions>.btn{flex:1;white-space:normal;font-size:13px}
 body.mobile-app-ready .order-status{min-width:0;flex:1}
 body.mobile-app-ready .order-status select{min-height:44px}
 body.mobile-app-ready .order-workspace .summary-line{font-size:13px;line-height:1.45;padding:6px 0}
 body.mobile-app-ready .order-workspace .summary-line>span:first-child{min-width:0;overflow-wrap:anywhere}
 body.mobile-app-ready .order-finance-actions{display:flex;gap:8px;padding:12px 14px}
 body.mobile-app-ready .order-finance-actions>.btn{flex:1 1 140px;white-space:normal}
 body.mobile-app-ready .order-workspace .order-intake-editors{grid-template-columns:minmax(0,1fr);gap:14px}
 body.mobile-app-ready .order-workspace .order-intake-editors :is(input:not([type=checkbox]),textarea){height:auto;min-height:44px;font-size:16px;line-height:1.4;padding:10px 12px}
 body.mobile-app-ready .order-workspace .order-intake-editors textarea{min-height:96px}
 body.mobile-app-ready .order-workspace .order-intake-editors .repair-fault textarea{height:44px;min-height:44px;max-height:none}
 body.mobile-app-ready.mobile-simple .order-workspace .order-intake-editors .repair-fault textarea{height:52px;min-height:52px}
 body.mobile-app-ready .order-workspace .repair-equipment-checks{gap:6px 12px}
 body.mobile-app-ready .order-workspace .repair-equipment-checks label{font-size:13px;min-height:44px}
 body.mobile-app-ready .order-workspace .order-secondary{grid-template-columns:minmax(0,1fr)}
 body.mobile-app-ready .order-workspace :is(.order-contacts,.order-card-form) label,body.mobile-app-ready .order-workspace .detail-meta dt{font-size:12px}
 body.mobile-app-ready .order-workspace .detail-meta dd{font-size:14px}
 body.mobile-app-ready .order-workspace .order-overview-facts dd{font-size:13px}
 body.mobile-app-ready .order-workspace .order-composer-sku-control{flex-wrap:wrap}
 body.mobile-app-ready .order-workspace .order-composer-sku-control input{flex:1 1 180px}
 body.mobile-app-ready .order-workspace .order-composer-sku-control>.btn{min-height:44px}
 body.mobile-app-ready.mobile-simple .order-workspace :is(.btn,input:not([type=checkbox]):not([type=radio]),select){min-height:52px;font-size:16px}
 body.mobile-app-ready.mobile-simple .order-workspace #comment-form [data-action=comment]{min-height:52px;font-size:16px}
}

.mobile-freight-search{display:grid;gap:7px;font-size:13px;color:var(--muted)}.mobile-freight-search input{width:100%;min-width:0}.mobile-freight-list{display:grid;gap:8px}.mobile-freight-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;border:1px solid var(--line);border-radius:12px;padding:12px;text-align:left;background:#f6fafc}.mobile-freight-choice>span:nth-child(2){flex:1;display:grid;gap:5px;min-width:0}.mobile-freight-choice strong,.mobile-freight-choice small{overflow-wrap:anywhere}.mobile-freight-choice strong{font-size:15px;line-height:1.4}.mobile-freight-choice small{font-size:12px;color:var(--muted)}.mobile-freight-choice>svg{flex:none;width:16px}.mobile-freight-choice:hover{background:#eef8fe}.mobile-freight-choice:active{background:#dff1fb}

/* Phone workspace: a clear reading order, stable action areas and one scroll pane. */
@media screen and (max-width:800px){
 html:root[data-theme] body.mobile-app-ready{--mobile-nav-height:68px}
 html:root[data-theme] body.mobile-app-ready .content{padding:14px 12px 24px}
 html:root[data-theme] body.mobile-app-ready .topbar{height:58px;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right));gap:8px}
 html:root[data-theme] body.mobile-app-ready .topbar .breadcrumb>b{font-size:16px;line-height:1.25}
 html:root[data-theme] body.mobile-app-ready .topbar .top-tools select{font-size:14px;max-width:130px}
 html:root[data-theme] body.mobile-app-ready .topbar .profile{width:44px;height:44px;padding:4px;border:0;background:transparent}
 html:root[data-theme] body.mobile-app-ready .topbar .profile .profile-name{display:none}
 html:root[data-theme] body.mobile-app-ready .page-head{align-items:flex-start;gap:12px;margin-bottom:16px}
 html:root[data-theme] body.mobile-app-ready .page-head h1{font-size:23px;line-height:1.25;letter-spacing:-.4px}
 html:root[data-theme] body.mobile-app-ready .page-head p{font-size:13px;line-height:1.5;margin-top:5px}
 html:root[data-theme] body.mobile-app-ready .page-head>.actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}
 html:root[data-theme] body.mobile-app-ready .page-head>.actions>.btn{flex:1 1 132px;min-width:0;white-space:normal;line-height:1.3}
 html:root[data-theme] body.mobile-app-ready .panel{border-radius:14px}
 html:root[data-theme] body.mobile-app-ready .panel-head{padding:12px 14px;gap:10px;min-height:52px}
 html:root[data-theme] body.mobile-app-ready .panel-head h2{font-size:16px;line-height:1.3}
 html:root[data-theme] body.mobile-app-ready .panel-body{padding:14px}
 html:root[data-theme] body.mobile-app-ready .tabs{scroll-padding-inline:12px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 html:root[data-theme] body.mobile-app-ready .tabs>button{flex:none;min-height:44px;font-size:13px;white-space:nowrap;padding:10px 14px}
 /* the button of the row goes above the strip: a tab is the last thing before its window (docs/TABS.md) */
 html:root[data-theme] body.mobile-app-ready .inventory-section-header{display:flex;flex-wrap:wrap-reverse;gap:10px;padding-bottom:0}
 html:root[data-theme] body.mobile-app-ready .inventory-section-header>.tabs{flex:1 0 100%;width:100%}
 html:root[data-theme] body.mobile-app-ready .inventory-section-header>.inventory-header-actions{padding:0;margin-left:auto;display:flex;flex-wrap:wrap;gap:8px}
 html:root[data-theme] body.mobile-app-ready .warehouse-selection{display:flex;gap:8px 10px;margin-bottom:14px;align-items:center}
 html:root[data-theme] body.mobile-app-ready .warehouse-selection>strong{font-size:16px;line-height:1.35}
 html:root[data-theme] body.mobile-app-ready .warehouse-selection>.actions{flex-basis:100%;display:flex;gap:8px;margin:0}
 html:root[data-theme] body.mobile-app-ready .warehouse-selection>.actions>.btn{flex:1;min-width:0;white-space:normal}
 html:root[data-theme] body.mobile-app-ready .warehouse-overview-search{display:grid;gap:8px;margin-bottom:12px}
 html:root[data-theme] body.mobile-app-ready .warehouse-overview-search label{width:100%}
 html:root[data-theme] body.mobile-app-ready .warehouse-tiles{grid-template-columns:minmax(0,1fr);gap:10px}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile{padding:14px;gap:12px;border-radius:14px}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile-name strong{font-size:16px}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile-total{font-size:28px;gap:8px}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile-bottom{padding-top:10px;font-size:12px}
 /* Every modal uses its existing body as the scroll container. The submit row
    stays reachable while the camera/keyboard changes the usable viewport. */
 html:root[data-theme] body.mobile-app-ready #modal[open]{display:flex;flex-direction:column;overflow:hidden;width:calc(100% - 16px);max-width:620px;max-height:calc(var(--mobile-viewport-height,100dvh) - 16px);border-radius:18px}
 html:root[data-theme] body.mobile-app-ready #modal>form{display:flex;flex-direction:column;min-height:0;max-height:calc(var(--mobile-viewport-height,100dvh) - 16px)}
 html:root[data-theme] body.mobile-app-ready #modal>.modal-body,
 html:root[data-theme] body.mobile-app-ready #modal>form>.modal-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:12px;padding:14px;gap:14px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-head{position:relative;top:auto;flex:none;padding:12px 14px;gap:12px;min-height:68px;box-sizing:border-box;background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready #modal .modal-head h2{font-size:18px;line-height:1.3;min-width:0;overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready #modal .modal-head>.icon-btn{width:44px;min-width:44px;height:44px;padding:10px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot{position:relative;bottom:auto;flex:none;display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px max(12px,env(safe-area-inset-bottom));background:var(--surface);box-shadow:0 -3px 12px #132a4308}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot>.btn{flex:1 1 100px;min-width:0;min-height:46px;font-size:14px;line-height:1.35;white-space:normal;justify-content:center}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot>.btn[type=submit]{flex:2 1 150px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot>.form-error{flex:1 0 100%;margin:0;max-height:96px;overflow:auto;font-size:13px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready #modal .modal-body>label,
 html:root[data-theme] body.mobile-app-ready #modal .modal-body .row>label{font-size:13px;line-height:1.4;gap:6px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-body .row{grid-template-columns:minmax(0,1fr);gap:14px}
 html:root[data-theme] body.mobile-app-ready #modal :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px;min-height:44px;max-width:100%;box-sizing:border-box}
 html:root[data-theme] body.mobile-app-ready #modal :is(input:not([type=checkbox]):not([type=radio]),textarea):focus{scroll-margin-block:16px}
 html:root[data-theme] body.mobile-app-ready #modal textarea{line-height:1.45}
 html:root[data-theme] body.mobile-keyboard-open #modal[open]{position:fixed;top:calc(var(--mobile-viewport-top,0px) + 8px);bottom:auto;margin-block:0}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet{background:var(--surface);border-color:var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile{background:var(--surface-2);border-color:var(--line);color:var(--text);min-height:128px;padding:12px;gap:10px}
 html:root[data-theme] body.mobile-app-ready .mobile-action-copy>small{color:var(--muted)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile:active{background:var(--surface-selected)}
 html:root[data-theme] body.mobile-app-ready .mobile-section-link{color:var(--text);font-size:14px}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item{font-size:11px;min-height:52px}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item.active{background:var(--surface-selected);color:var(--accent)}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item:focus-visible,
 html:root[data-theme] body.mobile-app-ready .mobile-nav-create:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
 html:root[data-theme] body.mobile-app-ready .stock-scan-dialog .stock-scan-selection{padding:12px;border-radius:12px;background:var(--surface-2)}
 html:root[data-theme] body.mobile-app-ready .stock-scan-dialog .stock-scan-items{max-height:min(30dvh,240px);overscroll-behavior:contain}
 html:root[data-theme] body.mobile-app-ready .stock-scan-items>li{padding:10px 0;font-size:14px;gap:8px}
 html:root[data-theme] body.mobile-app-ready .stock-scan-items small{font-size:12px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready .stock-scan-items .icon-btn{min-width:44px;min-height:44px;width:44px;height:44px}
 html:root[data-theme] body.mobile-app-ready .stock-scan-dialog .stock-scan-status{font-size:13px;line-height:1.45}
 html:root[data-theme] body.mobile-app-ready .stock-scan-extra>summary{display:flex;align-items:center;min-height:44px;font-size:14px;color:var(--accent)}
 html:root[data-theme] body.mobile-app-ready :is(.remote-sku-options,.sku-autocomplete-options,.inventory-product-options){overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html:root[data-theme] body.mobile-app-ready .remote-sku-options>.btn{padding:12px;min-height:56px;align-items:flex-start;flex-wrap:wrap;font-size:14px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready .remote-sku-options>.btn>span{flex-basis:100%;font-size:12px}
 html:root[data-theme] body.mobile-app-ready .lookup-pages>.btn{min-height:44px;padding:8px 12px}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-overview-columns{grid-template-columns:minmax(0,1fr)}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-comment-feed{max-height:300px;line-height:1.5}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-comment-body{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-modes{min-height:48px;height:48px}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-fields{gap:10px}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-options button{min-height:56px;padding:12px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-options strong{font-size:14px}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-options small{font-size:12px}
 html:root[data-theme] body.mobile-app-ready #main.content.order-overlay-content{inset:8px 8px calc(var(--mobile-nav-height,68px) + env(safe-area-inset-bottom) + 8px);padding:12px 12px 20px;scrollbar-gutter:auto;border-radius:16px}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar{top:-12px;margin:-12px -12px 12px;padding:12px 62px 12px 12px}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-overlay-close{top:10px;right:10px;width:44px;height:44px;min-width:44px}
 html:root[data-theme] body.mobile-app-ready.order-overlay-open .mobile-bottom-nav{z-index:72}
 html:root[data-theme] body.mobile-keyboard-open #main.content.order-overlay-content{top:calc(var(--mobile-viewport-top,0px) + 8px);bottom:auto;height:calc(var(--mobile-viewport-height,100dvh) - 16px);box-sizing:border-box}
 html:root[data-theme] body.mobile-app-ready :is(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
 html:root[data-theme] body.mobile-app-ready :is(button,a){touch-action:manipulation}
 html:root[data-theme] body.mobile-app-ready .btn:active:not(:disabled){filter:brightness(.94)}
}
@media screen and (max-width:360px){
 html:root[data-theme] body.mobile-app-ready .topbar .top-tools select{max-width:112px;font-size:13px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot>.btn{font-size:13px;padding-inline:10px}
 html:root[data-theme] body.mobile-app-ready .order-toolbar>.actions{flex-wrap:wrap}
}
@media screen and (prefers-reduced-motion:reduce){
 .mobile-nav-create:active{transform:none}
}

/* Serial editing needs the full phone width; the save action is a separate row. */
@media screen and (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .sku-detail-dialog .detail-meta>div:has(#sku-serial-form){grid-column:1/-1;min-width:0}
 html:root[data-theme] body.mobile-app-ready .sku-detail-dialog .sku-serial-fields{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
 html:root[data-theme] body.mobile-app-ready .sku-detail-dialog .sku-serial-fields>.mobile-scan-control{flex:1 0 100%;width:100%}
 html:root[data-theme] body.mobile-app-ready .sku-detail-dialog .sku-serial-fields>button[type=submit]{margin-left:auto;min-height:44px}
}
/* iPhone audit UI-006: on a phone «Новые задания» stands above the bottom menu at the height of what it holds — it was
   anchored to the top and to the bottom at once and stretched over the whole page */
html:root[data-theme] body.mobile-app-ready .task-inbox{top:auto;max-height:calc(100dvh - var(--mobile-nav-height) - var(--space-7) * 2);display:flex;flex-direction:column}
html:root[data-theme] body.mobile-app-ready .task-inbox-list{max-height:none;min-height:0;flex:1 1 auto}
html:root[data-theme] .task-inbox-head .actions{display:flex;align-items:center;gap:var(--space-1);flex-wrap:nowrap}


/* mobile-lists.css */
/* Mobile disclosure leaves all user-selected columns and their live controls in place. */
.mobile-row-toggle,.mobile-open-record{display:none!important}
@media(max-width:800px){
 body.mobile-app-ready .table-wrap:has(> .mobile-disclosure-table){overflow:visible;min-width:0;width:100%;max-width:100%}
 body.mobile-app-ready .mobile-disclosure-table{display:block;table-layout:auto;width:100%;min-width:0;max-width:100%;white-space:normal}
 body.mobile-app-ready .mobile-disclosure-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.mobile-app-ready .mobile-disclosure-table>thead:has(.mobile-row-select-all){position:static;display:block;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;padding:2px 4px 8px}
 body.mobile-app-ready .mobile-disclosure-table>thead:has(.mobile-row-select-all)>tr{display:flex}
 body.mobile-app-ready .mobile-disclosure-table>thead:has(.mobile-row-select-all) th:not(.mobile-row-select-all){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.mobile-app-ready .mobile-disclosure-table th.mobile-row-select-all{display:block;background:none;border:0;padding:0;width:auto!important;min-width:0!important;max-width:none!important;flex:1}
 body.mobile-app-ready .mobile-row-select-all .mobile-checkbox-hit{width:auto;margin:0;gap:10px;padding:0 10px}
 body.mobile-app-ready .mobile-row-select-all .mobile-checkbox-hit::after{content:attr(aria-label);font-size:12px;font-weight:500;white-space:nowrap}
 body.mobile-app-ready .mobile-disclosure-table>tbody{display:grid;gap:8px;width:100%}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr[data-mobile-row]{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px 14px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:10px;cursor:pointer}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td{display:block;min-width:0!important;width:auto!important;max-width:none!important;height:auto!important;padding:0!important;border:0!important;font-size:13px;line-height:1.45;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td::before{content:attr(data-mobile-label);display:block;color:var(--muted);font-size:11px;font-weight:500;line-height:1.4;margin-bottom:3px}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-primary{grid-column:1/-1;padding-right:38px!important;font-weight:650;font-size:14px}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-primary::before{display:none}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr:has(>.mobile-row-selection)>td.mobile-row-primary{padding-left:34px!important}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-selection{position:absolute;top:8px;left:4px;display:grid;place-items:center;width:44px!important;height:44px;padding:0!important;z-index:1}
 body.mobile-app-ready .mobile-row-selection::before{display:none!important}
 body.mobile-app-ready .mobile-row-selection .mobile-checkbox-hit{margin:0}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr:not(.mobile-row-expanded)>td:not(.mobile-row-primary):not(.mobile-row-summary):not(.mobile-row-selection){display:none}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-empty{display:none}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-actions{grid-column:1/-1;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line)!important;padding-top:10px!important}
 body.mobile-app-ready .mobile-row-actions::before{display:none!important}
 body.mobile-app-ready .mobile-row-actions .actions{display:flex;flex-wrap:wrap;gap:8px;white-space:normal}
 body.mobile-app-ready .mobile-row-actions .actions>small{flex-basis:100%}
 body.mobile-app-ready .mobile-row-toggle{position:absolute;top:6px;right:5px;display:grid!important;place-items:center;width:44px;min-width:44px;min-height:44px;padding:0;border-radius:10px;color:#426b83;background:#f1f7fa}
 body.mobile-app-ready .mobile-row-toggle>span{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
 body.mobile-app-ready .mobile-row-toggle[aria-expanded=true]>span{transform:translateY(2px) rotate(225deg)}
 body.mobile-app-ready .mobile-row-toggle:focus-visible{outline:2px solid #168ac7;outline-offset:2px}
 /* its own line under the record's number, not «2Открыть запись» (iPhone audit UI-009) */
 body.mobile-app-ready .mobile-row-expanded .mobile-open-record{display:flex!important;width:max-content;align-items:center;margin-top:var(--space-2);font:var(--text-label);min-height:var(--tap-min)}
 body.mobile-app-ready .mobile-disclosure-table .product-link,body.mobile-app-ready .mobile-disclosure-table .text-link{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 body.mobile-app-ready .mobile-disclosure-table td.mobile-row-primary .product-link{font-size:14px}
 body.mobile-app-ready .mobile-disclosure-table .btn,body.mobile-app-ready .mobile-disclosure-table .btn.small{min-height:44px!important;padding:8px 12px;font-size:13px}
 body.mobile-app-ready .mobile-disclosure-table .product-warehouse-chips{max-width:100%;white-space:nowrap}
 body.mobile-app-ready .mobile-disclosure-table .wrap{min-width:0;max-width:none}
 body.mobile-app-ready .mobile-disclosure-table input:not([type=checkbox]):not([type=radio]),body.mobile-app-ready .mobile-disclosure-table select{max-width:100%;width:100%;min-width:0!important;height:auto}
 body.mobile-app-ready .mobile-disclosure-table [data-item-column=qty],body.mobile-app-ready .mobile-disclosure-table [data-item-column=price],body.mobile-app-ready .mobile-disclosure-table [data-item-column=master]{min-width:0}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr.bulk-selected{background:#f0f9ff;border-color:#74b9df}
 body.mobile-app-ready .mobile-disclosure-table>tbody>tr.mobile-row-expanded{border-color:#9cbaca;box-shadow:0 2px 8px #173d4d08}
 body.mobile-app-ready .mobile-disclosure-table[hidden],body.mobile-app-ready .mobile-disclosure-table>tbody>tr[hidden],body.mobile-app-ready .mobile-disclosure-table [hidden]{display:none!important}
 body.mobile-app-ready .mobile-entry-table>tbody>tr>td.mobile-row-primary{padding-right:0!important;font-weight:400}
 body.mobile-app-ready .mobile-entry-table>tbody>tr>td.mobile-row-primary::before{display:block}
 body.mobile-app-ready .mobile-entry-table>tbody>tr>td.mobile-row-wide{grid-column:1/-1}
 body.mobile-app-ready .mobile-entry-table>tbody>tr[data-mobile-row]{cursor:default}
 body.mobile-simple .mobile-disclosure-table>tbody>tr[data-mobile-row]{padding:16px;gap:12px 16px;border-radius:14px}
 body.mobile-simple .mobile-disclosure-table>tbody>tr>td{font-size:14px}
 body.mobile-simple .mobile-disclosure-table>tbody>tr>td.mobile-row-primary{font-size:16px;padding-right:46px!important}
 body.mobile-simple .mobile-row-toggle{width:52px;min-width:52px;min-height:52px}
 body.mobile-simple .mobile-disclosure-table>tbody>tr:has(>.mobile-row-selection)>td.mobile-row-primary{padding-left:36px!important}
 body.mobile-simple .mobile-row-selection{top:12px!important;left:6px!important}
 body.mobile-app-ready .list-tools-top,body.mobile-app-ready .bulk-toolbar,body.mobile-app-ready .bulk-toolbar .actions{flex-wrap:wrap;min-width:0}
 body.mobile-app-ready .list-tools .list-search,body.mobile-app-ready .order-search-tools .list-search{min-width:0;width:100%;max-width:none;flex:1 1 100%}
 body.mobile-app-ready .bulk-toolbar select{max-width:100%;min-width:0}
}
@media(max-width:360px){body.mobile-app-ready .mobile-disclosure-table>tbody>tr[data-mobile-row]{grid-template-columns:1fr}}
@media print{.mobile-row-toggle,.mobile-open-record{display:none!important}}

/* Mobile lists read as compact records; all remaining columns expand in place. */
@media screen and (max-width:800px){
 html:root[data-theme] body.mobile-app-ready #results .stock-column-table.mobile-disclosure-table{min-width:0;width:100%;max-width:100%}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody{gap:10px}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr[data-mobile-row]{background:var(--surface);padding:14px;gap:10px 14px;border-radius:12px}
 /* a tile that opens its record answers a press (owner, 22.11.2026 11:26: tiles open on a tap); a press on its
    chevron or on a button of it is not a press on the record */
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr[data-mobile-opens]:active:not(:has(button:active,input:active,select:active,label:active)),
 html:root[data-theme] body.mobile-app-ready .overview-attention-row:active:not(:has(a:active)){background:var(--surface-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td{font-size:14px;line-height:1.45}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td::before{font-size:12px;line-height:1.4;margin-bottom:4px}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-primary{font-size:15px;padding-right:42px!important;min-height:32px}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table td.mobile-row-primary .product-link{font-size:15px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-wide{grid-column:1/-1}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-location{grid-column:1/-1;color:var(--muted);font-size:13px}
 html:root[data-theme] body.mobile-app-ready .mobile-row-toggle{top:8px;right:8px;background:var(--surface-2);color:var(--accent);border:1px solid var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr.bulk-selected{background:var(--surface-selected);border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr.mobile-row-expanded{border-color:var(--input-border);box-shadow:0 2px 8px #132a430a}
 html:root[data-theme] body.mobile-app-ready .mobile-row-expanded .stock-column-note,
 html:root[data-theme] body.mobile-app-ready .mobile-row-expanded .stock-column-text{display:block;-webkit-line-clamp:unset;overflow:visible;min-width:0;max-width:none}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table .stock-row-location{font-size:12px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table .stock-receipts{max-width:100%;font-size:12px}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table .stock-receipts summary{display:flex;align-items:center;min-height:44px}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table .stock-receipt-link{display:inline-flex;align-items:center;min-height:44px;white-space:normal}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table .product-warehouse-chips{flex-wrap:wrap;gap:6px;white-space:normal}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table .warehouse-chip{white-space:normal;min-height:28px;font-size:12px;padding:4px 7px}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table .warehouse-chip[href]{min-height:44px}
 html:root[data-theme] body.mobile-app-ready .mobile-row-actions .actions>.btn{flex:1 1 110px;min-width:0;white-space:normal;justify-content:center}
 html:root[data-theme] body.mobile-app-ready .mobile-row-select-all .mobile-checkbox-hit{min-height:44px;font-size:13px;color:var(--muted)}
 html:root[data-theme] body.mobile-app-ready .list-tools{padding:12px}
 html:root[data-theme] body.mobile-app-ready .collapsible-list-tools .list-tools-top,
 html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 html:root[data-theme] body.mobile-app-ready .list-tools .list-tools-top>.list-search{order:-1;flex:1 0 100%;width:100%;max-width:none;min-width:0}
 html:root[data-theme] body.mobile-app-ready .list-tools .list-tools-top>.list-search input{min-height:46px;font-size:16px}
 html:root[data-theme] body.mobile-app-ready .list-tools .list-tools-top>.list-search>.btn{min-height:46px;font-size:14px;padding-inline:14px}
 html:root[data-theme] body.mobile-app-ready .list-tools-top>.list-filter-toggle{flex:0 0 auto;min-height:44px;font-size:13px}
 html:root[data-theme] body.mobile-app-ready .list-tools-top>.actions{flex:1;display:flex;gap:8px;min-width:0;justify-content:flex-end}
 html:root[data-theme] body.mobile-app-ready .list-tools-top>.actions>.btn{font-size:13px;min-height:44px;white-space:normal;padding-inline:10px}
 html:root[data-theme] body.mobile-app-ready .list-tools-top>[data-list-count]{flex:1 0 100%;margin:0;font-size:12px}
 html:root[data-theme] body.mobile-app-ready .list-filter-panel{margin-top:12px;padding:12px;border-radius:12px}
 html:root[data-theme] body.mobile-app-ready .list-filter-panel .list-filter-bar{display:flex;flex-direction:column;gap:12px}
 html:root[data-theme] body.mobile-app-ready .list-filter-panel .list-quick-filters{display:flex;flex-direction:column;gap:12px;margin:0}
 html:root[data-theme] body.mobile-app-ready .list-filter-panel .list-quick-filters>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;flex:none;font-size:13px}
 html:root[data-theme] body.mobile-app-ready .list-filter-panel .list-quick-filters>label>span{font-size:13px}
 html:root[data-theme] body.mobile-app-ready .list-filter-panel .list-quick-filters select{min-height:44px;font-size:16px;width:100%;max-width:none}
 html:root[data-theme] body.mobile-app-ready .list-filter-panel .list-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;order:1}
 html:root[data-theme] body.mobile-app-ready .list-filter-actions>.btn{flex:1;min-height:44px;margin:0}
 html:root[data-theme] body.mobile-app-ready .list-filter-actions>.text-link{flex:1;justify-content:center;min-height:44px;font-size:13px;margin:0}
 html:root[data-theme] body.mobile-app-ready .list-filter-panel .list-options>summary{min-height:44px;align-content:center;font-size:13px}
 html:root[data-theme] body.mobile-app-ready .list-rule{grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:10px}
 html:root[data-theme] body.mobile-app-ready .list-rule>[data-rule-field]{grid-column:1;grid-row:1}
 html:root[data-theme] body.mobile-app-ready .list-rule>[data-rule-op]{grid-column:1;grid-row:2}
 html:root[data-theme] body.mobile-app-ready .list-rule>.icon-btn{grid-column:2;grid-row:1;width:44px;min-height:44px}
 html:root[data-theme] body.mobile-app-ready .list-rule>.list-rule-values{grid-column:1/-1;grid-row:3;flex-wrap:wrap}
 html:root[data-theme] body.mobile-app-ready .list-filter-chip{min-height:36px;font-size:12px;max-width:100%;text-align:left;overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready .bulk-toolbar{padding:12px;gap:10px;border-block:1px solid var(--line);background:var(--surface-2)}
 html:root[data-theme] body.mobile-app-ready .bulk-toolbar>span{font-size:14px;font-weight:650}
 html:root[data-theme] body.mobile-app-ready .bulk-toolbar>.actions{flex:1 0 100%;display:flex;gap:8px;flex-wrap:wrap}
 html:root[data-theme] body.mobile-app-ready .bulk-toolbar select{flex:1 0 100%;width:100%;min-height:44px;font-size:16px}
 html:root[data-theme] body.mobile-app-ready .bulk-toolbar .btn{flex:1;min-height:44px;font-size:13px}
 html:root[data-theme] body.mobile-app-ready .list-pagination{padding:12px;gap:12px;align-items:center;font-size:12px}
 html:root[data-theme] body.mobile-app-ready .list-page-count{flex:1 1 110px;width:auto;line-height:1.4;margin:0}
 html:root[data-theme] body.mobile-app-ready .list-page-size{font-size:12px;gap:6px}
 html:root[data-theme] body.mobile-app-ready .list-page-size select{min-height:44px;min-width:62px;width:62px;font-size:16px}
 html:root[data-theme] body.mobile-app-ready .list-page-navigation{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;width:100%;flex:1 0 100%;font-size:12px}
 html:root[data-theme] body.mobile-app-ready .list-page-navigation>.btn{min-height:44px;font-size:13px;min-width:0;justify-content:center;padding-inline:8px}
}
@media screen and (max-width:360px){
 html:root[data-theme] body.mobile-app-ready .list-tools-top>.actions{flex-basis:100%;justify-content:stretch}
 html:root[data-theme] body.mobile-app-ready .list-tools-top>.actions>.btn{flex:1}
 html:root[data-theme] body.mobile-app-ready .list-page-navigation{font-size:11px;gap:5px}
}
/* 17.11.2026 check: «Колонки» broke in the middle of the word on a phone. On list pages the search takes the first row, the
   buttons (filters, chats, columns, new record) share two equal columns and keep whole words; the order card is not touched. */
@media screen and (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .list-tools-top:not(.order-items .list-tools-top),html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
 html:root[data-theme] body.mobile-app-ready .list-tools-top:not(.order-items .list-tools-top)>.list-search,html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top>.list-search{grid-column:1/-1;order:-1}
 html:root[data-theme] body.mobile-app-ready .list-tools-top:not(.order-items .list-tools-top)>span:empty,html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top>span:empty{display:none}
 html:root[data-theme] body.mobile-app-ready .list-tools-top:not(.order-items .list-tools-top)>.actions,html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top>.actions{display:contents}
 html:root[data-theme] body.mobile-app-ready .list-tools-top:not(.order-items .list-tools-top)>.actions>.btn,html:root[data-theme] body.mobile-app-ready .list-tools-top:not(.order-items .list-tools-top)>.list-filter-toggle,html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top>.actions>.btn,html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top>.list-filter-toggle{width:100%;min-width:0;margin:0;flex:none;overflow-wrap:normal;word-break:normal;white-space:normal}
}

/* Safari audit 20.11.2026 (owner approved «мобильные карточки» 17:09): on a phone the order list starts sooner — «Фильтры»,
   «Колонки» (an icon) and «Новый заказ» share one row, and a folded order card shows the sum and what is left to pay. */
@media screen and (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top:not(.order-items .list-tools-top){grid-template-columns:minmax(0,1fr) var(--tap-min) auto}
 html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top>.actions>.btn:not(.create){padding:0;font-size:0;gap:0}
 html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top>.actions>.btn:not(.create)>svg{width:var(--icon);height:var(--icon)}
 html:root[data-theme] body.mobile-app-ready .orders-register-results .list-tools-top>.actions>.btn.create{white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .order-register .mobile-row-summary[data-order-column=total],
 html:root[data-theme] body.mobile-app-ready .order-register .mobile-row-summary[data-order-column=debt]{font-variant-numeric:tabular-nums;font-weight:600}
}

/* Название записи на плитке (аудит владельца 23.11.2026): «Продажа №4» вместо маленькой «4»; галочка, название и кнопка
   раскрытия — на одной линии: все три начинаются от верхнего отступа плитки и высотой tap-min, название — по центру. */
.order-number-kind{display:none}
@media screen and (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr[data-mobile-row]:not(.mobile-entry-table tr){padding-top:var(--space-3)}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-selection{top:var(--space-3);width:var(--tap-min)!important;height:var(--tap-min)}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr>td.mobile-row-selection .mobile-checkbox-hit{width:var(--tap-min);height:var(--tap-min);min-height:var(--tap-min)}
 html:root[data-theme] body.mobile-app-ready .mobile-row-toggle{top:var(--space-3);width:var(--tap-min);min-width:var(--tap-min);height:var(--tap-min);min-height:var(--tap-min)}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table:not(.mobile-entry-table)>tbody>tr>td.mobile-row-primary{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--space-2);min-height:var(--tap-min)}
 /* a row of a form (new request, new purchase) has no button to open it: its first field takes the whole width (audit 23.11.2026) */
 html:root[data-theme] body.mobile-app-ready .mobile-entry-table>tbody>tr>td.mobile-row-primary{padding-right:0!important}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table td.mobile-row-primary .order-number-link{font:var(--text-label);color:var(--ink);min-height:var(--tap-min);display:inline-flex;align-items:center;gap:0}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table td.mobile-row-primary .order-number-link>span{font:inherit;letter-spacing:normal;padding:0;margin:0;background:none}
 html:root[data-theme] body.mobile-app-ready .mobile-disclosure-table td.mobile-row-primary .order-number-kind{display:inline;white-space:pre}
}
/* diagnosis 27.11.2026, C01: a list drawn while the window was narrow kept its phone summary cell when the window became wide —
   a twelfth cell without a heading repeating the row (a person's photo at full size). A wide window never shows it. */
@media (min-width:801px){td.mobile-row-face,.mobile-select-mode{display:none!important}}


/* physical-geography.css */
.physical-location-fields{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;display:grid;gap:12px}.physical-location-fields>legend{padding:0 5px;font-size:13px;font-weight:600}.physical-location-fields .row{margin:0}.physical-location-fields label{min-width:0}.physical-location-fields select,.physical-location-fields input{max-width:100%;width:100%}.physical-location-fields [hidden]{display:none!important}.physical-scope-hint{margin:0}.warehouse-tile-geography{display:block;font-size:12px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}.warehouse-selection .warehouse-geography{font-size:12px;color:var(--muted)}
@media(max-width:800px){.physical-location-fields>.row{grid-template-columns:1fr}}


/* freight-intake.css */
.freight-parcel-summary{display:grid;gap:4px;white-space:normal;max-width:320px;margin-top:7px;font-size:11px;font-weight:400}.freight-parcel-summary>.badge{justify-self:start;font-size:10px}.freight-parcel-summary>small{display:block;line-height:1.4;overflow-wrap:anywhere;font-size:11px;margin:0}.freight-parcel-control{display:flex;flex-wrap:wrap;gap:8px;margin-top:3px}.freight-parcel-control .btn{white-space:normal}.freight-parcel-panel{border:1px solid var(--line);border-radius:8px;margin:16px 0;padding:14px;background:#fff}.freight-parcel-panel h3{margin:0;font-size:14px}.freight-parcel-panel .freight-meta{margin-top:12px}.freight-parcel-panel>.modal-hint{margin:12px 0 0}.freight-parcel-panel dd{overflow-wrap:anywhere}.freight-parcel-panel .pre{font-size:13px}
@media(max-width:800px){.mobile-disclosure-table tr:not(.mobile-row-expanded) .freight-parcel-control{display:none}.freight-parcel-summary{max-width:100%}.freight-parcel-panel{padding:12px;margin:12px 0}.freight-parcel-panel .freight-detail-toolbar{align-items:flex-start;flex-wrap:wrap;gap:8px}.freight-parcel-panel .freight-meta{grid-template-columns:1fr}.freight-parcel-panel .freight-parcel-control{width:100%}.freight-parcel-panel .freight-parcel-control .btn{flex:1}}


/* transfer-workflows.css */
.transfer-workflow{display:grid;gap:9px;border-top:1px solid var(--line);padding-top:14px;min-width:0}
.stock-transfer-dialog [hidden]{display:none!important}
.transfer-sku-result{white-space:pre-line;margin:6px 0 0;overflow-wrap:anywhere}
.transfer-sku-result.error{color:var(--danger,#b42318)}
.transfer-workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.transfer-workflow-grid>*{min-width:0}
.transfer-workflow-grid label{min-width:0}
.transfer-workflow-grid input,.transfer-workflow-grid select{width:100%;min-width:0}
.transfer-workflow [hidden]{display:none!important}
.transfer-workflow [data-transfer-recipient-hint]:empty{display:none}
.transfer-workflow .modal-hint{margin:0}
.transfer-allocation{font-size:12px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;max-height:240px;overflow:auto}
.transfer-allocation-heading,.transfer-allocation-row{display:flex;align-items:start;justify-content:space-between;gap:12px}
.transfer-allocation-heading{padding-bottom:8px;flex-wrap:wrap}
.transfer-allocation-row{padding:7px 0;border-top:1px solid var(--line)}
.transfer-allocation-row>span{min-width:0;overflow-wrap:anywhere}
.transfer-allocation-row>strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.transfer-allocation-row small{display:block;color:var(--muted);margin-top:3px}
@media(max-width:640px){.transfer-workflow-grid{grid-template-columns:1fr;gap:10px}.transfer-workflow input,.transfer-workflow select{min-height:44px!important;font-size:14px!important}.transfer-allocation{padding:10px}.transfer-allocation-heading{font-size:12px}.transfer-allocation-row{gap:8px}}


/* purchase-skus.css */
.purchase-sku-chips{display:flex;flex-wrap:wrap;gap:6px;max-width:100%;margin-top:5px}
.purchase-sku-entry{display:inline-flex;flex-direction:column;gap:2px;padding:4px 7px;border:1px solid var(--line);border-radius:5px;background:#f8fafb;max-width:100%}
.purchase-sku-entry>.mono{overflow-wrap:anywhere;font-size:12px}
.purchase-sku-entry small{font-size:10px;color:var(--muted);margin:0}
.purchase-sku-entry.received{background:#f3faf6}
.purchase-sku-more{max-width:100%}.purchase-sku-more summary{cursor:pointer;font-size:12px}
.purchase-sku-chips-compact{align-items:flex-start;gap:5px;margin-top:0}
.purchase-sku-entry-compact{flex-direction:row;align-items:center;flex-wrap:wrap;gap:2px 6px;padding:2px 7px;min-width:0}
.purchase-sku-entry-compact>.mono{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%;line-height:24px}
.purchase-sku-entry-compact>.product-link{padding:0;min-height:24px}
.purchase-sku-context{min-width:0;margin-left:auto}
.purchase-sku-context>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:24px;min-height:24px;border-radius:4px;font-size:17px;line-height:1;color:var(--muted)}
.purchase-sku-context>summary::-webkit-details-marker{display:none}
.purchase-sku-context>summary:hover{background:var(--line)}
.purchase-sku-context>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.purchase-sku-context[open]{flex-basis:100%;margin-left:0}
.purchase-sku-context[open]>summary{margin-left:auto}
.purchase-sku-context-body{display:grid;gap:6px;padding:3px 0 5px;max-width:250px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.purchase-sku-context-body>.text-link{font-size:12px;min-height:28px;padding:2px 0;justify-self:start;text-align:left;border:0;background:none;cursor:pointer}
.purchase-sku-chips-compact>.purchase-sku-more>summary{min-height:28px;display:flex;align-items:center}
@media(max-width:800px){.purchase-sku-entry-compact>.product-link,.purchase-sku-context>summary,.purchase-sku-context-body>.text-link,.purchase-sku-chips-compact>.purchase-sku-more>summary{min-height:44px}.purchase-sku-context>summary{min-width:44px}}
.purchase-receive-section{border:1px solid var(--line);padding:12px;border-radius:8px;min-width:0;display:grid;gap:9px}
.purchase-receive-heading,.purchase-receive-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.purchase-receive-heading>strong{min-width:0;overflow-wrap:anywhere}.purchase-receive-heading>span{font-size:12px;color:var(--muted)}
.purchase-receive-section .modal-hint{margin:0}.purchase-receive-toolbar label{flex:1;min-width:160px}.purchase-receive-toolbar input{min-width:0}
.purchase-receive-skus{max-height:320px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.purchase-receive-unit{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1fr);gap:12px;align-items:center;padding:7px 3px;border-bottom:1px solid var(--line)}
.purchase-receive-unit:last-child{border-bottom:0}.purchase-receive-unit[hidden]{display:none!important}
.purchase-receive-check{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;min-height:36px;margin:0!important;min-width:0}
.purchase-receive-check input{min-height:0!important;width:18px!important;height:18px!important;flex:none;padding:0!important}.purchase-receive-check span{overflow-wrap:anywhere;min-width:0;font-size:12px}
.purchase-serial-label{min-width:0}.purchase-serial-label input{width:100%;min-width:0;font-size:12px}.purchase-receive-count{color:var(--muted)}
@media(max-width:640px){.purchase-receive-section{padding:10px}.purchase-receive-unit{grid-template-columns:1fr;gap:4px}.purchase-receive-check{min-height:44px}.purchase-serial-label input{min-height:44px!important;font-size:13px}.purchase-receive-toolbar .actions{width:100%}.purchase-receive-toolbar .btn{flex:1}.purchase-receive-skus{max-height:380px}}
.purchase-sku-entry>.text-link{font-size:11px;min-height:26px;padding:2px 0;text-align:left;border:0;background:none;cursor:pointer}
.purchase-receive-problem{grid-column:1/-1;color:var(--muted);font-size:11px;margin:0}
@media(max-width:640px){.purchase-sku-entry>.text-link{min-height:40px;font-size:12px}}
.parcel-transfers-panel{margin-top:16px}.parcel-transfers-panel .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.parcel-transfer-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px}
.parcel-transfer-card{padding:12px;border:1px solid var(--line);border-radius:8px;min-width:0;display:grid;gap:10px;align-content:start}
.parcel-transfer-card-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.parcel-transfer-card-head>div{min-width:0}.parcel-transfer-card-head small{display:block;color:var(--muted);font-size:12px;margin-top:4px;overflow-wrap:anywhere}
.parcel-transfer-route{display:grid;grid-template-columns:1fr 1fr;gap:12px}.parcel-transfer-route span{min-width:0;color:var(--muted);font-size:11px}.parcel-transfer-route b{display:block;font-size:12px;font-weight:500;color:var(--text);overflow-wrap:anywhere;margin-top:3px}
.parcel-transfer-meta{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.parcel-transfer-meta b{font-weight:500;color:var(--text)}
.parcel-transfer-history{margin-top:14px}.parcel-transfer-history>summary{cursor:pointer;font-size:12px;padding:6px 0 12px}
@media(max-width:640px){.parcel-transfers-panel .panel-body{padding:12px}.parcel-transfer-card{padding:10px}.parcel-transfer-card .actions>.btn{width:100%;min-height:44px}.parcel-transfer-route{grid-template-columns:1fr;gap:7px}.parcel-transfer-card-head>.badge{flex:none}}


/* inbound-logistics.css */
.inbound-workspace{display:grid;gap:14px;min-width:0}
.inbound-workspace .panel{margin:0;min-width:0}
.inbound-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.inbound-column{min-width:0;display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--hover,#f5f8fa)}
.inbound-column-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;flex-wrap:wrap}
.inbound-column-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;line-height:1.4;font-weight:700}
.inbound-column-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:7px;background:var(--surface,#fff);border:1px solid var(--line);font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.inbound-column .inbound-cards{grid-template-columns:minmax(0,1fr)}
.inbound-column>.empty{padding:32px 12px}
.inbound-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inbound-toolbar label{margin:0}.inbound-toolbar input[type=search]{min-width:230px}.inbound-toolbar .inbound-search{flex:1;min-width:180px}.inbound-toolbar .muted{font-size:12px}
.inbound-toolbar>.btn{min-height:44px;flex:none}
.inbound-filter-fields{padding:12px 14px;background:var(--soft,#f1f3f8);border:1px solid var(--line,#cdd5e1);border-radius:8px}
.inbound-filter-fields[hidden]{display:none!important}
.inbound-filter-fields>label{display:flex;align-items:center;gap:8px;min-height:32px;cursor:pointer;font-size:13px;margin:0}
.inbound-filter-fields input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;flex:none}
.inbound-cards{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));min-width:0}
.inbound-card{border:1px solid var(--line);background:var(--surface,#fff);border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:10px;min-width:0}
.inbound-card-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.inbound-card-head>div{min-width:0}.inbound-card-head strong{overflow-wrap:anywhere}.inbound-card-head small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.inbound-card-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--muted)}.inbound-card-meta b{font-weight:600;color:var(--text)}
.inbound-card .actions{margin-top:auto;flex-wrap:wrap}.inbound-card details{font-size:12px}.inbound-card summary{cursor:pointer;color:var(--accent,#0877ad)}
.inbound-items{display:grid;gap:7px;min-width:0}.inbound-item{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:7px;font-size:13px}.inbound-item>span:first-child{min-width:0;overflow-wrap:anywhere}.inbound-item small{display:block;color:var(--muted);margin-top:3px}.inbound-item .mono{font-size:11px}.inbound-item>strong{white-space:nowrap;font-size:12px}
.inbound-dialog .modal-body{display:grid;gap:14px}.inbound-dialog .modal-body>label{margin-bottom:0}.inbound-dialog .modal-hint{margin:0}.inbound-dialog .form-error:empty{display:none}
.inbound-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inbound-form-grid label{margin:0;min-width:0}
.inbound-scan-row{display:flex;gap:8px;align-items:end}.inbound-scan-row>label{flex:1;min-width:0;margin:0}.inbound-scan-row input{font-family:inherit;min-width:0}.inbound-scan-row .btn{flex:none;min-height:42px}
.inbound-scan-feedback{font-size:12px;min-height:18px;color:var(--muted)}.inbound-scan-feedback.error{color:var(--danger,#b42318)}
.inbound-scan-list{display:grid;gap:8px;max-height:300px;overflow:auto}.inbound-scan-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);padding:10px;border-radius:8px}.inbound-scan-entry>span{min-width:0;overflow-wrap:anywhere}.inbound-scan-entry small{display:block;color:var(--muted);font-size:12px}.inbound-scan-entry .icon-btn{flex:none}
.inbound-content-editor{display:grid;gap:10px}.inbound-content-line{border:1px solid var(--line);border-radius:9px;padding:11px;min-width:0}.inbound-content-line>header{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}.inbound-content-line>header strong{font-size:13px;overflow-wrap:anywhere}.inbound-content-line>header span{font-size:12px;color:var(--muted);white-space:nowrap}.inbound-sku-options{display:flex;flex-wrap:wrap;gap:7px;max-height:220px;overflow:auto}.inbound-sku-option{display:flex!important;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:7px;margin:0!important;font-size:12px!important;font-weight:500!important;cursor:pointer}.inbound-sku-option:has(input:checked){border-color:#1888ba;background:#edf8fc}.inbound-sku-option input{width:17px!important;height:17px!important;margin:0!important;flex:none}.inbound-content-line input[type=number]{max-width:130px}.inbound-sku-options:empty{display:none}
.inbound-note{padding:10px 12px;border-radius:8px;background:#f1f7fa;font-size:12px;line-height:1.5;color:var(--muted)}.inbound-selection-count{font-size:12px;color:var(--muted)}
.inbound-place-picker{border:1px solid var(--line);padding:12px;border-radius:9px;margin:0}.inbound-place-picker legend{font-size:12px;padding:0 5px;font-weight:600}.inbound-place-picker .inbound-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.inbound-destination-picker .inbound-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.inbound-purchase-panel{margin-top:16px}.inbound-purchase-panel .panel-body{padding:14px}.inbound-purchase-panel .panel-head{gap:10px;flex-wrap:wrap}.inbound-receipt-result{padding:12px 15px;background:#edf8f2;border:1px solid #c8e8d7;border-radius:9px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inbound-receipt-result strong{flex:1}
@media(max-width:800px){.inbound-board{grid-template-columns:minmax(0,1fr);gap:14px}.inbound-column{padding:12px}.inbound-column-head .btn{min-height:44px}.inbound-column-head h2{font-size:14px}}
@media(max-width:700px){.inbound-toolbar .inbound-search,.inbound-toolbar input[type=search]{min-width:0;width:100%}.inbound-cards{grid-template-columns:1fr}.inbound-form-grid,.inbound-place-picker .inbound-form-grid{grid-template-columns:1fr}.inbound-dialog input,.inbound-dialog select,.inbound-dialog .btn{min-height:44px!important;font-size:14px!important}.inbound-scan-entry .icon-btn{width:44px;height:44px}.inbound-sku-option{min-height:44px;padding:8px 11px!important}.inbound-sku-option input{min-height:18px!important}.inbound-dialog .modal-foot{position:sticky;bottom:0}.inbound-card .actions .btn{min-height:40px;flex:1}.inbound-card-meta{gap:5px 10px}}

.inbound-expected-note{margin:0;color:var(--muted);font-size:12px;line-height:1.5}

.inbound-destination-picker>.inbound-note{margin:14px 0 0}
.inbound-destination-picker>[data-inbound-city-custom-label]:not([hidden]){display:block;margin:12px 0 0}
.inbound-consolidation{min-width:0;display:grid;gap:10px}.inbound-consolidation>h3{margin:0;font-size:14px}.inbound-consolidation>label{margin:0}
.inbound-goods-list{display:grid;gap:10px;max-height:340px;overflow:auto;overscroll-behavior:contain;padding:2px;min-width:0}
.inbound-goods-group{border:1px solid var(--line);border-radius:9px;min-width:0;overflow:hidden}
.inbound-goods-group>header{padding:9px 11px;background:var(--hover,#f5f8fa)}
.inbound-goods-group-check,.inbound-goods-choice{display:flex!important;align-items:center;gap:10px;margin:0!important;min-width:0;font-size:13px!important;font-weight:500!important;cursor:pointer}
.inbound-goods-group-check>span,.inbound-goods-choice>span{min-width:0;overflow-wrap:anywhere}.inbound-goods-group-check small,.inbound-goods-choice small{display:block;margin-top:3px;font-size:12px;color:var(--muted);font-weight:400}.inbound-goods-group-check strong,.inbound-goods-choice strong{font-size:13px;font-weight:600}
.inbound-goods-group input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;flex:none;accent-color:var(--accent,#0877ad)}
.inbound-goods-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:10px 11px;border-top:1px solid var(--line)}
.inbound-goods-row:has([data-inbound-goods-check]:checked){background:color-mix(in srgb,var(--accent,#0877ad) 7%,var(--surface,#fff))}.inbound-goods-row[hidden],.inbound-goods-group[hidden]{display:none}
.inbound-goods-choice{flex:1;min-height:30px}.inbound-goods-row>label:not(.inbound-goods-choice){width:110px;flex:none;margin:0;font-size:11px}.inbound-goods-row input[type=number]{width:100%;min-width:0}.inbound-goods-unit{flex:none;font-size:12px;color:var(--muted)}
@media(max-width:700px){.inbound-goods-list{max-height:42vh}.inbound-goods-row{gap:8px;flex-wrap:wrap}.inbound-goods-choice{min-height:44px;flex-basis:60%}.inbound-goods-row>label:not(.inbound-goods-choice){width:90px}.inbound-goods-group-check{min-height:44px}.inbound-goods-row input[type=checkbox]{min-height:18px!important}.inbound-destination-picker>.inbound-note{margin-top:16px}}

.inbound-auto-sku-note{margin:0;font-size:12px;line-height:1.5}
.inbound-goods-skus{flex-basis:100%;min-width:0;border-top:1px solid var(--line);padding-top:7px}
.inbound-goods-skus>summary{cursor:pointer;color:var(--accent,#0877ad);font-size:12px;font-weight:600;min-height:30px;line-height:30px;list-style-position:inside}
.inbound-goods-skus>summary>span{margin-left:8px;color:var(--muted);font-variant-numeric:tabular-nums;font-weight:400}
.inbound-goods-sku-list{display:flex;flex-wrap:wrap;gap:7px;padding-top:5px;max-height:220px;overflow:auto;overscroll-behavior:contain}
.inbound-goods-sku{display:flex!important;align-items:center;gap:9px;min-height:40px;max-width:100%;margin:0!important;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);cursor:pointer;font-size:12px!important;font-weight:500!important}
.inbound-goods-sku:has(input:checked){border-color:var(--accent,#0877ad);background:color-mix(in srgb,var(--accent,#0877ad) 12%,var(--surface,#fff))}
.inbound-goods-sku:focus-within{outline:2px solid var(--accent,#0877ad);outline-offset:2px}
.inbound-goods-sku>span{min-width:0;overflow-wrap:anywhere}.inbound-goods-sku strong{font-size:12px;font-weight:600}.inbound-goods-sku small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.inbound-goods-sku[hidden],.inbound-goods-error[hidden]{display:none!important}
.inbound-goods-error{flex-basis:100%;margin:0;font-size:12px;line-height:1.5;color:var(--danger,#b42318)}
@media(max-width:700px){.inbound-goods-skus>summary{min-height:44px;line-height:1.4;padding:10px 0}.inbound-goods-sku{min-height:44px;padding:8px 10px}.inbound-goods-sku-list{max-height:28vh}}

.inbound-available-goods{display:grid;gap:12px;min-width:0}
.inbound-available-warehouse{background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0}
.inbound-available-warehouse h3{margin:0;padding:11px 13px;font-size:12px;line-height:1.4;color:var(--muted);font-weight:600;border-bottom:1px solid var(--line)}
.inbound-available-warehouse ul{list-style:none;margin:0;padding:0}
.inbound-available-warehouse li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.4}
.inbound-available-warehouse li:last-child{border-bottom:0}
.inbound-available-warehouse li>span{min-width:0;overflow-wrap:anywhere}
.inbound-available-warehouse li>strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.inbound-available-warehouse li small{color:var(--muted);font-weight:400}
.inbound-shipment-history{margin-top:18px;min-width:0}
.inbound-shipment-history>summary{cursor:pointer;font-weight:600;font-size:14px;line-height:1.5;min-height:40px;list-style-position:inside}
.inbound-shipment-history>summary .inbound-column-count{margin-left:8px;vertical-align:middle}
.inbound-shipment-history>.inbound-cards{margin-top:8px}

.inbound-stock-recovery{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);font-size:12px;line-height:1.45}
.inbound-stock-recovery p{margin:0;flex:1 1 190px;color:var(--muted)}
.inbound-stock-recovery .btn{flex:none}
.inbound-recovery-preview{display:grid;gap:12px;min-width:0}
.inbound-recovery-preview .inbound-card{gap:10px}

/* Expected/transit identities have no source shelf yet. Keep their optional
   factory serial fields next to only the units explicitly marked as arrived. */
.inbound-receipt-unit-fields{display:grid;gap:7px;margin-top:8px}
.inbound-receipt-unit{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,2fr);align-items:center;gap:10px;padding-top:7px;border-top:1px solid var(--line);min-width:0}
.inbound-receipt-unit>strong{font-size:12px;overflow-wrap:anywhere}.inbound-receipt-unit>label{margin:0;font-size:11px}
.inbound-receipt-unit[hidden]{display:none!important}
@media(max-width:500px){.inbound-receipt-unit{grid-template-columns:1fr;gap:5px}}
.inbound-paged-source{display:flex;align-items:center;gap:.65rem;min-width:0;flex:1}
.inbound-paged-source>span{min-width:0;overflow-wrap:anywhere}
.inbound-paged-source small{display:block;color:var(--muted)}
.inbound-paged-quantity{display:grid;gap:.2rem;width:8rem;font-size:.8rem;color:var(--muted)}
.inbound-paged-quantity input{width:100%;min-width:0}
[data-inbound-paged-selection]>.inbound-item{background:var(--soft);padding:.5rem .75rem;border-radius:.4rem}
[data-inbound-paged-selection]>.inbound-item>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
[data-inbound-paged-selection] small{display:block;color:var(--muted)}
@media(max-width:600px){[data-inbound-source]{align-items:stretch;flex-wrap:wrap}.inbound-paged-source{flex-basis:100%}.inbound-paged-quantity{width:100%}}


/* action-ui.css */
/* Action hierarchy: blue creates/continues, green receives/confirms, red removes.
   Labels and icons carry the meaning as well as color. Keep document data neutral. */
:root {
  --action-blue: #0969b8;
  --action-blue-hover: #075797;
  --action-green: #167347;
  --action-green-hover: #105c38;
  --action-red: #b42332;
  --action-red-hover: #941c29;
  --action-focus: #084e89;
}
.btn {
  border-color: #cbd5df;
  color: #253747;
  line-height: 1.35;
  font-weight: 600;
  transition: background-color .12s, border-color .12s, box-shadow .12s;
}
.btn:hover:not(:disabled) { background: #f0f5f9; border-color: #aabac8; }
.btn.primary,.btn.primary:hover {
  background: var(--action-blue);
  border-color: var(--action-blue);
  color: #fff;
  filter: none;
}
.btn.primary:hover:not(:disabled) { background: var(--action-blue-hover); border-color: var(--action-blue-hover); }
.btn.success,.btn.primary.success {
  background: var(--action-green);
  border-color: var(--action-green);
  color: #fff;
}
.btn.success:hover:not(:disabled) { background: var(--action-green-hover); border-color: var(--action-green-hover); }
.btn.danger { background: #fff6f5; color: var(--action-red); border-color: #e6b7bc; }
.btn.danger:hover:not(:disabled) { background: #fee8e7; border-color: #cf8b92; }
.btn.primary.danger { background: var(--action-red); border-color: var(--action-red); color: #fff; }
.btn.primary.danger:hover:not(:disabled) { background: var(--action-red-hover); border-color: var(--action-red-hover); }
.icon-btn.danger { color: var(--action-red); }
.icon-btn.danger:hover:not(:disabled) { background: #fee8e7; }
.btn:focus-visible,.icon-btn:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}
.btn:disabled,.btn:is(.primary,.success,.danger):disabled {
  opacity: 1;
  color: #647382;
  background: #edf1f4;
  border-color: #dce3e9;
  filter: none;
  box-shadow: none;
  cursor: not-allowed;
}
.btn[aria-busy=true] { cursor: wait; }
.btn[aria-busy=true]::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: action-progress .7s linear infinite;
}
@keyframes action-progress { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce) {
  .btn { transition: none; }
  .btn[aria-busy=true]::before { animation: none; }
}
.modal-foot { gap: 12px; }
.modal-foot .btn[type=submit] { min-width: 136px; }
.modal-body>.inline-note { margin-block: 0; }
.procurement-dialog .modal-body { gap: 20px; }
/* 01.12.2026: «+ Добавить товар» after the empty row at the end was taken away by its cross (procurement.js, draftRowsButton) */
.draft-row-add { justify-self: start; align-self: flex-start; margin-top: var(--space-2); }
.draft-row-add[hidden] { display: none; }
.procurement-dialog .purchase-main-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) minmax(190px,.7fr); gap: 16px; align-items: start; }
.procurement-dialog .purchase-main-fields label { min-width: 0; margin: 0; }
.procurement-dialog .purchase-main-fields select { width: 100%; min-width: 0; }
.procurement-dialog .purchase-currency-info { display: flex; align-items: center; gap: 12px; }
.procurement-dialog .purchase-currency-info .rate-note { flex: 1; min-width: 0; }
.procurement-dialog .purchase-currency-info [hidden] { display: none; }
.procurement-dialog .rate-note { margin: 0; padding: 12px 14px; }
.procurement-dialog .bulk-toolbar { flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.procurement-dialog .bulk-toolbar>span { color: #253747; font-weight: 650; }
.procurement-dialog .bulk-toolbar .actions { gap: 8px; }
.procurement-dialog .bulk-table { max-height: 42vh; border-color: #d6e0e8; }
.procurement-dialog .bulk-table th { color: #475b6b; background: #f3f6f9; font-weight: 600; }
.procurement-dialog .bulk-table td { vertical-align: top; }
.procurement-dialog .bulk-table td:first-child { width: 55%; }
.procurement-dialog .bulk-total { color: #253747; padding: 4px 0; }
.procurement-dialog .purchase-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 24px; }
.procurement-dialog .purchase-summary>label { min-width: 0; max-width: 620px; margin: 0; }
.procurement-dialog .purchase-summary .bulk-total { min-width: 0; padding-block: 12px; overflow-wrap: anywhere; }
.procurement-dialog textarea[name=notes] { min-height: 72px; }
.procurement-dialog .bulk-table .icon-btn { min-width: 36px; min-height: 36px; justify-content: center; align-items: center; }
/* Purchase details: compact totals, one item list, optional supporting detail. */
.purchase-workspace { display: grid; gap: 16px; min-width: 0; }
.purchase-detail-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-width: 0; }
.purchase-detail-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.purchase-detail-heading h1 { font-size: 25px; line-height: 1.2; margin: 0; letter-spacing: -.5px; }
.purchase-back { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; }
.purchase-detail-header>.actions { gap: 8px; flex-wrap: wrap; }
.purchase-detail-header .btn { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.purchase-detail-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; flex-basis: 100%; color: var(--muted); font-size: 12px; line-height: 1.5; }
.purchase-detail-meta span { min-width: 0; overflow-wrap: anywhere; }
.purchase-detail-meta b { color: var(--text); font-weight: 550; }
.purchase-stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 12px 0; }
.purchase-stat { display: flex; flex-direction: column; gap: 4px; padding: 0 18px; min-width: 0; flex: 1; border-right: 1px solid var(--line); }
.purchase-stat:last-child { border: 0; }
.purchase-stat span { color: var(--muted); font-size: 11px; }
.purchase-stat strong { font-size: 16px; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.purchase-stat-total strong { font-weight: 700; }
.purchase-workspace .panel { margin: 0; }
.purchase-items>.panel-head { padding: 10px 14px; gap: 16px; flex-wrap: wrap; }
.purchase-items>.panel-head h2 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.purchase-item-count { font-size: 11px; font-weight: 500; color: var(--muted); }
.purchase-detail-search { display: block; width: 260px; max-width: 100%; margin: 0; min-width: 0; }
.purchase-detail-search input { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.purchase-items .purchase-search-empty { padding: 14px; margin: 0; font-size: 13px; color: var(--muted); }
.purchase-workspace [hidden] { display: none!important; }
.purchase-note { display: flex; gap: 12px; align-items: baseline; font-size: 12px; padding-inline: 2px; }
.purchase-note strong { color: var(--muted); font-weight: 500; flex: none; }
.purchase-note p { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.purchase-details { display: grid; gap: 0; }
.purchase-details:empty { display: none; }
.purchase-disclosure { border-bottom: 1px solid var(--line); min-width: 0; }
.purchase-disclosure>summary { cursor: pointer; padding: 10px 2px; font-size: 12px; color: #475b6b; width: fit-content; }
.purchase-disclosure-body { padding: 2px 0 12px; font-size: 12px; }
.purchase-disclosure-body p { margin: 0 0 8px; overflow-wrap: anywhere; }
.purchase-disclosure-body h3 { font-size: 12px; margin: 12px 0 6px; }
.purchase-history-row { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 7px 0; align-items: baseline; }
.purchase-history-row small { color: var(--muted); }
.purchase-history-row strong { font-weight: 550; }
.purchase-workspace~.freight-assignment-strip { margin-block: 12px; padding: 8px 12px; font-size: 12px; }
.purchase-workspace~.inbound-purchase-panel { margin-top: 14px; }
.purchase-workspace~.inbound-purchase-panel>.panel-head { padding: 12px 14px; }
.purchase-workspace~.inbound-purchase-panel>.panel-head h2 { font-size: 14px; }
@media(min-width:801px) {
 .purchase-items>.table-wrap>table th,.purchase-items>.table-wrap>table td { padding: 10px 12px; font-size: 12px; }
 .purchase-items>.table-wrap>table th { font-size: 11px; font-weight: 550; }
 .purchase-items td[data-item-column=product] { width: 32%; white-space: normal; }
 .purchase-items td[data-item-column=sku] { width: 19%; }
 .purchase-items td small { font-size: 10px; }
}
@media(max-width:800px) {
 .purchase-workspace { gap: 12px; }
 .purchase-detail-header { gap: 10px; }
 .purchase-detail-heading { gap: 8px; flex-wrap: wrap; }
 .purchase-detail-heading h1 { font-size: 22px; }
 .purchase-back { width: 36px; min-height: 44px; }
 .purchase-detail-header>.actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; order: 3; gap: 8px; }
 .purchase-detail-header .btn { min-height: 44px; font-size: 11px; padding: 8px; white-space: normal; }
 .purchase-detail-meta { gap: 3px 10px; font-size: 11px; }
 .purchase-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
 .purchase-stat { padding: 10px 12px; border-bottom: 1px solid var(--line); }
 .purchase-stat:nth-child(even) { border-right: 0; }
 .purchase-stat:nth-last-child(-n+2) { border-bottom: 0; }
 .purchase-stat strong { font-size: 14px; }
 .purchase-items>.panel-head { gap: 10px; padding: 12px; }
 .purchase-detail-search { width: 100%; }
 .purchase-detail-search input { min-height: 44px; }
 .purchase-disclosure>summary { min-height: 44px; padding-block: 13px; }
 .purchase-note { flex-direction: column; gap: 4px; }
 .purchase-items .table-wrap { min-width: 0; }
}
@media(max-width:700px) {
  body .btn,body .btn.small,body .icon-btn,
  .inbound-card .actions .btn,.order-workspace .order-sku .btn,
  .pakovia-data-list.dense-list .btn.small { min-height: var(--control-h); }
  body .icon-btn { min-width: var(--icon-btn); align-items: center; justify-content: center; }
  .procurement-dialog .bulk-table .icon-btn { min-width: 44px; min-height: 44px; }
  .modal-foot .btn { white-space: normal; }
  .procurement-dialog .bulk-table { max-height: none; overflow: visible; }
  .procurement-dialog .bulk-toolbar .actions { width: 100%; }
  .procurement-dialog .bulk-toolbar .actions .btn { flex: 1; }
  .procurement-dialog .modal-body { gap: 16px; }
  .procurement-dialog .purchase-main-fields { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .procurement-dialog .purchase-currency-info { align-items: stretch; flex-direction: column; }
  .inbound-scan-row { flex-wrap: wrap; }
  .inbound-scan-row>label { flex-basis: 100%; }
  .inbound-scan-row .btn { width: 100%; }
}

@media(max-width:800px) {
  .procurement-dialog .purchase-summary { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .procurement-dialog .purchase-summary .bulk-total { padding-block: 0; }
}

dialog.quick-receipt-dialog { width:min(1040px,calc(100vw - 32px)); }
.quick-receipt-dialog .modal-head,.quick-receipt-dialog .modal-foot { padding:14px 20px; }
.quick-receipt-dialog .modal-body { padding:16px 20px;gap:14px; }
.quick-receipt-dialog .quick-receipt-context { display:grid;grid-template-columns:minmax(0,1fr) 140px;align-items:start;gap:12px; }
.quick-receipt-dialog .quick-receipt-context label { margin:0;min-width:0;font-size:.875rem;gap:6px; }
:root[data-theme] .quick-receipt-dialog .transfer-place-picker { border:0;background:transparent;padding:0; }
.quick-receipt-dialog .form-error:empty { display:none; }
.quick-receipt-dialog .transfer-place-picker legend { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.quick-receipt-dialog .quick-receipt-context select { min-height:38px;padding:7px 10px;font-size:.875rem; }
.quick-receipt-dialog .quick-receipt-table { max-height:42vh; }
.quick-receipt-dialog .quick-receipt-table td:first-child { width:52%; }
.quick-receipt-dialog .quick-receipt-table :is(th,td) { padding:8px 10px; }
.quick-receipt-dialog .quick-receipt-table input { width:100%;min-width:0; }
.quick-receipt-dialog .quick-receipt-serial-field { display:grid;gap:5px;margin:8px 0 0;font-size:.8rem;color:var(--muted);white-space:normal; }
.quick-receipt-dialog .quick-receipt-serial-field textarea { display:block;width:100%;min-width:0;min-height:38px;padding:8px 10px;line-height:20px;font-size:.875rem;resize:vertical;box-sizing:border-box; }
.quick-receipt-dialog .quick-receipt-serial-field .field-error { color:var(--danger); }
.quick-receipt-dialog .quick-receipt-table td:nth-child(2) { min-width:140px; }
.quick-receipt-dialog .quick-receipt-table td:nth-child(3) { min-width:100px; }
.quick-receipt-dialog .quick-receipt-summary { display:grid;gap:8px; }
.quick-receipt-dialog .quick-receipt-party-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end; }
.quick-receipt-dialog .quick-receipt-party-fields :is(label,.supplier-field) { min-width:0;margin:0; }
.quick-receipt-dialog .quick-receipt-party-fields :is(input,select) { height:44px;min-height:44px;width:100%;min-width:0;box-sizing:border-box; }
.quick-receipt-dialog .quick-receipt-total { padding:0;text-align:right;font-weight:700;color:var(--text); }
.quick-receipt-dialog .transfer-place-fields { display:flex;gap:12px; }
.quick-receipt-dialog .transfer-place-fields label { min-width:0;flex:1; }
.quick-receipt-dialog [hidden] { display:none!important; }
.quick-receipt-dialog .transfer-stock-summary:empty { display:none; }
@media(max-width:700px) {
 dialog.quick-receipt-dialog { width:calc(100vw - 16px); }
 .quick-receipt-dialog .modal-head,.quick-receipt-dialog .modal-foot { padding:12px 14px; }
 .quick-receipt-dialog .modal-body { padding:14px;gap:12px; }
 .quick-receipt-dialog .quick-receipt-context { grid-template-columns:minmax(0,1fr) 105px;gap:10px; }
 .quick-receipt-dialog .transfer-place-fields { flex-direction:column;gap:10px; }
 .quick-receipt-dialog .quick-receipt-context select { min-height:44px; }
 .quick-receipt-dialog .quick-receipt-party-fields { grid-template-columns:minmax(0,1fr);gap:12px; }
 .quick-receipt-dialog .quick-receipt-table { max-height:none;overflow:visible; }
 .quick-receipt-dialog .quick-receipt-table :is(table,tbody) { display:block;min-width:0;width:100%; }
 .quick-receipt-dialog .quick-receipt-table thead { display:none; }
 .quick-receipt-dialog .quick-receipt-table tr { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;padding:10px;gap:10px;border-bottom:1px solid var(--line); }
 .quick-receipt-dialog .quick-receipt-table td { display:block;width:auto!important;min-width:0!important;padding:0;border:0; }
 .quick-receipt-dialog .quick-receipt-table td:first-child { grid-column:1 / 3;grid-row:1; }
 .quick-receipt-dialog .quick-receipt-table td:nth-child(2) { grid-column:1;grid-row:2; }
 .quick-receipt-dialog .quick-receipt-table td:nth-child(3) { grid-column:2;grid-row:2; }
 .quick-receipt-dialog .quick-receipt-table td:nth-child(4) { grid-column:1 / -1;grid-row:3;text-align:right; }
 .quick-receipt-dialog .quick-receipt-table td:last-child { grid-column:3;grid-row:1;align-self:end; }
 .quick-receipt-dialog .quick-receipt-table td[data-label]::before { content:attr(data-label);display:block;font-size:.8rem;color:var(--muted);margin-bottom:4px; }
 .quick-receipt-dialog .quick-receipt-table td:nth-child(4)::before { display:inline;margin-right:8px; }
 .quick-receipt-dialog .quick-receipt-table .icon-btn { width:44px;height:44px; }
}

/* Supplier creation is available beside every document supplier picker. */
.supplier-field { display:grid;gap:8px;min-width:0; }
.supplier-field>label { margin:0; }
.supplier-input-group { position:relative;display:flex;align-items:stretch;min-width:0; }
.supplier-input-group::after { content:"";position:absolute;top:50%;right:60px;width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);pointer-events:none; }
.supplier-input-group:has(>select:only-child)::after { right:16px; }
.supplier-input-group>select { appearance:none;-webkit-appearance:none;min-width:0;width:100%;flex:1;height:44px;min-height:44px;padding-right:34px;border-radius:8px 0 0 8px; }
.supplier-input-group>select:only-child { border-radius:8px; }
.supplier-input-group>.supplier-add { display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;min-height:44px;margin:0 0 0 -1px;padding:0;border-radius:0 8px 8px 0; }
.supplier-input-group>.supplier-add svg { width:19px;height:19px; }
.supplier-input-group>:focus-visible { position:relative;z-index:1; }
dialog.supplier-create-dialog { width:min(720px,calc(100vw - 32px)); }
.supplier-create-dialog .modal-body { gap:12px; }
.supplier-create-dialog .modal-body textarea { min-height:60px; }
.supplier-create-dialog .form-error:empty { display:none; }

/* Keep the fixed order product beside currency, with serials across the card. */
.quick-receipt-order-item { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 140px;gap:14px 12px;align-items:start; }
.quick-receipt-order-item>label,.quick-receipt-order-item>div,.quick-receipt-order-currency>label { display:grid;gap:6px;min-width:0;margin:0;font-size:.875rem; }
.quick-receipt-order-product { grid-column:1 / 3; }
.quick-receipt-order-currency { grid-column:3; }
.quick-receipt-order-item :is(input,select) { width:100%;min-width:0;height:42px;min-height:42px;box-sizing:border-box; }
.quick-receipt-order-item .inventory-product-picker { min-width:0; }
.quick-receipt-order-item .quick-receipt-order-product input:disabled { opacity:1;color:var(--text);-webkit-text-fill-color:var(--text);background:var(--surface-2); }
.quick-receipt-order-sum output { display:flex;align-items:center;justify-content:flex-end;min-height:42px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.quick-receipt-dialog .quick-receipt-order-item .quick-receipt-serial-field { grid-column:1 / -1;margin:0; }
.quick-receipt-order-item .quick-receipt-serial-field textarea { min-height:42px; }
@media(max-width:700px) {
 .quick-receipt-order-item { grid-template-columns:minmax(0,1fr) 105px;gap:12px 10px; }
 .quick-receipt-order-product { grid-column:1; }
 .quick-receipt-order-currency { grid-column:2; }
 .quick-receipt-order-sum { grid-column:1 / -1;grid-template-columns:1fr 1fr!important;align-items:center; }
 .quick-receipt-order-sum output { min-height:24px; }
}

/* A dialog's body is one column that never grows past the dialog (17.11.2026: on a phone the purchase form was wider
   than the screen — a wide table stretched the implicit grid column; the table now scrolls inside its own frame). */
.modal-body{grid-template-columns:minmax(0,1fr)}
.modal-body>*{min-width:0}
/* On a narrow screen a toolbar is a column; wrapping a column puts the second item in a new column to the right, outside
   the screen (the «Вставить список» button of the purchase form). A column is stacked without wrapping. */
@media(max-width:800px){.bulk-toolbar,:root body.mobile-app-ready .bulk-toolbar{flex-wrap:nowrap;align-items:stretch}.bulk-toolbar>*{max-width:100%}}
/* why «Применить» is unavailable stands out (owner, 24.11.2026 15:38) */
.bulk-toolbar [data-bulk-notice].bulk-notice-warn{color:var(--warn);font-weight:600}
/* what stayed in place after a move: a plain list, not an error (the move itself is done) */
.bulk-left{list-style:none;margin:0 0 var(--space-4);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface-2);display:grid;gap:var(--space-1)}
/* «Отобразить выбранные» (owner, 02.12.2026 14:36): only the chosen rows of the list stay on the screen; on a phone too */
html:root[data-theme] body table.bulk-only-selected>tbody>tr[data-bulk-kind]:not(.bulk-picked){display:none}
.bulk-toolbar [data-bulk-only][aria-pressed=true]{border-color:var(--primary);color:var(--primary)}
.bulk-toolbar [data-bulk-only-note]{flex-basis:100%;color:var(--ink-2)}


/* company-view.css */
.demo-label .company-view-toggle,.demo-label .company-view-toggle:is(:hover,:focus,:focus-visible,:active){display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:-13px -13px -13px -18px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;outline:none;transform:none;transition:none;animation:none;cursor:default;-webkit-tap-highlight-color:transparent}
.demo-label .company-view-dot{display:block;width:9px;height:9px;border-radius:50%;background:#27c4e7;box-shadow:0 0 0 3px #27c4e712;transition:none;animation:none}


/* pakovia-lists.css */
/* Pakovia-inspired inventory and purchasing surfaces. All data and list controls
   remain in their existing markup; theme tokens keep the same hierarchy at night. */
@media screen {
  .repair-equipment-default { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
  .repair-equipment-default input[type=checkbox] { flex: none; width: 18px; height: 18px; min-height: 18px; margin: 0; }
  .setting-card .repair-equipment-default { margin-right: 8px; }
  /* All tab appearances are shared in theme.css; these page sections fill their row. */
  :root[data-theme] .tabs:is(.purchase-tabs,.catalog-tabs,:has(>[data-action=stock-tab]),:has(>[data-action=attendance-tab])) {
    flex: 1 1 auto;
    width: 100%;
  }
  .section-tabs-workspace { min-width: 0; margin-bottom: 20px; }
  :root[data-theme] .section-tabs-workspace>.tabs { margin: 0; }
  :root[data-theme] .section-tab-content {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--surface);
  }
  :root[data-theme] .section-tab-content>.panel {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  :root[data-theme] .section-tab-content>.panel>.panel-head {
    padding: 0 0 16px;
  }
  :root[data-theme] .section-tab-content>.panel>.list-tools {
    padding-inline: 0;
  }
  :root[data-theme] .section-tab-content>.tabs.list-scope { margin: 0 0 18px; }
  .section-tab-content>:last-child { margin-bottom: 0; }
  .inventory-toolbar .tabs:has(>[data-action=stock-tab]),
  .attendance-toolbar .tabs:has(>[data-action=attendance-tab]) { flex-basis: 100%; }
  .inventory-toolbar { gap: 14px; margin-bottom: 22px; }

  .warehouse-overview-search { gap: 12px; margin-bottom: 18px; }
  .warehouse-overview-search label { flex: 1; width: auto; }
  .warehouse-overview-search input { min-height: 46px; border-radius: 11px; padding: 11px 14px; }
  .warehouse-overview-search>span { flex: none; }
  .warehouse-tiles { grid-template-columns: repeat(auto-fill,minmax(275px,1fr)); gap: 16px; }
  :root[data-theme] .warehouse-tile {
    padding: 20px;
    gap: 13px;
    border-radius: 14px;
    color: var(--text);
  }
  :root[data-theme] .warehouse-tile:hover { border-color: var(--accent); }
  :root[data-theme] .warehouse-tile-name svg { color: var(--muted); }
  .warehouse-tile-name strong { font-size: 16px; font-weight: 650; }
  .warehouse-tile-total { gap: 8px; font-size: 31px; line-height: 1.2; }
  .warehouse-tile-total small { font-size: 12px; }
  .warehouse-tile-bottom { font-size: 12px; padding-top: 13px; }
  :root[data-theme] .warehouse-tile-bottom b { color: var(--text); }
  .warehouse-selection { margin-bottom: 18px; }

  :root[data-theme] .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand])) {
    border-radius: 14px;
  }
  :root[data-theme] .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]))>.list-tools {
    background: var(--surface);
    padding: 16px 18px;
  }
  .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]))>.list-tools .list-tools-top {
    gap: 10px;
    flex-wrap: wrap;
  }
  .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]))>.list-tools .list-search {
    flex: 1 1 300px;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]))>.list-tools .list-search input {
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 14px;
  }
  .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand])) .list-quick-filters {
    gap: 10px 16px;
    margin-top: 13px;
  }
  .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand])) .list-quick-filters select {
    min-height: 35px;
    border-radius: 9px;
    padding: 6px 28px 6px 10px;
    font-size: 12px;
  }
  .panel:has(.catalog-column-toolbar) { position: relative; }
  :root[data-theme] .panel:has(.catalog-column-toolbar)>.panel-head { min-height: 60px; padding-right: 150px; }
  .catalog-column-toolbar {
    position: absolute;
    top: 10px;
    right: 18px;
    z-index: 1;
    height: 0;
    padding: 0;
    border: 0;
  }
  :root[data-theme] .pakovia-data-list.dense-list tbody tr[data-list-kind]:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]) {
    background: var(--surface);
  }
  :root[data-theme] .pakovia-data-list.dense-list tbody tr[data-list-kind]:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]):hover {
    background: var(--surface-2);
  }
  :root[data-theme] .pakovia-data-list.dense-list tbody tr[data-list-kind].bulk-selected:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]) {
    background: var(--surface-selected);
  }
  .pakovia-data-list.dense-list tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand])>td {
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.45;
  }
  :root[data-theme] .pakovia-data-list tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances]) .product-link,
  :root[data-theme] .purchase-items td[data-item-column=product]>.product-link {
    color: var(--text);
    font-weight: 650;
  }
  .catalog-price-list.pakovia-data-list.dense-list td { height: 72px; }
  .catalog-price-list.pakovia-data-list.dense-list .catalog-product-cell>.product-link { font-size: 14px; line-height: 1.4; }
  .catalog-price-list :is(th,td):is([data-catalog-column=physical],[data-catalog-column=reserved],[data-catalog-column=available],[data-catalog-column=purchase_price_usd],[data-catalog-column^=price_]) {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .product-warehouse-chips { gap: 6px; padding-top: 7px; padding-bottom: 2px; }
  :root[data-theme] .product-warehouse-chips .warehouse-chip {
    border: 0;
    border-radius: 6px;
    padding: 4px 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
  }
  :root[data-theme] .product-warehouse-chips .warehouse-chip b { color: var(--text); font-weight: 600; }
  .stock-product-drawer .product-drawer-stock { padding: 16px; border-radius: 12px; }
  .stock-product-drawer .product-drawer-stock h3 { font-size: 14px; }

  .panel-head:has(>.demand-header-actions) { flex-wrap: wrap; }
  .demand-header-actions { margin-left: auto; justify-content: flex-end; gap: 8px; }
  .demand-header-actions .btn:disabled { cursor: default; }
  .demand-toolbar { gap: 12px; }
  .demand-toolbar .btn { min-height: 36px; font-size: 13px; }
  :root[data-theme] .demand-filter-toggle { background: var(--surface); color: var(--text); }
  .demand-filter-toggle [data-demand-filter-count]:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border-radius: 10px;
    background: var(--surface-2);
    font-size: 12px;
  }
  .demand-panel>.list-tools[hidden] { display: none; }
  .demand-description>strong { font-weight: 650; }
  .purchase-workspace { gap: 20px; }
  .purchase-detail-header { gap: 12px 20px; }
  .purchase-detail-heading h1 { font-size: 27px; letter-spacing: -.6px; }
  .purchase-detail-header .btn { min-height: 40px; padding: 9px 13px; font-size: 13px; }
  .purchase-detail-meta { font-size: 13px; }
  .purchase-stats { border-radius: 13px; padding-block: 16px; }
  .purchase-stat { gap: 7px; padding-inline: 20px; }
  .purchase-stat span { font-size: 12px; }
  .purchase-stat strong { font-size: 19px; font-weight: 600; }
  .purchase-items>.panel-head { padding: 14px 18px; }
  .purchase-items>.panel-head h2 { font-size: 16px; }
  .purchase-detail-search { width: min(340px,100%); }
  .purchase-detail-search input { min-height: 40px; border-radius: 10px; font-size: 13px; }
  .purchase-items>.table-wrap>table td { padding: 14px 16px; line-height: 1.5; }
  .purchase-disclosure>summary { padding: 14px 2px; font-size: 13px; }
  :root[data-theme] .purchase-disclosure>summary { color: var(--text); }

  /* Column headings sit outside the parcel cards, like the reference dashboard. */
  :root[data-theme] .inbound-board>.inbound-column {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .inbound-board { gap: 22px; }
  .inbound-column-head { padding: 0 2px; }
  .inbound-column-head h2 { font-size: 17px; }
  .inbound-column-count { border-radius: 999px; min-width: 25px; }
  .inbound-card { padding: 18px; gap: 13px; border-radius: 14px; }
  .inbound-card-head strong { font-size: 15px; }
  .inbound-card .actions { gap: 8px; }
  .inbound-item { padding-top: 12px; }
  .inbound-toolbar input[type=search] { min-height: 44px; border-radius: 10px; }
}

@media screen {
  .list-filter-panel[hidden],.list-filter-count[hidden] { display: none; }
  .collapsible-list-tools .list-tools-top .list-search { flex: 1; max-width: none; }
  .collapsible-list-tools .list-tools-top .list-search input { min-height: 44px; }
  .collapsible-list-tools .list-filter-toggle { min-height: 44px; gap: 8px; white-space: nowrap; }
  .list-filter-count { min-width: 20px; padding: 1px 5px; border-radius: 10px; background: var(--bg); font-size: 12px; }
  .list-filter-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
  .list-filter-bar { display: grid; grid-template-columns: 160px repeat(var(--list-filter-columns,4),minmax(0,1fr)); align-items: stretch; gap: 6px 16px; }
  .list-filter-actions { display: contents; }
  .list-filter-actions .btn { grid-column: 1; grid-row: 2; box-sizing: border-box; height: 40px; min-height: 40px; padding: 8px 12px; justify-content: center; }
  .list-filter-actions .text-link { grid-column: 1; grid-row: 3; justify-self: start; color: var(--muted); font-size: 12px; }
  .collapsible-list-tools .list-filter-panel .list-quick-filters { display: contents; }
  .list-filter-panel .list-quick-filters label { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 2; gap: 6px; min-width: 0; }
  .list-filter-panel .list-quick-filters label:nth-child(1) { grid-column: 2; }
  .list-filter-panel .list-quick-filters label:nth-child(2) { grid-column: 3; }
  .list-filter-panel .list-quick-filters label:nth-child(3) { grid-column: 4; }
  .list-filter-panel .list-quick-filters label:nth-child(4) { grid-column: 5; }
  .list-filter-panel .list-quick-filters label>span { align-self: end; font-size: 12px; font-weight: 600; }
  .collapsible-list-tools .list-filter-panel .list-quick-filters select { width: 100%; max-width: none; min-width: 0; min-height: 40px; padding: 8px 28px 8px 10px; background-color: var(--surface); }
  .list-filter-panel>.list-scope { margin-bottom: 16px; }
  .list-filter-panel .list-options { margin-top: 14px; }
  .list-filter-panel .list-options-body { padding-top: 12px; }
}

@media screen and (max-width:1100px) {
  .list-filter-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .list-filter-panel .list-quick-filters label:nth-child(odd) { grid-column: 1; }
  .list-filter-panel .list-quick-filters label:nth-child(even) { grid-column: 2; }
  .list-filter-panel .list-quick-filters label:nth-child(n+3) { grid-row: 3 / span 2; }
  .list-filter-actions .btn { grid-row: 5; margin-top: 6px; }
  .list-filter-actions .text-link { grid-column: 2; grid-row: 5; align-self: center; justify-self: center; }
}
@media screen and (max-width:650px) {
  .list-filter-panel { padding: 12px; }
  .list-filter-bar { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .list-filter-panel .list-quick-filters label:nth-child(n) { grid-column: 1; }
  .list-filter-panel .list-quick-filters label:nth-child(2) { grid-row: 3 / span 2; }
  .list-filter-panel .list-quick-filters label:nth-child(3) { grid-row: 5 / span 2; }
  .list-filter-panel .list-quick-filters label:nth-child(4) { grid-row: 7 / span 2; }
  .list-filter-actions .btn { grid-row: 9; }
  .list-filter-actions .text-link { grid-column: 1; grid-row: 10; }
}

@media screen and (max-width:800px) {
  :root[data-theme] .section-tab-content { padding: 14px 12px; }
  :root[data-theme] .section-tab-content>.panel>.panel-head { padding-bottom: 14px; }
  .inventory-toolbar .tabs,.purchase-tabs { width: 100%; }
  .demand-header-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .demand-header-actions .btn { flex: 1 1 auto; }
  .demand-toolbar .btn { min-height: 44px; }
  .warehouse-overview-search { flex-wrap: wrap; }
  .warehouse-overview-search label { flex-basis: 100%; }
  .warehouse-tiles { grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr)); }
  .catalog-column-toolbar { top: 8px; right: 14px; }
  .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]))>.list-tools .list-search {
    flex-basis: 100%;
    width: 100%;
  }
  :root[data-theme] body.mobile-app-ready .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]))>.list-tools :is(input[type=search],select) {
    min-height: 44px;
    font-size: 16px;
  }
  :root[data-theme] body.mobile-simple .panel:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]))>.list-tools :is(input[type=search],select) {
    min-height: 52px;
  }
  .purchase-detail-header .btn { min-height: 44px; font-size: 12px; }
  .purchase-stats { padding: 0; }
  .purchase-stat { padding: 13px 15px; }
  .purchase-stat strong { font-size: 16px; }
  .purchase-items>.panel-head { padding: 14px; }
  .purchase-detail-search { width: 100%; }
  .purchase-detail-search input { min-height: 44px; }
  .inbound-board { gap: 24px; }
  .inbound-card { padding: 15px; }
  body.mobile-app-ready .mobile-disclosure-table:has(tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]))>tbody { gap: 0; }
  body.mobile-app-ready .mobile-disclosure-table>tbody>tr[data-mobile-row]:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]) {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 16px 14px;
  }
  body.mobile-app-ready .mobile-disclosure-table>tbody>tr[data-mobile-row]:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]):last-child { border-bottom: 0; }
  body.mobile-app-ready .mobile-disclosure-table tr:is([data-list-kind=catalog],[data-list-kind=units],[data-list-kind=balances],[data-list-kind=supplies],[data-list-kind=demand]) .mobile-row-toggle {
    top: 10px;
    right: 8px;
    background: transparent;
    color: var(--muted);
  }
}

/* Order filters keep the seller/store pair separate from operational details. */
@media screen {
  :root[data-theme] .collapsible-list-tools .order-list-filter-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 12px;
    background: var(--bg);
  }
  :root[data-theme] .collapsible-list-tools .order-list-filter-panel[hidden] { display: none; }
  :root[data-theme] .order-list-filter-panel .list-filter-bar { display: block; background: transparent; }
  :root[data-theme] .collapsible-list-tools .order-list-filter-panel .order-list-quick-filters {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.4fr);
    gap: 16px;
    margin: 0;
  }
  :root[data-theme] .order-list-filter-panel .order-list-quick-filters > fieldset {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }
  :root[data-theme] .order-list-filter-panel .order-filter-business { grid-template-columns: minmax(0, 1fr); }
  :root[data-theme] .order-list-filter-panel .order-filter-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-theme] .order-list-filter-panel .order-list-quick-filters legend {
    padding: 0 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
  }
  :root[data-theme] .order-list-filter-panel .order-list-quick-filters label:nth-child(n) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: auto;
    grid-row: auto;
    gap: 6px;
    margin: 0;
  }
  :root[data-theme] .order-list-filter-panel .order-list-quick-filters label > span {
    align-self: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }
  :root[data-theme] .order-list-filter-panel .order-filter-details > label:last-child:nth-of-type(odd) { grid-column: 1 / -1; }
  :root[data-theme] .collapsible-list-tools .order-list-filter-panel .order-list-quick-filters select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 8px 30px 8px 10px;
    font-size: 13px;
    border-radius: 7px;
    background-color: var(--surface);
  }
  :root[data-theme] .order-list-filter-panel > .list-options { margin: 0; background: transparent; }
  :root[data-theme] .order-list-filter-panel > .list-options > summary { width: fit-content; font-size: 12px; }
  :root[data-theme] .order-list-filter-panel > .list-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    background: transparent;
  }
  :root[data-theme] .order-list-filter-panel > .list-filter-actions .btn {
    order: 1;
    min-width: 136px;
    height: 40px;
    margin: 0;
  }
  :root[data-theme] .order-list-filter-panel > .list-filter-actions .text-link { margin: 0 auto 0 0; font-size: 12px; }
  :root[data-theme] .orders-register-results .list-tools > .list-filter-chips { margin-top: 12px; gap: 8px; }
  :root[data-theme] .orders-register-results .list-filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px; border-radius: 7px; font-size: 12px; }
}
@media screen and (max-width:900px) {
  :root[data-theme] .collapsible-list-tools .order-list-filter-panel .order-list-quick-filters { grid-template-columns: minmax(0,1fr); }
  :root[data-theme] .order-list-filter-panel .order-filter-business { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width:560px) {
  :root[data-theme] .collapsible-list-tools .order-list-filter-panel { padding: 12px; gap: 14px; }
  :root[data-theme] .order-list-filter-panel > .tabs.list-scope { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  :root[data-theme] .order-list-filter-panel > .tabs.list-scope > button { white-space: normal; }
  :root[data-theme] .order-list-filter-panel .order-list-quick-filters > fieldset { grid-template-columns: minmax(0,1fr); padding: 10px 12px 12px; }
  :root[data-theme] .collapsible-list-tools .order-list-filter-panel .order-list-quick-filters select { height: 44px; min-height: 44px; font-size: 16px; }
  :root[data-theme] .order-list-filter-panel > .list-filter-actions { gap: 10px; }
  :root[data-theme] .order-list-filter-panel > .list-filter-actions .btn { min-width: 120px; min-height: 44px; }
}

/* «Сотрудник» of a filter: the line to search in and the list of people under it (owner 02.12.2026 19:41). Tokens only. */
:root[data-theme] .list-person-pick { position: relative; min-width: 0; width: 100%; }
:root[data-theme] .list-person-pick > input { width: 100%; }
:root[data-theme] .list-person-options { position: absolute; z-index: var(--z-top); top: calc(100% + var(--space-1)); left: 0; right: 0; max-height: calc(var(--option-h) * 7); overflow-y: auto; padding: var(--space-1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-float); }
:root[data-theme] .list-person-options[hidden] { display: none; }
:root[data-theme] .list-person-options > button { display: block; width: 100%; min-height: var(--option-h); padding: 0 var(--space-3); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
:root[data-theme] .list-person-options > button:is(:hover,.active) { background: var(--surface-2); }
:root[data-theme] .list-person-options > button[aria-selected=true] { font-weight: 600; }
:root[data-theme] .list-person-none { margin: 0; padding: var(--space-2) var(--space-3); color: var(--ink-2); }


/* order-item-groups.css */
.order-item-table tr[hidden]{display:none!important}
.order-workspace .order-item-table .order-product-group>td{background:var(--surface-2);border-bottom:1px solid var(--line);font-weight:600}
.order-product-toggle{display:flex;align-items:center;gap:8px;appearance:none;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;padding:4px 0;cursor:pointer;max-width:100%}
.order-product-toggle>span:not(.order-product-chevron){max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-product-toggle>small{display:inline!important;white-space:nowrap;font-size:11px;font-weight:500;color:var(--muted)}
.order-product-chevron{flex:none;width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);margin:0 3px}
.order-product-toggle[aria-expanded=true] .order-product-chevron{transform:rotate(45deg) translateY(-2px)}
.order-product-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.order-workspace .order-product-child>td[data-item-column=name]{padding-left:28px}
.order-product-child>td[data-item-column=name] .product-link{font-weight:450}
.order-workspace .order-item-table .order-item-actions{flex-wrap:wrap;min-width:170px;gap:6px}
.order-workspace .order-product-group .line-price{min-width:105px}
.order-workspace .order-product-group input::placeholder{font-size:11px;font-weight:400}
@media(max-width:800px){
 body.mobile-app-ready .order-item-table .order-product-group>td{background:transparent}
 body.mobile-app-ready .order-item-table>tbody>tr.order-product-group{background:var(--surface-2);cursor:default}
 body.mobile-app-ready .order-product-toggle{min-height:44px;width:100%;gap:10px}
 .order-product-toggle>span:not(.order-product-chevron){max-width:none;white-space:normal;overflow:visible}
 body.mobile-app-ready .order-item-table>tbody>tr.order-product-group>td.mobile-row-primary{padding-right:0!important}
 body.mobile-app-ready .order-item-table>tbody>tr.order-product-child{margin-left:12px;border-left:3px solid var(--input-border,var(--line))}
 body.mobile-app-ready .order-workspace .order-item-table input[data-item-field]{font-size:16px;min-height:44px;width:100%}
 body.mobile-app-ready .order-item-table .order-item-actions .btn{min-height:44px}
}

.order-item-panel-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.order-parts-hint{padding:0 18px}

/* Keep bulk handover over the individual handover actions. */
.order-workspace .order-item-handover-table th[data-item-column=actions]{text-align:right}
.order-workspace .order-item-handover-table td[data-item-column=actions]>.order-item-actions{justify-content:flex-end}
/* the status forbids changing the lines: said where the line that adds stands (order-items.js, orderLinesLockedNote) */
.order-workspace .order-lines-locked-hint{margin:0;padding:var(--space-2) var(--pad-box);border-bottom:1px solid var(--line);background:var(--surface-2);color:var(--ink-2)}
@media(max-width:800px){
 /* owner, 25.11.2026 19:15 (UA-5022): «Выдать всё» stood out of the card — it keeps the padding of the card */
 body.mobile-app-ready .order-item-handover-table.mobile-disclosure-table>thead{position:static;display:block;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;padding:var(--space-3) var(--pad-box) var(--space-2)}
 body.mobile-app-ready .order-item-handover-table.mobile-disclosure-table>thead>tr{display:flex;justify-content:flex-end}
 body.mobile-app-ready .order-item-handover-table.mobile-disclosure-table>thead>tr>th:not([data-item-column=actions]){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.mobile-app-ready .order-item-handover-table.mobile-disclosure-table>thead>tr>th[data-item-column=actions]{display:block;width:auto;min-width:0;padding:0;border:0;background:none}
}


/* order-composer.css */
.order-workspace .panel:has(>.order-composer){overflow:visible}
.order-workspace .panel:has(>.order-composer)>.panel-head{border-top-left-radius:inherit;border-top-right-radius:inherit}
.order-composer{padding:9px 12px 10px;background:var(--surface-2);border-bottom:1px solid var(--line);min-width:0;container-type:inline-size}
.order-composer-fields{display:grid;grid-template-columns:auto minmax(140px,1fr) 110px 70px 125px auto;gap:8px;align-items:end}
.order-composer-fields-service{grid-template-columns:minmax(140px,1fr) 110px 70px 125px auto}
.order-composer-modes{display:inline-flex;align-self:end;flex:none;height:36px;box-sizing:border-box;border:1px solid var(--input-border,var(--line));border-radius:7px;padding:2px;background:var(--surface)}
.order-composer-modes button{appearance:none;border:0;border-radius:4px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:650;min-height:30px;padding:3px 10px;cursor:pointer}
.order-composer-modes button[aria-pressed=true]{background:var(--text);color:var(--surface)}
.order-composer-modes button:disabled{opacity:.45;cursor:default}
.order-composer-modes button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.order-composer-fields>label{display:flex;flex-direction:column;gap:3px;margin:0;font-size:11px;font-weight:600;color:var(--muted);min-width:0}
.order-workspace .order-composer-fields input{width:100%;min-width:0;height:36px;min-height:36px;padding:7px 9px;font-size:13px;margin:0;color:var(--text);background:var(--surface)}
.order-composer-fields input[readonly]{background:var(--surface-2);color:var(--muted)}
.order-composer-search{min-width:0;position:relative}
.order-composer-sku-control{display:flex;gap:6px;align-items:center;min-width:0}
.order-composer-sku-control input{flex:1}
.order-composer-sku-control .btn{flex:none;min-height:36px;padding:7px 9px;font-size:12px;white-space:nowrap}
.order-composer-sku-control [hidden]{display:none!important}
.new-order-sku-selector{margin-top:7px;white-space:normal}
.new-order-sku-selector>summary{color:var(--accent);font-size:12px;cursor:pointer;padding:4px 0}
.new-order-sku-selector[hidden]{display:none!important}
.order-composer-search .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.order-composer-total output{display:flex;align-items:center;min-height:36px;box-sizing:border-box;padding:7px 9px;border-radius:7px;border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--text);background:var(--surface);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.order-composer-fields .order-composer-submit{height:36px;min-height:36px;white-space:nowrap;padding:7px 11px;border-radius:7px;font-size:13px;gap:5px}
.order-composer-submit svg{width:15px;height:15px}
.order-composer-feedback{display:flex;flex-wrap:wrap;column-gap:12px;font-size:11px;color:var(--muted);line-height:1.4}
.order-composer-feedback>span:empty{display:none}
.order-composer-feedback>span:not(:empty){display:block;margin:5px 0 0}
.order-composer-context{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-composer-options{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:30;max-height:250px;overflow-y:auto;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--input-border,var(--line));border-radius:9px;box-shadow:0 10px 24px #132c4926;margin:0}
.order-composer-options[hidden]{display:none}
.order-composer-options button{width:100%;text-align:left;display:flex;flex-direction:column;gap:4px;min-height:44px;padding:10px 12px;border:0;border-bottom:1px solid var(--line);background:var(--surface);font:inherit;color:var(--text);cursor:pointer}
.order-composer-options button:last-child{border:0}
.order-composer-options button:hover,.order-composer-options button[aria-selected=true]{background:var(--surface-selected)}
.order-composer-options strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.order-composer-options small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.order-composer-options p{margin:0;padding:14px;font-size:12px;color:var(--muted)}
.order-composer-options [data-composer-page-kind]{border-top:1px solid var(--line);padding:8px 12px}
.order-composer-options [data-composer-page-kind]>strong{font-size:12px;color:var(--muted)}
.order-composer-options .lookup-pages{padding:6px 0 0;border:0}
.order-composer-options .lookup-pages>.btn{width:auto;min-height:32px;padding:6px 10px;border:1px solid var(--input-border,var(--line));display:inline-flex;align-items:center}
@container(max-width:760px){
 .order-composer-fields{grid-template-columns:minmax(0,1fr) minmax(0,.65fr) minmax(0,1fr) auto;gap:8px}
 .order-composer-modes{grid-column:1;justify-self:start}
 .order-composer-search{grid-column:2/-1}
 .order-composer-fields-service .order-composer-search{grid-column:1/-1}
 .order-composer-modes{height:50px;min-height:50px}
 .order-composer-fields .order-composer-submit{height:44px;min-height:44px}
 .order-composer-modes button{min-height:44px;padding:5px 11px}
 .order-workspace .order-composer-fields input{height:44px;min-height:44px;font-size:16px}
 .order-composer-total output{min-height:44px;font-size:14px}
 .order-composer-fields .order-composer-submit{font-size:14px}
}
@container(max-width:480px){
 .order-composer-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .order-composer-modes{grid-column:1/-1}
 .order-composer-modes button{padding:5px 17px}
 .order-composer-search{grid-column:1/-1}
 .order-composer-fields>label{font-size:12px}
 .order-composer-context{white-space:normal;overflow-wrap:anywhere}
 .order-composer-options{max-height:220px}
 .order-composer-options strong{font-size:14px}
}
@media(pointer:coarse){
 .order-composer-modes{height:50px;min-height:50px}
 .order-composer-fields .order-composer-submit{height:44px;min-height:44px}
 .order-composer-modes button{min-height:44px}
 .order-workspace .order-composer-fields input{height:44px;min-height:44px;font-size:16px}
 .order-composer-total output{min-height:44px}
}

/* One repair toolbar, two equal work surfaces. */
.order-workspace .repair-items-panel{overflow:visible}
.repair-items-panel .order-composer-fields{grid-template-columns:auto minmax(0,1fr) 105px 66px 115px auto}
.repair-items-panel .order-composer-search{grid-column:auto}
.order-workspace .repair-items-panel>.panel-head{border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:9px 12px}
.repair-items-panel .order-repair-columns{gap:0;align-items:stretch;margin:0}
.repair-item-section{min-width:0;background:var(--surface)}
.repair-item-section+ .repair-item-section{border-left:1px solid var(--line)}
.repair-item-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-bottom:1px solid var(--line);background:var(--surface)}
.repair-item-heading h3{margin:0;font-size:12px;font-weight:700;line-height:18px}
.repair-item-heading>span{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.order-workspace .repair-items-panel .order-parts-hint{margin:0;padding:7px 12px;border-top:1px solid var(--line);font-size:10px;line-height:1.45;border-radius:0 0 10px 10px}
.order-workspace .repair-items-panel .table-wrap{overflow:visible;border-radius:0}
.order-workspace .repair-items-panel .order-item-table{width:100%;min-width:0;table-layout:fixed}
.order-workspace .repair-items-panel .order-item-table :is(th,td){min-width:0;max-width:none;padding:7px 6px;font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.order-workspace .repair-items-panel .order-item-table th{font-size:10px;font-weight:600;padding-top:7px;padding-bottom:7px}
.order-workspace .repair-items-panel [data-item-column=name]{width:auto}
.order-workspace .repair-items-panel [data-item-column=master]{width:25%}
.order-workspace .repair-items-panel [data-item-column=sku]{width:15%}
.order-workspace .repair-items-panel [data-item-column=qty]{width:8%}
.order-workspace .repair-items-panel [data-item-column=price]{width:14%}
.order-workspace .repair-items-panel [data-item-column=amount]{width:15%;font-variant-numeric:tabular-nums}
.order-workspace .repair-items-panel [data-item-column=fulfillment]{width:14%}
.order-workspace .repair-items-panel [data-item-column=actions]{width:34px;box-sizing:content-box}
.order-workspace .repair-items-panel :is(.line-qty,.line-price,.line-master,.line-cost){width:100%;max-width:100%;min-width:0;min-height:27px;height:27px;margin:0;padding:3px 5px;font-size:12px;box-sizing:border-box}
.order-workspace .repair-items-panel .line-master{padding-right:18px;font-size:11px}
.order-workspace .repair-items-panel input[type=number]{appearance:textfield;-moz-appearance:textfield}
.order-workspace .repair-items-panel input[type=number]::-webkit-inner-spin-button,.order-workspace .repair-items-panel input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.order-workspace .repair-items-panel .product-link{white-space:normal;overflow-wrap:anywhere;max-width:100%;font-size:12px;line-height:1.35;text-align:left}
.order-workspace .repair-items-panel .mono{font-size:11px;letter-spacing:-.02em}
.order-workspace .repair-items-panel .badge{display:inline-block;font-size:10px;line-height:1.3;padding:3px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;max-width:100%;box-sizing:border-box;vertical-align:middle}
.order-workspace .repair-items-panel td small{font-size:10px;margin-top:2px}
.order-workspace .repair-items-panel .order-product-toggle{gap:5px;padding:0;font-size:12px}
.order-workspace .repair-items-panel .order-product-toggle>span:not(.order-product-chevron){white-space:normal;overflow:visible;overflow-wrap:anywhere}
.order-workspace .repair-items-panel .order-product-toggle>small{display:none!important}
.order-workspace .repair-items-panel .order-product-child>td[data-item-column=name]{padding-left:16px}
.order-workspace .repair-items-panel .order-item-actions{min-width:0;gap:3px;justify-content:center}
.order-workspace .repair-items-panel .repair-row-save{width:28px;min-height:27px;padding:2px;font-size:14px}
.repair-row-menu{position:relative}
.repair-row-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:28px;height:27px;border:1px solid transparent;border-radius:5px;cursor:pointer;color:var(--muted);font-size:20px;font-weight:700;line-height:1}
.repair-row-menu>summary::-webkit-details-marker{display:none}
.repair-row-menu>summary:hover,.repair-row-menu[open]>summary{background:var(--surface-2);border-color:var(--line);color:var(--text)}
.repair-row-menu>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.repair-row-menu-items{position:absolute;right:0;top:calc(100% + 3px);min-width:160px;max-width:220px;z-index:40;display:grid;gap:4px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:7px;box-shadow:0 7px 20px #132c4926}
.order-workspace .repair-row-menu-items .btn{justify-content:flex-start;width:100%;min-height:30px;padding:5px 8px;font-size:12px;white-space:normal;text-align:left}
@media(max-width:1100px){
 .repair-items-panel .order-repair-columns{grid-template-columns:minmax(0,1fr)}
 .repair-item-section+ .repair-item-section{border-left:0;border-top:1px solid var(--line)}
}
/* with «Себестоимость» of the works (owner, 30.11.2026 12:27) the works need the whole width up to a wide screen: works above
   parts, as below 1100 px; without that column nothing changes */
@media(max-width:1600px){
 .repair-items-panel .order-repair-columns:has(th[data-item-column="cost"]){grid-template-columns:minmax(0,1fr)}
 .repair-items-panel .order-repair-columns:has(th[data-item-column="cost"]) .repair-item-section+.repair-item-section{border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:800px),(pointer:coarse){
 .order-workspace .repair-items-panel :is(.line-qty,.line-price,.line-master,.line-cost){min-height:36px;height:36px;font-size:14px}
 .order-workspace .repair-items-panel .repair-row-save,.repair-row-menu>summary{min-width:36px;min-height:36px}
}
@container(max-width:760px){
 .repair-items-panel .order-composer-fields{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr) auto}
 .repair-items-panel .order-composer-search{grid-column:1/-1}
 .repair-items-panel .order-composer-modes{grid-column:1/-1;justify-self:start}
}
@container(max-width:480px){
 .repair-items-panel .order-composer-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

/* Sales retain their horizontal scroller; an open row menu expands its cell. */
.order-workspace .panel:not(.repair-items-panel) .repair-row-menu-items{position:static;margin-top:3px;width:190px;min-width:0}

/* the menu of a row in the window, on the side with room (owner's audit 23.11.2026); tokens only */
:root[data-theme] .repair-row-menu-items.floating,:root[data-theme] .order-workspace .panel:not(.repair-items-panel) .repair-row-menu-items.floating{position:fixed;right:auto;bottom:auto;margin:0;width:max-content;min-width:calc(var(--rail-mini) * 2.5);max-width:calc(100% - var(--space-5));z-index:var(--z-sheet);box-shadow:var(--shadow-float)}


/* sku-picker.css */
dialog.sku-picker-dialog:not(.wide-dialog){width:min(920px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.sku-warehouse-picker{min-width:0;margin:8px 0;color:var(--text);container-type:inline-size}
.sku-picker-head,.sku-picker-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(140px,1fr) 72px minmax(180px,1.65fr) 70px;gap:12px;align-items:center}
.sku-picker-head{padding:9px 12px;background:var(--surface-2,#edf1f7);border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);font-weight:600}
.sku-picker-row{padding:10px 12px;border-bottom:1px solid var(--line)}
.sku-picker-warehouse{min-width:0}.sku-picker-warehouse strong{font-size:13px;font-weight:600}.sku-picker-warehouse small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.sku-warehouse-picker .sku-picker-location select,.sku-warehouse-picker .sku-picker-trigger{width:100%;height:38px;min-height:38px;margin:0;padding:7px 10px;font-size:13px;border:1px solid var(--input-border,var(--line));border-radius:7px;background:var(--surface,#fff);color:var(--text)}
.sku-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;text-align:left}.sku-picker-trigger span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sku-picker-trigger:disabled{opacity:.55;cursor:default}
.sku-picker-available,.sku-picker-count{text-align:center;font-size:13px;font-variant-numeric:tabular-nums}.sku-picker-count{font-weight:700;color:var(--text)}.sku-picker-root{color:var(--muted)}
.sku-picker-selections{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.sku-picker-selections[hidden]{display:none}
.sku-warehouse-picker .sku-picker-chip{display:inline-flex;gap:10px;align-items:center;padding:4px 8px;min-height:28px;border:1px solid var(--input-border,var(--line));border-radius:6px;background:var(--surface-selected,#e3f3fa);color:var(--text);font-size:12px;font-weight:600;cursor:pointer}.sku-picker-chip:disabled{opacity:.7;cursor:default}
.sku-picker-notice{display:block;margin-top:4px;color:var(--danger,#b32f3b);font-size:12px}.sku-picker-notice:empty{display:none}
.sku-picker-locationless .sku-picker-row{grid-template-columns:minmax(180px,1fr) 44px;padding:4px 0;border:0}
.sku-picker-empty{padding:14px 10px;color:var(--muted);font-size:13px}
.sku-picker-popup{box-sizing:border-box;z-index:2000;border:1px solid var(--input-border,var(--line));border-radius:9px;background:var(--surface,#fff);color:var(--text);padding:8px;box-shadow:0 10px 30px #10243e26;overflow:auto}
.sku-picker-popup::backdrop{background:transparent;pointer-events:none}
.sku-picker-popup input[data-sku-query]{position:sticky;top:0;box-sizing:border-box;width:100%;height:38px;min-height:38px;margin:0 0 6px;padding:7px 10px;border:1px solid var(--input-border,var(--line));border-radius:6px;background:var(--surface,#fff);color:var(--text);font-size:13px;z-index:1}
.sku-picker-popup [data-sku-option]{display:flex;align-items:center;gap:9px;width:100%;min-height:40px;padding:8px;border:0;border-radius:5px;background:transparent;color:var(--text);text-align:left;font-size:13px;cursor:pointer}
.sku-picker-popup [data-sku-option] strong{font-size:13px;font-weight:600}.sku-picker-popup [data-sku-option] small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.sku-picker-popup [data-sku-option]:hover,.sku-picker-popup [data-sku-option].is-keyboard-active{background:var(--surface-2,#edf1f7)}.sku-picker-popup [data-sku-option][aria-selected=true]{background:var(--surface-selected,#dff1fa)}.sku-picker-popup [data-sku-option]:disabled{opacity:.5;cursor:default}
.sku-picker-check{display:inline-grid;place-items:center;width:17px;height:17px;flex:0 0 17px;border:1px solid var(--input-border,var(--line));border-radius:4px;color:var(--text);font-weight:700}
.sku-picker-popup [data-sku-popup-notice]{display:block;font-size:12px;color:var(--danger,#b32f3b)}.sku-picker-popup [data-sku-popup-notice]:empty{display:none}
@media(max-width:700px){.sku-picker-head{display:none}.sku-picker-row{grid-template-columns:minmax(100px,1fr) minmax(130px,1fr) 40px;gap:7px;padding:10px 0}.sku-picker-row .sku-picker-trigger{grid-column:1/3}.sku-picker-count{grid-column:3}.sku-picker-warehouse strong{font-size:12px}.sku-picker-locationless .sku-picker-row .sku-picker-trigger{grid-column:1}.sku-picker-locationless .sku-picker-count{grid-column:2}}
@container(max-width:650px){.sku-picker-head{display:none}.sku-picker-row{grid-template-columns:minmax(90px,1fr) minmax(110px,1fr) 36px;gap:7px;padding:10px 0}.sku-picker-row .sku-picker-trigger{grid-column:1/3}.sku-picker-count{grid-column:3}.sku-picker-warehouse strong{font-size:12px}.sku-picker-locationless .sku-picker-row{grid-template-columns:minmax(120px,1fr) 36px}.sku-picker-locationless .sku-picker-row .sku-picker-trigger{grid-column:1}.sku-picker-locationless .sku-picker-count{grid-column:2}}

.sku-picker-scan-select .sku-picker-selections{padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2,#edf1f7);max-height:148px;overflow:auto;align-items:center}
.sku-picker-selection-total{flex-basis:100%;font-size:13px;margin-bottom:3px;font-variant-numeric:tabular-nums}
.sku-picker-scan-select .remote-sku-options>.btn{display:grid;grid-template-columns:18px minmax(95px,auto) minmax(0,1fr);align-items:center}
.sku-picker-scan-select .remote-sku-options>.btn .sku-picker-check{color:var(--text);font-weight:700}
.sku-picker-scan-select .remote-sku-options>.btn[aria-checked=true]{background:var(--surface-selected,#dff1fa);border-color:var(--accent,#177cb0)}
@media(max-width:700px){.sku-picker-scan-select .remote-sku-options>.btn{grid-template-columns:18px minmax(0,1fr)}.sku-picker-scan-select .remote-sku-options>.btn>span:last-child{grid-column:2;font-size:12px}}

.order-reserve-product{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0 14px;line-height:1.4}
.order-reserve-product>strong{min-width:0;overflow-wrap:anywhere}.order-reserve-product>span{flex-shrink:0;font-size:13px;color:var(--muted)}
@media(max-width:600px){.order-reserve-product{flex-wrap:wrap;gap:5px}.order-reserve-product>strong,.order-reserve-product>span{flex-basis:100%}}

.sku-picker-notice.is-success{color:var(--success,#18724b)}

/* a chosen SKU — a block of its own line: the SKU and its serial number (owner, 02.12.2026 17:41: «В окне со списком СКУ
   построчно нужно писать блоками СКУ с его серийным номером»); a long list scrolls inside its own frame */
.sku-picker-selections:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-1);max-height:calc(var(--control-h) * 8);overflow:auto}
.sku-picker-selections>.sku-picker-chip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--space-3);width:100%;min-height:var(--control-h);padding:0 var(--space-3);border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);color:var(--ink);font:var(--text-body);text-align:left;cursor:pointer}
.sku-picker-selections>.sku-picker-chip .sku-picker-chip-sku{font:var(--text-strong);font-variant-numeric:tabular-nums}
.sku-picker-selections>.sku-picker-chip .sku-picker-chip-serial{min-width:0;overflow-wrap:anywhere;color:var(--ink);font-variant-numeric:tabular-nums}
.sku-picker-selections>.sku-picker-chip .sku-picker-chip-serial.is-empty{color:var(--ink-2)}
.sku-picker-selections>.sku-picker-chip .sku-picker-chip-remove{color:var(--ink-2);font:var(--text-strong)}
/* a narrow window (a phone): the block has two lines — the SKU, under it its S/N — and nothing is cut */
@container (max-width:480px){
 .sku-picker-selections>.sku-picker-chip{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"sku remove" "serial remove";row-gap:0;padding:var(--space-2) var(--space-3)}
 .sku-picker-selections>.sku-picker-chip .sku-picker-chip-sku{grid-area:sku}
 .sku-picker-selections>.sku-picker-chip .sku-picker-chip-serial{grid-area:serial}
 .sku-picker-selections>.sku-picker-chip .sku-picker-chip-remove{grid-area:remove}
}


/* sku-autocomplete.css */
.sku-autocomplete{position:fixed;inset:auto;margin:0;box-sizing:border-box;z-index:2000;max-height:300px;overflow:auto;overscroll-behavior:contain;padding:4px;border:1px solid var(--input-border,var(--line));border-radius:9px;background:var(--surface);color:var(--text);box-shadow:0 10px 24px #132c4926}
.sku-autocomplete[hidden]{display:none!important}.sku-autocomplete::backdrop{background:transparent;pointer-events:none}
.sku-autocomplete button{display:flex;flex-direction:column;gap:3px;width:100%;min-height:44px;padding:9px 10px;border:0;border-radius:5px;background:transparent;color:var(--text);text-align:left;font:inherit;cursor:pointer}
.sku-autocomplete button:hover,.sku-autocomplete button[aria-selected=true]{background:var(--surface-selected)}
.sku-autocomplete strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.sku-autocomplete small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.sku-autocomplete p{margin:0;padding:12px 10px;font-size:12px;color:var(--muted)}
.client-autocomplete button{flex-direction:row;align-items:center;min-height:36px;padding:7px 10px}
.client-autocomplete strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
@media(pointer:coarse){.client-autocomplete button{min-height:44px}}

.lookup-search-control{display:flex;align-items:stretch;gap:6px;min-width:0;width:100%}
.lookup-search-control>input{flex:1 1 auto;min-width:0!important;width:0!important;margin:0}
.lookup-search-control>.lookup-search-button{flex:none;white-space:nowrap;align-self:stretch;margin:0;padding:6px 10px;min-height:34px}
@media(max-width:600px){.lookup-search-control>.lookup-search-button{min-height:42px}}


/* client-phone.css */
.client-phone-number{width:100%;min-width:0;margin-top:0}


/* client-contacts.css */
.client-contact-phones{display:inline-flex;flex-direction:column;gap:4px;min-width:0;max-width:100%;vertical-align:middle}
.client-contact-phone{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;overflow-wrap:anywhere}
.client-source-contacts{display:flex;flex-direction:column;gap:8px;min-width:0;margin-bottom:16px}
.client-source-contacts-label{font-weight:600}
.client-source-contacts>small{color:var(--muted);line-height:1.4}
.client-phones-editor{min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;margin:0 0 16px}
.client-phones-editor legend{padding:0 5px;font-weight:600}
.client-phone-editor-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.client-phone-editor-row>label{min-width:0;margin-bottom:10px}
.client-phone-editor-row>[data-client-phone-remove]{margin-top:22px;width:32px;height:32px;flex-shrink:0}
.client-phone-editor-row .client-phone-number{width:100%;min-width:0}
.client-contact-phones.client-contact-phones-with-actions{display:flex;gap:8px;width:100%}
.order-contacts .client-contact-phone{display:flex;flex-wrap:wrap;gap:3px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.order-contacts .client-contact-phone:last-child{border-bottom:0;padding-bottom:0}
.client-contact-call{white-space:nowrap}
.client-contact-phones .client-contact-phone .messenger-icons{display:inline-flex;flex-wrap:wrap;gap:3px;margin:0 0 0 auto}
.order-contacts .client-contact-call{font-size:14px;line-height:1.35;letter-spacing:-.15px}
.order-contacts .client-contact-phone .messenger-icons{flex-wrap:nowrap;gap:1px;flex:0 0 auto}
.order-contacts .client-contact-phone .messenger-icons .messenger-link{width:24px;min-width:24px;height:24px;min-height:24px;padding:2px}
.order-contacts .client-contact-phone .messenger-icons svg{width:18px;height:18px}
@media(max-width:460px){.client-phone-editor-row{gap:4px}.client-phones-editor{padding:9px}}


/* order-create.css */
.new-order-dialog .modal-body{gap:12px}
.new-order-dialog .new-order-idno{margin:0}
.new-order-dialog .new-order-idno [data-idno-status]:empty{display:none}
.new-order-client-row{--client-field-height:44px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;min-width:0}
.new-order-client-row>label{position:relative;min-width:0}
.new-order-dialog .new-order-client-row input:not([type=hidden]),.new-order-dialog .new-order-client-row select{box-sizing:border-box;width:100%;min-width:0;height:var(--client-field-height);min-height:var(--client-field-height);padding:10px 12px;margin:0;font-size:14px;line-height:22px;border-radius:8px}
.new-order-client-row select{appearance:none;-webkit-appearance:none;padding-right:34px!important}
.new-order-client-row>label:has(select)::after{content:"";position:absolute;pointer-events:none;right:15px;bottom:calc(var(--client-field-height)/2 - 2px);width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
@media(max-width:640px){.new-order-client-row{grid-template-columns:1fr;gap:14px}.new-order-dialog .new-order-client-row input:not([type=hidden]),.new-order-dialog .new-order-client-row select{font-size:16px}}
body.mobile-simple .new-order-client-row{--client-field-height:52px}
.new-order-entry{margin-top:0;padding-top:12px;border-top:1px solid var(--line);container-type:inline-size;min-width:0}
.new-order-entry>h3{margin:0 0 10px;font-size:14px}
.new-order-entry [hidden]{display:none!important}
.initial-composer{display:grid;grid-template-columns:auto minmax(130px,1fr) 105px 65px 115px auto;gap:8px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.initial-composer-modes{display:inline-flex;align-self:end;box-sizing:border-box;height:36px;padding:2px;border:1px solid var(--input-border,var(--line));border-radius:7px;background:var(--surface)}
.initial-composer-modes button{border:0;border-radius:4px;min-height:30px;padding:3px 9px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.initial-composer-modes button[aria-pressed=true]{background:var(--text);color:var(--surface)}
.initial-composer-modes button:disabled{opacity:.45;cursor:default}
.initial-composer-modes button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.initial-composer-search{min-width:0}
.initial-composer-search [data-initial-sku-search]{display:flex;align-items:center;gap:5px;min-width:0}
.new-order-entry .initial-composer input,.new-order-entry .initial-order-line input{box-sizing:border-box;width:100%;min-width:0;min-height:36px;height:36px;margin:0;padding:7px 9px;font-size:13px;color:var(--text);background:var(--surface)}
.initial-composer-search [data-initial-sku-search] input{flex:1}
.new-order-entry input[readonly]{background:var(--surface-2);color:var(--muted)}
.initial-composer>label,.initial-order-line>label{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;font-size:11px;font-weight:600;color:var(--muted)}
.initial-composer-total output{display:flex;align-items:center;min-width:0;min-height:36px;padding:7px 9px;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.initial-composer>[data-initial-stage]{height:36px;min-height:36px;white-space:nowrap;padding:7px 10px;font-size:13px;gap:5px}
.initial-composer>[data-initial-stage] svg{width:15px;height:15px}
.initial-composer-context{display:block;margin-top:5px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.initial-composer-context:empty,.new-order-entry [data-initial-error]:empty{display:none}
.new-order-entry [data-initial-error]{margin:7px 0;font-size:12px}
.initial-order-lines{margin-top:10px;min-width:0}
.initial-order-line{display:grid;grid-template-columns:minmax(130px,1fr) 105px 65px 115px 32px;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);min-width:0}
.initial-order-line-name{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.initial-order-line-name strong{font-size:13px;font-weight:650}
.initial-order-line-name small{font-size:11px;color:var(--muted)}
.initial-order-line>[data-initial-line-total]{font-size:13px;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.initial-order-line>.icon-btn{width:32px;min-width:32px;min-height:36px;padding:7px;align-self:end}
.initial-order-empty{margin:0;padding:8px 0;color:var(--muted);font-size:12px}
.initial-order-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:9px;font-size:12px;color:var(--muted)}
.initial-order-summary strong{color:var(--text);font-variant-numeric:tabular-nums}
.initial-order-summary:not(:has(:not(:empty))){display:none}
@container(max-width:760px){
 .initial-composer{grid-template-columns:minmax(0,1fr) 65px minmax(95px,1fr) auto}
 .initial-composer-modes{grid-column:1;justify-self:start}
 .initial-composer-search{grid-column:2/-1}
 .initial-order-line{grid-template-columns:minmax(100px,1fr) 90px 65px 100px 32px}
}
@container(max-width:520px){
 .initial-composer{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:9px;gap:9px}
 .initial-composer-modes,.initial-composer-search{grid-column:1/-1}
 .initial-composer-modes{height:44px}
 .initial-composer-modes button{min-height:38px;padding:5px 16px}
 .new-order-entry .initial-composer input,.new-order-entry .initial-order-line input{min-height:44px;height:44px;font-size:16px}
 .initial-composer>[data-initial-stage]{height:44px;min-height:44px}
 .initial-composer-total output{min-height:44px}
 .initial-composer>label,.initial-order-line>label{font-size:12px}
 .initial-order-line{grid-template-columns:minmax(0,1fr) 70px minmax(70px,1fr) 36px;gap:8px}
 .initial-order-line-name{grid-column:1/-1}
 .initial-order-line>[data-initial-line-total]{align-self:end;min-height:44px;display:flex;justify-content:end;align-items:center}
 .initial-order-line>.icon-btn{min-height:44px;height:44px;width:36px}
}
@media(pointer:coarse){
 .initial-composer-modes{height:44px}.initial-composer-modes button{min-height:38px}
 .new-order-entry .initial-composer input,.new-order-entry .initial-order-line input{min-height:44px;height:44px;font-size:16px}
 .initial-composer>[data-initial-stage],.initial-order-line>.icon-btn{min-height:44px;height:44px}
 .initial-composer-total output{min-height:44px}
}
/* A process without a starting status (owner, 21.11.2026 08:41): two short lines, spaced by the window's own gap. */
#modal .modal-body>p[data-start-status-missing],#modal .modal-body>p[data-start-status-missing]+p{margin:0}
/* a price the catalogue does not have is said in amber, not shown as 0 (owner's audit 23.11.2026) */
:root[data-theme] .initial-composer-context.price-missing,:root[data-theme] .order-composer-feedback .price-missing{color:var(--warn)}


/* theme.css */
/* Contrast comes from separate page, card and control surfaces, in both themes. */
@media screen {
 /* The rulebook «Pakovia 2.0 — свод правил интерфейса» (owner, 19.11.2026 13:58: «Интегрируй»): every colour comes from
    tokens.css (loaded first: --bg, --surface, --surface-2, --line and the rest). The names the screens of Pakovia 2.0 use
    are kept and point at the tokens, so the light and the dark theme and the look «как в CORD» follow the rulebook. */
 :root {
  --text:var(--ink);--muted:var(--ink-2);--border:var(--line);--input-border:var(--line-strong);
  --accent:var(--info);--red:var(--bad);--surface-hover:var(--surface-2);--surface-selected:var(--info-bg);
  --panel:var(--surface);--soft:var(--surface-2);--hover:var(--surface-hover);
  --danger:var(--red);--blue:var(--accent);--theme-shadow:var(--shadow-card);
  --notice-bg:var(--info-bg);--notice-text:var(--info);--notice-border:color-mix(in srgb,var(--info) 40%,var(--info-bg));
  --success-bg:var(--ok-bg);--success-text:var(--ok);--success-border:color-mix(in srgb,var(--ok) 40%,var(--ok-bg));
  --warning-bg:var(--warn-bg);--warning-text:var(--warn);--warning-border:color-mix(in srgb,var(--warn) 40%,var(--warn-bg));
  --error-bg:var(--bad-bg);--error-text:var(--bad);--error-border:color-mix(in srgb,var(--bad) 40%,var(--bad-bg));
  --tone-blue-bg:var(--info-bg);--tone-blue-fg:var(--info);
  --tone-teal-bg:var(--ok-bg);--tone-teal-fg:var(--ok);
  --tone-amber-bg:var(--warn-bg);--tone-amber-fg:var(--warn);
  /* not in the rulebook yet: kept until the screens that use it are moved */
  --tone-violet-bg:color-mix(in srgb,var(--info) 14%,var(--surface));--tone-violet-fg:var(--info);
  --sidebar-bg:var(--surface);--sidebar-text:var(--ink-2);--nav-selected:var(--surface-2);--nav-active:var(--ink);
  /* «Создать»: the accent of the look (CORD — the gradient of the logo, its end lightened for contrast) */
  --brand-gradient:var(--accent-bg);--action-text:var(--accent-ink);--action-border:var(--accent-line);--action-hover:var(--accent-bg);
  --action-blue:var(--primary);--action-blue-hover:color-mix(in srgb,var(--primary) 88%,var(--ink));--action-focus:var(--wing);
  --dark:var(--bg);
 }
 html,body { background:var(--bg);color:var(--text); }
 /* Loading is deliberately neutral until the account and its preference arrive. */
 .boot { min-height:100vh;min-height:100dvh;background:#182434;color:#eef3fb; }
 .boot p { color:#b1c0d2; }
 /* Pakovia's quiet navigation and work canvas, in Pakovia's own palette. */
 :root[data-theme] .sidebar { background:var(--sidebar-bg);color:var(--text);border-right:1px solid var(--line);width:240px;padding:25px 16px 16px;overflow:hidden; }
 :root[data-theme] .logo { color:var(--text);font-size:24px;letter-spacing:-.4px;padding:0 10px;margin-bottom:0;flex:none; }
 :root[data-theme] .logo img { width:32px;height:32px; }
 :root[data-theme] .logo-sub { display:block;flex:none;color:var(--muted);font-size:11px;line-height:1.5;max-width:none;margin:8px 10px 20px; }
 :root[data-theme] :is(.nav-label,.sidebar-bottom p) { display:none; }
 :root[data-theme] .demo-label { color:var(--muted);font-size:11px; }
 :root[data-theme] .nav { display:grid;gap:3px; }
 :root[data-theme] .nav-main { flex:1;min-height:0;overflow-y:auto;align-content:start;scrollbar-width:thin; }
 :root[data-theme] .nav:not(.nav-main) { flex:none;margin-top:4px; }
 :root[data-theme] .nav a { color:var(--sidebar-text);gap:13px;border:1px solid transparent;padding:11px 12px;min-height:44px;font-size:14px;border-radius:11px; }
 :root[data-theme] .nav a>svg { padding:0;background:transparent;color:currentColor;border-radius:0;width:20px;height:20px;flex:none; }
 :root[data-theme] .nav a:hover { color:var(--text);background:var(--surface-2); }
 :root[data-theme] .nav a.active { color:var(--nav-active);background:var(--nav-selected);font-weight:750; }
 :root[data-theme] .nav .count { background:var(--surface-2);color:var(--muted);font-weight:650;border-radius:20px;min-width:22px;text-align:center; }
 :root[data-theme] .nav a.active .count { background:var(--surface);color:var(--text); }
 :root[data-theme] .sidebar-bottom { flex:none;padding:16px 8px 0;margin-top:0; }
 :root[data-theme] .btn.sidebar-create { margin:var(--space-4) 0 0;flex:none;min-height:var(--control-h);width:100%;border:2px solid var(--accent-line);border-radius:var(--r-md);font-size:var(--fs-label);font-weight:600; }
 :root[data-theme] .settings-grid>.panel { align-self:start; }
 :root[data-theme] .top-tools button.profile { padding:5px 12px 5px 5px;border:1px solid var(--line);border-radius:32px;background:var(--surface);font-weight:700; }
 :root[data-theme] .top-tools .profile-name { white-space:nowrap;line-height:1.2; }
 :root[data-theme] .avatar { width:34px;height:34px; }
 :root[data-theme] .footnote { font-size:11px;opacity:.8; }
 @media(min-width:801px) {
  :root[data-theme] .shell { grid-template-columns:240px minmax(0,1fr); }
  :root[data-theme] .topbar { height:64px;padding-inline:28px;background:var(--bg); }
  :root[data-theme] .breadcrumb>span,:root[data-theme] .breadcrumb>svg { display:none; }
  :root[data-theme] .breadcrumb b { color:var(--muted);font-size:13px; }
  :root[data-theme] .top-tools { gap:12px; }
  :root[data-theme] .top-tools>svg { display:none; }
  :root[data-theme] .shell:has(.personal-overview) .breadcrumb { visibility:hidden; }
  :root[data-theme] .top-tools>[data-action=profile-language] { border:0;background:transparent; }
  :root[data-theme] .content:not(.order-list-content):not(:has(>.order-workspace)):not(:has(>.orders-register-page)) { padding:28px 32px 36px;max-width:none; }
  :root[data-theme] .page-head { margin-bottom:22px;align-items:center; }
  :root[data-theme] .page-head h1 { font-size:28px;line-height:1.25;letter-spacing:-.7px;font-weight:800; }
  :root[data-theme] .page-head p { font-size:14px;line-height:1.5;margin-top:6px; }
  :root[data-theme] .mobile-sheet { inset:0;margin:auto;width:min(640px,calc(100% - 48px));height:fit-content;max-height:90dvh;border-radius:18px;padding:20px; }
  :root[data-theme] .mobile-sheet-handle { display:none; }
  :root[data-theme] .mobile-sheet-heading { padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--line); }
 }
 :root[data-theme] :is(.panel,.metric,.workflow-tile,.warehouse-tile,.auth-card,.task-inbox) {
  background:var(--surface);border-color:var(--line);box-shadow:var(--theme-shadow);
 }
 :root[data-theme] .metric.featured { background:#132941;color:#fff;border-color:#35516c; }
 :root[data-theme] .metric.featured :is(.metric-top,.metric-foot,small) { color:#c1cfde; }
 /* A toast is the page turned over: dark on the light theme, light on the dark one (owner, 24.11.2026 16:03, «Неявное
    визуальное отображение»: --dark is the page itself, so white words stood on a light toast). */
 :root[data-theme] .toast { background:var(--ink);color:var(--surface);border-radius:var(--r-md);box-shadow:var(--shadow-float); }
 :root[data-theme] .toast.error { background:var(--bad);color:var(--surface); }
 :root[data-theme] :is(.topbar,dialog,.mobile-sheet,.stock-product-drawer,.assignment-drawer,.freight-drawer) {
  background:var(--surface);color:var(--text);border-color:var(--line);
 }
 :root[data-theme] :is(.panel-head,.modal-head,.modal-foot,.wide-dialog .modal-head,.template-dialog .modal-head,.assignment-drawer .modal-head,.stock-product-drawer .modal-head) {
  background:var(--surface);color:var(--text);border-color:var(--line);
 }
 :root[data-theme] dialog::backdrop { background:#182c4a70;backdrop-filter:blur(2px); }
 :root[data-theme] :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=color]):not(.order-status-color-control):not(.doc-source-editor) {
  background:var(--surface);color:var(--text);border-color:var(--input-border);
 }
 :root[data-theme] :is(input,textarea)::placeholder { color:var(--ink-3);opacity:1; }
 :root[data-theme] .top-tools select { background:transparent!important; }
 :root[data-theme] :is(.bulk-table input[readonly],.order-workspace .order-card-form select:disabled,.order-workspace .order-card-form input:disabled) {
  background:var(--surface-2);color:var(--muted);opacity:1;
 }
 :root[data-theme] .btn { background:var(--surface);color:var(--text);border-color:var(--input-border); }
 :root[data-theme] .btn:hover:not(:disabled) { background:var(--surface-2); }
 /* UI rules (docs/UI-RULES.md, «Виды кнопок»): «Главная» — primary fill; «Создать» (+) — accent: the CORD gradient. */
 :root[data-theme] .btn.primary { background:var(--primary);border-color:var(--primary);color:var(--on-primary);filter:none;font-weight:600; }
 :root[data-theme] .btn.primary:hover:not(:disabled) { background:color-mix(in srgb,var(--primary) 92%,#fff);border-color:color-mix(in srgb,var(--primary) 92%,#fff); }
 :root[data-theme] :is(.btn.create,.btn.primary.create,.btn.sidebar-create) { background:var(--accent-bg);border-color:var(--accent-line);color:var(--accent-ink);filter:none;font-weight:600; }
 :root[data-theme] :is(.btn.create,.btn.primary.create,.btn.sidebar-create):hover:not(:disabled) { background:var(--accent-bg);border-color:var(--accent-line);filter:brightness(1.06); }
 /* All explicit searches share the primary action palette. Use control markers,
    not every button beside a search field (filters and row actions stay neutral). */
 :root[data-theme] .btn:where(
  [data-list-search-submit],
  [data-page-search-submit],
  [data-warehouse-search-submit],
  [data-attendance-search-submit],
  [data-task-search-submit],
  [data-assignment-people-search-submit],
  [data-audit-search-submit],
  [data-source-purchase-search-submit],
  [data-freight-search-submit],
  [data-manufacture-search-submit],
  [data-purchase-detail-search-submit],
  [data-inbound-search-submit],
  [data-inbound-goods-search-submit],
  [data-inbound-receipt-search-submit],
  [data-mobile-freight-search-submit],
  [data-role-search-submit],
  [data-repair-model-search-submit],
  [data-preview-order-search],
  [data-lookup-search],
  [data-sku-find],
  [data-remote-sku-find],
  [data-lookup-idno],
  #doc-variable-search-submit
 ):not(:disabled) {
  background:var(--primary);border-color:var(--primary);color:var(--on-primary);filter:none;font-weight:600;
 }
 :root[data-theme] .btn:where(
  [data-list-search-submit],
  [data-page-search-submit],
  [data-warehouse-search-submit],
  [data-attendance-search-submit],
  [data-task-search-submit],
  [data-assignment-people-search-submit],
  [data-audit-search-submit],
  [data-source-purchase-search-submit],
  [data-freight-search-submit],
  [data-manufacture-search-submit],
  [data-purchase-detail-search-submit],
  [data-inbound-search-submit],
  [data-inbound-goods-search-submit],
  [data-inbound-receipt-search-submit],
  [data-mobile-freight-search-submit],
  [data-role-search-submit],
  [data-repair-model-search-submit],
  [data-preview-order-search],
  [data-lookup-search],
  [data-sku-find],
  [data-remote-sku-find],
  [data-lookup-idno],
  #doc-variable-search-submit
 ):hover:not(:disabled) { background:color-mix(in srgb,var(--primary) 92%,#fff);border-color:color-mix(in srgb,var(--primary) 92%,#fff); }
 :root[data-theme] .btn.success { background:#167347;border-color:#46906b;color:#fff; }
 :root[data-theme] .btn.success:hover:not(:disabled) { background:#105c38;border-color:#80b99b; }
 /* «Опасная» — an ordinary button with the text in bad; filled bad only in «Что произойдёт» */
 :root[data-theme] .btn.danger { background:var(--surface);color:var(--bad);border-color:var(--line-strong); }
 :root[data-theme] .btn.danger:hover:not(:disabled) { background:var(--bad-bg);border-color:var(--bad); }
 :root[data-theme] .btn.primary.danger { background:var(--bad);color:var(--surface);border-color:var(--bad); }
 :root[data-theme] .btn.lime { background:var(--notice-bg);color:var(--notice-text);border-color:var(--notice-border); }
 :root[data-theme] .btn:disabled { opacity:.55;filter:none; }
 :root[data-theme] .icon-btn:hover { background:var(--surface-hover); }
 :root[data-theme] .icon-btn.danger { color:var(--red); }
 :root[data-theme] :is(.text-link,.product-link,details>summary) { color:var(--accent); }
 :root[data-theme] :is(.tabs,.list-rule,.list-tools,.demand-source,.list-check-options,.repair-device-fields,.editor-toolbar,.doc-editor-toolbar,.doc-custom-row,.transfer-place-picker) {
  background:var(--surface-2);border-color:var(--line);color:var(--text);
 }
 :root[data-theme] :is(.tabs button.active,.settings-nav button.active) {
  background:var(--surface);color:var(--accent);box-shadow:inset 0 0 0 1px var(--input-border);
 }
 :root[data-theme] :is(th,.bulk-table th,.procurement-dialog .bulk-table th) { background:var(--surface-2);color:var(--muted);border-color:var(--line); }
 :root[data-theme] :is(td,.pakovia-data-list.dense-list td,.watch-item,.feed) { border-color:var(--line); }
 :root[data-theme] .pakovia-data-list.dense-list tbody tr:nth-child(odd) { background:var(--surface); }
 :root[data-theme] :is(tbody tr[data-open]:hover,.pakovia-data-list.dense-list tbody tr:hover) { background:var(--surface-hover); }
 :root[data-theme] :is(tr.line-dirty td,.order-item-dirty td) { background:var(--surface-selected); }
 :root[data-theme] :is(.warehouse-chip,.list-filter-chip,.profile-choice,.client-hits>button,.line-product-options,.line-product-options button,.task-inbox-item,.doc-variable-list button) {
  background:var(--surface);color:var(--text);border-color:var(--line);
 }
 :root[data-theme] :is(.warehouse-chip:hover,.list-filter-chip:hover,.profile-choice:hover,.client-hits>button:hover,.line-product-options button:hover,.line-product-options button[aria-selected=true],.task-inbox-item:hover,.doc-variable-list button:hover) { background:var(--surface-hover); }
 :root[data-theme] .warehouse-chip b { color:var(--text); }
 :root[data-theme] .doc-image-controls { background:var(--surface-2);color:var(--text);border-color:var(--line); }
 :root[data-theme] :is(.inline-note,.notice,.rate-note,.purchase-rate-summary,.demand-actions,.inbound-note,.freight-parcel-panel,.inbound-receipt-result) {
  background:var(--notice-bg);color:var(--notice-text);border-color:var(--notice-border);
 }
 :root[data-theme] :is(.rate-note small,.demand-actions>span,.freight-parcel-panel .muted) { color:var(--notice-text); }
 :root[data-theme] :is(.integrity,.purchase-sku-entry.received) { background:var(--success-bg);color:var(--success-text);border-color:var(--success-border); }
 :root[data-theme] .integrity :is(h3,p) { color:var(--success-text); }
 :root[data-theme] .integrity.error :is(h3,p) { color:var(--error-text); }
 :root[data-theme] .integrity.integrity-idle { background:var(--surface-2);color:var(--ink-2);border-color:var(--line); }
 :root[data-theme] .integrity.integrity-idle :is(h3,p) { color:var(--ink-2); }
 :root[data-theme] :is(.integrity.error,.rate-note.error,.form-error:not(:empty),.bulk-problems) { background:var(--error-bg);color:var(--error-text);border-color:var(--error-border); }
 :root[data-theme] .field-error,:root[data-theme] form.was-validated :is(input,select,textarea):invalid { background:var(--error-bg)!important;color:var(--error-text)!important;border-color:var(--error-border)!important; }
 :root[data-theme] .field-error-text { color:var(--error-text)!important; }
 :root[data-theme] .badge:not(.status-color-badge) { background:var(--surface-2);color:var(--text); }
 :root[data-theme] .badge.green { background:var(--success-bg);color:var(--success-text); }
 :root[data-theme] .badge:is(.blue,.dark) { background:var(--notice-bg);color:var(--notice-text); }
 :root[data-theme] .badge.orange { background:var(--warning-bg);color:var(--warning-text); }
 :root[data-theme] .badge.red { background:var(--error-bg);color:var(--error-text); }
 :root[data-theme] :is(.watch-icon,.avatar,.brand-mark,.order-comment-avatar) { background:var(--notice-bg);color:var(--notice-text); }
 :root[data-theme] .bar { background:var(--surface-2); }
 :root[data-theme] .purchase-stats { background:var(--surface);border-color:var(--line);box-shadow:var(--theme-shadow); }
 :root[data-theme] .purchase-sku-entry { background:var(--surface-2);border-color:var(--line); }
 :root[data-theme] :is(.purchase-detail-meta b,.purchase-stat strong,.procurement-dialog .bulk-total,.procurement-dialog .bulk-toolbar>span) { color:var(--text); }
 :root[data-theme] :is(.order-fold,.order-fold>summary,.order-workspace .panel-head,.order-finance-footer,.order-activity .order-comment-composer,.order-workspace .order-lock-note) { background:var(--surface-2);color:var(--text);border-color:var(--line); }
 :root[data-theme] :is(.role-master-option,.role-permission-group>summary) { background:var(--surface-2);color:var(--text);border-color:var(--line); }
 :root[data-theme] .role-permission-option { border-bottom-color:var(--line); }
 :root[data-theme] :is(.exchange-providers>section,.inbound-goods-row,.inbound-sku-option) { background:var(--surface);border-color:var(--line); }
 :root[data-theme] :is(.inbound-sku-option:has(input:checked),.inbound-goods-row:has([data-inbound-goods-check]:checked)) { background:var(--surface-selected); }
 :root[data-theme] :is(.order-lock-note,.order-comment-time,.doc-variable-list code,.warehouse-tile small,.workflow-tile>span) { color:var(--muted); }
 :root[data-theme] .unit-usd { color:var(--accent)!important; }
 :root[data-theme] .cost-incomplete { color:var(--warning-text); }
 :root[data-theme] .footnote { color:var(--muted); }
 /* Attendance keeps its semantic colors and visible day boundaries. */
 :root[data-theme] .attendance-calendar :is(thead th,.attendance-person,tbody .attendance-day,tbody .attendance-balance) { background:var(--surface);color:var(--text);border-color:var(--line); }
 :root[data-theme] .attendance-calendar :is(thead .attendance-person,.attendance-day.is-weekend) { background:var(--surface-2); }
 :root[data-theme] .attendance-calendar :is(thead .attendance-day.is-today,.attendance-available,tbody .attendance-available) { background:var(--notice-bg);color:var(--notice-text); }
 :root[data-theme] .attendance-calendar tbody tr:hover :is(.attendance-person,.attendance-balance) { background:var(--surface-hover); }
 :root[data-theme] :is(.attendance-work,.attendance-vacation) { background:var(--success-bg);color:var(--success-text);border-color:var(--success-border); }
 :root[data-theme] :is(.attendance-sick,.attendance-absent) { background:var(--error-bg);color:var(--error-text);border-color:var(--error-border); }
 :root[data-theme] :is(.attendance-period-preview,.people-role-labels span) { background:var(--surface-2);color:var(--text); }
 /* Mobile chrome and row disclosures use the same surfaces as desktop. */
 :root[data-theme] :is(.mobile-action-tile,.mobile-freight-choice) { background:var(--surface-2);border-color:var(--line);color:var(--text); }
 :root[data-theme] :is(.mobile-action-copy>small,.mobile-section-link>svg,.mobile-freight-choice small) { color:var(--muted); }
 :root[data-theme] :is(.mobile-action-icon,.mobile-section-link[aria-current=page]) { background:var(--notice-bg);color:var(--notice-text); }
 :root[data-theme] :is(.mobile-action-tile:hover,.mobile-freight-choice:hover,.mobile-section-link:hover) { background:var(--surface-hover); }
 :root[data-theme] .mobile-sheet-handle { background:var(--input-border); }
 @media(max-width:800px) {
  :root[data-theme] body.mobile-app-ready :is(.topbar,.modal-foot,.mobile-bottom-nav) { background:var(--surface);border-color:var(--line); }
  :root[data-theme] body.mobile-app-ready .mobile-nav-item { color:var(--muted); }
  :root[data-theme] body.mobile-app-ready .mobile-nav-item.active { color:var(--accent);background:var(--surface-2); }
  :root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr[data-mobile-row] { background:var(--surface);border-color:var(--line); }
  :root[data-theme] body.mobile-app-ready .mobile-row-toggle { background:var(--surface-2);color:var(--accent); }
  :root[data-theme] body.mobile-app-ready .mobile-disclosure-table>tbody>tr.bulk-selected { background:var(--surface-selected); }
 }
 @media(min-width:801px) { :root[data-theme] .workspace>.topbar { background:var(--bg); } }
 :root[data-theme] .bulk-toolbar:has([data-bulk-choice]:disabled):has([data-bulk-notice][hidden]) { display:none; }
 /* Shared surfaces: clear dividers, folder tabs and round dismiss controls. */
 :root[data-theme] :is(.panel,.orders-register-results,.warehouse-tile,.workflow-tile) { border-radius:14px; }
 :root[data-theme] .panel-head { padding:16px 18px;background:var(--surface); }
 :root[data-theme] .panel-head h2 { font-size:16px;font-weight:750; }
 /* Order and repair cards share a header size, with or without actions. */
 :root[data-theme] .order-workspace .panel-head { min-height:64px;padding:8px 18px;align-items:center;flex-wrap:nowrap; }
 :root[data-theme] .order-workspace .panel-head>.btn { white-space:normal;line-height:1.25; }
 :root[data-theme] .order-workspace .workflow-tile { background:transparent;border:0;border-radius:0;box-shadow:none; }
 :root[data-theme] .btn { border-radius:var(--r-md); }
 :root[data-theme] .supplier-input-group>select:not(:only-child) { border-right:0;border-radius:8px 0 0 8px; }
 :root[data-theme] .supplier-input-group>.supplier-add { margin-left:0;border-radius:0 8px 8px 0;background:var(--surface-2);color:var(--muted); }
 :root[data-theme] .supplier-input-group>.supplier-add:hover:not(:disabled) { background:var(--nav-selected);color:var(--text);border-color:var(--input-border); }
 :root[data-theme] .badge { border-radius:20px;font-weight:650; }
 /* The People section's folder tabs are shared by every section and mode switch. */
 :root[data-theme] .tabs {
  display:flex;align-items:stretch;flex-wrap:nowrap;gap:2px;min-width:0;max-width:100%;padding:0;border:0;border-radius:0;
  background:linear-gradient(var(--line),var(--line)) left bottom / 100% 1px no-repeat var(--bg);box-shadow:none;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;
 }
 /* no scroll bar in a strip: it would stand between a tab and its window; the strip moves by touch, by the wheel and keeps
    its active tab in view (mobileRevealSectionTab) */
 :root[data-theme] .tabs::-webkit-scrollbar { display:none; }
 :root[data-theme] .tabs>button {
  flex:none;min-height:46px;margin:0;padding:11px 17px;border:1px solid transparent;border-bottom-color:var(--line);
  border-radius:9px 9px 0 0;background:transparent;color:var(--muted);font-size:13px;font-weight:550;line-height:1.4;white-space:nowrap;box-shadow:none;
 }
 :root[data-theme] .tabs>button:hover:not(.active):not(:disabled) { background:var(--surface-hover);color:var(--text); }
 :root[data-theme] .tabs>button.active { border-color:var(--line);border-bottom-color:var(--surface);background:var(--surface);color:var(--text);font-weight:700;box-shadow:none; }
 :root[data-theme] .tabs.document-settings-tabs { padding:12px 20px 0; }
 /* A tab is the top of its window (docs/TABS.md). The folder look belongs only to a strip that stands there — first in a
    tab window, in the head of a panel or in the body of a dialog: right under it stands the surface it switches, with
    nothing of the backdrop between them. Any other strip — a choice in a toolbar or in a filter panel — switches no
    window, so it is not drawn as a tab: it takes the look of the segments of the rules (ui-foundation.css) and ends
    where it stands. A strip put anywhere else by mistake is therefore whole, not cut. */
 :root[data-theme] .tabs:is(.list-scope,.ebay-subtabs),
 :root[data-theme] .tabs:where(:not(.section-tabs-workspace>.tabs,.section-tabs-workspace>:is(.inventory-section-header,.doc-editor-switch)>.tabs,.panel-head>.tabs,.modal-body>.tabs)) {
  display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-1);width:fit-content;max-width:100%;margin:0;padding:var(--space-1);
  border:0;border-radius:var(--r-md);background:var(--surface-2);overflow:visible;
 }
 :root[data-theme] .tabs:is(.list-scope,.ebay-subtabs)>button,
 :root[data-theme] .tabs:where(:not(.section-tabs-workspace>.tabs,.section-tabs-workspace>:is(.inventory-section-header,.doc-editor-switch)>.tabs,.panel-head>.tabs,.modal-body>.tabs))>button {
  flex:none;min-height:calc(var(--control-h) - 2 * var(--space-1));padding:0 var(--space-4);border:0;border-radius:var(--r-sm);
  background:none;color:var(--ink-2);font:var(--text-label);white-space:nowrap;
 }
 :root[data-theme] .tabs:is(.list-scope,.ebay-subtabs)>button.active,
 :root[data-theme] .tabs:where(:not(.section-tabs-workspace>.tabs,.section-tabs-workspace>:is(.inventory-section-header,.doc-editor-switch)>.tabs,.panel-head>.tabs,.modal-body>.tabs))>button.active { background:var(--primary);color:var(--on-primary);font:var(--text-label); }
 :root[data-theme] .tabs:is(.list-scope,.ebay-subtabs)>button:hover:not(.active):not(:disabled),
 :root[data-theme] .tabs:where(:not(.section-tabs-workspace>.tabs,.section-tabs-workspace>:is(.inventory-section-header,.doc-editor-switch)>.tabs,.panel-head>.tabs,.modal-body>.tabs))>button:hover:not(.active):not(:disabled) { background:var(--surface);color:var(--ink); }
 /* The strip is the last thing before its window: nothing stands between them and the window begins at once. When the
    row of a strip does not fit, what shares the row (a button, a select) goes above the strip, never under it. */
 :root[data-theme] .section-tabs-workspace>:is(.tabs,.inventory-section-header,.doc-editor-switch) { margin-bottom:0; }
 :root[data-theme] .section-tabs-workspace>:is(.tabs,.inventory-section-header,.doc-editor-switch)+* { margin-top:0; }
 :root[data-theme] .section-tabs-workspace>.doc-editor-switch { flex-wrap:wrap-reverse; }
 /* Two levels in one panel: the strip in the head switches everything under the head, so the strip under it stands on the
    same surface, not on a band of the backdrop. */
 :root[data-theme] .panel:has(>.panel-head>.tabs) .settings-tabs-workspace>.tabs { background:linear-gradient(var(--line),var(--line)) left bottom / 100% 1px no-repeat var(--surface); }
 /* A folder tab and its complete panel share one surface, including the tools. */
 :root[data-theme] :is(.section-tab-content,.settings-tabs-workspace,[role=tabpanel]) { background:var(--surface); }
 :root[data-theme] .section-tab-content :is(.list-tools,.list-filter-panel,.list-rule,.list-check-options,.list-config-title,.demand-actions) { background:var(--surface); }
 :root[data-theme] .settings-tabs-workspace { margin-bottom:0; }
 :root[data-theme] .settings-tabs-workspace>.tabs { padding:12px 20px 0; }
 :root[data-theme] .settings-tabs-workspace>.section-tab-content { padding:0;border:0;border-radius:0; }
 :root[data-theme] .settings-tabs-workspace .setting-card { background:var(--surface); }
 .warehouse-settings-workspace { min-width:0; }
 .settings-grid>.panel:has(>.warehouse-settings-workspace) { min-width:0; }
 .warehouse-settings-location-head { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line); }
 .warehouse-settings-location-head h3 { margin:0;font-size:14px; }
 .warehouse-settings-locations .setting-card { padding-top:13px;padding-bottom:13px; }
 .warehouse-settings-workspace .setting-card>div:first-child { min-width:0;overflow-wrap:anywhere; }
 .warehouse-settings-workspace .actions { flex-wrap:wrap;flex-shrink:0; }
 @media(max-width:600px) { .warehouse-settings-workspace .setting-card { flex-wrap:wrap;gap:10px;padding-left:16px;padding-right:16px; }.warehouse-settings-location-head { padding-left:16px;padding-right:16px;flex-wrap:wrap; } }
 :root[data-theme] .doc-editor-switch { align-items:end;gap:0;margin:0;background:var(--bg); }
 :root[data-theme] .doc-editor-switch>.tabs { flex:1; }
 :root[data-theme] .doc-editor-switch>label { align-self:stretch;margin:0;padding:6px 10px;border-bottom:1px solid var(--line); }
 :root[data-theme] .doc-editor-content { padding:14px; }
 :root[data-theme] .doc-editor-content :is(.doc-editor-toolbar,.doc-image-toolbar,.doc-image-controls,.doc-rich-editor,.doc-source-editor) { background:var(--surface);color:var(--text); }
 :root[data-theme] .doc-editor-content>.modal-hint { margin-top:12px; }
 :root[data-theme] .list-filter-panel:has(>.tabs.list-scope) { background:var(--surface); }
 :root[data-theme] .list-filter-panel>.tabs.list-scope { margin:0;border-bottom:0; }
 :root[data-theme] .list-filter-panel>.tabs.list-scope~* { background:var(--surface); }
 :root[data-theme] .orders-register-page>.toolbar:empty { display:none; }
 :root[data-theme] .orders-register-results>.order-register-actions { justify-content:flex-end;padding:12px 18px; }
 :root[data-theme] .orders-register-results>.list-tools { background:var(--surface); }
 :root[data-theme] .orders-register-results .list-tools-top { display:flex;align-items:center;flex-wrap:nowrap;gap:10px; }
 :root[data-theme] .orders-register-results .list-tools-top>.list-search { flex:1;min-width:140px;max-width:none; }
 :root[data-theme] .orders-register-results .list-search input { min-height:44px;padding:10px 13px;font-size:14px; }
 :root[data-theme] .orders-register-results .list-tools-top>[data-list-count] { display:none; }
 :root[data-theme] .order-register-actions { flex:none;flex-wrap:nowrap;gap:10px; }
 :root[data-theme] .order-register-actions>.btn { min-height:44px; }
 :root[data-theme] .manufacture-history .panel-head p { margin:6px 0 0;font-size:12px; }
 :root[data-theme] :is(.manufacture-history-search,.manufacture-history-status) { padding:12px 18px;margin:0; }
 :root[data-theme] .manufacture-history-status:empty { display:none; }
 :root[data-theme] [data-manufacture-retry]:not([hidden]) { margin:0 18px 16px; }
 @media(max-width:800px) {
  :root[data-theme] .orders-register-results .list-tools-top { flex-wrap:wrap; }
  :root[data-theme] .orders-register-results .list-tools-top>.list-search { min-width:0;flex-basis:calc(100% - 140px); }
  :root[data-theme] .order-register-actions { margin-left:auto; }
  :root[data-theme] .doc-editor-switch>label { width:100%;border:1px solid var(--line);border-top:0;background:var(--surface); }
 }
 :root[data-theme] :is(.modal-head,.mobile-sheet-heading)>.icon-btn { width:var(--icon-btn);height:var(--icon-btn);align-items:center;justify-content:center;border-radius:var(--r-full);background:var(--nav-selected);color:var(--text);flex:none; }
 :root[data-theme] .modal-head h2 { font-size:19px;font-weight:800;letter-spacing:-.3px; }
 :root[data-theme] .mobile-action-tile { min-height:112px;padding:16px;gap:8px;border-radius:12px; }
 :root[data-theme] .mobile-action-tile>.mobile-action-icon { display:none; }
 :root[data-theme] .mobile-action-copy>strong { font-size:16px;font-weight:750; }
 :root[data-theme] .mobile-action-copy>small { font-size:13px;line-height:1.5; }
 :root[data-theme] .mobile-nav-create { color:var(--action-text);border:1px solid var(--action-border);box-shadow:none; }
 @media(max-width:800px) {
  :root[data-theme] body.mobile-app-ready .content { background:var(--bg); }
  :root[data-theme] .tabs>button { min-height:44px;padding:11px 14px; }
  :root[data-theme] body.mobile-app-ready .tabs button { min-height:44px; }
  :root[data-theme] body.mobile-simple .tabs button { min-height:52px; }
  :root[data-theme] body.mobile-app-ready .mobile-nav-item.active { background:transparent; }
  :root[data-theme] body.mobile-app-ready .topbar { background:var(--bg); }
  :root[data-theme] body.mobile-app-ready .top-tools .profile { padding:4px;border:0;background:transparent; }
  :root[data-theme] .mobile-action-tile { min-height:116px;padding:14px; }
  :root[data-theme] body.mobile-simple .mobile-action-tile { min-height:140px; }
 }
 /* The stealth control is intentionally visually inert in either theme. */
 :root[data-theme] .demo-label .company-view-toggle:is(:hover,:focus,:focus-visible,:active) { background:transparent;box-shadow:none;outline:none; }
 /* Document content is paper, independently of the surrounding application. */
 :root[data-theme] :is(.document-editor,.doc-rich-editor,.doc-source-editor,.document-preview) { background:#fff;color:#142238;color-scheme:light; }
 :root[data-theme] :is(.document-editor,.doc-rich-editor,.document-preview) :is(td,th) { color:#142238;border-color:#b8c5d1;background:#fff; }
 :root[data-theme] :is(.document-editor,.doc-rich-editor,.document-preview) th { background:#edf1f5; }
 :root[data-theme] :is(.document-editor,.doc-rich-editor,.document-preview) :is(small,.muted) { color:#526277; }
 :root[data-theme] :is(.order-document-preview-frame,#doc-preview-frame,#doc-generation-frame,.template-content iframe) { background:#fff;color-scheme:light; }
}
@media print { :root { color-scheme:light!important; } }

/* Country tabs share the warehouse panel header; warehouse tabs remain below. */
.settings-grid>.panel:has(.warehouse-settings-country-tabs)>.panel-head{align-items:flex-end;flex-wrap:wrap;gap:10px 20px;padding-bottom:0}
.settings-grid>.panel:has(.warehouse-settings-country-tabs)>.panel-head>h2{align-self:center;margin-bottom:12px}
/* to the right of the heading while it fits; a strip that does not fit begins at its first tab and moves — pushed to the right
   by its end, the first tabs would be out of reach */
:root[data-theme] .tabs.warehouse-settings-country-tabs{flex:1;justify-content:flex-start;min-width:180px;background:transparent}
:root[data-theme] .tabs.warehouse-settings-country-tabs>button:first-child{margin-left:auto}
:root[data-theme] .warehouse-settings-country-tabs>button{min-height:42px;padding:9px 15px}
@media(max-width:600px){:root[data-theme] .tabs.warehouse-settings-country-tabs{flex-basis:100%;justify-content:flex-start}:root[data-theme] .tabs.warehouse-settings-country-tabs>button:first-child{margin-left:0}.settings-grid>.panel:has(.warehouse-settings-country-tabs)>.panel-head>h2{margin-bottom:0}}
/* Owner, 24.11.2026 17:40: «Добавить склад» stood lower than «Склады»; the country tabs were crossed by a line and each had
   an underline of its own; «сделай вкладку страны с небольшим затемнением… вкладка страны с продолжением её области снизу
   должна быть немного чуть более темного оттенка». The heading, its button and the tabs share one middle line; one line
   under the head, open under the chosen country; the chosen country and the band of warehouse tabs it opens are a shade
   darker than the white around them, the chosen warehouse opens white into its card. */
.settings-grid>.panel:has(.warehouse-settings-country-tabs)>.panel-head{align-items:center}
.settings-grid>.panel:has(.warehouse-settings-country-tabs)>.panel-head>h2{margin-bottom:0}
:root[data-theme] .tabs.warehouse-settings-country-tabs{align-self:flex-end;position:relative;z-index:1;margin-bottom:-1px}
:root[data-theme] .tabs.warehouse-settings-country-tabs>button{border-color:transparent}
:root[data-theme] .tabs.warehouse-settings-country-tabs>button.active{border-color:var(--line);border-bottom-color:var(--surface-2);background:var(--surface-2)}
:root[data-theme] .panel:has(>.panel-head>.warehouse-settings-country-tabs) .warehouse-settings-workspace>.tabs{background:linear-gradient(var(--line),var(--line)) left bottom / 100% 1px no-repeat var(--surface-2)}


/* plugins.css */
.plugins-workspace{padding:20px;min-width:0}
.plugins-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.plugins-intro p{font-size:16px;font-weight:700;margin:0 0 4px}
.plugins-intro small,.plugin-category{color:var(--muted);line-height:1.5}
.plugins-intro>.btn{flex:none}
.plugin-tabs{display:flex;border-bottom:1px solid var(--line);gap:4px;margin-bottom:20px}
.plugin-tab{display:flex;gap:8px;align-items:center;justify-content:center;padding:12px 18px;min-height:44px;border:0;border-bottom:3px solid transparent;background:transparent;font:inherit;font-weight:650;color:var(--muted);cursor:pointer}
.plugin-tab.active{color:var(--accent);border-bottom-color:var(--accent)}
.plugin-tab>span{border-radius:14px;padding:1px 7px;background:var(--surface-2);font-size:12px;font-weight:600}
.plugins-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;align-items:stretch}
.plugin-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:18px;gap:14px}
.plugin-card-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.plugin-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:11px;color:var(--accent);background:var(--surface-selected);font-size:14px;font-weight:800;letter-spacing:-.04em}
.plugin-card-title{flex:1;min-width:140px}
.plugin-card-title h3{font-size:16px;line-height:1.35;margin:0 0 2px;overflow-wrap:anywhere}
.plugin-category{font-size:12px}
.plugin-status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:var(--surface-2);color:var(--muted);font-size:11px;line-height:1.4;font-weight:700;padding:5px 9px;white-space:nowrap}
.plugin-status.enabled{background:var(--success-bg);color:var(--success-text)}
.plugin-status.draft{background:var(--warning-bg);color:var(--warning-text)}
.plugin-status.enabled::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.plugin-description{font-size:13px;line-height:1.65;color:var(--muted);margin:0;overflow-wrap:anywhere}
.plugin-draft-note{font-size:12px;line-height:1.5;margin:0;padding:10px 12px;border-radius:8px;background:var(--surface-2);color:var(--muted)}
.plugin-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:8px}
.plugin-library-installed{color:var(--muted);font-size:12px;font-weight:600;margin-right:auto}
.plugin-card-actions .plugin-remove{margin-left:auto;border-color:transparent;background:transparent;color:var(--red)}
.plugin-card-actions .plugin-remove:hover{border-color:var(--error-border);background:var(--error-bg)}
.plugins-preserve-note{display:flex;gap:8px;align-items:flex-start;margin:20px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.plugins-preserve-note svg{width:16px;height:16px;flex:none;margin-top:2px}
.plugins-empty{padding:32px 20px;text-align:center;line-height:1.6;color:var(--muted)}
.plugins-error{margin:0 0 16px}
.plugin-dialog{width:min(680px,calc(100vw - 32px));max-width:680px}
.plugin-dialog .modal-body{display:flex;flex-direction:column;gap:16px;padding:22px}
.plugin-dialog .modal-body>p{margin:0;line-height:1.65}
.plugin-dialog .modal-body>label{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
.plugin-dialog .modal-body input,.plugin-dialog .modal-body select,.plugin-dialog .modal-body textarea{width:100%;min-width:0}
.plugin-dialog .modal-body textarea{resize:vertical;max-height:70vh}
.plugin-dialog .modal-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.plugin-dialog .modal-foot>.form-error{flex:1 1 220px;margin:0;text-align:left}
.plugin-dialog-notice{padding:14px;border:1px solid var(--line);background:var(--surface-2);border-radius:10px;font-size:13px;line-height:1.6}
.plugin-capabilities{margin:0;padding-left:20px;font-size:13px;line-height:1.7;color:var(--muted)}
.plugin-config-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
.plugin-token-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:700px){.plugins-workspace{padding:14px}.plugins-intro{align-items:flex-start}.plugins-intro p{font-size:15px}.plugins-intro small{font-size:12px}.plugin-tabs{margin-bottom:14px}.plugin-tab{flex:1;padding:10px 8px;font-size:13px}.plugin-card{padding:14px;gap:12px}.plugin-card-actions .btn{min-height:40px}.plugin-dialog{width:calc(100vw - 20px)}.plugin-dialog .modal-body{padding:16px}.plugin-dialog .modal-foot>.form-error:not(:empty){flex-basis:100%}.plugin-card-title{min-width:120px}}
/* The assistant's knowledge of the system, in its settings. */
.plugin-knowledge{display:flex;flex-direction:column;gap:10px;padding-top:6px;border-top:1px solid var(--line)}
.plugin-knowledge h3{margin:10px 0 0;font-size:15px}
.plugin-knowledge h4{margin:14px 0 6px;font-size:13px}
.plugin-knowledge .plugin-config-summary strong{text-align:right;font-weight:600}
.plugin-knowledge-nodes{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.plugin-knowledge-nodes li{display:inline-flex;align-items:baseline;gap:6px;padding:4px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);font-size:12px;line-height:1.4}
.plugin-knowledge-nodes small{color:var(--muted);font-variant-numeric:tabular-nums}
.plugin-knowledge-text{font-size:12px}
.plugin-knowledge-text pre{max-height:340px;margin:0;padding:12px;overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}

/* where a plugin works */
.plugin-countries{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:13px;line-height:1.5;color:var(--text)}
.plugin-countries svg{flex:0 0 16px;width:16px;height:16px;margin-top:2px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.plugin-countries span{overflow-wrap:anywhere}
.plugin-dialog .modal-body label.plugin-country{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:40px;font-size:14px;cursor:pointer}
.plugin-dialog .modal-body label.plugin-country input{width:18px;height:18px;min-width:18px;flex:0 0 18px;margin:0;padding:0}
.plugin-country-all{font-weight:600;padding-bottom:8px;border-bottom:1px solid var(--line)}
.plugin-country-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:2px 16px;padding:8px 0}
.plugin-country-list.disabled{opacity:.5}
.plugin-dialog-notice .btn.small{margin-left:8px}
/* groups of plugins by category */
.plugin-group{display:grid;gap:10px;margin:0 0 22px}
.plugin-group-title{display:flex;align-items:center;gap:8px;margin:4px 0 0;font-size:1rem}
.plugin-group-title span{font-size:.75rem;font-weight:600;color:var(--muted,#687279);background:#eaf0f4;border-radius:999px;padding:2px 8px}
.plugin-group-hint{margin:0;font-size:.8rem;color:var(--muted,#687279);line-height:1.5}


/* messenger-links.css */
.messenger-links{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;vertical-align:middle}
.messenger-link{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:2px 7px;border:1px solid var(--line,#ccd6e6);border-radius:6px;background:var(--card,#fff);font-family:inherit;font-size:11px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap}
.messenger-link.messenger-viber{color:#7250aa}.messenger-link.messenger-whatsapp{color:#167448}.messenger-link.messenger-telegram{color:#127da8}
.messenger-link:hover{background:var(--surface,#f1f4fa)}.messenger-link:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.messenger-link[aria-disabled=true]{opacity:.45;cursor:default}
.messenger-phone-entry{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%}
.messenger-phone-entry>.client-phone-number{flex:1 1 145px;width:auto;min-width:0}
.messenger-phone-entry>.messenger-phone-actions{display:inline-flex;flex:0 0 auto;max-width:100%;margin-left:auto;line-height:1}
.detail-meta .messenger-links{margin-left:8px}
.order-contacts .messenger-links{display:flex;margin:4px 0 0;gap:4px}
.order-contacts .messenger-link{padding:2px 5px;font-size:10px}
[data-theme=dark] .messenger-link{background:var(--panel,#1a2638);border-color:#3c4d65}
[data-theme=dark] .messenger-viber{color:#c4a6f0}[data-theme=dark] .messenger-whatsapp{color:#71d69e}[data-theme=dark] .messenger-telegram{color:#72c7ee}
@media(pointer:coarse){.messenger-link{min-height:32px;padding:3px 9px}}
.messenger-links.messenger-icons{gap:3px}
.messenger-links.messenger-icons .messenger-link{width:32px;min-width:32px;height:32px;min-height:32px;padding:4px;flex-shrink:0}
.messenger-icons svg{display:block;width:20px;height:20px;flex-shrink:0}


/* product-components.css */
.product-components-editor{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0;background:var(--surface)}
.product-components-editor[hidden]{display:none!important}
.product-components-editor legend{padding:0 6px;font-weight:750;color:var(--text)}
.product-components-head,.product-component-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 40px;gap:10px;align-items:center}
.product-components-head{color:var(--muted);font-size:13px;margin-bottom:8px}
.product-component-row{margin-bottom:10px}
.product-component-row label{min-width:0;margin:0}
.product-component-row input{width:100%;min-width:0}
.product-component-row .icon-btn{width:40px;height:40px}
.product-components-legacy{margin:12px 0 20px;padding:12px 14px;background:var(--bg);border:1px solid var(--line);border-radius:10px}
.product-components-legacy summary{cursor:pointer;font-weight:650}
.product-components-legacy label{margin-top:10px}
@media(max-width:600px){.product-components-editor{padding:10px}.product-component-row,.product-components-head{grid-template-columns:minmax(0,1fr) 78px 36px;gap:6px}.product-components-head{font-size:12px}.product-component-row .icon-btn{width:36px;height:44px}}


/* stock-kits.css */
.stock-kit-dialog{width:min(900px,calc(100% - 24px));max-width:900px}
.stock-kit-dialog .modal-body{display:grid;gap:16px}
.stock-kit-dialog .modal-body>section{min-width:0}
.stock-kit-dialog h3{font-size:14px;margin:0 0 8px}
.stock-kit-place-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stock-kit-dialog label{min-width:0;margin:0}
.stock-kit-dialog input:not([type=hidden]),.stock-kit-dialog select,.stock-kit-dialog .sku-picker-trigger{box-sizing:border-box;min-height:44px}
.stock-kit-dialog .stock-kit-place-row:has(label[hidden]){grid-template-columns:minmax(0,1fr)}
.stock-kit-output,.stock-kit-output-head{display:grid;grid-template-columns:minmax(0,1fr) 115px 36px;gap:10px;align-items:center}
.stock-kit-output{margin:8px 0}
.stock-kit-output-head{font-size:12px;color:var(--muted)}
.stock-kit-output .icon-btn{width:36px;min-height:44px}
.stock-kit-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.stock-kit-preview-status{font-size:12px}
.stock-kit-preview-status:empty{display:none}
.stock-kit-output-actions{display:flex;align-items:stretch;justify-content:space-between;gap:12px;margin-top:8px}
.stock-kit-output-actions .btn{min-height:44px}
.stock-kit-output-actions>.muted{align-self:center}
.stock-kit-dialog .btn.stock-kit-calculate:not(:disabled){background:#0969b8;border-color:#0969b8;color:#fff}
.stock-kit-dialog .btn.stock-kit-calculate:hover:not(:disabled){background:#075797;border-color:#075797}
.stock-kit-preview{padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
.stock-kit-preview-head{font-size:13px;margin-bottom:10px}
.stock-kit-preview th,.stock-kit-preview td{padding:8px;font-size:12px}
.stock-kit-preview .modal-hint{margin:8px 0 0}
.stock-kit-preview[hidden],.stock-kit-dialog [hidden]{display:none}
@media(max-width:650px){.stock-kit-place-row{grid-template-columns:minmax(0,1fr)}.stock-kit-output,.stock-kit-output-head{grid-template-columns:minmax(0,1fr) 76px 30px;gap:6px}.stock-kit-output .icon-btn{width:30px}.stock-kit-dialog .sku-picker-row{margin:0}}
@media(max-width:650px){.stock-kit-output-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stock-kit-output-actions .btn{min-width:0;padding:8px;font-size:12px;white-space:normal}}


/* stock-scan-transfer.css */
.stock-scan-dialog{width:min(850px,calc(100% - 24px));max-width:850px}
.stock-scan-dialog .modal-body{display:grid;gap:14px}
.stock-scan-dialog .modal-body>section{min-width:0}
.stock-scan-source{display:flex;gap:10px;align-items:center;margin:0;font-size:13px}
.stock-scan-source>span{color:var(--muted)}
.stock-scan-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:8px}
.stock-scan-input-row label{margin:0;min-width:0}
.stock-scan-dialog input:not([type=hidden]),.stock-scan-dialog select,.stock-scan-input-row .btn{min-height:44px}
.stock-scan-status{font-size:12px;margin:0;color:var(--muted);overflow-wrap:anywhere}
.stock-scan-status:empty{display:none}
.stock-scan-status.error{color:var(--danger)}
.stock-scan-selection{border:1px solid var(--line);border-radius:10px;padding:12px}
.stock-scan-list-head{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:8px}
.stock-scan-list-head>span{color:var(--muted);white-space:nowrap}
.stock-scan-items{margin:0;padding:0;list-style:none;max-height:240px;overflow:auto}
.stock-scan-items>li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
.stock-scan-items>li>div{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.stock-scan-items small{font-size:11px;color:var(--muted)}
.stock-scan-items .icon-btn{flex:none;width:36px;height:36px}
.stock-scan-extra>summary{font-size:13px;color:var(--muted);cursor:pointer;padding:6px 0}
.stock-scan-extra .transfer-workflow{margin-top:10px}
.stock-scan-dialog [data-transfer-stock-summary]:empty{display:none}
@media(max-width:600px){.stock-scan-dialog .modal-body{padding:14px}.stock-scan-input-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.stock-scan-input-row .btn{font-size:12px;padding:8px}.stock-scan-input-row .btn svg{display:none}.stock-scan-dialog .modal-foot{flex-wrap:wrap}.stock-scan-dialog .modal-foot .btn[type=submit]{flex:1;white-space:normal}.stock-scan-items{max-height:200px}}
@media(max-width:800px){
 .stock-scan-input-row:has(.mobile-scan-trigger){grid-template-columns:minmax(0,1fr) auto}
 .stock-scan-input-row>.mobile-scan-trigger{grid-column:1/-1;justify-content:center;width:100%}
 .stock-scan-dialog .stock-scan-input-row>.mobile-scan-trigger svg{display:block;width:20px;height:20px}
 .stock-scan-dialog .stock-scan-items .icon-btn{width:44px;height:44px}
 .mobile-inventory-dialog [data-inventory-manual]{width:100%;justify-content:center}
}
.stock-scan-items small.scan-transfer-reserved{color:var(--warn)}


/* source-purchases.css */
.source-purchase-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.source-purchase-facts>div{min-width:0}.source-purchase-facts dt{color:var(--muted);font-size:.875rem}.source-purchase-facts dd{margin:4px 0 0;overflow-wrap:anywhere}@media(max-width:600px){.source-purchase-facts{grid-template-columns:1fr}}
/* owner's audit 26.11.2026: the product and its supplier together, without the empty lines between them */
html:root[data-theme] .source-purchase-head{display:grid;gap:var(--space-1)}
html:root[data-theme] .source-purchase-head>h3,html:root[data-theme] .source-purchase-head>p{margin:0}
html:root[data-theme] .source-purchase-head>p{color:var(--ink-2);font:var(--text-body)}
html:root[data-theme] .source-purchase-facts{gap:var(--space-3) var(--space-4);margin:var(--space-4) 0}


/* product-receipts.css */
.product-recent-receipts{grid-column:1/-1;margin:4px 0 18px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface,#fff)}
.product-recent-receipts h3{margin:0;padding:12px 14px;font-size:14px;border-bottom:1px solid var(--line)}
.product-recent-receipts table{width:100%;min-width:0;table-layout:auto}
.product-recent-receipts th,.product-recent-receipts td{padding:9px 14px;font-size:13px;white-space:normal}
.product-recent-receipts th:last-child,.product-recent-receipts td:last-child{text-align:right}
.product-recent-receipts .text-link{font-size:inherit}
.product-recent-receipts .muted,.product-recent-receipts [data-product-receipts-content]>button{margin:12px 14px}
.product-recent-receipts .product-all-receipts{display:block;margin:0;padding:12px 14px;border-top:1px solid var(--line);font-weight:600}
.receipt-unit-price{display:block;white-space:nowrap}
.product-receipts-page table{width:100%;min-width:0}
.product-receipts-page th,.product-receipts-page td{padding:12px 18px}
.product-receipts-page th:nth-child(n+3),.product-receipts-page td:nth-child(n+3){text-align:right}
@media(max-width:600px){.product-recent-receipts th,.product-recent-receipts td,.product-receipts-page th,.product-receipts-page td{padding:9px 10px;font-size:12px}.product-receipts-page td:nth-child(2){white-space:normal}}
.stock-receipt-dialog .modal-foot [data-stock-receipt-back]{margin:0;border:1px solid var(--line);background:var(--surface);padding:11px 15px;color:var(--text);text-align:center;text-decoration:none;white-space:normal}


/* stickers.css */
.document-settings-hint{padding:12px 20px 0;color:var(--muted)}
.sticker-print-dialog{width:min(940px,calc(100vw - 32px));height:min(640px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden}
.sticker-print-dialog>form{display:flex;flex-direction:column;height:100%;min-height:0}
.sticker-print-dialog .modal-head,.sticker-print-dialog .modal-foot{flex:none}
.sticker-print-dialog .modal-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:18px}
.sticker-preview-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);gap:24px;flex:1;min-height:0}
.sticker-preview-controls{display:flex;flex-direction:column;gap:18px;min-width:0;min-height:0;overflow:auto;padding:3px;overscroll-behavior:contain}
.sticker-preview-controls>label,.sticker-preview-controls>.modal-hint{margin:0}
.sticker-preview-controls [data-sticker-status],.sticker-preview-controls [data-location-sticker-status]{margin:0;color:var(--muted);font-size:.875rem;overflow-wrap:anywhere}
.sticker-preview-pane{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
.sticker-preview-pane>h3{margin:3px 0 0;font-size:.875rem;font-weight:550}
.sticker-preview-canvas{flex:1;min-height:0;overflow:auto;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--bg);overscroll-behavior:contain}
.sticker-preview-scroll{width:max-content;margin:0 auto;border:1px solid var(--line);background:white;box-shadow:0 2px 8px #172c4510}
.sticker-preview-frame{display:block;width:57mm;height:40mm;max-width:none;margin:0;border:0;border-radius:0;background:white}
.sticker-preview-scroll[hidden],.sticker-preview-frame[hidden]{display:none}
.sticker-print-dialog .actions{flex-wrap:wrap}
.sticker-print-dialog .doc-custom-values:empty{display:none}
.sticker-print-dialog .doc-custom-values{grid-template-columns:1fr}
.warehouse-settings-workspace .setting-card{flex-wrap:wrap;gap:10px}
.warehouse-settings-workspace .setting-card>.actions{min-width:0;max-width:100%;flex-shrink:1;justify-content:flex-end;margin-left:auto}
.warehouse-settings-workspace .setting-card>.actions>.btn{max-width:100%;white-space:normal;text-align:center;overflow-wrap:anywhere}
.doc-preview-toolbar label input[type=search]{margin-bottom:8px}.order-toolbar>.actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:650px){
 .sticker-print-dialog .modal-body{overflow:auto}
 .sticker-preview-row{display:flex;flex-direction:column;flex:none;gap:20px}
 .sticker-preview-controls{overflow:visible;flex:none}
 .sticker-preview-pane{height:320px;flex:none}
}

.sku-detail-dialog>.modal-head{justify-content:flex-start;gap:10px}
.sku-detail-heading{flex:1;min-width:0}
.sku-detail-heading h2,.sku-detail-heading small{overflow-wrap:anywhere}
.sku-detail-heading small{display:block;line-height:1.4}
.sku-detail-print{flex:none;margin-left:auto}
.sku-detail-dialog .sku-layout>aside{display:flex;flex-direction:column}
.sku-card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:20px}
.sku-card-actions:empty{display:none}
.sku-card-actions>.btn{flex:1}
.sku-card-actions>.modal-hint{flex-basis:100%;margin:0}
@media(max-width:600px){.sku-detail-dialog>.modal-head{flex-wrap:wrap}.sku-detail-heading{flex-basis:100%}}


/* stock-operations.css */
.stock-operations-table{width:100%;table-layout:fixed}
.stock-operations-table th:first-child{width:12%}
.stock-operations-table th:nth-child(2){width:14%}
.stock-operations-table th:nth-child(3),.stock-operations-table th:nth-child(4){width:21%}
.stock-operations-table th:nth-child(5),.stock-operations-table th:nth-child(6){width:16%}
.stock-operations-table td{vertical-align:top;overflow-wrap:anywhere;white-space:normal}
.stock-operation-summary{display:grid;gap:8px}
.stock-operation-summary>div{display:grid;gap:3px}
.stock-operation-summary .product-link{text-align:left;white-space:normal}
/* a long name wraps inside its column (check 25.11.2026: TR-104 ran over «Оприходовано / куда» and «Склад / локация») */
html:root[data-theme] .stock-operation-summary .product-link{display:inline;max-width:100%;height:auto;min-height:0;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-align:left}
.stock-operation-summary small{margin:0}
.stock-operation-places{display:grid;gap:5px}
.stock-operation-dialog,.stock-receipt-dialog:has(.stock-operation-detail){width:min(1120px,calc(100vw - 32px))}
.stock-operation-detail{min-width:0;display:grid;gap:14px}
.stock-operation-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px 20px;padding:14px 16px;margin:0;background:var(--surface-2);border:1px solid var(--line);border-radius:10px}
.stock-operation-facts>div{min-width:0}
.stock-operation-facts dt,.stock-operation-basis>span{font-size:11px;line-height:1.4;color:var(--muted)}
.stock-operation-facts dd{margin:4px 0 0;font-size:13px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}
.stock-operation-basis{display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px;align-items:baseline;padding:0 2px}
.stock-operation-basis p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.stock-operation-notes{display:grid;gap:4px;color:var(--muted);font-size:12px;line-height:1.4}
.stock-operation-notes p{margin:0}
.stock-operation-section{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.stock-operation-section-head{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:11px 14px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.stock-operation-section-head h3{margin:0;font-size:14px;line-height:1.4}
.stock-operation-section-head>span{font-size:11px;color:var(--muted);white-space:nowrap}
.stock-operation-table-wrap{overflow-x:auto;min-width:0}
.stock-operation-lines-table{width:100%;table-layout:fixed;border-collapse:collapse}
.stock-operation-lines-table th,.stock-operation-lines-table td{padding:9px 12px;font-size:12px;line-height:1.45;vertical-align:top;overflow-wrap:anywhere;white-space:normal;border-bottom:1px solid var(--line)}
.stock-operation-lines-table th{font-size:11px;font-weight:650;color:var(--muted);background:var(--surface)}
.stock-operation-lines-table tr:last-child td{border-bottom:0}
.stock-operation-lines-table th:first-child{width:34%}
.stock-operation-lines-table th:nth-child(2){width:23%}
.stock-operation-lines-table th:nth-child(3){width:10%;text-align:right}
.stock-operation-lines-table th:nth-child(4){width:33%}
.stock-operation-lines-table.has-cost th:first-child{width:28%}
.stock-operation-lines-table.has-cost th:nth-child(2){width:17%}
.stock-operation-lines-table.has-cost th:nth-child(3){width:7%}
.stock-operation-lines-table.has-cost th:nth-child(4){width:22%}
.stock-operation-lines-table.has-cost th:nth-child(5),.stock-operation-lines-table.has-cost th:nth-child(6){width:13%;text-align:right}
.stock-operation-lines-table :is(.stock-line-qty,.stock-line-price,.stock-line-total){text-align:right;font-variant-numeric:tabular-nums}
.stock-operation-lines-table .stock-line-total{font-weight:650}
.stock-operation-lines-table small{display:block;margin:3px 0 0;font-size:10px;line-height:1.4;color:var(--muted)}
.stock-operation-detail .product-link{text-align:left;white-space:normal;font-size:inherit;line-height:inherit}
.stock-operation-detail .text-link{font-size:inherit;line-height:inherit}
.stock-operation-totals{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid var(--line);font-size:12px;line-height:1.5;background:var(--surface-2)}
.stock-operation-totals>div{display:flex;align-items:start;gap:16px;margin-left:auto;text-align:right}
.stock-operation-totals>span,.stock-operation-totals>div>span{color:var(--muted)}
.stock-operation-totals strong{color:var(--text);font-variant-numeric:tabular-nums}
.stock-operation-money-totals{display:grid;gap:3px}
.stock-operation-empty{margin:0;padding:14px;color:var(--muted);font-size:13px}
.stock-operation-price-value{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.stock-operation-price-value .stock-operation-cost-edit,.stock-operation-supplier-value .stock-operation-cost-edit{width:24px;min-width:24px;height:24px;min-height:24px;padding:4px;flex:none;border:0;background:transparent;color:var(--accent)}
.stock-operation-facts dd.stock-operation-supplier-value{display:flex;align-items:center;gap:6px}
.stock-operation-supplier-value>span{min-width:0;overflow-wrap:anywhere}
.stock-operation-cost-edit svg{width:15px;height:15px}
.stock-operation-lines-table .stock-operation-cost-reason{font-size:10px;font-weight:400;color:var(--muted)}
.stock-operation-lines-table .stock-operation-cost-editor-row>td{padding:12px 14px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.stock-operation-cost-editor{display:grid;gap:8px;text-align:left}
.stock-operation-cost-fields{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:12px;align-items:start}
.stock-operation-price-inputs{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:8px;min-width:0}
.stock-operation-supplier-editor{padding:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px}
.stock-operation-editor-note{margin:0;font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.stock-operation-editor-note:empty{display:none}
.stock-operation-cost-fields label{font-size:12px;min-width:0;margin:0;color:var(--muted)}
.stock-operation-cost-fields input,.stock-operation-cost-fields textarea,.stock-operation-cost-fields select{box-sizing:border-box;width:100%;min-width:0;margin:0;font-size:13px;min-height:38px;padding:8px 10px}
.stock-operation-cost-fields textarea{height:60px;resize:vertical;max-height:180px}
.stock-operation-cost-error{font-size:12px;color:var(--danger,#b32924);margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.stock-operation-cost-error:empty{display:none}
.stock-operation-cost-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.stock-operation-cost-actions [hidden]{display:none!important}
@media(max-width:800px){
 .stock-operations-table{table-layout:auto;min-width:850px}
 .stock-operation-dialog,.stock-receipt-dialog:has(.stock-operation-detail){width:calc(100vw - 16px)}
 .stock-operation-lines-table th,.stock-operation-lines-table td{padding:8px}
}
@media(max-width:600px){
 .stock-operation-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}
 .stock-operation-facts dd{font-size:12px}
 .stock-operation-basis{grid-template-columns:1fr;gap:3px}
 .stock-operation-lines-table,.stock-operation-lines-table tbody,.stock-operation-lines-table tr,.stock-operation-lines-table td{display:block;width:auto!important;min-width:0}
 .stock-operation-lines-table thead{display:none}
 .stock-operation-lines-table tr{padding:11px 12px;border-bottom:1px solid var(--line)}
 .stock-operation-lines-table tr:last-child{border-bottom:0}
 .stock-operation-lines-table td{border:0;padding:3px 0;display:grid;grid-template-columns:minmax(90px,.75fr) minmax(0,1.25fr);gap:8px;text-align:left}
 .stock-operation-lines-table td::before{content:attr(data-label);font-size:11px;font-weight:400;color:var(--muted)}
 .stock-operation-lines-table td.stock-line-product{display:block;padding:0 0 6px;font-weight:650;font-size:13px}
 .stock-operation-lines-table td.stock-line-product::before{display:none}
 .stock-operation-lines-table td.stock-line-sku small{grid-column:2;margin:0}
 .stock-operation-lines-table :is(.stock-line-qty,.stock-line-price,.stock-line-total){text-align:left}
 .stock-operation-price-value{justify-content:flex-start}
 .stock-operation-lines-table .stock-line-price small{grid-column:2}
 .stock-operation-lines-table .stock-operation-cost-editor-row{padding:0}
 .stock-operation-lines-table .stock-operation-cost-editor-row>td{display:block;padding:12px;border:0}
 .stock-operation-lines-table .stock-operation-cost-editor-row>td::before{display:none}
 .stock-operation-cost-fields{grid-template-columns:1fr}
 .stock-operation-cost-fields input,.stock-operation-cost-fields textarea,.stock-operation-cost-fields select{min-height:44px;font-size:16px}
 .stock-operation-cost-actions .btn{min-height:40px}
 .stock-operation-totals{padding:10px 12px}
}
/* diagnosis 27.11.2026, C19: the document of a transfer has five columns — «Куда» got the width left by four (0 px) and its
   place was written one letter a line; the five share the width, and a narrow window scrolls the table */
.stock-operation-section[data-operation-side="transfer"] .stock-operation-lines-table{min-width:calc(var(--control-h) * 14)}
.stock-operation-section[data-operation-side="transfer"] .stock-operation-lines-table th:first-child{width:27%}
.stock-operation-section[data-operation-side="transfer"] .stock-operation-lines-table th:nth-child(2){width:19%}
.stock-operation-section[data-operation-side="transfer"] .stock-operation-lines-table th:nth-child(3){width:8%}
.stock-operation-section[data-operation-side="transfer"] .stock-operation-lines-table th:nth-child(4),
.stock-operation-section[data-operation-side="transfer"] .stock-operation-lines-table th:nth-child(5){width:23%}
.stock-operation-section[data-operation-side="transfer"] .stock-operation-table-wrap{overflow-x:auto}
.stock-operation-lines-table td{word-break:normal}


/* product-merge.css */
.product-merge-dialog{width:min(680px,calc(100vw - 24px))}
.product-merge-pickers{display:grid;gap:16px;margin-bottom:16px}
.product-merge-dialog [data-product-merge-summary]{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}
.product-merge-dialog h3,.product-merge-dialog h4{margin:12px 0 8px}
.product-merge-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;margin:14px 0}
.product-merge-counts>div{padding:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px}
.product-merge-counts dt{font-size:11px;color:var(--muted)}
.product-merge-counts dd{font-size:18px;font-weight:700;margin:4px 0 0}
.product-merge-fields>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.product-merge-fields dt{color:var(--muted)}
.product-merge-fields dd{margin:0;overflow-wrap:anywhere;max-height:180px;overflow:auto}
.product-merge-dialog [data-product-merge-confirm]{display:flex;gap:10px;align-items:flex-start;margin-top:16px}
.product-merge-dialog [data-product-merge-confirm][hidden]{display:none}
.product-merge-dialog [data-product-merge-confirm] input{width:auto;margin-top:3px;flex-shrink:0}
/* the choice of the «ID товара» that stays, when both cards have one (02.12.2026) */
.product-merge-article{border:1px solid var(--line);border-radius:var(--r-md);padding:var(--space-3);margin:0 0 var(--space-4);display:grid;gap:var(--space-2)}
.product-merge-article[hidden]{display:none}
.product-merge-article [data-product-merge-article-options]{display:grid;gap:var(--space-3)}
.product-merge-article legend{font:var(--text-label);padding:0 var(--space-1)}
.product-merge-article-option{display:flex;align-items:center;gap:var(--space-3);font:var(--text-body);overflow-wrap:anywhere}
.product-merge-article-option input{width:var(--check);height:var(--check);min-height:var(--check);margin:0;flex:none;accent-color:var(--primary)}


/* company-stamps.css */
.company-stamp-editor{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;min-width:0}.company-stamp-editor h3{font-size:.95rem;margin:0 0 8px}.company-stamp-editor>.modal-hint{margin:8px 0 12px}.company-stamp-preview:empty{display:none}.company-stamp-preview{width:160px;max-width:100%;height:160px;display:flex;align-items:center;justify-content:center;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}.company-stamp-preview img{max-width:100%;max-height:100%;object-fit:contain}.company-stamp-editor .company-stamp-file{display:block;min-width:0;font-size:.8rem}.company-stamp-file input{display:block;max-width:100%;font-size:.8rem;margin-top:6px}.company-stamp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.company-stamp-editor [hidden]{display:none!important}.company-stamp-editor .company-stamp-error{margin:10px 0 0;color:var(--danger);font-size:.84rem}.company-stamp-editor .company-stamp-error:empty{display:none}


/* document-editor.css */
/* Compact document controls; the editable sheet remains paper-white in every theme. */
/* Keep every editor popup below the sticky dialog chrome without clipping menus. */
.document-studio>form>.modal-body{position:relative;z-index:0;isolation:isolate}
:root[data-theme] .document-studio .doc-editor-workspace{overflow:visible;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
:root[data-theme] .document-studio .doc-editor-content{position:relative;overflow:visible;padding:0;border:0;border-radius:0 0 10px 10px;background:var(--bg)}
.document-studio .doc-unified-toolbar{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:7px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--text);isolation:isolate;z-index:4}
.document-studio .doc-unified-toolbar .doc-editor-toolbar{display:contents;padding:0;border:0;background:transparent}
.document-studio .doc-unified-toolbar .doc-manual-tools{display:contents;margin:0;padding:0;border:0;background:transparent}
.document-studio .doc-unified-toolbar :is(button,.doc-toolbar-menu>summary){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;height:32px;margin:0;padding:4px 8px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--text);font-family:inherit;font-size:12px;font-weight:500;line-height:1.2;white-space:nowrap;cursor:pointer}
.document-studio .doc-unified-toolbar :is(button,.doc-toolbar-menu>summary):hover{background:var(--soft,#edf3f8);border-color:var(--line)}
.document-studio .doc-unified-toolbar :is(button,.doc-toolbar-menu>summary):focus-visible{outline:2px solid var(--accent,#1387c0);outline-offset:1px}
.document-studio .doc-unified-toolbar button:disabled{opacity:.42;cursor:default}
.document-studio .doc-unified-toolbar button[data-doc-format]{min-width:32px;padding-inline:7px;font-size:13px}
.document-studio .doc-unified-toolbar button[data-doc-format=bold]{font-weight:750}
.document-studio .doc-unified-toolbar button[data-doc-format=italic]{font-family:Georgia,serif;font-style:italic;font-size:15px}
.document-studio .doc-unified-toolbar button[data-doc-format=underline]{text-decoration:underline;text-underline-offset:3px}
.document-studio .doc-unified-toolbar :is(#doc-heading,#doc-page-break){font-size:12px}
:root[data-theme] .document-studio #doc-rich-toolbar select{box-sizing:border-box;appearance:none;width:auto;min-height:32px;height:32px;margin:0;padding:4px 23px 4px 7px;border:1px solid transparent;border-radius:4px;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23718498' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-position:right 7px center;background-repeat:no-repeat;color:var(--text);font-family:inherit;font-size:12px;line-height:1.2;cursor:pointer}
:root[data-theme] .document-studio #doc-rich-toolbar select:hover{border-color:var(--line);background-color:var(--surface-hover)}
:root[data-theme] .document-studio .doc-unified-toolbar #doc-text-format{width:94px}
:root[data-theme] .document-studio .doc-unified-toolbar #doc-text-align{width:82px}
:root[data-theme] .document-studio .doc-unified-toolbar #doc-text-list{width:80px}
.document-studio .doc-unified-toolbar svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.document-studio .doc-unified-toolbar .doc-image-toolbar{display:flex;align-items:center;gap:0;padding:0;margin:0}
.document-studio .doc-unified-toolbar .doc-image-toolbar .muted{display:none}
.document-studio .doc-unified-toolbar #doc-image-insert{min-width:32px;width:32px;font-size:19px;padding:4px}
.document-studio .doc-manual-history{display:inline-flex;align-items:center;gap:2px;margin:0 0 0 auto;padding-left:7px;border-left:1px solid var(--line)}
.document-studio .doc-unified-toolbar .doc-manual-history button{width:30px;min-width:30px;padding:2px;font:20px/1 Arial,sans-serif}
.document-studio .doc-toolbar-menu{position:static;flex:0 0 auto;margin:0;padding:0;border:0}
.document-studio .doc-toolbar-menu>summary{list-style:none;user-select:none}
.document-studio .doc-toolbar-menu>summary::-webkit-details-marker{display:none}
.document-studio .doc-toolbar-menu>summary::after{content:'';width:5px;height:5px;margin-left:3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.document-studio .doc-toolbar-menu[open]>summary{background:var(--soft,#edf3f8);border-color:var(--line)}
/* Anchor popovers to the complete toolbar so wrapped controls never open off-canvas. */
.document-studio .doc-menu-panel{position:absolute;z-index:30;top:calc(100% + 5px);left:0;box-sizing:border-box;width:320px;max-width:100%;max-height:min(470px,55vh);overflow:auto;overscroll-behavior:contain;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--text);box-shadow:0 10px 28px #10243c26;font-size:12px;line-height:1.4;scrollbar-gutter:stable}
.document-studio .doc-toolbar-menu:first-child>.doc-menu-panel{width:260px}
.document-studio .doc-table-menu>.doc-menu-panel{left:auto;right:0}
.document-studio .doc-menu-panel :is(p,.modal-hint){margin:3px 0 8px;font-size:11px;line-height:1.4;color:var(--muted)}
.document-studio .doc-menu-panel .doc-menu-hint{padding:5px 6px 9px;border-bottom:1px solid var(--line)}
.document-studio .doc-menu-section{margin:0;padding:0;border:0;border-bottom:1px solid var(--line)}
.document-studio .doc-menu-section:last-of-type{border-bottom:0}
:root[data-theme] .document-studio .doc-menu-section>summary{display:flex;box-sizing:border-box;min-height:32px;padding:8px 5px;color:var(--text);font-size:12px;font-weight:600;cursor:pointer;user-select:none}
.document-studio .doc-menu-section[open]>summary{margin-bottom:3px}
.document-studio .doc-menu-fields{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;padding:3px 5px 11px}
.document-studio .doc-menu-dimensions{display:flex;align-items:flex-end;gap:12px;flex:1 1 100%}
.document-studio .doc-manual-insert>.doc-check{flex:1 1 100%}
.document-studio .doc-menu-panel label{display:grid;gap:4px;min-width:0;margin:0;font-size:11px;line-height:1.3}
.document-studio .doc-menu-panel :is(input,select){box-sizing:border-box;max-width:100%;min-height:32px;height:32px;margin:0;padding:5px 7px;font-size:12px;line-height:1.3}
.document-studio .doc-menu-panel input[type=number]{width:80px}
.document-studio .doc-menu-panel .doc-check{display:flex!important;align-items:center;gap:6px;min-height:28px;align-self:center;font-size:11px}
.document-studio .doc-menu-panel input[type=checkbox]{width:15px;min-width:15px;min-height:15px;height:15px;margin:0;padding:0}
.document-studio .doc-menu-panel .btn.small{height:auto;min-height:30px;padding:6px 8px;border:1px solid var(--line);background:var(--surface);font-size:11px;line-height:1.3;white-space:normal;text-align:left}
.document-studio .doc-menu-panel .btn.small:hover{background:var(--soft,#edf3f8)}
.document-studio .doc-menu-actions{display:grid;gap:3px;padding:0 4px 10px}
.document-studio .doc-menu-actions button{justify-content:flex-start;width:100%;text-align:left}
.document-studio .doc-menu-panel>button{margin-top:8px;width:100%}
.document-studio .doc-menu-panel .danger{color:var(--danger,#b92c40)}
.document-studio .doc-spacing-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:2px 4px 9px}
.document-studio .doc-spacing-presets button{border:1px solid var(--line);min-width:0;padding-inline:5px}
.document-studio .doc-document-spacing{margin:0;padding:4px 5px 10px}
.document-studio .doc-document-spacing label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin:0}
.document-studio .doc-document-spacing input{width:80px;min-height:32px;height:32px;padding:5px 7px}
.document-studio .doc-menu-status{order:2;flex:1 1 100%;margin:0;padding:2px 4px;font-size:11px;line-height:1.35;color:var(--muted)}
.document-studio #doc-manual-status:empty,.document-studio #doc-image-error:empty{display:none}
.document-studio #doc-image-error{margin:4px 0;font-size:12px}
:root[data-theme] .document-studio .doc-editor-switch{gap:8px;margin:0;padding:5px 8px 0;border-radius:10px 10px 0 0;align-items:center;background:var(--bg)}
:root[data-theme] .document-studio .doc-editor-switch>.tabs{flex:0 0 auto;width:auto;max-width:100%}
:root[data-theme] .document-studio .doc-editor-switch>.tabs>button{min-height:37px;padding:8px 12px;font-size:12px;border-radius:6px 6px 0 0}
:root[data-theme] .document-studio .doc-editor-switch>label{flex:0 1 auto;align-self:center;width:auto;min-width:0;margin:0 0 5px;padding:0;border:0;gap:8px;white-space:nowrap;background:transparent;color:var(--muted);font-size:11px}
:root[data-theme] .document-studio #doc-insert-target{height:30px;min-height:30px;padding:4px 7px;font-size:12px;border-radius:5px;max-width:185px}
.document-studio .doc-studio-main>label{margin-bottom:10px}
.document-studio .doc-studio-settings>details{margin-bottom:8px;padding-bottom:8px}
.document-studio .doc-studio-settings>details>summary{margin-bottom:0;padding:6px 0}
.document-studio .doc-studio-settings>details[open]>summary{margin-bottom:8px}
:root[data-theme] .document-studio :is(.doc-rich-editor,.doc-source-editor){max-width:210mm;margin:0 auto;border:0;border-radius:0;padding:24px;background:#fff;color:#142238;color-scheme:light;outline:none;box-shadow:0 0 0 1px #1422380a}
:root[data-theme] .document-studio :is(.doc-rich-editor,.doc-source-editor):focus{outline:none;box-shadow:inset 0 0 0 1px #8cb5d2}
/* Application table typography must not leak into the document being edited. */
.document-studio .doc-rich-editor p{line-height:inherit}
.document-studio .doc-rich-editor :is(td,th){font-size:inherit;line-height:inherit;vertical-align:top}
.document-studio .doc-rich-editor :is(strong,b){font-weight:bold}
.document-studio .doc-rich-editor small{display:inline;margin:0;font-size:smaller}
:root[data-theme] .document-studio #doc-editor-note{margin:0;padding:10px 14px;border-top:1px solid var(--line);font-size:11px;line-height:1.5;color:var(--muted);background:var(--surface);border-radius:0 0 10px 10px}
.document-studio .doc-generated-appearance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.document-studio .doc-generated-appearance label{min-width:0;margin:0 0 6px}
.document-studio .doc-table-columns>div{grid-template-columns:minmax(0,1fr) 48px 24px 24px;gap:3px;padding:6px 0}
.document-studio .doc-table-columns input[type=number]{width:48px;padding:5px 2px;min-height:28px;font-size:.75rem}
.document-studio .doc-table-columns label{font-size:.73rem;overflow-wrap:anywhere}
/* each column apart, the currency and the row of the total (owner, 30.11.2026 12:15); tokens only */
.document-studio .doc-table-money{margin-top:var(--space-2)}
.document-studio .doc-table-money>label:last-child{grid-column:1 / -1}
.document-studio .doc-column-more{grid-column:1 / -1;margin:0;min-width:0}
.document-studio .doc-column-more>summary{padding:var(--space-1) 0;color:var(--ink-2);font-size:var(--fs-small);cursor:pointer}
.document-studio .doc-column-more-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);align-items:end;padding:var(--space-1) 0 var(--space-2)}
.document-studio .doc-column-more-fields>label{margin:0;min-width:0}
.document-studio .doc-column-more-fields>label:first-child:not(.doc-check){grid-column:1 / -1}
.document-studio .doc-table-columns .doc-column-more input[type=number]{width:100%}
.document-studio .doc-column-more-fields>.doc-check{min-height:var(--control-h-sm);display:flex;align-items:center}
.document-studio .doc-rich-editor{overflow-x:auto;color:#142238;background:#fff;min-height:360px}
.document-studio #doc-header-rich{min-height:160px}
.document-studio #doc-header-source{min-height:160px;font:12px/1.6 ui-monospace,monospace}
.document-studio .doc-rich-editor table{width:100%;border-collapse:collapse}
.document-studio .doc-rich-editor :is(td,th):focus{outline:2px solid #168ac2;outline-offset:-2px}
.document-studio .doc-rich-editor [data-doc-generated-table]{display:block;margin:14px 0;padding:10px;border:1px solid #a4c8dd;border-radius:6px;background:#f4f9fc;color:#173449;user-select:none;cursor:pointer;line-height:1.3;font:12px Arial,sans-serif}
.document-studio .doc-rich-editor [data-doc-generated-table] :is(.doc-generated-caption,.doc-generated-toolbar){display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.document-studio .doc-rich-editor [data-doc-generated-table] button{color:#075d87;border:1px solid #96b8ce;background:#fff;padding:5px 8px;border-radius:4px;font-size:11px}
.document-studio .doc-rich-editor [data-doc-generated-table] table{font-size:10px;margin:7px 0 0;table-layout:fixed;line-height:1.3}
.document-studio .doc-rich-editor [data-doc-generated-table] :is(th,td){overflow-wrap:anywhere;padding:5px}
@media(max-width:1000px){
 .document-studio .doc-unified-toolbar{gap:3px;padding:5px}
 .document-studio .doc-unified-toolbar :is(button,.doc-toolbar-menu>summary){padding-inline:6px}
 .document-studio .doc-unified-toolbar button[data-doc-format]{min-width:30px}
 :root[data-theme] .document-studio :is(.doc-rich-editor,.doc-source-editor){padding:20px}
}
@media(max-width:760px){
 :root[data-theme] .document-studio .doc-editor-content{padding:0}
 .document-studio .doc-editor-switch{gap:5px}
 .document-studio .doc-editor-switch>label{gap:5px;font-size:11px}
 .document-studio .doc-editor-switch select{font-size:11px;min-height:32px;padding:5px;max-width:170px}
 .document-studio .doc-menu-panel{max-height:50vh;width:300px}
 :root[data-theme] .document-studio :is(.doc-rich-editor,.doc-source-editor){padding:16px}
 .document-studio .doc-table-columns>div{grid-template-columns:minmax(0,1fr) 60px 30px 30px}
 .document-studio .doc-table-columns input[type=number]{width:60px}
}
.document-studio .doc-generated-hint{font:11px/1.4 Arial,sans-serif;color:#526277;margin-top:7px}
.document-studio .doc-generated-preview{margin-top:8px;background:#fff}
@media(min-width:761px){
 .document-studio .doc-toolbar-menu{position:relative}
 .document-studio .doc-menu-panel{max-width:none}
}
@media(max-width:600px){
 :root[data-theme] body.mobile-app-ready .document-studio .doc-menu-panel :is(input:not([type=checkbox]),select,button){min-height:44px;height:auto;font-size:16px}
 :root[data-theme] .document-studio .doc-editor-switch{gap:4px}
 :root[data-theme] .document-studio .doc-editor-switch>label{margin:4px 0 7px}
}
/* Keep the result of Save next to the actions, even in a long template. */
.document-studio .modal-foot [data-modal-error]{flex:1 1 220px;min-width:0;margin:0 auto 0 0;text-align:left;font-size:12px;line-height:1.45;overflow-wrap:anywhere;max-height:20vh;overflow:auto}
.document-studio .modal-foot [data-modal-error]:empty{display:none}
.document-studio .modal-foot>.btn{flex-shrink:0}
@media(max-width:650px){.document-studio .modal-foot{flex-wrap:wrap}.document-studio .modal-foot [data-modal-error]{flex-basis:100%}}

/* Row-major order is also the order submitted to the document renderer. */
.document-generation .doc-generation-column-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(142px,1fr));grid-auto-flow:row;gap:8px}
.document-generation .doc-generation-column-grid .doc-check{min-height:46px;padding:8px 10px;margin:0;border:1px solid var(--line);border-radius:7px;background:var(--bg);align-items:center;cursor:pointer;font-size:.78rem;line-height:1.35}
.document-generation .doc-generation-column-grid .doc-check:has(input:checked){background:var(--surface,#fff);border-color:var(--accent)}
.document-generation .doc-generation-column-grid .doc-check:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.document-generation .doc-generation-column-grid input[type=checkbox]{padding:0;margin:0;align-self:center;flex-shrink:0}
@media(max-width:420px){.document-generation .doc-generation-column-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.document-generation .doc-generation-column-grid .doc-check{padding:8px;min-height:48px}}
/* owner's audit 26.11.2026 — the fields of a document one press away: «Вставить поле» before the formatting, and the panel of
   the settings stays beside the text while a long document scrolls (no scroll inside the window's scroll) */
:root[data-theme] .document-studio .doc-insert-field{display:inline-flex;align-items:center;gap:var(--space-1);min-height:32px;margin:var(--space-1);padding:var(--space-1) var(--space-2);border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);color:var(--act);font:var(--text-small);font-weight:600;cursor:pointer;white-space:nowrap}
@media (min-width:1100px){:root[data-theme] .document-studio .doc-studio-settings{position:sticky;top:0;align-self:start;max-height:calc(100dvh - 220px);overflow-y:auto;overscroll-behavior:contain}}


/* repair-models.css */
.repair-model-field{min-width:0;align-self:start}
.repair-model-control{display:flex;gap:6px;align-items:end;min-width:0}
.repair-model-control>label{flex:1;min-width:0;margin:0}
.repair-model-control .repair-model-plus{flex:none;padding:7px;width:34px;min-width:34px;min-height:34px;margin:0}
.repair-model-plus svg{width:18px;height:18px}
.repair-model-add{margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);min-width:0}
.repair-model-add[hidden]{display:none!important}
.repair-model-add>label{font-size:12px;margin:0;min-width:0}
.repair-model-add input{width:100%;min-width:0;box-sizing:border-box}
.repair-model-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.repair-model-actions .btn{font-size:12px;padding:6px 9px;min-height:32px}
.repair-model-status{display:block;margin-top:5px;font-size:12px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.repair-model-status:empty{display:none}
.repair-model-status.error{color:var(--danger,#b32924)}
.order-workspace .repair-model-control .repair-model-plus{min-height:32px;height:32px}
@media(max-width:640px){.repair-model-control .repair-model-plus,.order-workspace .repair-model-control .repair-model-plus{width:44px;min-width:44px;height:44px;min-height:44px}.repair-model-actions .btn{min-height:40px}}


/* repair-devices.css */
/* Устройства ремонта (owner, 28.11.2026 09:36/09:37; repair-devices.js): one list that opens, a row for each device with
   its serial number and a small comment; works and parts stay in the order. Tokens only (public/tokens.css).
   The open list (owner, 28.11.2026 11:41: «Поправь визуальное отображение нижнего блока… отступы очень плохо выполнены»):
   the inner margins of a card; every row and «Новое устройство» on one grid — the number · the three fields · «Убрать
   устройство» — so the columns stand under each other; «Новое устройство» is the foot of the card. */
html:root details.repair-devices{margin:0}
html:root .order-card-form[data-order-form="intake"]+details.repair-devices{margin-top:var(--space-3)}
.repair-devices>summary .repair-devices-brief{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;color:var(--ink-2);font-size:var(--fs-small)}
html:root details.repair-devices>.repair-devices-body{margin:0;padding:var(--space-3) var(--space-4) var(--space-4)}
.repair-devices-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-2)}
.repair-device{min-width:0;margin:0;padding:0}
html:root .order-workspace .repair-device .order-card-form,html:root .order-workspace .order-card-form[data-repair-device-add],.repair-device-static{display:grid;grid-template-columns:var(--icon) minmax(0,1fr) var(--control-h-sm);column-gap:var(--space-3);row-gap:var(--space-2);align-items:end;min-width:0;margin:0}
.repair-device-number{grid-column:1;align-self:end;display:flex;align-items:center;justify-content:center;height:var(--control-h-sm);font-variant-numeric:tabular-nums;color:var(--ink-3);font-size:var(--fs-small)}
.repair-device-number svg{width:var(--gap-16);height:var(--gap-16)}
.repair-device-fields-row{grid-column:2;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.2fr) minmax(0,1.4fr);gap:var(--space-3);min-width:0}
.repair-device-fields-row>label{margin:0;min-width:0}
.repair-device-fields-row input{width:100%;min-width:0;box-sizing:border-box}
.repair-device-tools{grid-column:3;align-self:end;display:flex;align-items:center;justify-content:center;height:var(--control-h-sm)}
.repair-device-more{grid-column:2;display:flex;justify-content:flex-start;min-width:0}
html:root .order-workspace .repair-devices .order-form-feedback{grid-column:2 / -1;margin:0}
html:root[data-theme] .repair-devices .repair-device-remove{display:inline-flex;align-items:center;justify-content:center;width:var(--control-h-sm);min-width:var(--control-h-sm);height:var(--control-h-sm);min-height:var(--control-h-sm);margin:0;padding:0;border-color:transparent;border-radius:var(--r-xs);background:transparent;color:var(--ink-3);box-shadow:none}
html:root[data-theme] .repair-devices .repair-device-remove:hover{background:var(--bad-bg);color:var(--bad)}
.repair-device-remove svg{width:var(--gap-16);height:var(--gap-16)}
/* «Новое устройство»: the foot of the card, the same columns as the list */
html:root .order-workspace .order-card-form[data-repair-device-add]{margin:var(--space-3) calc(-1 * var(--space-4)) calc(-1 * var(--space-4));padding:var(--space-3) var(--space-4) var(--space-4);border-top:1px solid var(--line);background:var(--surface-2)}
.order-card-form[data-repair-device-add] .repair-device-number{grid-row:1;align-self:center;height:auto;color:var(--ink-2)}
.repair-device-add-title{grid-column:2 / -1;grid-row:1;margin:0;font-weight:600;font-size:var(--fs-small);color:var(--ink-2)}
/* read only: the same columns as text */
.repair-device-static{align-items:start}
.repair-device-static .repair-device-number{align-self:start;height:auto}
.repair-device-static+.repair-device-static{border-top:1px solid var(--line);padding-top:var(--space-2)}
.repair-device-read{grid-column:2 / -1;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.2fr) minmax(0,1.4fr);gap:var(--space-3);min-width:0}
.repair-device-read strong,.repair-device-read span,.repair-device-read small{display:block;min-width:0;overflow-wrap:anywhere}
.repair-device-read span{color:var(--ink-2);font-family:var(--font-mono);font-size:var(--fs-small)}
.repair-device-read small{color:var(--ink-3)}
/* the new repair: more devices */
.repair-extra-devices:empty{display:none}
.repair-create-devices{display:grid;gap:var(--gap-8);min-width:0}
.repair-create-devices>.btn{justify-self:start}
.repair-extra-devices{display:grid;gap:var(--gap-8)}
.repair-extra-device{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:var(--gap-8);align-items:end;min-width:0}
.repair-extra-device>label{margin:0;min-width:0}
.repair-extra-device input{width:100%;min-width:0;box-sizing:border-box}
.repair-extra-remove{min-width:var(--control-h-sm);padding-left:var(--gap-8);padding-right:var(--gap-8)}
/* a computer: the names of the fields once, over the first device (they stay for a screen reader); «Новое устройство»
   shows them in its fields */
@media (min-width:801px){
 html:root .order-workspace .repair-device+.repair-device .repair-device-fields-row>label,html:root .order-workspace .order-card-form[data-repair-device-add] .repair-device-fields-row>label{font-size:0;line-height:0;gap:0}
}
/* a phone: a device is the number and «Убрать устройство» over its fields, which take the whole width; a line between
   the devices */
@media (max-width:800px){
 .repair-devices-list{gap:0}
 .repair-device{padding:var(--space-3) 0;border-top:1px solid var(--line)}
 .repair-device:first-child{padding-top:0;border-top:0}
 .repair-device:last-child{padding-bottom:0}
 html:root .order-workspace .repair-device .order-card-form{grid-template-columns:minmax(0,1fr) auto;align-items:center}
 html:root .order-workspace .repair-device .order-card-form>.repair-device-number{grid-column:1;grid-row:1;align-self:center;justify-self:start;height:auto;font-weight:600;color:var(--ink-2)}
 html:root .order-workspace .repair-device .order-card-form>.repair-device-tools{grid-column:2;grid-row:1;align-self:center;height:auto}
 html:root .order-workspace .repair-device .order-card-form>.repair-device-fields-row,html:root .order-workspace .repair-device .order-card-form>.repair-device-more,html:root .order-workspace .repair-devices .order-form-feedback{grid-column:1 / -1}
 html:root[data-theme] .repair-devices .repair-device-remove{margin:calc(-1 * var(--space-2)) 0}
 html:root .order-workspace .order-card-form[data-repair-device-add]{grid-template-columns:var(--icon) minmax(0,1fr);align-items:start}
 html:root .order-workspace .order-card-form[data-repair-device-add]>.repair-device-fields-row{grid-column:1 / -1}
 html:root .order-workspace .order-card-form[data-repair-device-add]>.repair-device-tools{display:none}
 .repair-device-fields-row{grid-template-columns:minmax(0,1fr);gap:var(--space-2)}
 .repair-device-static{align-items:start}
 .repair-device-read{grid-template-columns:minmax(0,1fr);gap:var(--space-1)}
 .repair-extra-device{grid-template-columns:minmax(0,1fr) auto}
 .repair-extra-device>label:first-child{grid-column:1 / -1}
}
@media (pointer:coarse) and (min-width:801px){
 html:root .order-workspace .repair-device .order-card-form,html:root .order-workspace .order-card-form[data-repair-device-add]{grid-template-columns:var(--icon) minmax(0,1fr) var(--tap-min)}
}
@media (pointer:coarse){
 html:root[data-theme] .repair-devices .repair-device-remove{width:var(--tap-min);min-width:var(--tap-min);height:var(--tap-min);min-height:var(--tap-min)}
 .repair-extra-remove{min-width:var(--tap-min);min-height:var(--tap-min)}
}
/* the row of the intake in the card of a repair (owner, 28.11.2026 11:29: «Сделай в строку устройства серийного номера
   комплектации неисправности текстбоксы одной высоты, чтобы оно было красиво»): «Устройство / модель», «Серийный номер»,
   «Комплектация» and «Неисправность со слов клиента» are boxes of one height; the fault grows only when its text needs it,
   the equipment takes the width it needs to stand in one line */
@media (min-width:1121px){html:root .order-workspace [data-order-form="intake"] .order-intake-editors{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) fit-content(40%) minmax(0,1fr);align-items:start}}
@media (min-width:801px){
 html:root[data-theme] body .order-workspace .order-card-form[data-order-form="intake"] .order-intake-editors .repair-fault textarea{min-height:var(--control-h-sm);height:var(--control-h-sm);resize:none;overflow:hidden}
 html:root .order-workspace [data-order-form="intake"] .repair-equipment legend{margin:0 0 var(--gap-4)}
 html:root .order-workspace [data-order-form="intake"] .repair-equipment-checks{min-height:var(--control-h-sm);align-items:center;align-content:center;gap:var(--gap-4) var(--gap-12);padding:0 var(--gap-10);border:1px solid var(--line-strong);border-radius:var(--r-xs);background:var(--surface);box-sizing:border-box}
}


/* repair-model-settings.css */
.repair-model-settings{padding:0 18px 18px}
.repair-model-settings>p{margin:14px 0;line-height:1.5}
.repair-model-settings-search{display:block;margin:14px 0}
.repair-model-settings-search input{width:100%;max-width:560px}
.repair-model-settings .setting-card{padding:10px 0;gap:12px;min-width:0}
.repair-model-settings .setting-card[hidden]{display:none}
.repair-model-settings .setting-card>strong{min-width:0;overflow-wrap:anywhere}
.repair-model-settings .setting-card .actions{flex-shrink:0}
@media(max-width:540px){.repair-model-settings{padding:0 12px 12px}.repair-model-settings .setting-card{flex-wrap:wrap}.repair-model-settings .setting-card .actions{margin-left:auto}}


/* audit-history.css */
.audit-history-panel [data-audit-history]{min-width:0}
.audit-history-panel .list-tools{border-bottom:1px solid var(--line)}
.audit-history-panel .list-search{flex:1;min-width:180px}
.audit-history-panel details{margin-top:10px}
.audit-history-panel summary{cursor:pointer;color:var(--accent);font-weight:650}
.audit-history-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px;margin-top:12px}
.audit-history-filters label{display:flex;flex-direction:column;gap:5px;min-width:0}
.audit-history-filters .actions{align-items:end;justify-content:flex-start}
.audit-history-panel td{vertical-align:top}
.audit-history-panel td:first-child{white-space:nowrap}
.audit-history-panel .table-wrap{max-width:100%;overflow-x:auto}
@media(max-width:700px){.audit-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-history-panel .list-tools-top{flex-wrap:wrap}.audit-history-panel .list-search{flex-basis:100%}}
@media(max-width:420px){.audit-history-filters{grid-template-columns:minmax(0,1fr)}}


/* staff-activity.css */
/* «История сотрудников» — a tab of «Журнал» (owner, 21.11.2026 10:57): every request of every employee, for administrators
   of all countries. Numbers and colours only from tokens.css (docs/UI-RULES.md). */
html:root[data-theme] .staff-activity-panel [data-staff-activity]{min-width:0}
html:root[data-theme] .staff-activity-panel>.panel-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-1) var(--space-4)}
html:root[data-theme] .staff-activity-note{margin:0;font:var(--text-small);color:var(--ink-2);min-width:0}
html:root[data-theme] .staff-activity-panel .list-tools{border-bottom:1px solid var(--line)}
html:root[data-theme] .staff-activity-panel .list-search{flex:1;min-width:0}
html:root[data-theme] .staff-activity-panel details{margin-top:var(--space-2)}
html:root[data-theme] .staff-activity-panel summary{cursor:pointer;font:var(--text-label);color:var(--primary)}
html:root[data-theme] .staff-activity-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-3);margin-top:var(--space-3)}
html:root[data-theme] .staff-activity-filters>label{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}
html:root[data-theme] .staff-activity-filters>label.staff-activity-background{flex-direction:row;align-items:center;gap:var(--space-2);grid-column:span 2;align-self:end;min-height:var(--control-h)}
html:root[data-theme] .staff-activity-filters>.actions{grid-column:1/-1;justify-content:flex-start}
html:root[data-theme] .staff-activity-panel td{vertical-align:top}
html:root[data-theme] .staff-activity-when,html:root[data-theme] .staff-activity-from{white-space:nowrap}
html:root[data-theme] .staff-activity-panel td small{display:block;font:var(--text-small);color:var(--ink-2);overflow-wrap:anywhere}
html:root[data-theme] .staff-activity-panel td .mono{font-family:var(--font-mono)}
html:root[data-theme] .staff-activity-panel .table-wrap{max-width:100%;overflow-x:auto}
html:root[data-theme] .staff-activity-refused{display:block;width:fit-content}
html:root[data-theme] .staff-activity-details{display:grid;gap:var(--space-1);margin:0}
html:root[data-theme] .staff-activity-details>div{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-2);min-width:0}
html:root[data-theme] .staff-activity-details dt{font:var(--text-small);color:var(--ink-2)}
html:root[data-theme] .staff-activity-details dt.mono{font-family:var(--font-mono)}
html:root[data-theme] .staff-activity-details dd{margin:0;min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){
 html:root[data-theme] .staff-activity-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* a phone: one card for a row — who and when, what was done, the details, where from */
@media(max-width:800px){
 html:root[data-theme] .staff-activity-table,html:root[data-theme] .staff-activity-table>tbody{display:block}
 html:root[data-theme] .staff-activity-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html:root[data-theme] .staff-activity-table>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-1) var(--space-3);padding:var(--space-3) var(--pad-box);border-bottom:1px solid var(--line)}
 html:root[data-theme] .staff-activity-table>tbody>tr>td{display:block;grid-column:1/-1;padding:0;border:0;min-width:0;background:none}
 html:root[data-theme] .staff-activity-table>tbody>tr>td.staff-activity-who{grid-column:1;grid-row:1;font:var(--text-label)}
 html:root[data-theme] .staff-activity-table>tbody>tr>td.staff-activity-when{grid-column:2;grid-row:1;text-align:right;font:var(--text-small);color:var(--ink-2)}
 html:root[data-theme] .staff-activity-table>tbody>tr>td.staff-activity-what,html:root[data-theme] .staff-activity-table>tbody>tr>td.staff-activity-from{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--space-2)}
 html:root[data-theme] .staff-activity-table>tbody>tr>td.staff-activity-from{white-space:normal;font:var(--text-small);color:var(--ink-2)}
 /* a cell with nothing to say is not a line of the card (after the rules above: the same weight, the later wins) */
 html:root[data-theme] .staff-activity-table>tbody>tr>td.staff-activity-none{display:none}
}
@media(max-width:480px){
 html:root[data-theme] .staff-activity-filters{grid-template-columns:minmax(0,1fr)}
 html:root[data-theme] .staff-activity-filters>label.staff-activity-background{grid-column:auto}
 html:root[data-theme] .staff-activity-panel .list-tools-top{flex-wrap:wrap}
}


/* order-overlay.css */
/* The editor stays in #main; the read-only list behind it is isolated in shadow DOM. */
@media screen {
 body.order-overlay-open{overflow:hidden;}
 body.order-overlay-with-sidebar #app>.shell>.sidebar{z-index:72;}
 .order-overlay-backdrop{position:fixed;inset:0;z-index:70;overflow:hidden;pointer-events:auto;clip-path:inset(0 0 0 var(--order-overlay-sidebar-width,0px));background:var(--bg,#edf0f6);}
 .order-overlay-backdrop::after{content:"";position:absolute;inset:0;z-index:2147483647;background:rgba(10,24,42,.52);animation:order-overlay-fade-in 200ms ease-out both;}
 #main.content.order-overlay-content{position:fixed;inset:24px 24px 24px calc(var(--order-overlay-sidebar-width,0px) + 24px);z-index:71;width:auto;max-width:none;min-width:0;min-height:0;margin:0;padding:18px 22px 24px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:18px;background:var(--bg);box-shadow:0 18px 70px #0614265c;}
 #main.order-overlay-content>.order-workspace{min-width:0;}
 #main.order-overlay-content.order-overlay-entering{animation:order-overlay-fade-in 200ms ease-out var(--order-overlay-fade-delay,0ms) both;}
 body.order-overlay-leaving #main.order-overlay-content,body.order-overlay-leaving .order-overlay-backdrop::after{animation:order-overlay-fade-out 140ms ease-in both;pointer-events:none;}
 .order-overlay-loading-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
 .order-overlay-placeholder-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px;}
 .order-overlay-placeholder-card{min-width:0;padding:24px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);}
 .order-overlay-placeholder-card i{display:block;height:12px;margin:0 0 24px;border-radius:4px;background:var(--line);opacity:.6;}
 .order-overlay-placeholder-card i:first-child{width:48%;height:16px;margin-bottom:36px;}
 .order-overlay-placeholder-card i:nth-child(3){width:72%;}
 .order-overlay-placeholder-card i:last-child{width:86%;margin-bottom:4px;}
 .order-overlay-placeholder-wide{margin-top:14px;}
 @keyframes order-overlay-fade-in{from{opacity:0}to{opacity:1}}
 @keyframes order-overlay-fade-out{from{opacity:1}to{opacity:0}}
 @media(prefers-reduced-motion:reduce){#main.order-overlay-content,.order-overlay-backdrop::after{animation:none!important;}}
 #main.order-overlay-content .order-toolbar{position:sticky;top:-18px;z-index:12;min-height:46px;margin:-18px -22px 18px;padding:16px 72px 14px 22px;background:var(--bg);border-bottom:1px solid var(--line);}
 #main.order-overlay-content .order-overlay-close{position:absolute;top:14px;right:16px;display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:7px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);cursor:pointer;}
 #main.order-overlay-content .order-overlay-close:hover{background:var(--surface-hover);}
 #main.order-overlay-content .order-overlay-close svg{width:20px;height:20px;}
 @media(max-width:760px){
  .order-overlay-placeholder-grid{grid-template-columns:1fr;}
  .order-overlay-placeholder-card{padding:20px 16px;}
  #main.content.order-overlay-content{inset:8px;padding:12px 12px calc(16px + env(safe-area-inset-bottom));border-radius:14px;}
  #main.order-overlay-content .order-toolbar{top:-12px;min-height:48px;margin:-12px -12px 12px;padding:14px 64px 12px 12px;}
  #main.order-overlay-content .order-overlay-close{top:10px;right:10px;width:40px;height:40px;}
 }
}
@media print{
 .order-overlay-backdrop,[data-order-overlay-close]{display:none!important;}
}


/* finance-dashboard.css */
/* Compact finance tables share the application surface and theme tokens. */
.finance-wallets,.finance-monthly{min-width:0;overflow:hidden}
.finance-wallets{max-width:760px}
.finance-monthly{max-width:1200px}
.finance-wallets>.panel-head,.finance-monthly>.panel-head{padding:18px 22px}
.finance-wallets .panel-head p,.finance-monthly .panel-head p{margin:5px 0 0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}
.finance-wallet-country+.finance-wallet-country{border-top:1px solid var(--line)}
.finance-country-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 22px;background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
.finance-country-heading h3{margin:0;font-size:14px;line-height:1.5;font-weight:750}
.finance-country-heading>span{font-size:11px;color:var(--muted)}
.finance-table-scroll{overflow:auto;overscroll-behavior-x:contain}
.finance-wallet-table,.finance-month-table{width:100%;border-collapse:collapse;border-spacing:0;table-layout:fixed}
.finance-wallet-table{min-width:0}
.finance-wallet-table th,.finance-wallet-table td{padding:8px 18px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.4;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.finance-wallet-table th{font-size:11px;font-weight:600;color:var(--muted);background:var(--surface)}
.finance-wallet-table th:first-child{width:64%}.finance-wallet-table th:last-child{width:36%}
.finance-wallet-table tbody tr:last-child td{border-bottom:0}
.finance-wallet-name{font-weight:650}
.finance-wallet-table small{display:block;margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.4}
.finance-wallet-channels{margin-top:4px;font-size:11px;color:var(--muted)}
.finance-wallet-channels summary{cursor:pointer;font-size:10px}
.finance-wallet-channels ul{margin:6px 0 0;padding:0;list-style:none}
.finance-wallet-channels li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 12px;padding:4px 0}
.finance-wallet-channels li strong{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-wallet-table .finance-number,.finance-month-table .finance-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-wallet-archive{border-top:1px solid var(--line)}
.finance-wallet-archive summary{padding:11px 22px;cursor:pointer;font-size:12px;color:var(--muted)}
.finance-wallet-archive summary span{display:inline-block;margin-left:8px;font-size:10px;border:1px solid var(--line);border-radius:12px;padding:0 6px}
.finance-wallet-archive .finance-wallet-table{opacity:.9}
.finance-report-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.finance-report-head>div:first-child{flex:1;min-width:200px}
.finance-report-controls{display:flex;gap:10px;flex:none}
.finance-report-controls label{display:grid;gap:5px;margin:0;font-size:11px;line-height:1.4;color:var(--muted);font-weight:500}
.finance-report-controls select{width:110px;min-height:35px;padding:6px 10px;font-size:13px;color:var(--text);border-radius:7px;background:var(--surface)}
.finance-report-controls [data-finance-dashboard-segment]{width:155px}
.finance-segment-summary{border-bottom:1px solid var(--line)}
.finance-segment-summary h3{font-size:12px;font-weight:650;line-height:1.5;margin:0;padding:13px 22px 5px}
.finance-segment-summary h4{font-size:12px;font-weight:650;line-height:1.5;margin:0;padding:13px 22px 5px}
.finance-segment-table th,.finance-segment-table td{padding-top:8px;padding-bottom:8px;font-size:12px}
.finance-segment-table tbody tr:last-child th,.finance-segment-table tbody tr:last-child td{border-bottom:0}
.finance-segment-table .is-selected{background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.finance-report-period{display:flex;justify-content:space-between;gap:12px;padding:13px 22px;color:var(--muted);font-size:11px;line-height:1.5;border-bottom:1px solid var(--line)}
.finance-report-period>span:first-child{white-space:nowrap}
.finance-month-table{min-width:720px}
.finance-month-table th,.finance-month-table td{padding:11px 18px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.5;vertical-align:middle}
.finance-month-table th:first-child,.finance-month-table td:first-child{padding-left:22px;width:32%}
.finance-month-table th:last-child,.finance-month-table td:last-child{padding-right:22px}
.finance-month-table thead th{font-size:11px;font-weight:600;color:var(--muted);vertical-align:top;white-space:normal}
.finance-month-table thead small{display:block;margin:3px 0 0;font-weight:400;font-size:10px;line-height:1.5}
.finance-month-table tbody th{font-weight:600;text-align:left}
.finance-month-name{text-transform:capitalize}
.finance-month-table tbody th small{display:block;margin-top:3px;font-size:10px;font-weight:400;color:var(--muted);line-height:1.5}
.finance-current-label{display:inline-block;margin-left:8px;padding:2px 6px;font-size:9px;line-height:1.4;font-weight:600;color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface));border-radius:5px;vertical-align:middle}
.finance-month-table .is-current{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
.finance-month-table tfoot{background:color-mix(in srgb,var(--accent) 4%,var(--surface))}
.finance-month-table tfoot th{text-align:left;font-size:12px}
.finance-month-table tfoot th,.finance-month-table tfoot td{border-bottom:0;font-weight:700;padding-top:14px;padding-bottom:14px}
.finance-number.is-negative{color:var(--red)}
.finance-number.is-positive{color:#18734e}
.finance-report-notes{padding:14px 22px;color:var(--muted);font-size:11px;line-height:1.6}
.finance-report-notes p{margin:0 0 6px}.finance-report-notes p:last-child{margin-bottom:0}
.finance-report-notes .finance-unresolved{color:var(--text);padding:10px 12px;border:1px solid var(--line);border-left:3px solid #bd873a;border-radius:5px;margin-bottom:12px;background:color-mix(in srgb,#bd873a 6%,var(--surface))}
.finance-empty{padding:22px;margin:0;color:var(--muted);font-size:13px}
:root[data-theme=dark] .finance-number.is-positive{color:#7ed8ad}
.finance-order-margin{padding-top:4px}
.finance-result-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px 12px}
.finance-result-heading h3{margin:0;font-size:17px;line-height:1.4;font-weight:750}
.finance-result-heading p{margin:4px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
.finance-result-heading>span{padding:4px 8px;border:1px solid var(--line);border-radius:6px;font-size:11px;font-weight:650;color:var(--muted)}
.finance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 22px 14px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.finance-metrics>div{padding:15px 18px;min-width:0}
.finance-metrics>div+div{border-left:1px solid var(--line)}
.finance-metrics>div>span{display:block;font-size:11px;line-height:1.5;color:var(--muted);font-weight:550}
.finance-metrics .finance-metric-number,.finance-metrics>div>strong{display:block;margin-top:7px;font-size:25px;line-height:1.3;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.finance-metrics .finance-metric-number>strong{font-weight:750}
.finance-metrics .finance-metric-number .finance-cost-reference,.finance-metrics .finance-metric-number .finance-profit-reference{font-size:10px;line-height:1.5;letter-spacing:normal;color:var(--muted);font-weight:400;margin-top:4px}
.finance-metrics small{display:block;margin-top:5px;font-size:10px;line-height:1.5;color:var(--muted)}
.finance-metric-result{background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.finance-margin-percent{display:inline-block;vertical-align:middle;margin-left:10px;padding:3px 6px;border:1px solid var(--line);border-radius:5px;font-size:12px;line-height:1.3;letter-spacing:normal;white-space:nowrap}
.finance-calculation-warning,.finance-calculation-empty{margin:0 22px 14px;padding:10px 12px;font-size:11px;line-height:1.6;color:var(--muted)}
.finance-calculation-warning{background:color-mix(in srgb,#bd873a 6%,var(--surface));border:1px solid var(--line);border-left:3px solid #bd873a;border-radius:5px;color:var(--text)}
.finance-calculation-empty{padding:0}
.finance-month-table .finance-incomplete-label,.finance-month-table small.finance-cost-reference,.finance-month-table small.finance-profit-reference{display:block;font-size:10px;line-height:1.5;white-space:normal;font-weight:400;margin-top:4px}
.finance-month-table .finance-incomplete-label{color:#94671f}
.finance-month-table small.finance-cost-reference,.finance-month-table small.finance-profit-reference{color:var(--muted)}
.finance-calculation-coverage{display:block}
.finance-month-table caption{text-align:left;font-size:12px;font-weight:650;padding:15px 22px 5px}
.finance-margin-table{min-width:790px}
.finance-margin-table th:first-child,.finance-margin-table td:first-child{width:27%}
.finance-margin-table thead th:last-child{width:15%}
.finance-margin-table td>strong{font-weight:600}
.finance-margin-table td:nth-last-child(2)>strong{font-weight:750}
.finance-result-definition{margin:0;padding:0 22px 18px;font-size:11px;line-height:1.6;color:var(--muted)}
.finance-calculation-help{margin:12px 22px;border:1px solid var(--line);border-radius:7px}
.finance-calculation-help>summary,.finance-cash-details>summary{padding:11px 13px;font-size:12px;line-height:1.5;cursor:pointer;font-weight:600;color:var(--text)}
.finance-calculation-help>div{padding:0 13px 11px;font-size:11px;line-height:1.6;color:var(--muted)}
.finance-calculation-help p{margin:0 0 6px}.finance-calculation-help p:last-child{margin-bottom:0}
.finance-cash-flow{border-top:1px solid var(--line);background:color-mix(in srgb,var(--muted) 2%,var(--surface))}
.finance-cash-metrics>div>strong{font-size:21px;font-weight:650}
.finance-cash-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.finance-cash-details>summary{padding-left:22px;padding-right:22px}
.finance-cash-details[open]>summary{border-bottom:1px solid var(--line)}
.finance-cash-table{min-width:650px}
:root[data-theme=dark] .finance-month-table .finance-incomplete-label{color:#e4b66a}
@media(max-width:800px){.finance-wallets>.panel-head,.finance-monthly>.panel-head{padding:15px 16px}.finance-country-heading{padding:11px 16px}.finance-wallet-table th,.finance-wallet-table td{padding:9px 16px;font-size:12px}.finance-wallet-table th{font-size:10px}.finance-wallet-archive summary{padding:11px 16px}.finance-report-period{padding:12px 16px;flex-direction:column;gap:4px}.finance-report-controls{gap:8px}.finance-report-controls select{width:100px}.finance-report-notes{padding:13px 16px}.finance-month-table th:first-child,.finance-month-table td:first-child{padding-left:16px}.finance-month-table th:last-child,.finance-month-table td:last-child{padding-right:16px}.finance-month-table th,.finance-month-table td{padding:10px 14px}.finance-current-label{display:table;margin:4px 0 0}.finance-empty{padding:18px 16px}}
@media(max-width:520px){.finance-report-head>div:first-child{flex-basis:100%}.finance-report-controls{width:100%}.finance-report-controls label{flex:1}.finance-report-controls select{width:100%}.finance-wallets h2,.finance-monthly h2{font-size:16px}}
@media(max-width:800px){.finance-segment-summary h3{padding-left:16px;padding-right:16px}}
@media(max-width:800px){.finance-result-heading{padding:16px 16px 11px}.finance-result-heading h3{font-size:16px}.finance-metrics{margin-left:16px;margin-right:16px}.finance-metrics>div{padding:12px}.finance-metrics .finance-metric-number{font-size:22px}.finance-result-definition{padding-left:16px;padding-right:16px}.finance-calculation-warning,.finance-calculation-empty,.finance-calculation-help{margin-left:16px;margin-right:16px}.finance-segment-summary h4,.finance-month-table caption,.finance-cash-details>summary{padding-left:16px;padding-right:16px}.finance-margin-percent{margin:5px 0 0 6px}}
@media(max-width:520px){.finance-report-controls{flex-wrap:wrap}.finance-report-controls label:first-child{flex:0 0 100%}.finance-report-controls [data-finance-dashboard-segment]{width:100%}}
@media(max-width:600px){.finance-metrics{grid-template-columns:1fr}.finance-metrics>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:0 12px;padding:11px 13px}.finance-metrics>div+div{border-left:0;border-top:1px solid var(--line)}.finance-metrics>div>span{grid-column:1;grid-row:1;align-self:center;font-size:12px}.finance-metrics .finance-metric-number,.finance-metrics>div>strong{grid-column:2;grid-row:1 / span 2;text-align:right;font-size:21px;margin:0}.finance-metrics>div>small{grid-column:1;grid-row:2}.finance-metrics .finance-metric-number .finance-cost-reference{text-align:right;font-size:10px}.finance-margin-percent{font-size:11px}.finance-cash-metrics>div>strong{font-size:19px}}

@media(max-width:600px){.finance-wallet-table th:first-child{width:58%}.finance-wallet-table th:last-child{width:42%}.finance-wallet-table th,.finance-wallet-table td{padding:8px 14px}.finance-wallet-table .finance-number{white-space:normal;overflow-wrap:anywhere;font-size:12px}}

/* One balanced overview: money on the left, one selectable monthly report on the right. */
.finance-overview-grid{display:grid;grid-template-columns:minmax(310px,.85fr) minmax(0,1.65fr);gap:20px;align-items:stretch;margin-bottom:24px}
.finance-overview-grid>.panel{width:100%;max-width:none;min-width:0;height:760px;margin:0;display:flex;flex-direction:column}
.finance-overview-grid>.panel>.panel-head{flex:none;min-height:106px;padding:18px 20px;align-items:flex-start}
.finance-overview-grid .panel-head h2{font-size:17px;line-height:1.4;letter-spacing:-.25px;margin:0}
.finance-overview-grid .panel-head p{font-size:11px;line-height:1.45;margin:5px 0 0;max-width:520px}
.finance-wallets-body,.finance-unified-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.finance-overview-grid .finance-country-heading{padding:12px 18px}
.finance-overview-grid .finance-wallet-table th,.finance-overview-grid .finance-wallet-table td{padding:9px 18px;font-size:12px}
.finance-overview-grid .finance-wallet-table thead th{font-size:10px}
.finance-overview-grid .finance-wallet-table th:first-child{width:53%}
.finance-overview-grid .finance-wallet-table th:last-child{width:47%}
.finance-overview-grid .finance-wallet-table .finance-number{font-size:13px;font-weight:600;white-space:normal}
.finance-overview-grid .finance-wallet-archive summary{padding:12px 18px;font-size:11px}
.finance-unified-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.finance-unified-head>div:first-child{min-width:200px;flex:1}
.finance-unified .finance-report-controls{gap:8px;align-items:flex-end;flex-wrap:wrap}
.finance-unified .finance-report-controls select{width:auto;min-width:76px;max-width:160px;min-height:33px;font-size:12px;padding:5px 8px}
.finance-unified .finance-report-controls [data-finance-dashboard-segment]{width:130px}
.finance-unified-body{display:flex;flex-direction:column}
.finance-unified-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:16px 18px 12px;border:1px solid var(--line);border-radius:9px;overflow:hidden;flex:none;background:var(--surface)}
.finance-unified-summary>div{min-width:0;padding:13px 15px}
.finance-unified-summary>div+div{border-left:1px solid var(--line)}
.finance-unified-summary dt,.finance-unified-summary>div>span{display:block;margin:0;font-size:11px;font-weight:500;line-height:1.4;color:var(--muted)}
.finance-unified-summary dd{margin:8px 0 0}
.finance-unified-summary dd,.finance-unified-summary>div>strong,.finance-unified-summary .finance-metric-number{display:block;font-size:23px;font-weight:750;line-height:1.3;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.finance-unified-summary small{display:block;margin-top:5px;font-size:10px;font-weight:400;letter-spacing:0;line-height:1.4;color:var(--muted)}
.finance-unified-summary>div:last-child{background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.finance-unified-scroll{min-height:160px;overflow:auto;overscroll-behavior:contain;flex:1 0 250px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.finance-unified-table{width:100%;min-width:560px;table-layout:fixed;border-collapse:collapse;border-spacing:0;font-variant-numeric:tabular-nums}
.finance-unified-table th,.finance-unified-table td{padding:10px 12px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.4;vertical-align:middle}
.finance-unified-table th:first-child,.finance-unified-table td:first-child{width:21%;padding-left:18px;text-align:left}
.finance-unified-table th:last-child,.finance-unified-table td:last-child{width:13%;padding-right:18px}
.finance-unified-table thead th{position:sticky;top:0;z-index:1;background:var(--surface2,var(--surface));color:var(--muted);font-size:10px;font-weight:600;white-space:normal;text-align:right}
.finance-unified-table tbody th{font-weight:600;text-align:left}
.finance-unified-table .finance-number{text-align:right;white-space:nowrap}
.finance-unified-table small{display:block;font-size:10px;font-weight:400;line-height:1.4;margin-top:3px;color:var(--muted);white-space:normal}
.finance-unified-table tfoot th,.finance-unified-table tfoot td{position:sticky;bottom:0;background:var(--surface2,var(--surface));font-weight:750;border-top:1px solid var(--line);border-bottom:0}
.finance-unified-table tbody tr:hover{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
.finance-source-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;font-size:10px;font-weight:600;line-height:1.4;border:1px solid var(--line);white-space:nowrap}
.finance-source-badge.is-archive{background:color-mix(in srgb,#bc8733 9%,var(--surface));color:#936618}
.finance-source-badge.is-pakovia{background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--accent)}
.finance-source-badge.is-incomplete{color:#936618}
.finance-unified-footnote{padding:11px 18px;margin:0;font-size:11px;line-height:1.5;color:var(--muted);flex:none}
.finance-unified-cash,.finance-unified-source-details{flex:none;font-size:12px;border-top:1px solid var(--line)}
.finance-unified-cash>summary,.finance-unified-source-details>summary{cursor:pointer;padding:12px 18px;font-weight:600}
.finance-unified .finance-result-definition,.finance-unified .finance-report-notes{font-size:11px}
.finance-unified .finance-calculation-warning{margin:0 18px 12px}
.finance-unified .finance-statements-raw{margin:0;border:0;border-radius:0}
.finance-unified .finance-statements-raw>summary{padding:12px 18px}
.finance-unified .finance-statements-sources{border-top:1px solid var(--line)}
:root[data-theme=dark] .finance-source-badge.is-archive,:root[data-theme=dark] .finance-source-badge.is-incomplete{color:#e4b66a}
@media(min-width:1900px){.finance-overview-grid{grid-template-columns:minmax(370px,.75fr) minmax(0,1.65fr);max-width:1900px}.finance-overview-grid>.panel{height:800px}.finance-unified-summary dd,.finance-unified-summary>div>strong{font-size:26px}.finance-unified-table th,.finance-unified-table td{padding-top:12px;padding-bottom:12px}}
@media(max-width:1150px){.finance-overview-grid{grid-template-columns:1fr}.finance-overview-grid>.panel{height:auto;max-height:none}.finance-wallets-body{max-height:540px}.finance-unified-body{overflow:visible}.finance-unified-scroll{max-height:520px;flex:none}.finance-unified-head{gap:14px}.finance-unified-head>div:first-child{flex-basis:auto}}
@media(max-width:600px){.finance-overview-grid{gap:16px;margin-bottom:16px}.finance-overview-grid>.panel>.panel-head{min-height:0;padding:15px 16px}.finance-unified-head>div:first-child{flex-basis:100%}.finance-unified .finance-report-controls{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.finance-unified .finance-report-controls label{min-width:0;flex:none}.finance-unified .finance-report-controls select,.finance-unified .finance-report-controls [data-finance-dashboard-segment]{width:100%;min-width:0;max-width:none}.finance-unified-summary{margin:12px;grid-template-columns:1fr}.finance-unified-summary>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);column-gap:10px;padding:10px 12px;align-items:center}.finance-unified-summary>div+div{border-left:0;border-top:1px solid var(--line)}.finance-unified-summary dd,.finance-unified-summary>div>strong{font-size:20px;text-align:right;margin:0;grid-column:2;grid-row:1 / span 2}.finance-unified-summary small{grid-column:1}.finance-unified-footnote{padding:10px 14px}.finance-unified-scroll{max-height:470px}}
@media print{.finance-overview-grid{display:block}.finance-overview-grid>.panel{height:auto;max-height:none;margin-bottom:20px}.finance-wallets-body,.finance-unified-body,.finance-unified-scroll{overflow:visible;max-height:none}.finance-unified-table thead th,.finance-unified-table tfoot th,.finance-unified-table tfoot td{position:static}}
.finance-unified-controls{padding:12px 18px;border-bottom:1px solid var(--line);flex:none;background:color-mix(in srgb,var(--muted) 2%,var(--surface))}
.finance-unified-controls .finance-report-controls{display:grid;grid-template-columns:minmax(120px,1.25fr) minmax(74px,.7fr) minmax(125px,1.2fr) minmax(74px,.7fr);width:100%;gap:10px}
.finance-unified-controls .finance-report-controls select,.finance-unified-controls .finance-report-controls [data-finance-dashboard-segment]{width:100%;max-width:none}
.finance-unified-source-line{display:flex;align-items:center;gap:9px;padding:12px 18px 0;font-size:11px;color:var(--muted);flex:none}
.finance-unified .finance-order-margin{display:flex;flex-direction:column;min-height:300px;flex:1 0 auto;padding:0}
.finance-unified .finance-order-margin .finance-unified-scroll{flex:1 0 220px}
.finance-unified-table .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.finance-unified-table .finance-source-badge{display:table;margin-top:4px;padding:1px 5px;font-size:9px}
.finance-unified-footnote p{margin:0}.finance-unified-footnote p+p{margin-top:4px}
.finance-unified .finance-calculation-help{margin:0;border:0;border-radius:0;border-top:1px solid var(--line)}
.finance-unified .finance-calculation-help>summary{padding:12px 18px}
@media(max-width:600px){.finance-unified-controls{padding:12px}.finance-unified-controls .finance-report-controls{grid-template-columns:1fr 1fr}.finance-unified-summary .finance-metric-number{font-size:20px;letter-spacing:-.3px}.finance-unified .finance-order-margin{min-height:0}.finance-unified .finance-order-margin .finance-unified-scroll{flex:none}}
.finance-unified .finance-order-margin{flex:none;min-height:0}
.finance-unified .finance-order-margin .finance-unified-scroll{flex:none;height:330px;min-height:0}
@media(min-width:1900px){.finance-unified .finance-order-margin .finance-unified-scroll{height:370px}}
@media(max-width:1150px){.finance-unified .finance-order-margin .finance-unified-scroll{height:auto;max-height:480px}}

@media(min-width:1151px){.finance-unified-summary>div>span{min-height:31px}.finance-overview-grid .finance-wallet-table .finance-number{font-size:12px}}
/* iPhone audit UI-013: the explanations of «Денежный поток Pakovia» keep the panel's side margins, like its table and «Как считается» */
.finance-unified-detail-body>p{margin:var(--space-3) var(--space-4)}
/* the account of a company opened from «Кошельки» (30.11.2026): its payment channels, each with its balance */
.finance-company-channels h4{margin:0 0 var(--space-1);font-size:var(--fs-caption);font-weight:600;color:var(--ink-2)}
.finance-company-channels ul{margin:0;padding:0;list-style:none}
.finance-company-channels li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--space-1) var(--space-3);padding:var(--space-1) 0;border-top:1px solid var(--line)}
.finance-company-channels li:first-child{border-top:0}
.finance-company-channels li strong{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}


/* finance-statements.css */
.finance-statements{min-width:0;overflow:hidden;margin-top:18px}
.finance-statements-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:18px 22px}
.finance-statements-head>div:first-child{flex:1;min-width:240px}
.finance-statements-head p{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--muted);font-weight:400}
.finance-statements-controls{display:flex;gap:9px;flex-wrap:wrap}
.finance-statements-controls label{display:grid;gap:4px;font-size:11px;color:var(--muted);margin:0}
.finance-statements-controls select{width:auto;min-width:95px;min-height:35px;padding:6px 9px;font-size:12px;background:var(--surface);color:var(--text);border-radius:7px}
.finance-statements-notice{margin:0;padding:12px 22px;background:color-mix(in srgb,var(--accent) 5%,var(--surface));font-size:12px;line-height:1.6;color:var(--text);border-bottom:1px solid var(--line)}
.finance-statements-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;font-size:11px;color:var(--muted)}
.finance-statements-reference{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0;margin:0;padding:0 22px}
.finance-statements-reference>div{padding:10px 16px 10px 0;border-top:1px solid var(--line);min-width:0}
.finance-statements-reference dt{font-size:11px;color:var(--muted);line-height:1.5}
.finance-statements-reference dt small{display:block;font-size:10px;font-weight:400}
.finance-statements-reference dd{font-size:14px;font-weight:650;margin:5px 0 0;font-variant-numeric:tabular-nums}
.finance-statements-reference dd small{display:block;margin-top:3px;font-size:10px;line-height:1.5;font-weight:400;color:var(--muted)}
.finance-statements-reference-note{font-size:11px;line-height:1.6;color:var(--muted);margin:0;padding:8px 22px 14px}
.finance-statements-channel-table,.finance-statements-import-table{width:100%;min-width:680px;border-collapse:collapse;table-layout:fixed}
.finance-statements-channel-table th,.finance-statements-channel-table td,.finance-statements-import-table th,.finance-statements-import-table td{padding:10px 14px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.5;text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.finance-statements-channel-table th:first-child,.finance-statements-channel-table td:first-child{width:32%;padding-left:22px}
.finance-statements-channel-table th:nth-child(2){width:17%}
.finance-statements-channel-table th:last-child,.finance-statements-channel-table td:last-child{padding-right:22px}
.finance-statements-channel-table thead th,.finance-statements-import-table thead th{font-size:10px;font-weight:600;color:var(--muted);background:var(--surface2,var(--surface))}
.finance-statements-channel-table tbody th{font-weight:500}
.finance-statements-channel-table .finance-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-statements-channel-table small,.finance-statements-import-table small{display:block;font-size:10px;font-weight:400;color:var(--muted);white-space:normal}
.finance-statements-diagnostics,.finance-statements-sources{border-top:1px solid var(--line)}
.finance-statements-diagnostics summary,.finance-statements-sources summary{cursor:pointer;padding:13px 22px;font-size:12px;font-weight:600;line-height:1.5}
.finance-statements-sources summary>span{margin-left:12px;font-size:10px;color:var(--muted);font-weight:400}
.finance-statements-diagnostics>ul,.finance-statements-diagnostics>p{padding:0 22px 14px;margin:0;font-size:11px;line-height:1.6;color:var(--muted)}
.finance-statements-diagnostics ul,.finance-statement-row-notes{list-style:none}
.finance-statements-diagnostics li+li,.finance-statement-row-notes li+li{margin-top:9px}
.finance-statements-diagnostics li strong,.finance-statements-diagnostics li small,.finance-statements-diagnostics li span,.finance-statements-diagnostics li code,.finance-statement-row-notes li strong,.finance-statement-row-notes li small{display:block}
.finance-statements-diagnostics li strong{color:var(--text);font-weight:500}
.finance-statements-sources-body{padding:0 22px 18px;font-size:11px;line-height:1.6;color:var(--muted)}
.finance-statements-sources-body>p{margin:0 0 12px}
.finance-statements-sources ul{list-style:none;margin:0 0 14px;padding:0}
.finance-statements-sources li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.finance-statements-sources li strong{color:var(--text);font-weight:600}
.finance-statements-sources li small{display:block;font-size:10px}
.finance-statements-sources code{font-size:10px;overflow-wrap:anywhere}
.finance-statements-upload-hint{margin-left:9px;font-size:10px}
.finance-statements-error{padding:18px 22px;font-size:12px}
.finance-statements-error p{color:var(--red);margin:0 0 10px;white-space:pre-wrap}
.finance-statement-detail-dialog .finance-statements-notice,.finance-statement-import-dialog .finance-statements-notice{padding:12px 14px;border:1px solid var(--line);border-radius:8px;margin-bottom:14px}
.finance-statement-row{border:1px solid var(--line);border-radius:9px;padding:14px;margin:0 0 12px;min-width:0}
.finance-statement-row header{display:flex;justify-content:space-between;gap:10px;font-size:13px;line-height:1.5}
.finance-statement-row header>span{color:var(--muted);font-size:11px}
.finance-statement-provenance{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.finance-statement-row dl{display:flex;flex-wrap:wrap;gap:12px 24px;margin:12px 0;font-size:11px}
.finance-statement-row dt{color:var(--muted);font-size:10px}
.finance-statement-row dd{margin:4px 0 0;font-size:12px;font-variant-numeric:tabular-nums}
.finance-statement-row code{font-size:9px;color:var(--muted);font-weight:400}
.finance-statement-row dd small{font-size:10px;color:var(--muted);font-weight:400}
.finance-statement-row-context{font-size:11px;color:var(--muted);line-height:1.5;margin:8px 0 0}
.finance-statement-row-channels{list-style:none;padding:0;margin:0;font-size:11px}
.finance-statement-row-channels li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-top:1px solid var(--line)}
.finance-statement-row-channels li>span{min-width:0;overflow-wrap:anywhere}
.finance-statement-row-channels strong{text-align:right;font-weight:500;min-width:100px;font-variant-numeric:tabular-nums}
.finance-statement-row-channels strong small{color:var(--muted);font-size:9px;font-weight:400}
.finance-statement-comment{margin:12px 0 0;padding:9px 11px;background:var(--surface2,var(--surface));border-radius:6px;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.finance-statement-row-notes{font-size:10px;color:var(--muted);padding:0;margin:10px 0 0}
.finance-statement-pages{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:var(--muted);padding-top:10px}
.finance-statement-pages>div{display:flex;align-items:center;gap:12px}
.finance-statements-import-table{min-width:580px;margin:12px 0}
.finance-statements-import-table th:first-child{width:22%}.finance-statements-import-table th:nth-child(2){width:32%}
.finance-statement-import-dialog [data-finance-import-progress]{font-size:12px;line-height:1.6}
@media(max-width:800px){.finance-statements-head{padding:15px 16px}.finance-statements-head>div:first-child{flex-basis:100%}.finance-statements-controls{width:100%}.finance-statements-controls label{flex:1}.finance-statements-controls select{width:100%;min-width:0}.finance-statements-notice{padding:12px 16px}.finance-statements-selection{padding:12px 16px;flex-wrap:wrap}.finance-statements-reference{padding:0 16px}.finance-statements-reference-note{padding:8px 16px 12px}.finance-statements-channel-table th:first-child,.finance-statements-channel-table td:first-child{padding-left:16px}.finance-statements-channel-table th:last-child,.finance-statements-channel-table td:last-child{padding-right:16px}.finance-statements-diagnostics summary,.finance-statements-sources summary{padding:12px 16px}.finance-statements-diagnostics>ul,.finance-statements-diagnostics>p{padding:0 16px 12px}.finance-statements-sources-body{padding:0 16px 16px}.finance-statements-sources li{align-items:flex-start;flex-direction:column;gap:3px}.finance-statement-pages{flex-wrap:wrap}.finance-statements-upload-hint{display:block;margin:6px 0 0}}
@media(max-width:520px){.finance-statements h2{font-size:16px}.finance-statements-controls{gap:7px}.finance-statements-controls label:nth-child(2){flex:2}.finance-statements-controls label:last-child{flex-basis:100%}.finance-statements-reference{display:block}.finance-statements-reference>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0}.finance-statements-reference dd{text-align:right;margin:0}.finance-statement-row header{flex-wrap:wrap}.finance-statement-row-channels li{gap:7px}.finance-statement-row-channels strong small{display:block}}
/* Archive figures stay readable on a wide screen and never imply a cash posting. */
.finance-statements{width:100%;max-width:1200px}
.finance-archive-intro{display:flex;align-items:center;gap:10px;padding:16px 22px 8px}
.finance-archive-intro p{margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
.finance-archive-badge{flex:none;font-size:10px;line-height:1.5;font-weight:700;padding:4px 9px;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:20px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--text)}
.finance-archive-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:12px 22px}
.finance-archive-metrics>div{padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0;background:var(--surface)}
.finance-archive-metrics dt{font-size:12px;line-height:1.5;color:var(--muted)}
.finance-archive-metrics dd{margin:7px 0 3px;font-size:clamp(18px,1.8vw,24px);font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.4}
.finance-archive-metrics small{font-size:10px;color:var(--muted);line-height:1.5}
.finance-archive-metrics .finance-archive-result{background:color-mix(in srgb,var(--accent) 7%,var(--surface));border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.finance-archive-metrics .finance-archive-result small strong{font-size:14px;color:var(--text);margin-left:4px;font-variant-numeric:tabular-nums}
.finance-archive-coverage{margin:0;padding:0 22px 16px;color:var(--muted);font-size:11px;line-height:1.6}
.finance-archive-table{width:100%;min-width:710px;table-layout:fixed;border-collapse:collapse}
.finance-archive-table th,.finance-archive-table td{font-size:12px;line-height:1.5;padding:12px 14px;vertical-align:middle;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
.finance-archive-table th:first-child,.finance-archive-table td:first-child{width:20%;padding-left:22px}
.finance-archive-table th:last-child,.finance-archive-table td:last-child{width:15%;padding-right:22px}
.finance-archive-table thead th{font-size:10px;color:var(--muted);font-weight:650;background:var(--surface2,var(--surface));border-top:1px solid var(--line)}
.finance-archive-table tbody th{font-weight:600}
.finance-archive-table .finance-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-archive-table thead .finance-number{white-space:normal}
.finance-archive-table small{display:block;white-space:normal;margin-top:3px;font-size:9px;color:var(--muted);font-weight:400;line-height:1.5}
.finance-archive-table .finance-archive-profit{background:color-mix(in srgb,var(--accent) 4%,var(--surface))}
.finance-archive-table tfoot th,.finance-archive-table tfoot td{background:var(--surface2,var(--surface));font-weight:700;border-top:2px solid var(--line)}
.finance-archive-estimate .is-negative{color:var(--red)}
.finance-archive-definition{margin:0;padding:14px 22px;font-size:11px;line-height:1.7;color:var(--muted)}
.finance-archive-method,.finance-statements-raw{border-top:1px solid var(--line)}
.finance-archive-method>summary,.finance-statements-raw>summary{cursor:pointer;padding:12px 22px;font-size:12px;font-weight:600;line-height:1.5}
.finance-archive-method>div{padding:0 22px 16px;font-size:11px;color:var(--muted);line-height:1.7}
.finance-archive-method p{margin:0 0 8px}
.finance-archive-method ul{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.finance-archive-method li{border-top:1px solid var(--line);padding-top:8px;min-width:0}
.finance-archive-method li>span,.finance-archive-method li>strong,.finance-archive-method li>small{display:block;overflow-wrap:anywhere}
.finance-archive-method li>strong{font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
.finance-archive-method li>small{font-size:9px}
.finance-statements-raw-controls{padding:2px 22px 16px}
@media(max-width:800px){.finance-archive-intro{padding:14px 16px 8px;align-items:flex-start}.finance-archive-metrics{padding:10px 16px;gap:8px}.finance-archive-metrics>div{padding:12px}.finance-archive-metrics dt{font-size:11px}.finance-archive-metrics dd{font-size:18px}.finance-archive-coverage{padding:0 16px 14px}.finance-archive-table th:first-child,.finance-archive-table td:first-child{padding-left:16px}.finance-archive-table th:last-child,.finance-archive-table td:last-child{padding-right:16px}.finance-archive-definition,.finance-archive-method>summary,.finance-statements-raw>summary{padding:12px 16px}.finance-archive-method>div{padding:0 16px 14px}.finance-statements-raw-controls{padding:2px 16px 14px;width:auto}}
@media(max-width:600px){.finance-archive-metrics{grid-template-columns:1fr}.finance-archive-metrics>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:12px 14px}.finance-archive-metrics dd{grid-column:2;grid-row:1/3;margin:0;max-width:170px;text-align:right}.finance-archive-metrics small{grid-column:1}.finance-archive-intro{flex-wrap:wrap;gap:6px}.finance-statements-raw-controls label:last-child{flex-basis:auto}}


/* mobile-scanner.css */
/* Camera controls are never shown in the desktop interface. */
.mobile-scan-trigger{display:none!important}
@media (max-width:800px) and (any-pointer:coarse){
 .mobile-scan-trigger{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;padding:10px;touch-action:manipulation}
 .mobile-scan-trigger svg{width:22px;height:22px;flex:none}
}
.mobile-scanner-dialog{width:min(100%,560px);height:min(100dvh,900px);max-width:100%;max-height:100dvh;padding:0;border:0;border-radius:20px;background:var(--panel,#fff);color:var(--text,#19314e);overflow:hidden}
.mobile-scanner-dialog[open]{display:flex;flex-direction:column}
.mobile-scanner-dialog::backdrop{background:rgba(7,18,31,.74)}
.mobile-scanner-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line,#d2dbe7);flex:none}
.mobile-scanner-heading>div{display:flex;align-items:center;gap:10px;min-width:0}
.mobile-scanner-heading svg{width:24px;height:24px;flex:none;color:var(--accent,#127bb9)}
.mobile-scanner-heading h2{font-size:19px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.mobile-scanner-heading .icon-btn{width:44px;height:44px;flex:none;font-size:30px;line-height:1}
.mobile-scanner-body{padding:14px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1}
.mobile-camera-stage{position:relative;width:100%;aspect-ratio:4/3;background:#07131e;border-radius:14px;overflow:hidden}
.mobile-camera-stage video{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:50% 50%;display:block}
.mobile-camera-target{position:absolute;pointer-events:none;inset:18% 6% 26%;border:2px solid rgba(255,255,255,.94);border-radius:12px;box-shadow:0 0 0 100vw rgba(0,0,0,.28)}
.mobile-camera-target::before{content:'';position:absolute;left:6px;right:6px;top:50%;height:1px;background:rgba(37,205,237,.7)}
.mobile-camera-tools{position:absolute;left:10px;right:10px;bottom:10px;display:flex;justify-content:space-between;gap:8px}
.mobile-camera-tools button{border:1px solid rgba(255,255,255,.6);background:rgba(7,18,31,.7);color:white;border-radius:10px;min-height:44px;min-width:44px;padding:8px 12px;font-size:14px;touch-action:manipulation}
.mobile-camera-tools [data-camera-switch]{font-size:26px}
.mobile-camera-tools [aria-pressed=true]{background:#e9f8fe;color:#11456d}
.mobile-camera-tools button[hidden],.mobile-camera-zoom[hidden],.mobile-camera-choices[hidden],.mobile-camera-accepted[hidden],.mobile-camera-progress[hidden],.mobile-camera-retry[hidden],.mobile-camera-progress [hidden]{display:none!important}
.mobile-camera-zoom{display:flex;align-items:center;gap:12px;font-size:13px;margin:10px 4px 0}
.mobile-camera-zoom input{flex:1;min-width:0;min-height:44px}
.mobile-camera-status{margin:14px 2px 10px;line-height:1.45;font-size:15px;min-height:44px;overflow-wrap:anywhere}
.mobile-camera-status.error{background:var(--error-bg,#fff0ef);color:var(--error-text,#ad2838);border-radius:10px;padding:10px 12px}
/* the same label again: a warning, the list stays as it was (owner, 02.12.2026 11:27) */
.mobile-camera-status.warn{background:var(--warn-bg);color:var(--warn);border-radius:var(--r-sm);padding:var(--space-2) var(--space-3)}
.mobile-camera-status.ok{background:var(--ok-bg);color:var(--ok);border-radius:var(--r-sm);padding:var(--space-2) var(--space-3);font:var(--text-strong)}
.mobile-camera-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;background:var(--surface-selected,#e7f5fc);border:1px solid var(--line,#d2dbe7);border-radius:12px;padding:12px;margin:0 0 12px;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.mobile-camera-progress-time{min-width:46px;text-align:center;font-variant-numeric:tabular-nums;font-size:20px;color:var(--accent,#127bb9)}
.mobile-camera-progress-warning{grid-column:1/-1;margin:0;padding-top:8px;border-top:1px solid var(--line,#d2dbe7);font-size:13px}
.mobile-camera-progress.error{background:var(--error-bg,#fff0ef);color:var(--error-text,#ad2838)}
.mobile-camera-retry{min-height:44px;width:100%;margin:0 0 10px;touch-action:manipulation}
/* the codes the camera reads now, framed on its picture with what each one is (02.12.2026) */
.mobile-camera-marks{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.mobile-camera-mark{position:absolute;border:calc(var(--space-1) / 2) solid var(--ok);border-radius:var(--r-xs);box-shadow:0 0 0 1px var(--surface)}
.mobile-camera-mark b{position:absolute;left:0;bottom:100%;margin-bottom:var(--space-1);padding:0 var(--space-1);border-radius:var(--r-xs);background:var(--ok-bg);color:var(--ok);font:var(--text-caption);white-space:nowrap}
/* «Определить по фото»: the frame to the reader of boxes again (01.12.2026) */
.mobile-camera-look{min-height:var(--control-h);width:100%;margin:0 0 var(--space-3);touch-action:manipulation}
.mobile-camera-look[hidden]{display:none!important}
.mobile-camera-choices{display:grid;gap:8px;margin-bottom:12px}
.mobile-camera-choices .btn{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.mobile-camera-choices small{font-size:11px;color:var(--muted,#66768c);flex:none}
.mobile-camera-accepted{border:1px solid var(--line,#d2dbe7);border-radius:12px;padding:12px;margin-top:12px}
.mobile-camera-accepted h3{display:flex;justify-content:space-between;font-size:14px;line-height:1.4;margin:0 0 8px}
.mobile-camera-accepted h3 span{border-radius:30px;background:var(--surface-selected,#e7f5fc);padding:0 8px}
.mobile-camera-accepted ol{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.mobile-camera-accepted li{display:grid;gap:3px;line-height:1.35;font-size:13px;overflow-wrap:anywhere}
.mobile-camera-accepted li+li{border-top:1px solid var(--line,#d2dbe7);padding-top:7px}
.mobile-camera-accepted small{color:var(--muted,#66768c)}
.mobile-camera-privacy{font-size:12px;line-height:1.4;color:var(--muted,#66768c);margin:12px 2px 0}
.mobile-scanner-footer{display:grid;gap:8px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line,#d2dbe7);background:var(--panel,#fff);flex:none}
.mobile-scanner-footer .btn{min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;touch-action:manipulation}
.mobile-scanner-footer svg{width:22px;height:22px}
@media(max-width:600px){.mobile-scanner-dialog{height:100dvh;width:100%;margin:0;border-radius:0}.mobile-scanner-heading{padding-top:max(12px,env(safe-area-inset-top))}.mobile-camera-stage{max-height:38dvh}.mobile-scanner-body{padding:12px}.mobile-scanner-footer{grid-template-columns:1fr}.mobile-scanner-heading h2{font-size:18px}}
@media(orientation:landscape) and (max-height:540px){.mobile-camera-stage{aspect-ratio:16/9;max-height:48dvh}.mobile-scanner-footer{grid-template-columns:1fr 1fr}.mobile-scanner-heading{padding:6px 16px}}
@media print{.mobile-scan-trigger,.mobile-scanner-dialog{display:none!important}}
/* what the camera reads (owner, 02.12.2026 10:12): «Наклейка DJI» checks the product by the EAN / UPC of the label, «Серийный
   номер» only writes the S/N; under the camera — the codes the mode needs, lit as they are read */
.mobile-camera-modes{display:grid;gap:var(--space-2);margin:0 0 var(--space-3)}
/* two equal halves across the window (owner, 02.12.2026 10:39: «кнопка серийного номера справа имеет слишком много пустого места») */
:root[data-theme] .mobile-camera-modes .segments{display:grid;grid-template-columns:1fr 1fr;width:100%}
:root[data-theme] .mobile-camera-modes .segments>button{padding:0 var(--space-2);white-space:normal;text-align:center}
/* a scanner of box labels aims with the frame only, no line across it (owner, 02.12.2026 10:39: «не должен иметь полосу
   посередине. Он должен быть просто рамочкой») */
.mobile-scanner-dialog.label-scanner .mobile-camera-target::before{display:none}
.mobile-camera-mode-hint{margin:0;padding:var(--space-2) var(--space-3);border-radius:var(--r-sm);font:var(--text-small)}
.mobile-camera-mode-hint.ok{background:var(--ok-bg);color:var(--ok)}
.mobile-camera-mode-hint.warn{background:var(--warn-bg);color:var(--warn)}
.mobile-camera-need{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:var(--space-2) 0 0}
.mobile-camera-need[hidden]{display:none}
.mobile-camera-need-title{font:var(--text-caption);color:var(--ink-2)}
.mobile-camera-need-code{display:inline-flex;align-items:center;min-height:var(--space-5);padding:0 var(--space-2);border:1px solid var(--line-strong);border-radius:var(--r-full);font:var(--text-caption);color:var(--ink-2)}
.mobile-camera-need-code.seen{border-color:var(--ok);background:var(--ok-bg);color:var(--ok)}
.mobile-camera-mark.below b{bottom:auto;top:100%;margin:var(--space-1) 0 0}
.mobile-camera-mark.unused{border-color:var(--ink-3)}
.mobile-camera-mark.unused b{background:var(--surface-2);color:var(--ink-3)}
/* the count of a receipt (options.getTally): at the top of the scanner, above the camera (02.12.2026) */
.mobile-camera-tally{margin:0 0 var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--r-sm);background:var(--selected-bg);color:var(--primary);font:var(--text-strong);font-variant-numeric:tabular-nums;text-align:center}
.mobile-camera-tally[hidden]{display:none}


/* mobile-scan-fields.css */
.mobile-scan-trigger{display:none!important}
@media screen and (max-width:800px){
 .mobile-scan-trigger:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;touch-action:manipulation}
 /* The field and the camera have separate boxes: no overlay, pixel offsets or
    extra input padding, including textareas and wrapping autocomplete rows. */
 html:root body .mobile-scan-control{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:start;gap:6px;flex:1 1 0%;min-width:0;max-width:100%;width:100%;margin:0;padding:0}
 html:root body .mobile-scan-control>.mobile-scan-input{display:block;min-width:0;width:100%;max-width:100%;box-sizing:border-box;margin:0}
 html:root body .mobile-scan-control>.mobile-field-scan{position:static;inset:auto;z-index:auto;display:inline-flex;align-items:center;justify-content:center;align-self:start;flex:none;min-width:44px;max-width:44px;width:44px;min-height:44px;height:44px;margin:0;padding:10px;box-sizing:border-box;border:1px solid var(--input-border,var(--line,#b9c8dc));border-radius:9px;background:var(--surface,#fff);color:var(--accent,#0873b9);box-shadow:none;line-height:1}
 html:root body .mobile-scan-control>.mobile-field-scan>svg{flex:none;width:20px;height:20px}
 html:root body .mobile-scan-control>.mobile-field-scan:active{background:var(--surface-selected,#eaf4fa)}
 html:root body .mobile-scan-control>.mobile-field-scan:focus-visible{outline:2px solid var(--accent,#0873b9);outline-offset:2px}
 .mobile-picker-scan{margin:0 0 12px}
}
@media print{.mobile-scan-trigger{display:none!important}.mobile-scan-control{display:contents!important}}


/* product-barcodes.css */
/* EAN / UPC of a product card and «Присвоение EAN/UPC» (product-barcodes.js). Tokens only (docs/UI-RULES.md). */
.product-barcodes{display:grid;gap:var(--stack-label);border:0;margin:0;padding:0;min-width:0}
.product-barcodes legend{font:var(--text-label);color:var(--ink-2);padding:0;margin-bottom:var(--stack-label)}
.product-barcode-list{display:flex;flex-wrap:wrap;gap:var(--space-2);list-style:none;margin:0;padding:0}
.product-barcode-list[hidden]{display:none}
.product-barcode-list li{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--chip-h);padding:0 var(--space-1) 0 var(--space-3);border:1px solid var(--line);border-radius:var(--r-full);background:var(--surface-2);max-width:100%}
.product-barcode-list .icon-btn{width:var(--chip-h);height:var(--chip-h);min-width:var(--chip-h);min-height:var(--chip-h)}
.product-barcode-format{font:var(--text-caption);color:var(--ink-3);white-space:nowrap}
.product-barcode-code{font-family:var(--font-mono);font-size:var(--fs-body);color:var(--ink);overflow-wrap:anywhere}
.product-barcode-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-2);align-items:center}
.product-barcode-entry input{font-family:var(--font-mono);min-width:0}
.product-barcode-entry .btn{white-space:nowrap}

.batch-scan{display:grid;gap:var(--stack-field);min-width:0}
.batch-scan-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-2);align-items:end}
.batch-scan-entry:has(> :only-child){grid-template-columns:minmax(0,1fr)}
.batch-scan-field{display:grid;gap:var(--stack-label);min-width:0}
.batch-scan-field input{font-family:var(--font-mono);font-size:var(--fs-input);min-width:0}
.batch-scan-status{margin:0;padding:var(--space-2) var(--space-3);border-radius:var(--r-sm);background:var(--surface-2);color:var(--ink);font:var(--text-body);overflow-wrap:anywhere}
.batch-scan-status.ok{background:var(--ok-bg);color:var(--ok);font:var(--text-strong)}
.batch-scan-status.error{background:var(--bad-bg);color:var(--bad)}
.batch-scan-status.wait{background:var(--info-bg);color:var(--ink)}
.batch-scan-status[hidden]{display:none}
/* «Сканировать наклейку» in «Приёмка на склад»: the code field, the camera and what the last scan did, over the goods */
.receipt-label{display:grid;gap:var(--space-2);min-width:0;margin:0;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface-2)}
.receipt-label-title{font:var(--text-group);color:var(--ink)}
.receipt-label .modal-hint{margin:0}
.batch-scan-body{display:grid;gap:var(--space-3);min-width:0}
.batch-scan-current{display:flex;align-items:center;gap:var(--space-2);margin:0;padding:var(--space-2) var(--space-3);border:1px solid var(--accent-line);border-radius:var(--r-sm);background:var(--surface-2);color:var(--ink);font:var(--text-body)}
.batch-scan-current svg{flex:none}
.batch-scan-group{display:grid;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);min-width:0}
.batch-scan-group.current{border-color:var(--accent-line);box-shadow:inset 0 0 0 1px var(--accent-line)}
.batch-scan-group header{display:flex;align-items:center;gap:var(--space-2);min-width:0}
.batch-scan-group header strong{flex:1;min-width:0;overflow-wrap:anywhere;font:var(--text-strong)}
.batch-scan-count{flex:none;padding:0 var(--space-2);border-radius:var(--r-full);background:var(--surface-2);font:var(--text-label);color:var(--ink-2);white-space:nowrap}
.batch-scan-qty{display:inline-flex;gap:var(--space-1)}
.batch-scan-serials{display:flex;flex-wrap:wrap;gap:var(--space-2);list-style:none;margin:0;padding:0}
.batch-scan-serials li{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--chip-h);padding:0 0 0 var(--space-3);border:1px solid var(--line);border-radius:var(--r-full);background:var(--surface-2);font-family:var(--font-mono);font-size:var(--fs-small);max-width:100%}
.batch-scan-serials li span{overflow-wrap:anywhere}
.batch-scan-serials .icon-btn,.batch-scan-group header .icon-btn,.batch-scan-unknown .icon-btn{width:var(--chip-h);height:var(--chip-h);min-width:var(--chip-h);min-height:var(--chip-h)}
.batch-scan-unknown{display:grid;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--warn);border-radius:var(--r-md);background:var(--warn-bg)}
.batch-scan-unknown h3{margin:0;font:var(--text-label);color:var(--ink)}
.batch-scan-unknown ul{display:grid;gap:var(--space-2);list-style:none;margin:0;padding:0}
.batch-scan-unknown li{display:grid;gap:var(--space-2)}
.batch-scan-unknown-code{display:flex;align-items:center;gap:var(--space-2);font-family:var(--font-mono)}
.batch-scan-unknown-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}
.batch-scan-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-2);align-items:end}
.batch-scan-link[hidden]{display:none}
.batch-scan-link label{display:grid;gap:var(--stack-label);min-width:0}
.batch-scan-empty{margin:0;padding:var(--space-4);border:1px dashed var(--line-strong);border-radius:var(--r-md);color:var(--ink-3);text-align:center;font:var(--text-body)}
.batch-scan-total{margin:0;color:var(--ink-2);font:var(--text-body)}
.batch-scan-tools{display:flex;justify-content:flex-start}
@media (max-width:800px){
 .batch-scan-entry,.batch-scan-link,.product-barcode-entry{grid-template-columns:minmax(0,1fr)}
 .batch-scan-entry .btn,.batch-scan-link .btn{width:100%}
}
/* «Сканировать наклейки» in «Быстрое оприходование»: under «Валюта», in the row of «Склад» */
.quick-receipt-side{display:grid;align-self:stretch;align-content:space-between;gap:var(--space-3);min-width:0;height:100%}
.quick-label-camera{width:100%;min-width:0;padding-inline:var(--space-2)}
.quick-label-camera>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* «EAN / UPC» of a product card on a phone: the camera beside the code, «Добавить код» under them (owner, 01.12.2026 19:36) */
@media (max-width:800px){
 .product-barcode-entry.has-camera{grid-template-columns:minmax(0,1fr) auto}
 .product-barcode-entry.has-camera [data-barcode-add]{grid-column:1 / -1}
 .product-barcode-camera{width:var(--control-h);min-width:var(--control-h);padding:0;justify-content:center}
}
/* «Присвоение EAN/UPC»: a new label — its codes together, the products it can be (the surest first), «Другой товар» */
.batch-scan-unknown-code{flex-wrap:wrap}
.batch-scan-unknown-one{display:inline-flex;align-items:center;gap:var(--space-2);min-width:0}
.batch-scan-offers{display:grid;gap:var(--space-2)}
.batch-scan-offers>small{font:var(--text-caption);color:var(--ink-2)}
.batch-scan-offers .btn{display:grid;justify-content:start;justify-items:start;gap:0;width:100%;min-width:0;text-align:left;white-space:normal;height:auto;padding-block:var(--space-2)}
.batch-scan-offers .btn>small{font:var(--text-caption);color:inherit}
/* «Присвоение EAN/UPC»: the boxes whose codes went into their cards (02.12.2026) */
.batch-scan-done ul{display:grid;gap:var(--space-2);list-style:none;margin:0;padding:0}
.batch-scan-done li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-3);align-items:start;min-width:0;overflow-wrap:anywhere;font:var(--text-body)}
.batch-scan-done li strong{font:var(--text-strong)}
.batch-scan-done li small{font:var(--text-caption);color:var(--ink-2)}
/* the reworked scanner (owner, 02.12.2026 12:45): a known product — green; codes added by the SKU of the box — blue */
.batch-scan-done-text{display:grid;gap:0;min-width:0}
.batch-scan-done-mark{display:grid;place-items:center;width:var(--control-h-sm);height:var(--control-h-sm);border-radius:var(--r-full);background:var(--ok-bg);color:var(--ok)}
.batch-scan-done-mark svg{width:var(--icon);height:var(--icon)}
.batch-scan-done li.linked .batch-scan-done-mark{background:var(--info-bg);color:var(--info)}
.batch-scan-done li.known small>b{color:var(--ok)}
.batch-scan-done li.linked small>b{color:var(--info)}
.batch-scan-steps{margin:0;color:var(--ink-2);font:var(--text-small)}
.batch-scan-waiting{border-color:var(--info);background:var(--info-bg)}


/* order-dispatch-settings.css */
.order-dispatch-settings{padding:20px}
.order-dispatch-intro{display:grid;grid-template-columns:minmax(180px,280px) 1fr;gap:20px;align-items:end;margin-bottom:20px}
.order-dispatch-intro p,.order-dispatch-settings>p{margin:0;line-height:1.5;font-size:13px}
.order-dispatch-stores{display:grid;gap:16px;margin-bottom:20px}
.order-dispatch-store{border:1px solid var(--line,#cbd5e1);border-radius:12px;overflow:hidden}
.order-dispatch-store h3{margin:0;padding:12px 16px;font-size:15px;background:var(--surface-2,#f1f4f9);border-bottom:1px solid var(--line,#cbd5e1)}
.order-dispatch-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.order-dispatch-choice{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;padding:16px;min-width:0}
.order-dispatch-choice+.order-dispatch-choice{border-left:1px solid var(--line,#cbd5e1)}
.order-dispatch-choice>.muted{font-size:12px;grid-column:1}
.order-dispatch-choice>strong{font-size:14px;grid-column:1;overflow-wrap:anywhere}
.order-dispatch-choice>button{grid-column:2;grid-row:1/3}
.order-dispatch-choice.is-unused>strong{font-weight:500;font-size:13px}
@media(max-width:700px){.order-dispatch-settings{padding:12px}.order-dispatch-intro,.order-dispatch-choices{grid-template-columns:1fr}.order-dispatch-intro{gap:12px}.order-dispatch-choice+.order-dispatch-choice{border-left:0;border-top:1px solid var(--line,#cbd5e1)}}


/* wallets.css */
/* Wallets: charge fields in expense forms, wallet cards, spending plans, supplier payments. */
.wallet-charge{border:1px solid var(--line,#d8dee8);border-radius:12px;padding:12px 14px;margin:12px 0;display:grid;gap:10px;min-width:0}
.wallet-charge legend{padding:0 6px;font-weight:600}
.wallet-plan-note{border-left:3px solid #d97706;background:rgba(217,119,6,.10);border-radius:8px;padding:8px 12px;font-size:14px}
.wallet-plan-note ul{margin:6px 0 0;padding-left:18px}
.wallet-debt-note,.wallet-debt{color:#b42318}
.pk-wallet-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;padding:4px 0 2px}
.pk-wallet-card{border:1px solid var(--line,#d8dee8);border-radius:14px;padding:14px;display:grid;gap:10px;min-width:0}
.pk-wallet-card header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.pk-wallet-card h3{margin:0 0 2px;font-size:16px}
.pk-wallet-card h4{margin:0 0 6px;font-size:13px;font-weight:600}
.pk-wallet-card small{color:var(--muted,#667085);display:block}
.pk-wallet-card-balance{white-space:nowrap;font-size:16px}
.pk-wallet-card ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.pk-wallet-card li{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;font-size:14px}
.wallet-plan-actions,.pk-wallet-card-actions{display:flex;flex-wrap:wrap;gap:6px}
.pk-wallet-card-recent summary{cursor:pointer;font-size:13px;color:var(--muted,#667085)}
.wallet-access-list{border:1px solid var(--line,#d8dee8);border-radius:12px;padding:10px 14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px;max-height:260px;overflow:auto}
.purchase-payments tr.is-voided td{color:var(--muted,#667085);text-decoration:line-through}
.purchase-payments tr.is-voided td:last-child{text-decoration:none}
.wallet-empty{padding:4px 0 8px}
@media (max-width:640px){.pk-wallet-cards{grid-template-columns:1fr}.pk-wallet-card header{flex-direction:column}}
.pk-wallet-check{display:flex!important;align-items:center;gap:8px;font-weight:500}
.pk-wallet-check input[type=checkbox]{width:16px;min-height:16px;height:16px;flex:0 0 16px}
.pk-wallet-card strong{display:inline;font-size:inherit;margin:0}
.pk-wallet-card p{margin:0}

tr.is-voided td{color:var(--muted,#667085)}tr.is-voided td:nth-child(3){text-decoration:line-through}
.pk-wallet-warning{margin:0 16px 12px;padding:10px 12px;border-radius:10px;background:#fff4e5;color:#8a4b00;font-size:13px}
.pk-wallet-transit{margin:0;font-size:13px;color:#9a5b00;background:#fdf2dc;border-radius:8px;padding:6px 9px}
.wallet-transfers-panel .panel-head p{margin:4px 0 0;color:var(--muted,#667085);font-size:13px}
.wallet-transfers-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fdf2dc;color:#9a5b00;font-size:12px;font-weight:700;vertical-align:middle}
.wallet-transfers-empty{margin:0;padding:16px 22px;color:var(--muted,#667085);font-size:14px}
.wallet-transfer-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.wallet-transfers-recent{border-top:1px solid var(--line,#d8dee8)}
.wallet-transfers-recent>summary{cursor:pointer;padding:12px 22px;font-size:13px;color:var(--muted,#667085)}


/* the kind of a wallet: details in the settings form, the address of a crypto wallet on its card */
.wallet-kind-fields{display:grid;gap:12px;min-width:0}
.wallet-kind-fields [hidden]{display:none!important}
.pk-wallet-card-address summary{cursor:pointer;font-size:13px;color:var(--muted,#667085)}
.pk-wallet-card-address[open]{display:grid;gap:8px}
.pk-wallet-qr{justify-self:center;background:#fff;border-radius:12px;padding:8px;line-height:0}
.pk-wallet-qr svg{width:180px;height:180px;display:block}
.pk-wallet-qr svg rect{fill:#fff!important;stroke:none!important}
.pk-wallet-qr svg path{fill:#000!important;stroke:none!important}
.pk-wallet-card-address p{font-size:13px}
.pk-wallet-cards{align-items:start}
.pk-wallet-address{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;word-break:break-all;background:var(--surface-2,rgba(100,116,139,.12));padding:8px 10px;border-radius:8px;user-select:all}
.pk-wallet-note{font-size:13px;color:var(--muted,#667085);white-space:pre-line}
/* corrected money operations */
.payment-correction-note{display:block;margin-top:4px;font-size:12px;color:var(--muted,#667085)}
.payment-correction-note.payment-correction-original{color:#b54708}
.payment-correction-action{display:block;margin-top:6px}
.payment-correction-now{margin:0 0 4px;font-size:14px;overflow-wrap:anywhere}
[data-correction-field][hidden],[data-correction-rate][hidden]{display:none!important}
[data-correction-field]{display:grid;gap:12px;min-width:0}

/* the wallets panel (owner, 17.11.2026: the cards touched the edges of the panel, the hint was oversized) */
.wallets-panel .panel-head p{margin:4px 0 0;color:var(--muted,#667085);font-size:13px;line-height:1.45}
.wallets-panel .pk-wallet-cards{padding:16px 22px 22px}
.pk-wallet-card-plans p{font-size:13px;color:var(--muted,#667085)}
.pk-wallet-card-plans h4{margin-bottom:4px}
@media (max-width:640px){.wallets-panel .pk-wallet-cards{padding:12px 14px 14px}}

/* «Кошельки» in «Финансы» after Pakovia 1 (owner, 17.11.2026): a search, grey country bands, «Компании» and «Люди»,
   compact rows with the balance on the right; a click opens the wallet. */
.wallets-board .panel-head p{margin:4px 0 0;color:var(--muted,#667085);font-size:13px;line-height:1.45}
.wallets-search{padding:0 22px 14px}
.wallets-search input{width:100%}
.wallets-board-body{display:grid;padding:0;gap:0}
.wallets-board .wgh{display:flex;justify-content:space-between;gap:12px;padding:10px 22px 6px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#667085);background:var(--surface-2,#f1f3f8);border-top:1px solid var(--line,#d8dee8);border-bottom:1px solid var(--line,#d8dee8)}
.wallets-board .wgh span{font-weight:500;text-transform:none;letter-spacing:0}
.wallets-board .wgh.sub{padding:9px 22px 5px 30px;background:none;border-top:0;font-size:12.5px;font-weight:650;color:var(--text,#172e4c);text-transform:none;letter-spacing:0}
.wallet-country[hidden],.wallet-block[hidden],.wallets-board [data-wallet-row][hidden],.wallet-company[hidden]{display:none}
/* owner, 27.11.2026 10:48: the wallets of the company grouped by the company they belong to */
.wallet-company-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-3);padding:var(--space-3) 22px var(--space-1) 30px;font:var(--text-label);color:var(--ink);border-bottom:1px solid var(--line)}
.wallet-company-head small{font:var(--text-caption);color:var(--muted)}
.wallet-owner-field{margin-bottom:var(--space-3)}
/* the owner's row in «Только отмеченные люди»: all three rights ticked and fixed (owner, 27.11.2026 16:34) */
.wallet-owner-mark{margin-left:var(--space-1);color:var(--ink-3);font:var(--text-small)}
.wallet-members-table tr.is-owner input[data-owner-locked]{cursor:default}
.wallet-line{display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;padding:12px 22px;border:0;border-bottom:1px solid var(--line,#d8dee8);background:var(--surface,#fff);color:var(--text,#172e4c);font:inherit;text-align:left;border-radius:0;min-height:0}
button.wallet-line{cursor:pointer}
button.wallet-line:hover,button.wallet-line:focus-visible{background:var(--surface-hover,#eaf2f8)}
.wallet-line-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.wallet-line-name{font-weight:650;font-size:15px;overflow-wrap:anywhere}
.wallet-line-detail{font-size:12.5px;color:var(--muted,#667085);overflow-wrap:anywhere}
.wallet-line-end{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap;flex:none}
.wallet-line-end strong{font-size:15px;font-variant-numeric:tabular-nums}
.wallet-line-end strong.is-negative{color:#b42318}
.wallet-line-end small{font-size:12px;color:var(--muted,#667085);font-variant-numeric:tabular-nums}
.wallet-line .finance-wallet-channels{margin-top:4px;font-size:12.5px}
.wallet-person{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));align-items:center;gap:8px;padding:8px 22px;border-bottom:1px solid var(--line,#d8dee8);background:var(--surface,#fff)}
.wallet-person.has-others{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr))}
.wallet-person-head{padding:6px 22px;font-size:11px;font-weight:600;color:var(--muted,#667085);text-transform:uppercase;letter-spacing:.03em}
.wallet-person-head span:not(:first-child){text-align:right;padding-right:10px}
.wallet-person-name{display:flex;align-items:center;gap:10px;font-weight:650;min-width:0}
.wallet-person-name>span:last-child{overflow-wrap:anywhere}
.wallet-person-cell{display:flex;justify-content:flex-end;align-items:center;border:0;background:none;padding:6px 10px;border-radius:10px;font:inherit;color:inherit;min-height:0;text-align:right}
button.wallet-person-cell{cursor:pointer}
button.wallet-person-cell:hover,button.wallet-person-cell:focus-visible{background:var(--surface-hover,#eaf2f8)}
.wallet-person-none{color:var(--muted,#667085)}
.wallet-person-others{flex-direction:column;align-items:flex-end;gap:4px}
.wallet-person-other{display:flex;flex-direction:column;align-items:flex-end;border:0;background:none;padding:2px 0;font:inherit;color:inherit;cursor:pointer}
.wallet-person-other small{font-size:11px;color:var(--muted,#667085)}
.wallets-board .finance-wallet-archive>summary{padding:10px 22px;font-size:13px}
.wallets-board .finance-wallet-archive[open]>summary{border-bottom:1px solid var(--line,#d8dee8)}
.wallets-search-empty{margin:0;padding:16px 22px;color:var(--muted,#667085);font-size:14px}
.finance-overview-grid.is-single{grid-template-columns:minmax(0,1fr)}
.wallet-card-dialog .modal-body{padding:16px 22px 22px}
.wallet-card-dialog .pk-wallet-card{border:0;padding:0}
.wallet-card-dialog .pk-wallet-card h3{display:none}
@media (max-width:640px){
 .wallets-search{padding:0 14px 12px}
 .wallets-board .wgh{padding:9px 14px 5px}
 .wallets-board .wgh.sub{padding:8px 14px 4px 18px}
 .wallet-company-head{padding:var(--space-2) 14px var(--space-1) 18px}
 .wallet-line{padding:11px 14px;gap:10px}
 .wallet-line-name{font-size:14px}
 .wallet-person,.wallet-person.has-others{grid-template-columns:1fr 1fr;padding:8px 14px;row-gap:2px}
 .wallet-person-name{grid-column:1/-1}
 .wallet-person-head,.wallet-person-head.has-others{display:block}
 .wallet-person-head span:not(:first-child){display:none}
 .wallet-person-cell{justify-content:flex-start;padding:4px 6px}
 .wallet-person-cell .wallet-line-end{align-items:flex-start}
 .wallet-person-name .employee-avatar{display:none}
}
.finance-wallets.wallets-board{max-width:none}
.wallets-board .finance-wallets-body{max-height:none;overflow:visible;scrollbar-gutter:auto}
.wallets-board .finance-wallet-country+.finance-wallet-country{border-top:0}
.finance-overview-grid.is-single>.panel{height:auto;max-height:none}
.wallets-search{padding-top:14px}
.wallet-person{padding:8px 12px 8px 22px}
.wallet-person-head{padding:6px 12px 6px 22px}
.wallet-person-name{font-size:15px}
@media (max-width:640px){.wallet-person{padding:8px 8px 8px 14px}.wallets-search{padding-top:12px}}
.wallet-person-kind{display:none}
.wallet-hidden-balance{color:var(--muted,#667085);font-weight:500}
@media (max-width:640px){.wallet-person-cell{flex-direction:column;align-items:flex-start;gap:0}.wallet-person-kind{display:block;font-size:11px;color:var(--muted,#667085)}}
/* A new wallet: whose it is and who uses it, in its form (owner, 23.11.2026). Tokens only (docs/UI-RULES.md). */
html:root[data-theme] .wallet-new-access{display:grid;gap:var(--space-3);min-width:0;margin-top:var(--space-2);padding-top:var(--space-4);border-top:1px solid var(--line)}
html:root[data-theme] .wallet-new-access h3{margin:0;font:var(--text-group);color:var(--ink)}
html:root[data-theme] .wallet-new-access [hidden]{display:none}
html:root[data-theme] .wallet-new-access [data-wallet-members]{display:grid;gap:var(--space-3);min-width:0}
html:root[data-theme] .wallet-new-access .modal-hint{margin:0}
html:root[data-theme] .wallets-board .panel-head>.btn{flex:none;align-self:center}
@media(max-width:800px){
 html:root[data-theme] .wallets-board .panel-head{flex-wrap:wrap;gap:var(--space-3)}
 html:root[data-theme] .wallets-board .panel-head>div{flex:1 1 100%}
 html:root[data-theme] .wallets-board .panel-head>.btn{flex:1 1 100%;min-height:var(--tap-min)}
}

/* owner, 27.11.2026 16:36: «нужно более понятное визуальное разделение. Все белое, все смешивается и непонятно, что к чему
   относится» — on the page background each company, the shared wallets and the people stand as a card of their own with a
   tinted head; «Другие» wallets of a person light up under the pointer as the cash and the card do */
.wallets-board .wallet-block{padding:var(--space-2) var(--space-4) var(--space-3);background:var(--bg)}
.wallets-board .wallet-block+.wallet-block{padding-top:0}
.wallets-board .wgh.sub{padding:var(--space-1) var(--space-1) var(--space-2);background:none;border:0}
.wallets-board :is(.wallet-company,.wallet-people){margin:0 0 var(--space-3);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:var(--surface)}
.wallets-board :is(.wallet-company,.wallet-people):last-child{margin-bottom:0}
.wallets-board .wallet-company-head{padding:var(--space-2) var(--space-4);background:var(--surface-2);border-bottom:1px solid var(--line);color:var(--ink)}
.wallets-board .wallet-company-head>span{font-weight:700}
.wallets-board .wallet-company-head small{color:var(--ink-2)}
.wallets-board .wallet-company .wallet-line{padding-left:var(--space-4);padding-right:var(--space-4)}
.wallets-board :is(.wallet-company,.wallet-people)>:last-child{border-bottom:0}
.wallets-board .wallet-people .wallet-person{padding-left:var(--space-4)}
.wallets-board .wallet-people .wallet-person-head{padding:var(--space-2) var(--space-3) var(--space-2) var(--space-4);background:var(--surface-2);color:var(--ink-2)}
.wallet-person-other{padding:var(--space-1) var(--space-2);border-radius:var(--r-sm);text-align:right}
.wallet-person-other:hover,.wallet-person-other:focus-visible{background:var(--surface-2)}
.wallet-person-other:focus-visible,button.wallet-person-cell:focus-visible{outline:0;box-shadow:var(--focus-ring)}
@media (max-width:640px){
 .wallets-board .wallet-block{padding:var(--space-2)}
 .wallets-board .wallet-company-head{padding:var(--space-2) var(--space-3)}
 .wallets-board .wallet-company .wallet-line,.wallets-board .wallet-people .wallet-person{padding-left:var(--space-3);padding-right:var(--space-3)}
 .wallets-board .wallet-people .wallet-person-head{padding-left:var(--space-3)}
 .wallets-board .wallet-person-others{grid-column:1/-1;padding-left:0;flex-direction:row;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;gap:var(--space-1) var(--space-3)}
 .wallets-board .wallet-person-other{align-items:flex-start;text-align:left}
}


/* ai-assistant.css */
/* AI assistant: launcher and conversation panel */
#ai-assistant{position:fixed;right:18px;bottom:18px;z-index:60;font-size:14px}
.ai-launch{width:52px;height:52px;border-radius:50%;border:0;background:var(--accent,#1f6feb);color:#fff;font-weight:700;font-size:15px;letter-spacing:.02em;cursor:pointer;box-shadow:0 8px 24px rgba(15,23,42,.28)}
.ai-launch:hover{filter:brightness(1.08)}
.ai-launch:focus-visible{outline:3px solid var(--accent,#1f6feb);outline-offset:3px}
.ai-panel{display:flex;flex-direction:column;width:min(400px,calc(100vw - 24px));height:min(600px,calc(100vh - 36px));background:var(--surface,#fff);color:var(--text,#101828);border:1px solid var(--line,#d0d5dd);border-radius:16px;box-shadow:0 18px 48px rgba(15,23,42,.3);overflow:hidden}
.ai-panel header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line,#d0d5dd)}
.ai-panel header span{display:flex;align-items:center;gap:6px}
.ai-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:12px;background:var(--surface-2,#f8fafc)}
.ai-intro,.ai-wait{margin:0;color:var(--muted,#667085);line-height:1.55}
.ai-wait{font-style:italic}
.ai-error{margin:0;padding:10px 12px;border-radius:10px;background:#fef3f2;color:#b42318;line-height:1.5}
.ai-turn{display:flex;flex-direction:column;gap:4px;max-width:92%}
.ai-turn.user{align-self:flex-end;align-items:flex-end}
.ai-who{font-size:11px;color:var(--muted,#667085);text-transform:uppercase;letter-spacing:.04em}
.ai-text{padding:10px 12px;border-radius:12px;background:var(--surface,#fff);border:1px solid var(--line,#d0d5dd);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.ai-turn.user .ai-text{background:var(--accent,#1f6feb);border-color:transparent;color:#fff}
.ai-photo-note{color:var(--muted,#667085)}
.ai-copy{align-self:flex-start;border:0;background:none;padding:0;color:var(--accent,#1f6feb);font-size:12px;cursor:pointer}
.ai-panel form{display:flex;flex-direction:column;gap:8px;padding:12px;border-top:1px solid var(--line,#d0d5dd)}
.ai-panel textarea{width:100%;min-height:56px;max-height:160px;resize:vertical}
.ai-actions{display:flex;flex-wrap:wrap;gap:8px}
.ai-actions [type=submit]{margin-left:auto}
/* owner, 27.11.2026 10:48: a screenshot — taken from the screen, pasted or dropped */
.ai-attach-hint{font:var(--text-caption);color:var(--muted)}
.ai-attach{cursor:pointer}
.ai-attach.disabled{opacity:.5;pointer-events:none}
.ai-attached{display:flex;align-items:center;gap:10px}
.ai-attached img{width:56px;height:56px;object-fit:cover;border-radius:8px;border:1px solid var(--line,#d0d5dd)}
@media (max-width:640px){#ai-assistant{right:10px;bottom:74px}.ai-panel{width:calc(100vw - 20px);height:min(560px,calc(100vh - 96px))}}
@media print{#ai-assistant{display:none}}
/* plugin connection form */
.plugin-connection-field{position:relative}
.plugin-connection-hint{color:var(--muted,#667085);line-height:1.5}
.plugin-connection-state{font-size:12px;color:var(--muted,#667085)}
.plugin-connection-state.set{color:#067647}
.plugin-connection-clear{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;font-size:13px}
.plugin-connection-clear input{width:auto!important}
.plugin-connection-missing{border-color:#fedf89;background:#fffaeb;color:#93370d}
.plugin-connection-test{margin:0;min-height:1.4em;line-height:1.5;overflow-wrap:anywhere}
.plugin-connection-test.ok{color:#067647}
.plugin-connection-test.error{color:#b42318}
.ai-text strong{font-weight:650}
:root[data-theme=dark] .ai-launch{color:#0c1420}
/* iPhone report 25.11.2026 (MOB-05): on a phone the round «ИИ» button floated over the status, the stock and the balance
   of the rows (earlier, iPhone audit UI-005, the pages only got room under their last line). On a phone it stands in the top
   bar beside the avatar; the floating circle is only on a computer. */
html:root[data-theme] .ai-launch-top{display:none}
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready #ai-assistant .ai-launch{display:none}
 html:root[data-theme] body.mobile-app-ready .top-tools>.ai-launch-top{position:relative;display:grid;place-items:center;flex:none;width:var(--hit);height:var(--hit);min-width:var(--hit);min-height:var(--hit);padding:0;border:0;border-radius:var(--r-full);background:transparent;box-shadow:none;color:var(--info);font:var(--text-label);letter-spacing:0;cursor:pointer}
 html:root[data-theme] body.mobile-app-ready .top-tools>.ai-launch-top::before{content:"";position:absolute;inset:calc((var(--hit) - var(--avatar)) / 2);z-index:-1;border:1px solid var(--line);border-radius:var(--r-full);background:var(--info-bg)}
 html:root[data-theme] body.mobile-app-ready .top-tools>.ai-launch-top .ai-launch-mark{top:calc((var(--hit) - var(--avatar)) / 2);right:calc((var(--hit) - var(--avatar)) / 2)}
 html:root[data-theme] body.mobile-app-ready .top-tools>.ai-launch-top{isolation:isolate}
}
/* Owner, 23.11.2026: the window shrinks into the circle and back by one button. «Свернуть» in the heading; the circle says
   that a conversation waits behind it (a quiet mark) or that an answer has come (the attention dot). Tokens only. */
html:root[data-theme] .ai-launch{position:relative}
html:root[data-theme] .ai-launch-mark{position:absolute;top:0;right:0;width:var(--space-3);height:var(--space-3);border:1px solid var(--surface);border-radius:var(--r-full);background:var(--ink-3)}
html:root[data-theme] .ai-launch-mark.new{width:var(--space-4);height:var(--space-4);background:var(--wing)}
html:root[data-theme] .ai-panel header .ai-collapse{width:var(--icon-btn);height:var(--icon-btn);flex:none;border:0;border-radius:var(--r-full);background:var(--surface-2);color:var(--ink)}
html:root[data-theme] .ai-panel header .ai-collapse svg{width:var(--icon);height:var(--icon)}
/* a phone: the window is placed by what is seen (aiFit) — over the bottom menu, or from the top of the visible part down
   to the keyboard — so its heading never leaves the screen */
@media (max-width:640px){
 html:root[data-theme] #ai-assistant.ai-fitted .ai-panel{position:fixed;left:var(--space-3);right:var(--space-3);top:var(--ai-top);width:auto;height:var(--ai-height)}
}


/* ai-readers.css */
.ai-scan-dialog{width:min(1180px,calc(100vw - 32px))}
.ai-scan-pick{display:flex;align-items:center;justify-content:center;gap:10px;padding:18px;border:1.5px dashed #b9d7e6;border-radius:12px;background:#f5fbfe;cursor:pointer;font-weight:600;color:#0b5f8e}
.ai-scan-pick:hover{border-color:#27c4e7;background:#eef9fd}
.ai-scan-pick span{display:flex;align-items:center;gap:10px}
.ai-scan-pick input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.ai-scan-pick:focus-within{outline:3px solid #27c4e7;outline-offset:2px}
.ai-scan-files{display:flex;flex-wrap:wrap;gap:6px}
.ai-scan-files:empty{display:none}
.ai-scan-file{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 10px;border-radius:999px;background:#eaf0f4;font-size:.8rem;max-width:260px}
.ai-scan-file button{border-radius:50%;width:22px;height:22px;line-height:1;font-size:1rem;color:var(--muted)}
.ai-scan-file button:hover{background:#d8e3ea;color:var(--text)}
.ai-scan-progress{margin:0;font-size:.875rem;color:#0b5f8e;font-weight:600}
.ai-scan-table{border:1px solid var(--line);border-radius:10px;max-height:56vh}
.ai-scan-table table{white-space:normal}
.ai-scan-table th{position:sticky;top:0;z-index:1;padding:10px 12px}
.ai-scan-table td{padding:10px 12px;vertical-align:top}
.ai-scan-table td small{display:block;margin-top:5px;font-size:.75rem;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.ai-scan-table input[type=number]{min-width:110px}
.ai-scan-table input[type=text]{min-width:220px}
.ai-scan-table select{min-width:150px}
.ai-scan-table tr.off td:not(.ai-scan-check){opacity:.5}
.ai-scan-check{width:34px}
.ai-scan-check input{width:18px;min-height:18px;height:18px;padding:0;accent-color:var(--accent)}
.ai-scan-table td small.ai-scan-note,.ai-scan-note{color:#9a6a12}
.ai-scan-rate{display:grid;gap:4px;margin-top:8px;font-size:.75rem;font-weight:500}
.ai-scan-rate[hidden]{display:none}
.ai-scan-warning{background:#fff6e3;border-color:#f0dcae;color:#7a5a12}
.ai-scan-facts{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f7f9fa}
.ai-scan-facts div{min-width:0}
.ai-scan-facts dt{font-size:.72rem;color:var(--muted);margin-bottom:3px}
.ai-scan-facts dd{margin:0;font-size:.875rem;font-weight:550;overflow-wrap:anywhere}
@media(max-width:760px){.ai-scan-dialog{width:calc(100vw - 12px)}.ai-scan-table table{min-width:760px}}
.ai-scan-attach{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
/* several orders of one screenshot (owner, 17.11.2026): one card per order, each becomes its own purchase */
.ai-scan-order{display:grid;gap:10px;margin:0 0 16px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}
.ai-scan-order.off>:not(.ai-scan-order-head){opacity:.5}
.ai-scan-order-head{display:flex;align-items:center;gap:10px;margin:0;font-size:.95rem;cursor:pointer}
.ai-scan-order-head input{width:18px;height:18px;min-height:18px;margin:0;flex:0 0 18px;accent-color:var(--accent)}
.ai-scan-order .ai-scan-table{max-height:none}
/* «Продажи по скриншотам»: the first comment of the order, as it will stand among the comments (owner, 02.12.2026 13:41) */
.sale-scan-comment,.sale-scan-delivery{flex-basis:100%;display:grid;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
/* the delivery read from a waybill: the address and the tracking number, each field on the whole width (02.12.2026) */
.sale-scan-delivery>label{display:grid;gap:var(--space-1);min-width:0;width:100%;margin:0}
.sale-scan-delivery>label>input{width:100%;min-width:0}
.sale-scan-comment-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}
.sale-scan-comment-head>strong{font:var(--text-label);color:var(--ink)}
.sale-scan-comment>p{margin:0;font:var(--text-body);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}


/* buyer-requests.css */
/* Requests to buyers: tabs on the suppliers page, the comparison card and its dialogs. */
.buyer-desk-muted{color:var(--muted);font-weight:500}
.buyer-desk-number{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:650;margin-right:4px}
.buyer-desk-archived td{opacity:.6}
.buyer-desk-row-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center;flex-wrap:wrap}
.buyer-desk-note{margin:0;padding:10px 22px 14px;color:var(--muted);font-size:.8rem}

.buyer-desk-card-head{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:18px 22px;margin-bottom:22px;display:grid;gap:12px}
.buyer-desk-card-head>.btn{justify-self:start}
.buyer-desk-card-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.buyer-desk-card-title h2{margin:0;font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere}
.buyer-desk-facts{margin:0;color:var(--muted);font-size:.85rem}
.buyer-desk-notes{margin:0;display:grid;gap:8px}
.buyer-desk-notes div{background:#f6f8f9;border-radius:8px;padding:9px 12px}
.buyer-desk-notes dt{font-size:.75rem;font-weight:650;color:var(--muted);margin-bottom:2px}
.buyer-desk-notes dd{margin:0;font-size:.875rem;white-space:pre-wrap;overflow-wrap:anywhere}
.buyer-desk-actions{display:flex;flex-wrap:wrap;gap:8px}

.buyer-desk-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:22px}
.buyer-desk-stat{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:14px 16px;display:grid;gap:4px;min-width:0}
.buyer-desk-stat span{font-size:.75rem;font-weight:650;color:var(--muted)}
.buyer-desk-stat strong{font-size:1.15rem;font-variant-numeric:tabular-nums}
.buyer-desk-stat small{font-size:.75rem;color:var(--muted);overflow-wrap:anywhere}

.buyer-compare-line{padding:14px 22px;border-bottom:1px solid var(--line)}
.buyer-compare-line:last-child{border-bottom:0}
.buyer-compare-head{display:flex;gap:12px;align-items:flex-start}
.buyer-compare-num{flex:none;width:26px;height:26px;border-radius:7px;background:#eaf0f4;color:#4d5a62;font-size:.8rem;font-weight:700;display:grid;place-items:center}
.buyer-compare-what{flex:1;min-width:0}
.buyer-compare-what strong{overflow-wrap:anywhere}
.buyer-compare-what small{display:block;margin-top:3px;color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.buyer-compare-target{flex:none;text-align:right;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.buyer-compare-target small{display:block;font-weight:500;color:var(--muted);font-size:.7rem}
.buyer-compare-options{margin:10px 0 0 38px;display:grid;gap:6px}
.buyer-compare-options>p{margin:0;font-size:.85rem}
.buyer-option{border:1px solid var(--line);border-radius:9px;padding:8px 12px;display:grid;gap:3px;background:#fbfcfc}
.buyer-option.chosen{border-color:#9fd3a8;background:#f3faf3}
.buyer-option-main{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline}
.buyer-option-price{font-weight:700;font-variant-numeric:tabular-nums}
.buyer-option-price.above{color:var(--red)}
.buyer-option-cost{color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums}
.buyer-option small{color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.buyer-option small a{color:var(--accent)}
.buyer-option-alt b{color:var(--text);font-weight:650}

dialog.buyer-desk-dialog{width:min(1120px,calc(100vw - 32px))}
.buyer-lines,.buyer-quote-lines,.buyer-decide{display:grid;gap:8px}
.buyer-lines-head{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.buyer-lines-head span{color:var(--muted);font-size:.8rem}
.buyer-line-row{display:grid;grid-template-columns:minmax(160px,2.2fr) minmax(120px,1.6fr) 76px 64px 124px auto minmax(110px,1.4fr) 34px;gap:6px;align-items:center}
.buyer-line-row input,.buyer-quote-fields input{min-width:0}
.buyer-line-analog{display:flex!important;align-items:center;gap:6px;font-size:.8rem;font-weight:550;white-space:nowrap;cursor:pointer}
.buyer-line-analog input{width:16px;min-height:0;height:16px;padding:0;flex:none}
.buyer-lines-actions{display:flex;gap:8px;flex-wrap:wrap}
.buyer-lines-paste{display:grid;gap:8px;justify-items:start}
.buyer-lines-paste textarea{width:100%}
.buyer-pick{border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:0;display:flex;flex-wrap:wrap;gap:8px 18px}
.buyer-pick legend{font-size:.8rem;font-weight:650;color:var(--muted);padding:0 6px}
.buyer-pick label{display:flex;align-items:flex-start;gap:8px;font-weight:550;cursor:pointer}
.buyer-pick input{width:16px;min-height:0;height:16px;padding:0;margin-top:3px;flex:none}
.buyer-pick small{display:block;color:var(--muted);font-size:.75rem;font-weight:500}
.buyer-pick p{margin:0;font-size:.85rem}
.buyer-quote-line{border:1px solid var(--line);border-radius:9px;padding:10px 12px;display:grid;gap:8px}
.buyer-quote-what small{display:block;color:var(--muted);font-size:.8rem;margin-top:2px;overflow-wrap:anywhere}
.buyer-quote-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:center}
.buyer-quote-fields .wide{grid-column:span 2}
.buyer-decide label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:8px}
.buyer-decide label small{display:block;color:var(--muted);font-size:.8rem;font-weight:500;margin-top:2px}

@media(max-width:800px){
 .buyer-desk-card-head{padding:14px}
 .buyer-compare-line{padding:12px 14px}
 .buyer-compare-options{margin-left:0}
 .buyer-line-row{grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;padding:8px}
 .buyer-line-row>input:first-child{grid-column:1/-1}
 .buyer-quote-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .buyer-decide label{grid-template-columns:1fr}
}
/* «Поставщики» — a tab of «Закупки» (owner, 21.11.2026 20:05): the choice of its three lists stands in the window of
   the tab, over the list it shows; numbers from tokens.css */
:root[data-theme] .section-tab-content>.buyer-desk-scope{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;margin:0 0 var(--space-3)}
/* the pressed choice already names the list: the heading under it stays for screen readers only */
:root[data-theme] .section-tab-content>.buyer-desk-scope~.panel>.panel-head:has(>h2:only-child){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}


/* country-summary.css */
/* One screen with the money and the stock of every country. */
.country-summary .panel-head{align-items:flex-start;flex-wrap:wrap}
.country-summary .panel-head p{margin:4px 0 0;color:var(--muted,#667085);font-size:13px}
.country-summary-total{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline;justify-content:flex-end;max-width:100%}
.country-summary-total>span:first-child{font-size:12px;font-weight:650;color:var(--muted,#667085)}
.country-summary-sum{display:inline-flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline;white-space:nowrap}
.country-summary-sum strong{font-variant-numeric:tabular-nums;font-size:15px}
.country-summary-sum em{font-style:normal;font-size:12px;color:var(--muted,#667085)}
.country-summary-debt,.country-summary-sum em.country-summary-debt{color:#b42318}
.country-summary-muted{color:var(--muted,#667085);font-size:14px;margin:0}
.country-summary-wait{padding:16px 22px}
.country-summary-country{border-top:1px solid var(--line,#d8dee8)}
.country-summary-country:first-child{border-top:0}
.country-summary-country>summary{display:flex;gap:10px 24px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;padding:14px 22px;cursor:pointer;list-style:none}
.country-summary-country>summary::-webkit-details-marker{display:none}
.country-summary-country>summary:hover{background:#f6f8f9}
.country-summary-name{font-weight:700;font-size:15px;display:inline-flex;align-items:center;gap:8px}
/* the country row is a disclosure list with an icon and a chevron (public/disclosure.css). Owner, 17.11.2026: the figures
   form one column that starts at the same place in every row, whatever the length of the country's name — the row is a
   grid of fixed shares (icon | name | figures | chevron), so the columns of all rows coincide. */
.country-summary-country>summary[data-icon]{display:grid;grid-template-columns:18px minmax(0,1fr) minmax(0,1.6fr) 16px;column-gap:14px;align-items:center}
.country-summary-country>summary[data-icon] .country-summary-cells{justify-content:flex-start;margin:0}
.country-summary-country>summary[data-icon]::after{margin-left:0}
.country-summary-country>summary[data-icon] .country-summary-sum{min-width:112px}
.country-summary-current{color:var(--accent,#0572db);font-size:10px}
.country-summary-cells{display:flex;flex-wrap:wrap;gap:6px 22px;justify-content:flex-end}
.country-summary-body{padding:0 0 12px;background:#fbfcfc;border-top:1px solid var(--line,#d8dee8)}
.country-summary-body>.country-summary-muted{padding:14px 22px 0}
.country-summary-body td small.country-summary-debt{display:block}
.country-summary-place td{color:var(--muted,#667085);font-size:13px}
.country-summary-place td:first-child{padding-left:38px}
.country-summary-actions{display:flex;justify-content:flex-end;padding:12px 22px 0}
@media(max-width:800px){
 .country-summary-country>summary{padding:12px 14px}
 .country-summary-country>summary[data-icon]{grid-template-columns:18px minmax(0,1fr) 16px;row-gap:6px}
 .country-summary-country>summary[data-icon] .country-summary-cells{grid-column:2/3;grid-row:2}
 .country-summary-country>summary[data-icon] .country-summary-sum{min-width:0}
 .country-summary-cells,.country-summary-total{justify-content:flex-start}
 .country-summary-actions{padding:12px 14px 0}
}
/* The theme paints every summary as a link; here a summary is a row of figures. */
:root[data-theme] .country-summary .country-summary-country>summary,.country-summary .country-summary-country>summary{color:var(--text,#0c1114);font-size:inherit;line-height:inherit}
.country-summary-body th:not(:first-child){text-align:right}
/* 17.11.2026 check: in the dark theme an opened country showed light text on a white table */
:root[data-theme=dark] .country-summary-body{background:var(--surface-2);border-top-color:var(--line)}
:root[data-theme=dark] .country-summary-country>summary:hover{background:var(--surface-hover)}


/* telegram-notify.css */
/* Telegram notifications: the tag in the employee card and in the employee list, the steps in the plugin settings. */
.employee-telegram-field{display:grid;gap:4px}
.employee-telegram-field .modal-hint{margin:0}
.employee-directory .employee-telegram-state{display:block;font-size:11px;line-height:1.4;color:var(--muted)}
.employee-directory .employee-telegram-state.linked{color:#067647}
.employee-directory .employee-telegram-state.waiting{color:#93370d}
.telegram-steps{margin:14px 0 10px;padding-left:20px;display:grid;gap:6px;font-size:13px;line-height:1.5}
/* owner, 19.11.2026 18:41: «Настройки → Уведомления» — one row per event: a tick, its name, what and to whom */
:root[data-theme] .notification-settings{display:flex;flex-direction:column;gap:var(--space-3)}
:root[data-theme] .notification-settings>.modal-hint{margin:0}
:root[data-theme] .notification-event{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-3) 0 0;border-top:1px solid var(--line);cursor:pointer;font:var(--text-body)}
:root[data-theme] .notification-event>input{flex:none;width:auto;min-height:0;margin:0}
:root[data-theme] .notification-event>span{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}
:root[data-theme] .notification-event strong{font:var(--text-label);color:var(--ink)}
:root[data-theme] .notification-event small{font:var(--text-small);color:var(--ink-2)}
/* the invitation in the person's card */
:root[data-theme] .telegram-invite{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-2)}
:root[data-theme] .telegram-invite[hidden]{display:none}
:root[data-theme] .telegram-invite>.btn{align-self:flex-start}
:root[data-theme] .telegram-invite-result p{margin:0;font:var(--text-small);color:var(--ink-2)}
:root[data-theme] .telegram-invite-code{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);margin-top:var(--space-2)}
:root[data-theme] .telegram-invite-code strong{font:var(--text-label);color:var(--ink)}
:root[data-theme] .telegram-invite-code .text-link{min-width:0;overflow-wrap:anywhere}


/* parcel-tracking.css */
/* Parcel tracking: the status line under a tracking number and the list of events. */
.tracking-line{display:grid;gap:5px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2,#f7f9fa);font-size:12px;line-height:1.45}
.tracking-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.tracking-event{min-width:0;overflow-wrap:anywhere;white-space:normal}
.tracking-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tracking-meta small{margin:0}
.tracking-controls{display:flex;gap:6px;margin-left:auto}
.tracking-controls .btn{min-height:26px;padding:3px 8px;font-size:11px}
.tracking-error{color:#93370d}
.tracking-events{list-style:none;margin:0;padding:0;display:grid;gap:0}
.tracking-events li{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.45}
.tracking-events li:last-child{border-bottom:0}
.tracking-events time{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.tracking-events strong{display:block;font-weight:550;overflow-wrap:anywhere}
.tracking-events small{display:block;margin-top:2px}
@media (max-width:640px){.tracking-events li{grid-template-columns:1fr;gap:2px}.tracking-controls{margin-left:0}}


/* task-scripts.css */
/* Scripts of tasks, sources of orders, accrued rewards and the extras of the task form and card. */
dialog.task-scripts-dialog{width:min(760px,calc(100vw - 32px));max-width:760px}
dialog.task-scripts-dialog.task-rewards-pay,dialog.task-scripts-dialog.task-scripts-confirm{width:min(520px,calc(100vw - 32px))}
.task-scripts-dialog .modal-body{display:flex;flex-direction:column;gap:14px;padding:20px 22px 22px}
.task-scripts-dialog .modal-body>p{margin:0;line-height:1.6}
.task-scripts-dialog .modal-body label:not(.assignment-check){display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
.task-scripts-dialog .modal-body label.assignment-check{flex-direction:row;justify-content:flex-start;margin:0;min-width:0}
.task-scripts-dialog .modal-body label.assignment-check>span{text-align:left}
.task-scripts-dialog .modal-body input:not([type=checkbox]),.task-scripts-dialog .modal-body select,.task-scripts-dialog .modal-body textarea{width:100%;min-width:0}
.task-scripts-dialog .modal-body h3{font-size:14px;margin:0 0 10px}
.task-scripts-dialog .actions{display:flex;gap:8px;flex-wrap:wrap}
.task-scripts-dialog .form-error:empty{display:none}
.task-script-toolbar{display:flex;justify-content:flex-end}
.task-script-list{display:flex;flex-direction:column;gap:12px}
.task-script-card{border:1px solid var(--line,#dce3e7);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px}
.task-script-card.off{opacity:.7}
.task-script-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.task-script-card-head strong{font-size:14px;overflow-wrap:anywhere}
.task-script-rule{display:grid;grid-template-columns:1fr;gap:6px;margin:0;font-size:13px}
.task-script-rule>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px}
.task-script-rule dt{color:var(--muted,#647580);font-size:12px}
.task-script-rule dd{margin:0;overflow-wrap:anywhere}
.task-channel-section{border-top:1px solid var(--line,#dce3e7);padding-top:16px;display:flex;flex-direction:column;gap:8px}
.task-channel-section>p{margin:0 0 4px;font-size:12px}
.task-channel-row{display:flex;gap:8px;align-items:center}
.task-channel-row input{flex:1;min-width:0;height:36px;font-size:13px;padding:6px 10px}
.task-script-form{display:flex;flex-direction:column;gap:12px}
.task-script-form>section{border-top:1px solid var(--line,#dce3e7);padding-top:14px;display:flex;flex-direction:column;gap:10px}
.task-script-form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.task-script-set{border:1px solid var(--line,#dce3e7);border-radius:8px;padding:8px 12px 10px;margin:0;min-width:0}
.task-script-set legend{font-size:12px;font-weight:600;padding:0 6px}
.task-script-set .assignment-checklist{margin-top:4px;max-height:132px}
.task-script-form small.muted,.task-scripts-dialog small.muted{font-size:11px;color:var(--muted,#647580)}
.task-script-form p.muted{font-size:12px;line-height:1.5;margin:0;color:var(--muted,#647580)}
.task-scripts-dialog .table-wrap{margin:0}
.task-scripts-dialog td small{display:block;font-size:11px;color:var(--muted,#647580)}
.task-reward-foreign{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line,#dce3e7);border-radius:8px;padding:12px}
.task-reward-foreign[hidden]{display:none}
/* the task form: orders picker and hints */
.assignment-hint,.assignment-through{display:block;margin:2px 0 8px}
/* owner, 19.11.2026 16:50: the chosen orders are rows (number, kind, client) — the group has no frame of its own */
:root[data-theme] .assignment-orders{margin:var(--space-4) 0;padding:0;border:0;min-width:0}
:root[data-theme] .assignment-orders>legend{margin:0 0 var(--space-2);padding:0;font:var(--text-label);color:var(--ink)}
:root[data-theme] .assignment-order-chips{margin:0 0 var(--space-2)}
.assignment-order-chips:empty{display:none}
.assignment-order-hits{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.assignment-order-hits:empty{display:none}
.assignment-order-hit{display:flex;gap:10px;align-items:baseline;text-align:left;border:1px solid var(--line,#dce3e7);background:var(--surface,#fff);color:inherit;border-radius:6px;padding:7px 10px;font-size:12px;cursor:pointer}
.assignment-order-hit:hover,.assignment-order-hit:focus-visible{border-color:var(--accent,#2f6fed)}
.assignment-order-hit span{color:var(--muted,#647580)}
/* the task card */
.assignment-groups{display:block;margin-top:8px;font-size:12px;color:var(--muted,#647580)}
.assignment-order-link{cursor:pointer;color:var(--accent,#2f6fed);font:inherit;font-size:12px}
.assignment-result{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.assignment-result label{flex:1 1 240px;display:flex;flex-direction:column;gap:6px;font-size:12px;margin:0}
.assignment-result input{width:100%}
.assignment-accruals{margin-top:10px;font-size:13px}
.assignment-script>p{font-size:13px;line-height:1.55;margin:0 0 12px}
@media(max-width:700px){.task-script-rule>div{grid-template-columns:1fr;gap:2px}.task-script-form .row{grid-template-columns:1fr}.task-channel-row{flex-wrap:wrap}}
/* 17.11.2026 check: hints at the bottom of «Скрипты постановки задач» and the task's own notes had the page's body size */
.task-scripts-dialog p.muted,.task-channel-pointer{font-size:12px;line-height:1.5;margin:0;color:var(--muted,#647580)}
.assignment-section p.muted{font-size:13px;line-height:1.5;margin:0}
.assignment-accept>span{font-size:13px;color:var(--muted,#647580);align-self:center}

/* owner, 19.11.2026: «Начисления» — nothing cut off; the foot of the payment «Назад» : «Оплатить» = 1 : 2, the main one on the right */
:root[data-theme] .task-rewards-section{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-4)}
:root[data-theme] .task-rewards-section h3{margin:0;font:var(--text-group);color:var(--ink)}
:root[data-theme] .task-rewards-section .muted{margin:0}
:root[data-theme] .task-rewards-section table{white-space:normal}
:root[data-theme] .task-rewards-section :is(th,td){padding:var(--space-2) var(--space-3)}
:root[data-theme] .task-rewards-section td.num{white-space:nowrap}
:root[data-theme] .task-reward-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:var(--space-2);margin-top:var(--space-4)}
:root[data-theme] .task-reward-actions .btn{width:100%}
/* owner's audit 26.11.2026 — «разметка сценариев заданий»: the choices of a condition in two columns on a wide window, closer
   lines, a short list whole (no scroll inside the window's scroll); a long one keeps its own scroll and a search */
:root[data-theme] .task-script-set .assignment-checklist{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:0 var(--space-3);max-height:none;overflow:visible}
:root[data-theme] .task-script-set.is-long .assignment-checklist{max-height:calc(var(--control-h)*6);overflow-y:auto}
:root[data-theme] .task-script-set .assignment-check{min-height:var(--control-h);padding:0;gap:var(--space-2)}
:root[data-theme] .task-script-set .assignment-check[hidden]{display:none}
:root[data-theme] .task-script-set>[data-task-script-filter]{margin:var(--space-1) 0 var(--space-2)}


/* disclosure.css */
/* Disclosure lists (owner, 16.11.2026 19:24): every list that opens and closes shows an icon that says what is inside, its
   title, a count when there is one and a chevron on the right instead of the triangle. Generated by tools/disclosure_css.py.
   The icon is chosen where the list is drawn: <summary data-icon="…">. Variants: data-disclosure="inline" (small, inside a row or
   a cell), "menu" (a toolbar button that keeps its own chevron); <details class="disclosure-card"> — a bordered card. */
details>summary[data-icon]{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;font-weight:600}
details>summary[data-icon]::-webkit-details-marker{display:none}
details>summary[data-icon]::marker{content:''}
details>summary[data-icon]::before{content:'';flex:0 0 18px;width:18px;height:18px;background:var(--accent,#0873d8);-webkit-mask:var(--disclosure-icon) center/contain no-repeat;mask:var(--disclosure-icon) center/contain no-repeat;transform:none}
details>summary[data-icon]:not([data-disclosure=menu])::after{content:'';flex:0 0 16px;width:16px;height:16px;margin-left:auto;background:var(--muted,#647580);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .15s ease}
details[open]>summary[data-icon]:not([data-disclosure=menu])::after{transform:rotate(90deg)}
details>summary[data-icon]:focus-visible{outline:2px solid var(--accent,#0873d8);outline-offset:2px;border-radius:8px}
details>summary[data-icon] .disclosure-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:color-mix(in srgb,var(--accent,#0873d8) 14%,transparent);color:var(--text,#0c1114);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
details>summary[data-icon][data-disclosure=inline]{display:inline-flex;gap:6px;font-weight:500}
details>summary[data-icon][data-disclosure=inline]::before{flex-basis:14px;width:14px;height:14px}
details>summary[data-icon][data-disclosure=inline]::after{flex-basis:12px;width:12px;height:12px;margin-left:2px}
details>summary[data-icon][data-disclosure=menu]::before{flex-basis:16px;width:16px;height:16px;background:currentColor}
details.disclosure-card{border:1px solid var(--line,#dce3e7);border-radius:12px;background:var(--surface,#fff);margin:0 0 10px;overflow:hidden}
details.disclosure-card>summary[data-icon]{min-height:48px;padding:10px 16px;border-radius:0;font-size:15px}
:root details.disclosure-card>summary[data-icon]{color:var(--text,#0c1114)}
details.disclosure-card>summary[data-icon]::before{flex-basis:20px;width:20px;height:20px}
details.disclosure-card>summary[data-icon]:hover{background:color-mix(in srgb,var(--accent,#0873d8) 5%,transparent)}
details.disclosure-card[open]>summary[data-icon]{background:color-mix(in srgb,var(--accent,#0873d8) 10%,transparent)}
details.disclosure-card>:not(summary){margin-left:16px;margin-right:16px}
details.disclosure-card[open]>:last-child{margin-bottom:12px}
details.disclosure-card[open]>summary+*{margin-top:10px}

details>summary[data-icon="activity"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 7-7 M15 8h5v5'/%3E%3C/svg%3E")}
details>summary[data-icon="archive"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v4H3z M5 8v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8 M10 12h4'/%3E%3C/svg%3E")}
details>summary[data-icon="barcode"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5v14 M7 5v14 M10 5v14 M14 5v14 M17 5v14 M20 5v14'/%3E%3C/svg%3E")}
details>summary[data-icon="box"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-5 9 5v10l-9 5-9-5V7Zm0 0 9 5 9-5 M12 12v10 M7.5 4.5l9 5'/%3E%3C/svg%3E")}
details>summary[data-icon="braces"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4H7a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1 M16 4h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-1'/%3E%3C/svg%3E")}
details>summary[data-icon="branch"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v12 M18 3a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z M6 15a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z M18 9a9 9 0 0 1-9 9'/%3E%3C/svg%3E")}
details>summary[data-icon="briefcase"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Z M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2 M3 13h18 M12 12v2'/%3E%3C/svg%3E")}
details>summary[data-icon="building"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16 M15 9h4a1 1 0 0 1 1 1v11 M3 21h18 M8 8h3 M8 12h3 M8 16h3'/%3E%3C/svg%3E")}
details>summary[data-icon="card"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3z M3 10h18 M7 15h3'/%3E%3C/svg%3E")}
details>summary[data-icon="cart"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L21 8H6 M9 20h.01 M18 20h.01'/%3E%3C/svg%3E")}
details>summary[data-icon="catalog"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v15 M12 6C9 4 5 4 2 5v15c3-1 7-1 10 1 3-2 7-2 10-1V5c-3-1-7-1-10 1 M5 9h4 M5 13h4 M15 9h4 M15 13h4'/%3E%3C/svg%3E")}
details>summary[data-icon="cell"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h18v18H3z M9 9h6v6H9z'/%3E%3C/svg%3E")}
details>summary[data-icon="checklist"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h10 M10 12h10 M10 18h10 M4 6l1.5 1.5L8 5 M4 12l1.5 1.5L8 11 M4 18l1.5 1.5L8 17'/%3E%3C/svg%3E")}
details>summary[data-icon="clipboard"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6v3H9z M8 5H6a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2 M9 12h6 M9 16h4'/%3E%3C/svg%3E")}
details>summary[data-icon="column"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v18H9z M4 3v18 M20 3v18'/%3E%3C/svg%3E")}
details>summary[data-icon="database"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c4.4 0 8 1.3 8 3s-3.6 3-8 3-8-1.3-8-3 3.6-3 8-3Z M4 6v12c0 1.7 3.6 3 8 3s8-1.3 8-3V6 M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E")}
details>summary[data-icon="filter"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6 7.5V19l-4 2v-8.5L4 5Z'/%3E%3C/svg%3E")}
details>summary[data-icon="globe"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 0-18 0 9 9 0 0 0 18 0 M3 12h18 M12 3c5 5 5 13 0 18-5-5-5-13 0-18'/%3E%3C/svg%3E")}
details>summary[data-icon="history"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 2.7-6.4L3 8 M3 3v5h5 M12 7v5l3 2'/%3E%3C/svg%3E")}
details>summary[data-icon="inbox"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l2 3h4l2-3h5 M5.5 5h13L21 13v6H3v-6l2.5-8Z'/%3E%3C/svg%3E")}
details>summary[data-icon="info"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 11v5 M12 8h.01'/%3E%3C/svg%3E")}
details>summary[data-icon="layers"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 4.5-9 4.5-9-4.5L12 3Z M3 12l9 4.5 9-4.5 M3 16.5 12 21l9-4.5'/%3E%3C/svg%3E")}
details>summary[data-icon="list"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13 M8 12h13 M8 18h13 M3 6h.01 M3 12h.01 M3 18h.01'/%3E%3C/svg%3E")}
details>summary[data-icon="message"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.5 7.5L3 21l1.5-5.5A8.5 8.5 0 1 1 21 12Z'/%3E%3C/svg%3E")}
details>summary[data-icon="money"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3z M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8 M6 12h.01 M18 12h.01'/%3E%3C/svg%3E")}
details>summary[data-icon="orders"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5v18h14V3h-3 M9 2h6v4H9z M8 10h8 M8 14h8 M8 18h5'/%3E%3C/svg%3E")}
details>summary[data-icon="page"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z M4 9h16 M9 9v11'/%3E%3C/svg%3E")}
details>summary[data-icon="pin"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21Z M12 7a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z'/%3E%3C/svg%3E")}
details>summary[data-icon="plusbox"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v10H3z M12 9.5v5 M9.5 12h5'/%3E%3C/svg%3E")}
details>summary[data-icon="qr"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h6v6H4z M14 4h6v6h-6z M4 14h6v6H4z M14 14h2v2h-2z M18 14h2 M14 18h2 M18 18h2v2h-2z'/%3E%3C/svg%3E")}
details>summary[data-icon="receipt"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2V3Z M9 8h6 M9 12h6'/%3E%3C/svg%3E")}
details>summary[data-icon="row"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h18v6H3z M3 4h18 M3 20h18'/%3E%3C/svg%3E")}
details>summary[data-icon="settings"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.8 3h4.4l.6 2.4 1.6.9 2.4-.7 2.2 3.8-1.8 1.7v1.8l1.8 1.7-2.2 3.8-2.4-.7-1.6.9-.6 2.4H9.8l-.6-2.4-1.6-.9-2.4.7L3 14.6l1.8-1.7v-1.8L3 9.4l2.2-3.8 2.4.7 1.6-.9L9.8 3Z M15.2 12a3.2 3.2 0 1 0-6.4 0 3.2 3.2 0 0 0 6.4 0Z'/%3E%3C/svg%3E")}
details>summary[data-icon="shieldcheck"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v6c0 4.5 3 7.7 7 9 4-1.3 7-4.5 7-9V6l-7-3Z M9 12l2 2 4-4'/%3E%3C/svg%3E")}
details>summary[data-icon="sidebar"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v16H3z M9 4v16'/%3E%3C/svg%3E")}
details>summary[data-icon="signature"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9 M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E")}
details>summary[data-icon="sliders"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9 M17 6h3 M4 12h3 M11 12h9 M4 18h11 M19 18h1 M15 4v4 M9 10v4 M17 16v4'/%3E%3C/svg%3E")}
details>summary[data-icon="spacing"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h11 M10 12h11 M10 18h11 M5 4v16 M3 6l2-2 2 2 M3 18l2 2 2-2'/%3E%3C/svg%3E")}
details>summary[data-icon="split"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-6 M12 15 6 9V4 M12 15l6-6V4 M3 7l3-3 3 3 M15 7l3-3 3 3'/%3E%3C/svg%3E")}
details>summary[data-icon="table"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3z M3 10h18 M3 15h18 M9 5v14 M15 5v14'/%3E%3C/svg%3E")}
details>summary[data-icon="transfer"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14 M14 4l4 4-4 4 M20 16H6 M10 12l-4 4 4 4'/%3E%3C/svg%3E")}
details>summary[data-icon="truck"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h14v13H1z M15 8h4l3 4v4h-7 M5.5 21a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5 M18.5 21a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5'/%3E%3C/svg%3E")}
details>summary[data-icon="user"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E")}
details>summary[data-icon="users"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2 M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8 M20 21v-2a4 4 0 0 0-3-3.9 M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E")}
details>summary[data-icon="userx"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M3 21a7 7 0 0 1 12.5-4.3 M17 15l4 4 M21 15l-4 4'/%3E%3C/svg%3E")}
details>summary[data-icon="wallet"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 8V4H4a2 2 0 0 0 0 4h17v13H4a2 2 0 0 1-2-2V6 M21 12h-6v5h6 M17 14.5h.01'/%3E%3C/svg%3E")}
details>summary[data-icon="warehouse"]{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V9l9-6 9 6v12 M7 21v-8h10v8 M7 17h10'/%3E%3C/svg%3E")}
/* «Настройки → Источники заказов» */
.order-source-intro{margin:0;padding:14px 22px 6px}
/* the picker of executors of a task (owner's mock-up, 16.11.2026): a heading with an icon, a search with a magnifier, cards */
.assignment-picker{border:0;padding:0;margin:16px 0}
.assignment-picker-head{display:flex;align-items:center;gap:14px;margin:0 0 14px}
.assignment-picker-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:color-mix(in srgb,var(--accent,#0873d8) 10%,transparent);color:var(--accent,#0873d8)}
.assignment-picker-icon svg{width:26px;height:26px}
.assignment-picker-head strong{display:block;font-size:18px;line-height:1.3;color:var(--text,#0c1114)}
.assignment-picker-head .assignment-hint{margin:2px 0 0;font-size:13px;color:var(--muted,#647580)}
.assignment-picker-search{position:relative;margin:0 0 12px}
.assignment-picker-search>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted,#647580);pointer-events:none}
.assignment-picker-search>input{width:100%;padding-left:42px}
.assignment-picker details.disclosure-card>small{display:block;margin-top:8px;color:var(--muted,#647580)}
.assignment-picker details.disclosure-card .assignment-checklist{margin:8px 16px 12px;max-height:240px;overflow:auto}


/* people-access.css */
/* People, warehouses and wallets (owner, 17.11.2026): the card of a person, of a warehouse, wallet rights. */
.person-roles{border:1px solid var(--line);border-radius:6px;padding:8px 12px;margin:0 0 12px;min-width:0}
.person-roles legend{font-weight:650;font-size:13px;padding:0 4px}
.person-roles .checks{display:flex;flex-wrap:wrap;gap:6px 16px}
.person-home select{width:100%}
.person-access-group{border:1px solid var(--line);border-radius:6px;margin:12px 0;overflow:hidden;min-width:0}
.person-access-group>summary{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-weight:650;font-size:13px;background:var(--surface-2);color:var(--text)}
.person-access-body{padding:8px 12px 10px}
.person-access-table{width:100%;border-collapse:collapse}
.person-access-table th,.person-access-table td{padding:6px 8px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.35;text-align:left;vertical-align:middle}
.person-access-table thead th:not(:first-child),.person-access-table td:not(:first-child){width:92px;text-align:center}
.person-access-table td small{display:block;color:var(--muted);font-size:11px}
.person-access-table input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--accent)}
.person-access-table input[type=checkbox]:disabled{opacity:.6}
.person-system-access{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}
.person-system-access h3{font-size:13px;margin:0 0 6px}
.person-system-access p{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 6px}
.wallet-access-mode{border:0;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:6px 18px}
.wallet-access-mode legend{font-weight:650;font-size:13px;margin-bottom:4px;padding:0}
.warehouse-card-details{display:flex;gap:12px;align-items:flex-start;margin-top:8px;min-width:0}
.warehouse-card-details dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0;font-size:12px;min-width:0}
.warehouse-card-details dl>div{display:contents}
.warehouse-card-details dt{color:var(--muted)}
.warehouse-card-details dd{margin:0;overflow-wrap:anywhere}
.warehouse-entrance-photo{width:96px;height:72px;object-fit:cover;border-radius:6px;border:1px solid var(--line);flex:none}
.warehouse-photo-preview img{max-width:100%;max-height:260px;border-radius:6px}
@media(max-width:700px){.person-access-table thead th:not(:first-child),.person-access-table td:not(:first-child){width:64px}.warehouse-card-details{flex-direction:column}}
.wallet-access-mode .pk-wallet-check{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.wallet-access-mode input[type=radio]{width:16px;height:16px;min-height:16px;margin:0;flex:none;accent-color:var(--accent)}
.person-system-access strong{font-size:13px}
.wallet-members-table td:first-child{text-align:left}
.employee-profile-modal .modal-body{grid-template-columns:minmax(0,1fr)}
.employee-profile-fields,.employee-access-fields,.person-access-group,.person-access-body{min-width:0;max-width:100%}
.person-access-body .table-wrap{overflow-x:auto;max-width:100%}
.person-access-table td:first-child,.person-access-table td small{white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.person-wallet-table thead th:not(:first-child),.person-wallet-table td:not(:first-child){width:54px;padding-left:4px;padding-right:4px}.person-access-table thead th{white-space:normal;font-size:11px}}
/* «Новый человек» (owner, 17.11.2026 15:31): functions, contacts, «Доступ в систему», «Заполнить по фото». */
.person-card label em,.person-card legend>em{font-style:normal;font-weight:400;color:var(--muted);font-size:12px}
.person-card label>small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin:4px 0 6px;line-height:1.4}
.person-card label>small[hidden]{display:none}
.person-functions{border:1px solid var(--line);border-radius:6px;padding:8px 12px 10px;margin:0 0 12px;min-width:0}
.person-functions legend{font-weight:650;font-size:13px;padding:0 4px}
.person-function-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px}
.person-function-grid label{display:flex;align-items:center;gap:8px;margin:0;font-weight:400;font-size:13px;min-width:0}
.person-function-grid label span{overflow-wrap:anywhere}
.person-function-grid input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;flex:0 0 auto;accent-color:var(--accent)}
.person-access-section{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.person-access-section [hidden]{display:none!important}
.person-access-now{margin:0 0 8px}
/* ── «Новый человек» / «Изменить человека» by the UI rules (docs/UI-RULES.md, «Разбор формы «Новый человек»»; owner,
   19.11.2026 13:58 «Интегрируй»): groups without frames on one left line, label→field 8, field→field 16, group→group 32;
   «Страны» — chips with the tick inside; roles — «Во всех странах» and a subgroup per country with «Выбрать все»;
   the foot «Отмена» : «Добавить человека» = 1 : 2. Only tokens (public/tokens.css). ── */
:root[data-theme] dialog.person-card-modal{width:min(var(--form-max),calc(100vw - 2 * var(--space-4)));max-width:none}
:root[data-theme] .person-card-modal .modal-head{padding:var(--space-4) var(--pad-box);gap:var(--space-3);border-bottom:1px solid var(--line)}
:root[data-theme] .person-card-modal .modal-head h2{font:var(--text-section);color:var(--ink);margin:0}
:root[data-theme] .person-card-modal .modal-body{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--pad-box)}
:root[data-theme] .person-card-modal :is(.modal-hint,.person-hint){margin:0;font:var(--text-small);color:var(--ink-2)}
:root[data-theme] .person-card-modal :is(.modal-hint,.person-hint):empty{display:none}
:root[data-theme] .person-card-modal .person-card{display:flex;flex-direction:column;gap:var(--space-6);min-width:0}
:root[data-theme] .person-card-modal :is(.person-top,.person-group,.person-group-body){display:flex;flex-direction:column;gap:var(--space-4);min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
:root[data-theme] .person-card-modal .person-group>:is(legend,summary){display:block;width:100%;padding:0;margin:0 0 var(--space-3);font:var(--text-group);color:var(--ink)}
:root[data-theme] .person-card-modal :is(label,legend,.person-sublabel) em{font:var(--text-small);font-style:normal;color:var(--ink-3)}
/* a field: label → 8 → field → 4 → hint */
:root[data-theme] .person-card-modal label:not(.btn){display:flex;flex-direction:column;gap:var(--space-2);margin:0;font:var(--text-label);color:var(--ink-2);min-width:0}
:root[data-theme] .person-card-modal label>small{display:block;margin:calc(var(--space-1) - var(--space-2)) 0 0;font:var(--text-small);color:var(--ink-2)}
:root[data-theme] .person-card-modal label>small[hidden]{display:none}
:root[data-theme] .person-card-modal .row{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4);margin:0}
@media(min-width:700px){:root[data-theme] .person-card-modal .row.person-pair{grid-template-columns:repeat(2,minmax(0,1fr))}}
:root[data-theme] .person-card-modal :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=file]),select){height:var(--control-h);min-height:var(--control-h);padding:0 var(--space-3);border:1px solid var(--line-strong);border-radius:var(--r-md);background-color:var(--surface);font:var(--text-body);color:var(--ink)}
:root[data-theme] .person-card-modal textarea{min-height:calc(var(--control-h) * 2);padding:var(--space-2) var(--space-3);border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);font:var(--text-body);color:var(--ink)}
@media(pointer:coarse){:root[data-theme] .person-card-modal :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=file]),select,textarea){font-size:max(16px,var(--fs-body))}}
/* a row with a tick: the whole row is pressed, tick 20 → 12 → text, the tick on the first line of the text */
:root[data-theme] .person-card-modal label:not(.person-chip):has(>input:is([type=checkbox],[type=radio])){flex-direction:row;align-items:flex-start;gap:var(--space-3);min-height:var(--option-h);padding:calc((var(--option-h) - var(--fs-body) * 1.5) / 2) 0;font:var(--text-body);color:var(--ink);cursor:pointer}
:root[data-theme] .person-card-modal label:not(.person-chip)>input:is([type=checkbox],[type=radio]){margin:calc((var(--fs-body) * 1.5 - var(--check)) / 2) 0 0}
:root[data-theme] .person-card-modal .person-option>span{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}
:root[data-theme] .person-card-modal .person-option>span>strong{font:var(--text-strong);color:var(--ink)}
:root[data-theme] .person-card-modal .person-option>span>small{font:var(--text-small);color:var(--ink-2)}
:root[data-theme] .person-card-modal .person-option>span>small:empty{display:none}
:root[data-theme] .person-card-modal label:has(>input:disabled){opacity:.55;cursor:not-allowed}
/* older blocks inside the card (place, work in the company, warehouses, wallets, login): no frame in a frame */
:root[data-theme] .person-card-modal :is(.physical-location-fields,.person-staff,.person-roles,.employee-access-fields,.person-access-section,.person-system-access,.person-access-group,.person-access-body,.user-brand-fields,.employee-profile-fields){margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-width:0;overflow:visible}
:root[data-theme] .person-card-modal :is(.physical-location-fields,.person-staff,.employee-access-fields,.person-access-section,.person-access-body,[data-person-without-access],[data-person-with-access]){display:flex;flex-direction:column;gap:var(--space-4)}
:root[data-theme] .person-card-modal :is([data-person-without-access],[data-person-with-access])[hidden]{display:none}
:root[data-theme] .person-card-modal .physical-location-fields>legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root[data-theme] .person-card-modal .person-staff>legend{display:block;width:100%;padding:0;margin:0 0 var(--space-3);font:var(--text-label);color:var(--ink-2)}
:root[data-theme] .person-card-modal .checks{display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;margin-top:calc(0px - var(--space-4))}
:root[data-theme] .person-card-modal .person-access-group>summary{display:flex;align-items:center;gap:var(--space-2);min-height:var(--option-h);padding:0;background:none;font:var(--text-label);color:var(--ink-2)}
:root[data-theme] .person-card-modal .person-access-group[open]>summary{margin-bottom:var(--space-1)}
:root[data-theme] .person-card-modal .person-system-access h3{margin:0 0 var(--space-2);font:var(--text-label);color:var(--ink-2)}
:root[data-theme] .person-card-modal .person-system-access p{margin:0}
/* «Страны» — chips with the tick inside, wrapping */
:root[data-theme] .person-card-modal .person-chips{display:flex;flex-direction:column;gap:var(--space-2);min-width:0;margin:0;padding:0;border:0}
:root[data-theme] .person-card-modal .person-chips>legend{display:block;width:100%;padding:0;margin:0 0 var(--space-2);font:var(--text-label);color:var(--ink-2)}
:root[data-theme] .person-card-modal .person-chip-row{display:flex;flex-wrap:wrap;gap:var(--space-2)}
:root[data-theme] .person-card-modal .person-chip-row>label.person-chip{flex-direction:row;align-items:center;gap:var(--space-2);min-height:var(--chip-h);margin:0;padding:0 var(--space-3);border:1px solid var(--line-strong);border-radius:var(--r-full);background:var(--surface);font:var(--text-body);color:var(--ink);cursor:pointer;white-space:nowrap}
:root[data-theme] .person-card-modal .person-chip-row>label.person-chip:hover{background:var(--surface-2)}
:root[data-theme] .person-card-modal .person-chip-row>label.person-chip:has(input:checked){background:var(--primary);border-color:var(--primary);color:var(--on-primary);font-weight:600}
:root[data-theme] .person-card-modal .person-chip-row>label.person-chip:has(input:focus-visible){box-shadow:var(--focus-ring)}
:root[data-theme] .person-card-modal .person-chip-row>label.person-chip>input{margin:0;accent-color:var(--on-primary)}
:root[data-theme] .person-card-modal .person-chip-row>label.person-chip>input:focus-visible{box-shadow:none}
/* roles: «Во всех странах», then a subgroup per country; heading → options 4, subgroup → subgroup 16 */
:root[data-theme] .person-card-modal .person-role-groups{display:flex;flex-direction:column;gap:var(--space-4)}
:root[data-theme] .person-card-modal .person-role-groups:empty{display:none}
:root[data-theme] .person-card-modal .person-subgroup{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}
:root[data-theme] .person-card-modal .person-subhead{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;min-height:var(--space-6)}
:root[data-theme] .person-card-modal .person-sublabel{font:var(--text-label);color:var(--ink-2)}
:root[data-theme] .person-card-modal .person-count{font:var(--text-small);color:var(--ink-3)}
:root[data-theme] .person-card-modal .person-link{margin-left:auto;min-height:var(--space-6);padding:0 var(--space-1);border:0;border-radius:var(--r-sm);background:none;font:var(--text-label);color:var(--info);cursor:pointer}
:root[data-theme] .person-card-modal .person-link:hover{text-decoration:underline}
:root[data-theme] .person-card-modal .person-option-list{display:grid;grid-template-columns:minmax(0,1fr)}
@media(pointer:fine) and (min-width:700px){:root[data-theme] .person-card-modal .person-option-list:not(.person-one-column){grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
/* «Вернуть» the roles of a country that was unticked — 5 seconds */
:root[data-theme] .person-card-modal .person-undo{display:flex;align-items:center;gap:var(--space-3);margin:0;padding:var(--space-3) var(--space-4);border-radius:var(--r-md);background:var(--info-bg);color:var(--ink);font:var(--text-small)}
:root[data-theme] .person-card-modal .person-undo[hidden]{display:none}
/* «Дополнительно» — a folded group */
:root[data-theme] .person-card-modal details.person-group>summary{float:none;display:flex;align-items:center;min-height:var(--control-h);margin:0;cursor:pointer;list-style:none}
:root[data-theme] .person-card-modal details.person-group>summary::-webkit-details-marker{display:none}
:root[data-theme] .person-card-modal details.person-group>summary::after{content:"";width:var(--space-2);height:var(--space-2);margin-left:var(--space-3);border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-25%) rotate(45deg)}
:root[data-theme] .person-card-modal details.person-group[open]>summary::after{transform:translateY(25%) rotate(-135deg)}
/* the foot: «Отмена» : the main button = 1 : 2, the main one on the right */
:root[data-theme] .person-card-modal .modal-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:var(--space-2);padding:var(--space-4) var(--pad-box) calc(var(--space-4) + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
:root[data-theme] .person-card-modal .modal-foot .btn{width:100%;min-width:0;min-height:var(--control-h)}
:root[data-theme] .person-card-modal .form-error:empty{display:none}
.people-role-labels .person-function-note{background:transparent;color:var(--muted);padding:3px 0}
.person-staff{border:1px solid var(--line);border-radius:6px;padding:8px 12px;margin:0 0 12px;min-width:0}
.person-staff legend{font-weight:650;font-size:13px;padding:0 4px}
.person-scan{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;border:1px dashed var(--line);border-radius:8px;padding:10px 12px;margin:0 0 14px;background:var(--surface-2);font-size:13px}
.person-scan[aria-busy=true]{opacity:.7}
.person-scan>label.btn{margin:0;cursor:pointer}
.person-scan-found{flex-basis:100%}
.person-scan-found:empty{display:none}
.person-scan-found p{margin:0}
.person-access-label{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.person-routes{display:block;color:var(--muted);font-size:11px;margin-top:3px;white-space:normal}
@media(max-width:700px){.person-function-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* «Своя точка / склад»: the hint and «Добавить склад» in one line (owner, 23.11.2026) */
:root[data-theme] .person-card-modal :is(.person-home-hint,.person-role-line){display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3)}
:root[data-theme] .person-card-modal :is(.person-home-hint,.person-role-line)>span{flex:1 1 var(--rail-mini);min-width:0}
@media(max-width:800px){:root[data-theme] .person-card-modal :is(.person-home-hint,.person-role-line) .person-link{min-height:var(--tap-min)}}
/* «Добавить человека» beside «Ответственный» in the form of a warehouse (owner, 23.11.2026 12:19): the same line as
   «Добавить склад» in the card of a person. The form of a warehouse has no class of its own, so the rule names the line. */
:root[data-theme] dialog .warehouse-responsible-hint{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3)}
:root[data-theme] dialog .warehouse-responsible-hint>span{flex:1 1 var(--rail-mini);min-width:0}
:root[data-theme] dialog .warehouse-responsible-hint .person-link{margin-left:auto;min-height:var(--space-6);padding:0 var(--space-1);border:0;border-radius:var(--r-sm);background:none;font:var(--text-label);color:var(--info);cursor:pointer}
:root[data-theme] dialog .warehouse-responsible-hint .person-link:hover{text-decoration:underline}
:root[data-theme] dialog .warehouse-responsible-hint .person-link:disabled{color:var(--ink-3);cursor:default;text-decoration:none}
/* «Доступ к кошелькам»: the shared wallets, each with «Задать людей»; «Добавить кошелёк» under the lists */
:root[data-theme] .person-card-modal .person-wallet-shared{display:grid;gap:var(--space-2);min-width:0}
:root[data-theme] .person-card-modal .person-wallet-shared h4{margin:0;font:var(--text-label);color:var(--ink-2)}
:root[data-theme] .person-card-modal .person-wallet-shared ul{margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:var(--r-md)}
:root[data-theme] .person-card-modal .person-wallet-shared li{display:flex;align-items:center;gap:var(--space-3);min-height:var(--row-h);padding:var(--space-1) var(--space-2) var(--space-1) var(--space-3);border-bottom:1px solid var(--line)}
:root[data-theme] .person-card-modal .person-wallet-shared li:last-child{border-bottom:0}
:root[data-theme] .person-card-modal .person-wallet-shared li>span{flex:1;display:grid;min-width:0;font:var(--text-body);color:var(--ink);overflow-wrap:anywhere}
:root[data-theme] .person-card-modal .person-wallet-shared li small{font:var(--text-small);color:var(--ink-2)}
:root[data-theme] .person-card-modal .person-wallet-shared .person-link{flex:none;white-space:nowrap}
:root[data-theme] .person-card-modal .person-wallet-shared .modal-hint{margin:0}
:root[data-theme] .person-card-modal .person-wallet-add{display:flex;margin:0}
@media(max-width:800px){
 :root[data-theme] dialog .warehouse-responsible-hint .person-link,:root[data-theme] .person-card-modal .person-wallet-shared .person-link,:root[data-theme] .person-card-modal .person-wallet-add .person-link{min-height:var(--tap-min)}
}
/* «Доступ к кошелькам» by people (owner, 23.11.2026 15:14): a group of the wallets of one owner under his name; a new
   wallet of a new person waits in the card with «Изменить» and «Убрать» (15:13) */
:root[data-theme] .person-card-modal .person-wallet-table .person-wallet-group th{padding:var(--space-3) var(--space-2) var(--space-1);border-bottom:1px solid var(--line);background:var(--surface-2);font:var(--text-label);color:var(--ink);text-align:left}
:root[data-theme] .person-card-modal .person-wallet-table .person-wallet-group th small{display:inline;margin-left:var(--space-2);color:var(--ink-3);font:var(--text-small)}
:root[data-theme] .person-card-modal .person-wallet-pending{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);margin-top:var(--space-1)}
:root[data-theme] .person-card-modal .person-wallet-pending em{padding:0 var(--space-2);border-radius:var(--r-full);background:var(--surface-2);color:var(--ink-2);font:var(--text-small);font-style:normal}
:root[data-theme] .person-card-modal .person-wallet-pending .person-link{margin-left:0}
:root[data-theme] .person-card-modal .person-wallet-pending-list{display:grid;gap:var(--space-2);margin:0;padding:0;list-style:none}
:root[data-theme] .person-card-modal .person-wallet-pending-list li,:root[data-theme] .person-card-modal .person-wallet-shared li[data-person-wallet-pending-row]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2)}
/* the name of a new wallet; its «новый · Изменить · Убрать» is a line of its own kind (.person-wallet-pending) */
:root[data-theme] .person-card-modal .person-wallet-pending-list li>span:not(.person-wallet-pending),:root[data-theme] .person-card-modal .person-wallet-shared li[data-person-wallet-pending-row]>span:not(.person-wallet-pending){display:grid;flex:1 1 var(--rail-mini);min-width:0}
:root[data-theme] .person-card-modal .person-wallet-pending-list small{color:var(--ink-3);font:var(--text-small)}
@media(max-width:800px){:root[data-theme] .person-card-modal .person-wallet-pending .person-link{min-height:var(--tap-min)}}
:root[data-theme] .person-card-modal .person-wallet-table tr.person-wallet-pending-row>td{border-bottom:0}
:root[data-theme] .person-card-modal .person-wallet-table tr.person-wallet-pending-actions>td{padding-top:0;text-align:left}
:root[data-theme] .person-card-modal .person-wallet-table tr.person-wallet-pending-actions .person-wallet-pending{margin-top:0}

/* «Смотреть как» (public/view-as.js): the strip at the top of every page while an administrator looks as a person */
.view-as-bar{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;padding:var(--space-2) var(--space-4);background:var(--warn-bg);color:var(--ink);border-top:var(--space-1) solid var(--wing);border-bottom:1px solid var(--line)}
.view-as-bar svg{width:var(--icon);height:var(--icon);flex:none;stroke:var(--warn);fill:none}
.view-as-bar p{margin:0;flex:1 1 0;min-width:0;font:var(--text-body)}
.view-as-bar b{font-weight:700}
/* «Склады по скриншотам»: what the photo also showed, one line under another */
.warehouse-scan .person-scan-found{display:grid;gap:var(--space-1)}


/* ebay.css */
/* eBay · заказы: the setup inside the plugin, «Заказы eBay» on the orders page and the eBay block of an order card. */
.ebay-plugin-dialog{width:min(860px,calc(100vw - 24px))}
.ebay-settings{border:1px solid var(--line,#dfe5ec);border-radius:12px;padding:14px 16px 16px;margin:16px 0 0;min-width:0;display:grid;gap:12px}
.ebay-settings legend{font-weight:700;padding:0 6px}
.ebay-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;align-items:start}
.ebay-settings-grid label small,.ebay-payment label small{display:block;color:var(--muted,#64748b);font-size:12px;margin-top:4px;font-weight:400}
.ebay-rates{display:grid;gap:8px}
.ebay-rates small{color:var(--muted,#64748b)}
.ebay-rate-row{display:grid;grid-template-columns:90px max-content minmax(0,160px);justify-content:start;gap:8px;align-items:center}
.ebay-rate-row input{min-width:0}
.ebay-payment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;align-items:start}
.ebay-payment>[data-ebay-pay]{display:grid;gap:10px}
.ebay-payment>[data-ebay-pay][hidden]{display:none}
.ebay-deletions{display:grid;gap:8px;margin:10px 0}
.ebay-deletion-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line,#dfe5ec)}
.ebay-deletion-row small{display:block;color:var(--muted,#64748b)}
.ebay-orders-button .order-fold-count{margin-left:6px}
.ebay-dialog{width:min(920px,calc(100vw - 24px))}
.ebay-import-actions{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}
.ebay-tabs{margin:12px 0 8px}
.ebay-list{display:grid;gap:10px;min-height:60px}
.ebay-list[aria-busy=true]{opacity:.6}
.ebay-row{border:1px solid var(--line,#dfe5ec);border-radius:12px;padding:12px 14px;display:grid;gap:8px;background:var(--surface,#fff);min-width:0}
.ebay-row.is-skipped{opacity:.8}
.ebay-row-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.ebay-row-head>div{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;min-width:0}
.ebay-row-head small{flex-basis:100%;color:var(--muted,#64748b)}
.ebay-row-total{white-space:nowrap}
.ebay-problems{margin:0;padding-left:18px;color:var(--red,#b42318)}
.ebay-notes{margin:0;padding-left:18px;color:var(--muted,#64748b)}
.ebay-items{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ebay-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:8px 14px;align-items:center;padding:8px 0;border-top:1px dashed var(--line,#dfe5ec)}
.ebay-item small{display:block;color:var(--muted,#64748b)}
.ebay-item-product small{color:var(--muted,#64748b)}
.ebay-product-picker{display:grid;gap:6px;min-width:0}
.ebay-product-picker input,.ebay-product-picker select{min-width:0;width:100%}
.ebay-phone{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px}
.ebay-address{white-space:pre-line;color:var(--muted,#64748b)}
.ebay-row-actions{display:flex;flex-wrap:wrap;gap:8px}
.ebay-row .form-error:empty{display:none}
.ebay-order-panel{border:1px solid var(--line,#dfe5ec);border-radius:12px;padding:10px 14px;margin:0 0 12px;display:grid;gap:6px;background:var(--surface,#fff)}
.ebay-order-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ebay-order-panel small{color:var(--muted,#64748b)}
.ebay-tracking{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,220px) auto;gap:10px;align-items:end}
@media(max-width:800px){
 .ebay-settings-grid,.ebay-payment,.ebay-item,.ebay-tracking{grid-template-columns:minmax(0,1fr)}
 .ebay-rate-row{grid-template-columns:70px max-content minmax(0,1fr);justify-content:stretch}
 .ebay-phone{grid-template-columns:minmax(0,1fr) 90px}
 .ebay-row-head{flex-direction:column}
}
/* «Изменять данные на eBay» and «Объявления» (owner, 18.11.2026 17:48) */
.ebay-writes{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:center;padding:10px 12px;border:1px solid var(--line,#dfe5ec);border-radius:10px;margin:0 0 10px}
.ebay-writes input{width:18px;height:18px;margin:0}
.ebay-writes span{font-weight:600}
.ebay-writes small{grid-column:2;color:var(--muted,#687279)}
.ebay-listing-tools{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 8px}
.ebay-listing-tools input[type=search]{flex:1 1 200px;min-width:0}
.ebay-subtabs{margin:0}
.ebay-listing{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center;border:1px solid var(--line,#dfe5ec);border-radius:12px;padding:10px 14px;margin:0 0 8px;background:var(--surface,#fff)}
.ebay-listing.differs{border-color:#f0b4ae;background:#fff8f7}
.ebay-listing-main{display:grid;gap:3px;min-width:0}
.ebay-listing-main strong,.ebay-listing-main small{overflow-wrap:anywhere}
.ebay-listing-main small{color:var(--muted,#687279)}
.ebay-listing-numbers{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:flex-end}
.ebay-listing-numbers>span{display:grid;justify-items:center;font-size:.75rem;color:var(--muted,#687279)}
.ebay-listing-numbers>span strong{font-size:1.05rem;color:var(--text,#16233a)}
@media(max-width:640px){.ebay-listing{grid-template-columns:minmax(0,1fr)}.ebay-listing-numbers{justify-content:flex-start}}
:root[data-theme=dark] .ebay-listing{background:var(--surface);border-color:var(--line);color:var(--text)}
:root[data-theme=dark] .ebay-listing.differs{background:#3a2023;border-color:#8a3b3b}
:root[data-theme=dark] .ebay-writes{border-color:var(--line)}
.ebay-signing{margin-top:12px}
.ebay-payout-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;margin:0 0 10px}
.ebay-payout-filters label{display:grid;gap:3px;font-size:.8rem;min-width:130px}
.ebay-payout{border:1px solid var(--line,#dfe5ec);border-radius:10px;margin:0 0 8px;background:var(--surface,#fff);overflow:hidden}
.ebay-payout-head{display:flex;justify-content:space-between;gap:10px;align-items:center;width:100%;text-align:left;border:0;background:none;color:inherit;padding:9px 12px;cursor:pointer}
.ebay-payout-main{display:grid;gap:2px;min-width:0}
.ebay-payout-main small{color:var(--muted,#687279);overflow-wrap:anywhere}
.ebay-payout-body{padding:0 12px 10px}
.ebay-transactions td small{display:block;color:var(--muted,#687279)}
.ebay-transactions .num{text-align:right;white-space:nowrap}
.ebay-payout-totals{display:grid;gap:2px;font-size:.82rem;margin:8px 0 0}
:root[data-theme=dark] .ebay-payout{background:var(--surface);border-color:var(--line);color:var(--text)}
.ebay-payout-marks{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
.ebay-payout-state{display:grid;gap:6px;margin:0 0 10px;font-size:.86rem}
.ebay-payout-state p{margin:0}
.ebay-payout-wallet{display:grid;gap:8px;margin-top:8px}

/* check of 26.11.2026: the window of the payouts keeps its height while it loads, so «Закрыть» stays where the finger is
   (it opened short and grew over the button); the write of money is a separate, confirmed step under its list */
html:root[data-theme] dialog.ebay-payouts-dialog[open]{height:min(var(--sheet-h),calc(100dvh - var(--space-7)))}
html:root[data-theme] dialog.ebay-payouts-dialog[open]>form{display:flex;flex-direction:column;height:100%;min-height:0}
html:root[data-theme] dialog.ebay-payouts-dialog[open]>form>.modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
html:root[data-theme] body.mobile-app-ready dialog.ebay-payouts-dialog[open]{height:min(var(--sheet-h),calc(var(--mobile-viewport-height,100dvh) - var(--space-7)))}
html:root[data-theme] .ebay-payout-preview{display:grid;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface-2)}
html:root[data-theme] .ebay-payout-preview p{margin:0}
html:root[data-theme] .ebay-payout-preview ul{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}
html:root[data-theme] .ebay-payout-preview li{display:flex;justify-content:space-between;gap:var(--space-3)}
html:root[data-theme] .ebay-payout-confirm{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--space-2)}
/* the window of the payouts keeps its height; what is in it starts at its top (no gap stretched between the lines) */
html:root[data-theme] dialog.ebay-payouts-dialog[open]>form>.modal-body{align-content:start}
html:root[data-theme] .ebay-payout-state{align-content:start}


/* chatbot.css */
/* Чат-бот для клиентов, OLX · сообщения: the plugin cards, «Проверить бота», «Чаты с клиентами». */
.chat-plugin-dialog{width:min(860px,calc(100vw - 24px))}
.chat-subtitle{margin:6px 0 0;font-size:.95rem}
.chat-channels{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.chat-channels li{border:1px solid var(--line,#dfe5ec);border-radius:10px;padding:10px 12px;display:grid;gap:3px}
.chat-channels li span{font-size:.85rem}
.chat-settings{border:1px solid var(--line,#dfe5ec);border-radius:12px;padding:14px 16px 16px;margin:16px 0 0;min-width:0;display:grid;gap:12px}
.chat-settings legend{font-weight:700;padding:0 6px}
.chat-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;align-items:start}
.chat-settings-grid label small{display:block;color:var(--muted,#64748b);font-size:12px;margin-top:4px;font-weight:400}
.chat-orders-button .order-fold-count{margin-left:6px}
.chat-dialog{width:min(1080px,calc(100vw - 24px))}
.chat-dialog .modal-body{gap:12px}
.chat-test-dialog{width:min(720px,calc(100vw - 24px))}
.chat-test-head{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.chat-test-head label{flex:1;min-width:200px}
.chat-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:16px;min-height:60vh}
.chat-side{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;min-width:0}
:root[data-theme] .tabs.chat-tabs,.tabs.chat-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.tabs.chat-tabs button{overflow:hidden;text-overflow:ellipsis;min-width:0}
.chat-list{display:grid;align-content:start;gap:6px;overflow:auto;max-height:64vh;min-height:80px}
.chat-list[aria-busy=true]{opacity:.6}
.chat-thread{display:grid;gap:4px;text-align:left;border:1px solid var(--line,#dfe5ec);border-radius:10px;padding:10px 12px;background:#fff;min-width:0}
.chat-thread:hover{border-color:#27c4e7}
.chat-thread.active{border-color:#27c4e7;box-shadow:0 0 0 2px #27c4e71f;background:#f2fbfe}
.chat-thread-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;min-width:0}
.chat-thread-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-thread-head small{white-space:nowrap}
.chat-thread-subject,.chat-thread-last{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;min-width:0}
.chat-thread-last{color:var(--muted,#64748b)}
.chat-thread-badges{display:flex;flex-wrap:wrap;gap:4px}
.chat-pane{display:grid;align-content:start;gap:10px;min-width:0}
.chat-thread-title{display:flex;gap:10px;align-items:center;min-width:0}
.chat-thread-title>div{display:grid;gap:2px;flex:1;min-width:0}
.chat-thread-title small a{color:var(--accent,#0572db);text-decoration:underline}
.chat-back{display:none}
.chat-messages{display:grid;align-content:start;gap:8px;max-height:46vh;overflow:auto;padding:10px;border:1px solid var(--line,#dfe5ec);border-radius:12px;background:#f7f9fa;min-height:120px}
.chat-message{display:flex}
.chat-message.ours{justify-content:flex-end}
.chat-bubble{max-width:min(78%,560px);background:#fff;border:1px solid var(--line,#dfe5ec);border-radius:12px;padding:8px 11px;display:grid;gap:4px;min-width:0}
.chat-message.ours .chat-bubble{background:#e8f6fc;border-color:#cdeaf6}
.chat-files{display:flex;flex-wrap:wrap;gap:6px}
.chat-file{display:block;line-height:0}
.chat-file img{display:block;max-width:min(260px,100%);max-height:220px;border-radius:8px;border:1px solid var(--line,#dfe5ec);object-fit:cover;background:#fff}
.chat-file-note{color:var(--muted,#687279);overflow-wrap:anywhere}
.chat-message.draft .chat-bubble{background:#fff8e8;border-color:#f1dfb3;border-style:dashed}
.chat-message.failed .chat-bubble{border-color:#eac4b9}
.chat-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem;line-height:1.5}
.chat-bubble time{font-size:.7rem;color:var(--muted,#64748b);justify-self:end}
.chat-author{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.chat-error{color:var(--red,#b3413a)}
.chat-draft{display:grid;gap:6px;min-width:min(420px,60vw)}
.chat-draft textarea{min-height:110px;font-size:.9rem}
.chat-draft>div{display:flex;gap:6px;flex-wrap:wrap}
.chat-notes{margin:0;padding:6px 10px 6px 26px;font-size:.78rem;color:var(--muted,#64748b);border-left:3px solid #cdeaf6}
.chat-offers details{border:1px solid var(--line,#dfe5ec);border-radius:10px;padding:8px 12px;background:#fff}
.chat-offers summary{cursor:pointer;font-size:.85rem;font-weight:600}
.chat-offers summary a{color:var(--accent,#0572db);text-decoration:underline}
.chat-offers pre{white-space:pre-wrap;font-family:inherit;font-size:.85rem;margin:8px 0 0}
.chat-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.chat-reply textarea{min-height:64px}
.chat-thread-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:800px){
 .chat-settings-grid{grid-template-columns:minmax(0,1fr)}
 .chat-layout{grid-template-columns:minmax(0,1fr);min-height:0}
 .chat-layout.has-thread .chat-side{display:none}
 .chat-layout:not(.has-thread) .chat-pane{display:none}
 .chat-back{display:inline-flex}
 .chat-list{max-height:none}
 .chat-messages{max-height:52vh}
 .chat-bubble{max-width:88%}
 .chat-reply{grid-template-columns:minmax(0,1fr)}
}
.assignment-chat-link{margin-top:12px}
/* 17.11.2026 check: in the dark theme the conversation list and the messages kept white cards with light text */
:root[data-theme=dark] .chat-thread{background:var(--surface);color:var(--text)}
:root[data-theme=dark] .chat-thread.active{background:var(--surface-selected)}
:root[data-theme=dark] .chat-messages{background:var(--surface-2);border-color:var(--line)}
:root[data-theme=dark] .chat-bubble{background:var(--surface);border-color:var(--line);color:var(--text)}
:root[data-theme=dark] .chat-message.ours .chat-bubble{background:#173d55;border-color:#2b6584}
:root[data-theme=dark] .chat-message.draft .chat-bubble{background:#3a3220;border-color:#7a6431}
:root[data-theme=dark] .chat-message.failed .chat-bubble{border-color:#8a4a3f}
:root[data-theme=dark] .chat-notes{border-left-color:#2b6584}
:root[data-theme=dark] .chat-offers details{background:var(--surface);border-color:var(--line)}


/* messenger.css */
/* «Мессенджер» (owner, 18.11.2026): conversations of the connected channels on a page of their own — the list, the
   conversation and the card of the lead side by side; one column at a time on a phone. */
/* no heading of its own (owner, 18.11.2026 15:15): the block reaches the bottom of the window */
.messenger{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr) minmax(220px,280px);gap:16px;height:calc(100vh - 262px);min-height:480px;align-items:stretch}
/* the platforms as the usual tabs of the system over one white block; «Только ждущие ответа» inside it (owner, 18.11.2026
   14:49 and 14:59) */
.messenger-workspace{margin-bottom:0}
.messenger-workspace>.tabs[hidden]{display:none}
.messenger-content{padding:14px 16px 16px}
.messenger-top{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:0 0 14px}
.messenger-top[hidden]{display:none}
.messenger-channel-tabs{max-width:100%;overflow:auto}
.messenger-waiting{display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-size:.875rem;font-weight:550;cursor:pointer;white-space:nowrap}
.messenger-waiting input{width:17px;min-height:17px;height:17px;margin:0;flex:none}
.messenger-side,.messenger-thread,.messenger-lead{min-width:0;min-height:0;background:var(--surface,#fff);border:1px solid var(--line,#e3e8eb);border-radius:var(--radius,12px)}
.messenger-side{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;padding:12px}
.messenger-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line,#e3e8eb);border-radius:10px;padding:0 10px;background:var(--surface,#fff)}
.messenger-search svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;color:var(--muted,#687279)}
.messenger-search input{border:0;outline:0;min-height:38px;padding:0;width:100%;background:transparent;color:inherit}
.messenger-search:focus-within{border-color:#27c4e7;box-shadow:0 0 0 2px #27c4e71f}
.messenger-tab-count{margin-left:6px;font-size:.72rem;font-weight:700;border-radius:999px;padding:1px 6px;background:#27c4e72e}
.messenger-list{display:grid;align-content:start;gap:4px;overflow:auto;min-height:80px;padding-right:2px}
.messenger-list[aria-busy=true]{opacity:.6}
.messenger-item{display:grid;gap:1px;text-align:left;border:1px solid var(--line,#e3e8eb);border-radius:8px;padding:6px 10px;line-height:1.3;background:var(--surface,#fff);color:inherit;min-width:0}
.messenger-item:hover{border-color:#27c4e7}
.messenger-item.active{border-color:#27c4e7;box-shadow:0 0 0 2px #27c4e71f;background:var(--surface-selected,#dff1f8)}
.messenger-item.waiting{border-left:3px solid #e8932c}
.messenger-item-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;min-width:0}
.messenger-item-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem}
.messenger-item-head small{white-space:nowrap;color:var(--muted,#687279);font-size:.72rem}
.messenger-item-meta{display:flex;gap:6px;align-items:center;min-width:0;font-size:.76rem}
.messenger-channel-mark{flex:none;font-size:.68rem;font-weight:700;letter-spacing:.02em;border-radius:5px;padding:1px 6px;background:var(--surface-2,#f1f3f8)}
.messenger-item-subject,.messenger-item-last{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.messenger-item-foot{display:flex;gap:6px;align-items:center;min-width:0}
.messenger-item-last{flex:1 1 auto;font-size:.76rem;color:var(--muted,#687279)}
.messenger-item-badges{flex:none;display:flex;gap:3px;max-width:60%;overflow:hidden}
.messenger-item .badge{font-size:.62rem;line-height:1.35;padding:1px 6px;white-space:nowrap}
.messenger-item-badges:empty{display:none}
.messenger-more{justify-self:center;margin:4px 0}
.messenger-setup{display:grid;gap:8px;padding:6px 2px}
.messenger-setup h3{margin:0;font-size:1rem}
.messenger-setup p{margin:0;color:var(--muted,#687279);font-size:.9rem;line-height:1.5}
.messenger-setup .btn{justify-self:start}
/* a column, not grid rows: the parts of a conversation vary (the note of a hand-over, the offers come and go), and only the
   messages stretch and scroll — the reply, the hint and the buttons always stay whole below them (owner, 18.11.2026 14:44) */
.messenger-thread{display:flex;flex-direction:column;gap:10px;padding:12px 14px}
.messenger-thread>*{flex:none;min-width:0}
.messenger-thread>.empty{margin:auto}
.messenger-thread-head{display:flex;gap:8px 10px;align-items:center;min-width:0;flex-wrap:wrap}
/* three actions can be wider than a narrow conversation: they shrink with it and wrap inside it, never run off (20.11.2026) */
.messenger-thread-head>.messenger-thread-actions{display:flex;gap:6px;flex-wrap:wrap;margin:0;flex:0 1 auto;min-width:0;max-width:100%}
/* a button with an icon and one without are the same height, also when they wrap to two rows */
.messenger-thread-head>.messenger-thread-actions>.btn{min-height:var(--option-h)}
/* «Диалог отвечен» beside the actions: on a phone the row of actions takes the whole width and wraps instead of running off */
@media (max-width:700px){.messenger-thread-head>.messenger-thread-actions{flex:1 1 100%;min-width:0}}
.messenger-thread-head>div:first-of-type{flex:1 1 140px}
.messenger-thread-head>div{display:grid;gap:2px;flex:1;min-width:0}
.messenger-thread-head small{color:var(--muted,#687279);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.messenger-back{display:none}
.messenger .chat-messages{max-height:none;height:auto;flex:1 1 0;min-height:120px}
.messenger-reply textarea{min-height:56px;resize:vertical}
.messenger-thread .modal-hint{margin:0}
.messenger-thread .form-error:empty{display:none}
.messenger-loading{color:var(--muted,#687279);margin:0}
.messenger-lead{display:grid;align-content:start;gap:10px;padding:14px;overflow:auto}
.messenger-lead:empty{display:none}
.messenger-lead-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.messenger-lead-head h3{margin:0;font-size:.95rem}
.messenger-lead-row{display:grid;gap:2px;min-width:0}
.messenger-lead-row>span{font-size:.75rem;color:var(--muted,#687279)}
.messenger-lead-row strong{display:grid;gap:2px;font-weight:600;font-size:.88rem;overflow-wrap:anywhere}
.messenger-lead-row strong small{font-weight:500;color:var(--muted,#687279)}
/* «Чат сайта»: the pages the visitor looked at before the current one (event «context») */
.messenger-lead-pages{display:grid;gap:var(--space-2)}
.messenger-lead-pages>span{display:grid;gap:1px;min-width:0}
/* «Чат сайта»: the product the visitor is on, in the head of the open conversation */
.messenger-head-product-row{display:flex;min-width:0;font-size:var(--text-small)}
.messenger-head-product{display:inline-flex;align-items:center;gap:var(--space-1);min-width:0;overflow-wrap:anywhere}
.messenger-head-product svg{width:var(--icon);height:var(--icon);flex:none}
.messenger-lead .modal-hint{margin:0}
.messenger-lead-others{display:grid;gap:4px;justify-items:start}
.messenger-lead-others>span{font-size:.75rem;color:var(--muted,#687279)}
.messenger-lead-others .text-link{background:none;border:0;padding:0;text-align:left}
.messenger-order-note{margin:0 0 4px}
.messenger:not(.has-thread) .messenger-lead{display:none}
.messenger:not(.has-thread){grid-template-columns:minmax(260px,330px) minmax(0,1fr)}
@media(max-width:1200px){
 .messenger,.messenger:not(.has-thread){grid-template-columns:minmax(240px,300px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;height:auto;min-height:0}
 .messenger-side{grid-row:1/3;max-height:calc(100vh - 190px)}
 .messenger-thread{height:calc(100vh - 250px);min-height:460px}
 .messenger-lead{grid-column:2}
}
@media(max-width:800px){
 .messenger,.messenger:not(.has-thread){grid-template-columns:minmax(0,1fr);grid-template-rows:auto}
 .messenger-side{grid-row:auto;max-height:none}
 .messenger.has-thread .messenger-side{display:none}
 .messenger:not(.has-thread) .messenger-thread{display:none}
 .messenger-lead{grid-column:auto}
 .messenger-back{display:inline-flex}
 .messenger-keys{display:none}
 .messenger-thread{height:auto;min-height:0}
 .messenger .chat-messages{flex:none;max-height:56vh;min-height:160px;height:auto}
 .messenger-list{overflow:visible}
}
:root[data-theme=dark] .messenger-item{background:var(--surface);color:var(--text)}
:root[data-theme=dark] .messenger-item.active{background:var(--surface-selected)}
:root[data-theme=dark] .messenger-channel-mark{background:var(--surface-2)}
:root[data-theme=dark] .messenger-search{background:var(--surface)}
/* «Товар каталога» in the lead card (18.11.2026) */
.messenger-lead-product .messenger-link-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.messenger-lead-product .messenger-link-actions[hidden]{display:none}
.messenger-link-picker{display:grid;gap:6px;margin-top:6px;min-width:0}
.messenger-link-picker[hidden]{display:none}
.messenger-link-picker input,.messenger-link-picker select{width:100%;min-width:0}
.messenger-link-picker .modal-hint{margin:0}
.messenger-lead-product .form-error:empty{display:none}
/* iPhone audit UI-011: why replies to eBay are off — a readable note in place of the reply field */
.messenger-reply-off{margin:var(--space-2) var(--space-3);flex:none}
/* the product of the conversation's advert: a button to its card in the catalogue (owner, 21.11.2026 20:05); numbers from tokens.css */
:root[data-theme] .messenger-product-open{display:inline-flex;align-items:center;justify-self:start;gap:var(--space-2);max-width:100%;height:auto;white-space:normal;text-align:left;text-decoration:none}
:root[data-theme] .messenger-product-open>svg{flex:none;width:var(--icon);height:var(--icon)}
:root[data-theme] .messenger-product-open>span{min-width:0;overflow-wrap:anywhere}
/* «Чат сайта» 1.5 (owner, 27.11.2026 19:50): «Посетитель печатает…» under the messages of a conversation of a site; numbers from tokens.css */
.messenger-typing{display:flex;align-items:center;gap:var(--space-2);margin:0 var(--space-3) var(--space-1);flex:none;font:var(--text-small);color:var(--ink-3)}
.messenger-typing[hidden]{display:none}
.messenger-typing-dots{display:inline-flex;gap:var(--space-1)}
.messenger-typing-dots i{width:var(--space-1);height:var(--space-1);border-radius:50%;background:currentColor;opacity:.35;animation:messenger-typing-dot 1.2s infinite ease-in-out}
.messenger-typing-dots i:nth-child(2){animation-delay:.2s}
.messenger-typing-dots i:nth-child(3){animation-delay:.4s}
@keyframes messenger-typing-dot{0%,80%,100%{opacity:.35}40%{opacity:1}}
@media(prefers-reduced-motion:reduce){.messenger-typing-dots i{animation:none;opacity:.7}}


/* devices.css */
/* «Устройства» (owner, 20.11.2026 17:42): the base of serial numbers and the card of one device; «Состояние» chips of a SKU.
   Numbers and colours only from tokens.css (docs/UI-RULES.md). */
html:root[data-theme] .device-sources{display:flex;flex-wrap:wrap;gap:var(--space-1)}
html:root[data-theme] .device-page{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4)}
html:root[data-theme] .device-page>*{min-width:0}
html:root[data-theme] .device-back{justify-self:start}
html:root[data-theme] .device-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}
html:root[data-theme] .device-head h1{margin:0;font:var(--text-page);overflow-wrap:anywhere}
/* the model is the title; the serial number is the line under it, with a button that copies it (owner's audit, 23.11.2026) */
html:root[data-theme] .device-title{display:grid;gap:var(--space-1);min-width:0}
html:root[data-theme] .device-serial{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:0;color:var(--ink-2)}
html:root[data-theme] .device-serial .mono{font:var(--text-body);font-family:var(--font-mono);overflow-wrap:anywhere;user-select:all}
html:root[data-theme] .device-facts{margin:0}
html:root[data-theme] .device-facts dd small{display:block}
html:root[data-theme] .device-conditions{display:grid;gap:var(--space-3);padding:var(--space-4)}
html:root[data-theme] .device-condition-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3)}
html:root[data-theme] .device-condition-sku{font:var(--text-small);font-family:var(--font-mono);color:var(--ink-2);min-width:0}
html:root[data-theme] .segments.sku-condition{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;max-width:100%;min-width:0}
html:root[data-theme] .segments.sku-condition>button:disabled{cursor:default}
html:root[data-theme] .segments.sku-condition>button:disabled:not([aria-pressed="true"]){color:var(--ink-3)}
html:root[data-theme] .segments.sku-condition[aria-busy="true"]{cursor:progress}
html:root[data-theme] .sku-condition-field{grid-column:1/-1}
@media(max-width:800px){
 html:root[data-theme] .device-facts{grid-template-columns:minmax(0,1fr)}
 html:root[data-theme] .segments.sku-condition>button{flex:1 1 auto;padding:0 var(--space-3)}
}


/* adverts.css */
/* «Объявления» (owner, 21.11.2026 20:05): the adverts of the platforms of «Мессенджер» and the product of the catalogue
   each of them sells. Numbers and colours only from tokens.css (docs/UI-RULES.md). */
html:root[data-theme] .adverts-pulled{align-self:center;font:var(--text-small);color:var(--ink-2)}
html:root[data-theme] .adverts-panel [data-adverts]{min-width:0}
html:root[data-theme] .adverts-count{padding-left:var(--space-2);font:var(--text-caption);font-variant-numeric:tabular-nums;color:var(--ink-2)}
html:root[data-theme] [aria-pressed="true"]>.adverts-count{color:inherit}
html:root[data-theme] .adverts-tools{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);padding:var(--space-3) var(--pad-box);border-bottom:1px solid var(--line)}
html:root[data-theme] .adverts-search{flex:1 1 var(--rail);min-width:0;max-width:none}
html:root[data-theme] .adverts-search label{display:block}
html:root[data-theme] .adverts-search input{width:100%}
html:root[data-theme] .adverts-inactive{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--control-h-sm);white-space:nowrap}
/* what «Подтянуть все объявления» found, account by account */
html:root[data-theme] .adverts-report{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-1) var(--space-4);padding:var(--space-3) var(--pad-box);border-bottom:1px solid var(--line);background:var(--surface-2);font:var(--text-small);color:var(--ink)}
html:root[data-theme] .adverts-report :is(p,ul){margin:0;padding:0;list-style:none;min-width:0}
html:root[data-theme] .adverts-report ul{display:grid;gap:var(--space-1);flex:1}
html:root[data-theme] .adverts-report li{overflow-wrap:anywhere}
html:root[data-theme] .adverts-report-bad{color:var(--bad)}
html:root[data-theme] .adverts-report .text-link{padding:0;border:0;background:none;font:var(--text-small)}
html:root[data-theme] .adverts-empty svg{width:var(--icon-nav);height:var(--icon-nav)}
/* the list */
html:root[data-theme] .adverts-panel .table-wrap{max-width:100%;overflow-x:auto}
html:root[data-theme] .adverts-panel td{vertical-align:top;padding-block:var(--space-2)}
html:root[data-theme] .adverts-panel td small{display:block;font:var(--text-small);color:var(--ink-2);overflow-wrap:anywhere}
html:root[data-theme] .adverts-panel td .mono{font-family:var(--font-mono)}
html:root[data-theme] .adverts-title>strong{display:block;font:var(--text-strong);overflow-wrap:anywhere}
html:root[data-theme] .adverts-title>small{white-space:nowrap}
html:root[data-theme] :is(.adverts-place,.adverts-price,.adverts-state){white-space:nowrap}
html:root[data-theme] .adverts-price{text-align:right;font-variant-numeric:tabular-nums}
html:root[data-theme] .adverts-table th:nth-child(3){text-align:right}
/* the product of an advert: a button to the product, or the field of its «ID товара» */
/* the name of an advert takes the width the other columns leave; the product keeps its own */
html:root[data-theme] .adverts-table :is(th:first-child,td.adverts-title){width:100%}
html:root[data-theme] .adverts-cell{display:grid;gap:var(--space-1);justify-items:start;width:calc(var(--rail) + var(--space-7));min-width:0}
/* a long product name stays inside the cell: its chip shrinks and the name ends with «…» (check 25.11.2026: it went past the
   table and, on a phone, past the screen) */
html:root[data-theme] .adverts-cell{grid-template-columns:minmax(0,100%)}
html:root[data-theme] .adverts-cell>.adverts-product-open{min-width:0;max-width:100%}
html:root[data-theme] .adverts-product-open{display:inline-flex;align-items:center;gap:var(--space-2);max-width:100%;text-decoration:none}
html:root[data-theme] .adverts-product-open>svg{flex:none;width:var(--icon);height:var(--icon)}
html:root[data-theme] .adverts-product-open>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root[data-theme] .adverts-product-actions{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--space-3)}
html:root[data-theme] .adverts-cell .text-link{padding:0;border:0;background:none;font:var(--text-small)}
html:root[data-theme] .adverts-pick{display:flex;align-items:center;gap:var(--space-2);width:100%}
html:root[data-theme] .adverts-pick>input{flex:1;min-width:0;width:100%;min-height:var(--control-h-sm);padding:var(--space-1) var(--space-3)}
html:root[data-theme] .adverts-cell>[data-advert-suggest]{display:grid;gap:var(--space-1);width:100%}
html:root[data-theme] .adverts-cell>[data-advert-suggest]:empty{display:none}
html:root[data-theme] .adverts-suggest{display:grid;gap:var(--space-1);padding:var(--space-1);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
html:root[data-theme] .adverts-suggest>button{display:flex;align-items:baseline;gap:var(--space-2);min-height:var(--control-h-sm);padding:var(--space-1) var(--space-2);border:0;border-radius:var(--r-sm);background:none;color:var(--ink);font:var(--text-small);text-align:left}
html:root[data-theme] .adverts-suggest>button:is(:hover,[aria-selected="true"]){background:var(--surface-2)}
html:root[data-theme] .adverts-suggest>button>b{flex:none;font:var(--text-caption);font-family:var(--font-mono)}
html:root[data-theme] .adverts-suggest>button>span{min-width:0;overflow-wrap:anywhere}
html:root[data-theme] .adverts-cell .form-error{margin:0;font:var(--text-small);color:var(--bad)}
/* a table while the name of an advert has room beside the field of the product (the menu takes 240 px of the window);
   narrower — one card for an advert: its name; where it stands, its price and its state; the product under them */
@media(max-width:1279px){
 html:root[data-theme] .adverts-table,html:root[data-theme] .adverts-table>tbody{display:block}
 html:root[data-theme] .adverts-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html:root[data-theme] .adverts-table>tbody>tr{display:grid;grid-template-columns:max-content max-content minmax(0,1fr);align-items:center;gap:var(--space-1) var(--space-3);padding:var(--space-3) var(--pad-box);border-bottom:1px solid var(--line)}
 html:root[data-theme] .adverts-table>tbody>tr>td{display:block;grid-column:1/-1;width:auto;padding:0;border:0;min-width:0;background:none}
 html:root[data-theme] .adverts-table>tbody>tr>td.adverts-place{grid-column:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--space-2);white-space:nowrap;overflow-wrap:normal;font:var(--text-small);color:var(--ink-2)}
 /* (an account is one word: it is not broken in the middle against the price — owner's audit 23.11.2026) */
 html:root[data-theme] .adverts-table>tbody>tr>td.adverts-place>small{white-space:nowrap;overflow-wrap:normal}
 html:root[data-theme] .adverts-table>tbody>tr>td.adverts-price{grid-column:2;font:var(--text-label)}
 html:root[data-theme] .adverts-table>tbody>tr>td.adverts-state{grid-column:3;justify-self:end}
 html:root[data-theme] .adverts-cell{width:auto;max-width:var(--form-max)}
}
@media(max-width:800px){
 html:root[data-theme] .adverts-pick>input,html:root[data-theme] .adverts-suggest>button{min-height:var(--control-h)}
 html:root[data-theme] .adverts-inactive{min-height:var(--control-h)}
 html:root[data-theme] .adverts-search{flex-basis:100%}
}

/* an advert without a product of the catalogue, among others: an amber mark beside its field (owner's audit 23.11.2026) */
html:root[data-theme] .adverts-loose{display:inline-block;margin:0 0 var(--space-1);padding:0 var(--space-2);border-radius:var(--r-full);background:var(--warn-bg);color:var(--warn);font:var(--text-small)}
/* a phone: the three choices share the width and their words stay whole (check 25.11.2026: «С товаром 10…» was cut) */
@media(max-width:800px){
html:root[data-theme] .adverts-tools>.segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
html:root[data-theme] .adverts-tools>.segments>button{min-width:0;padding:0 var(--space-2);white-space:normal;line-height:var(--lh-small)}
html:root[data-theme] .adverts-tools>.segments>button>.adverts-count{display:inline-block;white-space:nowrap}
}


/* stock-revisions.css */
/* «Ревизия» (owner, 22.11.2026 11:26): the tab «Ревизии» of «Склад» and the page of one revision — a field for a SKU or a
   serial number, the numbers and the lines. Numbers and colours only from tokens.css (docs/UI-RULES.md); a phone first. */

/* the tab: the revisions above the facts of inventory */
html:root[data-theme] .stock-revisions{margin-bottom:var(--space-4);min-width:0}
html:root[data-theme] .stock-revisions-bar{display:flex;justify-content:flex-end;padding:var(--space-3) var(--pad-box);border-bottom:1px solid var(--line)}
html:root[data-theme] .stock-revisions-note{margin:0;padding:var(--space-4) var(--pad-box);font:var(--text-body);color:var(--ink-2)}
html:root[data-theme] .stock-revisions-note p{margin:0 0 var(--space-3)}
html:root[data-theme] .stock-revisions td small{display:block;font:var(--text-small);color:var(--ink-2)}
html:root[data-theme] .stock-revisions :is(td,th).num{text-align:right;font-variant-numeric:tabular-nums}
html:root[data-theme] .stock-revisions-pager{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-3);padding:var(--space-3) var(--pad-box);border-top:1px solid var(--line);font:var(--text-small);color:var(--ink-2)}
html:root[data-theme] .stock-revisions-facts{margin:0 0 var(--space-2);font:var(--text-group);color:var(--ink)}

/* the window «Новая ревизия»: the revisions that go on now */
html:root[data-theme] .stock-revision-running{display:grid;gap:var(--space-1);margin-bottom:var(--space-4);padding:var(--space-3);border-radius:var(--r-md);background:var(--surface-2);font:var(--text-small);color:var(--ink)}
html:root[data-theme] .stock-revision-running[hidden]{display:none}
html:root[data-theme] .stock-revision-running p{margin:var(--space-1) 0 0;color:var(--ink-2)}

/* the page of a revision */
html:root[data-theme] .stock-revision{display:grid;gap:var(--space-4);max-width:var(--content-max);min-width:0}
html:root[data-theme] .stock-revision>.panel{margin:0}
html:root[data-theme] .stock-revision-back{display:inline-flex;align-items:center;gap:var(--space-2);justify-self:start;min-height:var(--control-h-sm);font:var(--text-small)}
html:root[data-theme] .stock-revision-back svg{width:var(--icon);height:var(--icon)}
html:root[data-theme] .stock-revision-head{display:grid;gap:var(--space-1);min-width:0}
html:root[data-theme] .stock-revision-title{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3)}
html:root[data-theme] .stock-revision-title h1{margin:0;font:var(--text-section);color:var(--ink)}
html:root[data-theme] .stock-revision-scope{margin:0;font:var(--text-strong);color:var(--ink);overflow-wrap:anywhere}
html:root[data-theme] .stock-revision-fact{margin:0;font:var(--text-small);color:var(--ink-2);overflow-wrap:anywhere}
html:root[data-theme] .stock-revision-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-3)}

/* the field of a SKU or a serial number */
html:root[data-theme] .stock-revision-entry{padding:var(--pad-box);min-width:0}
html:root[data-theme] .stock-revision-entry-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-2)}
html:root[data-theme] .stock-revision-entry-row label{flex:1 1 var(--rail);display:grid;gap:var(--space-1);min-width:0;font:var(--text-label);color:var(--ink-2)}
html:root[data-theme] .stock-revision-entry-row input{width:100%;min-width:0;font-family:var(--font-mono)}
html:root[data-theme] .stock-revision-entry-row .btn svg{width:var(--icon);height:var(--icon)}
html:root[data-theme] .stock-revision-message{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);margin:var(--space-3) 0 0;min-height:var(--control-h-sm);font:var(--text-strong);color:var(--ink-2);overflow-wrap:anywhere}
html:root[data-theme] .stock-revision-message:empty{display:none}
html:root[data-theme] .stock-revision-message.good{color:var(--ok)}
html:root[data-theme] .stock-revision-message.warn{color:var(--warn)}
html:root[data-theme] .stock-revision-message.bad{color:var(--bad)}

/* the lines */
html:root[data-theme] .stock-revision-lines{min-width:0}
html:root[data-theme] .stock-revision-groups{display:flex;flex-wrap:nowrap;gap:var(--space-1);margin:var(--space-3) var(--pad-box);max-width:calc(100% - 2*var(--pad-box));overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
/* (as the strips of tabs: a scrollbar drawn inside the strip would cover its buttons — Safari with «always show scroll bars») */
html:root[data-theme] .stock-revision-groups::-webkit-scrollbar{display:none}
html:root[data-theme] .stock-revision-groups button{display:inline-flex;align-items:center;gap:var(--space-2);white-space:nowrap}
html:root[data-theme] .stock-revision-groups b{font:var(--text-caption);font-variant-numeric:tabular-nums;color:var(--ink-2)}
html:root[data-theme] .stock-revision-groups [aria-pressed="true"] b{color:inherit}
html:root[data-theme] .stock-revision-items{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
html:root[data-theme] .stock-revision-item{display:flex;align-items:center;gap:var(--space-3);min-height:var(--row-h);padding:var(--space-2) var(--pad-box);border-bottom:1px solid var(--line)}
html:root[data-theme] .stock-revision-item:last-child{border-bottom:0}
html:root[data-theme] .stock-revision-item-main{flex:1;display:grid;gap:var(--space-1);justify-items:start;min-width:0}
html:root[data-theme] .stock-revision-item-main .mono{min-height:0;padding:0;font:var(--text-strong);font-family:var(--font-mono);overflow-wrap:anywhere;text-align:left}
html:root[data-theme] .stock-revision-item-main span{font:var(--text-body);color:var(--ink);overflow-wrap:anywhere}
html:root[data-theme] .stock-revision-item-main small{font:var(--text-small);color:var(--ink-2);overflow-wrap:anywhere}
html:root[data-theme] .stock-revision-item-side{flex:none}
html:root[data-theme] .stock-revision-more{margin:var(--space-3) var(--pad-box)}

/* «Что произойдёт» before a revision is finished */
html:root[data-theme] .stock-revision-outcome{display:grid;gap:var(--space-3);margin:0 0 var(--space-4);padding:0;list-style:none}
html:root[data-theme] .stock-revision-outcome li{display:grid;grid-template-columns:1fr auto;gap:var(--space-1) var(--space-3);align-items:baseline}
html:root[data-theme] .stock-revision-outcome span{font:var(--text-body);color:var(--ink)}
html:root[data-theme] .stock-revision-outcome strong{font:var(--text-strong);font-variant-numeric:tabular-nums}
html:root[data-theme] .stock-revision-outcome small{grid-column:1/-1;font:var(--text-small);color:var(--ink-2)}

@media(max-width:800px){
 html:root[data-theme] .stock-revisions-bar .btn{flex:1}
 html:root[data-theme] .stock-revision-actions .btn{flex:1 1 0}
 html:root[data-theme] .stock-revision-actions .btn.primary{flex:2 1 0}
 html:root[data-theme] .stock-revision-entry-row label{flex-basis:100%}
 html:root[data-theme] .stock-revision-entry-row .btn{flex:1 1 0;min-height:var(--tap-min)}
 html:root[data-theme] .stock-revision-item .btn.small{min-height:var(--tap-min)}
}
@media(min-width:900px){
 html:root[data-theme] .stock-revision-head{grid-template-columns:1fr auto;align-items:start}
 html:root[data-theme] .stock-revision-head>*{grid-column:1}
 html:root[data-theme] .stock-revision-head>.stock-revision-actions{grid-column:2;grid-row:1/span 4;margin-top:0;justify-content:flex-end}
}


/* stock-warehouses.css */
/* «Склады» in «Склад» administered in place (owner, 23.11.2026 10:25): «Добавить склад» in the row of the tab's search,
   the card button on a warehouse and the card of a warehouse in a window. Numbers and colours only from tokens.css
   (docs/UI-RULES.md). */

/* the tab */
html:root[data-theme] .warehouse-overview-search .stock-warehouse-add{margin-left:auto;flex:none}
html:root[data-theme] .stock-warehouse-tile{position:relative;display:grid;min-width:0}
html:root[data-theme] .stock-warehouse-tile>.warehouse-tile{width:100%;min-width:0}
/* the name leaves room for the card button */
html:root[data-theme] .stock-warehouse-tile .warehouse-tile-name{padding-right:calc(var(--icon-btn) + var(--space-1))}
html:root[data-theme] .stock-warehouse-tile-card{position:absolute;top:var(--space-2);right:var(--space-2);border:0;border-radius:var(--r-full);background:transparent;color:var(--ink-2)}
html:root[data-theme] .stock-warehouse-tile-card:hover{background:var(--surface-2);color:var(--ink)}
html:root[data-theme] .stock-warehouse-tile-card svg{width:var(--icon);height:var(--icon)}
/* beside the name of the chosen warehouse the button stands in the line, not in a corner */
html:root[data-theme] .stock-warehouse-chosen-card{position:static;flex:none}

/* the card of a warehouse */
html:root[data-theme] dialog.stock-warehouse-dialog{width:min(var(--form-max),100%)}
html:root[data-theme] .stock-warehouse-card{display:grid;gap:var(--space-3);min-width:0}
html:root[data-theme] .stock-warehouse-card-where{margin:0;font:var(--text-small);color:var(--ink-2);overflow-wrap:anywhere}
html:root[data-theme] .stock-warehouse-card .warehouse-card-details{margin:0}
html:root[data-theme] .stock-warehouse-card .warehouse-card-details dl{font:var(--text-small);gap:var(--space-1) var(--space-3)}
html:root[data-theme] .stock-warehouse-card .warehouse-card-details dt{color:var(--ink-2)}
html:root[data-theme] .stock-warehouse-card .warehouse-card-details dd{color:var(--ink)}
html:root[data-theme] .stock-warehouse-card-actions{display:flex;align-items:center;gap:var(--space-2)}
html:root[data-theme] .stock-warehouse-card-actions .row-menu{margin-left:auto}
html:root[data-theme] .stock-warehouse-card .btn svg{width:var(--icon);height:var(--icon)}
html:root[data-theme] .stock-warehouse-places{display:grid;gap:var(--space-2);min-width:0;padding-top:var(--space-3);border-top:1px solid var(--line)}
html:root[data-theme] .stock-warehouse-places-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}
html:root[data-theme] .stock-warehouse-places-head h3{margin:0;font:var(--text-group);color:var(--ink)}
html:root[data-theme] .stock-warehouse-place-list{margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:var(--r-md)}
html:root[data-theme] .stock-warehouse-place{display:flex;align-items:center;gap:var(--space-3);min-height:var(--row-h);padding:var(--space-1) var(--space-2) var(--space-1) var(--space-3);border-bottom:1px solid var(--line)}
html:root[data-theme] .stock-warehouse-place:last-child{border-bottom:0}
html:root[data-theme] .stock-warehouse-place-name{flex:1;display:grid;min-width:0}
html:root[data-theme] .stock-warehouse-place-name strong{font:var(--text-strong);color:var(--ink);overflow-wrap:anywhere}
html:root[data-theme] .stock-warehouse-place-name small{font:var(--text-small);font-family:var(--font-mono);color:var(--ink-2)}
html:root[data-theme] .stock-warehouse-places-none{margin:0;font:var(--text-body);color:var(--ink-2)}

@media(max-width:800px){
 /* a phone stacks the row of the search: the count and «Добавить склад» share its second line */
 html:root[data-theme] body.mobile-app-ready .warehouse-overview-search:has(.stock-warehouse-add){grid-template-columns:1fr auto;align-items:center}
 html:root[data-theme] body.mobile-app-ready .warehouse-overview-search:has(.stock-warehouse-add)>.explicit-search{grid-column:1/-1}
 html:root[data-theme] .warehouse-overview-search .stock-warehouse-add{min-height:var(--tap-min)}
 html:root[data-theme] .stock-warehouse-card-actions .btn{flex:1 1 0;min-height:var(--tap-min)}
 html:root[data-theme] .stock-warehouse-places-head .btn{min-height:var(--tap-min)}
}

/* «В пути на склад» (owner, 01.12.2026 18:13): a yellow line for each shipment on its way, under the tile of its warehouse and
   over the stock of the chosen warehouse; the whole line opens the shipment */
html:root[data-theme] .stock-incoming-tile{display:grid;align-content:start;gap:var(--space-2);min-width:0}
/* a tile with lines under it does not stretch the tiles beside it */
html:root[data-theme] .warehouse-tiles:has(.stock-incoming-tile){align-items:start}
html:root[data-theme] .stock-incoming-tile>.warehouse-tile,html:root[data-theme] .stock-incoming-tile>.stock-warehouse-tile{width:100%;min-width:0}
html:root[data-theme] .stock-incoming{display:grid;gap:var(--space-2);min-width:0;margin:0 0 var(--space-3)}
html:root[data-theme] .stock-incoming.compact{margin:0}
html:root[data-theme] .stock-incoming-alert{display:flex;align-items:center;gap:var(--space-3);width:100%;min-width:0;min-height:var(--row-h);padding:var(--space-2) var(--space-3);border:1px solid var(--warning-border);border-radius:var(--r-md);background:var(--warn-bg);color:var(--ink);font:var(--text-body);text-align:left;cursor:pointer}
html:root[data-theme] .stock-incoming-alert.compact{gap:var(--space-2);padding:var(--space-1) var(--space-2) var(--space-1) var(--space-3)}
html:root[data-theme] .stock-incoming-alert:hover{border-color:var(--warn)}
html:root[data-theme] .stock-incoming-alert:disabled{cursor:progress}
html:root[data-theme] .stock-incoming-alert>svg{flex:none;width:var(--icon);height:var(--icon);color:var(--warn)}
html:root[data-theme] .stock-incoming-text{flex:1;display:grid;min-width:0}
html:root[data-theme] .stock-incoming-text strong{font:var(--text-strong);color:var(--warn);overflow-wrap:anywhere}
html:root[data-theme] .stock-incoming-text small{font:var(--text-small);color:var(--ink-2);overflow-wrap:anywhere}


/* country-scope.css */
/* The country scope (owner, 23.11.2026 12:11): with «Все страны» a row of a list names its country; a new record asks for
   its country first. Numbers and colours only from tokens.css (docs/UI-RULES.md). */

/* the country of a row */
html:root[data-theme] .country-tag{display:inline-flex;align-items:center;max-width:100%;padding:0 var(--space-2);border-radius:var(--r-full);background:var(--surface-2);color:var(--ink-2);font:var(--text-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
/* beside a title it stands after it; in a cell of its own it stands alone */
html:root[data-theme] :is(strong,b,h3,h4,a,span)+.country-tag{margin-left:var(--space-2)}

/* a row of a table: its country stands on a line of its own under what its first cell says */
html:root[data-theme] .country-tag.country-tag-row{display:flex;width:fit-content;margin:var(--space-1) 0 0}

/* «В какой стране?» */
html:root[data-theme] dialog.country-ask-dialog{width:min(var(--form-max),100%)}
html:root[data-theme] .country-ask-list{display:grid;gap:var(--space-2)}
html:root[data-theme] .country-ask-list .btn{width:100%;min-height:var(--control-h);justify-content:flex-start}


/* city-search.css */
/* The field «Город» with the settlements of a country (owner, 23.11.2026 13:40): what was found for the typed letters
   stands under the field. Numbers and colours only from tokens.css (docs/UI-RULES.md). */
html:root[data-theme] .city-suggest{grid-column:1/-1;display:grid;max-height:calc(var(--control-h)*6);overflow-y:auto;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);box-shadow:var(--shadow-float)}
html:root[data-theme] .city-suggest[hidden]{display:none}
html:root[data-theme] .city-suggest-option{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3);width:100%;min-height:var(--control-h);padding:var(--space-2) var(--space-3);border:0;border-radius:0;background:none;color:var(--ink);font:var(--text-body);text-align:left;cursor:pointer}
html:root[data-theme] .city-suggest-option+.city-suggest-option{border-top:1px solid var(--line)}
html:root[data-theme] .city-suggest-option:is(:hover,.active){background:var(--surface-2)}
html:root[data-theme] .city-suggest-option>span{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
html:root[data-theme] .city-suggest-option>small{flex:0 1 auto;min-width:0;color:var(--ink-3);font:var(--text-small);text-align:right;overflow-wrap:anywhere}
html:root[data-theme] .city-suggest-note{margin:0;padding:var(--space-2) var(--space-3);color:var(--ink-2);font:var(--text-small)}
@media(max-width:800px){html:root[data-theme] .city-suggest-option{min-height:var(--tap-min)}}
/* the settlements of a country in its form of the settings: what is here and «Загрузить» */
html:root[data-theme] dialog .settlements-line{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3)}
html:root[data-theme] dialog .settlements-line>span{flex:1 1 var(--rail-mini);min-width:0}
html:root[data-theme] dialog .settlements-line>[hidden]{display:none}
html:root[data-theme] dialog .settlements-line>.settlements-source{flex-basis:100%;color:var(--ink-3);font:var(--text-small)}
/* «Добавить город…» of a shipment destination: the name and its field apart, as in the other forms (the ring of the
   focused field does not touch the name) */
html:root[data-theme] .inbound-destination-picker>[data-inbound-city-custom-label]:not([hidden]){display:grid;gap:var(--space-1)}


/* ui-foundation.css */
/* Pakovia 2.0 — the base of the UI rules for the whole application (docs/UI-RULES.md; owner, 19.11.2026 13:58
   «Интегрируй»). Loaded last; numbers and colours only from tokens.css. What is moved here and what is moved screen by
   screen is listed in docs/UI-INTEGRATION.md. */

/* Фокус — только с клавиатуры: светлая тема 2px wing + 1px ink снаружи, тёмная 2px wing (tokens --focus-ring).
   A click or a tap shows no ring; every older outline is replaced by the same ring. */
:root[data-theme] :focus-visible { outline: none; box-shadow: var(--focus-ring); }
:root[data-theme] :focus:not(:focus-visible) { outline: none; }

/* Галочка и радио: 20px, отмеченная — заливка primary с галочкой on-primary (браузер подбирает цвет галочки). */
:root[data-theme] input:is([type=checkbox],[type=radio]) {
  width: var(--check); min-width: var(--check); height: var(--check); min-height: var(--check);
  padding: 0; flex: none; accent-color: var(--primary); cursor: pointer;
}
:root[data-theme] input:is([type=checkbox],[type=radio]):disabled { cursor: not-allowed; }

/* «⋯» — меню действий записи (свод, «Меню действий»): кнопка-иконка видна всегда; список 200–320px по правому краю
   кнопки, пункты --option-h, иконка 20px + глагол, группы через линию, опасное последним цветом bad. */
:root[data-theme] details.row-menu { position: relative; display: inline-flex; }
:root[data-theme] details.row-menu > summary {
  display: inline-flex; align-items: center; justify-content: center; width: var(--icon-btn); height: var(--icon-btn);
  border-radius: var(--r-full); color: var(--ink-2); font: var(--text-group); line-height: 1; cursor: pointer; list-style: none;
}
:root[data-theme] details.row-menu > summary::-webkit-details-marker { display: none; }
:root[data-theme] details.row-menu > summary:hover,
:root[data-theme] details.row-menu[open] > summary { background: var(--surface-2); color: var(--ink); }
:root[data-theme] .row-menu-list {
  position: fixed; z-index: var(--z-panel); display: flex; flex-direction: column; min-width: 200px; max-width: 320px;
  padding: var(--space-1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
}
:root[data-theme] .row-menu-list > hr { width: 100%; margin: var(--space-1) 0; border: 0; border-top: 1px solid var(--line); }
:root[data-theme] .row-menu-item {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--option-h); margin: 0;
  padding: 0 var(--space-3); border: 0; border-radius: var(--r-sm); background: none; font: var(--text-body); color: var(--ink);
  text-align: left; white-space: nowrap; cursor: pointer;
}
:root[data-theme] .row-menu-item > svg { width: var(--icon); height: var(--icon); flex: none; color: var(--ink-2); }
:root[data-theme] .row-menu-item:hover { background: var(--surface-2); }
:root[data-theme] .row-menu-item.danger,
:root[data-theme] .row-menu-item.danger > svg { color: var(--bad); }

/* Плашка статуса (свод, «Списки, карточки, таблицы»): одно-два слова, точка и фон *-bg, не переносится. */
:root[data-theme] .status-pill {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3);
  border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-2); font: var(--text-label); white-space: nowrap;
}
:root[data-theme] .status-pill::before { content: ""; width: var(--space-2); height: var(--space-2); border-radius: var(--r-full); background: currentColor; flex: none; }
:root[data-theme] .status-pill.tone-warn { background: var(--warn-bg); color: var(--warn); }
:root[data-theme] .status-pill.tone-info { background: var(--info-bg); color: var(--info); }
:root[data-theme] .status-pill.tone-ok { background: var(--ok-bg); color: var(--ok); }
:root[data-theme] .status-pill.tone-bad { background: var(--bad-bg); color: var(--bad); }

/* Сегменты (свод, «Какой элемент выбора ставить»: один из 2–4 вариантов) */
:root[data-theme] .segments { display: inline-flex; gap: var(--space-1); padding: var(--space-1); border-radius: var(--r-md); background: var(--surface-2); flex: none; }
:root[data-theme] .segments > button {
  min-height: calc(var(--control-h) - 2 * var(--space-1)); padding: 0 var(--space-4); border: 0; border-radius: var(--r-sm);
  background: none; font: var(--text-label); color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
:root[data-theme] .segments > button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
:root[data-theme] .segments > button:hover:not([aria-pressed="true"]) { background: var(--surface); color: var(--ink); }

/* Поле выбора файла — не коробка поля: кнопка браузера и имя файла */
:root[data-theme] input[type=file] { min-height: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none; font: var(--text-small); color: var(--ink-2); }

/* owner, 19.11.2026 15:33: «в мобильной версии выглядят слишком крупными» — buttons keep 14px text on a phone too (the touch
   height stays 48px), and the buttons of a page head go to a new row instead of breaking their words. */
html:root[data-theme] body.mobile-app-ready .page-head>.actions>.btn{flex:1 1 auto;white-space:nowrap}

/* owner, 19.11.2026 17:00: a page of a section has no title and description of its own (the top bar names it) — the head is only its
   buttons, on the right; with no buttons it takes no room at all. */
html:root[data-theme] .page-head.page-head-bare{justify-content:flex-end;align-items:center;margin-bottom:var(--space-4)}
html:root[data-theme] .page-head.page-head-bare:not(:has(>.actions)){margin:0}
html:root[data-theme] body.mobile-app-ready .page-head.page-head-bare{margin-bottom:var(--space-3)}

/* owner, 19.11.2026 16:59: on a phone the cards of a list touched the frame of their panel, and the lines of the panel (under the search,
   above the pages) crossed the rounded corners of the cards — the cards stand inside the panel with a gap of their own. */
html:root[data-theme] body.mobile-app-ready .table-wrap:has(>.mobile-disclosure-table){padding:var(--space-2)}
/* iPhone audit UI-001: a date field keeps its own minimum width on iOS Safari and leaves a phone dialog on the right.
   The field and the cell around it may shrink to the dialog; on iOS the native look that sets that width is dropped. */
input[type=date],input[type=time],input[type=datetime-local],input[type=month]{min-width:0;max-width:100%}
.modal-body label,.modal-body .row>*,dialog form label{min-width:0}
@media(max-width:800px){.modal-body .row{grid-template-columns:minmax(0,1fr)}}
@supports(-webkit-touch-callout:none){
 input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:none;appearance:none;width:100%;display:block}
 input::-webkit-date-and-time-value{text-align:left}
}
/* iPhone audit UI-002: on a phone a table shown as cards grows with its rows — a height cap meant for the scrolling desktop table
   (48vh of «Новая заявка») let the second card spill over «Общий комментарий» */
html:root[data-theme] body.mobile-app-ready .table-wrap:has(>.mobile-entry-table),html:root[data-theme] body.mobile-app-ready .table-wrap:has(>.mobile-disclosure-table){max-height:none}

/* Safari audit 20.11.2026 (docs/UI-RULES.md, «Состояния, тексты и числа»):
   — an empty list says what it is: «Здесь пока нет записей» or «Нет совпадений» with its own «Сбросить фильтры»; */
html:root[data-theme] .list-empty-state{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);padding:var(--space-7) var(--space-4);color:var(--ink-2);font:var(--text-body)}
html:root[data-theme] .list-empty-state[hidden]{display:none}
html:root[data-theme] .list-empty-state>p{margin:0}
/* — a field group of the order card says whether its change is saved: «Не сохранено» warn, «Сохраняю…» ink-2, «Сохранено» ok; */
html:root[data-theme] .order-form-state{align-self:center;margin-right:auto;font:var(--text-small);color:var(--ink-2);white-space:nowrap}
html:root[data-theme] .order-form-state:empty{display:none}
html:root[data-theme] .order-form-state[data-tone=warn]{color:var(--warn)}
html:root[data-theme] .order-form-state[data-tone=bad]{color:var(--bad)}
html:root[data-theme] .order-form-state[data-tone=ok]{color:var(--ok)}
html:root[data-theme] .order-form-feedback:has(.order-form-state:not(:empty)){display:flex}
/* — a filled form closed by «Отмена», the cross or Esc asks first, in place of its buttons (no third window). */
html:root[data-theme] .modal-discard{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-5);border-top:1px solid var(--line);background:var(--warn-bg);color:var(--ink)}
html:root[data-theme] .modal-discard>p{flex:1 1 220px;margin:0;font:var(--text-body)}
html:root[data-theme] .modal-discard-actions{display:flex;flex-wrap:wrap;gap:var(--space-3);margin-left:auto}
/* — one page of a list shows only how many rows there are: no «Страница 1 из 1» with two dead arrows. */
html:root[data-theme] body .list-page-navigation[hidden],html:root[data-theme] body .list-page-size[hidden]{display:none}
/* Safari audit 20.11.2026: on a computer the round «ИИ» button covered the end of a page (pages «Далее», the last row of a
   table) — the page gets room under its last line while the button is there, as on a phone (iPhone audit UI-005). */
@media(min-width:801px){html:root[data-theme] body:has(#ai-assistant .ai-launch) .workspace{padding-bottom:calc(var(--fab) + var(--space-5))}}

/* Owner, 20.11.2026 17:09: «Одобряю введение групп и поиска в настройках». The sections of «Настройки» stand in groups with a
   search on top; «Обслуживание» is set apart and «Очистка операций» is red. On a phone the list folds under the current section. */
html:root[data-theme] .settings-nav.settings-groups{display:block;align-self:start}
html:root[data-theme] .settings-picker>summary{display:none}
html:root[data-theme] .settings-search{display:block;margin:0 0 var(--space-4)}
html:root[data-theme] .settings-search input{min-height:var(--control-h-sm)}
html:root[data-theme] .settings-group{display:grid;gap:var(--space-1);margin:0 0 var(--space-4)}
html:root[data-theme] .settings-group[hidden],html:root[data-theme] .settings-group>button[hidden]{display:none}
html:root[data-theme] .settings-group-title{margin:0;padding:0 var(--space-3);font:var(--text-caption);color:var(--ink-3)}
html:root[data-theme] .settings-group-service{padding-top:var(--space-3);border-top:1px solid var(--line)}
html:root[data-theme] .settings-group>button.danger:not(.active){color:var(--bad)}
html:root[data-theme] .settings-search-empty{margin:0;padding:0 var(--space-3);font:var(--text-small);color:var(--ink-2)}
html:root[data-theme] .settings-search-empty[hidden]{display:none}
@media(max-width:800px){
 html:root[data-theme] body .settings-nav.settings-groups{display:block;overflow:visible;margin-bottom:var(--space-3)}
 html:root[data-theme] .settings-picker{border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
 html:root[data-theme] .settings-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:var(--control-h);padding:0 var(--space-4);font:var(--text-strong);color:var(--ink);cursor:pointer;list-style:none}
 html:root[data-theme] .settings-picker>summary::-webkit-details-marker{display:none}
 html:root[data-theme] .settings-picker>summary::after{content:"";flex:none;width:var(--space-2);height:var(--space-2);border-right:2px solid var(--ink-2);border-bottom:2px solid var(--ink-2);transform:rotate(45deg)}
 html:root[data-theme] .settings-picker[open]>summary{border-bottom:1px solid var(--line)}
 html:root[data-theme] .settings-picker[open]>summary::after{transform:rotate(-135deg)}
 html:root[data-theme] .settings-picker[open]{padding-bottom:var(--space-3)}
 html:root[data-theme] .settings-picker>.settings-search{margin:var(--space-3)}
 html:root[data-theme] .settings-picker>.settings-group,html:root[data-theme] .settings-picker>.settings-search-empty{margin:0 var(--space-2) var(--space-3)}
 html:root[data-theme] .settings-picker .settings-group>button{text-align:left;white-space:normal}
}
@media(min-width:801px){html:root[data-theme] .settings-group>button{display:flex;align-items:center;min-height:var(--option-h);padding:0 var(--space-3)}}

/* Раскрывающаяся кнопка (аудит владельца 23.11.2026: «Оплаты» в карточке заказа, «Фильтры» списков): смысловая иконка info
   слева, подпись, счётчик и один шеврон ink-2 справа — закрыто ›, открыто ⌄, как summary[data-icon] (disclosure.css).
   Нажимается вся кнопка; на касании — не меньше tap-min. Стрелки полей выбора остаются: они значат выбор значения. */
html:root[data-theme] .disclosure-button{display:inline-flex;align-items:center;gap:var(--space-2)}
html:root[data-theme] .disclosure-button>.disclosure-icon{width:var(--icon);height:var(--icon);flex:none;stroke:var(--info)}
html:root[data-theme] .disclosure-button>.disclosure-chevron{display:inline-flex;flex:none;margin-left:auto;transition:transform var(--dur-scrim)}
html:root[data-theme] .disclosure-button>.disclosure-chevron svg{width:var(--space-4);height:var(--space-4);stroke:var(--ink-2)}
html:root[data-theme] .disclosure-button[aria-expanded=true]>.disclosure-chevron{transform:rotate(90deg)}
html:root[data-theme] .order-payments-toggle.disclosure-button{font:var(--text-small);font-weight:600;min-height:var(--control-h-sm);color:var(--ink)}
@media(pointer:coarse){html:root[data-theme] .disclosure-button{min-height:var(--tap-min)}}
/* «Настройки → Статусы»: тот же статус другого раздела другого цвета — подпись, его метка и «Взять этот цвет» в одну
   строку с переносом целыми частями. */
html:root[data-theme] .status-color-twin:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
html:root[data-theme] .status-color-twin .btn{white-space:nowrap}
/* «⋯» позиции заказа (order-items.js orderRowMenuPlace): пункты как в «Меню действий» — без рамок, высота option-h, наведение
   surface-2, опасное последним, цветом bad и отделено линией (аудит владельца 23.11.2026). */
html:root[data-theme] .order-workspace .repair-row-menu-items.floating{gap:0;padding:var(--space-1);border-radius:var(--r-md)}
html:root[data-theme] .order-workspace .repair-row-menu-items.floating .btn{position:relative;min-height:var(--option-h);padding:0 var(--space-3);border:0;border-radius:var(--r-sm);background:none;box-shadow:none;color:var(--ink);font:var(--text-body);white-space:nowrap;justify-content:flex-start}
html:root[data-theme] .order-workspace .repair-row-menu-items.floating .btn:hover{background:var(--surface-2)}
html:root[data-theme] .order-workspace .repair-row-menu-items.floating .btn.danger{color:var(--bad)}
html:root[data-theme] .order-workspace .repair-row-menu-items.floating .btn.danger:not(:first-child){margin-top:var(--space-2)}
html:root[data-theme] .order-workspace .repair-row-menu-items.floating .btn.danger:not(:first-child)::before{content:'';position:absolute;left:0;right:0;top:calc(var(--space-1) * -1);border-top:1px solid var(--line)}

/* «Внести расход»: без курса сумма занимает всю строку. */
html:root[data-theme] .modal-body .row:has(>[data-expense-rate][hidden]){grid-template-columns:minmax(0,1fr)}

/* Цвет действия (аудит владельца 23.11.2026, docs/UI-RULES.md «Цвет действия»): зелёный ok — поступление, приёмка, успешное
   завершение; красный bad — расход, удаление, списание, отмена действующей операции; синий info — переход, правка,
   перемещение, перевод; янтарный warn — план, ожидание, то, что требует внимания. Цвет всегда с подписью и, где есть,
   иконкой. Кнопка на странице — светлый фон и рамка своего цвета; подтверждение в окне — заливка того же цвета
   (modal(…,{tone:'success'|'danger'|'info'|'warn'})). Настройка, «Отмена» и закрытие окна — обычные. */
html:root[data-theme] .act-ok{--act:var(--ok);--act-bg:var(--ok-bg)}
html:root[data-theme] .act-bad{--act:var(--bad);--act-bg:var(--bad-bg)}
html:root[data-theme] .act-info{--act:var(--info);--act-bg:var(--info-bg)}
html:root[data-theme] .act-warn{--act:var(--warn);--act-bg:var(--warn-bg)}
html:root[data-theme] .btn:is(.act-ok,.act-bad,.act-info,.act-warn):not(.primary){background:var(--act-bg);border-color:var(--act);color:var(--act)}
html:root[data-theme] .btn:is(.act-ok,.act-bad,.act-info,.act-warn):not(.primary):hover:not(:disabled){background:var(--act);color:var(--surface)}
html:root[data-theme] .btn.primary:is(.act-ok,.act-bad,.act-info,.act-warn){background:var(--act);border-color:var(--act);color:var(--surface)}
html:root[data-theme] .order-workspace .repair-row-menu-items.floating .btn:is(.act-ok,.act-bad,.act-info,.act-warn){background:none;border:0;color:var(--act)}
html:root[data-theme] .order-workspace .repair-row-menu-items.floating .btn:is(.act-ok,.act-bad,.act-info,.act-warn):hover{background:var(--act-bg)}
/* Залитая кнопка цвета под курсором остаётся залитой: правило «опасной» обычной кнопки (theme.css, фон bad-bg) делало текст
   залитой «Провести расход», «Удалить заказ» невидимым при наведении. */
html:root[data-theme] .btn.primary:is(.act-ok,.act-bad,.act-info,.act-warn):hover:not(:disabled),
html:root[data-theme] .btn.primary.danger:hover:not(:disabled){background:var(--act,var(--bad));border-color:var(--act,var(--bad));color:var(--surface);box-shadow:var(--shadow-card)}
/* Карточка заказа на телефоне: «Ремонт №13» стоит рядом с «←», статус — своей строкой во всю ширину, не обрезается. */
@media(max-width:800px){html:root[data-theme] body.mobile-app-ready .order-toolbar>.order-status{flex:1 1 100%;max-width:none;min-width:0}html:root[data-theme] body.mobile-app-ready .order-toolbar>.order-status select{width:100%}}
/* Состояния строки, которая открывает запись: наведение — surface-2 (theme.css), нажатие — info-bg, последняя открытая
   запись после закрытия карточки — info-bg и полоса info слева (order-overlay.js markLastOpened). Нажатие на галочку,
   телефон, статус или «⋯» внутри строки — не нажатие на строку. */
html:root[data-theme] tbody tr[data-open]:active:not(:has(button:active,a:active,input:active,select:active,label:active,summary:active)){background:var(--info-bg)}
html:root[data-theme] tbody tr[data-open].list-row-last-open{background:var(--info-bg);box-shadow:inset 3px 0 var(--info)}
/* Карточка заказа (аудит владельца 23.11.2026): «Способ оплаты» и «Оплата» — две строки; состояние сохранения у статуса;
   неисправность ремонта — поле в несколько строк; обязательные поля новой формы — «*» цветом bad. */
html:root[data-theme] .order-workspace .order-payment-method{border-bottom:0;padding-bottom:var(--space-1);margin-bottom:0}
html:root[data-theme] .order-workspace .order-payment-state{display:flex;justify-content:space-between;align-items:center;gap:var(--space-3);padding-bottom:var(--space-2);margin-bottom:var(--space-1);border-bottom:1px solid var(--line);font:var(--text-small)}
html:root[data-theme] .order-workspace .order-payment-state>span:first-child{color:var(--ink-2)}
html:root[data-theme] .order-save-state{font:var(--text-small);color:var(--ink-2);white-space:nowrap}
html:root[data-theme] .order-save-state[data-state=saved]{color:var(--ok)}
html:root[data-theme] .order-save-state[data-state=error]{color:var(--bad);white-space:normal}
html:root[data-theme] .order-workspace .order-intake-editors .repair-fault textarea,
html:root[data-theme] body.mobile-app-ready .order-workspace .order-intake-editors .repair-fault textarea{height:auto;min-height:calc(var(--control-h) * 1.75);max-height:none;resize:vertical}
html:root[data-theme] .repair-equipment-empty{margin:var(--space-2) 0 0}
html:root[data-theme] .required-mark{color:var(--bad);margin-left:var(--space-1);font-weight:600}

/* Высоты элементов (аудит владельца 23.11.2026: «элементы одной строки должны иметь одинаковую высоту и выравнивание»):
   строка инструментов списка — поле поиска, «Поиск», «Фильтры» и кнопки одной высоты control-h; карточка заказа — поля,
   списки и кнопки одной высоты control-h-sm; на касании всё это не ниже tap-min (44–48 px). */
html:root[data-theme] :is(.list-tools-top,.warehouse-overview-search,.explicit-search) :is(input:not([type=checkbox]):not([type=radio]),select,.btn){height:var(--control-h);min-height:var(--control-h)}
html:root[data-theme] .order-workspace :is(select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.btn){height:var(--control-h-sm);min-height:var(--control-h-sm)}
@media(pointer:coarse){
 html:root[data-theme] :is(.list-tools-top,.warehouse-overview-search,.explicit-search,.order-workspace) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,.btn){height:var(--tap-min);min-height:var(--tap-min)}
}
/* Блоки карточки заказа (аудит владельца 23.11.2026): шапки блоков и итог «к оплате» — фоном surface-2 на поверхности
   карточки; пустые «Задания» и «Документы» не растягиваются до высоты «Истории заказа». */
html:root[data-theme] .order-workspace .panel-head{background:var(--surface-2)}
html:root[data-theme] .order-workspace .order-finance .summary-line.debt{background:var(--surface-2);border-radius:var(--r-sm);padding:var(--space-2);margin-top:var(--space-2)}
html:root[data-theme] .order-workspace .order-secondary{align-items:start}
/* Полоса вкладок, которая не помещается: край, за которым есть вкладки, растворяется (mobile-app.js mobileTabsMore). */
html:root[data-theme] :is(.tabs,[role=tablist],.stock-revision-groups).tabs-more-end{-webkit-mask-image:linear-gradient(to right,var(--ink) calc(100% - var(--space-7)),transparent);mask-image:linear-gradient(to right,var(--ink) calc(100% - var(--space-7)),transparent)}
html:root[data-theme] :is(.tabs,[role=tablist],.stock-revision-groups).tabs-more-start{-webkit-mask-image:linear-gradient(to left,var(--ink) calc(100% - var(--space-7)),transparent);mask-image:linear-gradient(to left,var(--ink) calc(100% - var(--space-7)),transparent)}
html:root[data-theme] :is(.tabs,[role=tablist],.stock-revision-groups).tabs-more-start.tabs-more-end{-webkit-mask-image:linear-gradient(to right,transparent,var(--ink) var(--space-7),var(--ink) calc(100% - var(--space-7)),transparent);mask-image:linear-gradient(to right,transparent,var(--ink) var(--space-7),var(--ink) calc(100% - var(--space-7)),transparent)}
/* «Настройки»: «Добавить …» у заголовка своего блока. */
html:root[data-theme] .settings-grid>.panel>.panel-head>.settings-panel-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-right:auto}
/* Табель (аудит владельца 23.11.2026): итоговые колонки отпуска уже, правый край растворяется, пока справа есть дни;
   сегодняшний день отмечен (attendance.js attendanceScrollPlace). */
html:root[data-theme] .attendance-calendar :is(th,td).attendance-balance{width:calc(var(--space-7) * 1.5);min-width:calc(var(--space-7) * 1.5);max-width:calc(var(--space-7) * 1.5);padding:var(--space-1)}
html:root[data-theme] .attendance-calendar .attendance-group-name{display:inline-block;position:sticky;left:calc(var(--attendance-fixed) + var(--space-3))}
html:root[data-theme] .attendance-scroll.scroll-more-end{-webkit-mask-image:linear-gradient(to right,var(--ink) calc(100% - var(--space-6)),transparent);mask-image:linear-gradient(to right,var(--ink) calc(100% - var(--space-6)),transparent)}
html:root[data-theme] .attendance-calendar thead th.attendance-day.is-today{box-shadow:inset 0 -3px var(--info);color:var(--info)}
/* a row of a list of goods in a window on the phone (new request, new purchase): its fields fit the card */
body.mobile-app-ready .bulk-table :is(input[name=item_name],input[name=item_comment]){min-width:0;width:100%}
/* the dark theme: the arrows of a number, the calendar of a date and an empty box to tick are drawn dark too */
:root[data-theme="dark"] input:is([type=number],[type=date],[type=month],[type=time],[type=datetime-local],[type=checkbox],[type=radio]){color-scheme:dark}
/* «Настройки → Отгрузка в заказы»: a repair source without a warehouse — amber «Требуется настройка», why, «Выбрать склад» */
html:root[data-theme] .order-dispatch-choice{align-content:center}
html:root[data-theme] .order-dispatch-choice.needs-setup>strong{grid-column:1}
html:root[data-theme] .order-dispatch-choice.needs-setup>.order-dispatch-why{grid-column:1;font:var(--text-caption);color:var(--ink-2)}
html:root[data-theme] .order-dispatch-choice.needs-setup>button{grid-column:2;grid-row:1/4}
/* A dangerous action that cannot be undone: the warning is a block of its own right before the button (operational-reset.js) */
html:root[data-theme] .danger-block{display:flex;gap:var(--space-3);align-items:flex-start;margin:var(--space-4) 0;padding:var(--space-3) var(--space-4);border:1px solid var(--bad);border-radius:var(--r-md);background:var(--bad-bg);color:var(--ink)}
html:root[data-theme] .danger-block>svg{flex:none;color:var(--bad);width:var(--space-5);height:var(--space-5)}
html:root[data-theme] .danger-block strong{display:block;font:var(--text-label);color:var(--bad)}
html:root[data-theme] .danger-block p{margin:var(--space-1) 0 0}
html:root[data-theme] .danger-block .btn{margin-top:var(--space-2)}
html:root[data-theme] .operational-reset-scope .badge{margin-right:var(--space-1)}
/* «Резервное копирование»: the state first, then why and the dates */
html:root[data-theme] .backup-summary .backup-state{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}
html:root[data-theme] .backup-summary .actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-4)}
/* «Юридическое лицо»: «Контактное лицо» and «Фискальный код / регистрационный номер» in one row — the fields stand on one line
   even when the longer name takes two lines */
html:root[data-theme] [data-client-company-fields] .row{align-items:end}
/* Plugins: green only for an exchange that went well; «Включён» alone is grey (owner's audit, 23.11.2026) */
html:root[data-theme] .plugin-status.enabled{background:var(--surface-2);color:var(--ink-2)}
html:root[data-theme] .plugin-status.working{background:var(--ok-bg);color:var(--ok)}
html:root[data-theme] .plugin-status.failing{background:var(--bad-bg);color:var(--bad)}
html:root[data-theme] .plugin-status.setup{background:var(--warn-bg);color:var(--warn)}
html:root[data-theme] .plugin-status.connected{background:var(--info-bg);color:var(--info)}
html:root[data-theme] .plugin-status:is(.working,.failing,.setup,.connected)::before{content:'';width:var(--space-2);height:var(--space-2);border-radius:var(--r-full);background:currentColor}
html:root[data-theme] .plugin-health{display:flex;gap:var(--space-2);align-items:flex-start;margin:var(--space-2) 0 0;font:var(--text-caption)}
html:root[data-theme] .plugin-health>svg{flex:none;width:var(--space-4);height:var(--space-4)}
html:root[data-theme] .plugin-health.ok{color:var(--ok)}
html:root[data-theme] .plugin-health.bad{color:var(--bad)}
html:root[data-theme] .plugin-health.warn{color:var(--warn)}
html:root[data-theme] .plugin-more{margin-top:var(--space-1);font:var(--text-caption);color:var(--ink-2)}
html:root[data-theme] .plugin-more>summary{cursor:pointer;color:var(--info);list-style:none;display:inline-flex;align-items:center;gap:var(--space-1)}
html:root[data-theme] .plugin-more>summary::-webkit-details-marker{display:none}
html:root[data-theme] .plugin-more>summary>.disclosure-chevron{display:inline-flex;transition:transform var(--dur-scrim)}
html:root[data-theme] .plugin-more>summary>.disclosure-chevron svg{width:var(--space-4);height:var(--space-4);stroke:currentColor}
html:root[data-theme] .plugin-more[open]>summary>.disclosure-chevron{transform:rotate(90deg)}
html:root[data-theme] .plugin-more>p{margin:var(--space-1) 0 0}
/* «Новые задания»: one line that opens its list (tasks.js taskInboxExpanded); on a phone it starts closed */
html:root[data-theme] .task-inbox-toggle{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--tap-min);min-width:0;padding:0;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer;text-align:left}
html:root[data-theme] .task-inbox-toggle>.disclosure-chevron{display:inline-flex;flex:none;transition:transform var(--dur-scrim)}
html:root[data-theme] .task-inbox-toggle>.disclosure-chevron svg{width:var(--space-4);height:var(--space-4);stroke:var(--ink-2)}
html:root[data-theme] .task-inbox-toggle[aria-expanded=true]>.disclosure-chevron{transform:rotate(90deg)}
html:root[data-theme] .task-inbox-list[hidden]{display:none}
html:root[data-theme] .task-inbox-toggle>strong{white-space:nowrap}
/* (on a phone the short line holds only the count and «×»; «Отметить прочитанными» comes with the list) */
html:root[data-theme] body.mobile-app-ready .task-inbox-head[data-task-inbox-open=false] .actions>.btn{display:none}
/* The «ИИ» button on a phone (owner's audit, 23.11.2026: «накладывается на карточки, действия и нижние элементы… с учётом
   нижней навигации и безопасной области экрана; внутри модальных окон плавающая кнопка не должна мешать форме»): above the
   bottom menu and the home bar of the iPhone, gone while a window is open or the keyboard is up */
/* only on the phone: the bottom menu (--mobile-nav-height) exists there; on a computer and a tablet the rule had no menu
   height and put the button under the bottom edge of the screen (check 25.11.2026) */
@media(max-width:800px){
html:root[data-theme] body.mobile-app-ready #ai-assistant{right:max(var(--space-3),env(safe-area-inset-right));bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + var(--space-3))}
html:root[data-theme] body.mobile-app-ready .ai-launch{width:var(--icon-btn);height:var(--icon-btn)}
html:root[data-theme] body.mobile-app-ready:has(#work-task-inbox) #ai-assistant{bottom:calc(var(--mobile-nav-height) + var(--space-3) + env(safe-area-inset-bottom) + var(--task-inbox-height) + var(--space-2))}
}
html:root[data-theme] body:has(dialog[open]) #ai-assistant>.ai-launch,
html:root[data-theme] body.mobile-keyboard-open #ai-assistant>.ai-launch,
html:root[data-theme] body.mobile-app-ready:has(.task-inbox-toggle[aria-expanded=true]) #ai-assistant>.ai-launch{display:none}
/* «Журнал → История действий» (owner's audit, 23.11.2026: «Для длинных таблиц полезно закрепить заголовки и сохранить доступ
   к фильтрам при прокрутке»): the table scrolls in its own box under the search and «Фильтры», its heading stays */
@media(min-width:801px){
 html:root[data-theme] .audit-history-panel .table-wrap{max-height:calc(100dvh - var(--space-7) * 4);overflow:auto}
 html:root[data-theme] .audit-history-panel thead th{position:sticky;top:0;z-index:1;background:var(--surface-2)}
}
/* «Валюты и курсы»: what a missing rate stops and what holds while syncing is off — a line under the value, grey */
html:root[data-theme] .exchange-why{display:block;font:var(--text-caption);color:var(--ink-2);white-space:normal}
/* «Финансы»: an empty block says it in one line, without the big empty picture */
html:root[data-theme] .finance-empty-line{margin:0;color:var(--ink-2);font:var(--text-small)}
/* «Мессенджер» (owner's audit, 23.11.2026: «увеличить полезное пространство переписки… поле ввода оказывается ниже видимой
   области… сворачиваемую информацию о клиенте… В настольном списке имена собеседников слишком сильно обрезаются»): a name of
   the list takes two lines; on a phone an open conversation fills the screen above the bottom menu with the reply always in
   it — the platforms and «Только ждущие ответа» step aside, the card of the lead opens by its heading below */
html:root[data-theme] .messenger-item-head strong{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
html:root[data-theme] .messenger-lead-toggle{display:inline-flex;align-items:center;gap:var(--space-2);padding:0;border:0;background:none;color:inherit;font:inherit;cursor:default}
html:root[data-theme] .messenger-lead-toggle>.disclosure-chevron{display:none}
@media(max-width:800px){
 html:root[data-theme] .messenger-workspace:has(.messenger.has-thread)>.messenger-channel-tabs,
 html:root[data-theme] .messenger-workspace:has(.messenger.has-thread) .messenger-top{display:none}
 html:root[data-theme] .messenger.has-thread .messenger-thread{height:calc(100dvh - var(--mobile-nav-height) - env(safe-area-inset-bottom) - var(--space-7) * 2 - var(--space-3));min-height:calc(var(--space-7) * 7)}
 html:root[data-theme] .messenger.has-thread .chat-messages{flex:1 1 0;max-height:none;min-height:0}
 html:root[data-theme] .messenger-lead-toggle{cursor:pointer;min-height:var(--tap-min)}
 html:root[data-theme] .messenger-lead-toggle>.disclosure-chevron{display:inline-flex;transition:transform var(--dur-scrim)}
 html:root[data-theme] .messenger-lead-toggle>.disclosure-chevron svg{width:var(--space-4);height:var(--space-4);stroke:var(--ink-2)}
 html:root[data-theme] .messenger-lead-toggle[aria-expanded=true]>.disclosure-chevron{transform:rotate(90deg)}
 html:root[data-theme] .messenger-lead:not(.lead-open)>:not(.messenger-lead-head){display:none}
 html:root[data-theme] .messenger.has-thread .messenger-thread-head>.messenger-thread-actions>.btn{padding-inline:var(--space-3);font:var(--text-small);font-weight:600}
 html:root[data-theme] body.mobile-app-ready:has(.messenger.has-thread) #ai-assistant>.ai-launch{display:none}
}
/* The document editor: an example under a field's code; a sticker's size beside «Страница и оформление» */
html:root[data-theme] .doc-variable-list .doc-variable-example{display:block;font:var(--text-caption);color:var(--ink-2)}
html:root[data-theme] .doc-summary-note{margin-left:var(--space-2);font:var(--text-caption);color:var(--ink-2)}
/* «Загрузка страницы…» floats over the page instead of pushing it down and back (owner's audit, 23.11.2026: «сохранение
   размеров блоков во время обновления») */
html:root[data-theme] [data-navigation-loading]{position:fixed;top:calc(var(--space-7) + var(--space-5));left:50%;transform:translateX(-50%);z-index:50;margin:0;box-shadow:var(--shadow-card);pointer-events:none}
/* Numbers stand on one line and one width in every table, total, card of a number and counter (owner's audit, 23.11.2026:
   «Числа, валюты, подписи и счётчики также должны стоять на общих базовых линиях») */
html:root[data-theme] :is(td,th,.summary-line,.personal-metric strong,.badge,.count,.tabs button span,.wallet-balance){font-variant-numeric:tabular-nums}
/* Surfaces of a block (owner's audit, 23.11.2026: «спокойный фон страницы, отдельные поверхности карточек и немного
   отличающийся фон их заголовков, итогов и служебных областей» — as the order card already does): the head of every block of
   a page is a shade apart from its body; a block that is the content of a tab window keeps its head on the window, and a head that
   holds folder tabs stays the surface of the window they open (docs/TABS.md). */
html:root[data-theme] #main .panel>.panel-head{background:var(--surface-2);border-top-left-radius:inherit;border-top-right-radius:inherit}
html:root[data-theme] #main .panel>.panel-head:last-child{border-radius:inherit}
html:root[data-theme] #main .section-tab-content>.panel>.panel-head{background:transparent;border-radius:0}
html:root[data-theme] #main .panel>.panel-head:has(.tabs:not(.list-scope)){background:var(--surface)}
/* A row whose card opens by its one action (people, contractors, suppliers — pakoviaRowOpen, app.js) answers the pointer as a
   row that opens a record does. */
@media(min-width:801px){
 html:root[data-theme] tbody tr[data-row-open]{cursor:pointer}
 html:root[data-theme] tbody tr[data-row-open]:hover{background:var(--surface-hover)}
 html:root[data-theme] tbody tr[data-row-open]:active:not(:has(button:active,a:active,input:active,select:active,label:active,summary:active)){background:var(--info-bg)}
}
/* Phone: the long filters of a list keep «Применить» and «Сбросить фильтр» in view above the bottom menu while they are open
   (audit: «длинные фильтры … с постоянно доступными действиями применения и сброса»); the «ИИ» button steps aside meanwhile. */
html:root[data-theme] body.mobile-app-ready .list-filter-actions{position:sticky;bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));z-index:3;background:var(--surface);padding-block:var(--space-2);box-shadow:0 -1px 0 var(--line)}
html:root[data-theme] body.mobile-app-ready:has([data-list-filter-toggle][aria-expanded=true]) #ai-assistant>.ai-launch{display:none}
/* (a block that clips its corners with «overflow:hidden» would hold the actions inside itself; «clip» cuts the same and lets them stick) */
html:root[data-theme] body.mobile-app-ready :is(.panel,.orders-register-results):has(.list-filter-actions){overflow:clip}
/* Document editor: the preview is a step of its own before «Сохранить шаблон» (owner's audit, 23.11.2026) */
html:root[data-theme] .doc-preview-area{border-top:0;margin-top:var(--space-5);padding:var(--space-4);border-radius:var(--r-md);background:var(--surface-2)}
html:root[data-theme] .doc-preview-title{margin:0;font:var(--text-section);color:var(--ink)}
html:root[data-theme] .doc-preview-why{margin:var(--space-1) 0 var(--space-3)}
/* «необязательно» beside the name of a field that may stay empty (docs/UI-RULES.md; owner, 24.11.2026 20:03) */
:root[data-theme] label em.field-optional{font:400 var(--fs-caption)/1.4 var(--font-body);color:var(--ink-3)}
/* a tablet: «История заказа», «Задания» and «Документы» of an order stand one under another — in three columns of 176 px
   «Добавить документы» covered the title and left its block (check 25.11.2026); the computer is not changed */
@media(min-width:801px) and (max-width:1100px){
html:root[data-theme] .order-workspace .order-secondary{grid-template-columns:minmax(0,1fr)}
html:root[data-theme] .order-workspace .order-secondary>.panel>.panel-head{flex-wrap:wrap;row-gap:var(--space-2)}
}
/* check of 26.11.2026: the calculation of an order — the total, what is paid and what is left stand out; an order paid to
   the last coin says «Оплачено» instead of a green «Принять оплату»; the window of a payment says the order, the client and
   what is left before the sum */
html:root[data-theme] .order-finance .summary-line.paid>strong{color:var(--ink);font-weight:600}
html:root[data-theme] .order-finance .summary-line.total>strong{font-weight:700}
html:root[data-theme] .order-paid-state{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--control-h-sm);padding:0 var(--space-2);border-radius:var(--r-sm);background:var(--ok-bg);color:var(--ok);font:var(--text-small);font-weight:600;white-space:nowrap}
html:root[data-theme] .order-paid-state>svg{flex:none;width:var(--icon);height:var(--icon);stroke:currentColor}
html:root[data-theme] .order-finance-actions>.order-paid-state{margin-left:auto}
html:root[data-theme] .payment-order-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-2) var(--space-3);margin:0 0 var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--r-md);background:var(--surface-2)}
html:root[data-theme] .payment-order-facts>div{min-width:0}
html:root[data-theme] .payment-order-facts dt{font:var(--text-small);color:var(--ink-2)}
html:root[data-theme] .payment-order-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media (max-width:520px){
html:root[data-theme] .payment-order-facts{grid-template-columns:minmax(0,1fr) auto}
html:root[data-theme] .payment-order-facts>div:nth-child(2){grid-column:1/-1;order:3}
html:root[data-theme] .payment-order-facts>div:nth-child(3){text-align:right}
}
/* check of 26.11.2026: «Включён» and «Выключен» were the same grey — on is a filled dot in a framed chip, off is a hollow dot
   on a dashed frame; green stays only for an exchange that went well */
html:root[data-theme] .plugin-status:is(.enabled,.disabled)::before{content:'';flex:none;width:var(--space-2);height:var(--space-2);border-radius:var(--r-full);box-sizing:border-box}
html:root[data-theme] .plugin-status.enabled{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong,var(--line))}
html:root[data-theme] .plugin-status.enabled::before{background:var(--info)}
html:root[data-theme] .plugin-status.disabled{background:transparent;color:var(--ink-3);outline:1px dashed var(--line-strong,var(--line));outline-offset:-1px}
html:root[data-theme] .plugin-status.disabled::before{border:1px solid currentColor;background:transparent}
/* check of 26.11.2026 — the colours of actions: red takes something away (a return of money, «Отвязать», «Убрать фотографию»,
   an extra field of a document, «Отменить ревизию»), amber pauses or undoes a mark, green confirms a receipt or finishes,
   blue moves or hands over. An icon button carries its colour in its icon */
html:root[data-theme] .icon-btn:is(.act-ok,.act-bad,.act-info,.act-warn){color:var(--act)}
html:root[data-theme] .icon-btn:is(.act-ok,.act-bad,.act-info,.act-warn):hover:not(:disabled){background:var(--act-bg)}
html:root[data-theme] .text-link.adverts-untie{color:var(--bad)}
html:root[data-theme] .adverts-untie-ask{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);font:var(--text-small);color:var(--ink-2)}
/* check of 26.11.2026 — a block that folds: its icon at the left, the title (and how many), the chevron at the right */
html:root[data-theme] :is(.mobile-fold-icon,.messenger-lead-toggle-icon,.settings-picker-icon,.plugin-more-icon,.person-extra-icon){display:inline-flex;flex:none;color:var(--ink-2)}
html:root[data-theme] :is(.mobile-fold-icon,.messenger-lead-toggle-icon,.settings-picker-icon,.plugin-more-icon,.person-extra-icon)>svg{width:var(--icon);height:var(--icon)}
html:root[data-theme] .plugin-more-icon{color:currentColor}
html:root[data-theme] .settings-picker>summary>span:not(.settings-picker-icon){flex:1;min-width:0}
html:root[data-theme] .order-workspace .panel-head[data-mobile-fold]{display:flex;align-items:center;gap:var(--space-2)}
html:root[data-theme] .order-workspace .panel-head[data-mobile-fold]>.disclosure-chevron{margin-left:auto}
html:root[data-theme] .messenger-lead-toggle>.disclosure-chevron{margin-left:auto}
html:root[data-theme] .order-kind-word{color:var(--ink-2);font-weight:600}
/* check of 26.11.2026: an operation of the stock (a write-off, a kit taken apart) — what left the stock is marked red, what came
   into it green; the colour is a mark at the side and in the title, the words say it too */
html:root[data-theme] .stock-operation-section[data-operation-side="inputs"]{border-left:var(--space-1) solid var(--bad)}
html:root[data-theme] .stock-operation-section[data-operation-side="inputs"] .stock-operation-section-head h3{color:var(--bad)}
html:root[data-theme] .stock-operation-section[data-operation-side="outputs"]{border-left:var(--space-1) solid var(--ok)}
html:root[data-theme] .stock-operation-section[data-operation-side="outputs"] .stock-operation-section-head h3{color:var(--ok)}
html:root[data-theme] .task-priority{display:inline-flex;align-items:center;gap:var(--space-1);font-weight:600}
html:root[data-theme] .task-priority>svg{width:var(--space-4);height:var(--space-4)}
html:root[data-theme] .task-priority-high{color:var(--warn)}
html:root[data-theme] .task-priority-urgent{color:var(--bad)}
html:root[data-theme] .messenger-reply-hint{display:flex;align-items:center;gap:var(--space-1);grid-column:1/-1;font:var(--text-small);color:var(--warn)}
html:root[data-theme] .messenger-reply-hint>svg{flex:none;width:var(--space-4);height:var(--space-4)}
html:root[data-theme] .person-card-modal details.person-group[data-person-extra]>summary{gap:var(--space-2)}
/* check of 26.11.2026: on a finger device the field of a new line says how to fill it — the placeholder was cut */
.order-composer-hint{display:none}
@media (pointer:coarse){html:root[data-theme] .order-composer-hint{display:block;margin-top:var(--space-1);font:var(--text-small);color:var(--ink-2)}}
/* check of 26.11.2026: «Печать» of a warehouse — one button with a menu (the SKU of all its places, the SKU of the warehouse) */
html:root[data-theme] details.row-menu.print-menu>summary{width:auto;height:auto;min-height:var(--control-h-sm);padding:0 var(--space-3);gap:var(--space-1);border-radius:var(--r-sm);font:var(--text-label);color:var(--ink);border:1px solid var(--line-strong)}
html:root[data-theme] details.row-menu.print-menu>summary>svg{width:var(--icon);height:var(--icon)}
/* owner, 27.11.2026 10:48: a long list has «Найти в списке» under it; what matches stands under the field (as «Город») */
html:root[data-theme] .select-search{position:relative;display:grid;min-width:0}
html:root[data-theme] .select-search-input{width:100%;min-height:var(--control-h);padding:var(--space-1) var(--space-3);border:1px dashed var(--line-strong);border-radius:var(--r-md);background:var(--surface);color:var(--ink);font:var(--text-small)}
html:root[data-theme] .select-search-input:focus{border-style:solid}
html:root[data-theme] .select-search-list{position:absolute;z-index:30;top:calc(100% + var(--space-1));left:0;right:0;display:grid;max-height:calc(var(--control-h)*7);overflow-y:auto;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);box-shadow:var(--shadow-float)}
html:root[data-theme] .select-search-list[hidden]{display:none}
html:root[data-theme] .select-search-option{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3);width:100%;min-height:var(--control-h);padding:var(--space-2) var(--space-3);border:0;border-radius:0;background:none;color:var(--ink);font:var(--text-body);font-weight:400;text-align:left;cursor:pointer}
html:root[data-theme] .select-search-option+.select-search-option{border-top:1px solid var(--line)}
html:root[data-theme] .select-search-option:is(:hover,.active){background:var(--surface-2)}
html:root[data-theme] .select-search-option[aria-selected=true]{font-weight:600}
html:root[data-theme] .select-search-option>span{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
html:root[data-theme] .select-search-option>small{flex:0 1 auto;color:var(--ink-3);font:var(--text-small)}
html:root[data-theme] .select-search-note{margin:0;padding:var(--space-2) var(--space-3);color:var(--ink-2);font:var(--text-small)}
@media(max-width:800px){html:root[data-theme] .select-search-option{min-height:var(--tap-min)}html:root[data-theme] .select-search-input{font-size:16px}}
@media print{.select-search{display:none}}
html:root[data-theme] .people-search{display:grid;gap:var(--space-1);margin:0 0 var(--space-2)}
html:root[data-theme] .people-search .select-search-note{padding:0}
html:root[data-theme] .people-search .select-search-note[hidden]{display:none}
/* owner's audit 26.11.2026 — «компактные позиции закупок»: on a phone a line of a purchase or a request is one card — the
   cross that removes it stands in its corner instead of a row of its own, and the card is not framed twice */
html:root[data-theme] body.mobile-app-ready dialog .bulk-table.table-wrap{border:0;padding:0;background:none}
html:root[data-theme] body.mobile-app-ready .bulk-table tr[data-mobile-row]:has(>td.mobile-row-actions>.icon-btn:only-child){position:relative}
html:root[data-theme] body.mobile-app-ready .bulk-table tr[data-mobile-row]>td.mobile-row-actions:has(>.icon-btn:only-child){position:absolute;top:var(--space-1);right:var(--space-1);padding:0!important;border:0!important;grid-column:auto}
html:root[data-theme] body.mobile-app-ready .bulk-table tr[data-mobile-row]:has(>td.mobile-row-actions>.icon-btn:only-child)>td:first-child{padding-right:calc(var(--icon-btn) + var(--space-1))!important}
/* owner's audit 26.11.2026 — «высота пустых работ/запчастей»: an empty group of a repair is one quiet line */
html:root[data-theme] .order-items-empty{margin:0;padding:var(--space-2) var(--space-3);min-height:var(--control-h);display:flex;align-items:center;color:var(--ink-3);font:var(--text-small)}
/* owner's audit 26.11.2026 — the preview of a document says that it is loading */
html:root[data-theme] .order-document-preview-box{position:relative;min-height:calc(var(--control-h)*3)}
html:root[data-theme] .order-document-preview-box[data-loading]::after{content:attr(data-loading);position:absolute;inset:0;display:grid;place-items:center;padding:var(--space-4);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);color:var(--ink-2);font:var(--text-body);text-align:center}
html:root[data-theme] [data-catalog-column^="price_country_"]{font-variant-numeric:tabular-nums;white-space:nowrap}
/* owner, 27.11.2026 14:05 — «тумблер-переключатель "по перечислению(+20%)"… такую же высоту, как кнопка колонки»: a switch
   (role=switch) of the height of a small button, left of «Колонки» */
html:root[data-theme] .pk-switch{position:relative;display:inline-flex;align-items:center;gap:var(--space-2);box-sizing:border-box;height:var(--control-h-sm);min-height:var(--control-h-sm);margin:0;padding:0 var(--space-3) 0 var(--space-2);border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);color:var(--ink);font:var(--text-label);white-space:nowrap;cursor:pointer;vertical-align:middle}
html:root[data-theme] .pk-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
html:root[data-theme] .pk-switch-track{position:relative;flex:none;width:calc(var(--space-4)*2);height:var(--space-4);border-radius:var(--r-full);background:var(--surface-2);border:1px solid var(--line-strong);transition:background-color .15s}
html:root[data-theme] .pk-switch-track::after{content:"";position:absolute;top:1px;left:1px;width:calc(var(--space-4) - 4px);height:calc(var(--space-4) - 4px);border-radius:var(--r-full);background:var(--ink-2);transition:transform .15s,background-color .15s}
html:root[data-theme] .pk-switch input:checked~.pk-switch-track{background:var(--primary);border-color:var(--primary)}
html:root[data-theme] .pk-switch input:checked~.pk-switch-track::after{transform:translateX(var(--space-4));background:var(--on-primary)}
html:root[data-theme] .pk-switch:has(input:checked){border-color:var(--primary)}
html:root[data-theme] .pk-switch:has(input:focus-visible){box-shadow:var(--focus-ring)}
html:root[data-theme] .pk-switch:has(input:disabled){opacity:.6;cursor:not-allowed}
html:root[data-theme] .pk-switch[aria-busy=true]{opacity:.7}
html:root[data-theme] .pk-switch .sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html:root[data-theme] .order-item-panel-actions .actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--space-2)}
/* diagnosis 27.11.2026, C23: in a narrow cell «Bonus Ware…» hid the number of the second warehouse — the chips wrap, a long
   name is shortened, the number always stays */
html:root[data-theme] .product-warehouse-chips{flex-wrap:wrap;overflow:visible;min-width:0}
html:root[data-theme] .warehouse-chip{max-width:100%;min-width:0}
html:root[data-theme] .warehouse-chip-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root[data-theme] .warehouse-chip b{flex:none}
/* diagnosis 27.11.2026, C02: on a computer the «ИИ» circle stood over «Удалить», «Изменить» and the last column — the page keeps
   room under its end, so whatever is under the circle can be scrolled above it */
@media (min-width:801px){html:root[data-theme] body:has(#ai-assistant .ai-launch) #main{padding-bottom:calc(var(--control-h) * 2 + var(--space-6))}}
/* diagnosis 27.11.2026, C10: «Дополнительные условия» in «Настройки → Каталог» were wider than the window — the rule lays its
   value under its field when the place is narrow */
html:root[data-theme] .list-options-body{container-type:inline-size;max-width:100%;min-width:0}
@container (max-width:640px){
 html:root[data-theme] .list-rule{grid-template-columns:minmax(0,1fr) minmax(0,1fr) calc(var(--space-6) + var(--space-2))}
 html:root[data-theme] .list-rule-values{grid-column:1/3;grid-row:2;min-width:0}
 html:root[data-theme] .list-rule>.icon-btn{grid-column:3;grid-row:1}
 html:root[data-theme] .list-sort{grid-template-columns:var(--space-5) minmax(0,1fr) calc(var(--space-6) + var(--space-2))}
 html:root[data-theme] .list-sort [data-sort-direction]{grid-column:2;grid-row:2}
 html:root[data-theme] .list-sort>.icon-btn{grid-column:3;grid-row:1}
}
/* diagnosis 27.11.2026, C12: «Колонки» lay over «Ревизии» at 1095 px — when the tabs and the buttons do not fit one line, the
   buttons go above the tabs (as on the phone) */
html:root[data-theme] .inventory-section-header{flex-wrap:wrap-reverse;row-gap:var(--space-2)}
html:root[data-theme] .inventory-section-header>.tabs{flex:1 1 auto;min-width:min(100%,max-content)}
html:root[data-theme] .inventory-section-header>.inventory-header-actions{margin-left:auto;flex:none;display:flex;flex-wrap:wrap;gap:var(--space-2)}
html:root[data-theme] .product-name-archived{font:var(--text-label);color:var(--ink-2)}
/* diagnosis 27.11.2026, UX-51: «Оприходование», «Перемещение» broke inside the word */
html:root[data-theme] .badge{white-space:nowrap;word-break:keep-all;overflow-wrap:normal}
/* diagnosis 27.11.2026, UX-12: the heads of long tables of rights stay in view while the rows scroll */
html:root[data-theme] table.person-access-table>thead th{position:sticky;top:0;z-index:1;background:var(--surface)}
/* diagnosis 27.11.2026, UX-15: the rights of a role in even columns, whole labels */
html:root[data-theme] form .checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--control-h) * 4.5),1fr));gap:var(--space-2) var(--space-4);align-items:start}
/* the switch and «Колонки» share one row and one height everywhere (owner, 27.11.2026 14:05: «такую же высоту, как кнопка
   колонки»); on a phone the row goes under the title of the section */
html:root[data-theme] .order-item-panel-actions .actions:has(.pk-switch){flex-wrap:nowrap;align-items:stretch}
html:root[data-theme] .order-item-panel-actions .actions:has(.pk-switch)>.btn{height:auto}
html:root[data-theme] .order-item-panel-actions .pk-switch{height:auto}
@media (max-width:800px){
 html:root[data-theme] .panel-head:has(.order-transfer-vat){flex-wrap:wrap;row-gap:var(--space-2)}
 html:root[data-theme] .panel-head:has(.order-transfer-vat)>.order-item-panel-actions{flex:1 0 100%;align-items:stretch}
 html:root[data-theme] .order-item-panel-actions .actions:has(.pk-switch){justify-content:stretch}
 html:root[data-theme] .order-item-panel-actions .pk-switch{flex:1 1 auto;white-space:normal}
}


/* mobile-standard.css */
/* Pakovia 2.0 — мобильная версия по единому стандарту интерфейса (docs/UI-RULES.md; owner, 25.11.2026 11:30: «построй на
   их основе мобильный веб-интерфейс системы»). Only the phone layer (up to 800px, body.mobile-app-ready) and only tokens; a
   computer is not touched. Loaded last, so the rules of the standard win over the earlier phone rules. */

/* a toast with «Вернуть» (docs/UI-RULES.md «Тост»): the action on the right, the zone of a finger */
html:root[data-theme] .toast-undo{display:flex;align-items:center;gap:var(--space-3)}
html:root[data-theme] .toast-undo>span{flex:1;min-width:0}
/* in a sheet of the panel: at its bottom, over its rows (the page under a sheet cannot be pressed) */
html:root[data-theme] .mobile-sheet>.toast-in-sheet{position:sticky;bottom:0;z-index:1;margin:var(--space-3) 0 0;max-width:none}
html:root[data-theme] .toast-undo .toast-action{flex:none;min-height:var(--hit);padding:0 var(--space-2);border:0;border-radius:var(--r-sm);background:transparent;color:inherit;font:var(--text-strong);text-decoration:underline;cursor:pointer}

@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready{--mobile-nav-height:var(--tabbar-h)}

 /* ---------- Верхняя панель: название раздела слева; справа чип страны и аватар; цвет — как у строки состояния (theme-color) ---------- */
 html:root[data-theme] body.mobile-app-ready .topbar{height:calc(var(--topbar-h) + env(safe-area-inset-top));min-height:0;gap:var(--space-2);padding:env(safe-area-inset-top) max(var(--pad-page),env(safe-area-inset-right)) 0 max(var(--pad-page),env(safe-area-inset-left));background:var(--bg);border-bottom:1px solid var(--line);backdrop-filter:none;z-index:var(--z-top)}
 html:root[data-theme] body.mobile-app-ready .breadcrumb{visibility:visible;min-width:0;flex:1}
 html:root[data-theme] body.mobile-app-ready .breadcrumb>b{font:var(--text-bar);color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .top-tools{gap:var(--space-1);flex:none}
 html:root[data-theme] body.mobile-app-ready .top-tools>:is(.personal-interface-button,[data-action=profile-language],svg){display:none}
 /* the country is a chip, and only for a person of several countries; the chip is 32px, its zone 44px */
 html:root[data-theme] body.mobile-app-ready .top-tools>#country{height:var(--hit);min-height:var(--hit);max-width:calc(var(--space-7) * 3);padding:0 var(--space-6) 0 var(--space-4);border:calc((var(--hit) - var(--chip-h)) / 2) solid transparent;border-radius:var(--r-full);background-color:var(--surface-2)!important;background-clip:padding-box;box-shadow:inset 0 0 0 1px var(--line);font:var(--text-label);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready .top-tools>#country.mobile-country-single{display:none}
 html:root[data-theme] body.mobile-app-ready .top-tools .profile{display:grid;place-items:center;width:var(--hit);height:var(--hit);min-width:var(--hit);min-height:var(--hit);padding:0;border:0;border-radius:var(--r-full);background:transparent}
 html:root[data-theme] body.mobile-app-ready .top-tools .profile .profile-name{display:none}
 html:root[data-theme] body.mobile-app-ready .top-tools .profile .avatar{width:var(--avatar);height:var(--avatar)}

 /* ---------- Нижняя панель: раздел · раздел · «+» · раздел · «Ещё» ---------- */
 html:root[data-theme] body.mobile-app-ready .mobile-bottom-nav{z-index:var(--z-nav);min-height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));gap:0;padding:0 max(var(--space-1),env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--space-1),env(safe-area-inset-left));background:var(--surface);border-top:1px solid var(--line);box-shadow:none;backdrop-filter:none}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item{min-height:var(--tabbar-h);gap:var(--space-1);padding:var(--space-1) 0;border:0;border-radius:0;background:transparent;color:var(--ink-2);font:var(--text-caption)}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item>svg{box-sizing:content-box;width:var(--icon-nav);height:var(--icon-nav);padding:0 var(--space-3);border-radius:var(--r-full)}
 /* the active section: the colour of an action and a filled indicator under its icon (Material 3); the word turns bold */
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item.active{color:var(--primary);background:transparent;font-weight:800}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item.active>svg{background:color-mix(in srgb,var(--primary) 14%,transparent)}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item>b{top:0;right:auto;left:calc(50% + var(--space-2));min-width:calc(var(--space-4) + var(--space-1));height:calc(var(--space-4) + var(--space-1));padding:0 var(--space-1);border:1px solid var(--surface);border-radius:var(--r-full);background:var(--primary);color:var(--on-primary);display:grid;place-items:center;font:var(--text-caption)}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-create{width:var(--fab);height:var(--fab);min-height:var(--fab);border:1px solid var(--accent-line);border-radius:var(--r-full);background:var(--accent-bg);color:var(--accent-ink);box-shadow:0 0 0 1px var(--accent-line),var(--shadow-float)}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-create>svg{width:var(--icon-nav);height:var(--icon-nav)}
 html:root[data-theme] body.mobile-app-ready .workspace{padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom))}
 html:root[data-theme] body.mobile-app-ready #toasts{left:var(--pad-page);right:var(--pad-page);bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--space-2))}
 html:root[data-theme] body.mobile-keyboard-open #toasts{bottom:var(--space-2)}
 /* a window is open: its notice stands just above the window's buttons, not over them, nor over its «← Закрыть» and title
    at the top (owner, 02.12.2026 17:41: «алерт сохранено, перекрывает кнопки») */
 html:root[data-theme] body.mobile-app-ready:has(dialog[open]) #toasts{bottom:calc(var(--btn-main-h) + var(--space-3) * 2 + env(safe-area-inset-bottom) + var(--space-2))}

 /* ---------- Лист снизу: «Ещё», «Что создать?», «Учётная запись» ---------- */
 html:root[data-theme] body.mobile-app-ready .mobile-sheet{inset:auto 0 0;width:100%;max-width:100%;max-height:min(var(--sheet-h),calc(var(--mobile-viewport-height,100dvh) - var(--space-7)));margin:0;padding:0 max(var(--pad-box),env(safe-area-inset-right)) calc(var(--pad-box) + env(safe-area-inset-bottom)) max(var(--pad-box),env(safe-area-inset-left));border:0;border-radius:var(--r-lg) var(--r-lg) 0 0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-overlay)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet[open]{animation:mobile-sheet-in var(--dur-sheet) ease-out}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet::backdrop{background:var(--scrim);backdrop-filter:none}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-handle{width:calc(var(--space-6) + var(--space-1));height:var(--space-1);margin:var(--space-2) auto 0;border-radius:var(--r-full);background:var(--line-strong)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-heading{min-height:var(--topbar-h);margin:0 0 var(--space-3);padding:0;gap:var(--space-3);border:0}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-heading h2{font:var(--text-bar);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-body{gap:var(--space-5)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-preferences{border-top:1px solid var(--line);padding-top:var(--space-2)}

 /* «Ещё»: every section by groups; the pin on the right is the only button of a row in the whole system */
 html:root[data-theme] body.mobile-app-ready .mobile-more{display:grid;gap:var(--space-5)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-group{display:grid;gap:0}
 html:root[data-theme] body.mobile-app-ready .mobile-more-group>h3{margin:0 0 var(--space-1);font:var(--text-caption);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-row{display:flex;align-items:center;gap:var(--space-1);min-height:var(--row-h-1);border-bottom:1px solid var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-row:last-child{border-bottom:0}
 html:root[data-theme] body.mobile-app-ready .mobile-more-link{flex:1;display:flex;align-items:center;gap:var(--space-3);min-width:0;min-height:var(--hit);color:var(--ink);font:var(--text-body);text-decoration:none}
 html:root[data-theme] body.mobile-app-ready .mobile-more-link>svg{flex:none;width:var(--icon);height:var(--icon);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-link>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .mobile-more-link[aria-current=page]{color:var(--primary);font:var(--text-strong)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-link[aria-current=page]>svg{color:var(--primary)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-count{flex:none;min-width:var(--space-5);padding:0 var(--space-2);border-radius:var(--r-full);background:var(--info-bg);color:var(--info);font:var(--text-caption);text-align:center}
 html:root[data-theme] body.mobile-app-ready .mobile-pin{flex:none;display:grid;place-items:center;width:var(--hit);height:var(--hit);min-height:var(--hit);padding:0;border:0;border-radius:var(--r-full);background:transparent;color:var(--ink-3);cursor:pointer}
 html:root[data-theme] body.mobile-app-ready .mobile-pin>svg{width:var(--icon);height:var(--icon)}
 html:root[data-theme] body.mobile-app-ready .mobile-pin.pinned{color:var(--primary)}
 html:root[data-theme] body.mobile-app-ready .mobile-pin.pinned>svg{fill:currentColor}
 html:root[data-theme] body.mobile-app-ready :is(.mobile-more-link,.mobile-pin,.mobile-sheet-row):active{background:color-mix(in srgb,var(--ink) 8%,transparent)}

 /* «Учётная запись»: who is signed in, the theme at once, the person's own settings, «Выйти» last and red */
 html:root[data-theme] body.mobile-app-ready .mobile-account-identity{display:flex;align-items:center;gap:var(--space-3);min-width:0}
 html:root[data-theme] body.mobile-app-ready .mobile-account-identity p{display:grid;gap:var(--space-1);min-width:0;margin:0}
 html:root[data-theme] body.mobile-app-ready .mobile-account-identity strong{font:var(--text-strong);color:var(--ink);overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready .mobile-account-identity span{font:var(--text-small);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-account-theme{display:grid;gap:var(--space-1)}
 html:root[data-theme] body.mobile-app-ready .mobile-account-theme>span{font:var(--text-label);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-account-theme .segments{display:grid;grid-template-columns:1fr 1fr}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-rows{display:grid;border-top:1px solid var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-row{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:var(--row-h-1);padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font:var(--text-body);text-align:left;cursor:pointer}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-row>svg{flex:none;width:var(--icon);height:var(--icon);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-row>span{flex:1;min-width:0}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-row>small{flex:none;max-width:50%;font:var(--text-small);color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-row.bad,html:root[data-theme] body.mobile-app-ready .mobile-sheet-row.bad>svg{color:var(--bad)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet .form-error:empty{display:none}

 /* «Что создать?»: plates 2 × N — the icon, the name, one line of what it ends with */
 html:root[data-theme] body.mobile-app-ready .mobile-action-grid{gap:var(--space-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile{min-height:calc(var(--space-7) * 2);gap:var(--space-2);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);color:var(--ink);font:var(--text-strong)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile:active{background:color-mix(in srgb,var(--ink) 8%,var(--surface));transform:scale(.98)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-icon{width:var(--hit);height:var(--hit);border-radius:var(--r-md);background:var(--info-bg);color:var(--info)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-icon>svg{width:var(--icon-nav);height:var(--icon-nav)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-copy{gap:var(--space-1)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-copy>strong{font:var(--text-strong);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-copy>small{font:var(--text-small);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-section-link{min-height:var(--row-h-1);gap:var(--space-3);padding:0;border-radius:0;font:var(--text-body);color:var(--ink)}
 /* ---------- «Обзор»: плитки-числа, «Требует внимания», блоки роли; название раздела — в верхней панели ---------- */
 html:root[data-theme] body.mobile-app-ready .personal-overview-header{align-items:center;gap:var(--space-3);margin:0 0 var(--space-3)}
 html:root[data-theme] body.mobile-app-ready .personal-overview-header h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .personal-overview-date{margin:0;font:var(--text-small);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .personal-overview-metrics{gap:var(--space-2)}
 html:root[data-theme] body.mobile-app-ready .personal-metric{min-height:0;gap:var(--space-1);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-card)}
 html:root[data-theme] body.mobile-app-ready .personal-metric:first-child{border-color:var(--line);background:var(--info-bg);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready .personal-metric:first-child>strong{color:var(--info)}
 html:root[data-theme] body.mobile-app-ready .personal-metric-label,html:root[data-theme] body.mobile-app-ready .personal-metric:first-child .personal-metric-label{font:var(--text-label);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .personal-metric>strong{margin:0;font:var(--text-number);letter-spacing:0}
 html:root[data-theme] body.mobile-app-ready .personal-metric>small,html:root[data-theme] body.mobile-app-ready .personal-metric:first-child .personal-metric-hint{display:-webkit-box;margin:0;overflow:hidden;font:var(--text-small);color:var(--ink-2);-webkit-box-orient:vertical;-webkit-line-clamp:2}
 html:root[data-theme] body.mobile-app-ready .personal-metric:active{background:color-mix(in srgb,var(--ink) 8%,var(--surface));transform:scale(.98)}

 /* ---------- Строки списков: одна цель — иконка, две строки текста, сумма и статус справа ---------- */
 html:root[data-theme] body.mobile-app-ready .table-wrap:has(>.mobile-face-table){padding:0;overflow:clip}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody{display:block;gap:0}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]{position:relative;display:flex;align-items:center;gap:var(--space-3);min-height:var(--row-h);padding:var(--space-2) var(--pad-box);border:0;border-radius:0;background:var(--surface);box-shadow:none;cursor:pointer}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]::after{content:"";position:absolute;left:calc(var(--pad-box) + var(--space-6) + var(--space-2) + var(--space-3));right:0;bottom:0;border-bottom:1px solid var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]:last-child::after{display:none}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]>td{display:none!important}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]>td.mobile-row-face{display:grid!important;flex:1;min-width:0;grid-template-columns:calc(var(--space-6) + var(--space-2)) minmax(0,1fr) auto;grid-template-areas:"icon title value" "icon sub status" "icon extra extra";align-items:center;gap:0 var(--space-3);font:var(--text-body);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr>td.mobile-row-face::before{display:none}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table.mobile-selecting>tbody>tr[data-mobile-face]>td.mobile-row-selection{position:static;display:grid!important;place-items:center;flex:none;width:var(--hit)!important;height:var(--hit);margin:0 calc(-1 * var(--space-2)) 0 calc(-1 * var(--space-3))}
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon{grid-area:icon;display:grid;place-items:center;width:calc(var(--space-6) + var(--space-2));height:calc(var(--space-6) + var(--space-2));overflow:hidden;border-radius:var(--r-md);background:var(--surface-2);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon>svg{width:var(--icon);height:var(--icon)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon>img{width:100%;height:100%;object-fit:cover}
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon.mobile-face-avatar{border-radius:var(--r-full);background:var(--info-bg);color:var(--info);font:var(--text-caption)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-title{grid-area:title;display:-webkit-box;min-width:0;overflow:hidden;font:var(--text-strong);color:var(--ink);overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
 html:root[data-theme] body.mobile-app-ready .mobile-face-sub{grid-area:sub;min-width:0;overflow:hidden;font:var(--text-small);color:var(--ink-2);text-overflow:ellipsis;white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .mobile-face-value{grid-area:value;justify-self:end;font:var(--text-strong);color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .mobile-face-status{grid-area:status;justify-self:end;max-width:calc(var(--space-7) * 3);min-width:0}
 html:root[data-theme] body.mobile-app-ready .mobile-face-status>:is(.badge,.status-pill){display:inline-block;max-width:100%;overflow:hidden;font:var(--text-caption);text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
 /* a line of an order: its «⋯» on the right of the name (owner, 25.11.2026 19:15) — opens the sheet of the line; the name has
    the whole width, the sum stands beside the SKU, «1 шт. × цена» and the state each on a line of its own */
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]>td.mobile-row-face.mobile-face-has-menu{grid-template-columns:calc(var(--space-6) + var(--space-2)) minmax(0,1fr) auto var(--hit);grid-template-areas:"icon title title menu" "icon sub value value" "icon extra extra extra" "icon status status status"}
 html:root[data-theme] body.mobile-app-ready .mobile-face-has-menu>.mobile-face-status{justify-self:start;max-width:100%;margin-top:var(--space-1)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-menu{grid-area:menu;align-self:start;justify-self:end;display:grid;place-items:center;width:var(--hit);height:var(--hit);margin:0 calc(-1 * var(--space-2)) 0 0;padding:0;border:1px solid var(--line);border-radius:var(--r-full);background:var(--surface);color:var(--ink);font:var(--text-strong);line-height:1;cursor:pointer}
 html:root[data-theme] body.mobile-app-ready .mobile-face-menu:active{background:var(--surface-2)}
 /* a line of its own under the tile (iPhone report 25.11.2026): what is left to pay, «2 × 250 MDL» of a line of an order, the
    priority and the term of a task — never cut by the rest of the tile */
 html:root[data-theme] body.mobile-app-ready .mobile-face-extra{grid-area:extra;min-width:0;margin-top:var(--space-1);font:var(--text-small);color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready .mobile-face-extra .order-money-line.due{color:var(--warn)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-extra .order-money-line.over{color:var(--info)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-extra .order-money-line.paid{color:var(--ok)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-extra .task-face-term{color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-extra .status-pill{display:inline-block;margin-left:var(--space-2);font:var(--text-caption);vertical-align:middle}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]:active{background:color-mix(in srgb,var(--ink) 8%,var(--surface))}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face].bulk-selected{background:color-mix(in srgb,var(--primary) 12%,var(--surface))}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face].list-row-last-open{background:var(--info-bg);box-shadow:inset var(--space-1) 0 0 var(--info)}
 /* «Выбрать» over the rows; the box «Выбрать на этой странице» only while rows are chosen */
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>thead:has(.mobile-row-select-all){padding:0 var(--pad-box);border-bottom:1px solid var(--line);background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table th.mobile-row-select-all{display:flex!important;align-items:center;gap:var(--space-3);min-height:var(--row-h-1);background:transparent}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table:not(.mobile-selecting) th.mobile-row-select-all .mobile-checkbox-hit{display:none}
 html:root[data-theme] body.mobile-app-ready .mobile-select-mode{margin-left:auto;min-height:var(--hit);padding:0 var(--space-2);border:0;border-radius:var(--r-sm);background:transparent;color:var(--info);font:var(--text-label);cursor:pointer}
 html:root[data-theme] body.mobile-app-ready .mobile-select-mode[hidden]{display:none}

 /* the sheet of a row with no card: «ключ — значение» lines, then its buttons; dangerous last and red */
 html:root[data-theme] body.mobile-app-ready .mobile-row-sheet-lines{display:grid;margin:0}
 html:root[data-theme] body.mobile-app-ready .mobile-row-sheet-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 var(--space-3);min-height:var(--row-h-1);padding:var(--space-1) 0;border-bottom:1px solid var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-row-sheet-line>dt{font:var(--text-body);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-row-sheet-line>dd{margin:0 0 0 auto;font:var(--text-strong);color:var(--ink);text-align:right;overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready .mobile-row-sheet-actions{display:grid;border-top:1px solid var(--line)}

 /* ---------- Окна — листы снизу (docs/UI-RULES.md «Лист или страница»): у нижнего края, скругление сверху ---------- */
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet):not(.stock-product-drawer):not(.assignment-drawer):not(.freight-drawer){inset:0;width:100%;max-width:100%;max-height:min(var(--sheet-h),calc(var(--mobile-viewport-height,100dvh) - var(--space-7)));margin:auto 0 0;border:0;border-radius:var(--r-lg) var(--r-lg) 0 0;box-shadow:var(--shadow-overlay)}
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet):not(.stock-product-drawer):not(.assignment-drawer):not(.freight-drawer)[open]{animation:mobile-sheet-in var(--dur-sheet) ease-out}
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet)::backdrop{background:var(--scrim)}
 /* the shared window is a sheet of the whole width too (an earlier rule of mobile-app.css kept it 16px narrower) */
 html:root[data-theme] body.mobile-app-ready #modal[open]{width:100%;max-width:100%;border-radius:var(--r-lg) var(--r-lg) 0 0}
 /* iPhone report 25.11.2026 (MOB-07): a sheet stands on the visible part — above the keyboard and its bar, its buttons in
    reach while a field is in focus (--mobile-keyboard-inset: mobileSyncViewport, by visualViewport) */
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet):not(.stock-product-drawer):not(.assignment-drawer):not(.freight-drawer)[open]{margin-bottom:var(--mobile-keyboard-inset,0px)}
 /* MOB-08: a window that searches as one types keeps its height — the field does not jump while the results come, and the
    buttons stay where the finger expects them; the results scroll inside */
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet)[open]:has([data-sku-picker]){height:min(var(--sheet-h),calc(var(--mobile-viewport-height,100dvh) - var(--space-7)))}
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet)[open]:has([data-sku-picker])>form{height:100%;min-height:0}
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet)[open]:has([data-sku-picker])>form>.modal-body{flex:1 1 auto;min-height:0;overflow-y:auto}
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet) .modal-head{touch-action:none}

 /* ---------- Карточка заказа, ремонта, задания — лист на 92% высоты поверх списка ---------- */
 html:root[data-theme] body.mobile-app-ready #main.content.order-overlay-content{inset:auto 0 0;height:min(var(--sheet-h),calc(var(--mobile-viewport-height,100dvh) - var(--space-7)));padding:0 var(--pad-box) calc(var(--pad-box) + env(safe-area-inset-bottom));border:0;border-radius:var(--r-lg) var(--r-lg) 0 0;box-shadow:var(--shadow-overlay);scrollbar-gutter:auto}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content.order-overlay-entering{animation:mobile-sheet-in var(--dur-sheet) ease-out var(--order-overlay-fade-delay,0ms) both}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar{top:0;margin:0 calc(-1 * var(--pad-box)) var(--space-3);padding:var(--space-5) calc(var(--icon-btn) + var(--space-4)) var(--space-3) var(--pad-box);border-radius:var(--r-lg) var(--r-lg) 0 0;background:var(--surface);touch-action:none}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar::before{content:"";position:absolute;top:var(--space-2);left:calc(50% - (var(--space-6) + var(--space-1)) / 2);width:calc(var(--space-6) + var(--space-1));height:var(--space-1);border-radius:var(--r-full);background:var(--line-strong)}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-overlay-close{top:var(--space-4);right:var(--space-3);width:var(--icon-btn);height:var(--icon-btn);min-width:var(--icon-btn)}
 /* «Закрыть» and the swipe return to the list: the arrow «К списку» would be a second way to the same place */
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-back{display:none}
 /* under a sheet the bottom panel is not seen (docs/UI-RULES.md «Нижняя панель»: скрыта под листом) */
 html:root[data-theme] body.mobile-app-ready.order-overlay-open .mobile-bottom-nav{display:none}
 /* iPhone report 25.11.2026 (MOB-06): the order reads in the order of checking it — the client, what is in it, how much, then
    the comments; the client and the comments fold by their heading. The tall heading scrolls away; a slim bar with the number
    and «Закрыть» stands at the top instead (mobileOrderSheet) */
 html:root[data-theme] body.mobile-app-ready .order-workspace{display:flex;flex-direction:column;gap:var(--space-3)}
 html:root[data-theme] body.mobile-app-ready .order-workspace>.order-top-grid{display:contents}
 html:root[data-theme] body.mobile-app-ready .order-workspace>*{order:1;margin-bottom:0}
 html:root[data-theme] body.mobile-app-ready .order-workspace>:is(.order-mini-bar,.order-toolbar){order:0}
 html:root[data-theme] body.mobile-app-ready .order-workspace>.order-top-grid>.order-overview{order:2}
 html:root[data-theme] body.mobile-app-ready .order-workspace>.order-intake{order:3}
 html:root[data-theme] body.mobile-app-ready .order-workspace>.order-items{order:4}
 html:root[data-theme] body.mobile-app-ready .order-workspace>.order-top-grid>.order-finance{order:5}
 html:root[data-theme] body.mobile-app-ready .order-workspace>.order-top-grid>.order-activity{order:6}
 html:root[data-theme] body.mobile-app-ready .order-workspace>.order-secondary{order:7}
 html:root[data-theme] body.mobile-app-ready [data-mobile-fold]{display:flex;align-items:center;gap:var(--space-2);min-height:var(--hit);cursor:pointer}
 html:root[data-theme] body.mobile-app-ready [data-mobile-fold]>.disclosure-chevron{display:grid;place-items:center;margin-left:auto;color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready [data-mobile-fold]>.disclosure-chevron svg{width:var(--icon);height:var(--icon);transform:rotate(90deg)}
 html:root[data-theme] body.mobile-app-ready [data-mobile-fold][aria-expanded="false"]>.disclosure-chevron svg{transform:none}
 html:root[data-theme] body.mobile-app-ready.order-fold-overview .order-workspace .order-overview>.panel>:not(.panel-head),
 html:root[data-theme] body.mobile-app-ready.order-fold-activity .order-workspace .order-activity>.panel>:not(.panel-head){display:none}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar{position:relative}
 html:root[data-theme] body.mobile-app-ready .order-mini-bar{position:sticky;top:0;z-index:var(--z-top);height:0;margin:0 calc(-1 * var(--pad-box))}
 html:root[data-theme] body.mobile-app-ready .order-mini-bar-inner{display:flex;align-items:center;gap:var(--space-2);height:var(--topbar-h);padding:0 var(--space-3) 0 var(--pad-box);border-bottom:1px solid var(--line);border-radius:var(--r-lg) var(--r-lg) 0 0;background:var(--surface);visibility:hidden;opacity:0}
 html:root[data-theme] body.mobile-app-ready .order-mini-bar-inner>strong{flex:1;min-width:0;overflow:hidden;font:var(--text-bar);color:var(--ink);text-overflow:ellipsis;white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .order-mini-bar-inner>.icon-btn{width:var(--icon-btn);height:var(--icon-btn);min-width:var(--icon-btn)}
 html:root[data-theme] body.mobile-app-ready #main.order-mini-shown .order-mini-bar-inner{visibility:visible;opacity:1}
 html:root[data-theme] body.mobile-app-ready :is(.mobile-sheet-heading,.mobile-sheet-handle){touch-action:none}
}
@keyframes mobile-sheet-in{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){html:root[data-theme] body.mobile-app-ready :is(.mobile-sheet,dialog)[open],html:root[data-theme] body.mobile-app-ready #main.order-overlay-content.order-overlay-entering{animation:none}}
@media print{.mobile-more,.mobile-sheet-rows{display:none!important}}

/* check of 26.11.2026: a field under 16px makes iPhone zoom the page when it gets the focus («Посылки и отправления» →
   «Собрать отправление»: 14px), and the zoom stayed after the window closed. On a touch screen every field is 16px
   (--fs-input), whatever its block sets; the computer does not change. */
@media (pointer:coarse){
 html:root[data-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){font-size:var(--fs-input)!important}
}
/* check of 26.11.2026: the sum of a money operation on its tile — money in green, money out red (the sign says it too) */
html:root[data-theme] body.mobile-app-ready .mobile-face-value.mobile-face-money-in{color:var(--ok)}
html:root[data-theme] body.mobile-app-ready .mobile-face-value.mobile-face-money-out{color:var(--bad)}
/* check of 26.11.2026: a long window (the card of an SKU, the editor of documents, the scripts of tasks) — the page under it
   moved with the finger. While a window is open the page under it stands still; the window scrolls on its own */
@media (pointer:coarse){
 html:root[data-theme]:has(dialog[open]:modal),html:root[data-theme]:has(dialog[open]:modal) body{overflow:hidden}
 html:root[data-theme] dialog[open]:modal{overscroll-behavior:contain}
 html:root[data-theme] dialog[open]:modal :is(.modal-body,.mobile-sheet-body){overscroll-behavior:contain}
}
/* check of 26.11.2026: a record of «Настройки» — the title takes its row, under it «Изменить» and «⋯»; the order is changed in
   its own mode («Изменить порядок» → ↑ ↓ at each record). The buttons put away stay in the record: «⋯» presses them */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-setting-card{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3)}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-setting-card>div:first-child{flex:1 1 100%;min-width:0}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-setting-card>div:first-child :is(strong,p){overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-setting-card>.actions{flex:1 1 100%;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--space-2);margin:0}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-setting-card>.actions>:is(.mobile-card-tucked,.mobile-card-move){display:none}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-sorting>.actions>:not(.mobile-card-move){display:none}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-sorting>.actions>.mobile-card-move{display:inline-flex;align-items:center;justify-content:center;width:var(--control-h);min-width:var(--control-h);padding:0;font-size:0}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-sorting>.actions>.mobile-card-move>span{font:var(--text-body);font-weight:600}
 html:root[data-theme] body.mobile-app-ready .mobile-card-more{display:inline-flex;align-items:center;justify-content:center;width:var(--control-h);min-width:var(--control-h);padding:0}
 html:root[data-theme] body.mobile-app-ready .mobile-card-more>svg{stroke-width:3}
 html:root[data-theme] body.mobile-app-ready .mobile-sort-toggle{display:inline-flex;align-items:center;gap:var(--space-1)}
}
/* check of 26.11.2026: «Каталог», «Кошельки» squeezed to two and three lines by the buttons beside them — on a phone the title of a
   settings block keeps its words whole; the buttons go under it when there is no room beside it */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .settings-grid>.panel>.panel-head{flex-wrap:wrap;row-gap:var(--space-2)}
 html:root[data-theme] body.mobile-app-ready .settings-grid>.panel>.panel-head>h2{flex:1 0 auto;max-width:100%;min-width:0;overflow-wrap:normal;word-break:normal;hyphens:none}
 html:root[data-theme] body.mobile-app-ready .settings-grid>.panel>.panel-head>.settings-panel-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);max-width:100%}
}
/* check of 26.11.2026: a record with a switch beside its buttons («Комплектация ремонта») keeps one row — the words of the switch
   wrap, the buttons do not; a plugin card keeps its title whole beside its mark, the state goes under the title
   («photoexpert.md» lost its last letter between the mark and the state) */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-setting-card>.actions:has(>label){flex-wrap:nowrap;align-items:center}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-setting-card>.actions>label{flex:1 1 auto;min-width:0;margin-right:auto}
 html:root[data-theme] body.mobile-app-ready .setting-card.mobile-setting-card>.actions>.btn{flex:none}
 html:root[data-theme] body.mobile-app-ready .plugin-card-heading{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--space-3);row-gap:var(--space-1);align-items:start}
 html:root[data-theme] body.mobile-app-ready .plugin-card-heading>.plugin-mark{grid-row:1/span 2}
 html:root[data-theme] body.mobile-app-ready .plugin-card-heading>.plugin-card-title{grid-column:2;min-width:0}
 html:root[data-theme] body.mobile-app-ready .plugin-card-heading>.plugin-card-title h3{overflow-wrap:break-word;word-break:normal}
 html:root[data-theme] body.mobile-app-ready .plugin-card-heading>.plugin-status{grid-column:2;justify-self:start}
}
/* check of 26.11.2026: on an iPhone a choice (select) stood lower than the text field beside it — Safari draws its own box for a
   select. On a finger device a select is drawn like a field: the same height, padding and frame, its arrow drawn here */
@media (pointer:coarse){
 html:root[data-theme] select:not([multiple]):not([size]):not(.top-tools select):not(#doc-rich-toolbar select){-webkit-appearance:none;appearance:none;min-height:var(--control-h);padding-right:calc(var(--space-5) + var(--space-3));
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - var(--space-4) - var(--space-1)) 50%,calc(100% - var(--space-4)) 50%;
  background-size:var(--space-1) var(--space-1),var(--space-1) var(--space-1);background-repeat:no-repeat}
}
/* check of 26.11.2026: a long form of a person on a phone — each group of fields stands on its own background */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .person-card-modal .person-group:not(.person-roles-access .person-group){padding:var(--space-4);border-radius:var(--r-md);background:var(--surface-2)}
}
/* check of 26.11.2026: the cards of numbers on «Обзор» — the comparison with the last month is said whole (it was cut after two
   lines), the period is short, the explanation of a card is in its title on a phone, not a third line */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .personal-metric>small.overview-metric-comparison{display:flex;flex-wrap:wrap;-webkit-line-clamp:unset;overflow:visible}
 html:root[data-theme] body.mobile-app-ready .personal-metric>small.overview-metric-note{display:none}
}
/* check of 26.11.2026: the row «Выбрать» over a list took the height of a record — until rows are being chosen it is a slim
   line with the word at its right; choosing is its own mode («Выбрать» → boxes at the rows → «Готово») */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .mobile-face-table:not(.mobile-selecting)>thead th.mobile-row-select-all{min-height:var(--control-h-sm);padding-top:0;padding-bottom:0}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table:not(.mobile-selecting) .mobile-select-mode{min-height:var(--control-h-sm)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table:not(.mobile-selecting)>thead:has(.mobile-row-select-all){border-bottom-color:transparent}
}
/* check of 26.11.2026: «Журнал операций» at the top of «Финансы» on a phone; on a computer the operations are in sight */
.finance-jump{display:none}
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .finance-jump{display:flex;justify-content:flex-end;margin:0 0 var(--space-3)}
 html:root[data-theme] body.mobile-app-ready .finance-operations-anchor{display:block;scroll-margin-top:calc(var(--space-7) + var(--space-3))}
}
/* check of 26.11.2026: an empty comment and the empty fields of the intake stood as tall boxes — on a phone they start at two
   lines and grow with what is written (where the browser can measure the words), up to a limit, then scroll */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .order-workspace #comment-form textarea{height:auto;min-height:calc(var(--control-h) * 1.5);max-height:calc(var(--control-h) * 5);field-sizing:content}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-intake-editors textarea:not(.repair-fault textarea){height:auto;min-height:calc(var(--control-h) * 1.5);max-height:calc(var(--control-h) * 5);field-sizing:content}
}
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .page-head .actions>.mobile-card-tucked{display:none}
 html:root[data-theme] body.mobile-app-ready .page-head .actions:has(>.mobile-card-more){display:flex;flex-wrap:nowrap;gap:var(--space-2)}
 html:root[data-theme] body.mobile-app-ready .page-head .actions:has(>.mobile-card-more)>.btn:not(.mobile-card-more){flex:1 1 auto}
}
/* check of 26.11.2026: the editor of documents on a phone — «Готовый пример» and «Копия шаблона» stand one under another, each
   choice with its button under it, not squeezed side by side */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .doc-studio-start{flex-direction:column;align-items:stretch}
 html:root[data-theme] body.mobile-app-ready .doc-studio-start>label{flex:none;min-width:0;width:100%}
 html:root[data-theme] body.mobile-app-ready .doc-studio-start>.btn{align-self:flex-start}
}
/* check of 26.11.2026: a warehouse tile of «Склад» on a phone — the name with the total in one row, the place and the three
   numbers under it in one line; about half the height it had */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .warehouse-tile{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--space-3);row-gap:var(--space-1);align-items:baseline;padding:var(--space-3) var(--space-4)}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile>.warehouse-tile-name{grid-column:1/-1;grid-row:1;min-width:0;padding-right:var(--space-6)}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile>.warehouse-tile-total{grid-column:2;grid-row:2;margin:0;font:var(--text-strong);font-size:var(--fs-bar);text-align:right;white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile>.warehouse-tile-total>small{margin-left:var(--space-1);font:var(--text-small);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile>.warehouse-tile-geography{grid-column:1;grid-row:2;margin:0;min-width:0}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile>.warehouse-tile-bottom{grid-column:1/-1;grid-row:3;margin:0;padding-top:var(--space-2)}
}
/* check of 26.11.2026: the head of a conversation on a phone took a third of the screen — its buttons stand in one row, small */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .messenger.has-thread .messenger-thread-head>.messenger-thread-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--space-2)}
 html:root[data-theme] body.mobile-app-ready .messenger.has-thread .messenger-thread-head>.messenger-thread-actions>:is(.btn,.badge,.status-pill){flex:0 1 auto;width:auto;min-height:var(--control-h-sm)}
}
 /* the photo of a product in the face of its row (owner, 02.12.2026 14:36: in place of the icon) */
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon.mobile-face-product-lead{border:1px solid var(--line);background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon>img.mobile-face-product{object-fit:contain}
}


/* mobile-atlas.css */
/* Pakovia 2.0 — телефон по атласу «A — Светлый компактный» (owner, 02.12.2026 12:26: «Произведи полное переоформление
   мобильного интерфейса согласно этому PDF-файлу. Руководствуйся тем, что интерфейс должен стать удобнее и понятнее на
   мобильной версии, но при этом не потерять текущую функциональность»). Phase 1 — the base every screen shares: the top bar
   (avatar, country, «…»), the head of a section (big name, its main action in words), the bottom bar of sections only, white
   grouped lists on a grey page, segmented tabs, filled search, outlined fields with the label inside, windows as whole
   screens with the action fixed at the bottom. Only the phone (up to 800px, a signed-in page); a computer is not touched.
   Tokens only (public/tokens.css: the atlas palette of a phone). Loaded last. */
/* the head of a section and «…» of the top bar are of a phone only: a computer keeps its own heads and menus */
.mobile-page-head,.topbar>.mobile-top-more,.mobile-search-submit>svg,.mobile-card-tabs,.mobile-card-links{display:none}
@media (max-width:800px){
 html:root[data-theme] body.mobile-app-ready{font-family:var(--font-body);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
 html:root[data-theme] body.mobile-app-ready .workspace,html:root[data-theme] body.mobile-app-ready .content{background:var(--bg)}

 /* ---------- Верх: аватар, страна ▾, «…» справа; название раздела — крупно в начале страницы ---------- */
 html:root[data-theme] body.mobile-app-ready .topbar{display:flex;align-items:center;gap:var(--space-2);background:var(--bg);border-bottom:0}
 html:root[data-theme] body.mobile-app-ready .topbar>.breadcrumb{display:none}
 html:root[data-theme] body.mobile-app-ready .topbar>.top-tools{display:contents}
 html:root[data-theme] body.mobile-app-ready .top-tools .profile{order:1;width:var(--hit);height:var(--hit);margin-left:calc(-1 * var(--space-1))}
 html:root[data-theme] body.mobile-app-ready .top-tools .profile .avatar{width:var(--avatar);height:var(--avatar);border-radius:var(--r-full);background:var(--selected-bg);color:var(--primary);font:var(--text-caption)}
 html:root[data-theme] body.mobile-app-ready .top-tools>#country{order:2;max-width:calc(100% - var(--hit) * 3);height:var(--hit);min-height:var(--hit);padding:0 calc(var(--space-5) - var(--space-1)) 0 var(--space-1);border:0;border-radius:var(--r-sm);background-color:transparent!important;box-shadow:none;font:var(--text-bar);color:var(--ink);background-position:calc(100% - var(--space-2) - var(--space-1)) 50%,calc(100% - var(--space-2)) 50%}
 html:root[data-theme] body.mobile-app-ready .top-tools>#country.mobile-country-single{display:block;pointer-events:none;background-image:none!important;padding-right:var(--space-1)}
 html:root[data-theme] body.mobile-app-ready .topbar>.mobile-top-more{display:grid;place-items:center;order:3;margin-left:auto;width:var(--hit);height:var(--hit);min-width:var(--hit);border:0;background:transparent;color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .topbar>.mobile-top-more>svg{width:var(--icon-nav);height:var(--icon-nav);stroke-width:3}
 html:root[data-theme] body.mobile-app-ready .mobile-page-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin:var(--space-1) 0 var(--space-3);min-width:0}
 html:root[data-theme] body.mobile-app-ready .mobile-page-head>h1{margin:0;min-width:0;font:var(--text-page);color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready .mobile-title-action{flex:none;display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--hit);max-width:calc(100% - var(--space-7) * 3);padding:0;border:0;background:transparent;color:var(--primary);font:var(--text-strong);cursor:pointer}
 html:root[data-theme] body.mobile-app-ready .mobile-title-action>svg{flex:none;width:var(--icon);height:var(--icon)}
 html:root[data-theme] body.mobile-app-ready .mobile-title-action>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 /* the section's own button stays in the page (its window opens from it), unseen: the head presses it */
 html:root[data-theme] body.mobile-app-ready #main .mobile-title-source{display:none}
 /* the old big titles of the pages: the head says the name now */
 html:root[data-theme] body.mobile-app-ready #main:not(.order-overlay-content) .page-head>h1,
 html:root[data-theme] body.mobile-app-ready #main:not(.order-overlay-content) .page-head>div>h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

 /* ---------- Низ: только разделы и «Ещё» ---------- */
 html:root[data-theme] body.mobile-app-ready .mobile-bottom-nav{grid-template-columns:repeat(var(--mobile-nav-columns,5),minmax(0,1fr));background:var(--surface);border-top:1px solid var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item{gap:var(--space-1);color:var(--ink-2);font:var(--text-caption);font-weight:500}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item>svg{padding:var(--space-1) var(--space-2);border-radius:var(--r-sm);stroke-width:1.75}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item.active{color:var(--primary);font-weight:700}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item.active>svg{background:var(--selected-bg)}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-more>svg{stroke-width:3}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item>b{background:var(--primary);color:var(--on-primary)}
 /* «+» in the middle of the bar — «Что создать?» (owner, 02.12.2026 17:55): one round blue button between the sections */
 html:root[data-theme] body.mobile-app-ready .mobile-bottom-nav>.mobile-nav-create{justify-self:center;align-self:center;border:0;background:var(--primary);color:var(--on-primary);box-shadow:var(--shadow-float)}

 /* ---------- Листы «Ещё», «Что создать?», «Учётная запись»: белые группы строк со стрелкой ---------- */
 html:root[data-theme] body.mobile-app-ready .mobile-sheet{background:var(--bg)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-heading h2{font:var(--text-title)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-group>h3{margin:0 0 var(--space-2);font:var(--text-group);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-group{padding:0;border-radius:var(--r-lg);background:transparent}
 html:root[data-theme] body.mobile-app-ready .mobile-more-row{padding:0 var(--space-2) 0 var(--space-4);background:var(--surface);border-bottom:1px solid var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-group>.mobile-more-row:first-of-type,html:root[data-theme] body.mobile-app-ready .mobile-more-group>h3+.mobile-more-row{border-radius:var(--r-lg) var(--r-lg) 0 0}
 html:root[data-theme] body.mobile-app-ready .mobile-more-group>.mobile-more-row:last-child{border-bottom:0;border-radius:0 0 var(--r-lg) var(--r-lg)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-group>.mobile-more-row:only-of-type{border-radius:var(--r-lg)}
 html:root[data-theme] body.mobile-app-ready .mobile-more-link{min-height:var(--row-h);font:var(--text-strong)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-grid{display:grid;grid-template-columns:1fr;gap:0;border-radius:var(--r-lg);overflow:hidden;background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--space-3);min-height:var(--row-h);padding:var(--space-2) var(--space-4);border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);text-align:left}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile:last-child{border-bottom:0}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile::after{content:"";flex:none;width:var(--space-2);height:var(--space-2);margin-left:auto;border-top:2px solid var(--ink-2);border-right:2px solid var(--ink-2);transform:rotate(45deg)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-icon{flex:none;display:grid;place-items:center;width:var(--icon-nav);height:var(--icon-nav);border-radius:0;background:transparent;color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-icon>svg{width:var(--icon);height:var(--icon)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-copy{flex:1;display:grid;gap:0;min-width:0;justify-items:start;text-align:left}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-rows{border:0;border-radius:var(--r-lg);overflow:hidden;background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-row{padding:0 var(--space-4);background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet-row:last-child{border-bottom:0}

 /* ---------- Карточки и группы: белые на сером, без рамки и тени ---------- */
 html:root[data-theme] body.mobile-app-ready #main .panel,html:root[data-theme] body.mobile-app-ready #main .card{border:0;border-radius:var(--r-lg);background:var(--surface);box-shadow:none}
 html:root[data-theme] body.mobile-app-ready #main .table-wrap:has(>.mobile-face-table){border:0;border-radius:var(--r-lg);background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready #main section:has(>.table-wrap>.mobile-face-table),
 html:root[data-theme] body.mobile-app-ready #main .orders-register-results{border:0;background:transparent;box-shadow:none;padding:0}

 /* ---------- Строка списка: иконка, название и детали слева; сумма и статус справа; стрелка ---------- */
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]{padding:var(--space-3) var(--space-3) var(--space-3) var(--space-4)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]::after{left:calc(var(--space-4) + var(--icon-nav) + var(--space-3))}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]>td.mobile-row-face{grid-template-columns:auto minmax(0,1fr) auto var(--space-3);grid-template-areas:"icon title value chev" "icon sub status chev" "icon extra extra chev";align-items:start}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]>td.mobile-row-face::after{content:"";grid-area:chev;align-self:center;justify-self:end;width:var(--space-2);height:var(--space-2);border-top:2px solid var(--ink-2);border-right:2px solid var(--ink-2);transform:rotate(45deg)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]>td.mobile-row-face.mobile-face-has-menu::after{display:none}
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon{width:var(--icon-nav);height:var(--icon-nav);margin-top:var(--space-1);border-radius:0;background:transparent;color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon.mobile-face-avatar{width:var(--avatar);height:var(--avatar);border-radius:var(--r-full);background:var(--selected-bg);color:var(--primary)}
 /* the photo of a product: a small white tile, whole (owner, 02.12.2026 14:36) */
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon.mobile-face-product-lead{width:calc(var(--space-6) + var(--space-2));height:calc(var(--space-6) + var(--space-2));margin-top:0;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-icon.mobile-face-product-lead>svg{width:var(--icon);height:var(--icon);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-title{font:var(--text-strong);font-size:var(--fs-bar);-webkit-line-clamp:2}
 html:root[data-theme] body.mobile-app-ready .mobile-face-sub{margin-top:var(--space-1);font:var(--text-small);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-value{font:var(--text-strong);font-size:var(--fs-label);font-weight:700}
 html:root[data-theme] body.mobile-app-ready .mobile-face-status{margin-top:var(--space-1)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-extra{font:var(--text-small)}
 html:root[data-theme] body.mobile-app-ready .mobile-face-table>tbody>tr[data-mobile-face]:active{background:var(--surface-2)}

 /* ---------- Состояние — слово и цвет (плашка) ---------- */
 html:root[data-theme] body.mobile-app-ready :is(.badge,.status-pill){min-height:0;padding:var(--space-1) var(--space-2);border:0;border-radius:var(--r-xs);font:var(--text-caption)}

 /* ---------- Кнопки: одно главное действие синим; остальные — белые с рамкой ---------- */
 html:root[data-theme] body.mobile-app-ready .btn{border-radius:var(--r-md);font:var(--text-strong);font-size:var(--fs-label);box-shadow:none}
 html:root[data-theme] body.mobile-app-ready .btn:not(.primary):not(.create):not(.danger):not(.act-ok):not(.act-bad):not(.act-info):not(.act-warn):not(.success){border:1px solid var(--line);background:var(--surface);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready :is(.btn.primary,.btn.create){border:0;background:var(--primary);color:var(--on-primary)}
 html:root[data-theme] body.mobile-app-ready :is(.btn.act-ok,.btn.success){border:0;background:var(--ok-bg);color:var(--ok)}
 html:root[data-theme] body.mobile-app-ready :is(.btn.act-bad,.btn.danger){border:0;background:var(--bad-bg);color:var(--bad)}
 html:root[data-theme] body.mobile-app-ready :is(.btn.act-info){border:0;background:var(--info-bg);color:var(--info)}
 html:root[data-theme] body.mobile-app-ready :is(.btn.act-warn){border:0;background:var(--warn-bg);color:var(--warn)}
 html:root[data-theme] body.mobile-app-ready .btn>svg{stroke-width:2}

 /* ---------- Вкладки — сегменты на серой дорожке ---------- */
 html:root[data-theme] body.mobile-app-ready #main .tabs:not(.list-scope),html:root[data-theme] body.mobile-app-ready dialog .tabs:not(.list-scope),html:root[data-theme] body.mobile-app-ready .segments{display:flex;gap:var(--space-1);padding:var(--space-1);border:0;border-radius:var(--r-md);background:var(--track);box-shadow:none}
 html:root[data-theme] body.mobile-app-ready :is(#main,dialog) .tabs:not(.list-scope)>button,html:root[data-theme] body.mobile-app-ready .segments>button{flex:1 0 auto;min-height:calc(var(--control-h) - var(--space-2));padding:0 var(--space-3);border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink-2);font:var(--text-label);font-size:var(--fs-label);box-shadow:none}
 html:root[data-theme] body.mobile-app-ready :is(#main,dialog) .tabs:not(.list-scope)>button:is(.active,[aria-selected="true"]),html:root[data-theme] body.mobile-app-ready .segments>button:is([aria-pressed="true"],.active){background:var(--surface);color:var(--primary);font-weight:700;box-shadow:var(--shadow-tab)}
 html:root[data-theme] body.mobile-app-ready .section-tabs-workspace>.tabs{margin-bottom:var(--space-3)}
 html:root[data-theme] body.mobile-app-ready .section-tabs-workspace{border:0;background:transparent;box-shadow:none}

 /* ---------- Поиск — серое поле с лупой; камера, фильтры и колонки — квадратные кнопки в одну строку ---------- */
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--space-2);padding:0;border:0;background:transparent}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top>.list-search{grid-column:1;grid-row:1;position:relative;display:flex;min-width:0;margin:0}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top>.list-search>label{flex:1;min-width:0}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top>.list-filter-toggle{grid-column:2;grid-row:1}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top>.actions{grid-column:3;grid-row:1;display:flex;gap:var(--space-2);margin:0}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top>[data-list-count]{grid-column:1 / -1;grid-row:2;font:var(--text-small);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top :is(input[type=search],[data-list-search]){height:var(--control-h);padding-left:calc(var(--hit) - var(--space-1));border:0;background:var(--track)}
 html:root[data-theme] body.mobile-app-ready #main .mobile-search-submit{position:absolute;left:0;top:0;bottom:auto;z-index:1;display:grid;place-items:center;width:var(--hit);min-width:0;height:var(--control-h);min-height:0;margin:0;padding:0;border:0!important;background:transparent!important;color:var(--ink-2)!important}
 html:root[data-theme] body.mobile-app-ready #main .mobile-search-submit>svg{display:block;width:var(--icon);height:var(--icon)}
 html:root[data-theme] body.mobile-app-ready .mobile-search-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top :is(.list-filter-toggle,[data-action$="-columns"]){position:relative;display:grid;place-items:center;width:var(--control-h);min-width:var(--control-h);height:var(--control-h);min-height:var(--control-h);padding:0;font-size:0;border-radius:var(--r-md)}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top :is(.list-filter-toggle,[data-action$="-columns"])>svg{width:var(--icon);height:var(--icon)}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top .list-filter-toggle>span:not(.list-filter-count),html:root[data-theme] body.mobile-app-ready #main .list-tools-top .list-filter-toggle>.disclosure-chevron{display:none}
 html:root[data-theme] body.mobile-app-ready #main .list-tools-top .list-filter-count:not([hidden]){position:absolute;top:calc(-1 * var(--space-1));right:calc(-1 * var(--space-1));display:grid;place-items:center;min-width:var(--space-4);height:var(--space-4);padding:0 var(--space-1);border-radius:var(--r-full);background:var(--primary);color:var(--on-primary);font:var(--text-caption)}
 html:root[data-theme] body.mobile-app-ready #main :is(input[type=search],.list-tools input[type=text],.list-search input,.explicit-search input){border:0;border-radius:var(--r-md);background:var(--track);box-shadow:none}
 html:root[data-theme] body.mobile-app-ready #main .list-tools{border:0;background:transparent;padding:0;box-shadow:none}

 /* ---------- Поля: рамка, подпись внутри сверху (как в атласе) ---------- */
 html:root[data-theme] body.mobile-app-ready :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),select,textarea){border:1px solid var(--line-strong);border-radius:var(--r-md);background-color:var(--surface);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready :is(input,select,textarea):focus{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
 html:root[data-theme] body.mobile-app-ready dialog label{font:var(--text-label);color:var(--ink-2)}
 /* a field with its own label (one field, no button beside it): the label stands inside the frame, above the value (atlas
    A: «Телефон *», «Имя *», «Поставщик *»). A label holding several fields or buttons keeps the label above them. */
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog) label:has(> :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea)):not(:has(> button,> .btn,> :is(input:not([type=hidden]),select,textarea) ~ :is(input:not([type=hidden]),select,textarea))){display:grid;gap:var(--space-1);align-content:start;padding:var(--space-2) var(--space-3);border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);font:var(--text-caption);font-weight:500;color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog) label:has(> :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea)):not(:has(> button,> .btn,> :is(input:not([type=hidden]),select,textarea) ~ :is(input:not([type=hidden]),select,textarea)))>:is(input,select,textarea){width:100%;height:calc(var(--control-h) - var(--space-5));min-height:calc(var(--control-h) - var(--space-5));margin:0;padding:0;border:0;border-radius:0;background-color:transparent;box-shadow:none;font:var(--text-input);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog) label:has(> :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea)):not(:has(> button,> .btn,> :is(input:not([type=hidden]),select,textarea) ~ :is(input:not([type=hidden]),select,textarea)))>textarea{height:auto;min-height:calc(var(--control-h) * 1.5);resize:vertical}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog) label:has(> :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea)):not(:has(> button,> .btn,> :is(input:not([type=hidden]),select,textarea) ~ :is(input:not([type=hidden]),select,textarea)))>select{padding-right:calc(var(--space-5) + var(--space-3));background-position:calc(100% - var(--space-2) - var(--space-1)) 50%,calc(100% - var(--space-2)) 50%}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog) label:has(> :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea)):not(:has(> button,> .btn,> :is(input:not([type=hidden]),select,textarea) ~ :is(input:not([type=hidden]),select,textarea))):focus-within{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog) label:has(> :is(input,select,textarea)[aria-invalid="true"]){border-color:var(--bad)}

 /* ---------- Окна — целый экран: «Закрыть» слева вверху, крупное название, действие закреплено внизу ---------- */
 html:root[data-theme] body.mobile-app-ready dialog:not(.mobile-sheet):not(.mobile-scanner-dialog):not(.stock-product-drawer):not(.assignment-drawer):not(.freight-drawer){height:calc(var(--mobile-viewport-height,100dvh) - var(--space-5));max-height:none;background:var(--bg)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet)) .modal-head{flex-wrap:wrap;gap:var(--space-1) var(--space-3);padding:var(--space-3) var(--space-4) var(--space-2);border:0;background:var(--bg)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet))[open] .modal-head>h2{order:2;flex:1 1 100%;margin:0;font:var(--text-page);color:var(--ink)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet))[open] .modal-head>.icon-btn:last-child{order:1;display:inline-flex;align-items:center;width:auto;min-width:0;height:var(--hit);padding:0 var(--space-1);margin-left:calc(-1 * var(--space-1));border:0;background:transparent;color:var(--primary);font:var(--text-body);white-space:nowrap}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet)) .modal-head>.icon-btn:last-child>svg{display:none}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet)) .modal-head>.icon-btn:last-child::before{content:"← " attr(aria-label)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet)) .modal-body{flex:1 1 auto;align-content:start;background:var(--bg)}
 /* a short form keeps its buttons at the bottom of the screen, as a long one does */
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet):not(.mobile-scanner-dialog))[open]>form{display:flex;flex-direction:column;min-height:100%}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet)) .modal-foot{position:sticky;bottom:0;padding:var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet)) .modal-foot>.btn{min-height:var(--btn-main-h);font-size:var(--fs-body)}

 /* ---------- Подсказки: (i) серо-голубая, предупреждение — янтарная ---------- */
 html:root[data-theme] body.mobile-app-ready :is(.modal-hint,.muted){color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .list-empty-state{border:0;border-radius:var(--r-lg);background:var(--surface);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .footnote{color:var(--ink-3)}
}
@media (max-width:800px){
 /* ---------- Карточка заказа и ремонта: «Общее · Товары · Оплаты · Ещё» (атлас A, кадры 009–012, 027) ---------- */
 html:root[data-theme] body.mobile-app-ready .order-workspace>.mobile-card-tabs{display:flex;margin:0 0 var(--space-3)}
 html:root[data-theme] body.mobile-app-ready .order-workspace[data-mobile-tab="general"]>.order-top-grid>:is(.order-finance,.order-activity),
 html:root[data-theme] body.mobile-app-ready .order-workspace[data-mobile-tab="general"]>:is(.order-items,.order-secondary),
 html:root[data-theme] body.mobile-app-ready .order-workspace[data-mobile-tab="items"]>:is(.order-top-grid,.order-intake,.order-secondary),
 html:root[data-theme] body.mobile-app-ready .order-workspace[data-mobile-tab="pay"]>.order-top-grid>:is(.order-overview,.order-activity),
 html:root[data-theme] body.mobile-app-ready .order-workspace[data-mobile-tab="pay"]>:is(.order-intake,.order-items,.order-secondary),
 html:root[data-theme] body.mobile-app-ready .order-workspace[data-mobile-tab="more"]>.order-top-grid>:is(.order-overview,.order-finance),
 html:root[data-theme] body.mobile-app-ready .order-workspace[data-mobile-tab="more"]>:is(.order-intake,.order-items){display:none}
 /* «Общее» leads to the lines and to the payments: rows of one white group with an icon, words, the sum and a chevron */
 html:root[data-theme] body.mobile-app-ready .order-workspace[data-mobile-tab="general"]>.order-top-grid>.order-overview{display:grid;grid-template-columns:minmax(0,1fr)}
 html:root[data-theme] body.mobile-app-ready .order-overview>.mobile-card-links{display:grid;grid-column:1/-1;margin-top:var(--space-3);overflow:hidden;border-radius:var(--r-lg);background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready .mobile-card-link{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:var(--space-3);width:100%;min-height:var(--row-h);padding:var(--space-3) var(--space-4);border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);font:var(--text-body);text-align:left}
 html:root[data-theme] body.mobile-app-ready .mobile-card-link:first-child{border-top:0}
 html:root[data-theme] body.mobile-app-ready .mobile-card-link-icon>svg{width:var(--icon);height:var(--icon);color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-card-link-text{display:grid;gap:var(--space-1);min-width:0}
 html:root[data-theme] body.mobile-app-ready .mobile-card-link-text>strong{font:var(--text-strong)}
 html:root[data-theme] body.mobile-app-ready .mobile-card-link-text>small{color:var(--ink-2);font:var(--text-caption)}
 html:root[data-theme] body.mobile-app-ready .mobile-card-link-value{font:var(--text-strong);text-align:right}
 html:root[data-theme] body.mobile-app-ready .mobile-card-link>svg{width:var(--icon);height:var(--icon);color:var(--ink-3)}
}
@media (max-width:800px){
 /* ---------- Карточка заказа: на весь экран, «← Заказы», крупный номер, статус и «Печать стикера» под ним (атлас A, кадр 009) ---------- */
 html:root[data-theme] body.mobile-app-ready #main.content.order-overlay-content{inset:0;height:auto;border-radius:0;background:var(--bg)}
 html:root[data-theme] body.mobile-app-ready.order-overlay-open .mobile-page-head{display:none}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"back back" "title menu" "status sticker";align-items:center;gap:var(--space-2) var(--space-3);margin:0 calc(-1 * var(--pad-box)) var(--space-2);padding:calc(var(--space-2) + env(safe-area-inset-top)) var(--pad-box) var(--space-2);border:0;border-radius:0;background:var(--bg)}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar::before{display:none}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>.order-overlay-close{position:static;grid-area:back;justify-self:start;display:inline-flex;align-items:center;width:auto;min-width:0;height:var(--hit);padding:0;border:0;background:transparent;color:var(--primary);font:var(--text-body)}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>.order-overlay-close>svg{display:none}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>.order-overlay-close[data-mobile-back]::before{content:"← " attr(data-mobile-back)}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>h1{grid-area:title;margin:0;font:var(--text-page);color:var(--ink);white-space:normal}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>.order-status{grid-area:status;justify-self:start;min-width:0;margin:0}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>.order-status>select{min-height:var(--chip-h);height:var(--chip-h);padding:0 var(--space-6) 0 var(--space-3);border:0;border-radius:var(--r-full);font:var(--text-strong)}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>.actions{display:contents}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>.actions>[data-action="order-sticker"]{grid-area:sticker;justify-self:end;flex:none;width:auto;min-height:var(--hit);padding:0;border:0;background:transparent;color:var(--primary);font:var(--text-body)}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar>.actions>.row-menu{grid-area:menu;justify-self:end}
}
@media (max-width:800px){
 /* a bar of buttons with nothing left but «⋯»: the «⋯» stands in the title row (mobileHeadMore) */
 html:root[data-theme] body.mobile-app-ready #main>.page-head.mobile-head-folded{display:none}
 html:root[data-theme] body.mobile-app-ready .mobile-page-head>.mobile-title-more{flex:none;width:var(--hit);height:var(--hit);margin-left:calc(-1 * var(--space-2));border:0;background:transparent;color:var(--ink-2)}
 html:root[data-theme] body.mobile-app-ready .mobile-page-head>h1{flex:1 1 auto}
}
@media (max-width:800px){
 /* ---------- Подвал окна: одно главное действие — синее, разрушительное — красное, недоступное — серое (атлас A, «Footer») ---------- */
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet)) .modal-foot>.btn:is(.primary,.success,.act-ok,.act-warn,.act-info):not(.danger):not(.act-bad){border:0;background:var(--primary);color:var(--on-primary)}
 html:root[data-theme] body.mobile-app-ready :is(#modal,dialog:not(.mobile-sheet)) .modal-foot>.btn:is(.primary,.success,.act-ok,.act-warn,.act-info,.danger,.act-bad):disabled:not(:enabled):not(:focus-visible){border:0;background:var(--surface-2);color:var(--ink-3);opacity:1}
 /* «Тип клиента» of «Новый заказ»: its label draws an arrow of its own (order-create.css) — on a phone the framed field keeps one arrow, the one of every select */
 html:root[data-theme] body.mobile-app-ready .new-order-client-row>label:has(select)::after{content:none}
 /* «← Заказы», «← Сервис», «← Закрыть» are words, not buttons (owner 02.12.2026 17:05: «Меня не устраивает форма кнопок <- Заказы и
    <- Сервис, они овальные»): no oval on a tap, a hover that sticks after it or the focus the card gives them on opening */
 html:root[data-theme] body.mobile-app-ready :is(#main.order-overlay-content .order-toolbar>.order-overlay-close,:is(#modal,dialog:not(.mobile-sheet))[open] .modal-head>.icon-btn:last-child){border-radius:var(--r-sm);-webkit-tap-highlight-color:transparent}
 html:root[data-theme] body.mobile-app-ready :is(#main.order-overlay-content .order-toolbar>.order-overlay-close,:is(#modal,dialog:not(.mobile-sheet))[open] .modal-head>.icon-btn:last-child):is(:hover,:active,:focus,:focus-visible){border:0;background:transparent;box-shadow:none;outline:0}
}

