/* Machines page: the line of what the machines running now cost, then three sections under rules, no boxes: the
   machines running now, the audit with its one table and its clean-up, the nodes. A machine wears its provider's
   line. Every rule is under the page, so nothing here reaches another page or a dialog. Tokens from styles.css
   only. */

.page[data-page="machines"] { gap: 40px; }
.page[data-page="machines"] .machines-ledger { margin-top: -28px; }
/* A machine: its provider's line beside the first line of its words. Where the table is narrow, the words wrap
   between the parts of the name (never inside "us-east-2" or an id), so a row keeps its price and lease in view. */
.page[data-page="machines"] .machine { display: inline-flex; align-items: flex-start; gap: 10px; }
.page[data-page="machines"] .machine .pline { margin-top: calc(.75em - 1.5px); }
.page[data-page="machines"] .machine-words { white-space: normal; }
.page[data-page="machines"] .cell-fold .mono, .page[data-page="machines"] .cell-fold .fig,
.page[data-page="machines"] .machine-words .mono { white-space: nowrap; }
/* 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="machines"] .table .th-btn { margin-right: 0; padding-right: 0; }

/* Where a section is narrower than its table (a tablet, or a laptop window beside the nav), the table keeps its
   identifying and money columns and reads the rest under the first cell, as it does on a phone: the machines below
   700px, the nodes (a column more) below 780px. */
.page[data-page="machines"] .held { container: held / inline-size; }
.page[data-page="machines"] .nodes { container: nodes / inline-size; }
@container held (max-width: 699px) {
  .page[data-page="machines"] .table td.col-fold, .page[data-page="machines"] .table th.col-fold { display: none; }
  .page[data-page="machines"] .cell-fold {
    display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 1px; margin-top: 2px;
    font: 400 12.5px/1.45 var(--font-sans); color: var(--ink-2); white-space: normal;
  }
  .page[data-page="machines"] .table td:has(.cell-fold) { padding-top: 7px; padding-bottom: 7px; height: auto; }
}
@container nodes (max-width: 779px) {
  .page[data-page="machines"] .table td.col-fold, .page[data-page="machines"] .table th.col-fold { display: none; }
  .page[data-page="machines"] .cell-fold {
    display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 1px; margin-top: 2px;
    font: 400 12.5px/1.45 var(--font-sans); color: var(--ink-2); white-space: normal;
  }
  .page[data-page="machines"] .table td:has(.cell-fold) { padding-top: 7px; padding-bottom: 7px; height: auto; }
}

/* the audit: a sentence until it runs, then its verdict over the machines it found; under them, after one rule,
   what it left out, the clean-up and its result */
.page[data-page="machines"] .audit-body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.page[data-page="machines"] .audit-intro { padding: 2px 0 12px; color: var(--ink-2); }
.page[data-page="machines"] .audit-progress {
  display: flex; align-items: center; gap: 10px; padding: 2px 0 12px; color: var(--ink-2);
}
.page[data-page="machines"] .audit-elapsed { color: var(--ink-3); }
.page[data-page="machines"] .audit-body > .notice { margin: 2px 0 14px; }
.page[data-page="machines"] .audit-head { display: grid; gap: 12px; padding: 2px 0 16px; }
.page[data-page="machines"] .audit-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.page[data-page="machines"] .audit-checked { color: var(--ink-3); font-size: 13px; }
.page[data-page="machines"] .audit-foot {
  display: grid; gap: 14px; justify-items: start; padding: 14px 0 0; border-top: 1px solid var(--rule);
}
.page[data-page="machines"] .audit-foot > .notice { border: 0; padding: 0; justify-self: stretch; }
.page[data-page="machines"] .audit-gc { gap: 18px; }
.page[data-page="machines"] .audit-gc .check:has(input:disabled) { color: var(--ink-3); cursor: default; }

@media (max-width: 599px) {
  .page[data-page="machines"] { gap: 32px; }
  .page[data-page="machines"] .machines-ledger { margin-top: -22px; }
  .page[data-page="machines"] .audit-summary { gap: 6px 16px; }
}
