input.ui-autocomplete-loading,select.ui-autocomplete-loading {
  	background: white url('/assets/plugins/jquery-ui/images/ui-anim_basic_16x16.gif') right center no-repeat !important;
}
.ui-autocomplete {
  	max-height: 400px;
  	overflow-y: auto;
  	/* prevent horizontal scrollbar */
  	overflow-x: hidden;
  	z-index:2000;
}
/* IE 6 doesn't support max-height
* we use height instead, but this forces the menu to always be this tall
*/
* html .ui-autocomplete {
  	height: 400px;
}		

.with-errors {
  display:none; 
}

.has-error .with-errors {
  display: block;
}




/* ============================================================
   BOOTBOX - КАСТОМИЗАЦИЯ ПОД ДИЗАЙН-СИСТЕМУ
   ============================================================ */

/* ---- Общие стили для Bootbox ---- */
.bootbox.modal {
  /* Фон с размытием как у ваших модалок */
  --bs-backdrop-bg: #303140;
  --bs-backdrop-opacity: 0.8;
}

.bootbox.modal .modal-dialog {
  margin-top: 1.75rem;
}

/* ---- Контент модалки ---- */
.bootbox.modal .modal-content {
  border: 0;
  border-radius: 0;
  background-color: #FFFFFF;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ---- Тело модалки ---- */
.bootbox.modal .modal-body {
  padding: 20px;
}

.bootbox.modal .bootbox-body {
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #1F2937;
}

/* ---- Заголовок ---- */
.bootbox.modal .modal-header {
  padding: 20px 20px 0 20px;
  border-bottom: 0;
}

.bootbox.modal .modal-title {
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #1F2937;
}

/* ---- Кнопка закрытия (крестик) ---- */
.bootbox.modal .bootbox-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: #6B7280;
  background: transparent;
  border: 0;
  opacity: 1;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.bootbox.modal .bootbox-close-button:hover {
  color: #1F2937;
}

.bootbox.modal .bootbox-close-button:focus {
  outline: 2px solid #FF0D00;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Футер с кнопками ---- */
.bootbox.modal .modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 20px 20px;
  border-top: 0;
  background-color: transparent;
}

/* ---- Кнопки в Bootbox ---- */
.bootbox.modal .modal-footer .btn {
  --bs-btn-padding-x: 24px;
  --bs-btn-padding-y: 16px;
  --bs-btn-font-family: "Gilroy", Arial, sans-serif;
  --bs-btn-font-size: 0.9375rem;
  --bs-btn-font-weight: 700;
  --bs-btn-line-height: 18px;
  border-radius: 0;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* ---- Кнопка подтверждения (OK / Confirm) ---- */
.bootbox.modal .modal-footer .btn-primary {
  --bs-btn-color: #FFFFFF;
  --bs-btn-bg: #FF0D00;
  --bs-btn-border-color: #FF0D00;
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: #CC0A00;
  --bs-btn-hover-border-color: #CC0A00;
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: #B3000E;
  --bs-btn-active-border-color: #B3000E;
  --bs-btn-disabled-color: #FFFFFF;
  --bs-btn-disabled-bg: #FF0D00;
  --bs-btn-disabled-border-color: #FF0D00;
}

/* ---- Кнопка отмены (Cancel) ---- */
.bootbox.modal .modal-footer .btn-secondary {
  --bs-btn-color: #1F2937;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #E5E7EB;
  --bs-btn-hover-color: #1F2937;
  --bs-btn-hover-bg: #F6F7FB;
  --bs-btn-hover-border-color: #E5E7EB;
  --bs-btn-active-color: #1F2937;
  --bs-btn-active-bg: #E5E7EB;
  --bs-btn-active-border-color: #E5E7EB;
  --bs-btn-disabled-color: #6B7280;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #E5E7EB;
}

/* ---- Кнопка danger (для alert с ошибкой) ---- */
.bootbox.modal .modal-footer .btn-danger {
  --bs-btn-color: #FFFFFF;
  --bs-btn-bg: #B3000E;
  --bs-btn-border-color: #B3000E;
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: #98000C;
  --bs-btn-hover-border-color: #8F000B;
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: #8F000B;
  --bs-btn-active-border-color: #86000B;
  --bs-btn-disabled-color: #FFFFFF;
  --bs-btn-disabled-bg: #B3000E;
  --bs-btn-disabled-border-color: #B3000E;
}

/* ---- Убираем лишние рамки и отступы ---- */
.bootbox.modal .modal-footer > * {
  margin: 0;
}

/* ---- Специфичные стили для alert ---- */
.bootbox.modal .modal-footer .btn-primary:only-child {
  min-width: 120px;
}

/* ---- Стили для prompt (поля ввода) ---- */
.bootbox.modal .bootbox-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bootbox.modal .bootbox-form .form-control {
  display: block;
  width: 100%;
  padding: 15px 16px;
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #1F2937;
  background-color: #F6F7FB;
  border: 1px solid #E5E7EB;
  border-radius: 0;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bootbox.modal .bootbox-form .form-control:focus {
  border-color: #FF8680;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(255, 13, 0, 0.25);
}

.bootbox.modal .bootbox-form .form-control::placeholder {
  color: #6B7280;
  opacity: 1;
}

.bootbox.modal .bootbox-form .form-control:disabled {
  background-color: #E9ECEF;
  opacity: 1;
}

/* ---- Чекбоксы и радио в prompt ---- */
.bootbox.modal .bootbox-checkbox-list,
.bootbox.modal .bootbox-radiobutton-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bootbox.modal .bootbox-checkbox-list .form-check,
.bootbox.modal .bootbox-radiobutton-list .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  margin-bottom: 0;
}

.bootbox.modal .bootbox-checkbox-list .form-check-input,
.bootbox.modal .bootbox-radiobutton-list .form-check-input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0;
  background-color: #F6F7FB;
  border: 1px solid #E5E7EB;
  border-radius: 0;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.bootbox.modal .bootbox-checkbox-list .form-check-input:checked,
.bootbox.modal .bootbox-radiobutton-list .form-check-input:checked {
  background-color: #FF0D00;
  border-color: #FF0D00;
}

.bootbox.modal .bootbox-checkbox-list .form-check-input[type="radio"],
.bootbox.modal .bootbox-radiobutton-list .form-check-input[type="radio"] {
  border-radius: 50%;
}

.bootbox.modal .bootbox-checkbox-list .form-check-label,
.bootbox.modal .bootbox-radiobutton-list .form-check-label {
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #1F2937;
  cursor: pointer;
}

/* ---- Select в prompt ---- */
.bootbox.modal .bootbox-form .form-select {
  display: block;
  width: 100%;
  padding: 15px 48px 15px 16px;
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #1F2937;
  background-color: #F6F7FB;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bootbox.modal .bootbox-form .form-select:focus {
  border-color: #FF8680;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(255, 13, 0, 0.25);
}

/* ---- Сообщение в prompt ---- */
.bootbox.modal .bootbox-prompt-message {
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #1F2937;
  line-height: 1.5;
}

/* ---- Мобильные адаптации ---- */
@media (max-width: 575.98px) {
  .bootbox.modal .modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .bootbox.modal .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .bootbox.modal .modal-body {
    padding: 16px;
  }

  .bootbox.modal .modal-header {
    padding: 16px 16px 0 16px;
  }

  .bootbox.modal .modal-footer {
    padding: 0 16px 16px 16px;
  }

  .bootbox.modal .bootbox-close-button {
    top: 8px;
    right: 8px;
  }

  .bootbox.modal .bootbox-form .form-control,
  .bootbox.modal .bootbox-form .form-select {
    padding: 12px;
    font-size: 14px;
  }
}

/* ---- Анимация как у Bootstrap модалок ---- */
.bootbox.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.bootbox.modal.show .modal-dialog {
  transform: none;
}

/* ---- Если нужно центрирование по вертикали ---- */
.bootbox.modal .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

/* изменения 24.07 */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050 !important;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Компенсируем место, которое занял fixed-хедер */
body {
    padding-top: 82px;
}

/* В main.min.css на ширине до 1199px padding хедера уменьшается */
@media (max-width: 1199.98px) {
    body {
        padding-top: 62px;
    }
}

/* Выпадающее мобильное меню начинается сразу под хедером */
@media (max-width: 991.98px) {
    .site-header #mobile-nav {
        top: 100% !important;
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }
}