/*!
  *  Copyright (C) 2019 Robert Bosch GmbH Copyright (C) 2019 Robert Bosch Manufacturing Solutions GmbH, Germany. All rights reserved.
 */

@import '@bci-web-core/common-styles/sass/bci/bci-variables';

@media screen and (max-width: $screen-xs-min) {
  .dialog-content-wrapper {
    max-height: calc(100% - 240px);
    overflow: scroll;
  }
  .mat-mdc-dialog-actions {
    position: absolute;
    bottom: 0;
    width: calc(100% - 32px) !important;
    margin-bottom: 0px;

    button {
      margin-top: 2 * $grid-size;
    }
  }
  .mat-dialog-content {
    overflow: hidden;
    * {
      margin: 0px;
    }
  }
}

@media screen and (min-width: ($screen-xs-min + 1)) {
  :host ::ng-deep {
    .mat-mdc-dialog-actions button:not(.mat-mdc-icon-button) {
      margin: $grid-size 0 0 2 * $grid-size;
    }

    .mat-dialog-content {
      overflow: hidden;
      * {
        margin: 0px;
      }
    }
  }
}
