/* Admin ops money overview: component-owned layout; z99 supplies ops tokens. */
.admin-ops-money-overview {
  gap: 0.74rem;
}

.admin-ops-money-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ops-line);
  border-radius: 0.42rem;
  background: rgba(255, 253, 248, 0.54);
  overflow: hidden;
}

.admin-ops-money-cell {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.58rem 0.6rem;
  border-right: 1px solid var(--ops-line);
}

.admin-ops-money-cell:last-child {
  border-right: 0;
}

.admin-ops-money-cell span,
.admin-ops-money-cell small {
  min-width: 0;
  color: var(--ops-muted);
  font-size: 0.62rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-ops-money-cell span {
  font-weight: 700;
}

.admin-ops-money-cell strong {
  min-width: 0;
  color: var(--ops-ink);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1;
  overflow-wrap: anywhere;
}

.admin-ops-money-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.74rem;
  align-items: start;
}

.admin-ops-money-plus-cta {
  grid-column: 1 / -1;
}

.admin-ops-money-risk-row .admin-ops-row__value,
.admin-ops-payment-mini-row .admin-ops-row__value {
  justify-self: end;
}

.admin-ops-inline-link {
  color: var(--ops-warn);
  font-weight: 700;
  text-decoration: none;
}

.admin-ops-inline-link:hover {
  color: var(--ops-ink);
  text-decoration: none;
}

.admin-ops-health-cell--link {
  color: inherit;
  text-decoration: none;
}

.admin-ops-health-cell--link:hover {
  background: rgba(247, 237, 218, 0.72);
  text-decoration: none;
}

.admin-ops-health-cell--link:focus-visible {
  outline: 2px solid rgba(154, 109, 42, 0.38);
  outline-offset: -2px;
  text-decoration: none;
}

.admin-ops-health-cell--refresh small {
  color: var(--ops-warn);
  font-weight: 700;
}

.admin-ops-brief-grid.admin-ops-brief-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-ops-brief-grid--four .admin-ops-brief:nth-child(4n) {
  border-right: 0;
}

.admin-ops-row.admin-ops-ledger-row,
.admin-support-snapshot-list .admin-ops-row {
  grid-template-columns: 2.1rem minmax(0, 1fr) auto auto auto;
}

.admin-ops-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem;
  min-width: max-content;
}

.admin-ops-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.42rem;
  align-items: end;
}

.admin-ops-filter-form label {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.admin-ops-filter-form label span {
  color: var(--ops-muted);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
}

.admin-ops-filter-form input[type="text"] {
  width: 100%;
  min-height: 2.04rem;
  min-width: 0;
  padding: 0.42rem 0.52rem;
  border: 1px solid var(--ops-line);
  border-radius: 0.36rem;
  background: rgba(255, 253, 248, 0.76);
  color: var(--ops-ink);
  font: inherit;
}

.admin-support-checklist {
  display: grid;
  gap: 0.72rem;
}

.admin-support-checklist__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ops-line);
  border-radius: 0.42rem;
  background: rgba(255, 253, 248, 0.5);
  overflow: hidden;
}

.admin-support-checklist__grid article {
  display: grid;
  align-content: start;
  gap: 0.24rem;
  min-width: 0;
  padding: 0.62rem 0.66rem;
  border-right: 1px solid var(--ops-line);
  border-bottom: 1px solid var(--ops-line);
}

.admin-support-checklist__grid article:nth-child(2n) {
  border-right: 0;
}

.admin-support-checklist__grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.admin-support-checklist__grid strong {
  color: var(--ops-ink);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.26;
}

.admin-support-checklist__grid p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.admin-support-checklist__item--warn {
  background: rgba(246, 235, 214, 0.5);
}

@container ops-shell (min-width: 50rem) {
  .admin-ops-money-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .admin-ops-money-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  }
}

@media (max-width: 1040px) {
  .admin-ops-brief-grid.admin-ops-brief-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ops-brief-grid--four .admin-ops-brief,
  .admin-ops-brief-grid--four .admin-ops-brief:nth-child(4n) {
    border-right: 1px solid var(--ops-line);
    border-bottom: 1px solid var(--ops-line);
  }

  .admin-ops-brief-grid--four .admin-ops-brief:nth-child(2n) {
    border-right: 0;
  }

  .admin-ops-brief-grid--four .admin-ops-brief:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .admin-ops-money-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-ops-money-cell {
    border-right: 1px solid var(--ops-line);
    border-bottom: 1px solid var(--ops-line);
  }

  .admin-ops-money-cell:nth-child(3n) {
    border-right: 0;
  }

  .admin-ops-money-cell:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .admin-ops-money-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .admin-ops-row.admin-ops-ledger-row,
  .admin-support-snapshot-list .admin-ops-row {
    grid-template-columns: 1.8rem minmax(0, 1fr);
  }

  .admin-ops-row-actions {
    justify-content: flex-start;
    grid-column: 2;
  }

  .admin-ops-filter-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-support-checklist__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-support-checklist__grid article,
  .admin-support-checklist__grid article:nth-child(2n),
  .admin-support-checklist__grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--ops-line);
  }

  .admin-support-checklist__grid article:last-child {
    border-bottom: 0;
  }

  .admin-ops-money-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ops-money-cell,
  .admin-ops-money-cell:nth-child(3n),
  .admin-ops-money-cell:nth-last-child(-n + 3) {
    border-right: 1px solid var(--ops-line);
    border-bottom: 1px solid var(--ops-line);
  }

  .admin-ops-money-cell:nth-child(2n) {
    border-right: 0;
  }

  .admin-ops-money-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
