.validate-badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 0.375rem;
}

.validate-badge--valid {
  background-color: #198754;
  color: #fff;
}

.validate-badge--invalid {
  background-color: #dc3545;
  color: #fff;
}

.validate-badge--error {
  background-color: #ffc107;
  color: #000;
}

.validate-badge--pending {
  background-color: #6c757d;
  color: #fff;
}

.validate-badge--running {
  background-color: #0d6efd;
  color: #fff;
}

.validate-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.validate-badge i {
  margin-right: 4px;
}


.validate-page {
  max-width: 980px;
}

.validate-page__header {
  margin-bottom: 24px;
}

.validate-page__title {
  margin: 0 0 6px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}

.validate-page__subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

.validate-summary {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.validate-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.validate-summary__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.validate-summary__text {
  margin: 0;
  color: #374151;
  font-size: 15px;
}

.validate-errors {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.validate-error-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.validate-error-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.validate-error-card__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.validate-error-card__description {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.validate-error-card__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.validate-preview-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 18px;
}

.validate-preview-grid {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.validate-preview-grid th,
.validate-preview-grid td {
  border: 1px solid #d9dee7;
  padding: 8px 10px;
  min-width: 88px;
  height: 42px;
  font-size: 13px;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.validate-preview-grid thead th {
  background: #f5f7fa;
  font-weight: 700;
}

.validate-preview-grid__index {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 52px !important;
  background: #f5f7fa;
}

.validate-preview-grid td.is-error {
  background: #e5484d;
  color: #fff;
  font-weight: 700;
}

.validate-occurrences__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.validate-occurrences__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.validate-occurrences__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid #eef2f6;
}

.validate-occurrences__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.validate-occurrences__meta {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.validate-occurrences__message {
  color: #101828;
  font-size: 14px;
  line-height: 1.45;
}

.validate-error-card__note {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
}

.validate-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.validate-actions__button {
  min-width: 170px;
}

@media (max-width: 768px) {
  .validate-page__title {
    font-size: 30px;
  }

  .validate-summary__top,
  .validate-error-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.validate-rules-details {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

.validate-rules-details summary {
  cursor: pointer;
  font-weight: 600;
}

.validate-rules-details[open] summary {
  margin-bottom: 12px;
}

.validate-rules-details__content h4 {
  margin: 14px 0 5px;
  font-size: 14px;
}

.validate-rules-details__content ul {
  margin-bottom: 10px;
  padding-left: 20px;
}