.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(160px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.changes-filters {
  grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(145px, 0.7fr)) auto;
}

.filters label {
  display: grid;
  gap: 6px;
}

.filters span {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.3;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d0d7de;
  border-radius: 6px;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

th {
  background: #f6f8fa;
  color: #374151;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.nowrap {
  white-space: nowrap;
}

.value-cell {
  max-width: 320px;
  overflow-wrap: anywhere;
}

.target-list {
  display: grid;
  gap: 4px;
}

.status-label {
  display: inline-block;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  padding: 2px 8px;
  color: #374151;
  white-space: nowrap;
}

.status-label.success,
.status-label.bound {
  border-color: #a7d8bd;
  color: #176a3a;
}

.status-label.error,
.status-label.failed {
  border-color: #f0b4ae;
  color: #b42318;
}

.status-label.skipped,
.status-label.pending,
.status-label.unbound {
  border-color: #d0d7de;
  color: #667085;
}

.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: #4b5563;
}

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

  .filters button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .filters,
  .changes-filters {
    grid-template-columns: 1fr;
  }
}
