.ledger-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.ledger-summary-card {
  background: rgba(247, 250, 255, 0.9);
  border: 1px solid #dbe3f0;
  border-radius: 20px;
  padding: 18px;
}

.ledger-summary-card h3 {
  margin: 6px 0 0;
  color: #233d70;
  font-size: clamp(22px, 3vw, 30px);
}

.ledger-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.ledger-disclaimer {
  color: #667796;
  font-size: 14px;
  line-height: 1.5;
  max-width: 820px;
}

.ledger-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dbe3f0;
  border-radius: 20px;
  background: #fff;
}

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

.ledger-table th,
.ledger-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf6;
  text-align: left;
  vertical-align: top;
}

.ledger-table th {
  color: #2f4674;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f7faff;
}

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

.ledger-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-empty-state {
  border: 1px dashed #b8c6db;
  border-radius: 20px;
  padding: 24px;
  color: #667796;
  background: #f7faff;
}

.ledger-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  background: #eef2f8;
  color: #4e607f;
}

.ledger-status-badge.posted { background: #eaf7ef; color: #258344; }
.ledger-status-badge.pending { background: #fff5dc; color: #9a6700; }
.ledger-status-badge.refunded { background: #eef0ff; color: #5b5fc7; }
.ledger-status-badge.reversed { background: #eef0ff; color: #5b5fc7; }
.ledger-status-badge.failed { background: #fef0f0; color: #b42318; }

@media (max-width: 900px) {
  .ledger-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .ledger-summary-grid { grid-template-columns: 1fr; }
}
