/* tech.css — Tech QR flow (unit, job, jobs list, record). See docs/2026-09-07-machine-qr-demo-spec.md.
   Reuses styles.css tokens (--paper, --card, --red, --font-head, --font-body, --border, --shadow-card). */

/* ---------- Unit ---------- */
.unit-hero { gap: 6px; }
.unit-serial {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.unit-customer { font-size: 14px; color: var(--ink-dim); }
.unit-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.unit-last-prestart {
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 4px;
}

.unit-unregistered {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 12px;
}
.unit-unregistered .title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}
.unit-unregistered .serial-shown {
  font-size: 15px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.unit-unregistered .btn { width: auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Job header ---------- */
.job-head h1 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
}
.job-head-sub { font-size: 13px; color: var(--ink-dim); margin-top: 2px; }

/* ---------- Pre-start checklist ---------- */
.prestart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prestart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 16px;
  min-height: 56px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.prestart-item input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  accent-color: var(--red);
}
.prestart-item-label {
  flex: 1;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
}
.chip-required {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: rgba(134, 26, 34, 0.08);
  border-radius: 999px;
  padding: 4px 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Text fields (textarea, select) ---------- */
.field textarea,
.field select {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
  width: 100%;
  min-height: 90px;
  font-family: inherit;
  resize: vertical;
}
.field select {
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn:disabled:active { transform: none; }

/* ---------- Timer / running job ---------- */
.timer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.timer-display {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.timer-card .btn { width: auto; padding-left: 28px; padding-right: 28px; }

/* ---------- Done summary ---------- */
.done-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.done-card .title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}
.done-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.done-row:last-of-type { border-bottom: none; }
.done-row span:first-child { color: var(--ink-dim); }
.stored-line {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 6px 0 0;
}

/* ---------- Jobs list ---------- */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  min-height: 60px;
}
.job-row:active { background: var(--card-hi); }
.job-row-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-faint);
  width: 62px;
}
.job-row-main { flex: 1; min-width: 0; }
.job-row-serial {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: break-word;
}
.job-row-sub { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }

/* ---------- Record ---------- */
.record-prestart-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.record-prestart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.record-prestart-row:last-child { border-bottom: none; }
.record-pass { color: var(--success); font-weight: 700; }
.record-fail { color: var(--danger); font-weight: 700; }
.record-footer {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin: 4px 0 0;
}
