.base-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.base-modal.base-modal_active {
  display: flex;
  opacity: 1;
}

.base-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.base-modal__container {
  position: relative;
  width: 100%;
  height: auto;
    max-height: 100%;
  background: white;
  overflow-y: auto;
  padding: 20px;
  max-width: 1280px;
border-radius: 24px;
  margin: auto;
  animation: modalSlideIn 0.3s ease-out;
  

}

 .base-modal__container::-webkit-scrollbar {
  width: 0;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.base-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.base-modal__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.base-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  color: #666;
  transition: color 0.3s ease;
}

.base-modal__close:hover {
  color: rgb(58, 25, 168);
}

.base-modal__content {
  max-width: 1200px;
  margin: 0 auto;
}

.base-modal__button {
   width: fit-content;
   margin: 20px auto;
}

/* Адаптивность */
@media (max-width: 768px) {
  .base-modal__container {
    padding: 15px;
  }
  
  .base-modal__title {
    font-size: 20px;
  }
  
  .base-table__header {
    display: none;
  }
  
  .base-table__row {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }
  
  .base-table__column {
    width: 100%;
    justify-content: space-between;
  }
  
  .base-table__column[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
  }
}
