.criterionRelatedData {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  padding: 0 0 10px 0;

  > h3 {
    margin: 0;
  }
}

.criterionRelatedData__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  background-color: #f5f5f5;
  font-size: 14px;

  ul {
    margin: 0;
    padding-left: 15px;

    li a {
      text-decoration: underline;
      color: var(--global-textColor);
    }
  }

  table, th, td {
    border: 1px solid var(--table-border-color);
    border-collapse: collapse;
    text-align: left;
  }
  
  th, td {
    padding: 3px;
  }
}

.file-upload-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #f8f9fa;

  .file-name {
    font-size: 0.875rem;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 0.5rem;

    .pi-file {
      margin-right: 0.5rem;
    }
  }

  .p-button {
    min-width: auto;
    padding: 0.25rem;
  }
}

.file-upload-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px dashed #007ad9;
  background-color: transparent;
  color: #007ad9;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s;

  &:hover {
    background-color: rgba(0, 122, 217, 0.04);
  }
}