/* Монолит — фирменный стиль: тёмно-синий #15242F, стальной #B0BBC3, белый. Шрифт Stolzl. */
@font-face { font-family: 'Stolzl'; src: url('/fonts/stolzl_book.otf') format('opentype'); font-weight: 300 400; font-display: swap; }
@font-face { font-family: 'Stolzl'; src: url('/fonts/stolzl_regular.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Stolzl'; src: url('/fonts/stolzl_medium.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Stolzl'; src: url('/fonts/stolzl_bold.otf') format('opentype'); font-weight: 700 800; font-display: swap; }

:root {
  --navy: #15242F;
  --navy-2: #1f3443;
  --navy-3: #2c4557;
  --steel: #B0BBC3;
  --steel-2: #d5dbe0;
  --paper: #ffffff;
  --bg: #eef1f3;
  --ink: #15242F;
  --ink-2: #4a5965;
  --ink-3: #7a8792;
  --line: #d9dfe3;
  --ok: #2d7a4f;
  --ok-bg: #e5f2ea;
  --warn: #9a5b00;
  --warn-bg: #fdf1dc;
  --bad: #b3361f;
  --bad-bg: #fbe7e2;
  --info: #2f5f80;
  --info-bg: #e3edf4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21,36,47,.06), 0 4px 14px rgba(21,36,47,.06);
  --font: 'Stolzl', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 60px;
  /* нижний отступ под полосу «домой» на iPhone: часть отступа занимает сама панель */
  --tab-pb: max(6px, calc(env(safe-area-inset-bottom, 0px) - 8px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper); min-height: 100%; } /* белый низ при оттягивании страницы на iPhone, как у панели вкладок */
body { min-height: 100vh; min-height: 100dvh; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.4; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a { color: var(--info); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
.muted { color: var(--ink-3); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- каркас ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: max(10px, calc(env(safe-area-inset-top, 0px) + 4px)); min-height: 58px; }
.topbar .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; min-width: 0; }
.topbar .brand img.logo-h { height: 34px; width: auto; display: block; flex: none; }
.topbar .title { flex: 1; min-width: 0; font-size: 15px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn:active { background: var(--navy-3); }
.iconbtn svg { width: 24px; height: 24px; }
.badge-dot { position: absolute; top: 5px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #e2553b; color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.offline-bar { background: var(--warn-bg); color: var(--warn); font-size: 14px; padding: 8px 14px; text-align: center; border-bottom: 1px solid #f0d9ad; }

main { max-width: 760px; margin: 0 auto; padding: 14px 14px calc(var(--nav-h) + var(--tab-pb) + 100px); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 2px 14px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: var(--tab-pb); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--nav-h); text-decoration: none; color: var(--ink-3); font-size: 12px; font-weight: 600; position: relative; }
.tabbar a svg { width: 25px; height: 25px; }
.tabbar a.on { color: var(--navy); }
.tabbar a.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--navy); }
.tabbar .cnt { position: absolute; top: 8px; left: calc(50% + 6px); background: #e2553b; color: #fff; border-radius: 10px; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }

/* ---------- элементы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 18px; border-radius: 12px; border: 1.5px solid var(--navy); background: var(--paper); color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 8px 12px; font-size: 14.5px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-hero { width: 100%; min-height: 76px; font-size: 20px; border-radius: 16px; background: var(--navy); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(21,36,47,.25); }
.btn-hero svg { width: 28px; height: 28px; }

.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.section-title { display: flex; align-items: baseline; gap: 8px; margin: 22px 2px 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; }
.section-title .n { background: var(--navy); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 13px; letter-spacing: 0; }
.section-hint { margin: -6px 2px 10px; font-size: 14px; color: var(--ink-3); }
.empty { text-align: center; color: var(--ink-3); padding: 26px 12px; font-size: 15px; }

/* карточка заявки */
.rcard { display: block; text-decoration: none; color: inherit; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 10px; border-left: 5px solid var(--steel); }
.rcard.st-returned { border-left-color: var(--bad); }
.rcard.st-draft { border-left-color: var(--steel); }
.rcard.st-on_chief, .rcard.st-on_pto { border-left-color: var(--info); }
.rcard.st-accepted { border-left-color: var(--ok); }
.rcard .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.rcard .obj { font-size: 19px; font-weight: 700; margin: 6px 0 2px; line-height: 1.25; }
.rcard .who { font-size: 16px; color: var(--ink-2); }
.rcard .vol { font-size: 22px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -0.01em; }
.rcard .vol small { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.rcard .resp { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); padding-top: 8px; border-top: 1px dashed var(--line); }
.rcard .remark { margin-top: 8px; background: var(--bad-bg); color: var(--bad); border-radius: 9px; padding: 8px 10px; font-size: 14.5px; }

.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.draft { background: #edf0f2; color: var(--ink-2); }
.status.on_chief, .status.on_pto { background: var(--info-bg); color: var(--info); }
.status.returned { background: var(--bad-bg); color: var(--bad); }
.status.accepted { background: var(--ok-bg); color: var(--ok); }

.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 15.5px; }
.alert b { display: block; margin-bottom: 2px; }
.alert.bad { background: var(--bad-bg); color: #7d2312; border: 1px solid #f1c6bb; }
.alert.warn { background: var(--warn-bg); color: #6b4000; border: 1px solid #f0d9ad; }
.alert.info { background: var(--info-bg); color: #1d4560; border: 1px solid #c8dbe8; }
.alert.ok { background: var(--ok-bg); color: #1d5536; border: 1px solid #c3e2cf; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* формы */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field .req { color: var(--bad); }
.input, select.input, textarea.input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; outline: none; appearance: none; -webkit-appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21,36,47,.12); }
.input.invalid { border-color: var(--bad); }
.hint { font-size: 13.5px; color: var(--ink-3); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.check input { width: 22px; height: 22px; accent-color: var(--navy); }

.line-row { background: #f6f8f9; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.line-row .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.line-row .qty { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin-top: 10px; }
.line-row .qty .input { font-size: 20px; font-weight: 700; }

.picker-list { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 8px; background: #fff; }
.picker-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 56px; }
.picker-item:last-child { border-bottom: 0; }
.picker-item:active { background: #f1f4f6; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid var(--navy); border-radius: 12px; padding: 12px 14px; background: #f4f7f9; }
.chosen b { font-size: 17px; }
.subform { border: 1.5px dashed var(--steel); border-radius: 12px; padding: 14px; margin-top: 10px; background: #fafbfc; }

details.more { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; margin-bottom: 14px; }
details.more summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--ink-2); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: '+'; margin-left: auto; font-size: 22px; color: var(--ink-3); }
details.more[open] summary::after { content: '−'; }
details.more[open] { padding-bottom: 12px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #dfe4e8; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(21,36,47,.75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.photo .up { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.7); font-size: 12px; text-align: center; padding: 4px; }
.addphoto { aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--steel); display: grid; place-items: center; color: var(--ink-2); font-size: 13px; text-align: center; cursor: pointer; background: #fff; padding: 6px; }
.addphoto input { display: none; }

.actionbar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--tab-pb)); z-index: 15; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 10px 14px; box-shadow: 0 -6px 18px rgba(21,36,47,.08); }
.actionbar .inner { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.actionbar .inner.two { grid-template-columns: 1fr 1.6fr; }

/* детали заявки */
.hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.hero .num { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--steel); font-size: 14px; }
.hero .status { background: rgba(255,255,255,.12); color: #fff; }
.hero .status.returned { background: #f6d2c9; color: var(--bad); }
.hero .status.accepted { background: #cfe8da; color: var(--ok); }
.hero .obj { font-size: 22px; font-weight: 700; margin: 8px 0 4px; line-height: 1.2; }
.hero .who { font-size: 16.5px; color: var(--steel-2); }
.hero .vol { font-size: 28px; font-weight: 800; margin: 10px 0 4px; }
.hero .resp { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); font-size: 15.5px; color: var(--steel-2); }
.hero .resp b { color: #fff; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 15.5px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 500; }
table.lines { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.lines th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: 6px 6px; border-bottom: 1.5px solid var(--line); }
table.lines td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines td.q { text-align: right; font-weight: 800; white-space: nowrap; font-size: 17px; }
table.lines th.q { text-align: right; }

.sig { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sig:last-child { border-bottom: 0; }
.sig .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok-bg); color: var(--ok); }
.sig .ic.wait { background: #edf0f2; color: var(--ink-3); }
.sig .ic svg { width: 18px; height: 18px; }
.sig .t { font-size: 13px; color: var(--ink-3); }
.sig .n { font-weight: 700; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding-bottom: 14px; }
.tl::before { content: ''; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--steel); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--steel); }
.tl.returned::before { background: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.tl.accepted::before { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.tl.signed_foreman::before, .tl.signed_chief::before { background: var(--info); box-shadow: 0 0 0 1px var(--info); }
.tl .when { font-size: 12.5px; color: var(--ink-3); }
.tl .what { font-size: 15px; }
.tl .cmt { margin-top: 4px; background: #f4f6f7; border-radius: 8px; padding: 6px 10px; font-size: 14.5px; }
.rev { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.rev summary { padding: 12px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; list-style: none; }
.rev summary::-webkit-details-marker { display: none; }
.rev .body { padding: 0 14px 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #edf0f2; color: var(--ink-2); }
.tag.old { background: var(--warn-bg); color: var(--warn); }
.tag.cur { background: var(--info-bg); color: var(--info); }

/* наряд */
.doc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px; }
.doc .dh { background: var(--navy); color: #fff; padding: 16px; display: flex; gap: 12px; align-items: center; }
.doc .dh img.logo-h { height: 42px; width: auto; display: block; }
.doc .db { padding: 16px; }
.doc .no { font-size: 24px; font-weight: 800; }
.doc .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 14px; }
.stamp { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ok); color: var(--ok); border-radius: 8px; padding: 4px 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* оценка */
.stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stars button { min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 18px; cursor: pointer; }
.stars button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.crit { margin-bottom: 14px; }
.crit .label { display: flex; justify-content: space-between; }
.rating { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rating .big { font-size: 30px; font-weight: 800; }
.rating .star { color: #d79a00; font-size: 22px; }
.pill { display: inline-block; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review .crits { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; font-size: 14px; color: var(--ink-2); margin: 6px 0; }

.tabs { display: flex; gap: 6px; background: #e3e8ec; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { position: relative; margin-bottom: 12px; }
.search .input { padding-left: 44px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); }

.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 8px; text-decoration: none; color: inherit; }
.list-item .t { font-weight: 700; } .list-item .s { font-size: 14px; color: var(--ink-3); }
.notif.unread { border-left: 4px solid var(--navy); }

/* модальное окно и уведомления */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(21,36,47,.55); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); animation: up .18s ease-out; }
@media (min-width: 640px) { .modal-back { align-items: center; } .modal { border-radius: 18px; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.modal h2 { margin-bottom: 10px; }
.modal .actions { display: grid; gap: 8px; margin-top: 14px; }
.toast-wrap { position: fixed; left: 0; right: 0; top: calc(66px + env(safe-area-inset-top)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; max-width: 560px; width: 100%; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); } .toast.ok { background: var(--ok); }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(21,36,47,.15); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
.btn.primary .spinner, .btn.ok .spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 50px 0; }
.netstate { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #f4f6f7; margin: 10px 0; }

/* вход */
.auth { min-height: 100vh; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 48px 18px 24px; }
.auth .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth .logo img.logo-v { width: 220px; max-width: 70vw; height: auto; display: block; }
.auth .panel { width: 100%; max-width: 420px; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 18px; }
.auth .panel h1 { font-size: 21px; margin-bottom: 14px; }
.auth .foot { margin-top: 16px; color: var(--steel); font-size: 15px; text-align: center; }
.auth .foot a { color: #fff; font-weight: 700; }

/* печать наряда */
@media print {
  body { background: #fff; font-size: 12pt; }
  .topbar, .tabbar, .actionbar, .no-print, .toast-wrap, .offline-bar { display: none !important; }
  main { padding: 0; max-width: none; }
  .doc { box-shadow: none; border-radius: 0; }
  .doc .dh { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; }
}
@media (min-width: 760px) {
  .tabbar { grid-template-columns: repeat(4, 140px); justify-content: center; }
}

/* цена */
.line-row .qty.price { grid-template-columns: 1fr 140px; }
.line-row .amount { display: flex; align-items: center; justify-content: flex-end; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.totalrow { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 12px; font-size: 16px; }
.totalrow b { font-size: 21px; font-variant-numeric: tabular-nums; }
.rcard .money { font-size: 16px; font-weight: 700; color: var(--ink-2); margin: -2px 0 6px; font-variant-numeric: tabular-nums; }
.hero .sum { font-size: 19px; font-weight: 700; color: var(--steel-2); font-variant-numeric: tabular-nums; }
.tscroll { overflow-x: auto; }
table.lines td.q, table.lines th.q { font-variant-numeric: tabular-nums; }
table.lines td.pr { font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
table.lines tfoot td { font-weight: 800; padding-top: 10px; border-bottom: 0; }
table.lines tfoot td.q { font-size: 18px; }
.wl { border-top: 1.5px solid var(--line); }
.wl-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.wl-row .d { font-size: 15.5px; }
.wl-row .calc { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 3px; font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wl-row .calc .qv { font-size: 17px; color: var(--ink); }
.wl-row .calc > b { font-size: 16px; color: var(--ink); white-space: nowrap; }
.wl-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; font-weight: 800; font-size: 15px; }
.wl-total b { font-size: 19px; font-variant-numeric: tabular-nums; }

/* админка */
.stamp.void { border-color: var(--bad); color: var(--bad); }
.pwshow { font: 700 22px/1.3 ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing: .04em; margin: 8px 0; user-select: all; color: var(--ink); background: #fff; border-radius: 8px; padding: 8px 10px; }
.list-item.audit.danger { border-left: 4px solid var(--bad); }
.list-item.audit .t { margin: 2px 0; }
.status.deleted { background: #f2e6e3; color: var(--bad); }
.rcard.st-deleted { border-left-color: var(--bad); opacity: .85; }

/* правки по итогам проверки */
.line-row .qty-labels { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin: 10px 2px -6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.line-row .qty-labels + .qty { margin-top: 8px; }
.picker-item.archived { opacity: .6; cursor: default; }
body.form-mode .tabbar { display: none; }
body.form-mode .actionbar { bottom: 0; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
body.form-mode main { padding-bottom: 150px; }
.photo button { width: 40px; height: 40px; font-size: 22px; }
.btn.sm { min-height: 44px; }
.chip { min-height: 44px; }
