/* Decision Experience (Phase 5C-B): Your week, the Attention column on Customers, the Decision header, Prepare
   conversation, Attention history, the print brief and the staff diagnostics panel. From the approved 5C-A mockups.
   Every state is a word and an icon as well as a colour; price is always the quietest thing in its block. */

.dx { --dx-text: var(--text); --dx-t85: var(--text); --dx-t70: var(--text-2); --dx-t62: var(--text-2);
  --dx-t55: var(--muted); --dx-line: var(--line-strong); --dx-line2: var(--line-strong); --dx-lime: var(--lime);
  --dx-amber: var(--immediate); --dx-ev: var(--workflow); --dx-df: var(--text-2); --dx-panel: var(--fill-1); }
.dx :focus-visible { outline: 2px solid var(--dx-lime); outline-offset: 3px; border-radius: var(--r-sm); }
.dx h1 { overflow-wrap: anywhere; }
.dx .lede { font-size: var(--fs-body); color: var(--dx-t62); margin: 0 0 22px; max-width: 70ch; }

/* ---- Tier, provenance and small chips -------------------------------------------------------- */
.dx-tier { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--dx-t70); }
.dx-tier i { font-style: normal; font-size: var(--fs-meta); letter-spacing: 0; }
.dx-tier-NeedsAttention { color: var(--attention); }
.dx-tier-WorthReviewing { color: var(--text); } .dx-tier-WorthReviewing i { color: var(--attention); }   /* same family, outline glyph, lower emphasis */
.dx-tier-FollowUp { color: var(--text); } .dx-tier-FollowUp i { color: var(--workflow); }
.dx-tier-Steady, .dx-tier-Quiet { color: var(--dx-t55); }
.dx-reason { display: block; font-size: var(--fs-meta); color: var(--dx-t55); margin-top: 3px; }
.dx-prov { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); font-weight: 700; padding: 2px 9px; border-radius: var(--r-full); border: 1px solid var(--dx-line2); white-space: nowrap; }
.dx-prov i { font-style: normal; } .dx-prov .ci-icon { width: 12px; height: 12px; vertical-align: -1px; }
.dx-prov-CustomerTenant { color: var(--text); border-color: var(--control); }
.dx-prov-VitalsAssessment { color: var(--dx-df); border-style: dashed; }
.dx-prov-YourTeam { color: var(--dx-ev); }
.dx-prov-YourServices { color: var(--dx-t62); background: var(--fill-1); border-color: transparent; }
.dx-prov-DecisionPolicy { color: var(--dx-t62); border-style: dotted; }
.dx-prov-Assignment { color: var(--text-2); }
.dx-imp { font-size: var(--fs-label); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dx-t62); white-space: nowrap; }
.dx-imp-Immediate { color: var(--dx-amber); }

/* ---- Your week and Customers: wwwroot/worklists.css (Calm Instrument Slice 3) ---------------------- */

/* ---- Decision header --------------------------------------------------------------------------- */
.dx-head { padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--dx-line2); background: var(--fill-1); margin: 0 0 16px; }
.dx-head .dx-why { font-size: var(--fs-heading); color: var(--text); margin-top: 10px; max-width: 760px; }
.dx-head dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 14px 0 0; font-size: var(--fs-control); }
.dx-head dt { color: var(--dx-t55); }
.dx-head dd { margin: 0; color: var(--dx-t85); }

/* ---- Prepare conversation and the print brief: wwwroot/prepare.css (Calm Instrument Slice 5) ------ */
.dx-copytext summary { cursor: pointer; font-size: var(--fs-sm); color: var(--dx-t62); margin-top: 18px; }
.dx-copy { white-space: pre-wrap; font: var(--fs-meta)/1.6 var(--mono); padding: 16px 18px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--dx-line2); color: var(--dx-t85); overflow-wrap: anywhere; margin-top: 10px; }

/* ---- Attention history -------------------------------------------------------------------------- */
.dx-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.dx-tl { list-style: none; margin: 0; padding: 0; }
.dx-tl li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--dx-line); }
.dx-tl .dt { color: var(--dx-t55); font-size: var(--fs-sm); }
.dx-tl .ln { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dx-tl .lb { font-weight: 700; color: var(--text); }
.dx-tl .mv { font-size: var(--fs-sm); color: var(--dx-t62); margin-top: 4px; }
.dx-tl .dl { font-size: var(--fs-sm); color: var(--dx-t55); margin-top: 2px; }

/* ---- Responsive ---------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .dx-head { padding: 16px; }
  .dx-head dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dx-head dd { margin-bottom: 8px; }
  .dx-tl li { grid-template-columns: minmax(0, 1fr); }
  /* P-4: five Needs attention cards on a phone, then an explicit "Show all". */
  .dx-cap-m:not(.dx-all) .dx-over-m { display: none; }
  .dx-show-d { display: none !important; }
}
@media (min-width: 601px) { .dx-show-m { display: none !important; } }

@media print {
  .ci-skip, .ci-top, .ci-side, .ci-scrim, .ci-staffband, .portal-foot, .noprint { display: none !important; }
  /* html too: it carries the app's dark ground, which otherwise prints below a short page and as a sliver at its edge. */
  html, body { background: #fff !important; }
}

/* Phase 5D: where decision history begins, and a partner's earlier period with the customer. */
.dx-tl li.dx-baseline .lb { color: var(--text-2); }
.dx-tl li.dx-baseline { border-top-style: dashed; }
.dx-tl li.dx-period { display: block; padding: 22px 0 6px; border-top: 0; }
.dx-tl li.dx-period h2 { margin: 0; font-size: var(--fs-meta); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
