/* ============================================================================
   LIT-CRM — Working a chargeback
   [2026-08-30] The associate's screen. Built because there wasn't one: opening a
   chargeback opened the sale form, and the person asked to recover the customer
   had nowhere to write anything down.

   The design does one job: make "what do I do today" unmissable, and make the
   rest of the plan visible without being actionable. A locked step still shows
   its title and its date, because knowing day 14 asks you to judge whether
   recovery is realistic is exactly what stops somebody surrendering on day 1.
   ========================================================================== */

.cw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}
.cw-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.58;
}
.cw-title { margin: 2px 0 0; font-size: 1.7rem; line-height: 1.2; }

/* ── the clock ───────────────────────────────────────────────────────────── */
/* Stated once, large. Every checkpoint below is measured from this number, so it
   earns the space. */
.cw-clock {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-left: 5px solid #0369a1;
  background: rgba(3, 105, 161, 0.06);
}
.cw-clock-n {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #0369a1;
}
.cw-clock-t { line-height: 1.35; }
.cw-clock-urgent { border-left-color: #b45309; background: rgba(180, 83, 9, 0.07); }
.cw-clock-urgent .cw-clock-n { color: #b45309; }
.cw-clock-closed,
.cw-clock-none { border-left-color: rgba(100, 116, 139, 0.5); background: rgba(100, 116, 139, 0.07); }
.cw-clock-closed .cw-clock-n,
.cw-clock-none .cw-clock-n { color: inherit; opacity: 0.62; font-size: 1.6rem; }

/* ── facts ───────────────────────────────────────────────────────────────── */
.cw-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 24px;
  margin-bottom: 14px;
}
.cw-fact-l {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.58;
  margin-bottom: 2px;
}
.cw-fact-v { font-weight: 600; }

.cw-plan-note { max-width: 78ch; margin: 0 0 14px; }

/* ── the stepper ─────────────────────────────────────────────────────────── */
.cw-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(100, 116, 139, 0.24);
}
.cw-step:first-child { border-top: 0; }

.cw-step-mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid rgba(100, 116, 139, 0.42);
  font-variant-numeric: tabular-nums;
}
.cw-step-done .cw-step-mark {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}
.cw-step-late .cw-step-mark { border-color: #b45309; color: #b45309; }

.cw-step-body { flex: 1 1 auto; min-width: 0; }
.cw-step-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cw-step-title { font-weight: 650; }
.cw-step-when { font-size: 0.82rem; opacity: 0.62; white-space: nowrap; }
.cw-late { color: #b45309; opacity: 1; font-weight: 700; }

.cw-step-instr { font-size: 0.88rem; opacity: 0.78; margin-top: 3px; max-width: 76ch; }

.cw-step-note {
  margin: 6px 0 0;
  padding-left: 12px;
  border-left: 3px solid rgba(100, 116, 139, 0.35);
  max-width: 76ch;
}

/* A locked step is legible but plainly inert - no form, no button, nothing that
   invites a click that would be refused. */
.cw-step-locked { opacity: 0.5; }
.cw-lock-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(100, 116, 139, 0.2);
}

.cw-step-form { margin-top: 10px; max-width: 62ch; }
.cw-step-form .input { width: 100%; margin-bottom: 8px; }
.cw-step-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cw-err { color: #b91c1c; }

/* ── dispute ─────────────────────────────────────────────────────────────── */
#cwDispute .input { width: 100%; max-width: 62ch; margin-bottom: 8px; }
.cw-dispute-state {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fde68a;
  color: #78350f;
  margin-bottom: 8px;
}
.cw-quote {
  margin: 0 0 4px;
  padding-left: 12px;
  border-left: 3px solid rgba(100, 116, 139, 0.35);
  max-width: 78ch;
}

#cwNote { width: 100%; max-width: 70ch; }

@media (max-width: 700px) {
  .cw-clock { gap: 12px; padding: 14px; }
  .cw-clock-n { font-size: 2rem; }
  .cw-step-when { white-space: normal; }
}
