/*!
 * Copyright 2017 Banco Bilbao Vizcaya Argentaria, S.A.
 *
 * 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.
 */

@include host('.simple-tile') {
  .title {
    font-size: 0.95rem;
  }
}

@include host('.header-title.simple-tile') {
  .title {
    font-size: 1.50rem;
    text-align: center;
  }
}

aggregate-dashboard {

  .row-header {
    width: 100%;
  }

  .legend {
    padding: 5px 0 0 0;

    .legend__item {
      padding: 0 7px;
    }
  }

  header-component {
    position: relative;
    z-index: 1;
  }

  .dashboard {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 0;
  }

  .bottom {
    position: fixed;
    bottom: 0;
    z-index: 1;

    tile-container:nth-child(2) {
      border-right: 1px solid $light-grey;
    }
  }

  board-column.board-container {
    display:block;
    width: 100%;

    & > board-row {
      padding: 5px 0;
      border-bottom: 1px solid $light-grey;
      &:last-child {
        border-bottom: none;
        margin-bottom: 50px;
      }
    }

    tile-container {
      flex-grow:1;
      flex-shrink: 1;
      flex-basis: 100%;
    }

    tile-container.title-tile {
      flex-basis:0;
      min-width: 11rem;
    }

    tile-container.small-tile {
      flex-grow:1;
      flex-shrink:1;
      flex-basis: 65%;
    }

    tile-container.double-tile {
      flex-grow:1;
      flex-shrink:1;
      flex-basis: 200%;
    }

    tile-container.mid-tile {
      flex-grow:1;
      flex-shrink:1;
      flex-basis: 85%;
    }

    tile-container.double-mid-tile {
      flex-grow:1;
      flex-shrink:1;
      flex-basis: 170%;
    }

  }

  header-title {
    width:100%;
    text-align: center;
  }

  tile-container {
    display: none!important;
  }

  tile-container.title-tile {
    display: initial!important;
  }

  tile-container.visible {
    display: initial!important;
  }
}
