/* ==========================================================================
   Late rules - must load after every component above
   --------------------------------------------------------------------------
   They override rules in earlier files at equal specificity, so they depend
   on coming last (e.g. the Result column width over the base table rules).
   ========================================================================== */

/* Result column: a fixed track so the layout does not shift when the global
   unit flips. With table-layout:auto the column sized itself from whichever
   string was widest, and "+$239.08" is wider than "+2.00R" - so every column
   to its left moved on each R/$ toggle. Tabular figures keep the digits
   themselves aligned inside the badge.

   Scoped to >=701px on purpose: below that, components.css turns .data-table
   into stacked cards with flex cells, where a percentage/fixed width shrinks
   the row and the ellipsis truncates the value instead of the label. */
@media (min-width: 701px) {
  .data-table th.col-result,
  .data-table td[data-label="Result"] {
    width: 116px;
    text-align: right;
  }

  .data-table td[data-label="Result"] .badge {
    min-width: 96px;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
  }
}

/* Keyboard shortcut help (app.js) */
.shortcut-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  margin: 0;
  font-size: var(--fs-footnote);
}

.shortcut-list dd {
  margin: 0;
  color: var(--color-text-secondary);
}

kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-hover);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-align: center;
}
