.toolbox {
  position: fixed;
  width: 350px;
  border-left: 1px solid @gray-3;
  background: @white;
  z-index: 4000;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;

  &.two-col {
    width: 601px;
  }

  .toolbox-bulk-form {
    .range-picker {
      height: 27px;
    }

    .range-picker__trigger,
    .multi-date-picker__trigger {
      border: none;
      border-bottom: 1px solid @gray-3;
      background: transparent;
      .border-radius(0);

      &.is-triggered {
        border: none;
        border-bottom: 1px solid @blue;
      }
    }
  }
}

.toolbox__header {
  background: @white;
  height: @toolbox-header-height;
  display: flex;
  flex-direction: row;
  align-items: center;

  .h3 {
    font-weight: normal;
    margin: 0;
    padding: 0;
  }

  .toolbox__header-controls {
    margin-left: auto;
  }
}

.toolbox-header {
  background: @white;
  height: @toolbox-header-height;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;

  &__title {
    display: flex;
    flex: 5;

    &-text {
      display: grid;
      margin-left: 10px;

      .h4 {
        font-weight: normal;
        margin: 0;
        font-size: 13px;
        overflow-x: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .h3 {
        margin: 0;
      }
    }

    &-icon {
      border-radius: 10px;
      min-width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;

      [class^="icon-"],
      [class*=" icon-"] {
        color: @white;
        font-size: 20px;
      }
    }
  }

  .toolbox-header__controls {
    flex: 1;
    display: flex;
    justify-content: space-between;
    margin-left: auto;
    font-weight: bold;
    font-size: 20px;
    color: @blue-23;
    cursor: pointer;
  }

  &__close {
    flex: 0.5;
    font-weight: bold;
    font-size: 22px;
    color: @blue-23;
    cursor: pointer;
  }
}

.toolbox__content {
  padding: 0;
  height: @toolbox-height;

  .timeline-preferences-form {
    overflow-y: auto;
    height: 100%;
    justify-content: flex-start;
  }

  .toolbox__content-inner {
    height: 100%;
  }

  .h3 {
    margin: 0 0 5px;
    font-size: @font-size-medium;
    font-weight: bold;
  }

  .toolbox__two-col {
    height: @toolbox-height;
    padding: 0;

    .with-footer & {
      height: @toolbox-height-wfooter;
    }
  }

  .first-col {
    width: 300px;
    float: left;
    height: 100%;
    overflow-y: auto;
    padding: 15px 10px 15px 15px;
  }

  .second-col {
    width: 300px;
    float: left;
    height: 100%;
  }
}

.toolbox__footer {
  height: @toolbox-footer-height;
  border-top: 1px solid @gray-3;
  .clearfix();
  padding: 6px 15px;
  display: flex;

  button {
    margin-left: auto !important;
    width: 120px;
    flex-shrink: 0;
  }

  &-missing-fields-message {
    display: flex;
    flex-direction: column;
    color: @red;
    overflow: hidden;

    span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}

.toolbox-bulk-form label {
  font-size: @font-size-xsmall;
  margin-bottom: 7px;
  display: inline-block;
  color: @gray-5;
}

.toolbox-bulk-form .required .input {
  input[type="text"],
  input[type="password"],
  textarea {
    border-bottom: 1px solid @red !important;
  }
}


.toolbox-bulk-form .deviates .input {
  input[type="text"],
  input[type="password"],
  textarea {
    border-bottom: 1px solid @yellow !important;
  }
}

.toolbox-bulk-form .input {
  position: relative;
  margin-bottom: 7px;
  border: 1px solid @gray-3;
  border-bottom: none;

  label {
    margin-bottom: 0;

    &.top-label {
      width: 100%;

      bdi {
        padding: 4px 5px;
        display: inline-block;
      }
    }
  }

  input[type="text"],
  input[type="password"],
  textarea {
    border: none;
    border-bottom: 1px solid @gray-3;
    padding: 3px 0 6px 5px;
    height: auto;
    line-height: normal;
    margin-bottom: 0;
    background-color: @white;
    .border-radius(0);

    &:focus {
      outline: none;
      border-bottom: 1px solid @blue-light;
    }

    &.error {
      border-bottom: 1px solid @red !important;
    }
  }

  input[type="checkbox"],
  input[type="radio"] {
    margin-left: 0;
  }

  select {
    .selectCustom(30px);
    .border-radius(0);
    max-width: none;
    margin-top: 3px;
    border: none;
    border-bottom: 1px solid @gray-3;
    font-size: @font-size-medium;

    &:focus {
      outline: none;
      border-bottom: 1px solid @blue-light;
    }

    .error& {
      border: 1px solid @red;
    }
  }

  .error {
    font-size: @font-size-small;
    display: inline-block;
    margin-top: 3px;
    color: @red;
  }

  .autocomplete {
    position: absolute;
    top: 38px !important;
  }

  .input__action {
    right: 7px;
    top: 26px;
  }

  .input__controls {
    padding: 0 4px 2px;
    width: 100%;
    border-top: none;
    background: @gray-1;
    border-bottom: 1px solid @gray-3;
  }

  .input-ac--single {

    background: transparent;
    padding: 0;
    margin: 3px 0 0 0;
    border: none;
    height: 25px;
    min-height: auto;

    .input-ac__menu {
      top: 25px;
    }

    input[type="text"] {
      min-width: inherit;
      max-width: none;
      width: 100%;
      margin-left: 0;
      margin-bottom: 0;
    }

  }

  .invalid-notice {
    font-size: @font-size-xsmall;
    color: @red;
    display: inline-block;
    padding: 3px 5px;
    width: 100%;
    border-bottom: 1px solid @red;
    background: @red-hover;
  }

  .deviate-notice {
    font-size: @font-size-xsmall;
    color: @black;
    display: inline-block;
    padding: 3px 5px;
    width: 100%;
    border-bottom: 1px solid @yellow;
    background: @yellow-hover;
  }
}

.toolbox__add-new-media-type {
  display: inline-block;
}

.toolbox__controls {
  margin-top: 10px;
}
