/* PRISM.SALES deal page v2 (Oct 2026): compact header, one action row, folded contacts and details,
   Activity at the bottom. One markup for phone, tablet and desktop; the layout adapts here. */
.dx .hero.dxh{padding:8px 18px 0}
.dx .dxh .r1{display:flex;align-items:flex-start;gap:10px}
.dx .dxh .ttl{flex:1;min-width:0}
.dx .dxh h1{font-size:23px!important;line-height:28px!important;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dx .dxh .dn{display:none;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.72);margin-top:3px;gap:0;flex-wrap:wrap;align-items:center}
.dx .dxh .dn .dtype{margin-left:8px}
.dx .dxh .rep{flex:none;display:flex;align-items:center;gap:8px;margin-top:3px;font-size:13.5px;font-weight:600;color:#fff}
.dx .dxh .rep .avatar{width:32px;height:32px}
.dx .dxh .rep .rn{display:none}
.dx .dxh .r2{display:flex;align-items:center;gap:8px;margin-top:10px}
.dx .dxh .st{flex:1;min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dx .dxh .dxchip{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 9px 0 11px;border-radius:15px;font-size:13px;font-weight:600;color:#DCE4FF;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dx .dxh span.dxchip{cursor:default;padding-right:11px}
.dx .dxh .dxchip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:.8;transform:rotate(90deg)}
.dx .dxh .dxchip:focus-visible,.dx .dxh .dvb:focus-visible{outline:2px solid #BFD3FF;outline-offset:2px}
.dx .money{margin:0!important;display:block!important;flex:none}
.dx .money .dvb{display:inline-flex!important;align-items:center;gap:7px;padding:4px 0 4px 6px!important;border:0;background:none;color:#fff;font:inherit;cursor:pointer}
.dx .money .dvb.ro{cursor:default}
.dx .money .l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dx .money .n{font-size:24px!important;line-height:30px;font-weight:800;letter-spacing:-.02em}
.dx .money .n.nset{font-size:18px!important}
.dx .money .dvp{width:24px!important;height:24px!important}
.dx .dxbar{display:flex;gap:4px;margin-top:12px}
.dx .dxbar .seg{flex:1;height:4px;border-radius:2px;background:rgba(255,255,255,.16)}
.dx .dxbar .seg.done{background:#7AA6F7}
.dx .dxbar .seg.done:first-child{background:#22C3E6}
.dx .dxbar .seg.won{background:#3FCF8E}
.dx .dxbar .seg.lost.cur{background:#FF7A8A}
.dx .dxh .meta{font-size:12.5px;color:rgba(255,255,255,.66);margin-top:8px;padding-bottom:2px}
.dx .hero.dxh{padding-bottom:6px!important}
/* body */
.dx .body.dxb{padding-top:14px}
.dx .dxb .col1>:first-child{margin-top:0}
.dx .dxacts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 4px}
.dx .dxacts.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
.dx .qa{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:0;border:0;background:none;font:inherit;font-size:12px;font-weight:600;color:var(--text-strong);text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dx .qa svg{box-sizing:content-box;width:21px;height:21px;padding:13px;border-radius:15px;background:#fff;color:var(--prism-blue-700);stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;box-shadow:0 1px 2px rgba(11,27,58,.06),0 4px 12px rgba(11,27,58,.06)}
.dx .qa.pri svg{background:var(--prism-blue-700);color:#fff}
.dx .qa.off{color:var(--text-subtle)}
.dx .qa.off svg{background:#EEF1F5;color:#B7BECC;box-shadow:none}
.dx .qa:focus-visible svg{outline:2px solid var(--prism-blue-700);outline-offset:2px}
.dx .dxns .ns-box{margin:14px 0 0;border-radius:18px;padding:14px 16px}
.dx .tdbox{margin-top:12px}
.dx .lostbox,.dx .warnchip{margin-top:12px}
/* contacts: folded rows, tap to show details */
.dx .dxct{padding-bottom:6px}
.dx .cx{border-top:1px solid #F1F3F7}
.dx .dxct h3+.cx{border-top:none}
.dx .cxr{display:flex;align-items:center;gap:8px;padding:9px 0}
.dx .cxh{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:2px 0;border:0;background:none;font:inherit;text-align:left;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;min-height:44px}
.dx .cxh .av{flex:none;width:36px;height:36px;border-radius:11px;background:var(--surface-tint);color:var(--prism-blue-700);display:grid;place-items:center;font-size:12px;font-weight:700}
.dx .cxn{min-width:0;display:flex;flex-direction:column}
.dx .cxn .nm{font-size:14.5px;font-weight:600;color:var(--text-strong);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dx .cxn .tt{font-size:12.5px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dx .cxn .dncx{margin-left:6px;color:var(--stage-lost);font-weight:600}
.dx .mchip{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:7px;font-size:11px;font-weight:700;background:var(--surface-tint);color:var(--prism-blue-700)}
.dx .qk{flex:none;display:flex;gap:6px}
.dx .qb{width:36px;height:36px;border-radius:11px;background:#F2F5FA;display:grid;place-items:center;color:var(--prism-blue-700);border:0;padding:0;cursor:pointer;text-decoration:none}
.dx .qb svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dx .qb.off{color:#B7BECC;cursor:default}
.dx .qb.li.on{background:#0A66C2;color:#fff}
.dx .cxd{display:none;padding:0 0 10px 46px}
.dx .cx.open .cxd{display:block}
.dx .cxd .f:first-child{border-top:none}
.dx .cxd .cxa{padding:8px 0 2px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 0}
/* folded sections with a one line summary */
.dx details.fx{padding:0}
.dx .fx summary{list-style:none;display:flex;align-items:center;gap:10px;padding:13px 16px;cursor:pointer;-webkit-tap-highlight-color:transparent;min-height:56px}
.dx .fx summary::-webkit-details-marker{display:none}
.dx .fx summary:focus-visible{outline:2px solid var(--prism-blue-700);outline-offset:-2px;border-radius:18px}
.dx .fxt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dx .fxk{font-size:11px;font-weight:700;letter-spacing:var(--tracking-caps);text-transform:uppercase;color:var(--text-muted)}
.dx .fxs{font-size:13.5px;font-weight:500;color:var(--text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dx .fx[open] .fxs{display:none}
.dx .fxc svg{width:18px;height:18px;stroke:var(--text-subtle);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s;display:block}
.dx .fx[open] .fxc svg{transform:rotate(90deg)}
.dx .fxb{padding:0 16px 10px;border-top:1px solid #F1F3F7}
.dx .fxb>.f:first-child,.dx .fxb>.fxtool+.f{border-top:none}
.dx .fxtool{display:flex;justify-content:flex-end;padding:8px 0 0}
.dx .fxtool .act2{display:inline-flex;align-items:center;gap:4px;font:inherit;font-size:12.5px;font-weight:700;letter-spacing:0;text-transform:none;line-height:1;color:var(--prism-blue-700);background:var(--surface-tint);border:0;border-radius:8px;padding:5px 10px;min-height:28px;width:auto;cursor:pointer}
.dx .fxtool .act2 svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.dx .fxtool .act2:hover{background:#E6EEFB}
.dx .fxb .notes{margin:12px 0 4px}
.dx .fxb .cm .lines{padding-top:4px}
.dx .fxb .stg{flex-direction:column;align-items:stretch;gap:8px}
.dx .fxb .stg .names{display:flex;flex-wrap:wrap;gap:6px}
.dx .fxb .stg .names>*{font:inherit;font-size:12.5px;font-weight:600;padding:6px 10px;border-radius:999px;border:1px solid #E3E7EE;background:#fff;color:var(--text-muted);cursor:pointer}
.dx .fxb .stg .names span{cursor:default}
.dx .fxb .stg .names .cur{background:var(--prism-blue-700);border-color:var(--prism-blue-700);color:#fff}
.dx .fxb .chg{font-size:12px;color:var(--text-subtle);padding:0 0 10px}
.dx .box{border-radius:18px}
.dx .box.fx,.dx .dxct,.dx .dxactv{margin-top:12px}
.dx .col2>.box:first-child{margin-top:12px}
/* phone: Deal details and Notes live in the main column in the markup (for the balanced desktop layout),
   so put the phone order back: actions, Next step, To-dos, Contacts, Deal details, Notes, Company, Commission, Activity */
@media (max-width:767px){
  .dx .body.dxb{display:flex;flex-direction:column}
  .dx .body.dxb>.col1,.dx .body.dxb>.col2,.dx .body.dxb .dxmain{display:contents}
  .dx .body.dxb>.col1>*{order:1}
  .dx .body.dxb>.col2>.dxct{order:2}
  .dx .body.dxb .dxmain>*{order:3}
  .dx .body.dxb>.col2>*:not(.dxct){order:4}
  .dx .body.dxb>.dxactv{order:5}
  .dx .body.dxb>.col1>.dxacts{margin-bottom:0} /* flex items do not collapse margins; keeps the old 14px gap */
}
/* tablet and desktop: header shows the deal name and rep, two columns, Activity spans the bottom */
@media (min-width:768px){
  .rs .dx .hero.dxh{padding:4px 20px 8px!important}
  .dx .dxh h1{font-size:30px!important;line-height:36px!important;margin-top:6px}
  .dx .dxh .dn{display:flex}
  .dx .dxh .rep{padding:5px 12px 5px 5px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);margin-top:8px}
  .dx .dxh .rep .rn{display:inline}
  .dx .dxh .rep .avatar{width:28px;height:28px}
  .dx .money .n{font-size:30px!important;line-height:36px}
  .dx .dxbar{margin-top:14px}
  .dx .dxbar .seg{height:5px}
  .rs .dx .body.dxb{padding-top:18px}
  .dx .body.dxb{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:0 18px;align-items:start}
  .dx .body.dxb .col2>:first-child{margin-top:0!important}
  .dx .dxactv{grid-column:1/-1}
  .dx .dxacts{gap:10px;padding:12px;background:#fff;border-radius:18px;box-shadow:var(--shadow-card);margin:0}
  .dx .qa{flex-direction:row;justify-content:center;gap:8px;font-size:13.5px;height:46px;border-radius:13px;background:#F2F5FA}
  .dx .qa svg{width:18px;height:18px;padding:0;background:none!important;box-shadow:none;border-radius:0}
  .dx .qa.pri{background:var(--prism-blue-700);color:#fff}
  .dx .qa.pri svg{color:#fff}
  .dx .qa.off{background:#F5F7FA}
}
@media (min-width:768px) and (max-width:1199px){
  .dx .body.dxb{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  .dx .qa{flex-direction:column;gap:4px;height:58px;font-size:12px}
  .dx .dxacts{gap:8px;padding:10px}
}
@media (min-width:1200px){
  .dx .body.dxb{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:0 22px}
}
.dx .box h3.hx{justify-content:flex-start}
.dx .box h3.hx .h3n{margin-left:6px}
.dx .box h3.hx .add{margin-left:auto}
.dx .dxactv .actv .empty{padding-left:0}
/* wide screens: let the deal page use more of the width so the two columns are not squeezed (Billy, Oct 28) */
@media (min-width:1380px){
  .rs .app.wide:has(.detail.dx){max-width:1240px}
}
@media (min-width:1700px){
  .rs .app.wide:has(.detail.dx){max-width:1360px}
}

/* contact LinkedIn: small Edit link, same size as the Edit company link (Oct 28) */
.dx .cxd .f.lirow{align-items:center}
.dx .cxd .cxa .ctedit{margin-right:8px;flex:none;display:inline-flex;align-items:center;gap:4px;font:inherit;font-size:12.5px;font-weight:700;line-height:1;color:var(--prism-blue-700);background:var(--surface-tint);border:0;border-radius:8px;padding:5px 10px;min-height:28px;width:auto;cursor:pointer}
.dx .cxd .cxa .ctedit svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.dx .cxd .cxa .ctedit:hover{background:#E6EEFB}
.dx .cxd .lirow .v{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dx .cxd .lirow .k{flex:none;margin-right:12px}

/* Edit contact and Edit company forms (Oct 28 2026, v26) */
.dx .cxd .f.ctnote .v{white-space:pre-wrap;text-align:right}
.sheet.cteditsh .ta,.sheet.coeditsh .ta{border-radius:13px;border:1px solid var(--border);padding:10px 14px;background:#fff}
.sheet.cteditsh .ta:focus-within,.sheet.coeditsh .ta:focus-within{border-color:var(--prism-blue-700);box-shadow:inset 0 0 0 1px var(--prism-blue-700)}
.sheet.cteditsh .ta textarea,.sheet.coeditsh .ta textarea{display:block;width:100%;border:0;outline:0;resize:vertical;font:15px/20px var(--font-sans);color:var(--text-strong);background:transparent;min-height:60px}
.sheet .dncck{display:flex;align-items:flex-start;gap:10px;margin:14px 0 4px;font-size:13.5px;color:var(--text-strong);line-height:1.35;cursor:pointer}
.sheet .dncck input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--prism-blue-700)}
.sheet.coeditsh .subh{font-size:11px;font-weight:700;letter-spacing:var(--tracking-caps);text-transform:uppercase;color:var(--text-muted);margin:16px 0 8px}
.sheet .fld.two>div>label{display:block;font-size:13px;font-weight:700;color:var(--text-strong);margin-bottom:6px}
