/* =====================================================================================
   views-b.css — Sales, New sale, Payments, Chargebacks, Approvals (+ shared deal drawer)
   Prefixes: .vb- shared · .sales- · .sd- deal drawer · .ns- new sale · .pay- · .cb- · .ap-
   ===================================================================================== */

/* ---------- shared: stat strip ---------- */
.vb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vb-stats.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vb-stat {
  position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0;
  padding: 14px 16px 13px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); overflow: hidden;
  transition: border-color var(--t) var(--ease);
}
.vb-stat:hover { border-color: var(--line-strong); }
.vb-stat::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--c, 52 211 153) / .6), transparent);
}
.vb-stat[class*='tone-']::after { opacity: 1; }
.vb-stat-top { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 500; min-width: 0; }
.vb-stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-stat-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); flex-shrink: 0; }
.vb-stat-ico svg { width: 13px; height: 13px; }
.vb-stat[class*='tone-'] .vb-stat-ico { color: rgb(var(--c)); background: rgb(var(--c) / .08); border-color: rgb(var(--c) / .22); }
.vb-stat-val { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-stat.tone-green .vb-stat-val { color: var(--accent-seafoam); }
.vb-stat.tone-red .vb-stat-val { color: var(--danger-ink); }
.vb-stat.tone-amber .vb-stat-val { color: var(--warn-soft); }
.vb-stat-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* scrollable chip rows */
.vb-chips-scroll { flex-wrap: wrap; }

/* ---------- shared: proof thumbnails + lightbox ---------- */
.vb-proof {
  position: relative; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; cursor: zoom-in;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: #050607; padding: 0;
  transition: border-color var(--t-fast), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.vb-proof img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-proof:hover { border-color: rgba(52, 211, 153, .5); transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(52, 211, 153, .45); }
.vb-proof:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vb-proof-xs { width: 30px; height: 30px; border-radius: 8px; }
.vb-proof-sm { width: 42px; height: 42px; }
.vb-proof-lg { width: 100%; height: 170px; border-radius: 12px; }
.vb-proof-pdf { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--accent); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; }
.vb-proof-xs .vb-proof-pdf svg { width: 14px; height: 14px; }
.vb-proof-xs .vb-proof-pdf span { display: none; }
.vb-proof-lg .vb-proof-pdf { font-size: 12px; gap: 6px; }
.vb-proof-lg .vb-proof-pdf svg { width: 28px; height: 28px; }
.vb-proof.is-broken { cursor: default; }
.vb-proof.is-broken .vb-proof-pdf { color: var(--faint); }
.vb-lightbox { display: grid; place-items: center; min-height: 240px; }
.vb-lightbox .proof-thumb { max-height: min(70vh, 720px); }

/* ---------- shared: dropzone ---------- */
.vb-drop-wrap { display: flex; flex-direction: column; gap: 6px; }
.vb-drop { min-height: 118px; }
.vb-drop b { color: var(--text); font-weight: 600; font-size: 13.5px; }
.vb-drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vb-drop-file { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; animation: rise .25s var(--ease) both; }
.vb-drop-file img, .vb-drop-file > .vb-proof-pdf { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-strong); background: #050607; flex-shrink: 0; display: grid; place-items: center; }
.vb-drop-ok { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; color: var(--accent); }
.vb-drop-ok svg { width: 13px; height: 13px; color: var(--accent); }

/* ---------- shared: method picker ---------- */
.vb-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.vb-method {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .025); color: var(--text-2); font-size: 13px; font-weight: 500;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t) var(--ease);
}
.vb-method:hover { border-color: var(--line-hover); color: var(--text); background: rgba(255, 255, 255, .05); }
.vb-method .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.vb-method.is-active { color: var(--text); border-color: color-mix(in srgb, var(--c) 65%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 12%, transparent); }
.vb-method:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shared: payment summary + picker ---------- */
.vb-paysum { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.vb-paysum b { display: block; font-weight: 600; }
.vb-paysum .num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.vb-paysum-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.vb-paysum-ico svg { width: 15px; height: 15px; }
.vb-pick-list { margin: 0 -22px; max-height: min(52vh, 440px); overflow-y: auto; border-top: 1px solid var(--line); }
.vb-pick { width: 100%; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; padding-left: 22px; padding-right: 22px; }
.vb-pick:hover, .vb-pick:focus-visible { background: rgba(52, 211, 153, .05); outline: none; }
.vb-pick .num { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vb-pick > svg { color: var(--faint); flex-shrink: 0; }

/* =====================================================================================
   Sales list
   ===================================================================================== */
.sales-top { gap: 12px; }
.sales-chiprow { min-width: 0; }
.sales-chiprow[hidden] { display: none; }
.sales-filters .select { width: auto; min-width: 140px; }
.sales-search { flex: 0 1 340px; min-width: 220px; }
.sales-range { white-space: nowrap; }
.sales-card { overflow: hidden; }
.sales-offer { max-width: 160px; }
.sales-offer .truncate { display: block; max-width: 160px; }
.sales-team { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sales-setter { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 28px; }
.sales-contract { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sales-plan { font-family: var(--font-sans); font-size: 11.5px; color: var(--muted); letter-spacing: 0; }
.pay-net { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.pay-net .neg { font-size: 11px; }
.pay-fee-sub { display: none; font-size: 11px; color: var(--muted); }
@media (max-width: 1499px) { .pay-col-fee { display: none; } .pay-fee-sub { display: block; } }
@media (max-width: 767px) { .pay-fee-sub { display: block; } }
.tbl td .btn { font-family: var(--font-sans); letter-spacing: 0; }
.sales-coll { display: flex; flex-direction: column; gap: 6px; min-width: 110px; }
.sales-coll .mono { color: var(--text-2); }
.tbl tbody tr.sales-row-pending td:first-child { box-shadow: inset 2px 0 0 var(--warn); }
.tbl tbody tr.sales-row-muted td { opacity: .55; }
.tbl tbody tr.sales-row-muted:hover td { opacity: .8; }

/* =====================================================================================
   Deal drawer
   ===================================================================================== */
.sd-head-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sd-drawer .drawer-head h3 { font-size: 21px; letter-spacing: -.02em; }
.sd-body { display: flex; flex-direction: column; gap: 22px; }
.sd-callout {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-md);
  border: 1px solid rgb(var(--k) / .28); background: linear-gradient(180deg, rgb(var(--k) / .09), rgb(var(--k) / .04));
  --k: 251 191 36;
}
.sd-callout > svg { color: rgb(var(--k)); flex-shrink: 0; width: 18px; height: 18px; }
.sd-callout b { display: block; font-weight: 600; }
.sd-callout span { font-size: 12.5px; color: var(--text-2); }
.sd-callout.info { --k: 96 165 250; }
.sd-callout.accent { --k: 52 211 153; }
.sd-callout.danger { --k: 248 113 113; }
.sd-callout .row-sm { flex-shrink: 0; }

.sd-hero {
  position: relative; padding: 18px 18px 14px; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid rgba(52, 211, 153, .18);
  background: radial-gradient(420px 160px at 0% 0%, rgba(52, 211, 153, .10), transparent 70%), var(--raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  display: flex; flex-direction: column; gap: 14px;
}
.sd-hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sd-hero-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sd-hero-val { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sd-hero-val.pos { color: var(--accent-seafoam); }
.sd-hero-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.sd-hero-foot b { color: var(--text); font-weight: 600; }
.sd-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint-ui); }
.sd-next { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
.sd-next svg { width: 13px; height: 13px; color: var(--accent); }

.sd-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sd-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.sd-sec-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.sd-sec-title svg { color: var(--muted); width: 15px; height: 15px; }
.sd-2col { gap: 22px; align-items: start; }

.sd-tl-wrap { position: relative; }
.sd-tl-wrap.collapsed { max-height: 290px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.sd-tl .tl-item { grid-template-columns: 22px 1fr auto; }
.sd-tl .tl-dot .tiny { font-size: 10px; font-weight: 700; color: var(--muted); }
.sd-tl-amt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sd-tl-amt b { font-weight: 500; font-size: 13px; }
.sd-tl-amt .tiny { width: 100%; text-align: right; order: 3; }

.sd-pays { display: flex; flex-direction: column; gap: 8px; }
.sd-pay {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .02); border: 1px solid var(--line);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.sd-pay:hover { border-color: var(--line-strong); }
.sd-pay.pending { border-style: dashed; border-color: rgba(251, 191, 36, .35); }
.sd-pay.is-hl { animation: sd-hl 2.2s var(--ease) both; }
@keyframes sd-hl { 0%, 40% { border-color: rgba(52, 211, 153, .7); box-shadow: 0 0 0 3px rgba(52, 211, 153, .15); background: rgba(52, 211, 153, .06); } 100% { border-color: var(--line); box-shadow: none; background: rgba(255, 255, 255, .02); } }
.sd-pay-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; margin-top: 1px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.sd-pay-ico svg { width: 15px; height: 15px; }
.sd-pay-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sd-pay-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-pay-top b { font-size: 15px; font-weight: 600; }
.sd-pay-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.sd-pay-note { font-size: 12.5px; color: var(--text-2); }
.sd-subs { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.sd-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; }
.sd-sub svg { width: 13px; height: 13px; flex-shrink: 0; }
.sd-sub .badge { transform: scale(.92); transform-origin: left center; }
.sd-pay > .icon-btn { margin: -2px -4px 0 0; }

.sd-reps { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.sd-rep { display: grid; grid-template-columns: minmax(0, 1fr) 70px 150px; align-items: center; gap: 12px; padding: 11px 14px; }
.sd-rep + .sd-rep { border-top: 1px solid var(--line); }
.sd-rep-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sd-rep-who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-rep-rate { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); text-align: right; }
.sd-rep-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.sd-empty-av { background: rgba(255, 255, 255, .04) !important; color: var(--faint) !important; border: 1px dashed var(--line-hover); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }

.sd-notes { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sd-notes .textarea { width: 100%; }
.sd-note-text { white-space: pre-wrap; color: var(--text-2); font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.sd-notes .row-sm { width: 100%; }

.sd-activity { display: flex; flex-direction: column; }
.sd-act { display: flex; gap: 12px; padding: 8px 0; font-size: 13px; position: relative; }
.sd-act + .sd-act { border-top: 1px solid var(--line); }
.sd-act-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 3px var(--accent-a08); }
.sd-act-dot.audit { background: var(--faint-ui); box-shadow: none; }

/* =====================================================================================
   New sale wizard
   ===================================================================================== */
.ns-modal.modal.xl { max-width: 1040px; }
.ns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; position: relative; }
.ns-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ns-main[hidden], .ns-aside[hidden] { display: none; }
.ns-steps { position: sticky; top: -4px; z-index: 3; padding: 10px 0 12px; margin-top: -6px; background: linear-gradient(180deg, var(--surface) 80%, transparent); }
.ns-steps .step { background: none; border: 0; padding: 0; cursor: default; font: inherit; font-size: 12.5px; }
.ns-steps .step.is-done { cursor: pointer; color: var(--text-2); }
.ns-steps .step.is-done:hover { color: var(--text); }
.ns-steps .step:disabled { opacity: .7; }
.ns-steps .step-sep { position: relative; overflow: hidden; }
.ns-steps .step-sep::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease); }
.ns-steps .step-sep.done::after { transform: scaleX(1); }
.ns-form { min-width: 0; }
.ns-panel { display: flex; flex-direction: column; gap: 18px; }
.ns-panel[hidden] { display: none; }
.ns-panel.in-fwd { animation: ns-in-fwd 300ms var(--ease) both; }
.ns-panel.in-back { animation: ns-in-back 300ms var(--ease) both; }
.ns-panel.shake { animation: ns-shake 380ms var(--ease) both; }
@keyframes ns-in-fwd { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes ns-in-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes ns-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.ns-panel-head { display: flex; align-items: center; gap: 12px; }
.ns-panel-head h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.ns-panel-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--on-accent); background: var(--accent-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px -8px rgba(52, 211, 153, .7); flex-shrink: 0; }
.ns-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ns-client-new { display: flex; flex-direction: column; gap: 14px; }
.ns-client-new[hidden] { display: none; }

/* autocomplete */
.ns-ac { position: relative; }
.ns-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; padding: 6px;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .8); animation: pop-in 160ms var(--ease) both;
}
.ns-suggest[hidden] { display: none; }
.ns-suggest-head { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 6px 8px 4px; font-weight: 600; }
.ns-sug { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; color: inherit; text-align: left; border-radius: 9px; cursor: pointer; }
.ns-sug b { display: block; font-weight: 500; font-size: 13.5px; }
.ns-sug .grow span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-sug:hover, .ns-sug.is-active { background: var(--accent-a08); }
.ns-picked[hidden] { display: none; }
.ns-picked-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid rgba(52, 211, 153, .3); background: linear-gradient(180deg, rgba(52, 211, 153, .08), rgba(52, 211, 153, .03)); animation: rise .25s var(--ease) both; }
.ns-picked-card b { display: block; font-size: 15px; font-weight: 600; }
.ns-picked-card .small { display: block; }
.ns-picked-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11.5px; color: var(--accent); font-weight: 500; }
.ns-picked-tag svg { width: 13px; height: 13px; }

/* plan */
.ns-planbox { padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); animation: rise .25s var(--ease) both; }
.ns-planbox[hidden], .ns-planbox .field[hidden] { display: none; }
.ns-freq-custom { max-width: 180px; }
.ns-freq-custom[hidden] { display: none; }
.ns-plan-hint:empty, .ns-sched:empty { display: none; }
.ns-plan-ok { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--accent); }
.ns-plan-ok svg { width: 14px; height: 14px; }
.ns-sched-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.ns-sched-item { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; min-width: 86px; padding: 9px 11px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }
.ns-sched-item b { font-size: 13px; font-weight: 500; }
.ns-sched-item:first-child { border-color: rgba(52, 211, 153, .35); }
.ns-sched-item.more { justify-content: center; align-items: center; color: var(--muted); font-size: 12px; border-style: dashed; }
.ns-locked { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); background: var(--input-bg); border: 1px solid var(--input-border); }
.ns-net:empty { display: none; }
.ns-netbar { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(52, 211, 153, .05); border: 1px solid rgba(52, 211, 153, .18); font-size: 13px; }
.ns-netbar b { font-size: 16px; color: var(--accent-seafoam); }

/* summary aside */
.ns-aside { position: sticky; top: 0; }
.ns-sum, .ns-review-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-card);
  background: radial-gradient(300px 140px at 0% 0%, rgba(52, 211, 153, .10), transparent 70%), var(--raised);
  border: 1px solid rgba(52, 211, 153, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.ns-sum-client { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ns-sum-client b { font-size: 14.5px; }
.ns-sum-amt { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.ns-sum-amt .display-num { font-size: 32px; }
.ns-sum .kv, .ns-review-card .kv { font-size: 12.5px; gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ns-sum .kv dd svg, .ns-review-card .kv dd svg { width: 13px; height: 13px; vertical-align: -2px; }
.ns-sum .kv dd .pos, .ns-review-card .kv dd .pos { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ns-sum-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding: 9px 11px; border-radius: 10px; }
.ns-sum-status svg { width: 15px; height: 15px; flex-shrink: 0; }
.ns-sum-status.ok { color: var(--accent-seafoam); background: var(--accent-a08); border: 1px solid var(--accent-a25); }
.ns-sum-status.wait { color: var(--warn-soft); background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .25); }
.ns-review:empty { display: none; }
.ns-review { display: none; }

/* success */
.ns-success { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 36px 12px 26px; }
.ns-success[hidden] { display: none; }
.ns-success h3 { font-size: 22px; animation: rise .4s var(--ease) .25s both; }
.ns-success .hero-num { animation: rise .4s var(--ease) .32s both; }
.ns-success p { max-width: 420px; animation: rise .4s var(--ease) .4s both; }
.ns-success-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(52, 211, 153, .18), transparent 70%); animation: ns-pop 520ms var(--ease) both; }
.ns-success-ring svg { width: 64px; height: 64px; }
.ns-success-ring circle { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ns-draw 700ms var(--ease) 100ms forwards; }
.ns-success-ring path { stroke: var(--accent-seafoam); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: ns-draw 420ms var(--ease) 620ms forwards; }
.ns-success-ring.wait { background: radial-gradient(circle, rgba(251, 191, 36, .16), transparent 70%); }
.ns-success-ring.wait circle { stroke: var(--warn); }
.ns-success-ring.wait path { stroke: var(--warn-soft); }
@keyframes ns-draw { to { stroke-dashoffset: 0; } }
@keyframes ns-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.ns-steptxt { white-space: nowrap; }
.ns-inline .card-body { padding-top: 20px; }
.ns-inline-foot { justify-content: flex-end; }
.ns-inline-foot .left { margin-right: auto; }

/* =====================================================================================
   Payments
   ===================================================================================== */
.pay-toolbar .select { width: auto; min-width: 150px; }
.pay-card { overflow: hidden; }
.pay-date { display: flex; flex-direction: column; line-height: 1.25; }
.pay-date b { font-weight: 500; }
.pay-date span { font-size: 11.5px; color: var(--muted); }
.pay-dim { opacity: .5; }
.pay-proof-col { width: 52px; }
.pay-src { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--accent); background: var(--accent-a08); border: 1px solid var(--accent-a25); }
.pay-src svg { width: 13px; height: 13px; }
.tbl tbody tr.pay-row-pending td:first-child { box-shadow: inset 2px 0 0 var(--warn); }

/* =====================================================================================
   Chargebacks
   ===================================================================================== */
.cb-intro { display: flex; flex-direction: column; gap: 2px; }
.cb-intro b { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.cb-pipe { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 26px minmax(0, 1fr); align-items: stretch; gap: 6px; }
.cb-pipe-arrow, .cb-pipe-split, .cb-pipe-or { display: grid; place-items: center; color: var(--faint); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.cb-stage {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; border-radius: var(--r-card); text-align: left; cursor: pointer;
  background: linear-gradient(180deg, rgb(var(--c) / .07), rgb(var(--c) / .02)), var(--surface);
  border: 1px solid rgb(var(--c) / .22); color: inherit; min-width: 0;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.cb-stage:hover { transform: translateY(-1px); border-color: rgb(var(--c) / .45); }
.cb-stage.is-active { border-color: rgb(var(--c) / .75); box-shadow: 0 0 0 3px rgb(var(--c) / .14), 0 16px 40px -22px rgb(var(--c) / .8); }
.cb-stage.is-empty { background: var(--surface); border-color: var(--line); }
.cb-stage.is-empty .cb-stage-amt { color: var(--faint); }
.cb-stage:focus-visible { outline: 2px solid rgb(var(--c)); outline-offset: 2px; }
.cb-stage-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); font-weight: 500; min-width: 0; }
.cb-stage-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-stage-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: rgb(var(--c)); background: rgb(var(--c) / .12); flex-shrink: 0; }
.cb-stage-ico svg { width: 13px; height: 13px; }
.cb-stage-n { font-family: var(--font-mono); font-size: 12px; padding: 1px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); color: var(--text); }
.cb-stage-amt { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cb-stage-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.cb-stage-bar span { display: block; height: 100%; background: rgb(var(--c)); border-radius: 3px; animation: cb-grow 700ms var(--ease) both; transform-origin: left; }
@keyframes cb-grow { from { transform: scaleX(0); } }
.cb-count { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: rgb(var(--c)); background: rgb(var(--c) / .1); border: 1px solid rgb(var(--c) / .28); }
.cb-count svg { width: 12px; height: 12px; }
.cb-count.tone-gray { color: var(--text-2); }
.cb-count.urgent { animation: cb-urgent 2s ease-in-out infinite; }
@keyframes cb-urgent { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--c) / .35); } 50% { box-shadow: 0 0 0 4px rgb(var(--c) / 0); } }
.cb-amt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.cb-amt b { font-weight: 500; }
.tbl tbody tr.cb-row-open td:first-child { box-shadow: inset 2px 0 0 var(--danger); }
.cb-open-pill { background: rgba(248, 113, 113, .14); color: var(--danger-ink); }
.cb-note { display: inline-block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* =====================================================================================
   Approvals
   ===================================================================================== */
.ap-list { display: flex; flex-direction: column; gap: 14px; }
.ap-card { overflow: hidden; transition: border-color var(--t) var(--ease), opacity 380ms var(--ease), transform 380ms var(--ease), max-height 420ms var(--ease), margin 420ms var(--ease); max-height: 1200px; }
.ap-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--warn); opacity: .8; }
.ap-card.ap-claims::before { background: var(--info); }
.ap-card.ap-payments::before { background: var(--accent); }
.ap-card.ap-skel::before { display: none; }
.ap-card.ap-out-ok { opacity: 0; transform: translateX(28px) scale(.99); border-color: rgba(52, 211, 153, .6); }
.ap-card.ap-out-no { opacity: 0; transform: translateX(-28px) scale(.99); border-color: rgba(248, 113, 113, .5); }
.ap-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; padding: 18px 20px 16px 22px; }
.ap-skel .ap-body, .ap-skel { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; padding: 18px 20px; }
.ap-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ap-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ap-who { display: flex; align-items: center; gap: 9px; font-size: 13px; min-width: 0; }
.ap-who b { font-weight: 600; }
.ap-type { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ap-type svg { width: 13px; height: 13px; color: var(--accent); }
.ap-headline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ap-headline h3 { font-size: 20px; letter-spacing: -.02em; }
.ap-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ap-amount b { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ap-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.ap-fact { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ap-fact > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.ap-fact > div { font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ap-note { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.ap-note svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.ap-proof-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ap-noproof { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 170px; border-radius: 12px; border: 1px dashed var(--line-hover); color: var(--muted); text-align: center; padding: 12px; background: rgba(255, 255, 255, .012); }
.ap-noproof svg { width: 20px; height: 20px; color: var(--warn); }
.ap-noproof b { font-size: 13px; color: var(--text-2); font-weight: 500; }
.ap-noproof.tone-claim { border-style: solid; border-color: rgba(52, 211, 153, .22); background: var(--accent-a08); }
.ap-noproof.tone-claim svg { color: var(--accent); }
.ap-proof-cap { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 2px; }
.ap-proof-cap:hover { color: var(--text); }
.ap-proof-cap svg { width: 13px; height: 13px; }
.ap-actions { display: flex; align-items: center; gap: 8px; padding: 12px 20px 12px 22px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.ap-summary .mono { color: var(--text); }
.ap-empty { padding: 30px 12px; }

/* =====================================================================================
   Responsive
   ===================================================================================== */
@media (max-width: 1365px) { .sales-col-src { display: none; } .pay-card .cell-main b, .pay-card .cell-main > div > span:not(.avatar) { max-width: 170px; } }
/* 1024-1100px: the sales table must fit its card (no sideways scroll clipping the Closed column) */
@media (max-width: 1100px) and (min-width: 768px) {
  .tbl th, .tbl td { padding-left: 12px; padding-right: 12px; }
  .tbl td.primary .cell-main b, .tbl td.primary .cell-main > div > span:not(.avatar) { max-width: 160px; }
  .sales-coll { min-width: 84px; }
}
@media (max-width: 1279px) {
  .vb-stats.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ns { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .cb-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-pipe-arrow, .cb-pipe-split, .cb-pipe-or { display: none; }
}
@media (max-width: 1023px) {
  .vb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-stats.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns { grid-template-columns: minmax(0, 1fr); }
  .ns-aside { display: none; }
  .ns-review { display: block; }
  .ap-body, .ap-skel { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 767px) {
  .vb-stats, .vb-stats.cols-5 { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--page-pad)); padding: 0 var(--page-pad) 2px; scroll-padding: 0 var(--page-pad); }
  .vb-stats::-webkit-scrollbar { display: none; }
  .vb-stats > .vb-stat { flex: 0 0 calc(50% - 5px); min-width: 150px; scroll-snap-align: start; }
  .vb-stat { padding: 12px 13px 11px; gap: 6px; }
  .vb-stat-val { font-size: 20px; }
  .vb-stat-ico { display: none; }
  .vb-chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--page-pad)); padding: 0 var(--page-pad); }
  .vb-chips-scroll::-webkit-scrollbar { display: none; }
  .vb-chips-scroll .chip { flex-shrink: 0; }
  .vb-pick-list { margin: 0 -16px; }
  .vb-pick { padding-left: 16px; padding-right: 16px; }
  .sales-search { flex: 1 1 100%; min-width: 0; }
  .sales-filters .select { flex: 1; min-width: 0; }
  .pay-toolbar .select { flex: 1 1 130px; min-width: 130px; }
  .sales-range, .pay-range { display: none; }
  .pay-toolbar .search { flex: 1 1 100%; }
  .pay-toolbar .seg { flex: 1 1 auto; }
  .pay-toolbar .seg svg { display: none; }
  .ap-noproof { height: auto; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px 14px; text-align: left; }
  .ap-noproof .tiny { margin-left: auto; }
  .sales-coll { min-width: 0; width: 55%; align-items: flex-end; }
  .sales-coll .progress { width: 100%; }
  .tbl.cards td .person { justify-content: flex-end; }
  .sales-team { align-items: flex-end; }
  .sales-setter { padding-left: 0; }
  .sales-col-src { display: revert; }
  .tbl.cards tr.sales-row-pending, .tbl.cards tr.pay-row-pending { border-left: 2px solid var(--warn); }
  .tbl.cards tr.cb-row-open { border-left: 2px solid var(--danger); }
  .tbl.cards tr.sales-row-pending td:first-child, .tbl.cards tr.pay-row-pending td:first-child, .tbl.cards tr.cb-row-open td:first-child { box-shadow: none; }
  .tbl.cards td.pay-proof-col { width: 100%; }
  .pay-card .tbl.cards tbody tr { display: flex; flex-direction: column; }
  .pay-card .tbl.cards tbody td.primary { order: -1; }
  .pay-card .tbl.cards tbody td.tbl-empty { order: 0; }

  .sd-drawer .drawer-head h3 { font-size: 19px; }
  .sd-hero { padding: 14px; }
  .sd-hero-val { font-size: 19px; }
  .sd-hero-grid { gap: 8px; }
  .sd-callout { flex-wrap: wrap; }
  .sd-callout .row-sm { width: 100%; justify-content: flex-end; }
  .sd-rep { grid-template-columns: minmax(0, 1fr) auto; }
  .sd-rep-rate { display: none; }
  .sd-2col { grid-template-columns: minmax(0, 1fr); }
  .sd-tl .tl-item { grid-template-columns: 22px 1fr; }
  .sd-tl-amt { grid-column: 2; justify-content: flex-start; }
  .sd-tl-amt .tiny { width: auto; text-align: left; order: 0; }

  .ns-steps .step-label { display: none; }
  .ns-steps .step.is-active .step-label { display: inline; }
  .ns-steps { top: -4px; }
  .ns-panel-head h4 { font-size: 16px; }
  .ns-panel-n { width: 30px; height: 30px; font-size: 13px; }
  .ns-planbox { padding: 12px; }
  .vb-method { height: 36px; }
  .ns-steptxt { display: none; }
  .ns-success { padding: 24px 4px 12px; }

  .cb-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cb-stage { padding: 12px; }
  .cb-stage-amt { font-size: 18px; }
  .cb-actions { width: 100%; }
  .cb-actions .btn { flex: 1; }

  .ap-body, .ap-skel { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .ap-headline h3 { font-size: 18px; }
  .ap-amount b { font-size: 24px; }
  .ap-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-proof-col { order: 2; }
  .vb-proof-lg { height: 150px; }
  .ap-actions { padding: 12px 16px; flex-wrap: wrap; }
  .ap-actions .grow { display: none; }
  .ap-actions .btn { flex: 1; }
  .ap-actions .btn-ghost { flex: 0 0 auto; }
  .ap-actions .btn-ghost span:not(.spin) { display: none; }
  .ap-actions { flex-wrap: nowrap; }
  .ap-amount { align-items: flex-start; }
  .ap-toolbar .seg { width: 100%; }
  .ap-toolbar .seg-btn { flex: 1; }
  .ap-summary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ns-panel.in-fwd, .ns-panel.in-back, .ns-panel.shake, .sd-pay.is-hl, .cb-count.urgent, .cb-stage-bar span,
  .ns-success-ring, .ns-success-ring circle, .ns-success-ring path, .ns-success h3, .ns-success .hero-num, .ns-success p { animation: none !important; }
  .ns-success-ring circle, .ns-success-ring path { stroke-dashoffset: 0; }
  .ap-card { transition: none; }
}

/* ---------- Lumino import modal ---------- */
.lum-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 36px 20px; text-align: center;
  border: 1.5px dashed rgba(255,255,255,.12); border-radius: 14px; background: rgba(209,108,224,.03); color: inherit; cursor: pointer;
  transition: border-color .2s var(--ease, ease), background .2s var(--ease, ease); }
.lum-drop:hover, .lum-drop.is-over, .lum-drop:focus-visible { border-color: rgba(209,108,224,.55); background: rgba(209,108,224,.07); }
.lum-drop .small { max-width: 440px; }
.lum-drop-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #e6a3ef;
  background: rgba(209,108,224,.12); border: 1px solid rgba(209,108,224,.3); margin-bottom: 4px; }
.lum-err { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: #F87171; font-size: 13px; }
.lum-preview { display: flex; flex-direction: column; gap: 14px; }
.lum-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lum-file .badge { margin-left: auto; }
.lum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06); border-radius: 12px; overflow: hidden; }
.lum-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: #0D0F12; }
.lum-stat b { font-size: 17px; }
.lum-stat b.pos { color: #34D399; } .lum-stat b.neg { color: #F87171; }
.lum-preview > p.small { display: flex; gap: 6px; align-items: center; margin: 0; }
.lum-warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; color: #fde68a;
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.28); }
.lum-warn > svg { flex: none; margin-top: 2px; color: #fbbf24; }
.lum-warn .small { color: rgba(253,230,138,.8); margin-top: 3px; }
.lum-list { max-height: 260px; overflow: auto; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; }
.lum-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.lum-row:last-child { border-bottom: 0; }
.lum-row.is-matched { opacity: .6; }
.lum-client { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  .lum-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lum-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .lum-row > :nth-child(3) { display: none; }
}

/* plan editor + merge */
.vb-plan-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 34px;
  padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.vb-plan-total:empty { display: none; }
.vb-plan-total .pos { color: #34D399; display: inline-flex; align-items: center; gap: 4px; }
.vb-merge-list { display: grid; gap: 8px; }
.vb-merge-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); transition: border-color .15s, background .15s; }
.vb-merge-row:hover { background: rgba(255,255,255,.04); }
.vb-merge-row.is-on { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.06); }
.vb-merge-row input { accent-color: #34D399; }
.vb-merge-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* =================================== Inbox =================================== */
.ix-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ix-intro { margin: 0; font-size: 13.5px; }
.ix-list { display: grid; gap: 16px; }
.ix-card { padding: 0; overflow: hidden; }
.ix-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ix-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ix-who b { font-family: var(--font-display, inherit); font-size: 16px; }
.ix-amt { display: flex; align-items: center; gap: 10px; }
.ix-amt b { font-family: var(--font-display, inherit); font-size: 22px; color: #fff; }
.ix-cols { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(300px, 1.1fr); }
.ix-col { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ix-col + .ix-col { border-left: 1px solid rgba(255,255,255,.06); }
.ix-sort { background: rgba(52,211,153,.025); }
.ix-label { display: flex; align-items: center; gap: 6px; font: 600 11px/1 var(--font-body, inherit); letter-spacing: .07em; text-transform: uppercase; color: var(--muted, #8b8f96); }
.ix-pay { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); }
.ix-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.ix-facts dt { color: var(--muted, #8b8f96); }
.ix-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ix-calls { display: grid; gap: 6px; }
.ix-call { display: flex; align-items: center; gap: 8px; }
.ix-call .small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-dot { width: 7px; height: 7px; border-radius: 50%; background: #4F9DFF; flex: none; }
.ix-dot.showed { background: #34D399; } .ix-dot.no_show { background: #F87171; } .ix-dot.cancelled { background: #5b6270; }
.ix-answers { display: grid; gap: 8px; max-height: 260px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); }
.ix-qa { display: flex; flex-direction: column; gap: 2px; }
.ix-col .btn.is-open svg { transform: rotate(180deg); }
.ix-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ix-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ix-flabel { font-size: 12px; color: var(--text-2, #c9ccd1); font-weight: 500; }
.ix-plan { display: grid; gap: 10px; }
.ix-plan .row-sm { flex-wrap: nowrap; }
.ix-plan .row-sm .input[type=number] { width: 64px; flex: none; }
.ix-total { min-height: 0; }
.ix-total:empty { display: none; }
.ix-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #7CF5B0; background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.2); border-radius: 9px; padding: 7px 10px; }
.ix-claim { display: grid; gap: 4px; font-size: 14px; }
.ix-actions { justify-content: flex-end; margin-top: auto; }
.ix-done { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; color: inherit; cursor: pointer; margin-bottom: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.ix-done:hover { background: rgba(255,255,255,.04); }
.ix-done .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 1180px) {
  .ix-cols { grid-template-columns: 1fr 1fr; }
  .ix-sort { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.06); }
}
@media (max-width: 767px) {
  .ix-top { flex-wrap: wrap; padding: 14px 16px; }
  .ix-amt b { font-size: 19px; }
  .ix-cols { grid-template-columns: 1fr; }
  .ix-col { padding: 14px 16px; }
  .ix-col + .ix-col { border-left: 0; border-top: 1px solid rgba(255,255,255,.06); }
  .ix-done { flex-wrap: wrap; }
}

/* =================================== Leads =================================== */
.ld-head { margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.ld-head::-webkit-scrollbar { display: none; }
.ld-toolbar { margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.ld-toolbar .search { flex: 1; min-width: 220px; max-width: 420px; }
.ld-more { display: flex; justify-content: center; padding: 14px 0; }
.ld-profile .ld-sec h4 { margin: 0 0 10px; font: 600 12px/1 var(--font-body, inherit); letter-spacing: .07em; text-transform: uppercase; color: var(--muted, #8b8f96); }
.ld-profile .ix-answers { max-height: none; }
.ix-plan .row-sm .small { white-space: nowrap; }

.sd-lead-answers summary { cursor: pointer; color: var(--text-2, #c9ccd1); margin: 10px 0 8px; }

/* mark sales */
.ix-intro p { margin: 0; font-size: 13.5px; }
.ix-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ix-step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.ix-step-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 12px/1 var(--font-display, inherit); color: #06231a; background: #34D399; }
.mark-chip { color: #fbbf24 !important; border-color: rgba(251,191,36,.4) !important; background: rgba(251,191,36,.08) !important; text-decoration: none; }

/* leads funnel */
.ld-funnel { padding: 0; overflow: hidden; margin-bottom: 18px; }
.ld-fn-head { padding: 18px 22px 10px; }
.ld-fn-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.ld-fn-scroll { overflow-x: auto; }
.ld-fn { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.ld-fn th { text-align: left; font: 600 10.5px/1 var(--font-body, inherit); letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #8b8f96);
  padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
.ld-fn td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.ld-fn th:first-child, .ld-fn td:first-child { padding-left: 22px; }
.ld-fn th:last-child, .ld-fn td:last-child { padding-right: 22px; }
.ld-fn .num { text-align: right; }
.ld-fn td.num small { display: block; font-size: 11px; color: var(--muted, #8b8f96); margin-top: 2px; }
.ld-fn-lab { display: flex; align-items: center; gap: 10px; }
.ld-fn-lab > div { display: flex; flex-direction: column; gap: 2px; }
.ld-fn-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(52,211,153,.1); color: #34D399; flex: none; }
.ld-fn-num { background: none; border: 0; padding: 2px 4px; margin: -2px -4px; border-radius: 6px; color: #fff; font: 600 14px/1.2 var(--font-mono, monospace); cursor: pointer; }
.ld-fn-num:hover { background: rgba(52,211,153,.12); color: #7CF5B0; }
.ld-fn-rate { font: 600 14px/1 var(--font-mono, monospace); }
.ld-fn-rate.pos { color: #34D399; } .ld-fn-rate.warn { color: #fbbf24; }
.ld-fn-total td { background: rgba(255,255,255,.02); border-bottom: 0; }
.ld-fn-warn { display: flex; align-items: flex-start; gap: 8px; margin: 0 22px 16px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; color: #fde68a;
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.25); }
.ld-fn-warn svg { flex: none; color: #fbbf24; margin-top: 1px; }
.ld-entry { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2, #c9ccd1); }
@media (max-width: 767px) { .ld-fn-head { padding: 16px 16px 8px; } .ld-fn th:first-child, .ld-fn td:first-child { padding-left: 16px; position: sticky; left: 0; background: #0D0F12; z-index: 1; } }
/* funnel: fit 9 columns on a laptop */
.ld-fn { min-width: 760px; font-size: 13px; }
table.ld-fn th { white-space: normal; line-height: 1.25; font-size: 10.5px; padding: 10px 8px; vertical-align: bottom; }
table.ld-fn td { padding: 11px 8px; }
.ld-fn th:first-child, .ld-fn td:first-child { width: 30%; }
.ld-fn-lab .small { white-space: normal; }
.ld-toolbar .select { width: auto; flex: none; min-width: 180px; }
