.tests-non-regression-module {
  color: #1f2933;
}

.tests-non-regression-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tests-non-regression-header h2 {
  margin: 0;
}

.tests-non-regression-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tests-non-regression-subtitle,
.tests-non-regression-meta {
  color: #64748b;
  margin: 4px 0 0;
}

.tests-non-regression-feedback {
  margin-bottom: 12px;
}

.tests-non-regression-dashboard {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 16px;
}

.tests-non-regression-metric {
  border: 1px solid #d6dee6;
  border-radius: 6px;
  padding: 12px;
}

.tests-non-regression-metric-label {
  color: #64748b;
  display: block;
  font-size: 0.82rem;
}

.tests-non-regression-metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}

.tests-non-regression-metric-success {
  border-color: #8cc7a1;
}

.tests-non-regression-metric-warning {
  border-color: #e5c46b;
}

.tests-non-regression-metric-danger {
  border-color: #e99191;
}

.tests-non-regression-progress {
  height: 10px;
  margin-top: 8px;
}

.tests-non-regression-filter-form {
  align-items: flex-end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 1fr) auto;
  margin-bottom: 16px;
}

.tests-non-regression-critical-filter {
  margin-bottom: 8px;
}

.tests-non-regression-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tests-non-regression-table-wrap {
  overflow-x: auto;
}

.tests-non-regression-table th,
.tests-non-regression-table td {
  vertical-align: middle;
}

.tests-non-regression-table code {
  color: #334155;
  font-size: 0.78rem;
}

.tests-non-regression-meta,
.tests-non-regression-comment {
  font-size: 0.78rem;
}

.tests-non-regression-comment {
  color: #334155;
  margin-top: 4px;
}

.tests-non-regression-badge {
  border-radius: 6px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
}

.tests-non-regression-badge-muted {
  background: #edf2f7;
  color: #334155;
}

.tests-non-regression-badge-info {
  background: #d7ecf7;
  color: #164e63;
}

.tests-non-regression-badge-success {
  background: #dff3e7;
  color: #14532d;
}

.tests-non-regression-badge-warning {
  background: #fff1c2;
  color: #713f12;
}

.tests-non-regression-badge-danger {
  background: #fde2e2;
  color: #991b1b;
}

.tests-non-regression-run-cell {
  min-width: 280px;
}

.tests-non-regression-run-cell .form-control {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .tests-non-regression-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tests-non-regression-header-actions {
    justify-content: stretch;
  }

  .tests-non-regression-header-actions .btn {
    width: 100%;
  }

  .tests-non-regression-dashboard,
  .tests-non-regression-filter-form {
    grid-template-columns: 1fr;
  }
}
