.query-side-panel {
  position: relative;
  overflow: unset !important; // was unnecessary and broke close button positioning

  &__close-button {
    width: 24px;
    height: 24px;
    border: 1px solid $ui-fleet-black-25;
    border-radius: 12px;
    background-color: $core-white;
    position: absolute;
    top: 40px;
    left: -12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;

    img {
      transform: scale(0.5);
    }
  }

  &__header {
    margin: 0 0 $pad-small;
    font-size: $x-small;
    font-weight: $bold;
    color: $core-fleet-black;
  }

  &__choose-table {
    margin: 0 0 $pad-xlarge;

    .form-field {
      margin-bottom: $pad-medium;
    }

    .Select {
      margin: 0 0 $pad-small;
    }
  }

  &__description {
    font-size: $x-small;
    font-style: italic;
    color: $core-fleet-black;
    margin: 0;
  }

  &__platforms {
    font-size: $x-small;
    color: $core-fleet-black;
    list-style: none;
    margin: 0 0 $pad-xlarge;
    padding: 0;

    .fleeticon {
      font-size: 18px;
      margin-right: $pad-medium;
    }

    .icon {
      margin-right: $pad-medium;
      width: 20px;
      height: 20px;
    }

    li {
      height: 20px;
      display: flex;
      align-items: center;
      padding-bottom: $pad-medium;

      &:last-child {
        padding-bottom: 0;
      }
    }
  }

  &__columns,
  &__suggested-queries {
    margin: 0 0 $pad-large;
  }

  &__column-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  &__column-wrapper {
    display: flex;
    margin: 0 0 15px;
    padding-top: $pad-small;
    border-top: 1px solid $ui-fleet-blue-15;
  }

  &__suggestion {
    flex-grow: 1;
    font-size: $x-small;
    line-height: 1.71;
    letter-spacing: 0.5px;
    text-align: left;
    color: $core-fleet-black;
  }

  &__load-suggestion {
    align-self: center;
    padding: 1px 5px;
    margin: 0 0 0 10px;
  }
}

.query-column-list {
  &__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: $core-fleet-black;
    font-size: $x-small;
    padding: $pad-small 0;

    &:first-of-type {
      border: 0;
    }
  }

  &__name {
    border-radius: $border-radius;
    margin-right: $pad-small;
    font-size: $x-small;
    font-weight: $bold;
    color: $core-fleet-black;
  }

  &__description {
    flex-grow: 1;
    text-align: right;
  }

  &__type {
    font-size: $x-small;
    color: $core-fleet-black;
  }
}
