@import '~@hestia-earth/ui-framework/src/styles';
@import './tags-input/styles.sass';

// JSON Diff Patch
@import '~jsondiffpatch/dist/formatters-styles/html.css';

.jsondiffpatch-delta {
  max-width: 100%;
}

// --- Bootstrap

ngb-typeahead-window.dropdown-menu {
  background-color: $dropdown-content-background-color;
  border-radius: $dropdown-content-radius;
  box-shadow: $dropdown-content-shadow;
  margin-top: 2px;
  max-height: 360px;
  min-width: 300px;
  overflow-y: auto;
  padding-bottom: $dropdown-content-padding-bottom;
  padding-top: $dropdown-content-padding-top;
  width: 100%;

  .dropdown-item {
    border: 0;
    cursor: pointer;

    &:hover {
      background-color: $dropdown-item-hover-background-color;
      color: $dropdown-item-hover-color;
    }

    &.active {
      background-color: $dropdown-item-active-background-color;
      color: $dropdown-item-active-color;
    }

    > * {
      display: inline-block;
      vertical-align: middle;
    }
  }
}

ngb-highlight {
  display: inline-block;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  width: 100%;
  white-space: nowrap;
}

ngb-tooltip-window {
  background-color: $black;
  border-radius: $tag-radius;
  color: $white;
  font-size: .75rem;
  padding: .25rem;
  z-index: 1050;
}

ngb-popover-window {
  font-size: .75rem;
  max-width: 50vw;
  z-index: 1060;

  .arrow {
    margin: 0 !important;
  }

  .popover-header {
    background-color: $light;
    border-bottom: 1px solid #ebebeb;
    border-top-left-radius: $tag-radius;
    border-top-right-radius: $tag-radius;
    font-size: 1rem;
    margin-bottom: 0;
    padding: .5rem .75rem;

    + .popover-body {
      border-top-left-radius: 0;
      border-top-right-radius: 0;
    }
  }

  .popover-body {
    background-color: $black;
    border-radius: $tag-radius;
    color: $white;
    padding: .5rem .75rem;
  }
}

// Hestia

.copy-clipboard {
  position: absolute;
  right: 4px;
  top: 4px;
}

.trigger-popover {
  > span:first-child {
    cursor: help !important;
    text-decoration-style: dotted;
    text-decoration-line: underline;
    text-decoration-thickness: from-font;
  }
}

.is-normal {
  white-space: normal;
}

.col-sep {
  border-right: 1px solid #f1f3f4;
  display: inline-block;
  height: 100%;
  padding-left: 1px !important;
  padding-right: 0px !important;
  vertical-align: middle;
}
