assistant {
  display: block;
  z-index: $assistant-z-index;
  height: 100%;
  width: 100%;
  color: var(--color-brand-dark);
  position: fixed;
  max-width: $assistant-width;
  top: $app-toolbar-height;
  right: 0;

  .assistant-wrapper{
    background: var(--color-ui-4);
    height: 100%;
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    max-width: $assistant-width;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    will-change: transform;
    @include slideAnimation();
    transform: none;
    z-index: 900;
  }

  label {
    opacity: 0.5;
  }

  select {
    color: var(--color-brand-dark);
  }

  select[disabled] {
    opacity: 0.5;
  }


  button {
    width: 100%;
    margin:0;
  }
  button[disabled] {
    opacity: 0.5;
  }

 

  pragma-group {
    border: $default-border-width-thin/2 solid var(--color-ui-2-80);
    border-radius: $default-border-radius;
    margin: $default-padding 0;

    .pragma-group-header:before{
      content: none;
    }
    .pragma-group-body{
      padding: $half-padding 0;
    }

    button {
      background: transparent;
      border-width: 0;
      border-radius: 0;
      text-align: left;
      
    }
    button:enabled:hover, input[type="button"]:enabled:hover {
      box-shadow: none;
      background: var(--color-ui-3-80);

    }
  }
  .pragma-group-header{
    background-color: var(--color-ui-2-30);
    h2{
      font-size: var(--font-size-small);
      text-transform: uppercase;
      font-weight: $font-weight-bold;
      color: var(--color-ui-1-80);
    }
  }

}

.assist-logo {
  @include stretch();
  padding: 0 1rem;
}

.assist-toolbar {
  height: $assist-toolbar-height;
  width: 100%;
  align-items: center;

  @include flex();

  button {
    background: transparent;
    margin: 0;
    padding-top: 0.75rem;
    width: $assist-toolbar-height;
    height: $assist-toolbar-height;
    border-radius: 0;
    &:hover{
      box-shadow: none;
      background: var(--color-ui-2);
    }
  }
}

.assist-search {
  @include flex();
  @include flex-row();
  background: var(--color-brand-dark);
  border-radius: $border-radius;
  height: $assist-search-height;
  margin: $default-padding;

  input {
    @include stretch();
    background: transparent;
    color: white;
    border-width: 0;
    margin-left: 0.5rem;
  }
}

.assist-container {
  @include flex();
  @include flex-column();

  button {
    color: white;
  }
}

assistant.close{
  pointer-events: none;
 .assistant-wrapper {
  transform: translateX(106%);
 }
}


@media screen and (max-width: 812px) {
  assistant {
    max-width: 100%;
    &:before {
      content: "";
      position: fixed;
      background-color: var(--color-ui-1-50);
      height: 100%;
      width: 100%;
      will-change: opacity;
      transition: opacity 0.5s ease-out;
    }
  }
  &.close:before{
    opacity: 0;
  }
}

@media screen and (min-width: 813px) {
  .assistant-margin {
    margin-right: $assistant-width;
  }
}