/* Fix for https://github.com/kaliber5/ember-bootstrap/issues/355 */
.panel-heading[role='tab'] {
    cursor: pointer;
}

/*
we need to override this for BS3 popovers as they are `display: none` be default, and we use popper.js instead of
proprietary display and positioning logic
*/
.ember-bootstrap-popover.popover {
    display: block;
}

/**
arrow placement with popper.js will take margins into account
(see https://github.com/FezVrasta/popper.js/blob/e80f27c85bdaa8ef7d700f936e536bb43aea9b53/packages/popper/src/utils/getOuterSizes.js#L9-L15)
So we need to reset them here, otherwise arrow positioning will be slightly off
 */
.ember-bootstrap-tooltip.tooltip.top .tooltip-arrow,
 .ember-bootstrap-tooltip.tooltip.bottom .tooltip-arrow {
     margin-left: 0;
 }

.ember-bootstrap-tooltip.tooltip.left .tooltip-arrow,
.ember-bootstrap-tooltip.tooltip.right .tooltip-arrow {
    margin-top: 0;
}

.ember-bootstrap-popover.popover.top .arrow,
.ember-bootstrap-popover.popover.bottom .arrow {
    margin-left: 0;
}

.ember-bootstrap-popover.popover.left .arrow,
.ember-bootstrap-popover.popover.right .arrow {
    margin-top: 0;
}

/*
When using ember-popper with a BS3 dropdown, for backwards compat reasons need the <ul class="dropdown-menu"> tag inside the popper element.
That causes the popper element to not get .dropdown-menu applied to it, so it has no z-index defined, causing it to appear behind other elements.
Adding this class ensures it appears in front of other elements.
*/
.ember-bootstrap-dropdown-bs3-popper {
    z-index: 1000;
    display: inline;
}

/**!
  Visualization Classes for debugging the vertical-collection
  */
.vertical-collection-visual-debugger {
  height: 100%;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: left;
  background: rgba(50, 50, 50, 1);
  width: 125px;
}

.vertical-collection-visual-debugger .vc_visualization-container {
  transform: scale(0.25);
  left: 0;
  position: relative;
}


.vertical-collection-visual-debugger .vc_visualization-screen {
  position: absolute;
  background: transparent;
  box-sizing: content-box;
  border-top: 2px dashed yellow;
  border-bottom: 2px dashed yellow;
  width: 500px;
}

.vertical-collection-visual-debugger .vc_visualization-scroll-container {
  position: absolute;
  width: 500px;
  background: rgba(100, 230, 100, 0.65);
}

.vertical-collection-visual-debugger .vc_visualization-item-container {
  position: absolute;
  width: 500px;
  background: rgba(255, 255, 255, .15);
}

.vertical-collection-visual-debugger .vc_visualization-virtual-component {
  box-sizing: border-box;
  background: rgba(230, 100, 230, 0.6);
  border: 1px dotted #bbb;
  border-top: 0px;
  color: #fff;
  text-align: center;
  font-size: 2.5em;
  width: 250px;
}

.vertical-collection-visual-debugger .vc_visualization-virtual-component:first-of-type {
  border-top: 1px dotted #bbb;
}

.vertical-collection-visual-debugger .vc_visualization-virtual-component.culled {
  background: transparent;
}

.occluded-content {
  display: block;
  position: relative;
  width: 100%;

  /* prevents margin overflow on item container */
  min-height: 0.01px;

  /* hides text visually while still being readable by screen readers */
  color: rgba(0,0,0,0);
}

table .occluded-content,
tbody .occluded-content,
thead .occluded-content,
tfoot .occluded-content, {
  display: table-row;
  position: relative;
  width: 100%;
}

ul .occluded-content,
ol .occluded-content {
  display: list-item;
  position: relative;
  width: 100%;
  list-style-type: none;
  height: 0;
}

.occluded-content {
  display: block;
  position: relative;
  width: 100%;

  /* prevents margin overflow on item container */
  min-height: 0.01px;

  /* hides text visually while still being readable by screen readers */
  color: rgba(0,0,0,0);
}

table .occluded-content,
tbody .occluded-content,
thead .occluded-content,
tfoot .occluded-content, {
  display: table-row;
  position: relative;
  width: 100%;
}

ul .occluded-content,
ol .occluded-content {
  display: list-item;
  position: relative;
  width: 100%;
  list-style-type: none;
  height: 0;
}
