.remediation-dashboard {
  font-family: 'Helvatica';
  background: #f8f9fb;
  min-height: 100vh;
  padding: 24px 32px;
}

.page-header {
  h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
  }

  p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 24px;
  }
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kpi-label {
  font-size: 13px;
  color: #6b7280;
  display: block;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.text-blue {
  color: #3b82f6;
}

.text-red {
  color: #ef4444;
}

.content-row {
  display: flex;
  gap: 24px;
}

.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.filter-section {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.filter-icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;

  li {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;

    &:hover {
      background: #f3f4f6;
    }

    &.active {
      background: #eff6ff;
      color: #3b82f6;
      font-weight: 600;
      border-left: 3px solid #3b82f6;
    }
  }
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.checkbox-list {
  list-style: none;
  padding: 0;
  margin: 0;

  li {
    margin-bottom: 10px;
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;

  input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
  }
}

.items-panel {
  flex: 1;
}

.items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;

  h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
  }
}

.items-actions {
  display: flex;
  gap: 10px;
}

.btn-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;

  .sort-icon {
    width: 16px;
    height: 16px;
  }

  &:hover {
    background: #f9fafb;
  }
}

.btn-bulk-retry {
  padding: 8px 20px;
  background: #111827;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;

  &:hover {
    background: #1f2937;
  }
}

.item-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
}

.item-checkbox {
  padding-top: 4px;

  input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
  }
}

.item-content {
  flex: 1;
}

.item-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;

  .item-id {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
  }
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-outline {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.badge-high {
  background: #fee2e2;
  color: #dc2626;
}

.badge-medium {
  background: #fef3c7;
  color: #d97706;
}

.badge-low {
  background: #f3f4f6;
  color: #6b7280;
}

.item-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;

  .error-icon {
    width: 18px;
    height: 18px;
    color: #ef4444;
    flex-shrink: 0;
  }
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;

  .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .meta-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
  }
}

.item-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-shrink: 0;
}

.btn-view {
  padding: 8px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;

  &:hover {
    background: #f3f4f6;
  }
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #111827;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;

  .retry-icon {
    width: 14px;
    height: 14px;
  }

  &:hover {
    background: #1f2937;
  }
}

@media (max-width: 1024px) {
  .content-row {
    flex-direction: column;
  }

  .filters-sidebar {
    width: 100%;
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
