@import "admin-dashboard/main_dependencies";

$cc-primary: $bb-secondary;
$cc-secondary: #003454;

.search {

  input {
    padding: 15px 20px;
    border: solid 1px #ccc;
    width: 100%;

    &:focus {
      border-radius: 0;
    }
  }

  .search-utility {
    position: absolute;
    right: 35px;
    top: 37px;
    background: none;
    border: none;
  }

  .button-group button {
    background: none;
    color: $cc-primary;
    width: 30px;
    height: 30px;
    font-size: 14px;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .dynamic-info {
    background: #FFFFFF;
    border-radius: 3px;
    padding: 15px 20px;
    font-weight: 600;
    border: solid #ccc 1px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    margin-top: -2px;

    // To avoid spinner wobbling we should use font of size that is a multiplication of 14px. 21px is still wobbling
    // but at least it is stable in 100% viewport mode. Wobbling issue is not resolved and it's a general problem
    // with font-awesome spinners.
    font-size: 21px;
  }

  .loading .ng-hide-add,
  .no-results .ng-hide-add {
    animation: 0.5s slide-left ease;
  }

  .loading .ng-hide-remove,
  .no-results .ng-hide-remove {
    animation: 0.5s slide-left ease;
  }

  .custom-popup-wrapper {
    position: absolute;
    left: 0;
    z-index: 1000;
    display: none;
    background-color: #FFFFFF;
    width: calc(100% - 30px);
    max-height: 350px;
    overflow-y: scroll; 

    li.head-label {
      text-transform: uppercase;

      padding: 10px 20px;
      color: #848484;
      font-size: 12px;
      background-color: #fafbfb;
      border-bottom: solid 1px #d1d4dc;
    }

    .bb-typh-header {
      font-size: 15px;
    }

    .bb-typh-header--multiple-items {
      color: #697180;
      span {
        &:after {
          padding-left: 10px;
          padding-right: 10px;
          content: '|';
        }
        &:last-child {
          &:after {
            content: none;
          }
        }
      }
    }

    .bb-typeahead-results-wrapper {
      padding: 15px;
      border: none;
      border-bottom: solid 1px #d1d4dc;
    }

    .results-typeaheads {
      li:first-child {
        font-size: 1.1em;
      }
    }
  }

  .custom-popup-wrapper > .message {
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    color: #868686;
  }

  .custom-popup-wrapper > .dropdown-menu {
    position: static;
    float: none;
    display: block;
    min-width: 160px;
    background-color: transparent;
    box-shadow: none;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    margin: 0;
    padding: 0;

    li.bb-typh-header {
      display: inline;
      margin-right: 20px;
    }
  }

  .custom-popup-wrapper > .dropdown-menu .active {
    cursor: pointer;
    background: $bb-secondary;
    color: white;
    * { color: inherit; }
  }
}
