/* ============================================================================
   Етап 0 — стилі НОВИХ компонентів складу.
   ⚠️ Цей файл іде в код БЕЗ ЗМІН (renderer/etap0.css, підключається після
   styles.css і logistics.css). Макет docs/etap0/20-etap0-v3.html збирається з
   ТИХ САМИХ трьох файлів, тож «у макеті одне, у коді інше» тут неможливе.
   Правило: жодного перевизначення наявних класів ЦРМ (.badge, .btn, .card,
   .price-tip, .ph-*…) — лише нові з префіксом e0-. Справжні компоненти
   беруться справжніми класами.
   ========================================================================== */

/* ---- мітки ---- */
.e0-tag { display:inline-block; padding:1px 7px; border-radius:9px; font-size:11.5px; white-space:nowrap; line-height:18px; }
.e0-tag.draft { background:#fef3c7; color:#92400e; }
.e0-tag.done  { background:#dcfce7; color:#166534; }
.e0-tag.used  { background:#e0e7ff; color:#3730a3; }
.e0-tag.new   { background:#f1f5f9; color:#475569; }
.e0-tag.red   { background:#fee2e2; color:#991b1b; }
.e0-tag.amber { background:#fef3c7; color:#92400e; }
.e0-tag.blue  { background:#dbeafe; color:#1e40af; }
.e0-tag.green { background:#dcfce7; color:#166534; }
.e0-tag.grey  { background:#f1f5f9; color:#64748b; }
.e0-tag.res   { background:#dbeafe; color:#1e40af; }

/* ---- 📦 у рядку заказу: у клітинці №, рядок не росте ---- */
.e0-stk { margin-left:2px; font-size:12px; cursor:help; }
.status-checks label.e0-off { color:#c0c6cf; }
input.e0-batch { color:#166534; }
/* Резерв складського рядка (18.10, макет docs/etap0/06-rezerv-skladu.html): жовта крапка — N діб без
   «З.»; бліде — резерв знято. Вікно на 📦 — той самий темний .price-tip, що й підказка ціни. */
.e0-stk.aged { position:relative; }
.e0-stk.aged::after { content:''; position:absolute; right:-3px; top:-2px; width:7px; height:7px; border-radius:50%; background:#f59e0b; box-shadow:0 0 0 1.5px #fff; }
.e0-stk.freed { opacity:.35; filter:grayscale(1); }
.price-tip.stk-tip { width:270px; }
.stk-tip .rz-line { display:flex; justify-content:space-between; gap:8px; padding:2px 0; font-variant-numeric:tabular-nums; }
.stk-tip .rz-line span:first-child { color:#94a3b8; }
.stk-tip .rz-warn { color:#fbbf24; }
.stk-tip .rz-hold { display:flex; gap:7px; align-items:center; margin-top:7px; padding:6px; border-top:1px solid #334155; cursor:pointer; border-radius:4px; }
.stk-tip .rz-hold:hover { background:#334155; }
.stk-tip .rz-hold input { margin:0; width:14px; height:14px; }
.stk-tip .rz-hold small { display:block; color:#94a3b8; font-size:11px; margin-top:1px; }

/* ---- приймання (ПК): черги — ті самі .card, кольорова смуга зліва ---- */
.card.e0-q { border-left:4px solid #e5e7eb; }
.card.e0-q.red { border-left-color:#ef4444; }
.card.e0-q.blue { border-left-color:#3b82f6; }
.card.e0-q.amber { border-left-color:#f59e0b; }
.card.e0-q.green { border-left-color:#22c55e; }
.e0-cnt { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.e0-cnt div { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:6px 12px; font-size:12px; color:#6b7280; }
.e0-cnt b { font-size:18px; color:#111827; margin-right:6px; }
.e0-cnt div.hi { border-color:#fcd34d; background:#fffbeb; }
.e0-cnt div.hi b { color:#92400e; }
tr.e0-wait td { color:#9ca3af; }

/* ---- документ надходження (як картка надходження БАЗИ) ---- */
.e0-doc { background:#fff; border-radius:6px; box-shadow:0 1px 2px rgba(0,0,0,.06); overflow:hidden; }
.e0-doc-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 16px; border-bottom:1px solid #e5e7eb; }
.e0-doc-head h2 { margin:0; display:flex; align-items:center; gap:8px; }
.e0-doc-head .s { color:#6b7280; font-size:12px; margin-top:2px; }
.e0-doc-body { display:grid; grid-template-columns:220px 1fr 220px; }
.e0-doc-side { padding:12px; border-right:1px solid #e5e7eb; background:#fafbfc; }
.e0-doc-side .field { margin-bottom:10px; }
.e0-doc-side label { display:block; font-size:12px; color:#6b7280; margin-bottom:3px; }
.e0-doc-side input, .e0-doc-side select, .e0-doc-side textarea { width:100%; padding:5px 7px; border:1px solid #d1d5db; border-radius:4px; font:inherit; font-size:13px; }
.e0-doc-main { padding:12px; min-width:0; }
.e0-doc-log { padding:12px; border-left:1px solid #e5e7eb; background:#fafbfc; font-size:12.5px; color:#4b5563; }
.e0-doc-log div { margin-bottom:6px; line-height:1.4; }
.e0-doc-log b { color:#111827; margin-right:4px; }
td input.e0-need { border:1px solid #fcd34d; background:#fffbeb; border-radius:3px; padding:3px 5px; width:100%; font-size:12.5px; }
td input.e0-cell { border:1px solid #e5e7eb; border-radius:3px; padding:3px 5px; width:100%; font-size:12.5px; }
.e0-thumb { display:block; width:34px; height:26px; border-radius:4px; background:linear-gradient(135deg,#e5e7eb,#cbd5e1); }
td.e0-bar { padding:0; width:5px; }
td.e0-bar.red { background:#ef4444; } td.e0-bar.amber { background:#f59e0b; } td.e0-bar.blue { background:#3b82f6; } td.e0-bar.green { background:#22c55e; } td.e0-bar.violet { background:#8b5cf6; }

/* ---- картка товару ---- */
.e0-card { display:grid; grid-template-columns:300px 1fr; gap:20px; align-items:start; }
.e0-photos { display:flex; gap:8px; flex-wrap:wrap; }
.e0-photos span { width:90px; height:90px; border-radius:6px; border:1px dashed #cbd5e1; display:flex; align-items:center; justify-content:center; color:#94a3b8; font-size:22px; }
.e0-photos span.has { border-style:solid; background:linear-gradient(135deg,#e5e7eb,#cbd5e1); }
.e0-kph { display:inline-flex; gap:4px; }
.e0-kph span { width:34px; height:34px; border-radius:4px; border:1px dashed #cbd5e1; display:inline-flex; align-items:center; justify-content:center; color:#94a3b8; font-size:15px; cursor:pointer; }
.e0-kph span.has { border-style:solid; background:linear-gradient(135deg,#e5e7eb,#cbd5e1); }
.e0-two { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.e0-sums { display:flex; gap:24px; margin-top:10px; font-size:13px; color:#4b5563; }
.e0-sums b { color:#111827; font-size:15px; margin-left:6px; }
.e0-log { font-size:12.5px; color:#4b5563; padding:4px 0; }
.e0-log b { color:#111827; margin-right:6px; }

/* ---- вибір у діалогах (одна з двох дій) ---- */
.e0-pick { display:flex; flex-direction:column; gap:8px; }
.e0-pick label { border:1px solid #e5e7eb; border-radius:8px; padding:9px 12px; font-size:13.5px; display:block; cursor:pointer; }
.e0-pick label.on { border-color:#93c5fd; background:#eff6ff; }
.e0-pick label span { display:block; color:#6b7280; font-size:12.5px; margin:2px 0 0 22px; }
.e0-seg { display:inline-flex; }
.e0-seg span { border:1px solid #d1d5db; padding:4px 11px; font-size:12.5px; background:#fff; color:#4b5563; cursor:pointer; }
.e0-seg span:first-child { border-radius:4px 0 0 4px; } .e0-seg span:last-child { border-radius:0 4px 4px 0; border-left:0; }
.e0-seg span.on { background:#3b82f6; border-color:#3b82f6; color:#fff; font-weight:600; }
.e0-kv { display:flex; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px solid #f1f3f5; font-size:13px; }
.e0-kv span { color:#6b7280; } .e0-kv b { text-align:right; }

/* ---- проценка: клітинка-склад ---- */
table.quote-table td.e0-qstk { background:#ecfdf5; }
table.quote-table td.e0-qstk input { color:#166534; }
.e0-qsrc { font-size:11px; color:#166534; font-weight:600; white-space:nowrap; padding:0 4px; }

/* ---- телефон Дена: вкладка «Склад» (у тій самій оболонці #denApp) ---- */
#denApp .e0-scanbtn { background:#1f2937; color:#fff; border-radius:12px; padding:16px; text-align:center; font-weight:700; font-size:17px; cursor:pointer; }
#denApp .e0-q { border-left:4px solid #e5e7eb; }
#denApp .e0-q.red { border-left-color:#ef4444; } #denApp .e0-q.amber { border-left-color:#f59e0b; } #denApp .e0-q.blue { border-left-color:#3b82f6; }
#denApp .e0-n { float:right; background:#f1f5f9; border-radius:10px; padding:0 8px; font-size:12px; color:#475569; }
#denApp .e0-in { width:100%; box-sizing:border-box; font-size:15px; padding:9px 11px; border:1px solid #d1d5db; border-radius:10px; margin:6px 0 0; }
#denApp .e0-photos { display:flex; gap:7px; margin:8px 0 2px; }
#denApp .e0-photos span { width:58px; height:58px; border-radius:9px; background:linear-gradient(135deg,#e5e7eb,#cbd5e1); }
#denApp .e0-pinrow { display:flex; gap:6px; align-items:center; margin-top:8px; }
#denApp .e0-pinrow .den-in { margin:0; font-size:16px; padding:9px 11px; }
#denApp .e0-pin { flex:none; width:42px; height:42px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; }
#denApp .e0-pin.on { background:#dbeafe; border-color:#93c5fd; }
#denApp .e0-hints { display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
#denApp .e0-hints span { background:#f1f5f9; border-radius:8px; padding:5px 10px; font-size:13px; color:#475569; }
#denApp .e0-seg2 { display:flex; gap:6px; margin-top:8px; }
#denApp .e0-seg2 span { flex:1; text-align:center; border:1px solid #e5e7eb; border-radius:10px; padding:10px; font-size:14.5px; background:#fff; }
#denApp .e0-seg2 span.on { background:#3b82f6; border-color:#3b82f6; color:#fff; font-weight:600; }
#denApp .e0-st { display:inline-block; border-radius:9px; padding:1px 8px; font-size:12px; white-space:nowrap; }
#denApp .e0-st.ok { background:#dcfce7; color:#166534; } #denApp .e0-st.wait { background:#fef3c7; color:#92400e; } #denApp .e0-st.stk { background:#e0e7ff; color:#3730a3; } #denApp .e0-st.car { background:#dbeafe; color:#1e40af; }

/* ---- сканер камерою: 1:1 з мобільної БАЗИ (public/mobile.css, блок «сканер») ---- */
.scan-overlay { position:fixed; inset:0; background:#000; z-index:100; display:flex; flex-direction:column; touch-action:none; overscroll-behavior:none; }
.scan-overlay[hidden], .scan-status[hidden], .scan-toast[hidden] { display:none; }
.scan-status { padding:11px 12px; color:#fff; font-size:14px; line-height:1.35; text-align:center; }
.scan-status.session { background:#1c7ed6; } .scan-status.ok { background:#2f9e44; } .scan-status.error { background:#c92a2a; }
.scan-status b { font-family:'Courier New', monospace; }
.scan-cam-wrap { flex:1; position:relative; overflow:hidden; }
.scan-frame { position:absolute; left:6%; right:6%; top:50%; height:2px; margin-top:-1px; background:rgba(255,80,80,.9); box-shadow:0 0 6px rgba(255,80,80,.8); border-radius:2px; pointer-events:none; }
.scan-frame::before { content:''; position:absolute; left:-3%; right:-3%; top:-90px; bottom:-90px; background:rgba(255,255,255,.13); border-radius:10px; }
.scan-hint { position:absolute; left:0; right:0; bottom:20%; text-align:center; color:rgba(255,255,255,.8); font-size:13px; pointer-events:none; }
.scan-toast { position:absolute; left:8%; right:8%; top:32%; border-radius:12px; padding:14px 12px; text-align:center; color:#fff; font-size:14.5px; line-height:1.4; }
.scan-toast.ok { background:rgba(47,158,68,.95); } .scan-toast.err { background:rgba(201,42,42,.96); }
.scan-toast b { font-family:'Courier New', monospace; white-space:nowrap; }
.scan-toast .small { font-size:12px; opacity:.85; margin-top:4px; }
.scan-tools { position:absolute; right:12px; bottom:12px; display:flex; flex-direction:column; gap:10px; }
.scan-tool { width:48px; height:48px; border-radius:50%; border:0; background:rgba(0,0,0,.55); color:#fff; font-size:17px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.scan-actions { padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:#111; display:flex; flex-direction:column; gap:8px; }
.scan-actions .m-btn { display:block; width:100%; border:0; border-radius:12px; padding:15px; font-size:16px; font-weight:600; text-align:center; }
.scan-actions .m-btn.primary { background:#1c7ed6; color:#fff; }
.scan-actions .m-btn.done { background:#2f9e44; color:#fff; }
.scan-actions .m-btn.ghost { background:#2b2f34; color:#ccc; font-weight:400; font-size:14px; }

/* ---- фід / повзунки ---- */
tr.e0-cross td { color:#6b7280; }
tr.e0-off td { color:#9ca3af; }

/* ---- підказка по коду: рядок «на складі» (синій — щоб не плутати із зеленим «цей клієнт брав») ---- */
.price-tip-row.e0-tiprow { background:#1e40af; font-weight:bold; }
.price-tip-row.e0-tiprow:hover { background:#1d4ed8; }

/* ---- телефон: «Надходження на склад» — 1:1 з мобільної БАЗИ (public/mobile.css),
   лише обгорнуто в .e0-m, щоб класи m-* не зачепили решту ЦРМ ---- */
.e0-m { background:#f1f3f5; color:#212529; padding:14px; min-height:100%; font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; }
.e0-m .m-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.e0-m .m-title { font-size:22px; font-weight:800; }
.e0-m .m-sub { font-size:13px; color:#868e96; }
.e0-m .m-btn { display:block; width:100%; border:0; border-radius:12px; padding:15px; font-size:16px; font-weight:600; text-align:center; cursor:pointer; font-family:inherit; }
.e0-m .m-btn.primary { background:#1c7ed6; color:#fff; }
.e0-m .m-btn.done { background:#2f9e44; color:#fff; }
.e0-m .m-btn.ghost { background:#e9ecef; color:#495057; font-weight:400; font-size:14px; }
.e0-m .m-btn.small { width:auto; padding:9px 14px; font-size:14px; }
.e0-m .m-btn + .m-btn { margin-top:8px; }
/* Неактивна кнопка — однаково на Android і iPhone (Safari сам блідить disabled-кнопки майже до невидимості, Chrome —
   ні; Артем 31.10: «Далі: фото» на iPhone майже не видно). Колір задаємо явно, -webkit-text-fill-color — для Safari. */
.e0-m .m-btn:disabled { opacity:.5; color:#fff; -webkit-text-fill-color:#fff; cursor:default; }
.e0-m .m-btn.ghost:disabled { color:#495057; -webkit-text-fill-color:#495057; }
.e0-m .m-menu { margin-top:12px; background:#fff; border-radius:12px; overflow:hidden; }
.e0-m .m-menu button { display:flex; align-items:center; gap:12px; width:100%; border:0; background:none; padding:15px 14px; font-size:15.5px; text-align:left; border-bottom:1px solid #f1f3f5; cursor:pointer; font-family:inherit; color:#212529; }
.e0-m .m-menu button:last-child { border-bottom:0; }
.e0-m .m-menu .ico { font-size:19px; width:26px; text-align:center; flex:none; }
.e0-m .m-menu .chev { margin-left:auto; color:#adb5bd; }
.e0-m .m-menu .cnt { margin-left:auto; font-size:12.5px; color:#c92a2a; font-weight:600; }
.e0-m .m-menu .cnt ~ .chev { margin-left:8px; }
.e0-m .m-list { margin-top:10px; background:#fff; border-radius:12px; overflow:hidden; }
.e0-m .m-row { display:flex; gap:11px; align-items:center; padding:10px 12px; border-bottom:1px solid #f1f3f5; cursor:pointer; }
.e0-m .m-row:last-child { border-bottom:0; }
.e0-m .m-row .noimg { width:52px; height:52px; border-radius:8px; background:#f1f3f5; flex:none; }
.e0-m .m-row .img { width:52px; height:52px; border-radius:8px; background:linear-gradient(135deg,#e5e7eb,#cbd5e1); flex:none; }
.e0-m .m-row .t { min-width:0; }
.e0-m .m-row .n { font-size:15px; font-weight:600; }
.e0-m .m-row .d { font-size:13px; color:#868e96; margin-top:2px; }
.e0-m .m-doc-note { font-size:12.5px; color:#495057; margin-top:3px; }
.e0-m .m-empty { padding:18px; text-align:center; color:#868e96; font-size:14px; }
.e0-m .m-card { background:#fff; border-radius:12px; padding:14px; margin-top:10px; }
.e0-m .m-tabs { display:flex; gap:6px; margin-bottom:10px; }
.e0-m .m-tabs button { flex:1; border:0; border-radius:9px; padding:9px; font-size:13.5px; background:#e9ecef; color:#495057; font-family:inherit; }
.e0-m .m-tabs button.active { background:#1c7ed6; color:#fff; font-weight:600; }
.e0-m .m-select, .e0-m .m-card input { width:100%; border:1px solid #dee2e6; border-radius:10px; padding:11px; font-size:16px; background:#fff; font-family:inherit; }
.e0-m .m-check { display:flex; align-items:center; gap:8px; font-size:14.5px; margin-top:10px; }
.e0-m .m-check input { width:auto; }
.e0-m .m-pin-row { display:flex; gap:8px; margin-top:8px; align-items:stretch; }
.e0-m .m-pin-row > :first-child { flex:1; min-width:0; margin-top:0 !important; }
.e0-m .m-pin { flex:none; width:46px; border:1px solid #dee2e6; border-radius:10px; background:#fff; font-size:19px; opacity:.4; }
.e0-m .m-pin.active { opacity:1; background:#e7f0fe; border-color:#1c7ed6; }
.e0-m .m-seg { display:flex; gap:6px; margin-top:8px; }
.e0-m .m-seg button { flex:1; padding:10px 4px; border:1px solid #dee2e6; border-radius:10px; background:#fff; color:#495057; font-size:14.5px; font-family:inherit; }
.e0-m .m-seg button.active { background:#1c7ed6; border-color:#1c7ed6; color:#fff; font-weight:600; }
.e0-m .m-photo-btns { display:flex; gap:8px; }
.e0-m .m-photo-btns button { flex:1; border:1px solid #dee2e6; border-radius:10px; padding:11px; font-size:15px; background:#fff; font-family:inherit; }
.e0-m .m-photo-btns button.narrow { flex:none; width:54px; }
.e0-m .m-shot-strip { display:flex; gap:8px; padding:8px 0 0; }
.e0-m .m-shot { position:relative; flex:none; width:54px; height:54px; border-radius:6px; background:linear-gradient(135deg,#e5e7eb,#cbd5e1); }
.e0-m .m-shot span { position:absolute; top:-5px; right:-5px; width:19px; height:19px; border-radius:50%; background:rgba(0,0,0,.75); color:#fff; font-size:13px; line-height:19px; text-align:center; }
.e0-m .m-name-hints { background:#fff; border:1px solid #dee2e6; border-radius:10px; margin-top:4px; overflow:hidden; }
.e0-m .m-name-hint { display:block; width:100%; border:0; background:none; text-align:left; padding:11px 12px; font-size:15px; font-family:inherit; border-bottom:1px solid #f1f3f5; }
.e0-m .m-name-hint:last-child { border-bottom:0; }
.e0-m .m-label { font-size:12.5px; color:#868e96; margin:10px 2px 4px; }

/* ---- ПК «Надходження»: каркас 1:1 з БАЗИ (public/style.css: .subnav, .main-area,
   .detail-*, .stat-*, .status-*, .doc-log-*). Обгорнуто в .e0-b — решту ЦРМ не чіпає. ---- */
.e0-b { display:flex; background:#edeff3; min-height:420px; }
.e0-b .subnav { width:190px; flex-shrink:0; padding:14px 10px; background:#edeff3; border-right:1px solid #dfe3e9; }
.e0-b .subnav button { display:flex; justify-content:space-between; align-items:center; width:100%; text-align:left; background:none; border:none; padding:10px 14px; font-size:13px; color:#444; cursor:pointer; border-radius:8px; margin-bottom:2px; font-family:inherit; }
/* Риска між вкладками надходжень і «Поставками» (Павло 04.11.2026, як у зразку; 1:1 з БАЗИ). */
.e0-b .subnav .subnav-sep { height:1px; background:#dfe2e7; margin:12px 10px; }
.e0-b .subnav button.active { color:#111; font-weight:600; background:#fff; box-shadow:0 1px 3px rgba(16,24,40,.10); }
.e0-b .subnav button .count { background:#eef0f3; border-radius:10px; padding:1px 7px; font-size:11px; color:#666; }
.e0-b .subnav button.active .count { background:#eef5ff; color:#2f8fff; font-weight:700; }
.e0-b .main-area { flex:1; padding:12px 24px 14px; background:#edeff3; min-width:0; }
.e0-b table { background:#fff; box-shadow:0 1px 2px rgba(16,24,40,.06); border-radius:12px; overflow:hidden; }
.e0-b .status-main { font-weight:700; color:#1f2430; font-size:13px; }
.e0-b .status-sub { display:block; font-size:11.5px; margin-top:1px; font-weight:600; white-space:nowrap; }
.e0-b .status-sub.muted { color:#667085; }
.e0-b .status-check { color:#16a34a; }
.e0-b .list-totals { display:flex; gap:18px; font-size:12.5px; color:#667085; padding:10px 4px; }
.e0-b .list-totals b { color:#333; font-weight:600; }
/* У нижньому рядку таблиці (футер) — без власних відступів: футер і так заввишки з кнопку. Інакше «1 документ» приходив
   із відповіддю сервера й роздував футер на 13 px — рядок з лінією підскакував (детектор стрибків, 03.11.2026). */
.analytics-footer .list-totals, .e0-b .analytics-footer .list-totals { padding:0 4px; }
.e0-b .col-right { text-align:right; } .e0-b .col-center { text-align:center; }
.e0-bd { background:#fff; padding:22px 32px; position:relative; }
.e0-bd .detail-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.e0-bd .detail-head h2 { margin:0 0 4px 0; font-size:20px; display:flex; gap:10px; align-items:baseline; }
.e0-bd .detail-head-actions { position:absolute; left:50%; top:22px; transform:translateX(-50%); display:flex; gap:8px; }
.e0-bd .detail-grid { display:flex; gap:24px; }
.e0-bd .detail-side { width:312px; flex-shrink:0; display:flex; flex-direction:column; gap:12px; }
.e0-bd .detail-main { flex:1; min-width:0; }
.e0-bd .detail-log { width:300px; flex-shrink:0; border-left:1px solid #eee; padding-left:20px; }
.e0-bd .card { border:none; border-radius:6px; padding:12px; background:#f2f4f7; box-shadow:none; margin:0; }
.e0-bd .card .label { font-size:12px; color:#667085; }
.e0-bd .card input, .e0-bd .card select, .e0-bd .card textarea { background:#fff; border:1px solid #e4e7ec; border-radius:4px; padding:6px 8px; width:100%; margin-top:4px; font:inherit; font-size:13px; }
.e0-bd .stat-row { display:flex; gap:10px; flex-wrap:wrap; }
.e0-bd .stat-row .stat-box.full { flex:1 1 100%; } /* «Його закупка» комісійного надходження — окремим рядком (Павло 16.11) */
.e0-bd .stat-box { flex:1; background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:10px 12px; }
.e0-bd .stat-box .lbl { font-size:11.5px; color:#667085; }
.e0-bd .stat-box .val { font-size:18px; font-weight:700; margin-top:2px; }
.e0-bd table { background:#fff; }
.e0-bd .col-right { text-align:right; } .e0-bd .col-center { text-align:center; }
.e0-bd .doc-log-list { position:relative; display:flex; flex-direction:column; gap:12px; padding:2px 2px 2px 20px; }
.e0-bd .doc-log-list::before { content:''; position:absolute; left:5px; top:8px; bottom:8px; width:2px; background:#e9ecf1; }
.e0-bd .doc-log-entry { font-size:12.5px; position:relative; }
.e0-bd .doc-log-entry::before { content:''; position:absolute; left:-19px; top:4px; width:8px; height:8px; border-radius:50%; background:#fff; border:2px solid #2f8fff; box-sizing:border-box; }
.e0-bd .doc-log-head { display:flex; align-items:baseline; gap:8px; margin-bottom:2px; }
.e0-bd .doc-log-head b { font-weight:600; color:#1f2430; }
.e0-bd .doc-log-time { margin-left:auto; color:#98a1af; font-size:11.5px; }
.e0-bd .doc-log-msg { color:#444; line-height:1.4; }
.e0-bd .doc-log-day { text-align:center; margin:2px 0; } .e0-bd .doc-log-day span { background:#eef0f3; color:#667085; border-radius:10px; padding:2px 10px; font-size:11px; }

/* ---- телефон: лічильник без слів (вкладка «Приймання», вкладка «Під заказ») ---- */
#denApp .tabbar div { position:relative; }
#denApp .e0-dot { position:absolute; top:3px; left:calc(50% + 6px); background:#dc2626; color:#fff; border-radius:9px; font-size:10.5px; font-weight:700; line-height:16px; min-width:16px; padding:0 4px; text-align:center; }
#denApp .e0-m .m-tabs .e0-dot.in { position:static; display:inline-block; margin-left:4px; line-height:16px; }

/* ---- курс: підпис під полем ціни, як «≈ ₴» під полями буса в логістиці ---- */
.e0-fx { color:#6b7280; font-size:12px; margin-top:3px; }

/* ---- телефон Дена · надходження: решта класів мобільної БАЗИ (mobile.css), 1:1 ----
   .e0-m — усередині екрана; .e0-ml — шар поверх (лист дій, панель вибору, тост), без власних стилів. */
.e0-m .m-error { color:#c92a2a; font-size:13.5px; margin:8px 2px; min-height:18px; }
.e0-m .m-row img, .e0-m .m-row .noimg { width:52px; height:52px; border-radius:8px; object-fit:contain; background:#f1f3f5; flex:none; }
.e0-m .m-row.picked { background:#fff9db; }
.e0-m .m-pick { flex:none; width:24px; height:24px; border-radius:7px; border:2px solid #ced4da; background:#fff; display:flex; align-items:center; justify-content:center; color:#fff; font-size:15px; font-weight:700; }
.e0-m .m-row.picked .m-pick { background:#1c7ed6; border-color:#1c7ed6; }
.e0-m .m-list .m-row { -webkit-touch-callout:none; }
.e0-m .m-list.picking .m-row { user-select:none; -webkit-user-select:none; }
.e0-m .m-row .chev { margin-left:auto; color:#adb5bd; }
.e0-m .m-shot img { width:54px; height:54px; object-fit:cover; border-radius:6px; display:block; }
.e0-m .m-shot span { position:absolute; top:-5px; right:-5px; width:19px; height:19px; border-radius:50%; background:rgba(0,0,0,.75); color:#fff; font-size:13px; line-height:19px; text-align:center; }
.e0-ml .m-actionbar { position:fixed; left:0; right:0; bottom:0; z-index:90; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #e9ecef; box-shadow:0 -6px 18px rgba(0,0,0,.06); }
.e0-ml .m-actionbar .m-btn { display:block; width:100%; border:0; border-radius:12px; padding:15px; font-size:16px; font-weight:600; background:#1c7ed6; color:#fff; font-family:inherit; }
.e0-ml .m-sheet-back { position:fixed; inset:0; z-index:95; background:rgba(0,0,0,.35); }
.e0-ml .m-sheet { position:fixed; left:0; right:0; bottom:0; z-index:96; background:#fff; border-radius:16px 16px 0 0; padding:8px 0 calc(8px + env(safe-area-inset-bottom)); max-height:78vh; overflow-y:auto; -webkit-overflow-scrolling:touch; font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; }
.e0-ml .m-sheet .grip { width:38px; height:4px; border-radius:2px; background:#dee2e6; margin:4px auto 10px; }
.e0-ml .m-sheet h3 { margin:0 0 6px; padding:0 16px; font-size:15px; font-weight:700; }
.e0-ml .m-sheet-note { padding:0 16px 8px; font-size:13px; color:#868e96; }
.e0-ml .m-sheet-act { display:flex; align-items:center; gap:12px; width:100%; border:0; background:none; padding:14px 16px; font-size:15.5px; text-align:left; border-top:1px solid #f1f3f5; cursor:pointer; font-family:inherit; color:#212529; }
.e0-ml .m-sheet-act .ico { font-size:18px; width:24px; text-align:center; flex:none; color:#868e96; }
.e0-ml .m-sheet-act .txt { min-width:0; }
.e0-ml .m-sheet-act .txt i { display:block; font-style:normal; font-size:13px; color:#868e96; margin-top:2px; }
.e0-ml .m-sheet-act.danger { color:#c92a2a; }
.e0-ml .m-sheet-act:active { background:#f8f9fa; }
.e0-ml .m-toast { position:fixed; left:50%; bottom:84px; transform:translateX(-50%); z-index:10095; pointer-events:none; max-width:84vw; padding:11px 16px; border-radius:10px; background:rgba(20,24,31,.92); color:#fff; font-size:14.5px; text-align:center; box-shadow:0 6px 24px rgba(0,0,0,.3); font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif; }

/* ---- камера серією (телефон Дена) — cam-* з mobile.css БАЗИ, фоторежим ---- */
html.e0-cam-open, html.e0-cam-open body { overflow:hidden; height:100%; }
/* iPhone: серія штатною камерою — 1:1 .sys-cam мобільної БАЗИ (mobile.css 433–446), 31.10.2026; z-index 3000 як у .e0-cam. */
.sys-cam { position:fixed; inset:0; z-index:3000; background:#000; color:#fff; display:flex; flex-direction:column; }
.sys-cam-top { display:flex; align-items:center; justify-content:space-between; padding:calc(10px + env(safe-area-inset-top)) 12px 10px; }
.sys-cam-back { width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.12); color:#fff; font-size:24px; line-height:44px; padding:0; }
.sys-cam-count { min-width:30px; height:30px; border-radius:15px; background:#339af0; color:#fff; font-weight:600; font-size:16px; line-height:30px; text-align:center; padding:0 8px; box-sizing:border-box; }
.sys-cam-grid { flex:1; overflow-y:auto; display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; padding:4px; align-content:start; }
.sys-cam-th { aspect-ratio:3 / 4; border:0; padding:0; background:#1a1a1a; border-radius:6px; overflow:hidden; }
.sys-cam-th img { width:100%; height:100%; object-fit:contain; display:block; }
.sys-cam-wait { animation:sys-cam-pulse 1s ease-in-out infinite alternate; }
@keyframes sys-cam-pulse { from { background:#222; } to { background:#444; } }
.sys-cam-bar { display:flex; align-items:center; justify-content:space-between; background:#111; padding:16px 18px calc(16px + env(safe-area-inset-bottom)); }
.sys-cam-side { width:54px; }
.sys-cam-shot { width:76px; height:76px; border-radius:50%; border:4px solid #fff; background:#fff; font-size:30px; line-height:1; padding:0; box-shadow:0 0 0 3px #000 inset; }
.sys-cam-done { width:54px; height:54px; border-radius:50%; border:0; background:#fcc419; color:#222; font-size:26px; font-weight:700; padding:0; }
.e0-cam { position:fixed; inset:0; z-index:3000; background:#000; display:flex; flex-direction:column; touch-action:none; }
.e0-cam-wrap { flex:1; position:relative; overflow:hidden; background:#000; }
.e0-cam video { position:absolute; object-fit:cover; }
.e0-cam-flash { position:absolute; inset:0; background:#000; opacity:0; pointer-events:none; }
.e0-cam-flash.blink { animation:e0-cam-blink .22s ease-out; }
@keyframes e0-cam-blink { 0% { opacity:0; } 15% { opacity:1; } 100% { opacity:0; } }
.e0-cam-corner { position:absolute; top:calc(10px + env(safe-area-inset-top)); width:44px; height:44px; border-radius:50%; border:0; background:rgba(0,0,0,.45); color:#fff; font-size:24px; line-height:44px; text-align:center; padding:0; cursor:pointer; font-family:inherit; }
.e0-cam-corner.tl { left:12px; }
.e0-cam-corner.tr { right:12px; font-size:22px; }
.e0-cam-corner[hidden] { display:none; }
.e0-cam-corner.tr.off { opacity:.6; }
.e0-cam-msg { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); white-space:nowrap; background:rgba(0,0,0,.65); color:#fff; font-size:13px; line-height:24px; padding:0 10px; border-radius:12px; pointer-events:none; }
.e0-cam-msg[hidden] { display:none; }
.e0-cam-bar { display:flex; align-items:center; justify-content:space-between; background:#111; padding:16px 18px calc(16px + env(safe-area-inset-bottom)); }
.e0-cam-thumb { width:54px; height:54px; border-radius:50%; border:2px solid #444; padding:0; background:#222; position:relative; cursor:pointer; }
.e0-cam-thumb img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.e0-cam-thumb span { position:absolute; top:-5px; right:-7px; min-width:22px; height:22px; border-radius:11px; background:#339af0; color:#fff; font-size:13px; font-weight:600; line-height:22px; text-align:center; padding:0 5px; box-sizing:border-box; }
.e0-cam-thumb.empty { visibility:hidden; }
.e0-cam-shot { width:66px; height:66px; border-radius:50%; background:#fff; border:4px solid rgba(255,255,255,.35); cursor:pointer; position:relative; padding:0; }
.e0-cam-shot::before { content:''; position:absolute; inset:-22px -50px; border-radius:50%; }
.e0-cam-shot:active { transform:scale(.9); background:#e9ecef; }
.e0-cam-done { width:56px; height:56px; border-radius:50%; border:0; background:#ffd43b; color:#212529; font-size:26px; font-weight:700; cursor:pointer; padding:0; line-height:56px; }
.e0-cam-done:active { background:#fcc419; }
@media (orientation: landscape) {
  .e0-cam { flex-direction:row; }
  .e0-cam-bar { flex-direction:column-reverse; padding:18px calc(16px + env(safe-area-inset-right)) 18px 16px; }
}

/* ---- телефон Дена · «Сканер»: статус і повідомлення поверх видошукача (як scan-overlay БАЗИ) ---- */
.e0-scan-status { position:absolute; left:12px; right:12px; top:calc(64px + env(safe-area-inset-top)); background:rgba(0,0,0,.6); color:#fff; border-radius:10px; padding:8px 12px; font-size:14.5px; line-height:1.35; text-align:center; }
.e0-scan-status .small, .e0-scan-toast .small { font-size:12.5px; opacity:.85; margin-top:2px; }
.e0-scan-toast { position:absolute; left:12px; right:12px; bottom:14px; border-radius:12px; padding:12px 14px; font-size:15px; line-height:1.35; text-align:center; color:#fff; background:rgba(20,24,31,.92); }
.e0-scan-toast.ok { background:rgba(47,158,68,.95); }
.e0-scan-toast.err { background:rgba(201,42,42,.95); }
.e0-scan-toast[hidden] { display:none; }

/* ---- міні-модалка «Є на складі» (макет v3 екран 11а): під полем коду, без затемнення ---- */
.modal-box.e0-pop { position:fixed; z-index:9999; width:400px; max-width:calc(100vw - 16px); padding:14px 16px; box-shadow:0 8px 28px rgba(15,23,42,.18); border:1px solid #e5e7eb; box-sizing:border-box; }
.e0-pop-h { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; font-size:15px; }
.e0-pop-h .x { color:#6b7280; font-size:18px; line-height:1; cursor:pointer; }
.e0-pop-card { display:flex; gap:10px; align-items:flex-start; padding:8px 10px; border:1px solid #e5e7eb; border-radius:8px; margin-top:6px; background:#fff; cursor:pointer; }
.e0-pop-card.on { border-color:#2563eb; background:#eff6ff; }
.e0-pop-card .t { flex:1; min-width:0; } .e0-pop-card .n { font-weight:600; font-size:13px; } .e0-pop-card .d { color:#6b7280; font-size:12px; }
.e0-pop-card .p { font-weight:700; font-size:14px; white-space:nowrap; }
.e0-pop-f { color:#6b7280; font-size:11.5px; margin-top:8px; }

/* ================= Надходження (ПК) — шари й вікна 1:1 з БАЗИ (public/style.css), 12.10.2026 =================
   .overlay/.detail-panel → .e0-ov/.e0-ov-panel; deal-panel (три колонки з власною прокруткою) → .e0-dpanel. */
.e0-ov { position:fixed; inset:0; background:rgba(15,20,30,.4); display:flex; z-index:9000; }
.e0-ov-panel.e0-bd { background:#fff; width:100%; height:100%; margin:0; padding:22px 32px; overflow-y:auto; box-sizing:border-box; }
.e0-dpanel { display:flex; flex-direction:column; overflow:hidden !important; }
.e0-dpanel .detail-head { flex-shrink:0; }
.e0-dpanel .detail-grid { flex:1; min-height:0; }
.e0-dpanel .detail-side, .e0-dpanel .detail-log { overflow-y:auto; height:100%; }
.e0-dpanel .detail-side { padding-right:8px; }
.e0-dpanel .detail-main { display:flex; flex-direction:column; overflow-y:hidden; height:100%; }
.e0-dpanel .detail-main > .toolbar, .e0-dpanel .detail-main > .addForm { flex:none; }
.e0-dpanel .doc-items-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; }
.e0-dpanel .detail-main thead th { position:sticky; top:0; z-index:3; background:#f9fafb; }
.e0-dpanel .detail-log { width:336px; }
.e0-bd .doc-items-scroll > table { width:100%; table-layout:fixed; }
.e0-bd .doc-items-scroll > table td, .e0-bd .doc-items-scroll > table th { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.e0-bd td.empty { color:#98a2b3; text-align:center; padding:18px; }
.e0-bd .closeX { background:#2f8fff; border:none; color:#fff; font-size:13.5px; font-weight:600; cursor:pointer; padding:8px 16px; border-radius:6px; flex-shrink:0; }
.e0-bd .closeX:hover { background:#1f6fd6; }
.e0-bd .addForm { background:#fff; padding:14px; border-radius:8px; margin-bottom:14px; display:none; gap:8px; flex-wrap:wrap; border:1px solid #e5e7eb; }
.e0-bd .addForm.open { display:flex; }
.e0-bd .addForm .field { flex:1; min-width:120px; display:flex; flex-direction:column; }
.e0-bd .addForm .field label { font-size:12px; color:#667085; margin-bottom:3px; }
.e0-chk { display:flex; align-items:center; gap:6px; font-size:13px; flex:1; min-width:220px; cursor:pointer; }
.e0-chk input { flex:none; width:auto; margin:0; }
.e0-saved { font-size:12.5px; color:#16a34a; margin-top:6px; }
.e0-bd .pick-all-th { width:44px; text-align:center; }
.e0-bd .pick-all-th input, .e0-bd td.pick-cell input { width:20px; height:20px; accent-color:#2f8fff; vertical-align:middle; margin:-1px 0; cursor:pointer; }
.e0-bd td.pick-cell { cursor:pointer; text-align:center; }
.e0-bd tbody tr.row-picked { background:#fefbe8; }
.e0-bd tbody tr.row-picked:hover { background:#fdf6d3; }
.e0-bd .product-link { color:#1f2430; text-decoration:none; }
.e0-bd .product-link[data-view="1"] { color:#2f8fff; }
.e0-bd .product-link:hover { color:#2f8fff; text-decoration:underline; }
.e0-thumb-btn { cursor:zoom-in; display:inline-block; }
.e0-clamp { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.e0-b tr.status-canceled td { color:#98a2b3; }
/* коментар з ✓/✕ (quickComment БАЗИ) */
.e0-bd .qcomment { position:relative; margin:6px 0 0; }
.e0-bd .card .qcomment-input { display:block; width:100%; box-sizing:border-box; resize:none; min-height:36px; padding:8px 10px; border:1px solid #e4e7ec; border-radius:6px; font:inherit; font-size:13px; line-height:1.4; background:#fff; margin:0; overflow-y:hidden; }
.e0-bd .qcomment-input::placeholder { color:#a7aeba; }
.e0-bd .qcomment-input:focus { outline:none; border-color:#c7d7f5; }
.e0-bd .qcomment.is-dirty .qcomment-input { border-color:#2f8fff; padding-bottom:34px; }
.e0-bd .qcomment-actions { position:absolute; right:8px; bottom:6px; display:none; gap:6px; }
.e0-bd .qcomment.is-dirty .qcomment-actions { display:flex; }
.e0-bd .qcomment-btn { width:24px; height:24px; padding:0; border-radius:6px; border:1px solid #e4e7ec; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.e0-bd .qcomment-btn svg { width:15px; height:15px; }
.e0-bd .qcomment-btn.ok { color:#2f8fff; }
.e0-bd .qcomment-btn.ok:hover { background:#eef4ff; border-color:#2f8fff; }
.e0-bd .qcomment-btn.cancel { color:#98a2b3; }
.e0-bd .qcomment-btn.cancel:hover { background:#f3f4f7; border-color:#cfd4dc; }
/* «Підтвердіть скасування проводки» */
.unpost-panel { background:#fff; border-radius:12px; padding:24px 28px; max-width:460px; box-shadow:0 10px 40px rgba(0,0,0,.25); }
.unpost-panel h3 { margin:0 0 10px; font-size:19px; }
.unpost-panel p { margin:0 0 20px; color:#4b5563; font-size:13.5px; line-height:1.5; }
.unpost-actions { display:flex; align-items:center; gap:20px; }
.unpost-close { border:0; background:none; font:inherit; font-weight:600; color:#344054; cursor:pointer; padding:0; }
.unpost-close:hover { text-decoration:underline; }
/* перегляд фото */
.modal-overlay.e0-pv { background:rgba(10,12,16,.85); }
.e0-pv-box { position:relative; max-width:92vw; max-height:90vh; }
.e0-pv-box img { max-width:92vw; max-height:90vh; display:block; border-radius:6px; }
.e0-pv-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.45); color:#fff; border:none; font-size:34px; width:48px; height:64px; cursor:pointer; border-radius:8px; }
.e0-pv-nav.prev { left:8px; }
.e0-pv-nav.next { right:8px; }
.e0-pv-count { position:absolute; bottom:-28px; left:0; right:0; text-align:center; color:#e5e7eb; font-size:13px; }
.e0-pv-x { position:absolute; top:-40px; right:-8px; background:none; border:none; color:#fff; font-size:26px; cursor:pointer; }
/* «+ Додати» (cp-* БАЗИ) */
.e0-cp .cp-tabs { display:flex; gap:8px; }
.e0-cp .cp-tab { padding:8px 16px; border-radius:6px; border:none; background:#eef0f3; color:#555; font-size:13px; cursor:pointer; }
.e0-cp .cp-tab.active { background:#2f8fff; color:#fff; }
.e0-cp .cp-layout { display:flex; gap:24px; margin-top:18px; }
.e0-cp .cp-main { flex:1; min-width:0; }
.e0-cp .cp-side { width:240px; flex-shrink:0; border-left:1px solid #eee; padding-left:20px; }
.e0-cp .cp-counters { display:flex; gap:8px; margin-bottom:14px; }
.e0-cp .cp-counter { flex:1; text-align:center; padding:10px 6px; border:1px solid #e5e7eb; border-radius:8px; font-size:11.5px; color:#888; }
.e0-cp .cp-counter b { display:block; font-size:20px; color:#1f2430; margin-bottom:2px; }
.e0-cp .cp-created-list { display:flex; flex-direction:column; gap:8px; }
.e0-cp .cp-created-item { font-size:13px; padding:8px 10px; border:1px solid #eee; border-radius:6px; }
.e0-cp .cp-empty { text-align:center; color:#999; font-size:12.5px; padding:40px 10px; }
.e0-cp .cp-sec-head { display:flex; align-items:center; gap:16px; margin:0 0 12px; }
.e0-cp .cp-sec-head h3 { font-size:18px; font-weight:500; }
.e0-cp .form-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.e0-cp .form-grid .field.wide { grid-column:1 / -1; }
.e0-cp .form-grid .field { position:relative; background:#fff; border:1px solid #dfe3e9; border-radius:8px; padding:6px 10px; min-height:52px; box-sizing:border-box; display:flex; flex-direction:column; }
.e0-cp .form-grid .field:focus-within { border-color:#2f8fff; }
.e0-cp .form-grid .field label { font-size:12px; color:#667085; margin-bottom:2px; }
.e0-cp .form-grid .field input { border:none; padding:0; background:none; font-size:15px; outline:none; width:100%; }
.e0-cp .form-grid .field:has(.seg-toggle) { border:none; background:none; padding:0; min-height:0; }
.e0-cp .cp-photos { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:16px; }
.e0-cp .cp-photo-add { width:74px; height:74px; border:none; border-radius:8px; background:#eaf2ff; color:#2f8fff; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.e0-cp .cp-photo-add:hover { background:#dbe9ff; }
.e0-cp .cp-photo-add svg { width:30px; height:30px; }
.e0-cp .cp-photo-list { display:flex; gap:8px; flex-wrap:wrap; }
.e0-cp .cp-photo-chip { position:relative; width:74px; height:74px; border-radius:8px; overflow:hidden; border:1px solid #e5e7eb; }
.e0-cp .cp-photo-chip img { width:100%; height:100%; object-fit:cover; display:block; }
.e0-cp .cp-photo-chip button { position:absolute; top:3px; right:3px; width:20px; height:20px; border-radius:50%; border:none; background:rgba(0,0,0,.55); color:#fff; cursor:pointer; line-height:20px; padding:0; }
.e0-bd .seg-toggle { display:flex; border:1px solid #dfe3e8; border-radius:6px; overflow:hidden; width:fit-content; }
.e0-bd .seg-btn { background:#fff; border:none; padding:7px 16px; font-size:13px; cursor:pointer; color:#555; }
.e0-bd .seg-btn + .seg-btn { border-left:1px solid #dfe3e8; }
.e0-bd .seg-btn.active { background:#2f8fff; color:#fff; }
.e0-bd .seg-toggle-sm .seg-btn { padding:3px 9px; font-size:11.5px; }
/* «Товари докладно» */
.e0-idp .items-detail-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.e0-idp .items-detail-headleft { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.e0-idp .items-detail-search { min-width:240px; }
.e0-idp .modeToggle { display:inline-flex; border-radius:6px; background:#f2f4f7; padding:2px; }
.e0-idp .mode-btn { background:none; border:none; padding:4px 12px; height:28px; border-radius:4px; cursor:pointer; color:#667085; font:inherit; font-size:13px; }
.e0-idp .mode-btn.active { background:#fff; color:#121212; box-shadow:0 1px 2px rgba(16,24,40,.12); }
.e0-idp .table-scroll { overflow:auto; max-height:calc(100vh - 210px); border-radius:10px; box-shadow:0 1px 2px rgba(16,24,40,.06); }
/* Підсумок і «Завантажити таблицю (CSV)» — завжди внизу вікна (Павло 30.10), як у БАЗІ: біла картка з таблицею тягнеться
   до низу (.list-card flex), рядки прокручуються всередині неї, смуга під нею. */
.e0-ov-panel.e0-bd.e0-idp { display:flex; flex-direction:column; overflow:hidden; }
.e0-idp #itemsDetailTableWrap { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.e0-idp #itemsDetailTableWrap > .list-card { flex:1 1 auto; min-height:0; background:#fff; border-radius:10px 10px 0 0; }
.e0-idp #itemsDetailTableWrap > .list-card .table-scroll { flex:1 1 auto; min-height:0; max-height:none; box-shadow:none; }
.e0-idp #itemsDetailTableWrap > .analytics-footer { flex-shrink:0; border-radius:0 0 10px 10px; }
.e0-idp .table-scroll table { background:#fff; }
.e0-idp .table-scroll thead th { position:sticky; top:0; z-index:2; background:#f9fafb; white-space:nowrap; }
.e0-idp .table-scroll td { white-space:nowrap; }
/* Рядки й превʼю — як «Товари докладно» БАЗИ (style.css th/td 6px 10px, tbody td 48px, .thumb 38px). */
.e0-idp .table-scroll th { padding:6px 10px; }
.e0-idp .table-scroll tbody td { height:48px; box-sizing:border-box; padding:4px 10px; overflow:hidden; text-overflow:ellipsis; }
.e0-idp .e0-thumb { width:auto; height:38px; min-width:27px; max-width:78px; object-fit:contain !important; margin:0 auto; cursor:zoom-in; }
.e0-idp span.e0-thumb { width:52px; }
.e0-bd span.inline-edit-cell { display:block; min-height:20px; width:100%; box-sizing:border-box; cursor:text; border:1px solid transparent; border-radius:5px; padding:2px 6px; }
.e0-bd span.inline-edit-cell:empty::before { content:'\00a0'; }
.e0-bd span.inline-edit-cell:hover { background:#fff; border-color:#cfe0fb; box-shadow:0 1px 2px rgba(16,24,40,.08); }
td.inline-edit-cell { cursor:text; }
td.inline-edit-cell:hover { background:#f4f8ff; box-shadow:inset 0 0 0 1px #cfe0fb; }
/* ===== ШКАЛА z-index ЦРМ — одна на всю програму (30.10.2026, «скільки раз проходили») =====
   Нове віконце, що вставляється в <body>, — СЮДИ, а не своїм числом у своєму файлі; сторож — overlay-popups.test.js.
     ≤ 1200   віконця й шари звичайних сторінок (рядки, шапки, телефон Дена 90–1000, камера 3000)
     9000+k   шари складу .e0-ov (stOvOpen, k — місце в стопці)
     9100     правка клітинки .inline-edit-pop
     9200     віконця таблиць над шарами: фільтр ▾, «Вид», пірамідки сортування, меню вивантаження
     9300     «привид» стовпця при перетягуванні у «Вид»
     9998     діалоги .modal-overlay (styles.css); панель «Додати ці фото ще в N таких самих» на телефоні .ksh-ov
     9999     «Є на складі» .e0-pop — відкривається й з проценки (вона .modal-overlay)
     10000    блокування за бездіяльністю, Ctrl+F;  10001 підказки цін і повний текст клітинки .cell-tip
     10035    плашка «Є нова версія — оновіть» (канон 4)
     10040    смужка «Не збережено»
     10060–70 перегляд фото Дена (.pv-full), «Видалити фото?» над ним (10065), обрізка (10070)
     10080    «Немає звʼязку / Помилка програми»;  10090 «Сесію призупинено» — поверх усього
     10095    тост Дена — поверх усього, тому кліки пропускає крізь себе (pointer-events:none): не закриває кнопки */
body > .col-filter-popover, body > .col-sort-float, body > .table-export-menu, body > .col-vis-overlay { z-index:9200; }
body > .col-vis-ghost { z-index:9300; }
body > .crm-unsaved { z-index:10040; }
/* «Є нова версія — оновіть» (канон 4): вгорі по центру, під «Не збережено»/вікнами звʼязку — місце 10035 на шкалі. */
/* Під смугою вкладок (≈36 px), на світлому тлі, крупніше — на темній смузі темну плашку не було видно (Павло 03.11.2026). */
body > .crm-newver { position:fixed; top:46px; left:50%; transform:translateX(-50%); z-index:10035; display:flex; align-items:center; gap:12px; background:#1e293b; color:#fff; border-radius:10px; padding:11px 16px; font-size:15px; font-weight:600; box-shadow:0 10px 28px rgba(0,0,0,.3); max-width:calc(100vw - 16px); }
body > .crm-newver .btn { font-size:14px; padding:7px 16px; }
/* Поки «Оновити» чекає збережень — бігуча смужка внизу плашки (04.11.2026). */
body > .crm-newver { overflow:hidden; }
body > .crm-newver.waiting::after { content:''; position:absolute; left:-45%; bottom:0; width:45%; height:4px; background:linear-gradient(90deg,transparent,#2563eb 30%,#2563eb 70%,transparent); animation:crm-nv-run .8s linear infinite; }
@keyframes crm-nv-run { to { left:100%; } }
/* F5 / Ctrl+R з набраним у клітинці — картка по центру, поки зберігаємо (макет 39, 04.11.2026). */
body > .crm-f5 { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:10040; background:#1e293b; color:#fff; border-radius:12px;
  padding:18px 26px 20px; font-size:16px; font-weight:600; box-shadow:0 16px 40px rgba(0,0,0,.35); overflow:hidden; text-align:center; min-width:320px; max-width:calc(100vw - 32px); }
body > .crm-f5 small { display:block; font-weight:400; font-size:13px; color:#cbd5e1; margin-top:4px; }
body > .crm-f5::after { content:''; position:absolute; left:-45%; bottom:0; width:45%; height:4px; background:linear-gradient(90deg,transparent,#2563eb 30%,#2563eb 70%,transparent); animation:crm-nv-run .8s linear infinite; }
.modal-overlay.crm-fail { z-index:10080; }
.modal-overlay.crm-paused { z-index:10090; }
/* «Частки з товару» в картці заказу (30.10.2026): жовта клітинка № рядка комітента, чип у смузі грошей, віконце (9200 — шкала вище). */
.items-card td.item-row-number.com-row { background:#fef3c7; box-shadow:inset 3px 0 0 #f59e0b; }
/* «Без назви» (канон Екселя, 03.11.2026): позиція є (вписано закупку тощо), а назви й коду немає — червоний трикутник у куті номера, як помилка в Екселі. */
.items-card td.item-row-number.noname { position:relative; color:#dc2626; }
.items-card td.item-row-number.noname::after { content:''; position:absolute; left:2px; top:2px; border:5px solid #dc2626; border-right-color:transparent; border-bottom-color:transparent; pointer-events:none; }
.finance-strip .com-shares-chip { border:1px solid #fcd34d; background:#fef3c7; border-radius:6px; padding:2px 8px; cursor:pointer; font:inherit; }
.finance-strip .com-shares-chip:hover { background:#fde68a; }
.com-shares-pop { position:fixed; z-index:9200; background:#fff; border:1px solid #e5e7eb; border-radius:10px; box-shadow:0 10px 28px rgba(0,0,0,.18); padding:10px 12px; font-size:13px; max-width:min(760px, calc(100vw - 16px)); }
.com-shares-pop .t { font-weight:700; margin-bottom:6px; }
.com-shares-pop table { width:100%; border-collapse:collapse; }
.com-shares-pop th, .com-shares-pop td { text-align:left; padding:5px 8px; border-bottom:1px solid #eef0f3; font-size:12.5px; }
.com-shares-pop th { color:#6b7280; font-weight:600; font-size:12px; }
.com-shares-pop .num { text-align:right; white-space:nowrap; }
.com-shares-pop .f { font-size:12px; color:#6b7280; margin-top:6px; }
/* Віконце правки клітинки — 1:1 БАЗА style.css «.inline-edit-pop» (30.10.2026); z-index — шкала вище. */
.inline-edit-pop { position:fixed; z-index:9100; display:flex; flex-direction:column; gap:8px; background:#fff; border-radius:8px; padding:8px;
  box-shadow:0 6px 24px rgba(16,24,40,.18), 0 1px 3px rgba(16,24,40,.1); }
.inline-edit-pop input { box-sizing:border-box; border:1px solid #2f8fff; border-radius:5px; padding:4px 8px; font:inherit; font-size:14px; outline:none; }
.inline-edit-pop button { width:100%; height:36px; background:#2f8fff; color:#fff; border:none; border-radius:4px; cursor:pointer; font:inherit; font-size:12px; font-weight:500; line-height:20px; }
.inline-edit-pop button:hover { background:#1f7ce0; }
.e0-bd .sel-bar { align-items:center; gap:10px; flex-wrap:wrap; }
.e0-bd .sel-clear { border:none; background:none; font:inherit; font-size:14px; font-weight:500; color:#475467; cursor:pointer; padding:6px 10px; border-radius:6px; }
.e0-bd .sel-clear:hover { background:#f2f4f7; color:#1f2430; }
.e0-bd .sel-count { font-size:13px; color:#667085; margin-left:auto; }
.e0-bd .btn.warn { background:#fbbf24; color:#1f2430; border-color:#fbbf24; }
.e0-bd .btn.warn:hover { background:#f59e0b; }
body.e0-ov-open { overflow:hidden; }

/* ---- телефон: повноекранний перегляд фото (mobile.css БАЗИ 77–87, 379–385, 1:1; den-photo-viewer.js) ----
   Над камерою (3000) і під обрізкою (10070) — місце 10060 на шкалі. */
.pv-full { position: fixed; inset: 0; z-index: 10060; background: #000; display: flex; flex-direction: column; }
.pv-bar { display: flex; align-items: center; justify-content: space-between;
          padding: calc(8px + env(safe-area-inset-top)) 6px 8px; color: #fff; }
.pv-btn { border: 0; background: none; color: #fff; font-size: 21px; line-height: 1;
          padding: 10px 14px; cursor: pointer; }
.pv-btn:disabled { opacity: .4; }
.pv-count { font-size: 15px; }
.pv-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch; }
.pv-track img { flex: none; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.pv-track::-webkit-scrollbar { display: none; }
.pv-edit { display: flex; align-items: center; justify-content: center; gap: 28px;
           padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: #000; }
.pv-ebtn { width: 48px; height: 48px; border-radius: 50%; border: 0;
           background: #23262b; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.pv-ebtn.danger { color: #ff6b6b; }
.pv-ebtn:disabled { opacity: .45; }
.pv-ebtn:active { background: #33373d; }
/* «Видалити це фото?» (confirmDialog, .modal-overlay 9998), відкритий з перегляду, — НАД ним. */
body:has(> .pv-full) > .modal-overlay { z-index: 10065; }

/* Блокування документа (style.css БАЗИ .lock-banner) */
.e0-bd .lock-banner { background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; border-radius:6px; padding:8px 12px; font-size:12.5px; margin-bottom:14px; }

/* ✂ Обрізання кадру до відправки (mobile.css БАЗИ .pv-crop, 1:1); над переглядом фото (.pv-full 10060). */
.pv-crop { position: fixed; inset: 0; z-index: 10070; background: #000; display: flex; flex-direction: column; touch-action: none; }
.pv-crop-stage { flex: 1; position: relative; overflow: hidden; }
.pv-crop-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Затемнення поза рамкою — гігантською тінню самої рамки, без чотирьох шторок. */
.pv-crop-frame { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .6); touch-action: none; }
.pv-crop-h { position: absolute; width: 34px; height: 34px; }
.pv-crop-h.tl { left: -10px; top: -10px; border-left: 4px solid #ffd43b; border-top: 4px solid #ffd43b; }
.pv-crop-h.tr { right: -10px; top: -10px; border-right: 4px solid #ffd43b; border-top: 4px solid #ffd43b; }
.pv-crop-h.bl { left: -10px; bottom: -10px; border-left: 4px solid #ffd43b; border-bottom: 4px solid #ffd43b; }
.pv-crop-h.br { right: -10px; bottom: -10px; border-right: 4px solid #ffd43b; border-bottom: 4px solid #ffd43b; }
.pv-crop-bar { display: flex; gap: 10px;
               padding: 12px calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); }
.pv-crop-bar .m-btn { flex: 1; }
/* ↺ ↻ на збереженому фото (mobile.css БАЗИ .pv-edit / .pv-ebtn). */
.e0-pv-edit { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 14px; }
.e0-pv-edit button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #23262b; color: #fff; font-size: 22px; cursor: pointer; }
.e0-pv-edit button:disabled { opacity: .45; }
/* Межа колонки «Історія документа»: ручка на всю висоту сітки картки (1:1 як у БАЗІ). */
.col-resize-handle.doc-log-resize { top: 0; bottom: 0; height: auto; right: auto; width: 6px; }
.col-resize-handle.doc-log-resize:hover { background: rgba(47,143,255,.35); }

/* «Роботу з документом призупинено» — 8 хв без активності (stAcquireLock, 18.10.2026; 1:1 з БАЗОЮ).
   Над усім, у тому числі над діалогами (.modal-overlay 9998): під вікном картка не працює. */
.lock-idle-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(15,20,30,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lock-idle-card { background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(15,20,30,.25); display: flex; gap: 40px; align-items: flex-start; padding: 40px 56px 40px 44px; max-width: 900px; width: 100%; }
.lock-idle-clock { flex: 0 0 auto; padding-top: 4px; }
.lock-idle-body { flex: 1; min-width: 0; }
.lock-idle-title { font-size: 24px; font-weight: 500; color: #111827; line-height: 1.3; margin-bottom: 14px; }
.lock-idle-text { font-size: 16px; color: #4b5563; line-height: 1.55; margin-bottom: 26px; max-width: 540px; }
button.btn.lock-idle-btn { font-size: 16px; padding: 12px 26px; border-radius: 6px; box-shadow: 0 0 0 4px rgba(59,130,246,.18); outline: none; }
@media (max-width: 640px) {
  .lock-idle-card { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 28px 20px; }
}

/* Ціна в $ за курсом (31.10.2026, макет docs/etap0/22-cina-v-dolari.html): поле ціни ₴/$ з «ланцюгом». */
.pr-row { display:flex; gap:6px; align-items:stretch; }
.pr-row input { flex:1; min-width:0; }
.pr-cur { display:inline-flex; border:1px solid #dee2e6; border-radius:8px; overflow:hidden; }
.pr-cur button { border:none; background:#fff; padding:0 11px; font:inherit; font-size:14px; color:#495057; cursor:pointer; }
.pr-cur button.on { background:#1c7ed6; color:#fff; font-weight:600; }
.pr-chain { border:1px solid #dee2e6; background:#fff; border-radius:8px; width:38px; font-size:16px; cursor:pointer; }
.pr-chain.on { background:#e7f5ff; border-color:#74c0fc; }
.pr-uah { font-size:15px; font-weight:600; color:#111827; margin-top:6px; }
.pr-uah small { font-weight:400; color:#6b7280; font-size:12px; }
.pr-sub { color:#6b7280; font-size:11.5px; display:block; }

/* ---- Кнопки й таблиці як у БАЗІ на однакових екранах складу (аудит стилів 31.10, Павло: «де екрани однакові —
   підігнати, принципів ЦРМ не губити»). Лише в областях складу .e0-b (списки, «Товари») і шарах .e0-bd (картки
   надходження/повернення, «Товари докладно», картка-перегляд) — решта ЦРМ (заказы, логістика) без змін.
   Значення — style.css БАЗИ 373–411, 2007–2008, 179. ---- */
:is(.e0-b, .e0-bd) .btn { background:#2f8fff; color:#fff; border:none; padding:6px 12px; border-radius:4px; font-size:14px; font-weight:500; line-height:20px; }
:is(.e0-b, .e0-bd) .btn:hover { background:#1f7ce0; }
:is(.e0-b, .e0-bd) .btn:active { transform:translateY(1px); }
:is(.e0-b, .e0-bd) .btn.small { padding:5px 10px; font-size:12px; line-height:18px; }
/* Другорядна — без рамки, просто текст; сірий фон під курсором (у ЦРМ була суцільна сіра з білим текстом). */
:is(.e0-b, .e0-bd) .btn.secondary { background:transparent; color:#1f2430; border-radius:6px; }
:is(.e0-b, .e0-bd) .btn.secondary:hover { background:#f2f4f7; }
/* Червона: суцільна — лише «Скасувати» в шапці документа; дрібна (small) — бліда, як у БАЗІ. */
:is(.e0-b, .e0-bd) .btn.danger { background:#d92d20; color:#fff; border-radius:6px; }
:is(.e0-b, .e0-bd) .btn.danger:hover { background:#b42318; }
:is(.e0-b, .e0-bd) .btn.danger.small { background:#fee2e2; color:#b91c1c; }
:is(.e0-b, .e0-bd) .btn.danger.small:hover { background:#fecaca; }
/* Жовта (масові дії над позиціями) — з іконками, як «warn sel-act» БАЗИ. */
:is(.e0-b, .e0-bd) .btn.warn { background:#fde047; color:#713f12; border:none; border-radius:6px; font-weight:600; }
:is(.e0-b, .e0-bd) .btn.warn:hover { background:#facc15; }
:is(.e0-b, .e0-bd) .btn.warn.sel-act { display:inline-flex; align-items:center; gap:8px; font-size:14px; padding:6px 12px; line-height:20px; }
:is(.e0-b, .e0-bd) .btn.warn.sel-act svg { width:18px; height:18px; }
/* Шапка таблиць: сіре тло й сірий підпис, як у БАЗІ (у ЦРМ підпис був чорним). */
:is(.e0-b, .e0-bd) table th { background:#f3f4f7; color:#667085; font-size:13px; font-weight:600; }
/* Поле пошуку «Товари докладно» й повернення — звичайне поле БАЗИ, а не голе поле браузера. */
:is(.e0-b, .e0-bd) input.items-detail-search, #stRetAddNo { padding:7px 9px; border:1px solid #d7d9de; border-radius:6px; font-size:13px; font-family:inherit; }
/* Порожнє превʼю — тиха іконка камери, як у БАЗІ й у «Товари» (сірий блок «кричав» про відсутність фото). */
.e0-thumb-empty { display:inline-flex; align-items:center; justify-content:center; width:34px; height:26px; }
.e0-thumb-empty svg { width:18px; height:18px; color:#d0d5dd; }

/* «⚡ Видача зі складу» (Ден, 02.11.2026, макет etap0/28) — renderer/den-issue.js */
.e0-m .di-res { border-radius:9px; padding:8px 10px; font-size:13.5px; margin:8px 0 0; }
.e0-m .di-res.ok { background:#f0fdf4; border:1px solid #86efac; color:#166534; }
.e0-m .di-res.bad { background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; }
.e0-m .di-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #eef0f3; font-size:15px; }
.e0-m .di-row:last-child { border-bottom:0; }
.e0-m .di-sub { font-size:12.5px; color:#1e40af; }
.e0-m .di-lbl { font-size:12px; color:#6b7280; margin-bottom:4px; }
.e0-m .di-x { flex:none; border:0; background:none; color:#9ca3af; font-size:18px; padding:4px 6px; cursor:pointer; }

/* Камера-сканер Дена — приціл, зум, ліхтарик 1:1 з мобільної БАЗИ (mobile.css .scan-frame / .scan-tools), renderer/den-camera.js */
.den-cam-line { position:absolute; left:6%; right:6%; top:50%; height:2px; margin-top:-1px; background:rgba(255,80,80,.9); box-shadow:0 0 6px rgba(255,80,80,.8); border-radius:2px; pointer-events:none; }
.den-cam-line::before { content:''; position:absolute; left:-3%; right:-3%; top:-90px; bottom:-90px; background:rgba(255,255,255,.13); border-radius:10px; }
.den-cam-tools { position:absolute; right:12px; bottom:12px; display:flex; flex-direction:column; gap:10px; }
.den-cam-tool { width:48px; height:48px; border-radius:50%; border:0; background:rgba(0,0,0,.55); color:#fff; font-size:17px; font-weight:600; cursor:pointer; font-family:inherit; display:flex; align-items:center; justify-content:center; padding:0; }
.den-cam-tool[hidden] { display:none; }
.den-cam-tool.active { background:#1c7ed6; }
.den-cam-tool.off span { position:relative; opacity:.85; }
.den-cam-tool.off span::after { content:''; position:absolute; left:50%; top:1px; bottom:1px; width:2px; background:#fff; transform:rotate(40deg); border-radius:1px; }
/* Картка поставки — мініатюрне вікно (Павло 04.11.2026, макет БАЗИ postavka-kartka: рядки «як зліва» — число жирним, сума
   сірим у дужках; хрестик ліворуч від заголовка; кнопки по центру — «Видалити» червона з білим, «Редагувати» синя, «Закрити» текстом). */
.modal-box.ship-card { width:560px; max-width:calc(100vw - 32px); padding:0; overflow:hidden; }
.ship-card .ship-head { display:flex; align-items:center; gap:14px; padding:18px 20px; border-bottom:1px solid #eaecf0; }
.ship-card .ship-head h2 { margin:0; font-size:19px; font-weight:700; }
.ship-card .ship-x { width:30px; height:30px; border:0; background:none; font-size:22px; line-height:1; color:#667085; cursor:pointer; padding:0; }
.ship-card .ship-grid { display:grid; grid-template-columns:130px 1fr; padding:8px 20px 4px; font-size:14.5px; line-height:1.6; }
.ship-card .ship-grid > div { padding:10px 0; border-bottom:1px solid #f0f1f4; }
.ship-card .ship-grid > div:nth-last-child(-n+2) { border-bottom:0; }
.ship-card .ship-grid .k { color:#475467; padding-right:16px; }
.ship-card .muted { color:#8a93a2; }
.ship-card .ship-btns { display:flex; justify-content:center; align-items:center; gap:16px; padding:16px 20px 20px; border-top:1px solid #eaecf0; }
.ship-card .ship-del, .ship-card .ship-edit { border:0; border-radius:6px; padding:10px 22px; font:600 15px/20px inherit; font-family:inherit; color:#fff; cursor:pointer; }
.ship-card .ship-del { background:#dc2626; }
.ship-card .ship-edit { background:#2563eb; }
.ship-card .ship-close { background:none; border:0; padding:10px 14px; font:600 15px/20px inherit; font-family:inherit; color:#1f2430; cursor:pointer; }
.ship-card #shipMsg:not(:empty) { padding:0 20px 14px; }

/* «Нова поставка» (вікно як у зразку, 05.11.2026): «Додати» без назви — бліда, як у зразку. */
#stShipAdd:disabled { opacity:.45; cursor:default; }

/* ===== Групи комплектів одного виду в «Докладніше» (макет 38, Павло 16.11.2026: фіолетовий, текст рядків звичайний) ===== */
.e0-idp .table-scroll tr.inc-kind { background:#f5f3ff; }
.e0-idp .table-scroll tr.inc-kind td { border-top:1px solid #ddd6fe; }
.e0-idp .table-scroll tr.inc-kind td:first-child, .e0-idp .table-scroll tr.inc-kin td:first-child { box-shadow:inset 4px 0 0 #8b5cf6; }
.e0-idp .table-scroll tr.inc-kin { background:#faf8ff; }
.e0-idp .table-scroll tr.inc-gap td { height:12px; padding:0; border-bottom:none; background:#f4f5f7; }
.inc-kh-diff { background:#ede9fe; color:#5b21b6; border-radius:5px; padding:1px 7px; font-weight:700; }
.inc-kh-warn { background:#fff7ed; color:#b45309; border:1px solid #fdba74; border-radius:5px; padding:0 6px; font-size:12px; }
.inc-kin-no { display:block; color:#8b5cf6; font-weight:600; font-size:11px; line-height:1.1; }
/* Кнопка ▾/▴ групи виду (макет 38: сіра плашка, як button.btn.secondary ЦРМ; .e0-bd .btn.secondary тут прозора — тому свій клас).
   Згорнуто — ▾ (є що розгорнути вниз), розгорнуто — ▴ (Павло 16.11). */
.e0-bd button.inc-fold { display:inline-flex; align-items:center; justify-content:center; width:30px; height:26px; padding:0; border:none;
  border-radius:6px; background:#6b7280; color:#fff; font-size:14px; line-height:1; cursor:pointer; }
.e0-bd button.inc-fold:hover { background:#4b5563; }
/* Ті самі групи комплектів в основній таблиці надходження (.doc-items-scroll), 1:1 з «Докладніше» (Павло 16.11). */
.e0-dpanel .doc-items-scroll tr.inc-kind { background:#f5f3ff; }
.e0-dpanel .doc-items-scroll tr.inc-kind td { border-top:1px solid #ddd6fe; }
.e0-dpanel .doc-items-scroll tr.inc-kind td:first-child, .e0-dpanel .doc-items-scroll tr.inc-kin td:first-child { box-shadow:inset 4px 0 0 #8b5cf6; }
.e0-dpanel .doc-items-scroll tr.inc-kin { background:#faf8ff; }
.e0-dpanel .doc-items-scroll tr.inc-gap td { height:12px; padding:0; border-bottom:none; background:#f4f5f7; }
/* «Розгорнути всі / Згорнути всі» (макет 42) — жовта, як .warn БАЗИ (#fde047 / #713f12). */
.e0-bd button.inc-kind-all { background:#fde047; color:#713f12; border:none; padding:6px 12px; border-radius:6px; cursor:pointer; font-size:14px; font-weight:600; line-height:20px; font-family:inherit; }
.e0-bd button.inc-kind-all:hover { background:#facc15; }
.e0-bd button.inc-kind-all { display:inline-grid; } .e0-bd button.inc-kind-all > span { grid-area:1 / 1; text-align:center; } .e0-bd button.inc-kind-all .ka-off { visibility:hidden; }
