/*!
 *  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.scss';
@import '@bci-web-core/common-styles/sass/bci/mixins/borders';

:host {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.row {
  $bci-toolbar-height: 48px;
  left: 0;
  right: 0;
  overflow: hidden;
  position: absolute;

  &.toolbar {
    height: $bci-toolbar-height;
    top: 0;
    margin-left: $grid-size * 2;
    overflow-y: auto;
  }

  &.content-area {
    top: 64px;
    bottom: 0;
    height: auto;
    @include make-border(1px 0 0 0, $boschGray90);

    ::ng-deep .container,
    .main-container {
      height: 100% !important;
    }
  }
}

:host ::ng-deep {
  .mat-mdc-tab-group,
  .mat-mdc-tab-body-wrapper {
    height: 100%;
  }

  mat-tab-group .mat-mdc-tab-header {
    display: none;
    padding-left: 4 * $grid-size;
    padding-right: 4 * $grid-size;
  }
}

.mat-column-select {
  max-width: 2.5 * $grid-size;
}

.mat-column-name {
  flex-grow: 2;
}

.location-search-input {
  width: 240px;

  ::ng-deep mat-form-field.mat-mdc-form-field {
    width: 240px;
    padding-bottom: 0;
    height: 48px;
    overflow: hidden;

    .mat-mdc-form-field-icon-suffix,
    input {
      background-color: $boschWhite;
    }

    .mat-mdc-floating-label {
      background-color: $boschWhite;
    }
  }
}

bci-toolbar-item {
  position: relative;
}

.button-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 18px;
  transform: scale(0.6);
  border: 1px solid $boschBlack;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  background: $boschWhite;
  line-height: 17px;
  display: block;
  text-align: center;
}
