body {
  width: 100%;
  height: 100vh !important;
  overflow: hidden;
}
#container {
  overflow-y: auto;
}

#header {
  display: flex;
  flex-direction: row !important;
  justify-content: space-between !important;
}

#user-tools {
  display: flex;
  flex-direction: row;
}

#user-tools *:not(:first-child) {
  margin-left: 10px;
}
#user-droplist-box {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#user-target:hover + #user-droplist,
#user-droplist:hover {
  visibility: visible;
  opacity: 1;
}

#user-droplist {
  background-color: #79aec8;
  padding: 5px 10px 10px 10px;
  visibility: hidden;
  position: absolute;
  margin-top: 22px;
  z-index: 2;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgb(73, 73, 73);
  opacity: 0;
  list-style-type: none;
  border-radius: 3px;
  transition: opacity 0.1s linear;
}

#user-droplist li {
  list-style-type: none;
}

#user-target {
  color: white;
  padding: 3px 6px;
  border: 1px solid white;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#user-droplist a:link,
#user-droplist a:visited {
  color: white;
  font-size: smaller;
}

@media (max-width: 1024px) {
  #user-target {
    padding: 3px 6px 1px;
  }

  #user-droplist {
    margin-top: 27px;
  }
}

#notification a {
  border: none !important;
}

#notification {
  height: 24px;
}

h1#site-name {
  font-size: 24px;
  font-weight: 500;
}

tbody.djn-inline-form[data-is-initial="true"] {
  order: 1;
}
/* Увеличиваем ширину селекта (id_fundraiser) */
#id_fundraiser + .select2-container {
  width: 50% !important; /* 50% от формы */
  min-width: 250px !important; /* Минимальная ширина */
  max-width: 600px !important; /* Чтобы не расползалось */
}

/* Чтобы при фокусе ширина не сбрасывалась */
#id_fundraiser + .select2-container--focus {
  width: 50% !important;
}

/* Исправление для контейнера Select2 */
.select2-container .select2-selection--single {
  width: 100% !important;
  min-width: 100% !important;
}

/* Убираем дефолтные ограничения */
.related-widget-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 50% !important;
}
