.surveys.index {
  .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    h1 {
      margin: 0;
    }
  }

  form {
    padding: 10px;
    background-color: #333;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 30px;

    .filter {
      display: flex;
      flex-direction: column;
      gap: 10px;

      .ss-value {
        --ss-animation-timing: 0;
      }
    }

    .proficiencies {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 10px;

      &.hidden {
        display: none;
      }

      .proficiency {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: #222;
        border-radius: 5px;
        padding: 10px;

        input {
          cursor: pointer;
        }

        .description {
          text-align: center;
          color: #999;
          font-size: 0.75em;
        }
      }
    }
  }

  #chart {
    &.hidden {
      display: none;
    }

    canvas {
      height: 200px;
      width: 100%;
    }
  }

  table {
    width: 100%;
    border-collapse: collapse;

    th,
    td {
      padding: 10px;
      text-align: left;

      .sort-link {
        text-decoration: none;

        &::after {
          font-family: "Font Awesome 6 Pro";
          font-weight: 900;
          margin-left: 5px;
        }

        &.asc::after {
          content: "\f077";
          text-decoration: none;
        }

        &.desc::after {
          content: "\f078";
        }
      }
    }

    tr:has(td) {
      &:nth-child(odd) {
        background-color: #333;
      }
    }
  }
}