@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-500.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-700.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-800.woff2) format('woff2'); }

/* Оформление как у «Журнала рейсов»: светлый фон, белые карточки с крупным скруглением, капсулы, крупные числа */
:root {
  --bg: #f2f2f7; --card: #ffffff; --text: #1c1c1e; --hint: #8e8e93; --line: #e5e5ea;
  --blue: #007aff; --red: #ff3b30; --green: #1f9d55; --orange: #ff9500;
  --red-p: #fdecea; --blue-p: #e5f0ff; --green-p: #e6f6ec; --orange-p: #fff1dc; --gray-p: #f2f2f7;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.72); --glass-line: rgba(255, 255, 255, 0.7); --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1c1c1e; --text: #ffffff; --hint: #8e8e93; --line: #38383a;
  --red-p: rgba(255, 59, 48, 0.2); --blue-p: rgba(0, 122, 255, 0.22); --green-p: rgba(31, 157, 85, 0.24); --orange-p: rgba(255, 149, 0, 0.22); --gray-p: #2c2c2e;
  --shadow: none;
  --glass: rgba(58, 58, 60, 0.62); --glass-line: rgba(255, 255, 255, 0.14); --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { padding: 22px 16px calc(100px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }

.title { font-size: 40px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; margin: 6px 4px 0; }
.subtitle { font-size: 17px; color: var(--hint); margin: 4px 4px 20px; }
.sec { font-size: 12.5px; font-weight: 600; color: var(--hint); text-transform: uppercase; letter-spacing: 0.5px; margin: 24px 8px 8px; }

.card { background: var(--card); border-radius: 28px; padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.tight { padding: 8px 22px; }
.lbl { font-size: 13.5px; font-weight: 500; color: var(--hint); }
.big { font-size: 50px; font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin: 8px 0 8px; }
.cap-text { font-size: 15px; color: var(--hint); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: 24px; padding: 16px 16px 14px; box-shadow: var(--shadow); min-width: 0; }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; margin-top: 6px; white-space: nowrap; }
.stat .c { font-size: 12px; color: var(--hint); margin-top: 4px; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stats.two .stat .v { font-size: 24px; }
.red { color: var(--red); } .green { color: var(--green); } .orange { color: var(--orange); } .blue { color: var(--blue); } .muted { color: var(--hint); }

.trow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: none; }
.trow .d { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.trow .s { font-size: 12.5px; color: var(--hint); margin-top: 2px; }
.trow .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.trow .sum { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; }
.trow .w { font-size: 13px; color: var(--hint); white-space: nowrap; }

.cap { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 5px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 700; white-space: nowrap; background: var(--gray-p); color: var(--hint); }
.cap.red-s { background: var(--red); color: #fff; } .cap.blue-s { background: var(--blue); color: #fff; }
.cap.red-p { background: var(--red-p); color: var(--red); } .cap.blue-p { background: var(--blue-p); color: var(--blue); }
.cap.green { background: var(--green-p); color: var(--green); } .cap.orange { background: var(--orange-p); color: var(--orange); }

label { display: block; font-size: 13px; font-weight: 500; color: var(--hint); margin: 14px 4px 6px; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 16px; }
textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
/* Выбор даты: два раздельных блока «С» и «По», не вылезают за экран на iPhone */
.datepair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.datebox { background: var(--card); border-radius: 22px; padding: 12px 16px 8px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.card .datebox { background: var(--gray-p); box-shadow: none; }
.datebox .lbl { font-size: 12.5px; }
.datebox input { display: block; height: 34px; margin-top: 2px; padding: 0; border: none; border-radius: 0; background: transparent; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; text-align: left; line-height: 34px; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
input[type="date"], input[type="time"] { text-align: left; }
button { font: inherit; font-size: 16px; font-weight: 600; border: none; border-radius: 16px; height: 50px; padding: 0 16px; background: var(--blue); color: #fff; width: 100%; margin-top: 14px; }
button.sec2 { background: var(--card); color: var(--blue); border: 1px solid var(--line); box-shadow: var(--shadow); }
button:disabled { opacity: 0.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { height: auto; padding: 8px 14px; border-radius: 999px; background: var(--gray-p); color: var(--text); font-size: 14px; font-weight: 500; width: auto; margin: 0; }
.chip.on { background: var(--blue); color: #fff; }
.seg { display: flex; background: var(--gray-p); border-radius: 14px; padding: 3px; gap: 3px; }
.seg button { margin: 0; height: 38px; font-size: 14.5px; background: transparent; color: var(--text); font-weight: 500; border-radius: 11px; }
.seg button.on { background: var(--card); font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.bar { height: 12px; border-radius: 6px; background: var(--gray-p); overflow: hidden; margin: 10px 0 8px; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.bar.low > i { background: var(--red); }
.hl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hl:last-child { border-bottom: none; }
.hl .a { font-weight: 600; } .hl .b { font-weight: 700; text-align: right; white-space: nowrap; }
.hl .s { font-size: 12.5px; color: var(--hint); font-weight: 400; margin-top: 1px; }
pre { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 14px; line-height: 1.5; margin: 0; }
.legend { font-size: 13px; color: var(--hint); line-height: 1.5; margin: 6px 6px 0; }

/* Нижняя панель как в iOS: плавающая капсула из стекла с контурными иконками */
nav { position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 28px); max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 6px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
nav button { flex: 1; height: 48px; margin: 0; padding: 0; border-radius: 999px; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; transition: background 0.18s, color 0.18s; }
nav button svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav button.on { color: var(--blue); background: var(--blue-p); }
#toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(0, 0, 0, 0.84); color: #fff; padding: 12px 18px; border-radius: 16px; max-width: 90%; opacity: 0; pointer-events: none; transition: opacity 0.2s; text-align: center; }
#toast.show { opacity: 1; }
.center { text-align: center; padding: 34px 10px; color: var(--hint); }
@media (max-width: 380px) { .big { font-size: 42px; } .title { font-size: 34px; } .stat .v { font-size: 19px; } }

/* Единый стиль с отчётом «Журнал рейсов» (PNG/PDF): карточка клиента и цены, таблица рейсов, капсулы, легенда */
.cardrow { display: flex; align-items: center; background: var(--card); border-radius: 28px; padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.cardrow .l { flex: 1; min-width: 0; }
.cardrow .div { width: 1px; align-self: stretch; background: var(--line); margin: 0 18px; }
.cardrow .rr { width: 42%; min-width: 0; }
.cardrow .v { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-top: 6px; overflow-wrap: anywhere; }
.stats:not(.two) .stat .lbl { min-height: 2.7em; }
.jt { background: var(--card); border-radius: 28px; padding: 20px 14px 6px; box-shadow: var(--shadow); margin-bottom: 14px; }
.jt-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 0.85fr) 64px minmax(0, 1.1fr); column-gap: 4px; align-items: center; }
.jt-head > div { white-space: nowrap; }
.jt-head { padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 500; color: var(--hint); align-items: end; line-height: 1.2; }
.jt-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.jt-item:last-child { border-bottom: none; }
.jt .c-plate, .jt .c-brand, .jt .long, .jt .x-wide { display: none; }
.jt .d { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; }
.jt .s { font-size: 11px; color: var(--hint); margin-top: 1px; white-space: nowrap; }
.jt .jt-extra { font-size: 11px; color: var(--hint); margin-top: 4px; overflow-wrap: anywhere; line-height: 1.3; }
.jt .r { text-align: right; } .jt .c { text-align: center; }
.jt .n { font-size: 13.5px; font-weight: 500; white-space: nowrap; } .jt .sum { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.jt .cap { min-width: 54px; font-size: 12.5px; padding: 4px 6px; }
.legend-row { display: flex; align-items: center; gap: 12px; margin: 14px 6px 0; font-size: 13.5px; color: var(--hint); }
.swatch { width: 46px; height: 24px; border-radius: 999px; background: var(--red); flex: none; }
@media (min-width: 560px) {
  .jt { padding: 24px 22px 12px; }
  .jt-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 0.9fr) minmax(0, 1fr); column-gap: 8px; }
  .jt-item { padding: 12px 0; }
  .jt .c-plate, .jt .c-brand, .jt .long, .jt .x-wide { display: block; } .jt .short, .jt .x-narrow { display: none; }
  .jt-head { font-size: 11.5px; } .jt .d { font-size: 15.5px; } .jt .s, .jt .jt-extra { font-size: 12px; }
  .jt .n, .jt .sum { font-size: 15px; } .jt .cap { min-width: 60px; font-size: 14px; padding: 4px 10px; }
}

/* Исправление рейсов: нажимаемые строки, недавние записи бота, карточка рейса снизу */
.jt-item.tap { cursor: pointer; border-radius: 12px; }
.jt-item.tap:active { background: var(--gray-p); }
.jt .botmark { color: var(--blue); font-weight: 600; }
.recent { padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent:last-child { border-bottom: none; }
.recent .a { font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; }
.recent .s { font-size: 12.5px; color: var(--hint); margin-top: 2px; }
.recent .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recent .btns button { height: 40px; margin-top: 10px; font-size: 14.5px; border-radius: 12px; }
button.danger { background: var(--card); color: var(--red); border: 1px solid var(--line); box-shadow: var(--shadow); }
.small { font-size: 12.5px; margin: 0 8px 4px; }
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.38); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 28px 28px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 4px 14px; }
.sheet-title { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; }
.sheet .x { width: 36px; height: 36px; padding: 0; margin: 0; border-radius: 999px; background: var(--gray-p); color: var(--hint); font-size: 16px; flex: none; }
.sheet .card label:first-child, .sheet .card .two:first-child label { margin-top: 0; }
.sheet .two { align-items: end; }
#toast { z-index: 60; }
.trow.tap { cursor: pointer; }
.trow.tap:active { opacity: 0.6; }
.sheet pre { white-space: pre-wrap; }
.card .stat { background: var(--gray-p); box-shadow: none; }
.card .stats .stat { padding: 14px 12px 12px; }
.card .stats .stat .v { font-size: 20px; overflow: hidden; text-overflow: ellipsis; }
.chips.on-bg { flex-wrap: nowrap; gap: 6px; }
.chips.on-bg .chip { flex: 1 1 auto; padding: 9px 8px; font-size: 13.5px; white-space: nowrap; }
.chips.on-bg .chip:not(.on) { background: var(--card); box-shadow: var(--shadow); }
/* Контрагенты */
input[type="search"] { -webkit-appearance: none; }
input.changed, select.changed { border-color: var(--blue); background: var(--blue-p); }
input:disabled { opacity: 0.6; }
a.btnlink { display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 14px; border-radius: 16px; background: var(--green-p); color: var(--green); font-weight: 600; text-decoration: none; }
.sheet .card .two button { margin-top: 10px; height: 44px; font-size: 14.5px; }
/* Меню «Ещё» и ссылка назад */
.menu-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-row:last-child { border-bottom: none; }
.menu-row:active { opacity: 0.6; }
.menu-row .mi { font-size: 22px; width: 30px; text-align: center; }
.menu-row .mt { flex: 1; min-width: 0; font-size: 16.5px; font-weight: 600; }
.menu-row .mt .s { font-size: 12.5px; color: var(--hint); font-weight: 400; margin-top: 2px; }
.menu-row .chev { color: var(--hint); font-size: 22px; }
button.back { width: auto; height: auto; margin: 0 0 4px; padding: 4px 0; background: none; color: var(--blue); font-size: 16px; font-weight: 500; box-shadow: none; }

/* ===== Версия 2.0: нижнее меню с подписями, главная-витрина, сервисы, уведомления, сканер, дашборд ===== */
nav { border-radius: 26px; }
nav button { flex-direction: column; gap: 2px; height: 56px; border-radius: 20px; font-size: 11px; font-weight: 600; position: relative; }
nav button svg { width: 25px; height: 25px; }
nav button .tl { line-height: 1; }
nav button .badge { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 6px; line-height: 1.4; }
main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card svg text { font-family: Inter, sans-serif; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; height: 48px; padding: 0 14px; color: var(--hint); box-shadow: var(--shadow); margin: 0 0 14px; }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { border: none; background: transparent; height: 44px; padding: 0; font-size: 16px; flex: 1; min-width: 0; }
.search input:focus { outline: none; }
.search .cam { color: var(--blue); display: flex; cursor: pointer; }
.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.hero { flex: 0 0 calc(100% - 46px); scroll-snap-align: center; background: var(--blue); color: #fff; border-radius: 28px; padding: 18px 22px; cursor: pointer; }
.hero .lbl { color: rgba(255, 255, 255, 0.82); }
.hero .big { color: #fff; font-size: 36px; margin: 6px 0 4px; white-space: nowrap; }
.hero .cap-text { color: rgba(255, 255, 255, 0.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero.dark { background: #1c1c1e; } .hero.green { background: #1f9d55; } .hero.orange { background: #e8590c; }
:root[data-theme="dark"] .hero.dark { background: #2c2c2e; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 14px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width 0.2s; }
.dots i.on { width: 18px; background: var(--blue); }
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 4px; text-align: center; font-size: 12.5px; font-weight: 500; }
.svc-i { cursor: pointer; min-width: 0; }
.svc-i:active { opacity: 0.6; }
.svc-t { width: 54px; height: 54px; border-radius: 17px; background: var(--blue-p); color: var(--blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; }
.svc-t svg { width: 27px; height: 27px; }
.att { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.att:last-child { border-bottom: none; }
.att-i { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.att-i svg { width: 21px; height: 21px; }
.att-b { flex: 1; min-width: 0; }
.att-t { font-weight: 600; font-size: 15px; }
.att-s { font-size: 12.5px; color: var(--hint); margin-top: 1px; }
.att-c { width: 18px; height: 18px; color: var(--hint); flex: none; }
.red-t { background: var(--red-p); color: var(--red); } .org-t { background: var(--orange-p); color: var(--orange); } .blu-t { background: var(--blue-p); color: var(--blue); } .grn-t { background: var(--green-p); color: var(--green); }
.more-link { text-align: center; color: var(--blue); font-weight: 600; padding: 12px 0; cursor: pointer; }
.hs { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
.hs::-webkit-scrollbar { display: none; }
.hc { flex: 0 0 132px; background: var(--card); border-radius: 20px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; }
.hc .hd { font-size: 12px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc .hn { font-weight: 600; font-size: 14px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc .hv { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; margin-top: 4px; }
.prof { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.ava { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: none; }
.pn { font-weight: 700; font-size: 17px; }
.camera { height: 260px; border-radius: 28px; background: #1c1c1e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; margin-bottom: 14px; position: relative; cursor: pointer; font-size: 15px; }
.camera .frame { position: absolute; inset: 30px 36px; border: 2.5px solid rgba(255, 255, 255, 0.85); border-radius: 18px; }
.camera svg { width: 48px; height: 48px; }
.pbtn { height: 50px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--blue); font-weight: 600; cursor: pointer; }
.pbtn svg { width: 20px; height: 20px; }
.ct { font-weight: 700; font-size: 16px; letter-spacing: -0.2px; margin-bottom: 4px; }
.cs { font-size: 12.5px; color: var(--hint); margin-bottom: 10px; }
.card > svg, .card > div > svg { display: block; margin-top: 8px; overflow: visible; }
.lg { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--text); flex-wrap: wrap; }
.lg span { display: flex; align-items: center; gap: 6px; }
.lg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.up { color: var(--green); } .down { color: var(--red); }
.stat.tap, .card.tap { cursor: pointer; }
/* Журнал действий */
.hist-d { font-size: 12.5px; font-weight: 600; color: var(--hint); text-transform: uppercase; letter-spacing: 0.4px; padding: 14px 0 4px; }
.hist { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist:last-child { border-bottom: none; }
.hist-t { font-size: 13px; font-weight: 700; color: var(--hint); width: 42px; flex: none; padding-top: 1px; }
.hist-x { font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }

/* ===== Версия 2.2: счета на оплату и АВР ===== */
.doc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: none; }
.doc.tap { cursor: pointer; } .doc.tap:active { opacity: 0.6; }
.doc.off { opacity: 0.5; }
.doc .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-p); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; letter-spacing: -0.3px; }
.doc .d { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.doc .s { font-size: 12.5px; color: var(--hint); margin-top: 2px; }
.doc .r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; align-self: start; }
.doc .sum { font-size: 16px; font-weight: 700; white-space: nowrap; }
.doc .dl { display: flex; gap: 8px; margin-top: 8px; }
.doc .dl .chip { margin: 0; white-space: nowrap; font-size: 13px; padding: 6px 12px; color: var(--blue); }
.thumbs { display: grid; grid-template-columns: 1fr 1.41fr; gap: 10px; margin-top: 14px; align-items: start; }
.thumbs img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.thumbs .t { font-size: 12px; color: var(--hint); margin-top: 4px; text-align: center; }
.warn { background: var(--orange-p); color: var(--text); border-radius: 18px; padding: 12px 16px; font-size: 14px; line-height: 1.4; margin-bottom: 14px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line); }
.tgl { position: relative; width: 51px; height: 31px; flex: none; margin: 0; }
.tgl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.tgl span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.2s; }
.tgl span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.tgl input:checked + span { background: var(--green); }
.tgl input:checked + span::after { transform: translateX(20px); }
