html, body {
  font-family: "Inter", system-ui, sans-serif;
    /* 💡 фиксированный фон без анимации */
    background: linear-gradient(to bottom, #ffffff, #cfe9ff) fixed;
    color: #1f2937;
  min-height: 100vh;
}


@keyframes softLight {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
#openFilters {
  position: fixed !important;
  bottom: 20px !important;
  left: 24px !important;
  z-index: 9999 !important;
}


/* Анимации для модальных окон */
@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out;
}

/* Стили для кнопок */
.btn-gradient {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  transform: translateY(-2px);
}

/* Стили для предпросмотра аватара */
.avatar-preview-container {
  background: linear-gradient(45deg, #f0f9ff, #e0f2fe);
  border: 2px dashed #bae6fd;
}

/* Автоподсказка АУ */
#auSuggestions li {
  transition: background 0.2s;
}
#auSuggestions li:hover {
  background: #e0ecff;
}

/* Эффекты Toastr */
/* === Toastr уведомления (универсальная основа) === */
#toast-container > .toast {
  background-image: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 16px 20px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  animation: toastFadeIn 0.3s ease, toastFadeOut 0.5s ease 4.5s forwards;
  isolation: isolate !important;
}

/* === Цвета уведомлений === */
#toast-container > .toast.toast-success {
  background: linear-gradient(135deg, #22c55e, #15803d) !important; /* Зеленый */
}

#toast-container > .toast.toast-error {
  background: linear-gradient(135deg, #ef4444, #991b1b) !important; /* Красный */
}

#toast-container > .toast.toast-warning {
  background: linear-gradient(135deg, #f59e0b, #b45309) !important; /* Оранжевый */
}

#toast-container > .toast.toast-info {
  background: linear-gradient(135deg, #3b82f6, #1e40af) !important; /* Синий */
}

/* === Эффекты появления / скрытия === */
@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastFadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}


/* Stage animations */
#stagePipeline div {
  transition: all 0.2s ease-in-out;
}
#stagePipeline div:hover {
  filter: brightness(1.1);
}

/* Select & scroll */
select {
  appearance: none !important;
  background: #fff !important;
}
select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.3);
}
@media (max-width:768px){
  select { appearance: auto; }
}
#filterDropdown::-webkit-scrollbar { width: 6px; }
#filterDropdown::-webkit-scrollbar-thumb {
  background-color: #cbd5e1; border-radius: 8px;
}
#filterDropdown::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

/* Animations */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-slide-down { animation: slideDown .25s ease-out; }

.nav-link.active { color: #d1d5db !important; pointer-events: none; }


#chartFinance, #chartYears {
min-height: 380px;
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fade-in {
  animation: fade-in 0.2s ease-out;
}
#togglePassword {
  cursor: pointer;
  user-select: none;
}
#togglePassword:focus {
  outline: none;
}
#debtor-table-body {
  opacity: 1;
  transform: none;
  transition: none;
}
.table-row-animate {
  animation: none;
}


/* === 🧱 Абсолютное обнуление прозрачности Toastr === */
#toast-container,
#toast-container * {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  backdrop-filter: none !important;
  background-blend-mode: normal !important;
}

#registry-dropdown {
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: top center;
}
#registry-dropdown.hidden {
  opacity: 0;
  transform: translateY(-4px);
}
#searchResults li {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.15s, transform 0.1s;
}

#searchResults li:hover {
  background-color: #f0f7ff;
  transform: translateX(2px);
}

#searchResults li.border-t {
  border: none;
  text-align: center;
  color: #2563eb;
  font-weight: 500;
  cursor: pointer;
}

#searchResults li.border-t:hover {
  background-color: #e0edff;
}

@media (max-width: 768px) {
  #searchResults {
    width: 95%;
    left: 2.5%;
    max-height: 300px;
  }
  #searchResults .grid {
    grid-template-columns: 1fr;
  }
}


/* === Skeleton Loader для таблицы === */
.skeleton-row {
  height: 32px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* === Анимация появления строк === */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.table-row-appear {
  animation: fadeInScale 0.25s ease forwards;
}

@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; visibility: hidden; }
}


@media (max-width: 768px) {
    #growthChartContainer {
      display: none !important;
    }
}

body {
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  transition: background-image 0.6s ease-in-out;
}


.glass {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.15);
  color: #0f172a;
}


@media (max-width: 768px) {
  .glass {
    background: rgba(255, 255, 255, 0.95) !important; /* белый вместо прозрачности */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* === Поверх всех графиков === */
.choices {
  z-index: 3000 !important;
}

.choices__list--dropdown {
  z-index: 4000 !important;
}

.choices__list {
  z-index: 4000 !important;
}

.debtor-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding-top: 2rem; /* добавляем отступ сверху под бейдж */
}

.status-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 10;
  max-width: 80%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  pointer-events: none;
}

/* 🔹 Для узких экранов: бейдж будет ниже и меньше */
@media (max-width: 640px) {
  .status-badge {
    top: 6px;
    right: 6px;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  .debtor-card {
    padding-top: 2.2rem; /* чуть больше, чтобы название не наезжало */
  }
}
