/*
Copyright (C) 2017  Cloudbase Solutions SRL

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

@import '../variables.scss';

.root {
  height: 100%;
}
.pageHeader {
  padding: 44px 64px 0;
  flex: 1;

  h1 {
    float: left;
    margin: 0;
  }
  .top {
    &:after {
      content: " ";
      clear: both;
      display: block;
      height: 0;
    }
    margin-bottom: 48px;
  }
  .topActions {
    float: right;
    margin-top: 3px;
    :global(.Dropdown-root) {
      margin-right: 16px;
      float: left;
      width: 160px;
      :global(.Dropdown-control) {
        text-align: left;
      }
    }

  }
  :global(.filters) {
    :global(.category-filter) {
      float: left;
      padding: 2px 8px 2px 0;
      margin-top: 7px;
      border-right: 1px solid $gray-dark;
      display: none;
    }
    :global(.name-filter) {
      float: left;
      padding-left: 24px;
      margin-top: 2px;
    }
    &:after {
      clear: both;
      content: ' ';
      display: block;
      height: 0;
    }
  }
}
.pageContent {
  flex: 10;
  overflow-y: auto;
  padding: 0 64px;
}
.pageFooter {
  flex: 1;
  padding: 16px 64px 44px;
  :global(.Dropdown-root) {
    width: 160px;
    float: left;
  }
  .projectsCount {
    float: left;
    line-height: 32px;
    margin-left: 16px;
  }
}
.bulkActions {
  float: right;
  padding-top: 2px;
  transition: opacity $animation-swift-out;
  :global(.Dropdown-root) {
    width: 160px;
    float: left;
  }
  .projectsCount {
    float: left;
    line-height: 32px;
    margin-right: 16px;
  }
}
.container {
  margin: 0 auto;
  padding: 0;
  max-width: $max-content-widt9h;
  height: 100%;
  display: flex;
  flex-direction: column;
  :global(.items-list) {
    :global(.item) {
      padding-right: 16px;
      span:global(.cell):nth-child(2) {
        flex: 3;
        cursor: pointer;
      }
      span:global(.cell):nth-child(3) {
        flex: 2;
      }
      span:global(.cell):nth-child(4) {
        flex: 2;
      }
      span:global(.cell):nth-child(5) {
        flex: 3;
      }
      .description {
        display: block;
        color: $gray-dark;
        font-size: 14px;
      }
      :global(.icon.small-cloud) {
        margin: 0 auto;
      }
    }

    .composite {
      flex-direction: column;
      align-items: flex-start;
      .label {
        display: block;
        color: $gray-dark;
        margin-top: 4px;
      }
      .value {
        color: $blue;
        width: 100%;
        display: inline-block;
      }
    }
  }

}
