 /* The switch - the box around the slider */
 .switch {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 20px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #080808;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #080808;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(15px);
    -ms-transform: translateX(15px);
    transform: translateX(15px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 25px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

.btn {
  margin: 2px 2px 2px 2px;
}

.modal-body {
  max-height: calc(100vh - 212px);
  overflow-y: auto;
}

/* Navbar avatar and dropdown tweaks */
.nav-avatar {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  text-align: center;
  font-weight: 600;
  margin-right: 6px;
  font-size: 12px;
}

.nav-avatar-img {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
}

/* Make dropdown menu items wrap and look tidy on small screens */
.navbar .dropdown-menu li {
  white-space: normal;
}

@media (max-width: 480px) {
  .navbar .dropdown-menu {
    right: 10px;
    left: auto;
  }
  .navbar-text { display:none; }
}
