/*!
 *  Copyright (C) 2018 Robert Bosch GmbH Copyright (C) 2018 Robert Bosch Manufacturing Solutions GmbH, Germany. All rights reserved.
 */
@import '@bci-web-core/common-styles/sass/bci/bci-variables';

:host {
  border: 0 1px 1px 1px solid $boschGray95;
  display: flex;
  height: 100%;
}

#widget {
  display: flex;
  flex-direction: column;
  overflow: auto;
  width: 100%;
  height: 100%;
  position: relative;
}

.backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: $boschGray40;
  opacity: 0.5;
  z-index: 100;
}

.burgerMenu {
  position: absolute;
  right: 0;
  mat-toolbar {
    border-bottom: none;
  }
}

.block-clicks {
  pointer-events: none;
}

mat-toolbar {
  display: flex;
  flex-direction: row;
  align-self: flex-end;
  background: $boschWhite;
  padding: $grid-size * 0.125 $grid-size * 1 0 $grid-size * 1;
  border-bottom: 1px solid $boschGray85;
  height: ($grid-size * 3) + 1px;

  .title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: $font-color;
    font-size: $font-size-h6;
    line-height: 18px;
    height: 100%;
    width: 100%;
  }

  mat-icon::before {
    font-size: $icon-font-size-medium !important;
  }
}

// fix for rb-ui-core styles
button + button {
  margin: 0;
}

.burger-menu-icon {
  vertical-align: top;
  cursor: pointer;
}

.burger-menu-text {
  font-size: $font-size-base;
  margin-left: $grid-size;
}

.menu-button {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.gridster-item-content {
  padding: 0 $grid-size * 1 $grid-size * 1 $grid-size * 1;
  overflow: auto;

  ::ng-deep {
    h5 {
      font-weight: $font-weight-medium;
      margin-top: 0;
    }
  }
}

.grabbable {
  cursor: move;
}

.grabbable:active {
  cursor: grabbing;
}

.Bosch-Ic-Normal {
  line-height: $grid-size * 5;
}

.hidden {
  visibility: hidden;
}
