@import '~handsontable/dist/handsontable.full.css';

.bb-bulk-editor {
  overflow: hidden;
  // TODO: datepickers on handsontable always open below. This prevents it from being cut off from the bottom rows.
  padding-bottom: 200px;

  .handsontable {
    th,
    td,
    .handsontableInput {
      &:not(.listbox) {
        line-height: 35px;
      }
    }

    td.htInvalid {
      background-color: #ffe7f0 !important;
      box-shadow: inset 0px 0px 0px 1px #cb0037;
    }
  }
}

.bb-bulk-editor__text-cell {
  max-height: 100px;
  overflow-y: auto;
}

.bb-bulk-editor-toolbar {
  margin-bottom: 20px;

  .loader-service-new {
    top: 20px;
  }

  .loader-service-new--md .loader-service-new__circular {
    height: 100%;
  }
}

.bb-bulk-editor__button.btn {
  margin-right: 5px;
  margin-bottom: 10px;
}

.bb-bulk-editor-filters {
  transition: all 0.3s ease-in-out;
  opacity: 1;
  max-height: 1000px;
  padding-top: 10px;
  padding-bottom: 30px;
  border-top: 1px solid #d1d4dc;

  .form-control,
  .btn {
    height: 40px;
  }
}

.bb-bulk-editor-filters__label {
  display: flex;
  min-height: 3em;
}

.bb-bulk-editor-filters__label__text {
  display: inline-block;
  align-self: flex-end;
  word-break: break-word;
  hyphens: auto;
}

.bb-bulk-editor-filters__spacer {
  display: inline-block;
  height: 1em;
  margin-bottom: 5px;
}

.bb-bulk-editor-status-bar {
  transition: all 0.3s ease-in-out;
  opacity: 1;
  max-height: 100px;
  overflow-y: auto;
}

.bb-bulk-editor-filters.ng-hide,
.bb-bulk-editor-status-bar.ng-hide {
  max-height: 0;
  opacity: 0;
}

.bb-bulk-editor-status-bar__icon {
  margin-left: 10px;
  margin-right: 5px;
}

.bb-bulk-editor-status-bar__icon--success {
  color: #01a369;
}

.bb-bulk-editor-status-bar__icon--info,
.bb-bulk-editor-status-bar__icon--warning {
  color: #3171b4;
}

.bb-bulk-editor__loading-spinner {
  height: 100px;
}

.bb-bulk-editor__status-loading-spinner {
  float: left;
  width: 30px;
  height: 20px;

  .loader-service-new {
    background: transparent;
  }
}

.bb-bulk-editor--hidden {
  visibility: hidden;
}

.bb-bulk-editor__alert--info {
  margin-bottom: 20px;
}

.bb-bulk-editor__alert--search {
  margin-top: 20px;

  &.alert {
    margin-bottom: 0;

    .close {
      right: 0;
    }
  }
}

.bb-bulk-editor__add-btns.pull-right {
  display: inline-block;
  
  @media (max-width: 960px) {
    float: none !important;
  }
}

.bb-bulk-editor--disabled {
  opacity: 0.4;
  pointer-events: none;
}

// Hack for datepicker displaying behind a uibModal
.uib-datepicker-popup.dropdown-menu {
  z-index: 1050;
}

.bb-bulk-editor-modal__body {
  max-height: 70vh;
  overflow-y: scroll;

  [uib-typeahead-popup].dropdown-menu {
    overflow-y: scroll;
    max-height: 300px;
  }
}

.bb-bulk-editor-modal__body__header {
  font-size: 16px;
  font-weight: normal;
  color: #697180;
}

.bb-bulk-editor-modal .form-group {
  position: relative;

  .help-block {
    position: absolute;
  }
}

.bb-bulk-editor-modal__input.form-control {
  height: 40px;
  border-radius: 2px;
}

.bb-bulk-editor__loading-spinner--input {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 5px;
  bottom: 5px;
}

.bb-bulk-editor-modal__company-search + .dropdown-menu {
  width: 100%;
}

.bb-bulk-editor-deletedFailures {
  text-align: left;
  padding-left: 8.5px;
}