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

#activations-edit-overlay {
  position: fixed;
  inset: 0 0 0 248px;
  z-index: 70;
  background: #f5f7fb;
  overflow: auto;
  color: #1f2937;
}

#activations-edit-overlay * {
  box-sizing: border-box;
}

.activations-edit-overlay .activations-edit-shell {
  display: block;
  max-width: none;
  min-height: 100%;
  padding: 8px 10px 12px;
}

.activations-edit-overlay .payments-report-card {
  height: calc(100vh - 20px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.activations-edit-overlay .payments-report-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px 7px;
  margin: 0;
  border-bottom: 1px solid #eef2f7;
}

.activations-edit-overlay .payments-report-kicker {
  margin-bottom: 3px;
  font-size: 9px;
  letter-spacing: .18em;
}

.activations-edit-overlay .payments-report-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.activations-edit-overlay .payments-report-subtitle {
  margin: 3px 0 0;
  max-width: none;
  font-size: 12px;
  line-height: 1.25;
}

.activations-edit-overlay .payments-edit-meta {
  flex: 0 0 auto;
  min-width: auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f8fafc;
}

.activations-edit-overlay .payments-edit-meta-line {
  font-size: 12px;
  font-weight: 700;
}

.activations-edit-overlay .payments-report-filters-form {
  flex: 0 0 auto;
}

.activations-edit-overlay .payments-report-filters,
.activations-edit-overlay .payments-edit-filters {
  display: grid;
  grid-template-columns: minmax(116px, .85fr) minmax(135px, 1fr) minmax(150px, 1.05fr) minmax(145px, 1fr) minmax(92px, .62fr) minmax(105px, .72fr) auto;
  gap: 6px;
  align-items: end;
  padding: 8px 12px 6px;
}

.activations-edit-overlay .payments-report-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.activations-edit-overlay .payments-report-field span,
.activations-edit-overlay .payments-report-length,
.activations-edit-overlay .payments-report-length span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  color: #404756;
}

.activations-edit-overlay .payments-report-field input,
.activations-edit-overlay .payments-report-field select,
.activations-edit-overlay .payments-report-length select {
  width: 100%;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  outline: none;
}

.activations-edit-overlay .payments-edit-filter-actions {
  align-self: end;
}

.activations-edit-overlay .payments-edit-filter-actions .ghost-button,
.activations-edit-overlay .ghost-button {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
}

.activations-edit-overlay .payments-report-toolbar,
.activations-edit-overlay .payments-edit-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  margin: 0;
  border-top: 1px solid #f3f5f8;
}

.activations-edit-overlay .payments-report-length {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.activations-edit-overlay .payments-report-length select {
  width: 70px;
}

.activations-edit-overlay .payments-report-pagination,
.activations-edit-overlay .payments-edit-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.activations-edit-overlay .payments-report-page-btn {
  min-height: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
}

.activations-edit-overlay .payments-report-page-meta {
  font-size: 12px;
  color: #475467;
  white-space: nowrap;
}

.activations-edit-overlay .payments-report-status,
.activations-edit-overlay .payments-edit-notice {
  flex: 0 0 auto;
  padding: 3px 12px 5px;
  font-size: 12px;
}

.activations-edit-overlay .payments-report-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 0 12px 10px;
}

.activations-edit-overlay .payments-report-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
  font-size: 11px;
}

.activations-edit-overlay .payments-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  padding: 6px 7px;
  border-top: 1px solid #edf2f7;
  border-bottom: 2px solid #edf2f7;
  color: #2f3747;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.activations-edit-overlay .payments-report-table tbody td,
.activations-edit-overlay .payments-report-table tfoot td {
  padding: 5px 7px;
  border-bottom: 1px solid #edf2f7;
  color: #374151;
  font-size: 11px;
  line-height: 1.2;
  vertical-align: middle;
  word-break: break-word;
}

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

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

.activations-edit-overlay .payments-report-table th:nth-child(1),
.activations-edit-overlay .payments-report-table td:nth-child(1) { width: 64px; }
.activations-edit-overlay .payments-report-table th:nth-child(2),
.activations-edit-overlay .payments-report-table td:nth-child(2) { width: 160px; }
.activations-edit-overlay .payments-report-table th:nth-child(3),
.activations-edit-overlay .payments-report-table td:nth-child(3) { width: 190px; }
.activations-edit-overlay .payments-report-table th:nth-child(4),
.activations-edit-overlay .payments-report-table td:nth-child(4) { width: 112px; }
.activations-edit-overlay .payments-report-table th:nth-child(5),
.activations-edit-overlay .payments-report-table td:nth-child(5),
.activations-edit-overlay .payments-report-table th:nth-child(6),
.activations-edit-overlay .payments-report-table td:nth-child(6) { width: 92px; }
.activations-edit-overlay .payments-report-table th:nth-child(7),
.activations-edit-overlay .payments-report-table td:nth-child(7) { width: 145px; max-width: 145px; white-space: normal; }
.activations-edit-overlay .payments-report-table th:nth-child(8),
.activations-edit-overlay .payments-report-table td:nth-child(8) { width: 58px; text-align: center; }
.activations-edit-overlay .payments-report-table th:nth-child(9),
.activations-edit-overlay .payments-report-table td:nth-child(9) { width: 82px; }
.activations-edit-overlay .payments-report-table th:nth-child(10),
.activations-edit-overlay .payments-report-table td:nth-child(10) { width: 70px; text-align: center; }

.activations-delete-btn,
.activations-edit-overlay .table-delete-x {
  min-height: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

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

  .activations-edit-overlay .activations-edit-shell {
    padding: 6px;
  }

  .activations-edit-overlay .payments-report-card {
    height: calc(100vh - 12px);
  }

  .activations-edit-overlay .payments-report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .activations-edit-overlay .payments-report-filters,
  .activations-edit-overlay .payments-edit-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.activations-edit-overlay .payments-report-table tbody tr {
  cursor: pointer;
}

.activations-edit-overlay .payments-report-table tbody tr:has(.activations-delete-btn:hover) {
  cursor: default;
}
