/* New deal (redesign Phase 5): three numbered steps, type-ahead name pickers with a chip,
   and product lines that open their fields once a product is chosen. Phone first; every tap
   target is at least 44px and every field 16px on phones (styles/layout.css). */

.entry-title { font: 700 24px/1.25 var(--font-display); color: var(--text-bright); margin: 4px 0; }
.entry-sub { font-size: 16px; color: var(--muted); margin-bottom: 16px; }

.steps { list-style: none; display: grid; gap: 16px; margin-bottom: 16px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.step-h { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 18px/1.3 var(--font-display); color: var(--text-bright); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--zv-red); color: #fff; font: 700 15px var(--font-body);
}
.step-field { display: grid; gap: 4px; }
.step select, .step input[type="text"], .step input[type="number"], .step input[type="date"], .step textarea { min-height: 44px; }

/* Name picker (src/components/nameCombo.js) */
.name-combo { position: relative; display: grid; gap: 4px; }
.nc-field { position: relative; }
.nc-list {
  list-style: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  max-height: 280px; overflow-y: auto; background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-md);
}
.nc-opt { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 16px; color: var(--text-strong); cursor: pointer; }
.nc-opt:hover, .nc-opt.is-active { background: var(--zv-blue-wash); }
.nc-new { color: var(--zv-blue); font-weight: 600; border-top: 1px solid var(--border-soft); }
.nc-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px;
  padding: 0 4px 0 14px; border: 1px solid var(--zv-blue); border-radius: 22px; background: var(--zv-blue-wash);
}
.nc-chip-text { font-size: 16px; font-weight: 600; color: var(--text-bright); overflow-wrap: anywhere; }
.nc-clear {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--zv-blue);
}
.nc-clear:hover { background: rgba(6, 78, 140, 0.12); }
.nc-clear:focus-visible { outline: 2px solid var(--zv-blue); outline-offset: 1px; }

/* Product lines */
#lines { display: grid; gap: 12px; }
.nl { border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; background: var(--panel-2); display: grid; gap: 10px; }
.nl-head { display: flex; gap: 8px; align-items: flex-end; }
.nl-product { flex: 1; min-width: 0; }
.nl-remove { width: 44px; height: 44px; flex: none; }
.nl-fields .row { margin-bottom: 8px; }
.nl-rev { min-height: 18px; }
.add-product-btn { min-height: 44px; }

.more-details { border-top: 1px solid var(--border-soft); padding-top: 10px; }
.more-details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--zv-blue); }
.more-details[open] { display: grid; gap: 10px; }

#entryError ul { margin: 6px 0 0 18px; display: grid; gap: 2px; }
#entryError:focus { outline: none; }
#submitEntryBtn { width: 100%; min-height: 52px; font-size: 16px; }

.entry-done { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--accent-green); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.entry-done:focus { outline: none; }
.done-msg { font-size: 17px; color: var(--text-strong); }
.done-actions { display: grid; gap: 10px; }
@media (min-width: 768px) { .done-actions { grid-template-columns: 1fr 1fr; } }
/* An official name from sales history in the hospital and distributor pickers. */
.nc-official { justify-content: space-between; gap: 10px; }
.nc-src { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }

/* New deal: who will work it (migration 031). Sits above the numbered steps. */
.entry-assign { margin-bottom: 16px; border-color: var(--zv-blue); }
.entry-assign .helper-text { margin: 0; }

/* Handoffs screen (src/screens/handoffs.js) */
.ho-section { margin-top: 22px; }
.ho-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ho-card { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--zv-blue); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); display: grid; gap: 6px; }
.ho-card.ho-accepted { border-left-color: var(--accent-green); }
.ho-card.ho-rejected { border-left-color: var(--zv-red); }
.ho-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ho-title { margin: 0; font: 700 16px/1.3 var(--font-display); color: var(--text-bright); }
.ho-for { font: 500 14px var(--font-body); color: var(--muted); }
.ho-status { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ho-meta, .ho-products { margin: 0; font-size: 14px; color: var(--muted); }
.ho-products { color: var(--text); }
.ho-note { margin: 0; font-size: 14px; color: var(--text); background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.ho-note span { font-weight: 600; }
.ho-stages { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.ho-stages li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-soft); padding-top: 4px; }
.ho-stage { font-weight: 600; color: var(--text-strong); }
.ho-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.ho-reassign select { min-height: 44px; flex: 1 1 220px; }
.ho-reject { display: grid; gap: 6px; margin-top: 4px; }
.ho-reject textarea { min-height: 60px; }
.ho-error { margin: 0; color: var(--zv-red); font-size: 14px; }
.home-handoffs { margin-bottom: 14px; }
