/* The customer's screens (public/cust.js, docs/מפרט-ממשק-לקוח.md): leads, the store, the getting-started list, the bell, the
   phone's bottom bar and drawer head. Built on the dashboard template (public/dash/dash.css + forms.css, the .awd tokens). RTL. */
.awd.cu{display:grid;gap:16px;min-width:0}
.awd .cu-title{margin:0 0 2px;flex-wrap:wrap}.awd .cu-title .cu-tt{flex:1;min-width:220px}
.awd .cu-title h2{font-size:30px;font-weight:800;letter-spacing:-.01em;margin:0}.awd .cu-title p{margin:2px 0 0;color:var(--mute)}
.awd .cu-title .sq-ic{width:52px;height:52px;border-radius:16px}.awd .cu-title .sq-ic .ic{width:26px;height:26px}
.awd .ghost .ic,.awd .btn .ic{width:18px;height:18px}
.awd .cu-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.awd .cu-k{padding:14px 16px}.awd .cu-k small{display:block;color:var(--mute);font-size:13px}.awd .cu-k b{font-size:30px;font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums}
.awd .cu-k.warn b{color:var(--warn)}.awd .cu-k.bad b{color:var(--bad)}.awd .cu-k.good b{color:var(--good)}
.awd .cu-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:0 0 14px}
.awd .cu-f{display:flex;flex-direction:column;gap:6px;min-width:0}.awd .cu-f label,.awd .cu-lbl{font-weight:600;font-size:14px;margin:0}
.awd .cu-f select{min-width:170px}.awd .cu-grow{flex:1 1 220px}
.awd .cu-segs{display:flex;border:1px solid #d9dcec;border-radius:12px;overflow:hidden;background:#fff}
.awd .cu-seg{border:0;background:none;padding:10px 14px;cursor:pointer;font-weight:600;color:var(--mute);min-height:44px}
.awd .cu-seg+.cu-seg{border-inline-start:1px solid #d9dcec}.awd .cu-seg.on{background:var(--accs);color:var(--acc)}
.awd .cu-leads{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.awd .cu-lead{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;border-inline-start:4px solid var(--warn)}
.awd .cu-lead.done{border-inline-start-color:var(--good);background:#fbfcfe}
.awd .cu-lh{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}.awd .cu-lh b{font-size:16px}.awd .cu-lh time{margin-inline-start:auto;font-size:13px;white-space:nowrap}
.awd .cu-msg{margin:8px 0 0;white-space:pre-line;font-size:14.5px;overflow-wrap:anywhere}
.awd .cu-ct{margin:6px 0 0;font-size:14px}.awd .cu-note{margin:8px 0 0;font-size:14px;background:#fffbeb;border-radius:10px;padding:6px 10px;overflow-wrap:anywhere}
.awd .cu-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.awd .cu-acts .ghost,.awd .cu-acts .btn{min-height:40px;padding:8px 12px}
.awd .cu-ntbox{margin-top:10px;display:grid;gap:8px}.awd .cu-ntbox label{margin:0}
.awd .cu-empty{text-align:center;padding:26px 10px}.awd .cu-empty b{display:block;font-size:17px;margin-top:6px}.awd .cu-big{width:44px;height:44px;color:var(--acc)}
/* the store */
.awd .cu-store{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.awd .cu-mod{display:flex;flex-direction:column;gap:10px}
.awd .cu-mh{display:flex;gap:12px;align-items:center}.awd .cu-mh h3{font-size:17px;margin:0 0 3px}
.awd .cu-desc{margin:0;font-size:14.5px;color:var(--ink)}
.awd .cu-in{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:13.5px;color:var(--mute)}.awd .cu-in li{display:flex;gap:6px;align-items:flex-start}.awd .cu-in .ic{width:16px;height:16px;color:var(--good);margin-top:3px}
.awd .cu-prs{display:grid;gap:8px;margin-top:auto}
.awd .cu-pr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fcfcff}
.awd .cu-prn{min-width:0;grid-column:1/-1}.awd .cu-prn b{display:block;font-size:14.5px}
.awd .cu-prn small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px}
.awd .cu-prv{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline;min-width:0}.awd .cu-prv>b{font-size:19px;white-space:nowrap}.awd .cu-yr{white-space:nowrap}
.awd .cu-pr>.btn,.awd .cu-pr>.pill,.awd .cu-pr>a{grid-column:2;grid-row:2;align-self:center;white-space:nowrap}
.awd .cu-mf{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:10px}
.awd .cu-fine{font-size:12.5px;margin:6px 0 0}
.awd .cu-bh{margin-bottom:10px}.awd .cu-bsel{max-width:260px;margin-bottom:10px}
.awd .cu-btbl td,.awd .cu-btbl th{white-space:nowrap}.awd .cu-btbl tr.cu-mine{background:var(--accs)}
#asdBundles{margin-top:14px}#asdBundles:empty{display:none}#asdBundles.awd .tbl{font-size:13.5px}
/* the getting-started list */
#startList:empty{display:none}#startList{margin:0 0 16px}
.awd .cu-start .cu-stn{margin-inline-start:auto;font-size:13px;color:var(--mute);font-weight:600}
.awd .cu-prog{height:8px;border-radius:99px;background:#eef0f7;overflow:hidden;margin:-4px 0 12px}.awd .cu-prog i{display:block;height:100%;background:linear-gradient(90deg,#818cf8,#22c55e);border-radius:99px}
.awd .cu-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.awd .cu-steps button{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:start;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer;min-height:56px}
.awd .cu-steps button:hover{border-color:#c7cbf5}.awd .cu-steps .next button{border-color:var(--acc);box-shadow:0 0 0 3px var(--accs)}
.awd .cu-dot{width:22px;height:22px;border-radius:50%;border:2px solid #cfd3e6;flex:none;display:grid;place-items:center;margin-top:1px}.awd .cu-dot .ic{width:14px;height:14px}
.awd .cu-steps .done .cu-dot{background:var(--good);border-color:var(--good);color:#fff}.awd .cu-steps .done b{color:var(--mute);text-decoration:line-through;text-decoration-color:#b8bdd4}
.awd .cu-stt{flex:1;min-width:0}.awd .cu-stt b{display:block;font-size:14.5px}.awd .cu-stt small{display:block;color:var(--mute);font-size:12.5px}
.awd .cu-go{color:var(--acc);font-weight:700}
/* the bell */
.cu-bell{position:relative;flex:none;margin-inline-start:auto;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--card,#fff);color:var(--ink);display:grid;place-items:center;cursor:pointer;padding:0}
.cu-bell .ic{width:21px;height:21px}.cu-bell:hover{border-color:var(--acc)}.cu-bell:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
.cu-bdg{position:absolute;top:-5px;inset-inline-start:-5px;min-width:18px;height:18px;border-radius:9px;background:#dc2626;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px;font-style:normal;line-height:1}
.cu-bdg[hidden]{display:none}
.awd.cu-pop{position:fixed;z-index:120;width:min(400px,calc(100vw - 16px));max-height:min(70vh,560px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 40px rgba(30,33,64,.18);padding:12px}
.awd.cu-pop[hidden]{display:none}
.awd .cu-ph{display:flex;align-items:center;gap:8px;margin-bottom:6px}.awd .cu-ph h2{font-size:16px;flex:1;display:flex;gap:8px;align-items:center}
.awd .cu-sm{padding:6px 10px;font-size:13px}.awd .cu-x{width:36px;height:36px;justify-content:center;padding:0}
.awd.cu-pop ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.awd.cu-pop li button{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:start;border:0;background:none;border-radius:10px;padding:9px 8px;cursor:pointer}
.awd.cu-pop li button:hover,.awd.cu-pop li button:focus-visible{background:#f4f5fb}.awd.cu-pop li .ic{width:18px;height:18px;color:var(--acc);margin-top:2px}
.awd.cu-pop li span{flex:1;min-width:0}.awd.cu-pop li b{display:block;font-size:14px;font-weight:600}.awd.cu-pop li.unread b{font-weight:800}
.awd.cu-pop li small{display:block;color:var(--mute);font-size:12.5px}.awd .cu-un{width:9px;height:9px;border-radius:50%;background:var(--acc);flex:none;margin-top:6px}
.awd .cu-none{padding:14px 4px;margin:0}
.hostedcard{border-color:#86efac!important;background:linear-gradient(180deg,#f0fdf4,var(--card,#fff) 60%)}
/* the drawer head: phones only */
.cu-dh{display:none}
@media (max-width:820px), (orientation: landscape) and (max-height: 500px){
  .cu-dh{display:flex;align-items:center;gap:10px;padding:4px 6px 12px;margin-bottom:6px;border-bottom:1px solid var(--line);min-width:0}
  .cu-dh .shtx a{display:inline}
  .sitebox.cust .cu-bell{width:40px;height:40px}
}
/* the bottom bar: phones (≤ 640px), customers only */
#custBar{display:none}
@media (max-width:640px){
  body.custbar #custBar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;inset-inline:0;bottom:0;z-index:70;background:var(--card,#fff);border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(17,24,39,.08);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
  #custBar button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;border:0;background:none;color:var(--mute);font:inherit;font-size:12px;font-weight:600;border-radius:12px;cursor:pointer;padding:4px 2px}
  #custBar button .ic{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}
  #custBar button.on{color:var(--acc);background:color-mix(in srgb,var(--acc) 10%,transparent)}
  #custBar button:focus-visible{outline:3px solid var(--acc);outline-offset:-3px}
  #custBar .cu-bdg{top:2px;inset-inline-start:auto;inset-inline-end:calc(50% - 22px)}
  body.custbar main{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
  body.custbar .avbtn{bottom:calc(76px + env(safe-area-inset-bottom))}
  body.custbar .avpanel{bottom:calc(134px + env(safe-area-inset-bottom))}
  body.custbar .avhello{bottom:calc(138px + env(safe-area-inset-bottom))}
  body.custbar #toast{bottom:calc(80px + env(safe-area-inset-bottom))}
  body.custbar.menu-open #custBar{z-index:96}
  .awd .cu-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.awd .cu-k{padding:10px}.awd .cu-k b{font-size:22px}.awd .cu-k small{font-size:12px}
  .awd .cu-title h2{font-size:24px}.awd .cu-title .end{width:100%}
  .awd .cu-store{grid-template-columns:minmax(0,1fr)}
  .awd .cu-f select{min-width:0;width:100%}.awd .cu-f{flex:1 1 100%}.awd .cu-filters .btn{width:100%;justify-content:center}
  .awd .cu-segs{width:100%}.awd .cu-seg{flex:1}
  .awd .cu-lh time{margin-inline-start:0;width:100%}
  .awd .cu-pr{grid-template-columns:minmax(0,1fr) auto}
}
/* 15.11.2026: שלב בטיפול, תאריך מעקב והדוח "מאיפה מגיעות העסקאות" (src/leads.js) */
.awd .cu-stage{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0 0;font-size:14px}.awd .cu-stage label{display:flex;align-items:center;gap:6px}
.awd .cu-stage select,.awd .cu-stage input{min-height:38px;border-radius:10px;border:1px solid var(--line,#dfe3ec);padding:0 8px;font:inherit;background:#fff}
.awd .cu-repbox{margin-top:14px}.awd .cu-repbox summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;list-style:none}.awd .cu-repbox summary::-webkit-details-marker{display:none}
.awd .cu-repbox .cu-fold{margin-inline-start:auto;font-size:13px}.awd .cu-repbox .cu-fold::before{content:"פתיחה ▾"}.awd .cu-repbox[open] .cu-fold::before{content:"סגירה ▴"}
.awd .cu-rep{width:100%;border-collapse:collapse;margin-top:12px;font-size:14px}.awd .cu-rep th,.awd .cu-rep td{padding:7px 8px;border-top:1px solid var(--line,#e6e9f0);text-align:start}.awd .cu-rep thead th{color:var(--soft,#5d6478);font-weight:600}
