/* Account → Usage (docs/05-views.md): the month selector and the month's table. */

/* Figures are right-aligned with equal-width digits, so the columns read as numbers. Positioned, so
   the hidden text of a dash ("nothing counted") scrolls with its cell instead of widening the page. */
.t .usage__num {
  position: relative;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.t td.usage__num {
  white-space: nowrap;
}

/* The item (the API, a run) is the row's header, set like a cell; a long name or note wraps, so the
   figures stay in view. */
.t.usage tbody th,
.t.usage tfoot th {
  min-width: 150px;
  white-space: normal;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: var(--border);
  color: var(--fg);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.t.usage tbody tr:last-child th {
  border-bottom: 0;
}

/* A run's id below its name, and the note of the row without a run. */
.usage__sub {
  max-width: 44ch;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

/* The sum row: set apart by a line, in bold. */
.t.usage tfoot th,
.t.usage tfoot td {
  border-top: 2px solid var(--line);
  border-bottom: 0;
  font-weight: 600;
}

/* A run's name opens the run; set like the runs list. */
.t.usage tbody th a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.t.usage tbody th a:hover {
  text-decoration: underline;
}

/* The usage limits of the current week and month (#903): the UTC hint above the table, a header row
   per period, a row per counter. */
.usage-limits__hint {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.t.usage-limits tbody th {
  white-space: normal;
  color: var(--fg);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.t.usage-limits .usage-limits__period th {
  font-weight: 600;
  background: var(--surface);
}

/* A line under every row but the table's last, also between the periods. */
.t.usage-limits tbody:not(:last-child) tr:last-child td {
  border-bottom: var(--border);
}

.t.usage-limits tbody:last-child tr:last-child th {
  border-bottom: 0;
}
