html, body {
  min-height: 100%;
  height: auto;
  margin: 0;
}
body {
  font-family: 'Montserrat';
  font-weight: 500;
  display:flex;
  flex-direction:column;
}
body.menu-active {
  overflow-x: hidden;
}
body.menu-active nav#slide-menu { transform: translateX(0) }
body.menu-active > div.wrapper { box-shadow: 0 0 10px rgba(0,0,0,.8); }
body.menu-active > div.wrapper > .wrapper__overlay { opacity: 1; max-width: 100%; }
body.menu-active .ap-navbar {
  box-shadow: none;
}
body.menu-active .menu-trigger {
  opacity: 0;
}
body.menu-active .menu-trigger.menu-trigger--close {
  display: flex;
  opacity: 1;
}

.wrapper {
  position: relative;
  transition: left 300ms;
  left: 0;
  min-height: 100%;
  height: auto;
  z-index: 101;
  display: flex;
  flex-direction: column;
}

.wrapper__overlay {
  display: block;
  content: "";
  position: absolute;
  max-width: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.25);
  z-index: 100;
  transition: opacity 300ms;
  opacity: 0;
}
.content {
  flex: 1 0 auto;
}

.page-footer {
  flex: 0 0 auto;
  background: black;
  color: white;
  z-index: 10;
}
.page-footer a {
  color: white;
}

a {
  color: #2e53bd;
}
.text-primary {
  color: #2e53bd;
}
a.icon-link {
  color: black !important;
  text-decoration: none !important;
}

.breadcrumb,
.btn,
.card,
.form-control,
.alert,
.badge,
.dropdown-menu,
.nav-tabs .nav-link,
.list-group-item:first-child,
.list-group-item:last-child,
.page-item:first-child .page-link,
.page-item:last-child .page-link,
.modal-footer,
.modal-content {
  border-radius: 0 !important;
}
.btn-dark {
  border-color: black !important;
  background-color: black !important;
}
.btn-danger {
  background-color: #da3d20 !important;
  border-color: #e74320 !important;
}
.btn-light {
  background-color: white !important;
  border-color: black !important;
}
.btn-light:hover {
  border-color: black !important;
}

.badge-primary {
  background-color: rgba(92, 144, 245, 1) !important;
}
.table-secondary, .table-secondary>td, .table-secondary>th {
    background-color: #f2f2f2 !important;
}

.form-control {
  border-color: black;
}
.form-group.required > label:first-child:after {
    content: ' *';
    color: red;
}

/** header **/
.ap-navbar {
  background-color: #fff!important;
  box-shadow: 0 0 2px 1px rgba(0,0,0,.6);
  z-index: 10;
  position: relative;
  padding: .5rem 1rem;
}
.ap-nav-item.active {
  font-weight: bold;
}
.ap-navbar .navbar-brand img {
  height: 80px;
}
.ap-navbar .ap-nav-item > a {
  color: black;
  text-decoration: none;
}
.ap-navbar .nav-item a:hover {
  text-decoration: underline;
}

.ap-navbar__logo {
  margin: 10px 40px 10px;
}

@media screen and (max-width: 1200px) {
  .ap-navbar__logo {
    margin: 10px 20px 10px 0;
  }
}
@media screen and (max-width: 574px) {
  .ap-navbar__logo {
    margin: 0;
    position: absolute;
    top: 5px;
    left: 20px;
    max-width: 50vw;
  }
  .ap-navbar__logo img {
    width: 100%;
  }
}

.ap-navbar-nav > .nav-item {
  padding: 0 8px;
}

@media screen and (max-width: 1100px) {
  .ap-navbar-nav {
    display: block;
    -webkit-columns: 2;
    -moz-columns: 2;
    max-height: 90px;
  }
}

.ap-navbar__subpanel {
  margin-right: 40px;
  position: relative;
  white-space: nowrap;
}

@media screen and (max-width: 1200px) {
  .ap-navbar__subpanel {
    margin-right: 0px;
  }
}

@media screen and (max-width: 574px) {
  .ap-navbar__subpanel {
    margin-bottom: 8px;
  }
}

.ap-navbar__subpanel .settings {
  position: absolute;
  display: flex;
  top: 0;
}

@media screen and (max-width: 574px) {
  .ap-navbar__subpanel .settings {
    position: relative;
    display: flex;
    margin-bottom: 10px;
  }
}

.ap-navbar__search {
  display: flex;
  flex-wrap: nowrap;
  margin-right: 15px;
  position: relative;
}
.ap-navbar__search button:focus {
  outline: 0;
  box-shadow: none;
}

.ap-navbar__search-form  {
  width: 100vw;
  max-width: 25vw;
  position: absolute;
  right: 100%;
  transition: none;
}

.settings > div:not(:last-child) {
  margin-right: 10px;
}

.settings__item {
  display: flex;
  border: 1px solid rgba(92, 144, 245, 0.4);
  border-radius: 2px;
}

.settings__item_param {
  padding:  2px 4px;
  font-size: 0.7rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.settings__item_param:hover {
  text-decoration: none;
}

.settings__item_param.active {
  background: rgba(92, 144, 245, 0.3);
}
.settings__item_param:not(.active) {
  color: var(--gray);
}

.settings__item_param a {
  color: inherit;
}

.logo-side {
  width: 40px;
  height: 100%;
  background: black;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.logo-side__img {
  position: absolute;
  z-index: -1;
  height: 100%;
  top: 0;
  left: 0;
  width: 100%;
  background: black url("/static/img/logo-vertical.e1c7066b4669.svg") repeat-y;
  background-size: 100%;

  animation: move-background 25s linear infinite;
}
@keyframes move-background {
   from {
       background-position-y: 0;
   }
   to {
       background-position-y: -732px;
   }
}

.nav-link {
    white-space: nowrap;
}

nav#slide-menu {
	position: fixed;
	top: 0;
	transform: translateX(-80vw);
	bottom: 0;
	display: block;
	float: left;
	width: 100%;
	max-width: 80vw;
  height: 100%;
  z-index: 1001;
  background: var(--white);

  -moz-transition: all 300ms;
	-webkit-transition: all 300ms;
	transition: all 300ms;
}

div.menu-trigger {
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;

  -moz-transition: all 300ms;
  -webkit-transition: all 300ms;
  transition: all 300ms;

}

.menu-trigger.menu-trigger--close {
  display: none;
  position: absolute;
  transition: opacity 300ms;
  opacity: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
  left: 80vw;
  background: var(--white);
}

div.menu-trigger:hover { background: rgba(92, 144, 245, 0.3); }
div.menu-trigger--close:hover, div.menu-trigger--close:focus { background: var(--white); }

.slide-menu__content {
  overflow-y: auto;
  padding: 10px;
}
.slide-menu__header {
  padding: 10px;
}

.slide-menu__header img {
  max-width: 70%;
}

.slide-menu__top {
  display: flex;
  position: relative;
}

.slide-menu__top > .d-block {
  flex: 1
}

.autocomplete-result {
  overflow-y: auto;
  overflow-x: auto;
}

.table-xs td, .table-xs th {
    padding: .1rem;
}

/* select 2 */
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--single {
  border-radius: 0 !important;
  border-color: black !important;
  line-height: 1.5 !important;
}

/* nav-tabs */
.nav-tabs {
  border: none;
}
.nav-tabs .nav-item {
  margin-bottom: 0;
}
.nav-tabs .nav-link {
  margin-right: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.05rem;
  font-weight: 700;
  color: #858585;
  background-color: rgba(249, 249, 249, 0.5);
  border: none;
  -webkit-transition: .25s;
  transition: .25s;
  cursor: pointer;
}
.nav-tabs .nav-link.active {
  color: #000;
  background-color: #efefef;
}
.nav-tabs .nav-link.res-link.active {
  color: #fff;
  background-color: #000;
}
.nav-tabs .nav-link.res-link.active:hover {
  color: #fff;
}
.nav-tabs .nav-link.res-link:hover {
  color: #000;
  font-weight: 700;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 2px solid #2e53bd;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-banner__text {
  flex: 1;
  min-width: 250px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.cookie-banner__text p {
  margin: 0;
}

.cookie-banner__text a {
  color: #2e53bd;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  text-decoration: none;
}

.cookie-banner__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 20px;
  border: 1px solid #2e53bd;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.cookie-banner__btn--accept {
  background-color: #2e53bd;
  color: #ffffff;
}

.cookie-banner__btn--accept:hover {
  background-color: #1e3d8d;
  border-color: #1e3d8d;
}

.cookie-banner__btn--decline {
  background-color: #ffffff;
  color: #2e53bd;
}

.cookie-banner__btn--decline:hover {
  background-color: #f5f5f5;
}

@media screen and (max-width: 768px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}
