.dialog {
  background: $bg-light;
  box-shadow: 1px .5px 3px rgba(0, 0, 0, .29), -.5px .5px .5px rgba(0, 0, 0, .2);
  float: none;
  left: calc(199px + ((100vw - 199px) / 2) - 226px);
  padding: 3px 5px;
  position: absolute;
  margin: 0 auto;
  width: 100%;
  max-width: 432px;
  z-index: 999999999;
  top: 34px;

  &:not(.dialog-window) {
    z-index: 999;
    border-radius: 1.5px 1.5px 0 0;
    left: 194px;
    border: 1px solid $color-ddd;
    width: calc(100vw - 208px);
    box-shadow: none;
    max-width: none;
    margin-top: 2px;
    min-height: 25px;
    border-bottom: 0;
    padding: 0;

    form {
     padding: 1px 3px;
    }
  }

  i {
    margin-left: 4px;
    font-size: 15px;
  }

  button {
    min-width: 13%;
    width: auto;
    margin-left: 8px;
    line-height: 13px;
    margin-top: 2px;
    font-size: 12px;

    img {
      width: 12px;
      top: -1px;
      position: relative;
      margin: 0;
    }

    &.disabled {
      pointer-events: none;
      opacity: .5;
    }
  }

  &:not(.dialog-window) {
    button {
      width: 55px;
      min-width: auto;

      img {
        width: 13px;
      }

      &.button-close-prompt {
        width: 18px;
        max-width: 18px;
        min-width: 18px;
        text-indent: -2.5px;

        i {
          font-size: 11px;
          left: -6.5px;
          position: relative;
          float: left;
        }
      }
    }
  }

  select {
    width: 77px;
    height: 17px;
    font-size: 11px;
    position: relative;
    bottom: -1px;
  }

  input {

    &[type="checkbox"] {
      vertical-align: middle;
      margin: 0;
    }
    &[type='text'] {
      border: none;
      line-height: initial;
      border-radius: $border-radius-inputs;
      box-shadow: 0 1px 1px rgba(0, 0, 0, .25) inset;
      font-size: 12px;
      padding: 3px 4px 2.5px 4px;
      width: 18%;

      &:first-child {
        width: 57%;
        margin-right: 0;
      }
    }
  }

  .tags-input {
    line-height: initial;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .25) inset;
    font-size: 12px;
    padding: 3px 4px 2.5px 4px;
    width: 66%;
    background: white;
    white-space: nowrap;
    overflow: hidden;
    float: left;
    margin-right: 2%;

    //placeholder for fake contenteditable input
    &:empty:before {
      color: $color-muted;
      content: attr(placeholder);
    }
    br {
      display: none;
    }

    * {
      display: inline;
      white-space: nowrap;
    }

    b {
      font-weight: normal;
      position: relative;
      bottom: -.07em;
    }

    span {
      background: $bg-tags;
      border-radius: $border-radius-tags;
      border: $border-tags;
      padding: 0 3px 1px 3px;
      margin: 1px 0 0 0;
    }
  }

  &.dialog-window {
    height: calc(100vh - 39px);
    position: fixed;
    left: 190px;
    border: 0;
    box-shadow: none;
    top: 10px;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: white;
    z-index: 9999;
    max-width: calc(100vw - 200px);
    border: 1px solid $color-ccc;
  }

  .window {
    float: none;
    height: calc(100vh - 65px);
    overflow: auto;
    background: white;
    font-size: 12.5px;
    margin: 0 auto;
    margin-top: -4px;

    .logs {
      padding: 1px 6px;

      &:first-child {
        margin-top: 5px;
      }
    }
    .logs-error {
      color: $color-error;
    }

    .ng-ace-editor {
      height: 100%;
    }
  }
}

.prompt-history-item {
  line-height: 23px;
  width: 100%;
  margin: 0 auto;

  &:first-child {
    padding-top: 3px;
  }
  &:hover {
    &:not(.active) {
      background: $bg-lighter;
    }
  }

  &.active {
    background-color: $bg-muted-invisible;
  }

  i {
    font-size: 13px;
    color: $color-primary;

    &.fa-caret-right {
      color: $color-222;
    }
  }
}

.prompt-history-status {
  width: 100%;
  margin: 0 auto;
  float: none;
  height: 300px;
  overflow: auto;
}

.prompt-window-infos {
  font-size: 12.5px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}
.prompt-window-holder {
  line-height: 100px;
  text-align: center;
}
.prompt-window-options {
  padding: 0 6px;
  width: 100%;
  display: inline-block;
  background: $bg-light;
  margin: 0 auto;
  line-height: 25px;
  float: none;
  height: 30px;

  i {
    margin-left: 0;
    color: $color-777;
    margin-right: 5px;
    font-size: 13px;
  }

  button {
    height: 19.5px;
    line-height: 13px;
    font-size: 12px;
    float: right;
    margin-top: 3px;
  }

  img {
    width: 13px;
  }

  .prompt-resize-holder {
    width: 130%;
    height: 40px;
    z-index: -1;
    position: absolute;
    bottom: -10px;
    left: -5%;

    &:hover, &:focus, &:active {
      cursor: ns-resize;
    }
  }
}

.prompt-search {
  font-size: 11.5px;
  margin-top: 3px;
  color: $color-muted;
  overflow: hidden;
  overflow-y: auto;
  max-height: 39.8vh;
  border-bottom: 1px solid $color-ddd;
  box-shadow: 10px -10px 10px $bg-eee inset;

  .prompt-search-loader {
    color: $color-222;
    padding: 1.5px 3.5px 2.5px 3.5px;

    img {
      vertical-align: bottom;
      margin: 0;
      margin-right: 2px;
      width: 16px;
    }
  }

  h5 {
    color: $color-222;
    margin: 0;
    padding: 0;
    margin-top: 5px;
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 3px;
  }

  .prompt-search-item {
    padding: 3px 6px;
    border-bottom: 1px solid $bg-muted-invisible;

    &:last-child {
      border: 0;
    }

    &:hover {
      background: $bg-muted-invisible;
    }
  }
}
