.credits-page {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.credits-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #9c9c96;
}

.credits-heading p {
  margin: 0 0 4px;
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.credits-heading h1 {
  margin: 0;
  font-size: 40px;
}

.credits-heading time {
  color: #676761;
  font-size: 12px;
}

.credit-summary {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(260px, 1.2fr);
  align-items: stretch;
  margin: 28px 0;
  border-block: 1px solid #85857f;
  background: #ffffff;
}

.credit-summary > div {
  display: grid;
  min-height: 142px;
  align-content: center;
  gap: 4px;
  padding: 22px;
  border-right: 1px solid #b3b3ad;
}

.credit-summary span,
.credit-summary small {
  color: #65655f;
  font-size: 12px;
}

.credit-summary strong {
  font-family: Arial Black, "Segoe UI", sans-serif;
  font-size: 42px;
}

.credit-summary > p {
  display: grid;
  margin: 0;
  align-content: center;
  padding: 22px;
  background: #f2f500;
  font-weight: 800;
}

.is-negative {
  color: #a52e24;
}

.is-positive {
  color: #287b45;
}

.credits-error {
  padding: 12px 14px;
  border-left: 5px solid #d14a3b;
  background: #fff1ef;
  font-weight: 700;
}

.credit-ledger > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.credit-ledger h2 {
  margin: 0;
}

.credit-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.credit-filters label {
  display: grid;
  gap: 4px;
  color: #5d5d57;
  font-size: 11px;
  font-weight: 700;
}

.credit-filters select,
.credit-filters input {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #85857f;
  border-radius: 0;
  background: #ffffff;
}

.credit-table-wrap {
  overflow-x: auto;
  border: 1px solid #85857f;
  background: #ffffff;
}

.credit-table-wrap table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.credit-table-wrap th,
.credit-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid #d0d0ca;
  text-align: left;
}

.credit-table-wrap th {
  background: #e7e7e2;
  font-size: 12px;
}

.credit-table-wrap td {
  font-size: 13px;
}

.credit-table-wrap td small {
  display: block;
  max-width: 260px;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #666660;
}

.ledger-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  border: 1px dashed #969690;
}

.ledger-more,
.ledger-retry {
  min-height: 44px;
  margin-top: 14px;
  padding: 9px 18px;
  border: 1px solid #111111;
  border-radius: 0;
  background: #ffffff;
  font-weight: 800;
}

@media (max-width: 760px) {
  .credits-page {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .credits-heading,
  .credit-ledger > header {
    display: grid;
  }

  .credit-summary {
    grid-template-columns: 1fr;
  }

  .credit-summary > div {
    border-right: 0;
    border-bottom: 1px solid #b3b3ad;
  }

  .credit-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
}
