/*
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;

    }
    :global(.name-filter) {
      float: left;
      padding-left: 0px;
      margin-top: 2px;
    }
    &:after {
      clear: both;
      content: ' ';
      display: block;
      height: 0;
    }
  }
}
.pageContent {
  flex: 10;
  overflow-y: auto;
  padding: 0 64px;
}
.bulkActions {
  float: right;
  padding-top: 2px;
  transition: opacity $animation-swift-out;
  :global(.Dropdown-root) {
    width: 160px;
    float: left;
  }
  .migrationsCount {
    float: left;
    line-height: 32px;
    margin-right: 16px;
  }
}
.refreshBtn {
  float: left;
  padding: 5px 5px;
  margin-top: 6px;
  margin-left: 11px;
  cursor: pointer;
}
.container {
  margin: 0 auto;
  padding: 0;
  max-width: $max-content-width;
  height: 100%;
  display: flex;
  flex-direction: column;
  :global(.items-list) {
    :global(.item) {
      position: relative;
      cursor: pointer;
      span:global(.cell):nth-child(1) {
        flex: 3;
      }
      span:global(.cell):nth-child(2) {
        flex: 1;
        padding-left: 2%;
        padding-right: 2%;
      }
      span:global(.cell):nth-child(3) {
        flex: 1;
        padding-right: 8px;
        min-width: 156px;
      }
      span:global(.cell):nth-child(4) {
        flex: 1;
        min-width: 126px;
      }
      span:global(.cell):nth-child(5) {

      }
      :global(.checkbox-container) {
        position: absolute;
        left: -32px;
        top: 21px;
        opacity: 0;
        transition: opacity $animation-swift-out;
      }
      &:hover, &:global(.selected) {
        :global(.checkbox-container) {
          opacity: 1;
        }
      }
    }
    .composite {
      flex-direction: column;
      align-items: flex-start;
      .label {
        display: block;
        color: $gray-dark;
        margin-top: 4px;
      }
      .value {
        color: $blue;
      }
    }
  }
  .migrationStatus {
    width: 96px;
    border-radius: 4px;
    color: #FFF;
    line-height: 16px;
    display: block;
    font-size: 10px;
    text-align: center;
    &:global(.PAUSED) {
      background-color: $gray;
    }
  }
  .chevronRight {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOHB4IiBoZWlnaHQ9IjEzcHgiIHZpZXdCb3g9IjQgMiA4IDEzIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxwb2x5Z29uIGlkPSJDb21iaW5lZC1TaGFwZSIgc3Ryb2tlPSJub25lIiBmaWxsPSIjNjE2NzcwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDguMDAwMDAwLCA4LjM2Mzk2MSkgcm90YXRlKC05MC4wMDAwMDApIHRyYW5zbGF0ZSgtOC4wMDAwMDAsIC04LjM2Mzk2MSkgIiBwb2ludHM9IjggMTAuMzgyMzM3NiAyLjUwMjYwNzAyIDUgMS44MTU0MzI4OSA1LjY3Mjc5MjIxIDggMTEuNzI3OTIyMSAxNC4xODQ1NjcxIDUuNjcyNzkyMjEgMTMuNDk3MzkzIDUgOCAxMC4zODIzMzc2Ij48L3BvbHlnb24+PC9zdmc+');
    width: 8px;
    height: 13px;
    display: inline-block;
    margin: 0 16px;
  }
  :global {
    .noResultsLarge {
      .icon {
        background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTYwcHgiIGhlaWdodD0iMTYwcHgiIHZpZXdCb3g9IjAgMCAxNjAgMTYwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA0Ni4xICg0NDQ2MykgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+c3BsYXNoLTI8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iU3ltYm9scyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtZGFzaGFycmF5PSIyLjY3MSw1LjM0Myw5LjM1LDUuMzQzIj4KICAgICAgICA8ZyBpZD0ic3BsYXNoLTIiIHN0cm9rZT0iIzAwNDRDQSIgc3Ryb2tlLXdpZHRoPSIxLjMiPgogICAgICAgICAgICA8ZyBpZD0iUGFnZS0xIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi4wMDAwMDAsIDMzLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTU0Ljc1NjQsMjguNzk1OCBDMjQuOTIxNCwyOC43OTU4IDAuNjUwNCwzNy4zNjY4IDAuNjUwNC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