/* Usage page: under the title, the period's line of figures (what the machines cost, and the period's dates, with
   where a UTC day starts for a browser in another zone) and, at the right, the saving worked out for the runs created
   in the period, as the Runs page sets its own; then the provider lanes (spend per day, a lane per provider under the
   lane of their total, one scale for all), the projects, the providers with their share. Sections under rules, no
   boxes. Every rule is under the page, so nothing here reaches another page or a dialog. Tokens from styles.css
   only.

   A day chosen in the chart is read under it, in the chart's own section: its name and total on one line, then a
   table like the page's others. A period nothing ran in is a sentence; where nothing ever ran the chart's frame
   stands under it as an example (charts.css mutes it). Download CSV is a quiet word after the chart's Table. */

.page[data-page="usage"] .usage-figures {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 48px; flex-wrap: wrap; margin-top: -10px;
}
.page[data-page="usage"] .usage-figures > .usage-reckoning { margin-left: auto; }
.page[data-page="usage"] .usage-when { display: grid; gap: 4px; }
.page[data-page="usage"] .usage-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-content: start; }
.page[data-page="usage"] :is(.usage-chart, .usage-sample-chart) { padding: 12px 0 0; }
.page[data-page="usage"] :is(.usage-chart, .usage-sample-chart) .chart-head { margin-bottom: 6px; }
/* a period nothing ran in: its sentence where the line of figures would be, the example's frame under it */
.page[data-page="usage"] .usage-none { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: -10px; }
.page[data-page="usage"] .usage-none-line { padding: 0; max-width: 72ch; }
.page[data-page="usage"] .usage-none a { font-weight: 550; white-space: nowrap; }
/* the day chosen in the chart, read under it: under a hairline, its name and total, a quiet Close at the line's end */
.page[data-page="usage"] .usage-day { margin-top: 14px; border-top: 1px solid var(--rule-2); }
.page[data-page="usage"] .usage-day-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 0 4px;
}
.page[data-page="usage"] .usage-day-said { display: flex; align-items: baseline; gap: 4px 18px; flex-wrap: wrap; min-width: 0; }
.page[data-page="usage"] .usage-day-title { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.page[data-page="usage"] .usage-day-close { flex: none; margin-right: -4px; }
.page[data-page="usage"] .usage-day > .note { margin-top: 10px; }
.page[data-page="usage"] .usage-day-runs { display: inline-flex; flex-wrap: wrap; gap: 2px 18px; }
.page[data-page="usage"] .usage-day-run { white-space: nowrap; }
.page[data-page="usage"] .usage-day-run .fig { color: var(--ink-3); font-size: 12.5px; }
.page[data-page="usage"] .table :is(th, td).col-day-runs { width: 56%; padding-left: 40px; }
/* Download CSV where the period has no chart: at the end of the first table's head, no taller than the title's line,
   so the two tables' heads stay level */
.page[data-page="usage"] .usage-download-rest:empty { display: none; }
.page[data-page="usage"] .usage-download-rest .chart-tool { margin-right: -4px; }
@media (min-width: 900px) {
  .page[data-page="usage"] .usage-download-rest .chart-tool { height: 19px; }
}
.page[data-page="usage"] .usage-tables {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start;
}
.page[data-page="usage"] .usage-provider { display: inline-flex; align-items: center; gap: 10px; }
.page[data-page="usage"] .usage-estimate { color: var(--ink-3); font-size: 12.5px; }  /* an own machine: "at your estimate" */
.page[data-page="usage"] .usage-share { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.page[data-page="usage"] .usage-share .fig { min-width: 4ch; text-align: right; }
/* a sort button ends where its column does: its pad past the label would stick out of the last column shown and
   make the table scroll by those few pixels */
.page[data-page="usage"] .table .th-btn { margin-right: 0; padding-right: 0; }
/* a saving and its share: the share in a narrow column of its own after the dollars, as the Runs table has them; a
   phone reads it after the dollars instead, under them where it is too narrow for both on one line */
.page[data-page="usage"] .table :is(th, td).col-saved { padding-right: 0; }
.page[data-page="usage"] .table :is(th, td).col-share { padding-left: 6px; color: var(--ink-3); }
.page[data-page="usage"] .usage-phone-share { display: none; white-space: nowrap; }
/* the line under a project on a phone breaks between its facts (ui.js), never inside a figure */
.page[data-page="usage"] .cell-fold .fig { white-space: nowrap; }

/* Fluid Compute's part stands as far under the page's own sections as they stand from each other (the page's own
   gap is 24px), its note close under its table */
.page[data-page="usage"] .usage-fluid { margin-top: 16px; }
.page[data-page="usage"] .usage-fluid > .note, .page[data-page="usage"] .usage-fluid > .secondary { margin-top: 10px; }
/* its lines one job a line or summed by chip: two quiet words apart on a hairline, the one shown in ink, as the Runs
   page's List and By project; then the total */
.page[data-page="usage"] .usage-fluid-end { display: inline-flex; align-items: baseline; gap: 4px 22px; flex-wrap: wrap; margin-left: auto; }
.page[data-page="usage"] .usage-view { height: auto; gap: 0; }
.page[data-page="usage"] .usage-view button { height: 24px; padding: 0 9px; font-size: 12.5px; border-radius: 0; }
.page[data-page="usage"] .usage-view button:first-child { padding-left: 0; }
.page[data-page="usage"] .usage-view button + button { border-left: 1px solid var(--rule-2); }
.page[data-page="usage"] .usage-view button::after { display: none; }

/* the projects need about 520px: side by side only where they have it */
@media (max-width: 1199px) {
  .page[data-page="usage"] .usage-tables { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .page[data-page="usage"] .usage-none { gap: 26px; margin-top: -8px; }
  .page[data-page="usage"] .usage-day-runs { gap: 2px 14px; }
  .page[data-page="usage"] .table :is(th, td).col-share { display: none; }
  .page[data-page="usage"] .table :is(th, td).col-saved { padding-right: 0; }
  .page[data-page="usage"] .usage-phone-share { display: inline; }
  .page[data-page="usage"] .usage-figures { margin-top: -8px; }
  .page[data-page="usage"] .usage-figures > .usage-reckoning { margin-left: 0; width: 100%; }
  .page[data-page="usage"] .usage-body { gap: 32px; }
  .page[data-page="usage"] .usage-fluid { margin-top: 8px; }
}
@media (max-width: 379px) {
  .page[data-page="usage"] .usage-saved { white-space: normal; }
}
