/* Organization settings and the Firstline console: one Save per page, setup steps, site health. */

/* a page that saves with one button: the button stays in reach at the bottom of the screen */
.page-form { display: grid; gap: 36px; min-inline-size: 0; }
.savebar { position: sticky; inset-block-end: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 12px; background: var(--ground); box-shadow: 0 -1px 0 var(--line); }

/* a heading with its button at the end of the line */
.manage-body .row-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.manage-body .row-end h2 { margin: 0; }
.head-note { display: inline-flex; align-items: center; gap: 10px; }

/* what's left to set up for a new org */
.setup-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.setup-steps li { display: flex; align-items: center; gap: 14px; }
.setup-steps .status { min-inline-size: 72px; }

/* provider order: a product per row, a segmented choice per provider */
table.routes td { vertical-align: middle; }
table.routes .seg { flex-wrap: nowrap; }
table.routes .seg > button { min-height: 36px; padding: 6px 12px; white-space: nowrap; }
@media (max-width: 760px) {
  table.routes, table.routes tbody { display: block; min-inline-size: 0; }
  table.routes thead { display: none; }
  table.routes tr { display: grid; gap: 10px; padding: 12px 0; border-block-end: 1px solid var(--line); }
  table.routes td { display: grid; gap: 4px; padding: 0; border: 0; min-inline-size: 0; }
  table.routes td[data-label]::before { content: attr(data-label); font-size: 13px; color: var(--ink-muted); }
  table.routes .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-self: stretch; }
  table.routes .seg > button { justify-content: center; padding: 6px 2px; font-size: 12px; }
}

/* site health */
table.health td { vertical-align: middle; }
table.health td.cell-name { white-space: nowrap; }

/* Firstline > Logs > Settings */
table.logkeep td { vertical-align: middle; }
table.logkeep input { inline-size: 7.5em; }
fieldset.logs-pick { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
fieldset.logs-pick legend { float: left; inline-size: 100%; padding: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.logs-settings section { grid-template-columns: minmax(0, 1fr); }
.logs-settings form { min-inline-size: 0; }
@media (max-width: 720px) {
  .manage-body .toolbar > .seg, .logs-settings .seg { flex: 1 1 100%; justify-self: stretch; }
  table.logkeep, table.logkeep tbody { display: block; min-inline-size: 0; }
  table.logkeep thead { display: none; }
  table.logkeep tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; padding-block: 14px; border-block-end: 1px solid var(--line); }
  table.logkeep td { display: block; padding: 0; border: 0; text-align: start; }
  table.logkeep td.cell-name { grid-column: 1 / -1; }
  table.logkeep td[data-label]::before { content: attr(data-label); display: block; margin-block-end: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
  table.logkeep input { inline-size: 100%; }
}
