/*
 * .seq-timings — per-step timings (docs/plans/seq-redesign.md § 3): on the compare page the
 * wall time, CPU, memory and attempts of each step for two runs side by side (--pair), each
 * step with its .seq-state mark per run; on the job page the attempts of one job with their
 * state, start, duration and exit. A plain gem .admin-table in the body face; this file adds
 * the run column groups and the numeric alignment.
 *
 *   <table class="admin-table seq-timings seq-timings--pair">
 *     <thead>
 *       <tr><th rowspan="2">Step</th><th class="seq-timings__run" colspan="5">run 4123</th>…</tr>
 *       <tr><th>State</th><th data-figure>Wall</th><th data-figure>CPU</th><th data-figure>Memory</th><th data-figure>Attempts</th>…</tr>
 *     </thead>
 *     <tr class="seq-timings__step"><th class="seq-timings__name" scope="row">aligner.bwa_mem2.1</th>
 *       <td class="seq-timings__lamp"><span class="seq-state body-sm" data-state="succeeded">Succeeded</span></td>
 *       <td class="seq-timings__wall">1440.00 s</td>…</tr>
 *   </table>
 *
 * The --pair table is wider than the column; it sits in an .o-scroll (05-objects/_scroll.css).
 */

.seq-timings th {
  white-space: nowrap;
}

.seq-timings__run {
  text-align: left;
  color: var(--text-primary);
  vertical-align: bottom;
  border-inline-start: var(--stroke-weight-1) solid var(--border-subtle);
}

.seq-timings__name {
  color: var(--text-primary);
  text-align: left;
  font-weight: var(--font-weight-400);
  overflow-wrap: anywhere;
  min-width: 12rem;
}

.seq-timings__lamp {
  border-inline-start: var(--stroke-weight-1) solid var(--border-subtle);
  white-space: nowrap;
}

.seq-timings__wall,
.seq-timings__cpu,
.seq-timings__memory,
.seq-timings__attempts,
.seq-timings__exit,
.seq-timings thead th[data-figure] {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: var(--numerals);
}

.seq-timings__attempts[data-retried="true"] {
  color: var(--text-secondary);            /* the count carries the meaning: a retried step is read from its number */
}

/* A figure with nothing to report yet (the step has not started). */
.seq-timings td:empty::before {
  content: "—";
  color: var(--text-tertiary);
}

/* Two runs side by side: tighter cells so both column groups fit the column where they can;
   the step name may wrap, a figure never does. */
.seq-timings--pair th,
.seq-timings--pair td {
  padding-block: var(--spacing-8);
  padding-inline: var(--spacing-8);
}
.seq-timings--pair .seq-timings__run,
.seq-timings--pair .seq-timings__name {
  white-space: normal;
}

/* The total row */
