/* ============================================================
   Work order — print-first traveler.
   ============================================================ */

.work-order {
  max-width: 900px;
  padding: var(--geist-space-6x);
  background: var(--ds-background-100);
  border-radius: var(--geist-radius);
  box-shadow: var(--ds-shadow-border);
}

.wo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--geist-space-6x);
  padding-bottom: var(--geist-space-4x);
  margin-bottom: var(--geist-space-6x);
  border-bottom: 2px solid var(--ink);
}

.wo-title {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.wo-so {
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wo-header-facts {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--geist-space) var(--geist-space-6x);
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.wo-header-facts > div { display: flex; gap: 8px; }
.wo-header-facts dt { color: var(--ink-muted); }
.wo-header-facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

.wo-section {
  margin-bottom: var(--geist-space-6x);
  break-inside: avoid;
}

.wo-section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-subtle);
  padding-bottom: var(--geist-space-2x);
  margin-bottom: var(--geist-space-3x);
  border-bottom: 1px solid var(--ds-gray-400);
}

.wo-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--geist-space-3x) var(--geist-space-6x);
  margin: 0;
}

.wo-facts > div { display: flex; flex-direction: column; }

.wo-facts dt {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-subtle);
}

.wo-facts dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .work-order { padding: 16px; }
  .wo-header { flex-direction: column; gap: 16px; }
  .wo-header-facts { grid-template-columns: 1fr; }
}
