// it must be a better way to read clarity variables...
//@import '../../../../node_modules/@clr/ui/src/utils/helpers.clarity';

//@import '../../../../node_modules/@clr/ui/src/color/utils/colors.clarity';
//@import '../../../../node_modules/@clr/ui/src/color/utils/contrast-cache.clarity';
//@import '../../../../node_modules/@clr/ui/src/color/utils/helpers.clarity';

//@import '../../../../node_modules/@clr/ui/src/utils/variables.clarity';

$clr-header-height: 3rem;
$clr-near-white: #fafafa;
$clr-dark-gray: #565656;
$clr-light-gray: #eee;

.copyRight {
  margin-top: 10px;

  span {
    word-break: break-word;
    white-space: pre-wrap;
    width: 100%;
    text-align: center;
    line-height: 1.5;
  }
}

.app-nav-dropdown {
  //left padding for branding is also 24px
  padding-right: 15px;
  line-height: $clr-header-height;
  height: $clr-header-height;

  >button.dropdown-toggle {
    color: $clr-near-white;
    position: relative;

    &:after {
      content: "";
      background-color: $clr-near-white;
      opacity: .15;
      left: 0;
      position: absolute;
      width: 1px;
      height: 40px;
      top: 10px;
    }

    .badge {
      &.hidden {
        visibility: hidden;
      }
    }
  }

  clr-dropdown-menu {
    color: $clr-dark-gray;
    padding-bottom: 0;

    .separator {
      margin: 10px 0;
      border-bottom: 1px solid gray;
      // border-bottom: 1px solid $clr-dark-gray;
    }

    .dropdown-item {
      display: flex;
      flex-direction: row;
      align-items: center;
      position: relative;
      height: 45px;
      line-height: 40px;

      span.dropdown-text{
        color: $clr-dark-gray;
      }

      .badge {
        position: absolute;
        top: 15px;
        right: 26px;
        margin-right: 0;
      }

      &.debug-switch-item {
        padding: 0;
      }

      .toggle-switch {
        margin: 0;
        width: 100%;
        height: 100%;
        justify-content: center;
      }

      .clr-logout{
        position: absolute;
        right: 20px;
        top: 15px;
      }

      ::ng-deep {
        .clr-control-container {
          width: 100%;
          height: 100%;
        }

        clr-toggle-wrapper {
          width: 100%;
          margin: 0;
          height: 100%;
          padding: 10px 20px;
        }

        input {
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          width: 100%;
          height: 100%;
          cursor: pointer;
        }

        .clr-toggle-wrapper input[type=checkbox]+label::after {
          transition: none !important;
        }
      }
    }
  }

}

.debug-toggle-label {
  padding-left: 42px;
}

@media (max-width: 768px){
  .sidenav-content{
    a.nav-link.active {
      color: inherit;
      padding: 15px;
      background: #565656;
    }
  }
}
.nav-link.d-block{
  span.badge{
    position: absolute;
  }

}
.avatar-img{
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border-radius: 50px;
}