:root {
  --primary: 0, 153, 153;
  --secondary: 102, 0, 153;
  --success: 102, 153, 51;
  --info: 0, 204, 204;
  --warning: 255, 204, 102;
  --danger: 204, 0, 0;
  --light: 253, 252, 252;
  --dark: 0, 51, 102;
}

.f-size-2 {
  font-size: 1.2em;
}

.f-size-4 {
  font-size: 1.4em;
}

.f-size-6 {
  font-size: 1.6em;
}

.f-size-8 {
  font-size: 1.8em;
}

.f-size-10 {
  font-size: 2em;
}

.f-primary {
  color: rgb(var(--primary));
}

.f-secondary {
  color: rgb(var(--secondary));
}

.f-success {
  color: rgb(var(--success));
}

.f-danger {
  color: rgb(var(--danger));
}

.alert-error {
  background-color: rgb(var(--danger));
}

.be-top-header .be-navbar-header .navbar-brand {
  background-size: contain;
  background-position: 42px center;
  height: 35px;
  margin: 10px 0
}

li.nav-item>a img {
  max-width: 32px;
  max-height: 32px;
}

.input-group-sm>.input-group-append>.btn {
  border-top-right-radius: .55rem;
  border-bottom-right-radius: .55rem;
}

.input-group.input-group-sm.mt-3>input:first-child {
  border-top-left-radius: .55rem;
  border-bottom-left-radius: .55rem;
}

/* Reset the select2 container */
.select2-container .select2-selection--single {
  background-color: transparent;
  border: none;
  height: auto;
  min-height: 2.2rem;
  padding: 0;
  box-shadow: none;
}

/* Hide default arrow */
/* .select2-container .select2-selection__arrow {
  display: none;
} */

/* Selected pill */
.bubbly-selection {
  display: inline-block;
  padding: 0.7rem 0.9rem;
  border-radius: .4rem;
  background-color: rgb(var(--primary));
  /* soft green */
  color: rgb(var(--light));
  font-weight: 500;
  font-size: 1.2em;
  line-height: 1.2em;
  width: 100%;
}

/* Dropdown itself */
.select2-dropdown {
  border: none;
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset default option styles */
.select2-results__option {
  padding: 0;
  margin: 0;
  background: none !important;
  color: inherit;
}

/* Bubbly dropdown items */
.bubbly-option {
  display: block;
  padding: 0.5rem 0.8rem;
  margin: 0.2rem 0;
  border-radius: 1rem;
  background-color: rgba(var(--warning), 0.1);
  transition: background-color 0.1s ease, color 0.1s ease;
  font-weight: 500;
  font-size: 1.2em;
  line-height: 1.2em;
  color: rgb(var(--dark));
}

/* Hover/selected state */
.select2-results__option--highlighted .bubbly-option,
.select2-results__option--selected .bubbly-option {
  background-color: rgba(var(--warning), .3);
  padding: .8rem;
}

.select2-selection__rendered {
  position: relative;
  width: 100%;
}

.kf_form_container {
  width: 100%;
  padding: 1.3rem 0 0 0;
}

.select2-search.select2-search--dropdown {
  visibility: hidden;
  height: 0;
  display: none;
}

.select2-dropdown.select2-dropdown--below {
  width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
}


span.input-group-text {
  font-size: 1.2em;
}

#notifications_right_tab>a>.btn {
  width: 100%;
  text-align: center;
}

a.nav-link {
  min-width: 85px;
  min-height: 55px;
}

.flex_main_content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.flex_main_content>.card.col-md-3 {
  min-width: 330px;
}

.storage_card .card-body {
  padding: 0 0 20px 0;
}

.card-header .card-subtitle,
.card-header .card-subtitle * {
  font-size: 1.3rem;
  line-height: 1rem;
}

.card-title {
  font-size: 2rem;
}

.card-body .badge {
  padding: 1px 6px 1px 6px;
  font-size: 1rem;
}

.card {
  border-radius: 10px;
  border: .01rem solid rgb(237 236 236);
  background-color: rgb(var(--light));
}

a.card.col-md-3.ml-1.invitation {
  background: rgba(var(--dark), 0.11);
}

nav.navbar {
  background: linear-gradient(to bottom, rgba(0, 153, 153, .39) 0%, rgba(51, 204, 153, .27) 100%);
}

nav.navbar .mdi {
  font-size: 2rem;
}

.badge:not(.badge-pill) {
  border-radius: 4px;
}

.be-top-header .page-title {
  align-self: end;
  line-height: 25px;
  font-size: 15px;
  margin: 0 0 0 50px;
  width: 300px;
  overflow: visible;
}

.be-nosidebar-left .be-top-header .be-navbar-header .navbar-brand {
  display: flex;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  color: rgb(var(--dark));
  background-color: rgba(var(--warning), .1);
}

.list-group-item-action.active:hover {
  color: white;
  background-color: rgb(var(--primary));
}

.page-head.d-flex .icon {
  font-size: 20px;
}

.page-head {
  padding: 0;
}

.organizer_actions>div {
  max-height: 31px;
  align-self: anchor-center;
}

.card-edit-overlay {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(182, 182, 182, .7);
  z-index: 100;
  margin: 0;
  padding: 0;
  color: rgba(var(--primary), 0.4);
  font-size: 5rem;
  left: 0;
  top: 0;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .be-top-header .be-right-navbar {
    padding-right: 0;
    display: flex;
    justify-content: space-between;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background: linear-gradient(to bottom, rgba(0, 153, 153, .39) 0%, rgba(51, 204, 153, .27) 100%); */
    z-index: 1030;
  }
}

@media (max-width: 767.98px) {
  .page-head {
    padding: 18px 10px 0;
    display: block !important;
  }

  .page-head-title {
    font-size: 1.846rem;
    line-height: 28px;
    margin-bottom: 5px;
  }

  .dropleft .dropdown-toggle::before {
    content: none !important;
  }

  .be-top-header .be-toggle-right-sidebar {
    position: absolute;
    right: 5px;
  }

  .mobile-icon {
    display: inline-block !important;
  }

  .be-nosidebar-left .be-top-header .be-right-navbar {
    height: 40px;
    padding-left: 67px;
  }

  .be-top-header .be-navbar-header {
    display: block;
  }

  .be-top-header .be-navbar-header .navbar-brand {
    display: block;
    visibility: visible;
    position: fixed;
    top: 4px;
    left: 23px;
    margin: 0;
    height: 30px;
    width: 29px !important;
    padding: 0;
    background-position: center;
    z-index: 1031;
  }
}

.colored-header .modal-content .modal-header {
  color: rgb(var(--light));
  font-weight: 700;
  padding: 17px 20px;
}

.colored-header .modal-content .modal-header .modal-title {
  font-size: 1.538rem;
  font-weight: 500;
  color: inherit;
}

.modal.show .modal-dialog {
  transform: none;
  margin-top: 20%;
}

.lists-grid {
  display: flex;
  column-count: 3;
  /* number of columns */
  column-gap: 1rem;
  /* spacing between columns */
}

.lists-grid .card {
  display: inline-block;
  /* make them respect column flow */
  width: 100%;
  /* ensure they fill the column */
  margin-bottom: 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: rgb(var(--dark));
  text-decoration: none;
  background-color: rgba(var(--warning), .2) !important;
}

.dropdown-item.md-trigger:hover,
.dropdown-item.md-trigg:focus {
  color: rgb(var(--dark));
  text-decoration: none;
  background-color: rgba(var(--secondary), .2) !important;
}

.be-right-navbar * {
  vertical-align: middle;
}

.tab-content>.active {
  display: block;
  overflow-y: auto;
  max-height: 87vh;
}

/* =================================== */

.bubble-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 0.6rem;
  font-family: sans-serif;
  font-size: 1.2rem;
  margin: 0;
}

.bubble-checkbox input {
  display: none;
}

.checkmark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #bbb;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.checkmark::after {
  content: "";
  width: 12px;
  height: 6px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.3s ease;
}

.bubble-checkbox input:checked+.checkmark {
  background: rgb(var(--info));
  border-color: rgb(var(--primary));
  animation: pop 0.4s ease forwards;
}

.bubble-checkbox input:checked+.checkmark::after {
  transform: rotate(-45deg) scale(1);
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.d-none.d-flex {
  display: none !important;
}

.mdi-tooltip-question-outline {
  position: relative;
  right: 0;
  top: -12px;
}

.tooltip-inner {
  max-width: 200px;
  padding: 0.25rem 0.5rem;
  color: rgb(var(--dark));
  text-align: center;
  background-color: rgb(var(--light));
  border-radius: 2px;
}

@keyframes slideInRight {
  0% {
    transform: translateY(-110%);
    opacity: 0;
  }

  10% {
    transform: translateY(0);
    opacity: 1;
  }

  85% {
    transform: translateX(0);
    opacity: 1;
    height: auto;
  }

  100% {
    transform: translateX(-110%);
    opacity: 0;
    height: calc-size(auto, size - size);
  }
}

#toast_container .toast.show {
  animation: slideInRight 4s ease-out forwards !important;
  width: 500px !important;
  transform: translateX(0);
  display: block !important;
}

#toast_container {
  z-index: 1100;
  max-width: 64%;
}

.toast-body {
  padding-right: 64px !important;
}

.masonry-item {
  break-inside: avoid;
  width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
  max-width: 100vw !important;
}

.masonry {
  column-count: 3;
  column-gap: 1rem;
  width: 100vw !important;
  max-width: 100%;
  overflow-y: visible;
}

@media (max-width: 992px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 655px) {
  .masonry {
    column-count: 1;
  }
}

.tab-content {
  position: relative;
  box-shadow: 0px 0px 37px -10px #a5a5a5;
}

.nav-tabs-classic>li.nav-item a.nav-link.active {
  box-shadow: -2px -4px 4px -2px #b1b1b1;
  position: relative;
  z-index: 1;
}

.be-right-sidebar {
  box-shadow: 0px 0px 37px -10px #a5a5a5;
}

div#right-tabs {
  margin-left: -1px;
  height: 100%;
}

.tab-content {
  height: 100%;
}

.be-right-sidebar {
  margin-top: 0 !important;
}

/* ========== BOTTOM NAV ========== */
.be-bottom-bar {
  height: 60px;
  z-index: 1030;
  /* stays above content but below modals */
}

.be-bottom-bar .nav-link {
  color: var(--bs-body-color);
  transition: color 0.2s ease;
}

.be-bottom-bar .nav-link.active,
.be-bottom-bar .nav-link:focus,
.be-bottom-bar .nav-link:hover {
  color: rgb(var(--primary));
}

.be-bottom-bar small {
  font-size: 0.75rem;
  display: block;
  line-height: 1;
}

.be-bottom-bar {
  background: white !important;
  box-shadow: 0px 11px 4px -10px #c6c6c6 inset;
  height: 50px;
  padding: 0;
}

.be-bottom-bar .nav-link.active {
  color: rgb(var(--primary));
  box-shadow: 0px 3px 3px 1px #c6c6c6;
  z-index: 1;
  position: relative;
  background: white;
  padding: 11px 50px;
  margin-top: -1px;
}