@import 'base';

.new-mission {
  position: relative;

  &__selected-users {
    width: 400px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: stretch;

    &-title {
      padding: 16px;
      font-weight: bold;

      &-counter {
        color: color(black, bright);
        padding-left: 10px;
      }
    }
  }

  .new-mission__selected-user {
    height: 50px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    &.new-mission__selected-user_unavailable {
      background-color: color(important, bright);
      color: white;
    }

    &:hover {
      .new-mission__selected-user-remove {
        visibility: visible;
      }
    }
  }

  .new-mission__selected-user-remove {
    @extend %link;
    visibility: hidden;
    margin: 10px;
    flex-shrink: 0;
    width: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  &__fields {
    display: flex;
    flex-wrap: wrap;

    &-group {
      margin-right: 30px;
    }
  }

  &__workplace-input {
    display: flex;
  }

  &__workplace-address {
    display: flex;
    align-items: center;
    margin: 0 10px;

    &.new-mission__workplace-address_empty {
      color: color(black, bright);
    }

    &-icon {
      font-size: 20px;
      padding: 5px;
    }

    &-label {
      font-size: 10px;
    }
  }

  .new-mission__new-workplace {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .new-mission__new-workplace-inputs {
    width: 700px;
    display: flex;
    flex-wrap: wrap;
  }

  .new-mission__new-workplace-input {
    @extend %simple-input;
    border: none;
    margin-bottom: 10px;
    width: 33%;
  }

  .new-mission__new-workplace-button-container {
    display: flex;
    justify-content: flex-end;
  }

  &__preview {
    width: 400px;

    &-info {
      display: flex;
      margin-left: 50px;
      align-items: center;

      &-icon {
        font-size: 24px;
        margin-right: 15px;
      }

      :last-of-type {
        margin-bottom: 10px;
      }
    }

    &-field {
      &-title {
        font-weight: bold;
        padding-right: 15px;
      }
    }

    &-button {
      display: flex;
      padding: 10px;
      justify-content: center;
    }
  }

  &__send-button-container {
    display: flex;
    justify-content: center;
  }

  &__inputs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    &-input {
      display: flex;
      align-items: center;

      &-label {
        font-size: 16px;
        display: flex;
        padding: 5px;

        &-icon {
          padding: 5px;
        }
      }
    }
  }

  &__status {
    display: flex;
    align-items: center;

    &-radio {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;

      &-qualification {
        $size: 12px;
        @include circle($size);
        position: absolute;
        bottom: 0;
        right: 0;
        font-size: $size;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;
        color: color(primary);
      }
    }

    &-label {
      font-size: 20px;
      padding-left: 14px;
    }
  }

  &__title {
    color: color(black, light);
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
  }

  &__top {
    display: flex;
    justify-content: space-between;
  }

  &__popover-delete {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    font-size: 14px;

    &__text {
      padding: 30px 10px;
    }
  }

  &__header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: solid 1px color(black, translucent);
    padding: 0px 6px;
  }

  &__buttons {
    display: flex;

    .new-mission__button {
      margin: 2px;
    }
  }

  &__new-message {
    width: 500px;
    height: 600px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 10px;

    &-input {
      flex: 1;
      padding: 10px;
      border-radius: 10px;
      margin: 10px 0px;
    }
  }

  &__assign-mission {
    $width: 340px;

    &-warning {
      width: $width;
      margin: 20px;
      display: flex;
      align-items: center;

      &-icon {
        padding-right: 20px;
        color: color(attention);
      }
    }

    &-text {
      width: $width;
      margin: 20px;
    }

    &-button {
      display: flex;
      justify-content: center;
      margin: 10px;
    }
  }

  &.new-mission_none {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    color: color(black, bright);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
  }

  &.new-mission_main {
    @extend %block;
    flex: 1;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}
