/* «Пропозиції»: список, як чати в Telegram, і рахунки з таймером (Микола, 13.11.2026; макет — Figma, робоча копія, секція 19,
   джерело — docs/design/v8-src/v8proposals.py, класи .pp-* звідти). Кольори — змінні варіанта 8 (public/v8.css), зони таймера — з макета.
   Розмітку малює public/sales.js; телефон до 1179 px — картка аркушем знизу (планшет — по центру), ПК — список і картка поруч. */
html.v8 #salesHintsBody.pp { gap: 12px; }
html.v8 .pp .pp-i { display: block; flex: none; }
html.v8 .pp button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.v8 .pp button:focus-visible, html.v8 .pp a:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- шапка ---------- */
html.v8 .pp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.v8 .pp-ttl { min-width: 0; }
html.v8 .pp-top h1 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
html.v8 .pp-top .sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
html.v8 .pp-right { display: flex; gap: 8px; align-items: center; flex: none; }
html.v8 .pp-who { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 6px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ink); max-width: 150px; }
html.v8 .pp-who > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v8 .pp-who .a { width: 24px; height: 24px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
html.v8 .pp-who .pp-i { color: var(--ink-3); }
html.v8 .pp-ib { width: 36px; height: 36px; border: 0; padding: 0; border-radius: 18px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: var(--shadow); flex: none; }
html.v8 .pp-ib.sm { width: 30px; height: 30px; border-radius: 15px; background: var(--v8-well); box-shadow: none; color: var(--ink-2); }
html.v8 .pp-search { height: 38px; border-radius: 12px; background: var(--v8-well); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ink-3); min-width: 0; }
html.v8 .pp-right .pp-search { width: 320px; }
/* сильніше за спільне правило полів (public/v8.css: html.v8 input:not(…)) — поле без своєї рамки, рамка — сам рядок пошуку */
html.v8 .pp-search input.pp-q:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { flex: 1; min-width: 0; height: 36px; min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 14px; color: var(--ink); padding: 0; outline: none; -webkit-appearance: none; appearance: none; }
html.v8 .pp-search:focus-within { box-shadow: 0 0 0 2px var(--focus); }
html.v8 .pp-q::placeholder { color: var(--ink-3); }

/* ---------- вкладки й «чиї картки» ---------- */
html.v8 .pp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px -4px; padding: 4px 16px 6px; min-width: 0; }
html.v8 .pp-tabs::-webkit-scrollbar { display: none; }
html.v8 .pp-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 17px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; flex: none; }
html.v8 .pp-tab b { font-weight: 500; color: var(--ink-2); font-size: 12px; }
html.v8 .pp-tab.on { background: var(--ink); color: #fff; box-shadow: none; }
html.v8 .pp-tab.on b { color: #C5CDDA; }
html.v8 .pp-tab .at { width: 7px; height: 7px; border-radius: 4px; background: var(--v8-coral); display: block; }
html.v8 .pp-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--v8-well); gap: 2px; }
html.v8 .pp-seg button { flex: 1 1 auto; min-width: 0; min-height: 32px; padding: 0 8px; border: 0; border-radius: 9px; background: none; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.v8 .pp-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(30, 42, 74, .12); }
html.v8 .pp-host { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ---------- закріплені рядки ---------- */
html.v8 .pp-pin { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); color: var(--ink-3); text-align: left; }
html.v8 .pp-pin .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; }
html.v8 .pp-pt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.v8 .pp-pin .t { font-size: 14px; font-weight: 600; color: var(--ink); }
html.v8 .pp-pin .s { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
html.v8 .pp-pin .s.red { color: var(--v8-coral-ink); font-weight: 500; }
html.v8 .pp-pin .n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--v8-well); color: var(--ink-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; box-sizing: border-box; flex: none; }
html.v8 .pp-pin.blue { background: var(--accent-wash); }
html.v8 .pp-pin.blue .ic { background: var(--accent); color: #fff; }
html.v8 .pp-pin.blue .t, html.v8 .pp-pin.blue .s { color: var(--accent-strong); }
html.v8 .pp-pin.blue .n { background: var(--accent); color: #fff; }
html.v8 .pp-sumline { font-size: 12px; color: var(--ink-2); padding: 0 4px; display: flex; gap: 5px; align-items: baseline; flex-wrap: wrap; }
html.v8 .pp-sumline b { color: var(--ink); font-weight: 600; }
html.v8 .pp-empty { margin: 0; padding: 18px 4px; text-align: center; color: var(--ink-2); font-size: 14px; }

/* ---------- рахунки: лічильники й групи ---------- */
html.v8 .pp-strip { display: flex; gap: 8px; }
html.v8 .pp-sc { flex: 1 1 0; min-width: 0; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
html.v8 .pp-sc .h { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
html.v8 .pp-sc b { font-size: 22px; line-height: 26px; font-weight: 700; }
html.v8 .pp-sc .s { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.v8 .pp .zd { width: 9px; height: 9px; border-radius: 5px; display: block; flex: none; }
html.v8 .pp-gh { display: flex; align-items: center; gap: 8px; padding: 2px 4px 0; font-size: 13px; font-weight: 700; }
html.v8 .pp-gh .c { font-weight: 500; color: var(--ink-2); margin-left: auto; font-size: 12px; white-space: nowrap; }

/* ---------- список і рядок ---------- */
html.v8 .pp-list { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
html.v8 .pp-row { display: flex; align-items: center; position: relative; }
html.v8 .pp-row + .pp-row, html.v8 .pp-gnote + .pp-row { border-top: 1px solid var(--line); }
html.v8 .pp-row.sel { background: #EAF3FE; }
html.v8 .pp-hit { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border: 0; background: none; text-align: left; }
html.v8 .pp-hit:active { background: rgba(30, 42, 74, .04); }
html.v8 .pp-row.c .pp-hit { align-items: center; padding: 9px 6px 9px 14px; }
html.v8 .pp-row.c > .pp-cp { margin-right: 14px; }
html.v8 .pp-av { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex: none; position: relative; }
html.v8 .pp-row.c .pp-av { width: 36px; height: 36px; border-radius: 18px; font-size: 13px; }
html.v8 .pp-av.lg { width: 48px; height: 48px; border-radius: 24px; }
html.v8 .pp-av .un { position: absolute; right: -2px; top: -2px; width: 13px; height: 13px; border-radius: 7px; background: var(--accent); border: 2px solid #fff; display: block; box-sizing: border-box; }
html.v8 .pp-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.v8 .pp-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
html.v8 .pp-nm { font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.v8 .pp-sum { font-size: 14px; font-weight: 700; line-height: 20px; white-space: nowrap; flex: none; }
html.v8 .pp-sum s, html.v8 .pp-amt s { font-weight: 500; color: var(--ink-3); font-size: .85em; }
html.v8 .pp-row.c .pp-sum { font-weight: 500; color: var(--ink-2); font-size: 13px; }
html.v8 .pp-l2 { font-size: 13px; color: var(--ink-2); line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.v8 .pp-l2.f { display: flex; gap: 4px; min-width: 0; }
html.v8 .pp-l2.f .w { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.v8 .pp-l2.f .no { flex: none; }
html.v8 .pp-l3 { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 20px; white-space: nowrap; min-width: 0; }
html.v8 .pp-l3:empty { display: none; }
html.v8 .pp-st { font-weight: 600; flex: none; }
html.v8 .pp-st.late { color: var(--v8-coral-ink); }
html.v8 .pp-st.ok { color: #0A8F62; }
html.v8 .pp-st.wait { color: var(--ink-2); }
html.v8 .pp-do { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.v8 .pp-do.b { color: var(--accent-strong); font-weight: 600; }
html.v8 .pp-mg { margin-left: auto; padding-left: 6px; font-size: 11px; color: var(--ink-3); flex: none; }
html.v8 .pp-tm { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; flex: none; }
html.v8 .pp-ring { display: block; flex: none; }
html.v8 .pp-cp { width: 34px; height: 34px; border: 0; padding: 0; border-radius: 17px; background: var(--accent-wash); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; }
html.v8 .pp-cp.is-done { background: var(--good); color: #fff; }
html.v8 .pp-ghd { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--ink-3); text-align: left; }
html.v8 .pp-ghd .t { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
html.v8 .pp-ghd .n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--v8-well); color: var(--ink-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; box-sizing: border-box; }
html.v8 .pp-chv { display: inline-flex; transition: transform .15s; }
html.v8 .pp-chv.op { transform: rotate(90deg); }
html.v8 .pp-gnote { font-size: 12px; color: var(--ink-2); padding: 0 14px 8px; line-height: 1.4; }

/* ---------- аркуш (телефон і планшет) ---------- */
html.v8 body.pp-lock { overflow: hidden; }
html.v8 .pp-layer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; }
html.v8 .pp-dim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(30, 42, 74, .38); }
html.v8 .pp-sheet { position: absolute; left: 0; right: 0; top: 48px; bottom: 0; background: var(--v8-panel); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; padding: 8px 16px 0; gap: 12px; box-shadow: 0 -8px 32px rgba(30, 42, 74, .18); }
html.v8 .pp-sheet.low { top: auto; max-height: calc(100% - 120px); }
html.v8 .pp-sheet > *, html.v8 .pp-det > * { flex: none; }
html.v8 .pp-grab { width: 36px; height: 5px; border-radius: 3px; background: #C9D1DC; align-self: center; display: block; }
html.v8 .pp-sheet > .pp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 20px; }
html.v8 .pp-sheet.low > .pp-scroll { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
html.v8 .pp-scroll { display: flex; flex-direction: column; gap: 12px; }
html.v8 .pp-scroll > * { flex: none; }
html.v8 .pp-sh { display: flex; align-items: center; gap: 12px; }
html.v8 .pp-shx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.v8 .pp-sh .n { font-size: 20px; font-weight: 700; line-height: 24px; overflow-wrap: anywhere; min-width: 0; }
html.v8 .pp-sh .s { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
html.v8 .pp-nr { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
html.v8 .pp-amt { font-size: 17px; font-weight: 700; white-space: nowrap; flex: none; }
html.v8 .pp-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; border: 0; background: none; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--accent-strong); }
html.v8 .pp-ban { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 18px; }
html.v8 .pp-ban .pp-i { margin-top: 1px; }
html.v8 .pp-ban.r { background: #FBE1DE; color: #A32218; }
html.v8 .pp-ban.y { background: #FFF4C2; color: #6B5200; }
html.v8 .pp-ban.g { background: #D9F5EB; color: #087A54; }
html.v8 .pp-ban.b { background: var(--accent-wash); color: var(--accent-strong); }
html.v8 .pp-ban.n { background: var(--v8-well); color: var(--ink-2); }
html.v8 .pp-banbox:empty { display: none; }
html.v8 .pp-kv { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; }
html.v8 .pp-kv + .pp-kv { border-top: 1px solid var(--line); }
html.v8 .pp-kv .k { font-size: 10px; font-weight: 600; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
html.v8 .pp-kv .v { font-size: 14px; line-height: 19px; overflow-wrap: anywhere; white-space: pre-line; }
html.v8 .pp-kv .v.b { font-weight: 600; }
html.v8 .pp-kv.miss .k { color: var(--v8-coral-ink); }
html.v8 .pp-kv.do .v { font-weight: 600; }
html.v8 .pp-bl { font-size: 10px; font-weight: 600; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; padding: 0 4px; display: block; }
html.v8 .pp-bub { background: var(--accent-wash); border-radius: 18px 18px 6px 18px; padding: 12px 14px; font-size: 14px; line-height: 20px; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
html.v8 .pp-fill { background: none; color: #B26A00; font-weight: 600; padding: 0; }
html.v8 .pp-hint { font-size: 12px; color: var(--ink-2); padding: 0 4px; line-height: 1.4; display: block; margin: 0; }
html.v8 .pp-p { font-size: 14px; line-height: 1.45; color: var(--ink); margin: 0; padding: 0 4px; }
html.v8 .pp-stale { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 17px; color: var(--ink-2); padding: 0 4px; }
html.v8 .pp-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--accent-strong); padding: 2px 4px; text-decoration: none; }
html.v8 .pp-link[disabled] { opacity: .5; }
html.v8 .pp-quiet { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 18px; color: var(--ink-2); padding: 0 4px; }
html.v8 .pp-acts { margin: 0 -16px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--v8-panel); display: flex; gap: 10px; border-top: 1px solid var(--line); }
html.v8 .pp-btn { height: 48px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; flex: none; padding: 0 18px; }
html.v8 .pp-btn.pri { background: var(--accent-strong); color: #fff; flex: 1 1 auto; min-width: 0; }
html.v8 .pp-btn.pri:hover { background: var(--v8-act-hover); }
html.v8 .pp-btn.pri.is-done { background: var(--good); }
html.v8 .pp-btn.sec { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
html.v8 .pp-acts .pp-btn.sec:only-child { flex: 1 1 auto; }
/* великий таймер і шкала «рахунок — 2 доби — 7 діб» */
html.v8 .pp-tc { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 12px; }
html.v8 .pp-tct { display: flex; align-items: center; gap: 14px; }
html.v8 .pp-tc .big { font-size: 26px; font-weight: 700; line-height: 30px; }
html.v8 .pp-tc .cap { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
html.v8 .pp-scalebox { display: flex; flex-direction: column; gap: 6px; }
html.v8 .pp-scale { display: flex; gap: 3px; height: 6px; position: relative; }
html.v8 .pp-scale i { display: block; height: 6px; border-radius: 3px; flex: none; }
html.v8 .pp-scale .g { background: #0CC78A; width: 20%; }
html.v8 .pp-scale .y { background: #F2C400; width: 50%; }
html.v8 .pp-scale .r { background: #E0392B; flex: 1; }
html.v8 .pp-scale .mk { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; background: #fff; border: 3px solid var(--ink); display: block; box-sizing: border-box; }
html.v8 .pp-ticks { position: relative; height: 14px; font-size: 11px; color: var(--ink-3); }
html.v8 .pp-ticks span { position: absolute; top: 0; white-space: nowrap; }
/* «···» */
html.v8 .pp-mr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: none; color: var(--ink-3); text-align: left; }
html.v8 .pp-mr + .pp-mr { border-top: 1px solid var(--line); }
html.v8 .pp-mr .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--v8-well); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
html.v8 .pp-mt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.v8 .pp-mr .t { font-size: 14px; font-weight: 600; color: var(--ink); }
html.v8 .pp-mr .s { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
html.v8 .pp-mr .n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--v8-well); color: var(--ink-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; box-sizing: border-box; flex: none; }
html.v8 .pp-scroll .sl-people { margin: 0; }
html.v8 .pp-toast { z-index: 90; bottom: 92px; bottom: calc(92px + env(safe-area-inset-bottom)); }

/* планшет і вузький ПК: аркуш по центру, до 560 px */
@media (min-width: 768px) {
  html.v8 .pp-sheet, html.v8 .pp-sheet.low { left: 50%; right: auto; width: 560px; max-width: calc(100% - 32px); top: 40px; bottom: 40px; max-height: none; transform: translateX(-50%); border-radius: 24px; }
  html.v8 .pp-sheet.low { top: auto; max-height: calc(100% - 80px); }
  html.v8 .pp-acts { border-radius: 0 0 24px 24px; padding-bottom: 16px; }
  html.v8 .pp-grab { display: none; }
  html.v8 .pp-sheet { padding-top: 16px; }
}
/* ПК: список і картка поруч (сторінка вмикає, коли робочій частині вистачає місця) */
@media (min-width: 1180px) {
  html.v8 .pp-toast { bottom: 16px; }
  html.v8 .pp-pch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
  html.v8 .pp-pch .pp-tabs { margin: 0; padding: 4px 0; flex: 1 1 auto; }
  html.v8 .pp-pch .pp-seg { flex: 0 1 400px; min-width: 0; }
  html.v8 .pp-md { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
  html.v8 .pp-pane { width: 420px; flex: none; display: flex; flex-direction: column; gap: 12px; }
  html.v8 .pp-pane > * { flex: none; }
  html.v8 .pp-det { flex: 1 1 auto; min-width: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 16px;
    position: -webkit-sticky; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: hidden; box-sizing: border-box; }
  /* кнопки дії — завжди видно: гортається лише середина картки */
  html.v8 .pp-det > .pp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0 8px 4px; }
  html.v8 .pp-det.empty { min-height: 200px; align-items: center; justify-content: center; text-align: center; }
  html.v8 .pp-det .pp-tc, html.v8 .pp-det .pp-list { box-shadow: none; border: 1px solid var(--line); }
  html.v8 .pp-det .pp-acts { margin: 0; padding: 0; border: 0; background: none; }
  html.v8 .pp-det .pp-btn.pri { flex: 0 1 auto; padding: 0 24px; }
  html.v8 .pp-det .pp-av.lg { width: 56px; height: 56px; border-radius: 28px; font-size: 17px; }
  html.v8 .pp-det .pp-sh .n { font-size: 24px; line-height: 30px; }
  html.v8 .pp-det .pp-amt { font-size: 24px; }
}
@media (min-width: 1500px) { html.v8 .pp-pane { width: 452px; } }
@media (prefers-reduced-motion: reduce) { html.v8 .pp-chv { transition: none; } }
