/* ═══ Sales Hub · „КЛИЕНТИ · ЛЕНТАТА“ (концепция Б, 01.11.2026) — всяка фирма е ред във времето ═══
   Обликът е от одобрения прототип koncepcii-hub-01-11/klienti/B.html, на шрифта на живия Hub (системният, без българските форми —
   както Платното). Всичко е под html.hubNew .hkl; общото (бутони, Б1, етикети, досието, тостът, листът) е в hub-today.css. */
html.hubNew .hkl{--nw:292px;--rh:60px;--spring:cubic-bezier(.34,1.56,.64,1);--spring2:cubic-bezier(.3,1.32,.5,1);--mono:ui-monospace,"SF Mono",Menlo,monospace;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
html.hubNew .hkl .ava{display:inline-flex}
html.hubNew .hkl .kl-tools{display:flex;gap:8px;align-items:center;padding:10px 16px 0;flex-shrink:0;min-width:0;flex-wrap:wrap}
html.hubNew .hkl .kl-tools .seg{overflow-x:auto;scrollbar-width:none}html.hubNew .hkl .kl-tools .seg::-webkit-scrollbar{display:none}
html.hubNew .hkl .seg button .hn-ava{width:16px;height:16px;font-size:8px}
html.hubNew .hkl .srch{position:relative;flex:none}
html.hubNew .hkl .srch input{width:200px;border:1px solid var(--line);border-radius:10px;padding:7px 28px 7px 30px;font:inherit;font-size:13px;background:#fff;outline:none;color:var(--ink);transition:border-color .15s,box-shadow .15s;box-sizing:border-box}
html.hubNew .hkl .srch input:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(232,185,120,.32)}
html.hubNew .hkl .srch>svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);stroke:var(--mut);pointer-events:none}
html.hubNew .hkl .srch .x{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:20px;height:20px;border-radius:6px;display:none;align-items:center;justify-content:center;color:var(--mut)}
html.hubNew .hkl .srch.has .x{display:flex}
html.hubNew .hkl .zdd{position:absolute;top:calc(100% + 6px);left:0;width:340px;max-height:340px;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px -12px rgba(16,27,45,.35);z-index:60;padding:5px;display:none}
html.hubNew .hkl .zdd.on{display:block}
html.hubNew .hkl .zdd .zi{display:flex;gap:8px;align-items:center;padding:6px 8px;border-radius:9px;cursor:pointer;font-size:12px;color:var(--ink)}
html.hubNew .hkl .zdd .zi:hover,html.hubNew .hkl .zdd .zi.k{background:var(--bg2)}
html.hubNew .hkl .zdd .zi b{font-weight:700;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hubNew .hkl .zdd .zi small{font-family:var(--mono);font-size:10px;color:var(--mut);flex:none}
html.hubNew .hkl #klFill{margin-left:auto}
/* дъската */
html.hubNew .hkl .kl-rv{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;margin:10px 16px 0;background:#fff;border:1px solid #dde2ea;border-radius:16px 16px 0 0;position:relative;box-shadow:0 14px 34px -24px rgba(16,27,45,.35);overscroll-behavior:contain}
html.hubNew .hkl .kl-rvi{position:relative;padding-bottom:14px}
html.hubNew .hkl .grid{position:absolute;top:0;bottom:0;left:var(--nw);right:0;pointer-events:none;z-index:0;overflow:hidden}
html.hubNew .hkl .grid .dy{position:absolute;top:0;bottom:0;transition:left .55s var(--spring2),width .55s var(--spring2),opacity .3s}
html.hubNew .hkl .grid .dy.we{background:rgba(143,163,196,.08)}
html.hubNew .hkl .grid .dy.mo{border-left:1px solid #edf0f5}
html.hubNew .hkl .grid .now{position:absolute;top:0;bottom:0;width:2px;background:var(--gold);box-shadow:0 0 0 3px rgba(232,185,120,.18);transition:left .55s var(--spring2);z-index:3}
html.hubNew .hkl .grid .guide{position:absolute;top:0;bottom:0;width:0;border-left:2px dashed var(--navy);opacity:0;transition:opacity .2s;z-index:3}
html.hubNew .hkl .grid .guide.on{opacity:.45}
html.hubNew .hkl .ax{position:sticky;top:0;z-index:12;height:42px;display:flex;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
html.hubNew .hkl .ax .l{width:var(--nw);flex:none;display:flex;align-items:center;padding:0 14px;font-size:9.5px;font-weight:800;letter-spacing:.09em;color:var(--mut);text-transform:uppercase;border-right:1px solid var(--line2);box-sizing:border-box}
html.hubNew .hkl .ax .r{flex:1;position:relative;overflow:hidden;min-width:0}
html.hubNew .hkl .ax .tk{position:absolute;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;font-family:var(--mono);font-size:10px;color:var(--mut);font-weight:600;padding-left:4px;white-space:nowrap;transition:left .55s var(--spring2),opacity .3s}
html.hubNew .hkl .ax .tk b{font-family:var(--sans);font-size:9px;font-weight:800;letter-spacing:.06em;color:#8b95a5}
html.hubNew .hkl .ax .nowl{position:absolute;top:5px;transform:translateX(-50%);background:var(--navy);color:var(--gold);font-size:10px;font-weight:800;border-radius:7px;padding:2px 7px;white-space:nowrap;transition:left .55s var(--spring2);z-index:2;box-shadow:0 3px 10px rgba(28,44,68,.25)}
html.hubNew .hkl .hide{opacity:0!important;pointer-events:none!important}
/* лентите по етап: най-близо до парите е горе */
html.hubNew .hkl .band{display:flex;align-items:center;gap:8px;min-height:30px;padding:0 14px;position:relative;z-index:2;background:linear-gradient(90deg,color-mix(in srgb,var(--sc) 14%,#fff),#fff 60%);border-top:1px solid var(--line2);font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--navy)}
html.hubNew .hkl .band::before{content:"";width:9px;height:9px;border-radius:3px;background:var(--sc);flex:none}
html.hubNew .hkl .band .n{font-family:var(--mono);font-weight:600;color:var(--goldd)}
html.hubNew .hkl .band .h{font-weight:600;letter-spacing:0;color:var(--mut);font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html.hubNew .hkl .band.none{min-height:26px;opacity:.85}
html.hubNew .hkl .band .bb{margin-left:auto;display:flex;gap:6px;flex:none}
html.hubNew .hkl .row{display:flex;height:var(--rh);position:relative;z-index:1;border-top:1px solid #f1f3f7;transition:background .2s;align-items:stretch;gap:0;flex-wrap:nowrap}   /* index.html има глобално .row{align-items:center;gap;wrap} */
html.hubNew .hkl .row:hover{background:rgba(232,185,120,.07)}
html.hubNew .hkl .row.sel{background:rgba(232,185,120,.13)}
html.hubNew .hkl .nc{width:var(--nw);flex:none;padding:7px 12px 6px 14px;cursor:pointer;border-right:1px solid var(--line2);display:flex;flex-direction:column;justify-content:center;min-width:0;background:linear-gradient(90deg,#fff 85%,rgba(255,255,255,.85));box-sizing:border-box}
html.hubNew .hkl .nc .a{display:flex;gap:7px;align-items:center;min-width:0}
html.hubNew .hkl .nc .a b{font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0;color:var(--ink)}
html.hubNew .hkl .nc .m{font-size:10.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
html.hubNew .hkl .m2{display:flex;gap:8px;align-items:center;margin-top:3px;min-width:0}html.hubNew .hkl .m2 .m{margin-top:0;min-width:0;flex:1}
html.hubNew .hkl .pips{display:flex;gap:2px;align-items:center;flex:none}
html.hubNew .hkl .pips i{width:9px;height:5px;border-radius:2px;background:#e5e9f0}
html.hubNew .hkl .pips i.on{background:var(--pc)}
html.hubNew .hkl .ln{flex:1;position:relative;overflow:hidden;min-width:0}
html.hubNew .hkl .thr{position:absolute;top:50%;height:2px;margin-top:-1px;background:color-mix(in srgb,var(--sc) 55%,#fff);border-radius:2px;transition:left .55s var(--spring2),width .55s var(--spring2)}
/* следите */
html.hubNew .hkl .mk{position:absolute;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:99px;background:#fff;box-shadow:0 0 0 2px var(--ec),0 2px 6px -2px rgba(28,44,68,.3);color:var(--ec);display:flex;align-items:center;justify-content:center;transition:left .55s var(--spring2),opacity .3s,transform .25s var(--spring);z-index:2;cursor:default}
html.hubNew .hkl .mk svg{stroke:currentColor}
html.hubNew .hkl .mk:hover{transform:scale(1.25);z-index:6}
html.hubNew .hkl .k-mail{--ec:#7c3aed}html.hubNew .hkl .k-reply{--ec:#2e8b57;background:#ecf8f0}html.hubNew .hkl .k-offer{--ec:#c9822f;background:#fff4e6}html.hubNew .hkl .k-step{--ec:#0ea5a4}html.hubNew .hkl .k-stage{--ec:#1c2c44}html.hubNew .hkl .k-sizes{--ec:#0ea5a4;background:#e6f7f6}html.hubNew .hkl .k-note{--ec:#8fa3c4}html.hubNew .hkl .k-done{--ec:#2e8b57}html.hubNew .hkl .k-pay{--ec:#2e8b57;background:#e2f5e8}html.hubNew .hkl .k-lost{--ec:#c0392b}html.hubNew .hkl .k-demo{--ec:#4f8ef7}
html.hubNew .hkl .edge{position:absolute;top:50%;transform:translateY(-50%);font-size:10px;font-weight:800;color:var(--mut);background:#fff;border:1px solid var(--line);border-radius:7px;padding:1px 6px;z-index:3;white-space:nowrap;font-family:var(--mono)}
html.hubNew .hkl .edge.l{left:4px}html.hubNew .hkl .edge.r{right:6px}html.hubNew .hkl .edge.gold{background:#fff7e8;border-color:#efd3a6;color:#8a5f1f}
/* стъпката = картата от Платното, влачи се по дните */
html.hubNew .hkl .sc{position:absolute;top:9px;height:42px;border-radius:10px;padding:4px 8px 4px 9px;background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(255,255,255,0) 60%),linear-gradient(180deg,#f6f1ff,#efe7fb);border:1px solid #dcd3ee;border-left:4px solid #7c3aed;box-shadow:0 1px 1px rgba(70,50,20,.05),0 4px 10px -6px rgba(70,50,20,.3);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;z-index:4;transition:left .55s var(--spring2),box-shadow .2s,rotate .2s,scale .2s;display:flex;flex-direction:column;justify-content:center;min-width:0;box-sizing:border-box}
html.hubNew .hkl .sc.ro{cursor:pointer;touch-action:auto}
html.hubNew .hkl .sc .d{font-family:var(--mono);font-size:10px;font-weight:600;color:var(--navy);display:flex;gap:5px;align-items:center;white-space:nowrap}
html.hubNew .hkl .sc .d svg{stroke:currentColor;flex:none}
html.hubNew .hkl .sc .d em{font-style:normal;font-family:var(--sans);font-weight:800;font-size:9.5px;margin-left:auto;color:var(--mut)}
html.hubNew .hkl .sc .t{font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
html.hubNew .hkl .sc:hover{box-shadow:0 1px 1px rgba(70,50,20,.05),0 10px 20px -10px rgba(60,40,15,.45)}
html.hubNew .hkl .sc.late{background:linear-gradient(270deg,rgba(214,96,64,.14),rgba(214,96,64,0) 34px),linear-gradient(180deg,#fff,#fbf5f3);border-color:#efc4b8;border-left-color:var(--red)}
html.hubNew .hkl .sc.late .d,html.hubNew .hkl .sc.late .d em{color:var(--red)}
html.hubNew .hkl .sc.nocard{border-left-style:dashed}
html.hubNew .hkl .sc.drag{cursor:grabbing;rotate:-1.5deg;scale:1.04;box-shadow:0 18px 30px -12px rgba(16,27,45,.45);transition:box-shadow .2s,rotate .2s,scale .2s;z-index:9}
html.hubNew .hkl .sc.land{animation:klLand .55s var(--spring2)}
@keyframes klLand{0%{transform:translateY(-14px) scale(.92);opacity:.4}100%{transform:none;opacity:1}}
html.hubNew .hkl .sc.ghost{background:transparent;border:1.5px dashed #c3ccd9;box-shadow:none;color:var(--mut);cursor:pointer;opacity:.0;transition:opacity .2s,left .55s var(--spring2)}
html.hubNew .hkl .row:hover .sc.ghost,html.hubNew .hkl .sc.ghost:focus{opacity:1}
html.hubNew .hkl .sc.ghost .t{color:var(--mut);font-weight:700}
html.hubNew .hkl .late-ln{position:absolute;top:50%;height:0;border-top:2px dashed rgba(192,57,43,.55);transition:left .55s var(--spring2),width .55s var(--spring2);z-index:1}
/* студените и загубените: агрегати, не стотици редове */
html.hubNew .hkl .row.agg .nc{cursor:default}
html.hubNew .hkl .hatch{position:absolute;top:18px;bottom:18px;border-radius:7px;background:repeating-linear-gradient(135deg,#eef1f6 0 5px,#e3e8ef 5px 10px);transition:left .55s var(--spring2),width .55s var(--spring2)}
html.hubNew .hkl .aggb{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:flex;gap:6px;z-index:4}
html.hubNew .hkl .kl-empty{padding:18px 16px;color:var(--mut);font-size:12.5px;text-align:center}
/* подсказката и легендата */
html.hubNew .kl-tt{position:fixed;z-index:990;background:var(--navy);color:#fff;border-radius:10px;padding:7px 10px;font-size:11.5px;line-height:1.4;max-width:280px;box-shadow:0 10px 26px rgba(0,0,0,.3);pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .15s,transform .15s;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-feature-settings:"locl" 0}
html.hubNew .kl-tt.on{opacity:1;transform:none}
html.hubNew .kl-tt small{display:block;font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:10px;color:var(--gold);margin-top:2px}
html.hubNew .hkl .leg{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:10.5px;color:var(--mut);padding:6px 16px 8px;flex:none}
html.hubNew .hkl .leg span{display:inline-flex;gap:4px;align-items:center}
html.hubNew .hkl .leg i{width:10px;height:10px;border-radius:99px;box-shadow:0 0 0 2px var(--ec);background:#fff;display:inline-block}
html.hubNew .hkl .leg svg{stroke:currentColor}
/* списъците в чекмеджето (студените, загубените) */
html.hubNew .kl-list .dwh{display:flex;align-items:center;gap:10px;margin-bottom:10px}
html.hubNew .kl-list .dwh h3{font-size:17px;font-weight:800;color:var(--navy);margin:0;flex:1;min-width:0}
html.hubNew .kl-list .cg{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;overflow:hidden;background:#fff}
html.hubNew .kl-list .cg .h{display:flex;gap:8px;align-items:center;padding:9px 11px;background:var(--bg2);font-size:12px;font-weight:800;color:var(--ink)}
html.hubNew .kl-list .cg .h small{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-weight:600;color:var(--mut);margin-left:auto}
html.hubNew .kl-list .cg .r{display:flex;gap:8px;align-items:center;padding:7px 11px;border-top:1px solid var(--line2);font-size:12.5px;cursor:pointer;color:var(--ink)}
html.hubNew .kl-list .cg .r:hover{background:rgba(232,185,120,.1)}
html.hubNew .kl-list .cg .r span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hubNew .kl-list .cg .r small{color:var(--mut);font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:10.5px;flex:none}
html.hubNew .kl-list .note{font-size:11.5px;color:var(--mut);margin-bottom:10px;line-height:1.5}
/* телефон (390 px): името над реда, 3 седмици, стъпката се влачи с пръст; страницата без хоризонтален скрол */
@media(max-width:760px){
  html.hubNew .hkl{--nw:0px;--rh:86px}
  html.hubNew .hkl .kl-tools{padding:8px 10px 0;gap:6px}
  html.hubNew .hkl .kl-tools>.seg{max-width:100%}
  html.hubNew .hkl .srch{flex:1 1 140px;min-width:0}html.hubNew .hkl .srch input{width:100%;font-size:16px;padding-top:6px;padding-bottom:6px}
  html.hubNew .hkl .zdd{width:calc(100vw - 20px);position:fixed;left:10px}
  html.hubNew .hkl #klFill{margin-left:0}
  html.hubNew .hkl .lbl2{display:none}html.hubNew .hkl .lbl3{display:inline!important}
  html.hubNew .hkl .seg[data-seg="klRng"] button[data-v="10"]{display:none}
  html.hubNew .hkl .kl-rv{margin:8px 10px 0;border-radius:14px 14px 0 0}
  html.hubNew .hkl .ax{height:34px}html.hubNew .hkl .ax .l{display:none}
  html.hubNew .hkl .grid{left:0}
  html.hubNew .hkl .row{flex-direction:column;height:var(--rh)}
  html.hubNew .hkl .nc{width:100%;border-right:0;padding:7px 10px 0;background:transparent;flex:none;justify-content:flex-start}
  html.hubNew .hkl .nc .m{display:none}
  html.hubNew .hkl .m2{position:absolute;right:10px;top:9px;margin:0}html.hubNew .hkl .m2 .m{display:none}
  html.hubNew .hkl .nc .a{padding-right:70px}
  html.hubNew .hkl .ln{flex:1}
  html.hubNew .hkl .sc{top:5px;height:38px;padding:3px 6px 3px 7px}html.hubNew .hkl .sc .d em{display:none}
  html.hubNew .hkl .sc.ghost{opacity:1}
  html.hubNew .hkl .band .h{display:none}
  html.hubNew .hkl .leg{display:none}
  html.hubNew .hkl .aggb .hn-btn{padding:4px 8px}
  html.hubNew .hkl .row.agg .nc .a{padding-right:0}
  html.hubNew .hkl .row.agg .ln .hatch{display:none}
}
