﻿html body .gdl-donations-wrapper {
  max-width: 1000px;
  margin: 1.5rem auto;
  font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
  color: #0f172a;
  color-scheme: light;
}

html body .gdl-filter-reset,
html body .gdl-level-reset,
html body .gdl-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

html body .gdl-filter-reset,
html body .gdl-level-reset,
html body .gdl-filter-submit {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

html body .gdl-table-wrap {
  overflow-x: auto;
}

html body .gdl-donations-wrapper .gdl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9rem;
  color: #0f172a !important;
}

html body .gdl-donations-wrapper .gdl-table thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 9px 12px;
  text-align: left;
  font-weight: 700;
  color: #0f172a !important;
}

html body .gdl-donations-wrapper .gdl-table thead th.gdl-col-index {
  width: 64px;
  text-align: right;
}

html body .gdl-donations-wrapper .gdl-table thead th.gdl-col-amount {
  text-align: right;
}

html body .gdl-filter-reset:focus,
html body .gdl-level-reset:focus,
html body .gdl-filter-submit:focus {
  outline: 2px solid #2563eb33;
  outline-offset: 2px;
}

html body .gdl-sort-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  color: #0f172a !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

html body .gdl-sort-label {
  display: inline;
}

html body .gdl-sort-link:hover {
  color: #0f172a !important;
}

html body .gdl-sort-link.is-active {
  color: #0f172a !important;
}

html body .gdl-sort-indicator {
  display: inline-block;
  margin-left: 4px;
  min-width: 14px;
  color: #2563eb;
  text-align: center;
  font-size: 0.8em;
}

html body .gdl-donations-wrapper .gdl-table thead th.gdl-col-index .gdl-sort-link,
html body .gdl-donations-wrapper .gdl-table thead th.gdl-col-amount .gdl-sort-link {
  justify-content: flex-end;
}

html body .gdl-donations-wrapper .gdl-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  color: #0f172a !important;
  line-height: 1.35;
  text-align: left !important;
}

html body .gdl-donations-wrapper .gdl-table tbody tr:nth-child(odd) td {
  background: #ffffff !important;
}

html body .gdl-donations-wrapper .gdl-table tbody tr:nth-child(even) td {
  background: #f9fafb !important;
}

html body .gdl-donations-wrapper .gdl-table tbody tr:last-child td {
  border-bottom: none;
}

html body .gdl-donations-wrapper .gdl-table tbody tr:hover td {
  background: #eef2ff !important;
}

html body .gdl-donations-wrapper .gdl-table .gdl-index {
  text-align: right !important;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

html body .gdl-donations-wrapper .gdl-table .gdl-amount,
html body .gdl-donations-wrapper .gdl-table .gdl-col-amount {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  color: #0f172a !important;
  font-weight: 600;
}

html body .gdl-empty-row {
  text-align: center;
  color: #475569;
  padding: 18px 12px !important;
}

html body .gdl-donations-wrapper .gdl-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

html body .gdl-donations-wrapper .gdl-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

html body .gdl-donations-wrapper .gdl-pagination li {
  margin: 0;
}

html body .gdl-donations-wrapper .gdl-pagination a.page-numbers,
html body .gdl-donations-wrapper .gdl-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 500;
  background: #f8fafc !important;
  color: #0f172a !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

html body .gdl-donations-wrapper .gdl-pagination a.page-numbers:hover {
  background: #f1f5f9 !important;
  border-color: #e2e8f0;
}

html body .gdl-donations-wrapper .gdl-pagination span.page-numbers.current {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a;
}

html body .gdl-donations-wrapper .gdl-pagination span.dots {
  background: transparent !important;
  border: 1px dashed #e2e8f0;
  color: #64748b;
}

@media (max-width: 760px) {
  html body .gdl-filter-reset,
  html body .gdl-level-reset,
  html body .gdl-filter-submit {
    width: 100%;
  }

  html body .gdl-filters-main,
  html body .gdl-level-filter {
    flex-direction: column;
    align-items: stretch;
  }

  html body .gdl-donor-filter,
  html body .gdl-track-filter,
  html body .gdl-donor-search,
  html body .gdl-level-filter select {
    width: 100%;
    max-width: none;
  }

  html body .gdl-donations-wrapper .gdl-table thead tr:first-child th {
    position: static;
  }
}

@media (prefers-color-scheme: dark) {
  html body .gdl-donations-wrapper {
    color: #0f172a;
  }

  html body .gdl-donations-wrapper .gdl-table {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #e2e8f0;
  }

  html body .gdl-donations-wrapper .gdl-table thead tr:first-child th,
  html body .gdl-donations-wrapper .gdl-table tbody td,
  html body .gdl-donations-wrapper .gdl-pagination a.page-numbers,
  html body .gdl-donations-wrapper .gdl-pagination span.page-numbers {
    color: #0f172a !important;
  }
}

html body .gdl-level-filter {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

html body .gdl-filter-submit {
  cursor: pointer;
  font-family: inherit;
}

html body .gdl-filters-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

html body .gdl-level-filter label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

html body .gdl-donor-filter {
  flex: 1 1 320px;
  max-width: 380px;
}

html body .gdl-track-filter {
  margin-left: auto;
}

html body .gdl-donor-search-wrap {
  position: relative;
  width: 100%;
}

html body .gdl-donor-search {
  width: 100%;
  min-width: 260px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
}

html body .gdl-level-filter select {
  min-width: 210px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
}

html body .gdl-donor-search:focus,
html body .gdl-level-filter select:focus {
  outline: 2px solid #2563eb22;
  outline-offset: 1px;
  border-color: #93c5fd;
}

html body .gdl-donor-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

html body .gdl-donor-suggestion {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
}

html body .gdl-donor-suggestion + .gdl-donor-suggestion {
  border-top: 1px solid #eef2f7;
}

html body .gdl-donor-suggestion:hover,
html body .gdl-donor-suggestion:focus {
  background: #eff6ff;
  outline: none;
}

html body .gdl-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

html body .gdl-status-publish {
  background: #dcfce7;
  color: #166534;
}

html body .gdl-status-pending {
  background: #fef3c7;
  color: #92400e;
}

html body .gdl-status-failed,
html body .gdl-status-cancelled,
html body .gdl-status-revoked {
  background: #fee2e2;
  color: #991b1b;
}

html body .gdl-status-refunded,
html body .gdl-status-abandoned,
html body .gdl-status-preapproval {
  background: #e0f2fe;
  color: #0c4a6e;
}

@media (max-width: 760px) {
  html body .gdl-filters-main,
  html body .gdl-level-filter {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  html body .gdl-level-filter {
    gap: 10px !important;
    margin-bottom: 14px;
  }

  html body .gdl-donor-filter,
  html body .gdl-track-filter {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
  }

  html body .gdl-donor-search,
  html body .gdl-level-filter select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
