.statement-page {
  padding-top: 10px;
  padding-bottom: 240px;
}

.statement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.statement-refresh,
.statement-more {
  border: 1px solid rgba(var(--funny-accent-rgb),0.25);
  border-radius: 8px;
  background: var(--funny-input);
  color: var(--funny-accent);
  font: inherit;
  font-size: 11px;
}

.statement-refresh {
  height: 32px;
  padding: 0 12px;
}

.statement-status {
  min-height: 34px;
  margin: 4px 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: var(--funny-surface);
  color: var(--funny-muted);
  font-size: 11px;
}

.statement-status.is-loading {
  color: var(--funny-accent);
}

.statement-status.is-ready {
  color: #b8d89a;
}

.statement-status.is-error {
  color: #ffb2a5;
}

.statement-list {
  display: grid;
  gap: 9px;
}

.statement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--funny-surface);
}

.statement-main {
  min-width: 0;
}

.statement-main strong,
.statement-main time,
.statement-main span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.statement-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 2px solid var(--funny-accent);
  border-radius: 4px;
  background: rgba(var(--funny-accent-soft-rgb),0.08);
}

.statement-main .statement-note strong,
.statement-main .statement-note span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.5;
}

.statement-main .statement-note strong {
  color: var(--funny-accent);
}

.statement-main .statement-note span {
  color: var(--funny-text);
}

.statement-main .statement-kind {
  display: inline-flex;
  width: max-content;
  padding: 3px 9px;
  border: 1px solid rgba(var(--funny-accent-rgb),0.25);
  border-radius: 6px;
  background: rgba(var(--funny-accent-soft-rgb),0.1);
  color: var(--funny-accent);
  font-size: 11px;
  font-weight: 700;
}

.statement-kind.is-deposit {
  border-color: rgba(116, 214, 153, 0.3);
  background: rgba(40, 116, 64, 0.17);
  color: #beffcf;
}

.statement-kind.is-withdrawal,
.statement-kind.is-manual_debit {
  border-color: rgba(239, 90, 90, 0.3);
  background: rgba(120, 24, 24, 0.2);
  color: #ffb2a5;
}

.statement-main time,
.statement-main span {
  margin-top: 4px;
  color: var(--funny-muted);
  font-size: 11px;
  line-height: 1.45;
}

.statement-main span {
  color: var(--funny-muted);
}

.statement-amount {
  color: #a7e083;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.statement-row.is-debit .statement-amount {
  color: #ffb2a5;
}

.statement-badge {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--funny-surface);
  color: var(--funny-accent);
  font-size: 10px;
}

.statement-badge.is-success {
  background: rgba(73, 130, 60, 0.2);
  color: #a7e083;
}

.statement-badge.is-failed,
.statement-badge.is-cancelled {
  background: rgba(159, 65, 45, 0.2);
  color: #ffb2a5;
}

.statement-balances {
  grid-column: 1 / -1;
  color: var(--funny-muted);
  font-size: 10px;
}

.statement-more {
  width: 100%;
  height: 42px;
  margin-top: 12px;
}

.statement-empty {
  display: flex;
  min-height: 175px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--funny-muted);
  font-size: 12px;
}

@media (max-width: 360px) {
  .statement-row {
    grid-template-columns: 1fr;
  }

  .statement-amount {
    white-space: normal;
  }
}
