@import '../colors.scss';

// Copyright (c) 2016 VMware, Inc. All Rights Reserved.
// This software is released under MIT license.
// The full license information can be found in LICENSE in the root directory of this project.
app-requests-modal {
  z-index: 10000;
}

header.app-header {
  background: $headerBackground !important;
  color: #fff;
}

.logo img.without-text {
  width: 30px;
}

.logo img.with-text {
  width: 210px;
}

.header-hamburger-trigger {
  display: block;
  background: transparent;
  border: 0;
  margin-left: 10px;
}

.demo-expired-notice {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh !important;
  width: 100vw !important;
  z-index: 105;
  background: rgba(33, 33, 33, .5);

  .expired-details {
    flex-direction: column;
    align-items: center;
    padding: 30px;
    z-index: 110;
    background: $headerBackground;

    .expired-notice {
      color: #e0e0e0;
      font-size: 16px;

      .mailto {
        color: #8dc53e;
      }
    }
  }
}

.main-container .update-key {
  display: flex;
  align-items: center;
  color: white;
  padding: 0px 10px;
  background: #00000026;
}

.alert-icon-wrapper {
  margin-top: 0 !important;
}

.nav-text {
  margin-right: 20px;
}

.sidebar-toggle {
  display: flex;
  height: 100%;
  align-items: center;
  padding-left: 10px;

  clr-icon {
    cursor: pointer;
    width: 30px;
    height: 30px;
  }
}

header {
  .header-actions {
    .dropdown {
      position: unset; //without it, when opening user dropdown scrollbar was displaying without reason
    }
  }

  .nav-link:hover {
      color: #fafafa;
  }

  .nav-link.active {
    background: #61717D;
  }
}

.notf {
  background: #16a57a;
  color: #fffcfc;
  font-size: 12px;
}


.toggle-switch input[type=checkbox]:checked+label:before {
  border-color: #61717D;
  background-color: #61717D;
  transition: .15s ease-in;
  transition-property: border-color,background-color;
}

.main-container {
  min-height: 100vh !important;
}

.main-container .content-container .content-area {
  padding: 0rem 1rem 1rem 1rem;
}

.content-container {
  z-index: 0!important;
}

.navBarResp {
  display: flex;
  justify-content: center;
  background: #495A67;
  color: #fff;
}

::ng-deep {
  .htInvalid {
    background: black!important;
  }

  @media screen and (max-width:480px) {
    h2 {
      font-size: .7rem!important;
    }
    h3 {
      font-size: .7rem;
    }
  }

  .nav-link {
    padding: 0rem 1rem 0rem 1rem;
  }

  body[cds-theme="light"] {
    .btn-primary .btn, .btn.btn-primary {
      border-color: $headerBackground;
      background-color: $headerBackground;
      color: #fff;
    }
  }

  body[cds-theme="dark"] {
    .btn-primary .btn, .btn.btn-primary {
      border-color: #5e7382;
      background-color: #5e7382;
      color: #fff;

      clr-icon, cds-icon {
        color: #fff
      }
    }
  }

  .btn {
    cursor: pointer;
    display: inline-block;
    -webkit-appearance: none!important;
    border-radius: .125rem;
    border: 1px solid;
    min-width: 3rem;
    max-width: 15rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1.5rem;
    letter-spacing: .12em;
    font-size: .5rem;
    font-weight: 500;
    height: 1.5rem;
    padding: 0 .5rem;
  }

  .btn.btn-outline:hover {
    border-color: $headerBackground;
    background-color: #495A67;
    color: #fff;
  }


  body[cds-theme="dark"] {
    .btn.btn-icon.btn-dimmed {
      color: #7295ae;
    }
  }

  body[cds-theme="light"] {
    .btn.btn-icon.btn-dimmed {
      color: $headerBackground;
    }

    .btn.btn-outline {
      border-color: $headerBackground;
      background-color: transparent;
      color: $headerBackground;
    }
  }

  .htMobileEditorContainer .inputs textarea {
    font-size: 13pt;
    border: 2px solid #485967;
    border-radius: 4px;
    -webkit-appearance: none;
    box-shadow: none;
    position: absolute;
    left: 14px;
    right: 0px;
    top: 0;
    bottom: 0;
    padding: 7pt;
    width: 290px;
}

.htMobileEditorContainer .positionControls {
    width: 333px;
    position: absolute;
    right: 5pt;
    top: 50px;
    bottom: 0;
    display: flex;
    justify-content: center;
}

.htMobileEditorContainer.active {
    display: block;
    height: 120px;
    width: 350px;
}


  /* Left and right */

  /* Column headers */

  body[cds-theme="light"] {
    .wtBorder {
      background-color: #495A67!important;
    }

    .ht_master tr:nth-of-type(odd) > td {
      filter: brightness(0.95);
    }
  }

  $darkBorderColor: #697c85;

  body[cds-theme="dark"] {
    .ht_master tr:nth-of-type(odd) > td {
      filter: brightness(1.2);
    }

    .ht_master:not(.emptyColumns) ~ .handsontable tbody tr th, .ht_master:not(.emptyColumns) ~ .handsontable:not(.ht_clone_top) thead tr th:first-child {
      background-color: #2d4048;
      border-color: $darkBorderColor;
    }

    .handsontable td {
      // border-right: 1px solid #697c85;
      // border-bottom: 1px solid #697c85;
      border-color: $darkBorderColor;
    }

    .handsontable tr:first-child th, .handsontable tr:first-child td {
      border-color: $darkBorderColor;
    }

    .handsontable .handsontable.ht_clone_top .wtHider {
      border-color: $darkBorderColor;
    }

    .handsontable .changeType {
      background-color: #3c5662;
      border-color: $darkBorderColor;
    }

    .handsontableInput {
      background-color: #708b98;
    }
  }

  .handsontable .handsontable.ht_clone_top .wtHider {
    padding: 0 0 0px 0!important;
    margin: 0px;
    border-bottom: 3px solid #d6d3d3;
  }

  body[cds-theme="light"] {
    .content-container {
      // background: red;
      background: #F5F6FF;
    }
  }

  .datagrid-compact, .datagrid-history{
    .datagrid {
      border-collapse: separate;
      border: 1px solid transparent;
      border-radius: .125rem;
      margin: 0;
      margin-top: 1rem;
      max-width: 100%;
      width: 100%;
      padding: 15px 15px 50px 15px;
    }
    .datagrid-foot {
      -webkit-box-pack: end;
      -ms-flex-pack: end;
      justify-content: flex-end;
      height: 1.5rem;
      padding: 0 .5rem;
      line-height: calc(1.5rem - 3px);
      font-size: .45833rem;
      background-color: #fff;
      border-top: 1px solid #ccc;
      border-radius: 0px;
      // border-radius: 0 0 .125rem .125rem;
    }
    .datagrid-footer {
      position: absolute;
      right: 30px;
      top: 1px;
    }
    .datagrid .datagrid-head {
      background-color: #fff;
      border-bottom: 1px solid #ccc;
    }
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: .083333rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: .5rem 0;
    border: 1px solid #ccc;
    box-shadow: 0 1px 0.125rem hsla(0,0%,45%,.25);
    min-width: 5rem;
    max-width: 15rem;
    border-radius: .125rem;
    visibility: hidden;
    z-index: 1000;
  }

  .table {
    border-collapse: separate;
    border: 1px solid transparent;
    border-radius: 0px;
    margin: 0;
    margin-top: 1rem;
    max-width: 100%;
    width: 100%;
  }

  .table th {
    font-size: .45833rem;
    font-weight: 600;
    letter-spacing: .03em;
    vertical-align: bottom;
    border-bottom: 1px solid #ccc;
    text-transform: uppercase;
  }

  .modal-header {
    border-bottom: 2px solid #e4e4e4;
    padding: 0 0 .5rem 0;
    margin-bottom: 1rem;
  }

  .main-container .content-container {
    min-height: 0px;
    position: relative;
  }
}

.app-loading {
  .loading-logo {
    max-width: 400px;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .navBarResp {
    display: flex;
    justify-content: flex-start;
    background: #495A67;
    color: #fff;
  }

  .main-container .sub-nav.clr-nav-level-1 .nav .nav-link, .main-container .sub-nav.clr-nav-level-2 .nav .nav-link, .main-container .subnav.clr-nav-level-1 .nav .nav-link, .main-container .subnav.clr-nav-level-2 .nav .nav-link {
      padding: 0 .5rem 0 1rem;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      border-radius: .125rem 0 0 .125rem;
      color: #95c84b;
  }



  .card-block, .card-footer {
    padding: 10px 0px 0px 0px;
  }

  .main-container[_ngcontent-c0] .content-container[_ngcontent-c0] .content-area[_ngcontent-c0] {
    padding: 0rem 0rem 0rem 0rem;
  }

}