.transfer-table th:nth-child(1) { width: 11%; }
.transfer-table th:nth-child(2) { width: 21%; }
.transfer-table th:nth-child(3) { width: 21%; }
.transfer-table th:nth-child(4) { width: 25%; }
.transfer-table th:nth-child(5) { width: 14%; }

.transfer-table td:nth-child(2),
.transfer-table td:nth-child(3) {
  min-width: 160px;
}

.transfer-table .actions {
  justify-content: center;
}

.transfer-row-cancelled {
  opacity: 0.62;
}

.transfer-row-cancelled td {
  color: var(--muted);
}

.transfer-row-cancelled:hover {
  background: rgba(148, 163, 184, 0.05);
}

.transfer-cancelled-amount {
  text-decoration: line-through;
  text-decoration-color: rgba(251, 113, 133, 0.65);
  text-decoration-thickness: 1px;
}

.transfer-history-card {
  display: grid;
  gap: 18px;
}

.transfer-history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.transfer-history-card-head > .filter-popover {
  margin-top: 20px;
}

.transfer-period-copy {
  min-width: 220px;
}

.transfer-period-copy h3 {
  margin-bottom: 5px;
}

.transfer-period-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.transfer-kicker {
  margin-bottom: 4px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.transfer-period {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(154px, auto);
  align-items: end;
  gap: 10px;
  width: min(100%, 900px);
}

.transfer-period-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.transfer-period-field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.transfer-period .input,
.transfer-period .select,
.transfer-load-btn {
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 12px;
}

.transfer-load-btn {
  min-width: 154px;
  padding-right: 18px;
  padding-left: 18px;
  color: var(--gold-2);
  background: rgba(216, 180, 106, 0.12);
  border-color: rgba(216, 180, 106, 0.3);
}

.transfer-history-wrap {
  min-width: 0;
}

.transfer-history-groups {
  display: grid;
  gap: 24px;
}

.transfer-history-group {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.transfer-date-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0 2px;
  background: transparent;
}

.transfer-date-group span {
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transfer-date-group small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.transfer-history-table-frame {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 11, 20, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.transfer-history-table-frame .bank-history-table {
  min-width: 760px;
}

.transfer-receipt-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.transfer-receipt-preview img {
  width: 72px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.transfer-receipt-preview strong,
.transfer-receipt-meta strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.transfer-receipt-preview span,
.transfer-receipt-meta span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.transfer-receipt-btn {
  min-height: 32px;
}

.transfer-inline-arrow {
  display: inline-flex;
  vertical-align: -0.2em;
  margin: 0 5px;
  color: var(--muted);
}

.transfer-inline-arrow svg {
  width: 18px;
  height: 18px;
}

.transfer-receipt-detail {
  display: grid;
  gap: 12px;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
}

.transfer-receipt-detail img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.transfer-receipt-meta {
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.transfer-detail-list {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.transfer-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.transfer-detail-row > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.transfer-detail-row > strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

.transfer-detail-row .muted {
  margin-top: 3px;
}

.transfer-detail-currency {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.transfer-detail-receipt-value {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.transfer-detail-receipt-value small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .transfer-history-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: start;
    gap: 12px;
  }

  .transfer-period-copy {
    min-width: 0;
  }

  .transfer-history-card-head > .filter-popover {
    justify-self: end;
    margin-top: 18px;
  }

  .transfer-period {
    grid-template-columns: minmax(210px, 1.2fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(154px, auto);
    width: min(100%, 880px);
  }
}

@media (max-width: 720px) {
  .transfer-period {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .transfer-account-filter,
  .transfer-load-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .transfer-period {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .transfer-account-filter,
  .transfer-load-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .transfer-receipt-preview {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .transfer-receipt-preview .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .transfer-history-card {
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .transfer-period {
    grid-template-columns: 1fr;
  }

  .transfer-load-btn {
    grid-column: auto;
  }

  .transfer-account-filter {
    grid-column: auto;
  }
}
