//  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 "../../../../../assets/scss/variables";

.tools .nav {
  margin-bottom: 10px;
}

.new-database-tray {
  .btn {
    min-width: 140px;
    &.btn-cf-cancel {
      color: $cf-text02;
      &:hover {
        color: $cf-btn-cancel-color-hover;
      }
    }
  }

  .tray-contents {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 352px;
    overflow-y: auto;
    padding: 20px;
  }

  .tray-header {
    margin-bottom: 1rem;
  }

  .tray-body {
    flex: 1;
  }

  .tray-footer {
    display: flex;
    justify-content: space-between;
  }

  ul.partitioned-db-help {
    padding-left: 0;
  }
}

.database-name-input{
  background-color: transparent;
}

.new-database-tray--expanded {
  height: calc(100% - 64px);
}

#database-pagination {
  float: right;
}

.database-load-fail {
  height: 49px;
}

.database-actions > * {
  margin-right: 10px;
}

@media screen and (max-width: 768px) {
  .add-new-database-btn span {
    display: none;
  }
  .new-database-tray:before {
    right: 185px;
  }
}

@media screen and (max-width: 1120px) {
  // Left nav menuy is closed
  .new-database-tray {
    .tray-contents {
      width: 332px;
    }
  }
}
