/* Platform → Analytics (docs/05-views.md): the month selector, the table per organization, the two
   charts and the cost per step. */

/* The month and its button: a choice row (components.css). */

/* Eight columns fit a desktop without scrolling: less space between them, and a long column title
   ("per 1,000 characters") breaks. */
.t.analytics th,
.t.analytics td {
  padding-right: 10px;
  padding-left: 10px;
}

.t.analytics th:first-child {
  padding-left: 16px;
  white-space: nowrap;
}

.t.analytics th:last-child,
.t.analytics td:last-child {
  padding-right: 16px;
}

.t.analytics thead th {
  letter-spacing: 0.06em;
  vertical-align: bottom;
  white-space: normal;
}

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

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

/* The organization's name is the row's header, set like a cell. */
.t.analytics tbody th,
.t.analytics tfoot th {
  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.analytics tbody tr:last-child th {
  border-bottom: 0;
}

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

/* How many calls the cost leaves out, below it. */
.analytics__unpriced {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
