/* ShahrVam v741 — keep the reason for a scheduled sales follow-up visible without crowding the cartable. */
body[data-page="sales-operations"] .sm590-expert-contact-table .sm148-followup-card.sm741-has-reason{
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto!important;
  min-height:58px!important;
  padding:5px 8px!important;
  align-content:center!important;
}
body[data-page="sales-operations"] .sm148-followup-card>.sm741-followup-reason{
  grid-column:1/-1!important;grid-row:3!important;display:flex!important;align-items:center!important;gap:4px!important;
  min-width:0!important;max-width:100%!important;margin:3px 0 0!important;padding:4px 0 0!important;
  border-top:1px dashed #d9e4ec!important;color:#415d72!important;font-size:14px!important;line-height:1.35!important;
  font-weight:700!important;text-align:right!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body[data-page="sales-operations"] .sm148-followup-card>.sm741-followup-reason strong{flex:0 0 auto;font-size:14px!important;color:#274a64!important}
body[data-page="sales-operations"] .sm148-followup-card>.sm741-followup-reason span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important;font-weight:750!important;color:inherit!important}
body[data-page="sales-operations"] .sm590-expert-contact-table tr.is-followup:has(.sm741-followup-reason),
body[data-page="sales-operations"] .sm590-expert-contact-table tr.is-followup:has(.sm741-followup-reason)>td{height:76px!important;min-height:76px!important}

/* The legacy responsive layout intentionally hides the reminder column on narrow workspaces.
   v741 mirrors only the reason under Status in that mode, so the reason never disappears. */
body[data-page="sales-operations"] .sm741-followup-compact{display:none;width:100%;min-width:0;margin-top:6px;padding:6px 8px;border:1px solid #d7e4ed;border-radius:8px;background:#f7fbfe;color:#36586f;text-align:right;cursor:pointer}
body[data-page="sales-operations"] .sm741-followup-compact>span{display:block;font-size:12.5px!important;font-weight:850;color:#688093;line-height:1.25}
body[data-page="sales-operations"] .sm741-followup-compact>b{display:block;margin-top:2px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px!important;line-height:1.45;color:#244b67}
@media (min-width:701px) and (max-width:1280px){body[data-page="sales-operations"] .sm590-expert-contact-table .sm741-followup-compact{display:block}}
@container sm590-table (max-width:1180px){body[data-page="sales-operations"] .sm590-expert-contact-table .sm741-followup-compact{display:block}}
@media (max-width:700px){body[data-page="sales-operations"] .sm590-expert-contact-table .sm741-followup-compact{display:block}}

/* Read-only follow-up history lives beside customer notes, not mixed into them. */
body[data-page="sales-operations"] .sm741-note-history-modal{display:grid;gap:14px}
body[data-page="sales-operations"] .sm741-followup-history,
body[data-page="sales-operations"] .sm741-customer-note-history{display:grid;gap:8px;min-width:0}
body[data-page="sales-operations"] .sm741-followup-history>header,
body[data-page="sales-operations"] .sm741-customer-note-history>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px}
body[data-page="sales-operations"] .sm741-followup-history>header b,
body[data-page="sales-operations"] .sm741-customer-note-history>header b{font-size:14px;color:#213f57}
body[data-page="sales-operations"] .sm741-followup-history>header small,
body[data-page="sales-operations"] .sm741-customer-note-history>header small{font-size:12.5px;color:#718497}
body[data-page="sales-operations"] .sm741-followup-history>div{display:grid;gap:7px;max-height:250px;overflow:auto;padding-inline-end:2px}
body[data-page="sales-operations"] .sm741-followup-history-item{display:grid;gap:5px;padding:10px 11px;border:1px solid #dce7ef;border-radius:10px;background:#f8fbfd}
body[data-page="sales-operations"] .sm741-followup-history-item>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
body[data-page="sales-operations"] .sm741-followup-history-item b{font-size:13px;color:#2b4e68}
body[data-page="sales-operations"] .sm741-followup-history-item time,
body[data-page="sales-operations"] .sm741-followup-history-item small{font-size:12.5px;color:#6f8292}
body[data-page="sales-operations"] .sm741-followup-history-item p{margin:0;font-size:13.5px;line-height:1.75;color:#2a3e50;overflow-wrap:anywhere}
body[data-page="sales-operations"] .sm741-followup-history-item p em{color:#8997a3;font-style:normal}
@media (max-width:700px){
  body[data-page="sales-operations"] .sm741-followup-history-item>div{align-items:flex-start;flex-direction:column;gap:2px}
  body[data-page="sales-operations"] .sm741-followup-history-item p{font-size:14px}
}
@media (min-width:701px) and (max-width:1280px){
  body[data-page="sales-operations"] .sm590-expert-contact-table tr.is-followup:has(.sm741-followup-compact),
  body[data-page="sales-operations"] .sm590-expert-contact-table tr.is-followup:has(.sm741-followup-compact)>td{height:98px!important;min-height:98px!important}
}
@container sm590-table (max-width:1180px){
  body[data-page="sales-operations"] .sm590-expert-contact-table tr.is-followup:has(.sm741-followup-compact),
  body[data-page="sales-operations"] .sm590-expert-contact-table tr.is-followup:has(.sm741-followup-compact)>td{height:98px!important;min-height:98px!important}
}
@media (max-width:700px){
  body[data-page="sales-operations"] .sm590-expert-contact-table tr.is-followup,
  body[data-page="sales-operations"] .sm590-expert-contact-table tr.is-followup>td{height:auto!important;min-height:0!important}
}
