#gateway-transaction-report-nav span {
  min-width: 0;
  white-space: normal;
  text-align: left;
}

#gateway-transaction-report-nav svg {
  flex-shrink: 0;
}

.gateway-report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.gateway-report-summary > .panel {
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
}

.gateway-report-currency {
  margin: 0 0 8px;
  font-size: 13px;
}

.gateway-report-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.gateway-report-totals dt {
  color: var(--muted, #637186);
  font-size: 12px;
}

.gateway-report-totals dd {
  margin: 3px 0 0;
  font-size: clamp(14px, 2.4vw, 19px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gateway-report-totals small {
  display: block;
  margin-top: 2px;
  color: var(--muted, #637186);
  font-size: 11px;
  font-weight: normal;
}

#gateway-transaction-report-page .turnover-report-filters label:has(select) {
  min-width: min(100%, 150px);
}

#gateway-transaction-report-page .turnover-report-filter-actions {
  align-items: center;
}

#gateway-transaction-report-page .turnover-report-filter-actions button {
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
}

.gateway-report-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.gateway-report-table table {
  min-width: 780px;
}

.gateway-report-table th,
.gateway-report-table td {
  white-space: nowrap;
}

.gateway-report-table td {
  vertical-align: middle;
}

.gateway-report-table .gateway-report-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.gateway-report-reference {
  font-family: ui-monospace, monospace;
  font-size: .88em;
}

.gateway-report-status {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  background: #f1f3f6;
  color: #465367;
}

.gateway-report-status[data-status="successful"] { background: #e7f6ec; color: #24643e; }
.gateway-report-status[data-status="rejected"],
.gateway-report-status[data-status="failed"] { background: #fbeceb; color: #922d26; }
.gateway-report-status[data-status="processing"],
.gateway-report-status[data-status="submitted"] { background: #fff3dc; color: #80550b; }

.dark .gateway-report-status { background: #313640; color: #e7ebf6; }
.dark .gateway-report-status[data-status="successful"] { background: #1d392d; color: #9bdfb8; }
.dark .gateway-report-status[data-status="rejected"],
.dark .gateway-report-status[data-status="failed"] { background: #482d2d; color: #ffbab0; }
.dark .gateway-report-status[data-status="processing"],
.dark .gateway-report-status[data-status="submitted"] { background: #40351e; color: #f8d699; }

.gateway-report-status-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gateway-report-table button.gateway-report-recheck {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #637186);
  cursor: pointer;
  box-shadow: none;
}

.gateway-report-table button.gateway-report-recheck:hover,
.gateway-report-table button.gateway-report-recheck:focus-visible {
  border-color: currentColor;
  color: var(--text, #243149);
}

.gateway-report-table button.gateway-report-recheck:disabled {
  opacity: .55;
  cursor: wait;
}

.gateway-report-recheck svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gateway-report-row-feedback {
  display: block;
  margin-top: 2px;
  max-width: 22ch;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--muted, #637186);
  font-size: 11px;
}

.gateway-report-row-feedback[data-state="error"] { color: #922d26; }
.dark .gateway-report-row-feedback[data-state="error"] { color: #ffbab0; }

@media (max-width: 700px) {
  #gateway-transaction-report-page .turnover-report-filters label:not(:first-child) {
    flex: 1 1 125px;
    min-width: 0;
  }

  #gateway-transaction-report-page .turnover-report-filters label:first-child,
  #gateway-transaction-report-page .turnover-report-filters label:has(select[name="domain"]) {
    flex-basis: 100%;
    min-width: 0;
  }

  .gateway-report-table time span {
    display: block;
  }

  .gateway-report-table th,
  .gateway-report-table td {
    padding-inline: 9px;
  }
}
