/*
 * Figures — .seq-figures (docs/design-system/component-inventory.md).
 *
 * The metrics table: on the quality page the values of the coverage_summary and sex_inference
 * artifacts, on the compare page the truth-set accuracy of two runs side by side per comparable
 * report. The rows are homogeneous metrics, which is why it stays a table (docs/plans/seq-redesign.md
 * § Tables are not the default). Set in the mono face at --font-size-14 with tabular numerals;
 * the decimals are fixed by the view, not by CSS.
 *
 * Markup: a <table class="seq-figures"> with a <caption>, an optional <thead> of column headings,
 * <tr class="seq-figures__figure"> rows of <th class="seq-figures__label"> and
 * <td class="seq-figures__value">, a <th class="seq-figures__group"> row heading a group (snv,
 * indel) and a <tr class="seq-figures__source"> row naming the artifact read. No variant: the
 * two pages differ in their rows only.
 */

.seq-figures {
  border-collapse: collapse;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-400);
  font-variant-numeric: var(--numerals);
  width: auto;
  min-width: min(100%, var(--width-320));
}

.seq-figures caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-family-body);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-400);
  color: var(--text-secondary);
  padding-block-end: var(--spacing-8);
}

.seq-figures th,
.seq-figures td {
  padding-block: var(--spacing-4);
  padding-inline: var(--spacing-16);
  text-align: right;
  vertical-align: baseline;
  white-space: nowrap;
}

.seq-figures th:first-child,
.seq-figures td:first-child {
  padding-inline-start: 0;
  text-align: left;
}

.seq-figures thead th {
  color: var(--text-secondary);
  font-weight: var(--font-weight-400);
  border-block-end: var(--stroke-weight-1) solid var(--border-subtle);
}

.seq-figures__label {
  color: var(--text-secondary);
  font-weight: var(--font-weight-400);
}

.seq-figures__value {
  color: var(--text-primary);
}

/* A row group heading (snv / indel) */
.seq-figures__group {
  color: var(--text-primary);
  padding-block-start: var(--spacing-8);
}

/* The source artifact and the time it was read, as the last row; it wraps rather than
   setting the table's width */
.seq-figures__source {
  color: var(--text-secondary);
  font-size: var(--font-size-12);
  border-block-start: var(--stroke-weight-1) solid var(--border-subtle);
}
.seq-figures__source td {
  white-space: normal;
}

