/**
 *
 * @ai-apps/angular v2.152.0 | _tile-catalog.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.
 */


@import '../../globals/vars';

.#{$iot-prefix}--tile-catalog {
  &--persistent-search {
    margin-bottom: $spacing-05;
  }
  &--canvas-container {
    display: flex;
    flex-direction: row;
  }
  &--tile-canvas {
    flex: 1;
    &--featured-tile-title {
      @include type-style('productive-heading-01');
    }
    &--featured-tile {
      background: $ui-03;
      height: 17rem;
      margin-bottom: $spacing-05;
      margin-top: $spacing-05;
    }
    &--header {
      display: flex;
      align-items: center;
      padding-bottom: $spacing-05;
      justify-content: flex-end;
      &--title {
        @include type-style('productive-heading-01');
        flex: 1;
      }

      .#{$prefix}--toolbar-action {
        height: 2.5rem;
        width: 2.5rem;
        margin-right: $spacing-05;
      }

      &--search {
        flex: 1;
        height: rem(40px);
        width: rem(40px);
        .#{$prefix}--search {
          svg {
            height: 2.5rem;
            width: 2.5rem;
            padding: $spacing-04;
          }
        }
      }

      &--select {
        .#{$prefix}--label {
          margin-bottom: 0;
        }
      }
    }

    &--content {
      .#{$prefix}--grid {
        padding: 0;
      }
      .#{$prefix}--row {
        padding-bottom: $spacing-05;
        margin-left: -$spacing-03;
        margin-right: -$spacing-03;
      }
      .#{$prefix}--col {
        padding-left: $spacing-03;
        padding-right: $spacing-03;
      }
    }

    &--placeholder-tile {
      background: $ui-03;
      height: rem(224px);
    }

    &--no-placeholder-tile {
      background: $ui-02;
      height: rem(224px);
    }

    &--bottom {
      display: flex;
      justify-content: flex-end;
    }
  }
  &--filter {
    margin-left: $spacing-05;

    width: rem(212px);
    &--title {
      @include type-style('productive-heading-01');
      margin-bottom: $spacing-05;
    }
    &--content {
      background: $ui-01;

      &--select {
        width: rem(212px);
        padding: $spacing-05;

        .#{$prefix}--select-input {
          width: rem(180px);
          background: $ui-02;
        }
      }

      &--checkbox {
        border-top: 1px solid $ui-03;
        padding: $spacing-05;
      }

      .#{$prefix}--link {
        padding: $spacing-05;
        color: $interactive-04;
      }
    }
  }
}

.sample-tile {
  background: $ui-01;
  padding: $spacing-05;
  height: rem(224px);
  &--title {
    @include type-style('productive-heading-01');
    padding-bottom: $spacing-03;
  }

  &--content {
    @include type-style('label-01');
  }
}

.#{$iot-prefix}--tile-catalog--grid-container {
  display: grid;
  grid-template-columns: var(--columns);
  gap: 1rem;
}
