@import "variables";

:host {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;

  .search-container {
    width: 0;
    overflow: hidden;
    transition: width 0.35s ease-in-out;
    display: inline-block;

    &.open {
      width: 284px;
    }
  }

  .regexp {
    width: 16px;
    height: 16px;
    font-size: 16px;
    border-radius: 3px;
    position: relative;
    right: 24px;

    &:hover {
      background-color: $blue-400;
    }

    &.active {
      color: $blue-900;
      background-color: $blue-280;
    }

    &.al-ico-error-circle {
      width: 0;
      right: 48px;
    }

  }

  .al-icon {
    color: $blue-300;
    margin-left: auto;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    display: flex;
    &:hover {
      color: $blue-200;
    }
  }
  .al-ico-dialog-x {
    transform: scale(0.9);
  }

  ::ng-deep sm-search.regex-error input {
    padding-right: 56px !important;
    border-color: $failed-red !important;
  }

}
