/**
 *
 * @ai-apps/angular v2.152.0 | tear-sheet.scss
 *
 * Copyright 2014, 2023 IBM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


.#{$iot-prefix}--tear-sheet {
  background-color: $ui-01;
  display: flex;
  flex-direction: column;
  height: 100%;

  & * {
    max-width: 100%;
  }

  &--header {
    padding: $spacing-06 $spacing-11 $spacing-06 $spacing-07;
    border-bottom: 1px solid $selected-ui;

    [dir='rtl'] & {
      padding: $spacing-06 $spacing-07 $spacing-06 $spacing-11;
    }

    h1 {
      margin-bottom: $spacing-03;
    }
    &__extraContent {
      padding-bottom: $spacing-03;
    }
    &--description {
      @include type-style('body-long-01');
      color: $text-02;
    }
    .#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger {
      position: absolute;
      top: 0;
      right: 0;

      [dir='rtl'] & {
        left: 0;
        right: unset;
      }
    }
  }

  &--content {
    flex: 1;
    overflow: auto;
  }
}
