body.payments-report-active {
  overflow: hidden;
}

#payments-report-overlay {
  position: fixed;
  inset: 0 0 0 248px;
  z-index: 60;
  background: #f5f7fb;
  overflow: auto;
  color: #1f2937;
}

@media (max-width: 1100px) {
  #payments-report-overlay {
    inset: 0;
  }
}

#payments-report-overlay * {
  box-sizing: border-box;
}

.payments-report-shell {
  min-height: 100%;
  padding: 18px 20px 24px;
}

.payments-report-card {
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.payments-report-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid #eef2f7;
}

.payments-report-head-copy {
  min-width: 0;
}

.payments-report-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #b8862b;
  margin-bottom: 10px;
}

.payments-report-title {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
}

.payments-report-subtitle {
  margin: 10px 0 0;
  font-size: 16px;
  color: #667085;
  max-width: 760px;
}

.payments-report-meta {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 500;
  color: #667085;
  white-space: nowrap;
}

.payments-report-filters-form {
  margin: 0;
}

.payments-report-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1.1fr) minmax(220px, 1.2fr) auto;
  gap: 18px;
  padding: 18px 24px 14px;
  align-items: end;
}

.payments-report-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.payments-report-field span,
.payments-report-length,
.payments-report-search {
  font-size: 18px;
  color: #404756;
}

.payments-report-field input,
.payments-report-field select,
.payments-report-length select,
.payments-report-search input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #ffffff;
  color: #344054;
  font-size: 17px;
  outline: none;
}

.payments-report-field input:focus,
.payments-report-field select:focus,
.payments-report-length select:focus,
.payments-report-search input:focus {
  border-color: #6d97c6;
  box-shadow: 0 0 0 3px rgba(101, 146, 192, 0.16);
}

.payments-report-action {
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #5d8bbc;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.payments-report-action:hover {
  background: #4f7fad;
}

.payments-report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px 24px 14px;
}

.payments-report-length,
.payments-report-search {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.payments-report-length select {
  width: 96px;
}

.payments-report-search input {
  width: 220px;
}

.payments-report-status {
  padding: 0 24px 8px;
  font-size: 15px;
  color: #667085;
}

.payments-report-error {
  color: #b42318;
}

.payments-report-table-wrap {
  padding: 0 24px 18px;
}

.payments-report-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

.payments-report-table thead th {
  text-align: left;
  padding: 14px 10px;
  border-top: 1px solid #edf2f7;
  border-bottom: 2px solid #edf2f7;
  color: #2f3747;
  font-size: 17px;
  font-weight: 700;
}

.payments-report-table tbody td,
.payments-report-table tfoot td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f7;
  color: #374151;
  font-size: 16px;
  line-height: 1.35;
  vertical-align: top;
  word-break: break-word;
}

.payments-report-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.payments-report-table tbody tr:hover {
  background: #f4f7fb;
}

.payments-report-table tfoot td {
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
  border-top: 2px solid #d7ddea;
  border-bottom: 0;
  background: #ffffff;
}

.payments-report-table th:nth-child(1),
.payments-report-table td:nth-child(1) {
  width: 28%;
}

.payments-report-table th:nth-child(2),
.payments-report-table td:nth-child(2) {
  width: 10%;
}

.payments-report-table th:nth-child(3),
.payments-report-table td:nth-child(3) {
  width: 30%;
}

.payments-report-table th:nth-child(4),
.payments-report-table td:nth-child(4) {
  width: 8%;
}

.payments-report-table th:nth-child(5),
.payments-report-table td:nth-child(5) {
  width: 14%;
}

.payments-report-table th:nth-child(6),
.payments-report-table td:nth-child(6) {
  width: 10%;
}

.payments-report-table tfoot td:nth-child(5) {
  text-align: left;
}

.payments-report-table tfoot td:nth-child(6) {
  text-align: left;
}

.payments-report-link {
  color: #4f7fad;
  text-decoration: none;
}

.payments-report-link:hover {
  text-decoration: underline;
}

.payments-report-empty {
  padding: 26px 12px;
  color: #667085;
  text-align: center;
}

.payments-report-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 24px 22px;
}

.payments-report-page-btn {
  min-width: 160px;
  height: 54px;
  padding: 0 22px;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  background: #ffffff;
  color: #374151;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.payments-report-page-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.payments-report-page-meta {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .payments-report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payments-report-action {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 780px) {
  .payments-report-shell {
    padding: 12px;
  }

  .payments-report-head,
  .payments-report-toolbar,
  .payments-report-table-wrap,
  .payments-report-pagination,
  .payments-report-status {
    padding-left: 14px;
    padding-right: 14px;
  }

  .payments-report-filters {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .payments-report-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .payments-report-length,
  .payments-report-search {
    width: 100%;
    justify-content: space-between;
  }

  .payments-report-search input {
    width: 100%;
  }

  .payments-report-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .payments-report-page-btn {
    min-width: 0;
    width: calc(50% - 7px);
  }
}
