.payment-history-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
}

.payment-history-heading {
  align-items: center;
  margin-bottom: 20px;
}

.payment-history-heading .button {
  min-height: 44px;
}

.payment-history-heading .akee-icon {
  width: 17px;
  height: 17px;
}

.payment-history-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.payment-history-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--akee-line);
  border-radius: var(--akee-radius-card);
  background: rgba(15, 21, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.payment-history-panel-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--akee-line);
}

.payment-history-panel-header h2 {
  margin: 0;
  color: var(--akee-ink);
  font-size: 1rem;
  line-height: 1.35;
}

.payment-history-state {
  padding: 10px 16px;
  border-bottom: 1px solid var(--akee-line);
  color: var(--akee-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.payment-history-state[hidden] {
  display: none;
}

.payment-history-state[data-tone="error"] {
  color: #ffb5ae;
  background: rgba(89, 27, 27, 0.24);
}

.payment-history-table-region {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.payment-history-table-region:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}

.payment-history-panel table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
}

.payment-history-panel th,
.payment-history-panel td {
  height: 48px;
  padding: 10px 12px;
  border-right: 1px solid var(--akee-line);
  border-bottom: 1px solid var(--akee-line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.payment-history-panel th:last-child,
.payment-history-panel td:last-child {
  border-right: 0;
}

.payment-history-panel th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 46px;
  color: #d9e6f3;
  background: #111a29;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
}

.payment-history-panel td {
  color: var(--akee-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.payment-history-panel tbody tr:hover {
  background: rgba(102, 197, 223, 0.05);
}

@media (min-width: 981px) {
  .payment-history-page .payment-history-content {
    height: 100%;
    overflow: hidden;
  }
}

@media (max-width: 980px) {
  .payment-history-content {
    display: block;
  }

  .payment-history-grid {
    grid-template-columns: 1fr;
  }

  .payment-history-panel {
    min-height: 360px;
  }

  .payment-history-table-region {
    max-height: 420px;
  }
}

@media (max-width: 620px) {
  .payment-history-heading {
    display: grid;
    align-items: stretch;
    gap: 14px;
  }

  .payment-history-heading .button {
    justify-content: center;
  }

  .payment-history-panel {
    min-height: 330px;
  }

  .payment-history-panel table {
    min-width: 460px;
  }
}
