/* Wayline Dispensary · template pieces on top of Dispatch (../../styles/dispatch/template/css/dispatch.css).
   The send-a-script flow and its printed label, the order lookup, checklists and the phone line. */

/* the send-a-script flow */
.flow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.flow-steps { position: sticky; top: 96px; display: grid; gap: 4px; padding: 10px; border: 2px solid var(--ink); border-radius: var(--r-m); background: var(--card); counter-reset: none; }
.flow-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-s); color: var(--muted); }
.flow-steps li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid var(--line); font: 600 12px/1 var(--mono); background: var(--card); }
.flow-steps li b { font: 700 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.flow-steps li[aria-current="step"] { background: var(--orange-soft); color: var(--ink); }
.flow-steps li[aria-current="step"] span { border-color: var(--orange); color: var(--orange); }
.flow-steps li.done { color: var(--ink); }
.flow-steps li.done span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.flow-body { min-width: 0; }
.flow-panel { display: grid; gap: 18px; border: 0; margin: 0; padding: 0; min-width: 0; }
.flow-panel legend { padding: 0; margin-bottom: 4px; }
.flow-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.flow-panel .consign { max-width: 560px; margin: 8px 0 6px; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-steps { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 8px 4px; }
  .flow-steps li b { font-size: 13px; }
}
@media (max-width: 420px) { .flow-steps li b { display: none; } }

/* order lookup */
.chip { display: inline-flex; padding: 5px 9px; margin: 2px 2px 0 0; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--card); font: 600 11px/1.2 var(--mono); color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--ink); color: var(--paper); }
.note { font: 500 11.5px/1.6 var(--mono); color: var(--muted); }
.track-empty { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 300px; padding: 24px; border: 2px dashed var(--line); border-radius: var(--r-m); color: var(--muted); text-align: center; }
.track-empty svg { width: 34px; height: 34px; color: var(--orange); }
[data-track-out] .tracker { animation: wl-in 500ms var(--ease) both; }
@keyframes wl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.calm [data-track-out] .tracker { animation: none; }

/* prescriber checklist and the phone line */
.checklist { display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.checklist li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border: 2px solid var(--ink); border-radius: 2px; background: var(--card); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 12px var(--orange-soft); }
.big-phone { font: 800 clamp(40px, 5vw, 64px)/0.9 var(--display); letter-spacing: 0.01em; margin-top: 14px; }
.feat .code { margin-top: 4px; padding: 8px 10px; border-radius: var(--r-s); background: var(--well); font-size: 11.5px; color: var(--ink); }

/* keep step headings clear of the sticky header when the flow scrolls */
[data-send], .flow-panel legend, .flow-panel h2 { scroll-margin-top: 120px; }
