/* jz-sell-v21 — the Sell screen (JZ-BP-SELL-FLOW v2.1, P2). Scoped to #tabSell and its sheets. Behind window.JZ_SELL_V21.
   The shell's fixed top bar and fixed bottom nav are not touched; no bar of our own is fixed to the bottom.
   Jazeel ink #152026 · surfaces #F8FAFC / #FFFFFF · red only as an accent line · no violet · targets >= 44px · inputs >= 16px. */
#tabSell .jzs21{--s21-ink:var(--ink,#152026);--s21-muted:#5B6B76;--s21-line:#E3E8EC;--s21-bg:#F8FAFC;--s21-card:#FFFFFF;--s21-ok:#1F7A4D;--s21-okbg:#EAF6EF;--s21-red:#D93D3D;
  color:var(--s21-ink);padding:12px 16px 24px;max-width:1120px;margin:0 auto;box-sizing:border-box}
#tabSell .jzs21 *{box-sizing:border-box}
/* the sliding strip: the system's own segmented control, one row, scrolls sideways on a narrow screen */
#tabSell .jzs21-strip{display:flex;width:100%;overflow-x:auto;scrollbar-width:none;margin-bottom:12px;background:var(--s21-card);border:1px solid var(--s21-line);border-radius:12px;padding:4px}
#tabSell .jzs21-strip::-webkit-scrollbar{display:none}
#tabSell .jzs21-strip .jz-seg__i,#tabSell .jzs21-mini .jz-seg__i{flex:1;min-height:44px;font-size:16px;font-weight:700;color:var(--s21-ink);background:transparent;border-radius:9px}
#tabSell .jzs21-strip .jz-seg__i.on,#tabSell .jzs21-mini .jz-seg__i.on{background:var(--s21-ink);color:#FFFFFF;box-shadow:none;border:0}   /* P2.1: no red line under the active pill */
#tabSell .jzs21-strip .jz-seg__i,#tabSell .jzs21-mini .jz-seg__i{border:0;box-shadow:none}
/* project chips */
#tabSell .jzs21-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 4px 12px;scroll-padding-inline:16px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
#tabSell .jzs21-chips .jz-chip{scroll-snap-align:start}
#tabSell .jzs21-chips::-webkit-scrollbar{display:none}
#tabSell .jzs21-chips .jz-chip{flex:0 0 auto;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--s21-line);background:var(--s21-card);color:var(--s21-ink);font-size:15px;white-space:nowrap}
#tabSell .jzs21-chips .jz-chip.on{background:var(--s21-ink);border-color:var(--s21-ink);color:#FFFFFF}
/* unit cards */
#tabSell .jzs21-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px}
#tabSell .jzs21-card{background:var(--s21-card);border:1px solid var(--s21-line);border-top:3px solid var(--s21-ink);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}
#tabSell .jzs21-card__top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
#tabSell .jzs21-code{font-size:20px;font-weight:800;letter-spacing:.2px}
#tabSell .jzs21-meta{color:var(--s21-muted);font-size:14px}
#tabSell .jzs21-price{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;background:var(--s21-bg);border-radius:10px;padding:10px 12px}
#tabSell .jzs21-k{display:block;color:var(--s21-muted);font-size:13px}
#tabSell .jzs21-v{display:block;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tabSell .jzs21-basis{margin:0;color:var(--s21-muted);font-size:14px}
#tabSell .jzs21-cta,#tabSell .jzs21-send{min-height:48px;font-size:16px;font-weight:700;width:100%;border-radius:10px}
#tabSell .jz-btn--primary{background:var(--s21-ink);color:#FFFFFF;border:0}
#tabSell .jz-btn--primary:disabled{background:#BDCBD4;color:#3A4A54}
#tabSell .jzs21-empty,#tabSell .jzs21-muted{color:var(--s21-muted);font-size:15px;margin:8px 0}
/* offer: context bar */
#tabSell .jzs21-ctx{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--s21-card);border:1px solid var(--s21-line);border-radius:14px;padding:12px 16px;margin-bottom:12px}
#tabSell .jzs21-ctx>div{display:flex;flex-direction:column;min-width:0}
#tabSell .jzs21-client{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 220px;justify-content:flex-end}
#tabSell .jzs21-client span{color:var(--s21-muted);font-size:14px}
#tabSell .jzs21-client select,.jzs21-sheet select,.jzs21-sheet input{min-height:44px;font-size:16px;border:1px solid var(--s21-line,#E3E8EC);border-radius:10px;padding:0 10px;background:#FFFFFF;color:#152026;max-width:100%;min-width:0}
#tabSell .jzs21-client select{flex:1}
/* the ladder */
#tabSell .jzs21-ladder,#tabSell .jzs21-studio{background:var(--s21-card);border:1px solid var(--s21-line);border-radius:14px;padding:14px 16px;margin-bottom:12px}
#tabSell .jzs21-ladder h3,#tabSell .jzs21-studio h3{margin:0 0 10px;font-size:17px}
#tabSell .jzs21-rungs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#tabSell .jzs21-rung{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:right;min-height:44px;padding:10px 12px;border:1px solid var(--s21-line);border-radius:12px;background:var(--s21-bg);color:var(--s21-ink);cursor:pointer;min-width:0;font:inherit}
#tabSell .jzs21-rung.on{border-color:var(--s21-ink);box-shadow:inset 0 3px 0 var(--s21-ink);background:#FFFFFF}
#tabSell .jzs21-rung__n{font-weight:800;font-size:15px;display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
#tabSell .jzs21-rung__n small{font-weight:400;color:var(--s21-muted);font-size:13px}
#tabSell .jzs21-rung__t{font-size:17px;font-variant-numeric:tabular-nums}
#tabSell .jzs21-rung__m{color:var(--s21-muted);font-size:13px;font-variant-numeric:tabular-nums}
#tabSell .jzs21-save{color:var(--s21-ok);background:var(--s21-okbg);border-radius:8px;padding:2px 8px;font-size:13px;font-weight:700}
/* the studio */
#tabSell .jzs21-studio__head{display:flex;justify-content:space-between;align-items:center}
#tabSell .jzs21-gear{position:relative;min-width:44px;min-height:44px;border:1px solid var(--s21-line);border-radius:10px;background:#FFFFFF;font-size:20px;color:var(--s21-ink);cursor:pointer}
#tabSell .jzs21-dot{position:absolute;top:6px;left:6px;width:9px;height:9px;border-radius:50%;background:var(--s21-red)}
#tabSell .jzs21-sl{display:block;margin:10px 0 14px}
#tabSell .jzs21-sl__h{display:flex;justify-content:space-between;gap:8px;font-size:15px;margin-bottom:6px}
#tabSell .jzs21-sl__h b{font-variant-numeric:tabular-nums}
#tabSell .jzs21-sl input[type=range]{width:100%;min-height:44px;accent-color:var(--s21-ink)}
#tabSell .jzs21-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0;flex-wrap:wrap}
#tabSell .jzs21-mini{display:flex;border:1px solid var(--s21-line);border-radius:10px;padding:3px;background:var(--s21-bg)}
#tabSell .jzs21-step{display:flex;align-items:center;gap:10px}
#tabSell .jzs21-step button{min-width:44px;min-height:44px;border:1px solid var(--s21-line);border-radius:10px;background:#FFFFFF;font-size:20px;color:var(--s21-ink)}
/* the plan card */
#tabSell .jzs21-plan{border-top:1px solid var(--s21-line);margin-top:8px;padding-top:12px}
#tabSell .jzs21-plan[data-net=preview] .jzs21-plan__hero b{color:#5B6B76}
#tabSell .jzs21-plan__hero{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
#tabSell .jzs21-plan__hero span{color:var(--s21-muted)}
#tabSell .jzs21-plan__hero b{font-size:28px;font-weight:800;font-variant-numeric:tabular-nums}
#tabSell .jzs21-ok,#tabSell .jzs21-pre{font-style:normal;font-size:13px;border-radius:8px;padding:2px 8px}
#tabSell .jzs21-ok{color:var(--s21-ok);background:var(--s21-okbg)}
#tabSell .jzs21-pre{color:var(--s21-muted);background:var(--s21-bg)}
#tabSell .jzs21-win{display:flex;gap:16px;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border-radius:10px;background:var(--s21-okbg);color:var(--s21-ok);font-size:15px}
#tabSell .jzs21-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:8px;margin:10px 0 0}
#tabSell .jzs21-kv div{background:var(--s21-bg);border-radius:10px;padding:8px 10px;min-width:0}
#tabSell .jzs21-kv dt{color:var(--s21-muted);font-size:13px}
#tabSell .jzs21-kv dd{margin:2px 0 0;font-weight:700;font-variant-numeric:tabular-nums}
#tabSell .jzs21-adv{margin:10px 0 0;color:#8A5A00;background:#FFF6E5;border-radius:10px;padding:8px 12px;font-size:14px}
#tabSell .jzs21-sendbar{margin-top:4px}
/* sheets (⚙ and send): centred card on desktop, full sheet on a phone; the shell's bottom nav steps aside under jz-modal-open */
.jzs21-sheet{position:fixed;inset:0;z-index:1200;background:rgba(21,32,38,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.jzs21-sheet__box{background:#FFFFFF;color:#152026;border-radius:16px;padding:18px;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;font-family:inherit}
.jzs21-sheet__box h3{margin:0 0 12px;font-size:18px}
.jzs21-f{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;font-size:15px}
.jzs21-f span{color:#5B6B76}
.jzs21-sheet__acts,.jzs21-sendgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.jzs21-sheet .jz-btn{min-height:48px;font-size:16px;border-radius:10px;display:flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #E3E8EC;background:#FFFFFF;color:#152026}
.jzs21-sheet .jz-btn--primary{background:#152026;color:#FFFFFF;border:0}
.jzs21-close{width:100%;margin-top:8px}
.jzs21-img{display:block;width:auto;max-width:100%;height:auto;max-height:46vh;object-fit:contain;margin:0 auto;border-radius:12px;border:1px solid #E3E8EC}   /* P2.1: the actions stay above the fold */
.jzs21-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:96px;z-index:1300;background:#152026;color:#FFFFFF;padding:10px 16px;border-radius:10px;font-size:15px;max-width:calc(100vw - 32px)}
@media (max-width:519px){#tabSell .jzs21-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:767px){
  #tabSell .jzs21{padding:10px 12px 20px}
  #tabSell .jzs21-rungs{grid-template-columns:minmax(0,1fr)}
  #tabSell .jzs21-rung{flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:space-between}
  .jzs21-sheet{align-items:flex-end;padding:0}
  .jzs21-sheet__box{border-radius:16px 16px 0 0;width:100%;max-height:92dvh;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
}
@media (min-width:1024px){
  #tabSell .jzs21-studio{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:8px 24px;align-items:start}
  #tabSell .jzs21-studio__head{grid-column:1/-1}
  #tabSell .jzs21-plan{border-top:0;margin-top:0;padding:12px 16px;background:var(--s21-bg);border-radius:12px;position:sticky;top:84px}
  #tabSell .jzs21-sendbar{max-width:420px;margin-inline-start:auto}
}
/* reduced motion: the ONE shared rule in css/jz-design-b.css covers this screen */
/* P3: offer-first screen, unit picker head, «تغيير الوحدة», and the price slot on the projects screen's unit cards */
#tabSell .jzs21-pickhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 10px}
#tabSell .jzs21-pickhead h3{margin:0;font-size:18px}
#tabSell .jzs21-link{min-height:44px;padding:0 14px;border:1px solid var(--s21-line);border-radius:10px;background:#FFFFFF;color:var(--s21-ink);font-size:15px}
#tabSell .jzs21-ctx__u{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#tabSell .jzs21-change{min-height:44px;padding:0 12px;border:0;background:transparent;color:#11709C;font-size:15px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.jzs21-hubprice{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:6px 0 2px;padding:8px 10px;border-radius:10px;background:#F8FAFC;color:#152026;font-size:14px;line-height:1.4;text-align:start}
.jzs21-hubprice b{font-size:16px;font-weight:800}
.jzs21-hubprice small{flex-basis:100%;color:#5B6B76;font-size:12px}
/* P3: «+ عميل جديد», the case state after opening, «ابدأ الحجز» */
#tabSell .jzs21-newc{min-height:44px;padding:0 14px;border:1px solid var(--s21-ink);border-radius:10px;background:#FFFFFF;color:var(--s21-ink);font-size:15px;font-weight:700;white-space:nowrap}
.jzs21-case{margin-top:10px}
.jzs21-casebtn{width:100%;min-height:48px}
.jzs21-okbox,.jzs21-waitbox{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:12px;font-size:15px}
.jzs21-okbox{background:#EAF6EF;color:#1F7A4D;border:1px solid #CDE9D7}
.jzs21-okbox b{color:#152026}
.jzs21-waitbox{background:#F8FAFC;color:#5B6B76;border:1px solid #E3E8EC}
.jzs21-waitbox b{color:#152026}
.jzs21-okbox .jz-btn--primary{margin-top:4px}
