/* Lead Response — the call list, the scoreboard and their dialogs
   (static/crm/leadResponse.js, docs/systems/LEAD_RESPONSE.md).

   Shared by both apps since 2026-10-16: the call list moved from the CRM dashboard to
   Home (static/shared/workspaceHome.js, in the Platform app), so these rules left
   crm.css. Every colour carries the CRM's value as a fallback, because the Platform
   does not define all of the CRM's variables. The management page's own rules
   (.lr-mg-*) stay in crm.css. */
.lr-card { padding:1rem 1.2rem; }
.lr-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; }
.lr-sub { font-size:12.5px; color:var(--text-secondary, #56636E); margin-top:4px; line-height:1.5; }
.lr-muted { font-size:11.5px; color:var(--text-tertiary, #848484); }
.lr-strong { font-weight:600; }
.lr-red { color:#c0392b; }
.lr-bucket { margin-top:10px; }
.lr-bucket-label { font-size:10.5px; font-weight:700; letter-spacing:1.1px; color:var(--text-tertiary, #848484); padding:4px 0 6px; }
.lr-b-overdue .lr-bucket-label { color:#c0392b; }
.lr-row { display:flex; align-items:center; gap:14px; padding:10px 12px; border:1px solid var(--border, #E4E5E3); border-radius:9px; margin-bottom:6px; background:#fff; font-size:12.5px; color:var(--navy, #0B2339); }
.lr-row-overdue { border-color:#e3a39b; background:#fdf3f2; border-left:4px solid #c0392b; }
.lr-row a { color:var(--navy, #0B2339); text-decoration:none; border-bottom:1px dashed rgba(11,35,57,.3); }
.lr-c-name { flex:1.4; min-width:0; }
.lr-c-signup { flex:1; min-width:0; }
.lr-c-due { flex:1.3; min-width:0; }
.lr-c-att { flex:.7; min-width:0; }
.lr-c-act { display:flex; gap:6px; flex:0 0 auto; }
.lr-count b { font-variant-numeric:tabular-nums; }
.lr-btn { padding:7px 12px; border-radius:7px; border:1px solid var(--border-strong, #CFD0CC); background:#fff; color:var(--navy, #0B2339); font:inherit; font-size:12px; font-weight:600; cursor:pointer; white-space:nowrap; }
.lr-btn:hover { background:var(--neutral-fill, #F1F2F2); }
.lr-btn:disabled { opacity:.55; cursor:default; }
.lr-btn-call { background:var(--teal, #008D95); border-color:var(--teal, #008D95); color:#fff; }
.lr-btn-call:hover { background:var(--teal-dark, #006970); }
.lr-btn-primary { background:var(--navy, #0B2339); border-color:var(--navy, #0B2339); color:#fff; }
.lr-btn-primary:hover { background:var(--navy-soft, #16314a); }
.lr-unresp { border:1px solid #e8c48a; background:#fff8ec; border-radius:9px; padding:4px 12px; margin-bottom:8px; }
.lr-unresp-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; font-size:12.5px; color:var(--navy, #0B2339); }
.lr-unresp-row + .lr-unresp-row { border-top:1px solid #f0dcb8; }
.lr-unresp-act { display:flex; gap:6px; flex:0 0 auto; }
.lr-table-wrap { overflow-x:auto; }
.lr-table { width:100%; border-collapse:collapse; font-size:12.5px; color:var(--navy, #0B2339); }
.lr-table th { text-align:left; font-size:10.5px; letter-spacing:.4px; color:var(--text-tertiary, #848484); font-weight:600; padding:6px 8px; border-bottom:1px solid var(--border-strong, #CFD0CC); }
.lr-table td { padding:7px 8px; border-bottom:1px solid var(--neutral-fill, #F1F2F2); }
.lr-table .lr-num { text-align:right; font-variant-numeric:tabular-nums; }
.lr-rank { width:26px; color:var(--text-tertiary, #848484); }
.lr-me td { background:rgba(0,141,149,.07); font-weight:600; }
.lr-you { font-size:10px; font-weight:700; color:var(--teal-dark, #006970); border:1px solid var(--teal, #008D95); border-radius:4px; padding:0 5px; margin-left:4px; }
.lr-rate { white-space:nowrap; min-width:150px; }
.lr-bar { display:inline-block; width:90px; height:7px; background:var(--neutral-fill, #F1F2F2); border-radius:4px; margin-right:8px; vertical-align:middle; overflow:hidden; }
.lr-bar i { display:block; height:100%; background:var(--teal, #008D95); }
.crm-modal.lr-modal { max-width:520px; max-height:calc(100vh - 40px); overflow-y:auto; }
.lr-modal .lr-p { font-size:13.5px; color:var(--navy, #0B2339); }
.lr-outcomes, .lr-pick { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0; }
.lr-outcome { display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:10px 12px; border:1px solid var(--border-strong, #CFD0CC); border-radius:8px; background:#fff; cursor:pointer; font:inherit; color:var(--navy, #0B2339); }
.lr-outcome b { font-size:13px; }
.lr-outcome span { font-size:11.5px; color:var(--text-secondary, #56636E); }
.lr-outcome:hover { border-color:var(--teal, #008D95); background:rgba(0,141,149,.05); }
.lr-outcome:disabled { opacity:.5; cursor:default; }
.lr-label { display:block; font-size:11px; font-weight:700; letter-spacing:.6px; color:var(--text-tertiary, #848484); margin:10px 0 4px; }
.lr-input { width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid var(--border-strong, #CFD0CC); border-radius:6px; font:inherit; font-size:13px; color:var(--navy, #0B2339); }
@media (max-width: 820px) {
  .lr-row { flex-wrap:wrap; }
  .lr-c-act { width:100%; }
  .lr-outcomes, .lr-pick { grid-template-columns:1fr; }
}

/* The dialogs (CALL NOW outcome, log a call, unresponsive lead). The CRM styles
   .crm-modal* globally in crm.css; the Platform has no such rules, so they are
   repeated here for the Lead Response dialog only (#__lr-modal), same values. */
#__lr-modal.crm-modal-backdrop { position:fixed; inset:0; background:rgba(11,35,57,.55); display:flex; align-items:center; justify-content:center; padding:20px; z-index:100070; }
#__lr-modal .crm-modal { background:var(--bg-card, #FFFFFF); border-radius:12px; padding:22px 24px 20px; width:100%; max-width:420px; box-shadow:0 20px 60px rgba(0,0,0,.25); box-sizing:border-box; }
#__lr-modal .crm-modal h3 { font-family:'DM Serif Display',Georgia,serif; font-size:18px; font-weight:500; color:var(--navy, #0B2339); margin:0 0 8px; }
#__lr-modal .crm-modal p { font-size:13px; color:var(--text-secondary, #56636E); line-height:1.55; margin:0 0 18px; }
#__lr-modal .crm-modal-actions { display:flex; gap:8px; justify-content:flex-end; }
#__lr-modal .crm-btn { padding:8px 16px; border-radius:7px; border:1px solid var(--border-strong, #CFD0CC); font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; }
#__lr-modal .crm-btn-secondary { background:#fff; color:var(--navy, #0B2339); }
#__lr-modal .crm-btn-primary { background:var(--teal, #008D95); color:#fff; border-color:var(--teal, #008D95); }
