.pipeline-editor {
  &-stage{
    padding: 10px;
    border-radius: 3px;
    background-color: $pw;
    border: 1px solid $gray5;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    @include transition (position ease-in-out .3s);
    @include transition (box-shadow ease-in-out .2s);
    &:hover {
      background-color: transparent;
      box-shadow: 0 4px 4px rgba(0,0,0,0.15);
    }
    &-container {
      background-color: transparent;
      padding-top: 10px;
      &-is-dragging {
        background-color: transparent;
        cursor: move;
        .pipeline-editor-stage {
          background: $gray8;
          box-shadow: none;
        }
      }
    }
    &-draghandle {
      align-self: flex-start;
      color: $gray5;
      cursor: pointer;
      padding-right: 10px;
      padding-bottom: 10px;
      max-width: 10%;
      &:hover {
        color: $gray2;
      }
      &-is-hidden {
        visibility: hidden;
      }
    }
    &-contents {
      display: flex;
      flex-direction: row;
      max-width: 80%;
      &-editing {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
      }
    }
    &-label {
      text-transform: uppercase;
      font-weight: bold;
      font-size: 12px;
    }
    &-labelwrapper {
      display: flex;
      flex-direction:column;
      margin-right: 10px;
      min-width: 60px;
      overflow-x: hidden;
      &-args {
        flex-grow: 1;
      }
    }

    &-label-text {
      overflow-x: hidden;


      &-is-mono {
        @include monospace();
        overflow-x: hidden;
        text-overflow: ellipsis;
      }
    }
    &-service {
      width: 15%;
      display: flex;
      padding: 5px;
      flex-direction: column;
      justify-content: center;
      label {
        font-weight: bold;
        text-transform: uppercase;
        font-size: 12px;
      }
    }
    &-is-dragging {
      box-shadow: none;
      cursor: move;
    }
    &-action {
      width: 15%;
      display: flex;
      padding: 5px;
      flex-direction: column;
      justify-content: center;
      label {
        font-weight: bold;
        text-transform: uppercase;
        font-size: 12px;
      }
    }
    &-args {
      padding: 5px;
      width: 70%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      label {
        font-weight: bold;
        text-transform: uppercase;
        font-size: 12px;
      }
      textarea {
        min-height: 80px;
      }
    }
    &-let{
      padding: 5px;
      width: 70%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      label {
        font-weight: bold;
        text-transform: uppercase;
        font-size: 12px;
      }
      textarea {
        min-height: 80px;
      }
    }

    &-controls {
      align-self: center;
      display: flex;
      flex-direction: row;
      margin-left: auto;
      visibility: hidden;
    }
    &:hover{
      .pipeline-editor-stage-controls {
        visibility: visible;
      }
    }
  }
  &-downarrow {
    color: $gray5;
    font-size: 20px;
    text-align: center;
    padding: 20px 0 10px 0;
  }
  &-lastrow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-bottom: 40px;
    border-bottom: 1px solid $gray6;
    &-outputtype {
      &-is-hidden {
        display: none;
      }
      text-align: center;
      label {
        padding-right: 10px;
        font-size: 12px;
      }
    }
    &-addstage {
      font-weight: bold;
      font-size: 14px;
      text-align: center;
      cursor: pointer;
    }
  }
}
