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

.life-notification-nav {
  position: relative;
}

.life-notification-badge {
  position: absolute;
  top: 5px;
  right: 2px;
  min-width: 18px;
  min-height: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
}

.life-notification-menu {
  width: min(360px, 92vw);
  max-height: 420px;
  overflow-y: auto;
}

.life-notification-empty span {
  display: block;
  padding: 10px 15px;
  color: #6c7785;
}

.life-notification-item > a {
  display: grid !important;
  gap: 3px;
  white-space: normal !important;
}

.life-notification-item.is-unread > a {
  background: #fff7e6;
}

.life-notification-item strong {
  color: #172033;
  font-size: 13px;
}

.life-notification-item span {
  color: #3f4e62;
  font-size: 12px;
}

.life-notification-item small {
  color: #7a8796;
  font-size: 11px;
}

.life-inline-login-nav {
  position: relative;
}

.life-inline-login-menu {
  width: min(320px, 92vw);
  padding: 14px;
}

.life-inline-login-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.life-inline-login-heading strong {
  color: #172033;
  font-size: 14px;
}

.life-inline-login-heading small {
  color: #6c7785;
  font-size: 12px;
}

.life-inline-login-menu .form-group {
  margin-bottom: 8px;
}

.life-inline-login-error {
  padding: 7px 9px;
  margin-bottom: 9px;
  font-size: 12px;
}

.life-inline-login-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
}

.life-inline-login-menu.is-attention {
  box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.2), 0 8px 24px rgba(23, 32, 51, 0.16);
}

.life-active-context-label {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

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

@media (min-width: 1200px) {
  .container.life-wide-container {
    width: calc(100% - 48px);
    max-width: 1600px;
  }
}

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