/* Планшет (ZK-58, макет «Планшет и телефон»): вид включается на сенсорном экране и в окне с мышью до 900px —
   body.touch-land (только касание, лёжа, ≤1280), body.touch-portrait (стоя, ≤900, в том числе окно с мышью 601–900); телефон — styles-phone.css.
   Разметка та же, что на компьютере: строки перекладываются CSS, узлы шапки переносит zakaz-touch.js. */

/* На компьютере элементов касания не видно. */
.touch-step, .order-pcs, .row-stats, .cond-summary, .touch-checks, .touch-bar, .touch-card, .touch-top:empty, .touch-cond:empty { display: none; }

/* ── Общее для планшета и телефона ──────────────────────────────── */
body.is-touch .head-right, body.is-touch .table-foot, body.is-touch .toolbar,
body.is-touch .section-note, body.is-touch .selection-status { display: none !important; }
.touch-consumable-count { display: none; }
body.is-touch #touchConsumableCount:has(#openConsumableCount:not([hidden])) { display: flex; margin: 0 18px 8px; }
body.is-touch #touchConsumableCount #openConsumableCount:not([hidden]) { flex: 1; min-height: 44px; }
body.is-touch .calc-bar { display: none; }
body.is-touch.cond-open .calc-bar:not([hidden]) { display: flex; flex-wrap: wrap; white-space: normal; }
/* В свёрнутых условиях оставить прямой вход в перенос Excel: это та же кнопка и тот же обработчик. */
body.is-touch:not(.cond-open) #calcBar:not([hidden]):has(~ #deliveriesBar:not([hidden])) {
  display: flex; margin: 0 22px 8px; padding: 0; border: 0; background: transparent;
}
body.is-touch:not(.cond-open) .calc-bar > :not(#importExcelMain) { display: none; }
body.is-touch:not(.cond-open) #importExcelMain { min-height: 44px; }
body.is-touch .cond-summary { display: flex; }
body.is-touch .cond-summary.is-static { cursor: default; }
body.is-touch .cond-summary.is-static .caret { visibility: hidden; }
/* Метки: у «Остатков» свои (#stockChips), у заказов свои (#chips) — обе живут в строке условий. */
body.is-touch.is-stock #chips, body.is-touch:not(.is-stock) #stockChips, body.is-touch .stock-toolbar { display: none !important; }
body.is-touch.is-stock .stock-retired-toolbar:not([hidden]) { display: flex !important; }
/* Поиск по названию на планшете (ZK-60, Кирилл 29.09: у Восток-Запада 371 строка — листать нечеловечно):
   из панели над таблицей остаётся только поле, метки живут в строке условий. Телефон — без поиска (макет),
   кроме режима «починить»: там нужный товар среди всех остатков иначе не найти. Класс is-relinking
   ставит и снимает zakaz-relink.js renderBar. [hidden] не перебиваем: у «Остатков» панель заказа спрятана. */
body:is(.touch-land, .touch-portrait) #toolbar:not([hidden]),
body:is(.touch-land, .touch-portrait).is-stock .stock-toolbar,
body.is-touch.is-stock.is-relinking .stock-toolbar { display: flex !important; padding: 10px 12px 6px; }
body.is-touch :is(#toolbar, .stock-toolbar) > :not(.search) { display: none !important; }
body.is-touch :is(#toolbar, .stock-toolbar) .search { display: flex !important; flex: 1; width: auto; }
body.is-touch .search:has(input:placeholder-shown) .search-count { display: none; }
body.is-stock .work { display: none !important; }
body.is-touch.is-stock .content { display: flex; flex-direction: column; overflow: hidden; }
body.is-touch.is-stock .stock-panel { order: 1; flex: 1; min-height: 0; overflow: auto; }
body.is-touch.is-stock .touch-bar { order: 2; }
body.is-touch .touch-bar:not([hidden]) { display: flex; }
body.is-touch .checks-pop {
  position: fixed; top: auto; left: auto; right: 12px; bottom: calc(var(--zakaz-touchbar-height, 90px) + 12px);
  width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - var(--zakaz-touchbar-height, 90px) - 24px);
  z-index: 91; overscroll-behavior: contain;
}
body.is-touch .row-qty { font-size: 16px; }
/* Под названием — одна подсказка (макет): «▲ кончится…», «нет в остатках» или «выводится»; серая
   строка («едет 2 на…», «расход ≈…», «в Додо: …») — только когда их нет. */
body.is-touch .row-note:has(.warn-text, .broken-text, .off-tag) .note-text { display: none; }
.consumable-tracking-removed { display: none; }
body.is-touch .row-note .consumable-tracking-removed {
  display: inline; color: var(--ink-2); font-size: 11px; font-weight: 600;
}
body.is-touch .row-note:not(:has(.warn-text, .broken-text, .off-tag)) .consumable-tracking-removed { display: none; }
body.is-touch .deadline { padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; }
body.is-touch .deadline .dot, body.is-touch .deadline-text { display: none; }
body.is-touch .deadline::after { content: attr(data-short); }

.touch-top { flex: none; display: flex; align-items: center; gap: 18px; padding: 14px 22px; }
.touch-top .order-fresh { flex: none; margin-left: auto; white-space: normal; }
body.touch-portrait .touch-top .order-fresh { align-self: flex-end; }
.touch-brand { font-size: 15px; font-weight: 700; }
.touch-gap { flex: 1; }
.touch-top .rail-nav { flex-direction: row; gap: 4px; margin: 0; padding: 4px; border-radius: 12px; background: oklch(0.93 0.008 80); }
.touch-top .nav-item { flex-direction: row; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.touch-top .nav-item .nav-title { font-weight: 500; }
.touch-top .nav-item .nav-status { order: -1; }
.touch-top .nav-item .nav-status-text { display: none; }
.touch-top .nav-item.is-active { background: var(--pop); box-shadow: 0 1px 2px oklch(0.3 0.02 60 / .12); color: var(--ink); }
.touch-top .nav-item.is-active .nav-title { font-weight: 600; }
.touch-top .rail-point { width: auto; }
.touch-top .point-btn { padding: 9px 12px; }
.touch-top .point-btn .caret, .touch-top .point-text b { font-size: 13px; line-height: 17px; }
.touch-top .point-label { display: none; }
.touch-top .point-text b { font-weight: 500; }
.touch-top .point-menu { left: auto; right: 0; width: 220px; }

.cond-summary {
  flex: none; align-items: center; justify-content: space-between; gap: 8px; margin: 0 22px; min-height: 44px; padding: 8px 14px;
  border-radius: 12px; border: 1px solid var(--line-block); background: var(--surface); text-align: left; font-size: 13.5px;
}
.cond-summary .caret { color: var(--ink-soft); }
.touch-cond { flex: none; display: flex; align-items: center; gap: 10px; }
.touch-order-actions { position: relative; margin-left: auto; }
.touch-actions-trigger { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-btn); border-radius: 10px; background: var(--surface); color: var(--ink); }
.touch-actions-pop { position: fixed; right: auto; width: min(320px, calc(100vw - 24px)); max-height: calc(100vh - 100px); overflow: auto; z-index: 90; }
.touch-actions-pop .pop-option { min-height: 44px; width: 100%; }
.touch-cond .chips { gap: 6px; }
body.is-touch .chip { height: 38px; padding: 0 13px; border-radius: 19px; font-size: 13.5px; font-weight: 500; background: var(--pop); color: var(--ink); }
body.is-touch .chip-dot { width: 7px; height: 7px; }
body.is-touch .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
body.is-touch .chip-pos { display: none; }
body.is-touch .chip { gap: 6px; }
/* Числа и итоги жирные 700, как <b> в макете: метки, нижняя панель, свежесть остатков, карточка позиции. */
body.is-touch .chip-count, body.is-touch .fresh-text b { font-weight: 700; }
/* Раскрытые условия на касании: всё, что нажимают пальцем, не меньше 44 точек. */
body.is-touch.cond-open .calc-bar .step-btn { width: 44px; height: 44px; }
body.is-touch.cond-open .calc-bar .switch { min-height: 44px; }
body.is-touch.cond-open .calc-bar .btn-dashed { height: 44px; }
body.is-touch.cond-open .calc-bar .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
/* Овощи: «расход 6,4 / 8,2 в день» под названием — только когда других подсказок нет (Б40). */
.rate-text { display: none; }
body.is-touch .row-note:not(:has(.warn-text, .broken-text, .off-tag, .note-text:not(:empty))) .rate-text,
.tc-head .row-note:not(:has(.warn-text, .broken-text, .off-tag, .note-text:not(:empty))) .rate-text { display: inline; color: var(--ink-2); }

.touch-bar {
  flex: none; align-items: center; gap: 14px; margin: 0 22px 16px; padding: 10px 12px 10px 16px;
  border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: var(--footer);
}
.tb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
/* Узкий вид стоя (окно 601–700): у Восток-Запада три кнопки — подпись встаёт над ними, а не в столбик слов. */
@media (max-width: 700px) {
  body.touch-portrait .touch-bar:has(> button:nth-of-type(3)) { flex-wrap: wrap; }
  body.touch-portrait .touch-bar:has(> button:nth-of-type(3)) .tb-text { flex-basis: 100%; }
}
.tb-text b { font-size: 16px; font-weight: 700; }
.tb-text span { font-size: 12.5px; color: oklch(0.45 0.014 60); }
.touch-bar:has(.tb-warn) { flex-wrap: wrap; }
.tb-warn { order: -1; flex-basis: 100%; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12.5px; }
body.is-touch #copyAnchor { position: absolute; width: 0; height: 0; }
body.is-touch #copyAnchor > #copyButton { display: none; }
body.is-touch #copyPop:not([hidden]) {
  position: fixed; left: 50%; right: auto; top: auto; bottom: 88px; transform: translateX(-50%);
  z-index: 90; width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow: auto;
  box-shadow: var(--shadow-dialog);
}
.tb-dark, .tb-line { height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.tb-dark { border: 0; background: var(--dark); color: var(--on-dark); }
.tb-line { border: 1px solid oklch(0.84 0.01 80); background: transparent; color: var(--ink); }
.tb-line.is-bad { color: var(--bad-ink); }

/* ── Планшет лёжа: та же таблица, короче и под палец ────────────── */
body.touch-land .rail, body.touch-land .page-head, body.touch-portrait .rail, body.touch-portrait .page-head { display: none; }
body.touch-land .touch-cond { margin: 0 22px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-block); background: var(--surface); }
body.touch-land .touch-cond .cond-summary { flex: 1; margin: 0; border: 0; padding: 0; min-height: 38px; background: none; }
body.touch-land .table-card { margin: 12px 22px 0; }
body.touch-land .list-head { height: 42px; font-size: 13px; }
body.touch-land .list-head > span { padding: 0 14px; }
body.touch-land .row { height: auto; min-height: 62px; }
body.touch-land .row > * { padding-left: 14px; padding-right: 14px; }
/* Табличное центрирование сохраняется, но поля планшета остаются с отступом под палец. */
body.touch-land:not(.touch-portrait) .table-card .list-head > :is(.col-num, .head-num, .col-incoming, .col-incoming2, .col-incoming3),
body.touch-land:not(.touch-portrait) .table-card .row > :is(.row-num, .row-stock, .row-rate, .row-needqty, .row-need, .cell) {
  padding-inline: 14px;
}
body.touch-land .row > .row-name-box { padding: 6px 16px; }
body.touch-land .row-name { font-weight: 600; }
body.touch-land:not(.touch-portrait) .table-card .row > .cell { padding-inline: 4px; }
body.touch-land .row-qty.row-order { height: 44px; border-radius: 9px; }
body.touch-land .row-qty.row-incoming { pointer-events: none; }
body.touch-land .row-qty.row-order { background: oklch(0.995 0.002 80); }
body.touch-land .row.is-ordered .row-qty.row-order { background: var(--ok-band); }
body.touch-land .list-head > .col-order { color: var(--ink); }
body.touch-land .list-head > .col-incoming > span:first-child { font-size: 13px; }
body.touch-land .zone-tag, body.touch-portrait .touch-card .zone-tag { font-size: 10px; line-height: 16px; }
body.touch-land .cell-unit { font-size: inherit; color: inherit; }
body.touch-land .touch-card.is-open:not([hidden]) {
  display: flex; position: fixed; right: 22px; top: 130px; bottom: 90px; width: 360px; z-index: 40; box-shadow: var(--shadow-dialog);
}
body.touch-land .stock-table { margin: 12px 22px 0; }
body.touch-land .st-row { grid-template-columns: minmax(0, 1fr) 240px 140px 150px; min-height: 52px; }
body.touch-land .st-row > .st-rate, body.touch-land .st-head > :nth-child(4), body.touch-land .st-head > :nth-child(5), body.touch-land .st-bar { display: none; }
body.touch-land .st-used { justify-content: flex-end; }
body.touch-land .st-tag { padding: 0; background: none; color: var(--ink-2); font-weight: 400; }
body.touch-land .st-tag + .st-tag::before { content: ', '; }
body.touch-land .st-foot { display: none; }
/* Ручная вставка на планшете лёжа — по кнопке «Вставить вручную» в нижней панели, иначе её не видно. */
body.touch-land .stock-manual:not(.is-open) { display: none; }
body.touch-land .stock-manual { margin: 12px 22px 0; }

/* «Остатки» на планшете: под названием вторая строка (где считается или ошибка), у числа — единица. */
.st-sub { display: none; }
body.touch-land .st-name, body.touch-portrait .st-name { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
body.touch-land .st-name > .st-unit, body.touch-land .st-name > .st-err,
body.touch-portrait .st-name > .st-unit, body.touch-portrait .st-name > .st-err { display: none; }
body.touch-land .st-title, body.touch-portrait .st-title { max-width: 100%; font-weight: 600; }
body.touch-land .st-sub, body.touch-portrait .st-sub, .st-card .st-sub {
  display: block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; color: var(--ink-2);
}
.st-sub.is-err { color: var(--bad-ink); font-style: italic; }
.st-sub.is-unlinked { color: var(--warn-ink); font-weight: 500; }
body.touch-land .st-stock::after, body.touch-portrait .st-stock::after { content: ' ' attr(data-unit); white-space: pre; }

/* ── Планшет стоя: список слева, карточка позиции справа ────────── */
body.touch-portrait .touch-top { flex-direction: column; align-items: stretch; gap: 10px; padding: 18px 22px 0; }
body.touch-portrait .touch-top .point-btn { padding: 8px 12px; }
.touch-row { display: flex; align-items: center; gap: 14px; }
body.touch-portrait .touch-row .section-title { font-size: 24px; }
body.touch-portrait .touch-top .rail-nav { display: grid; grid-template-columns: repeat(4, 1fr); }
body.touch-portrait .touch-top .nav-item { justify-content: center; }
body.touch-portrait .touch-cond { flex-wrap: wrap; padding: 12px 22px 0; }
body.touch-portrait .touch-cond .cond-summary { flex: 1 0 100%; min-height: 0; margin: 0; border: 0; padding: 0; background: none; font-size: 13px; color: oklch(0.35 0.015 60); }
body.touch-portrait .touch-cond .cond-summary .caret, body.touch-land .touch-cond .cond-summary .caret { display: none; }
body.touch-portrait .touch-cond .chips { margin-left: auto; }
body.touch-portrait .touch-cond .chip { height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13px; }
body.touch-portrait .work { display: grid; grid-template-columns: minmax(0, 1fr) 316px; grid-template-rows: minmax(0, 1fr); gap: 14px; padding: 12px 22px 14px; }
body.touch-portrait .table-card { margin: 0; border-bottom: 1px solid var(--line); border-radius: 14px; }
body.touch-portrait .thead { display: none; }
body.touch-portrait .row { grid-template-columns: minmax(0, 1fr) auto !important; height: auto; min-height: 62px; padding: 8px 14px; gap: 12px; cursor: pointer; border-bottom-color: oklch(0.93 0.007 80); }
body.touch-portrait .row > *:not(.row-name-box):not(.cell-order) { display: none; }
body.touch-portrait .row > .row-name-box { padding: 0; border-left: 0; order: 1 !important; }
body.touch-portrait .row > .cell-order { order: 2 !important; padding: 0; border: 0; background: none !important; }
body.touch-portrait .row-name { font-weight: 600; }
body.touch-portrait .row .row-note .zone-tag, body.touch-portrait .row-note .fix-link { display: none; }
body.touch-portrait .row-qty.row-order {
  min-width: 52px; width: 166px; height: 36px; padding: 0 10px; border-radius: 9px; text-align: center;
  font-size: 14px; font-weight: 700; border: 1px solid var(--line-btn); background: transparent; pointer-events: none;
}
/* Пилюля растёт по числу, как в макете (52 px у короткого). Safari растягивания по тексту не знает —
   ему остаётся поле с запасом под длинное число. */
@supports (field-sizing: content) { body.touch-portrait .row-qty.row-order { field-sizing: content; width: auto; } }
/* «Не заказываем» в списке: причина серым текстом, в «пилюле» жирный прочерк (макет). */
body.touch-portrait .row .off-tag, body.touch-land .row .off-tag { padding: 0; border: 0; }
body.touch-portrait .row.is-retiring .order-dash, body.touch-portrait .row.is-blocked .order-dash { display: flex; align-items: center; justify-content: center; min-width: 52px; height: 36px; font-weight: 700; color: var(--ink); }
body.touch-portrait .row.is-ordered .row-qty.row-order { background: var(--ok-band); border-color: oklch(0.7 0.1 150); }
/* Овощи стоя (набор без тары): единица внутри пилюли («55 кг»), у пустой строки единицы нет (макет devices/07–08); у напитков единицы в пилюле нет. */
body.touch-portrait .row .order-unit { display: none; }
body.touch-portrait .row.is-ordered > .cell-order:has(.order-unit:not(:empty)) {
  display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 52px; height: 36px; padding: 0 10px; border: 1px solid oklch(0.7 0.1 150); border-radius: 9px;
  background: var(--ok-band) !important;
}
body.touch-portrait .row.is-ordered > .cell-order:has(.order-unit:not(:empty)) .row-qty.row-order { min-width: 0; height: auto; padding: 0; border: 0; background: transparent; text-align: right; }
body.touch-portrait .row.is-ordered > .cell-order:has(.order-unit:not(:empty)) .order-unit { display: inline; width: auto; font-size: 14px; font-weight: 700; color: inherit; }
body.touch-portrait .row.is-picked { background: var(--focus-row); box-shadow: inset 0 0 0 2px var(--focus); }
body.touch-portrait .touch-bar, body.touch-portrait.is-stock .touch-bar { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 22px 16px; background: var(--surface); }
body.touch-portrait .tb-dark { height: 50px; }
/* «Остатки» стоя: слева список «название — остаток», справа карточка товара (как у заказов). */
body.touch-portrait .stock-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 316px; grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: 14px;
  padding: 12px 22px 14px; overflow: hidden;
}
body.touch-portrait .stock-manual, body.touch-portrait .st-head, body.touch-portrait .st-foot { display: none; }
body.touch-portrait .stock-toolbar { grid-column: 1 / -1; grid-row: 1; }
body.touch-portrait .stock-retirement-tabs { grid-column: 1 / -1; grid-row: 3; }
body.touch-portrait .stock-pull-state { grid-column: 1 / -1; grid-row: 2; margin: 0 0 10px; }
body.touch-portrait .stock-manual.is-open { display: block; grid-column: 1 / -1; grid-row: 3; max-height: min(45dvh, 360px); overflow-y: auto; }
body.touch-portrait .stock-table { grid-column: 1; grid-row: 4; min-height: 0; margin: 0; overflow: auto; border-radius: 14px; }
body.touch-portrait .stock-retired-list { grid-column: 1; grid-row: 4; min-height: 0; overflow: auto; border-radius: 14px; }
body.touch-portrait .stock-panel:has(.stock-manual.is-open) { grid-template-rows: auto auto auto auto minmax(0, 1fr); }
body.touch-portrait .stock-panel:has(.stock-manual.is-open) .stock-retirement-tabs { grid-row: 4; }
body.touch-portrait .stock-panel:has(.stock-manual.is-open) :is(.stock-table, .stock-retired-list, .st-card) { grid-row: 5; }
body.is-relinking #stockRetirementTabs { display: none; }
body.touch-portrait .st-card { grid-column: 2; grid-row: 4; }
body.touch-portrait .st-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 62px; padding: 8px 14px; cursor: pointer; border-bottom-color: oklch(0.93 0.007 80); }
body.touch-portrait .st-row > .st-action { display: none; }
body.touch-portrait .st-row > .st-used, body.touch-portrait .st-row > .st-rate, body.touch-portrait .st-row > .st-days { display: none; }
body.touch-portrait .st-row > .st-name { padding: 0; }
body.touch-portrait .st-row > .st-stock { justify-content: center; min-width: 52px; height: 36px; margin: auto 0; padding: 0 10px; border: 0; font-weight: 700; }
body.touch-portrait .st-row.is-picked { background: var(--focus-row); box-shadow: inset 0 0 0 2px var(--focus); }
.tc-cell b.is-warn { color: oklch(0.47 0.11 60); }

/* Карточка позиции (планшет). */
.touch-card:not([hidden]) {
  display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto; padding: 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
}
.tc-head { display: flex; flex-direction: column; gap: 6px; }
.tc-head > b { font-size: 18px; font-weight: 600; line-height: 1.3; }
.tc-head .row-note { flex-wrap: wrap; white-space: normal; }
.tc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 12px; overflow: hidden; background: var(--line-group); }
.tc-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: oklch(0.985 0.004 80); }
.tc-cell span { font-size: 12px; color: oklch(0.45 0.014 60); }
.tc-cell b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-cell b.is-mute { color: oklch(0.6 0.01 60); }
.tc-cell b.is-bad { color: var(--bad-ink); }
.tc-cell b.is-ride { color: oklch(0.4 0.08 255); }
.tc-edit input {
  width: 100%; min-height: 36px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.tc-edit input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.tc-order { display: flex; flex-direction: column; gap: 8px; }
.tc-label { font-size: 13px; font-weight: 600; }
.tc-stepper { display: flex; align-items: center; border-radius: 14px; background: var(--pop); box-shadow: 0 0 0 1.5px var(--line-strong); }
.tc-stepper.is-filled { background: var(--ok-band); box-shadow: 0 0 0 1.5px var(--ok); }
.tc-stepper button { width: 64px; height: 64px; border: 0; background: transparent; font-size: 26px; color: oklch(0.4 0.014 60); }
.tc-stepper input { flex: 1; min-width: 0; height: 64px; border: 0; background: transparent; text-align: center; font-size: 28px; font-weight: 700; outline: none; font-variant-numeric: tabular-nums; }
.tc-stepper.is-filled input { color: var(--ok-ink); }
.tc-note { font-size: 12.5px; color: oklch(0.45 0.014 60); }
.tc-off { padding: 14px; border-radius: 12px; border: 1px dashed oklch(0.75 0.012 60); color: var(--ink-2); font-size: 13.5px; }
.tc-acts { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.tc-btn { height: 44px; border-radius: 11px; border: 1px solid var(--line-btn); background: transparent; font-size: 14px; }
.tc-btn.is-link { color: var(--link); }
.tc-next { height: 48px; border-radius: 12px; border: 0; background: oklch(0.93 0.008 80); font-weight: 600; }

/* «⚠ не сохранилось» полосой над списком (zakaz-save.js errorStrip, ZK-60): только на касании — на
   компьютере ошибка стоит в подвале, где её и ищут. */
body:not(.is-touch) #saveStrip { display: none; }
body:not(.is-touch) .strips:not(:has(> :not([hidden]):not(#saveStrip))) { display: none; }
#saveStrip { color: var(--bad-ink); font-weight: 500; }

/* Меню строки на касании (ZK-60): открывается из карточки позиции. Лёжа оно вставало ПОД карточку — нажал
   «Не заказываем…», и ничего не видно; стоя — у списка слева, далеко от пальца. Теперь по центру экрана,
   поверх всего, пункты крупные. top от JS (место строки) здесь не действует. */
body.is-touch .row-menu {
  position: fixed; left: 50%; top: 50% !important; right: auto; transform: translate(-50%, -50%);
  width: min(340px, calc(100vw - 32px)); z-index: 80; padding: 8px;
}
body.is-touch .row-menu button { min-height: 44px; font-size: 15px; }
body.is-touch .tc-acts { margin-top: 14px; }
body.is-touch .tc-acts .tc-next { margin-top: auto; }
