/* HC Sales v2 (Step C): the robots. public/sales/robot.css
   The header button and the phone banner, the Robot panel sheet, the reply
   pills, the follow up line, the Needs you cards and the Google Voice rows
   in New to sort, and the lightning rows. Shared classes start hcs-rb-.
   Taps are 44px on a phone. */

/* ── Header button: dot plus words (green, amber, red, or gray Robot off) */
.hcs-rb-head{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--hcs-line2);background:#fff;color:var(--hcs-text2);font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background-color var(--hcs-t),border-color var(--hcs-t)}
.hcs-rb-head:hover{background:#f5f6f8}
/* The word Robots, always shown (laptop and phone); the status words sit
   after a thin line on the laptop. */
.hcs-rb-label{font-weight:700;color:var(--hcs-text)}
.hcs-rb-headtext{padding-left:6px;border-left:1px solid var(--hcs-line2)}
.hcs-rb-head.hcs-rb-red .hcs-rb-label{color:#fff}
.hcs-rb-head.hcs-rb-red .hcs-rb-headtext{border-left-color:rgba(255,255,255,.5)}
.hcs-rb-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--hcs-muted)}
.hcs-rb-green .hcs-rb-dot{background:var(--hcs-done)}
.hcs-rb-amber .hcs-rb-dot{background:var(--hcs-orange)}
.hcs-rb-red .hcs-rb-dot{background:#fff}
.hcs-rb-head.hcs-rb-amber{border-color:var(--hcs-amber-line);color:var(--hcs-amber-text)}
.hcs-rb-head.hcs-rb-red{background:var(--hcs-red);border-color:var(--hcs-red);color:#fff}
.hcs-rb-head.hcs-rb-red:hover{background:#c4203a}
/* The phone banner under the header (red only; the laptop button is enough). */
.hcs-rb-alert{display:none}
.hcs-rb-alertbtn{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:var(--hcs-red);color:#fff;font-size:13px;font-weight:600;text-align:left;cursor:pointer}

/* ── Reply now pills and the follow up line */
.hcs-rb-pill{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.hcs-rb-pill-green{background:#e5f9ef;color:#037f4c}
.hcs-rb-pill-amber{background:#fff4e0;color:var(--hcs-amber-text)}
.hcs-rb-pill-red{background:#fde8ec;color:#b3122e}
.hcs-rb-pill-wait{background:#f0f2f5;color:var(--hcs-text2)}
.hcs-rb-follow{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--hcs-amber-text)}
.hcs-rb-follow-late{color:#b3122e}
.hcs-rb-replyline{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:2px}

/* ── The Robot panel (sheet) */
.hcs-sheet-box[data-sheet="robot"]{max-width:620px}
.hcs-rb-health{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:8px;background:#f5f7f9;font-size:14px}
.hcs-rb-health.hcs-rb-green{background:#e5f9ef}
.hcs-rb-health.hcs-rb-amber{background:#fff4e0}
.hcs-rb-health.hcs-rb-red{background:var(--hcs-red);color:#fff}
.hcs-rb-health.hcs-rb-red .hcs-gray{color:#fff}
.hcs-rb-reason{margin-top:4px;font-size:13px;color:#b3122e}
.hcs-rb-facts{display:flex;flex-direction:column;gap:2px;margin:8px 0;font-size:13px;color:var(--hcs-text2)}
.hcs-rb-notice{margin:8px 0;padding:8px 10px;border:1px solid var(--hcs-amber-line);border-radius:8px;background:#fffaf0;font-size:13px}
.hcs-rb-sec{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--hcs-line)}
.hcs-rb-sechead{font-size:14px;font-weight:700}
.hcs-rb-checkgroup{display:flex;flex-direction:column;gap:2px}
.hcs-rb-checkrow{font-size:13px;overflow-wrap:anywhere}
.hcs-rb-master{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.hcs-rb-job{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:8px 0;border-top:1px solid var(--hcs-line)}
.hcs-rb-jobtext{flex:1 1 220px;min-width:0}
.hcs-rb-jobname{font-size:14px;font-weight:700}
.hcs-rb-run{font-size:12px;font-weight:600;color:var(--hcs-navy)}
.hcs-rb-modes{display:inline-flex;flex:none;padding:3px;gap:3px;border-radius:10px;background:var(--seg-track)}
.hcs-rb-mode{min-width:76px;min-height:36px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--hcs-text2);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background-color var(--hcs-t),color var(--hcs-t)}
.hcs-rb-mode.hcs-on{background:#fff;color:var(--hcs-text);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.hcs-rb-job[data-job] .hcs-rb-mode.hcs-on[data-arg$=":on"]{background:var(--brand-fill);color:var(--on-brand)}
.hcs-rb-mode[disabled]{opacity:.5;cursor:not-allowed}
.hcs-rb-mode.hcs-on[disabled]{opacity:1;cursor:default}
.hcs-rb-row{display:flex;flex-wrap:wrap;gap:8px}
.hcs-rb-days{max-width:120px}
.hcs-sheet-box .sales-btn.danger{background:#fff;border-color:var(--hcs-red);color:#b3122e}
.hcs-sheet-box .sales-btn.danger:hover{background:#fde8ec}

/* ── Needs you (New to sort and the Today list) */
.hcs-rb-needs{padding:0;overflow:hidden;border-color:#c9c5ef}
.hcs-rb-needshead{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;background:#f2f1fc}
.hcs-rb-needstitle{margin:0;font-size:16px;font-weight:700;color:#3a3f99}
.hcs-rb-ask{display:flex;flex-direction:column;gap:6px;padding:12px 16px;border-top:1px solid var(--hcs-line);border-left:4px solid #3a3f99;background:#fff}
.hcs-rb-asktop{display:flex;align-items:center;gap:6px;min-width:0;font-weight:700;color:var(--hcs-text)}
.hcs-rb-asktop .hcs-ic{color:#3a3f99}
.hcs-rb-asktitle{min-width:0;overflow-wrap:anywhere}
.hcs-rb-askwhat{font-size:13px;color:var(--hcs-text2);overflow-wrap:anywhere}
.hcs-rb-chips{display:flex;flex-wrap:wrap;gap:8px;padding-top:2px}
.hcs-rb-chip{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid #3a3f99;background:#fff;color:#3a3f99;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-align:left}
.hcs-rb-chip:hover{background:#f2f1fc}
.hcs-rb-chip-quiet{border-color:var(--hcs-line2);color:var(--hcs-text2)}
.hcs-rb-chip[disabled]{opacity:.5;cursor:not-allowed}
.hcs-rb-older{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px;border-top:1px solid var(--hcs-line);font-size:13px;color:var(--hcs-text2)}
.hcs-y-list .hcs-rb-ask{border-left:0}
.hcs-y-tile.hcs-y-tone-navy,.hcs-w-band.hcs-y-tone-navy{background:#3a3f99;color:#fff}
.hcs-y-tone-navy .hcs-stripe{background:#3a3f99}.hcs-y-tone-navy .hcs-y-list-title{color:#3a3f99}

/* ── Google Voice rows in New to sort, and a row opened from a link */
.hcs-n-gv{border-left-color:#4eccc6}
.hcs-n-gvnote{font-size:12px;color:var(--hcs-text2)}
.hcs-n-focus{outline:2px solid #3a3f99;outline-offset:-2px}
.hcs-n-linknote{padding:10px 12px;border-radius:8px;background:#f2f1fc;color:#3a3f99;font-size:13px;font-weight:600}

/* ── Lightning rows on the deal timeline */
.hcs-d-bot{display:inline-flex;align-items:center;gap:3px;margin-left:6px;padding:0 6px;border-radius:4px;background:#fff4e0;color:var(--hcs-amber-text);font-size:11px;font-weight:700}

/* ── 055: one card for several emails from one client (a tick per email) */
.hcs-rb-members{display:flex;flex-direction:column;gap:4px}
.hcs-rb-member{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;color:var(--hcs-text2)}
.hcs-rb-tick{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border-radius:4px;border:1.5px solid var(--hcs-line2);background:#fff;color:#fff;cursor:pointer}
.hcs-rb-tick.hcs-on{background:#3a3f99;border-color:#3a3f99}
.hcs-rb-tick[disabled]{opacity:.5;cursor:not-allowed}
.hcs-rb-mday{flex:none;min-width:48px;font-weight:600;color:var(--hcs-text)}
.hcs-rb-msubj{min-width:0;overflow-wrap:anywhere}

/* ── 056: the Email reader's coconut count cards and the deal's count line */
.hcs-rb-fact{border-left-color:#4eccc6}
.hcs-rb-flink{display:inline-flex;align-items:center;gap:3px;font-size:12px}
.hcs-d-fromemail{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}

/* ── Phone: 44px taps */
@media (max-width:1149px){
  .hcs-rb-head{height:44px;min-width:44px;justify-content:center;padding:0 10px}
  /* Phone: the dot and the word Robots; the status words wait in the panel. */
  .hcs-rb-headtext{display:none}
  .hcs-rb-alert:not([hidden]){display:block;margin:8px 16px 0}
  .hcs-rb-mode,.hcs-rb-chip{min-height:44px}
  .hcs-rb-modes{width:100%}
  .hcs-rb-mode{flex:1;min-width:0}
  .hcs-rb-ask{padding:12px}
  .hcs-rb-chip{flex:1 1 44%;justify-content:center}
  .hcs-rb-member{min-height:44px}
  .hcs-rb-tick{width:28px;height:28px}
}
