.ledger-controls {
  display: grid;
  gap: 16px;
  margin: 26px 0 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ledger-controls h2,
.ledger-controls p {
  margin-bottom: 0;
}

.ledger-filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(210px, .4fr);
  gap: 12px;
}

.ledger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.source-ledger-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-ledger-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.source-ledger-table th,
.source-ledger-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.source-ledger-table th {
  background: #f1f8f5;
  color: var(--ink);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.source-ledger-table td {
  color: var(--muted);
  line-height: 1.45;
}

.source-ledger-table td strong {
  display: block;
  color: var(--ink);
}

.source-ledger-table td small {
  display: block;
  margin-top: 3px;
}

.source-ledger-table tr:last-child td {
  border-bottom: 0;
}

.source-ledger-table a {
  color: var(--teal);
  font-weight: 800;
}

.ledger-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
}

.ledger-badge.is-activated {
  color: #0a5b45;
  background: #e1f3eb;
}

.ledger-badge.is-notice {
  color: #75520d;
  background: var(--gold-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .ledger-filter-row {
    grid-template-columns: 1fr;
  }
}
