/* Само модальное окно */

/* Оверлей для модалки */
.overlayprint {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 1000;
}

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(120deg, #ffffff 0%, #e3f2fd 100%);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  width: 400px;
  max-width: calc(100% - 80px); /* 20px отступ слева и справа */
  max-height: 80vh;
  display: none;
  z-index: 1001;
  font-family: Arial, sans-serif;
  overflow-y: auto; /* Включаем вертикальную прокрутку */
  overflow-x: hidden; /* Отключаем горизонтальную прокрутку */
}
.modal::-webkit-scrollbar-thumb {
  background-color: #888;  /* #BAC8D4 */
  border-radius: 3px;      /* Скругление */
}

.modal::-webkit-scrollbar-track {
  background-color: #D7E6F2;  /* Цвет фона */
  border-radius: 3px;
}

.modal__close {
  position: absolute;
  top: 8px; right: 8px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

/* Контейнеры с контентом (меню и Bluetooth) */
.modal__content { display: none; }
.modal__content.active { display: block; }

/* Главное меню кнопок */
.modal__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(10px, 2.3vh, 20px) 15px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #A3C7C7;
  background: #E8FCF5;   /* #E8FCF5; */    
  color: #00488C;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal__btn:hover {
  background: #B8F0FF;
}
.modal__btn-text {
  display: inline-block;
  margin-right: 10px;
}
.modal__note-inline {
  display: inline-block;
  margin: 0;
  font-size: 0.85em;
  color: #666;
}

/* Блок цены */
.modal__price-note {
  text-align: center;
  margin-top: clamp(10px, 2.3vh, 20px);
  font-size: 0.9em;
  color: #808080;
}

/* Инструкция Bluetooth */
#btView h3 {
  margin-top: 0;
  color: #0057a7;
}
#backBtn {
  background: transparent;
  border: none;
  color: #0057a7;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
}

.disabledmd {
  pointer-events: none;       /* Отключаем все события */
  opacity: 0.6;                
  cursor: not-allowed;       
  user-select: none;         
  background-color: #EBEBEB; 
  color: #999999; 
  border: 1px solid #B3B3B3;  
}


/* Обрезка длинных имён */
.file-header span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
  display: inline-block;
}
.file-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 12px;
}
.file-header {
  display: flex;
  align-items: center;
}
.file-item progress {
  width: 100%;
  height: 1rem;
  margin-top: 4px;
}
.status-check {
  color: #28a745;
  margin-left: 4px;
}
/* Кнопки внизу */
#btnGroup { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }
#btnGroup button { padding: 8px 16px; border-radius: 4px; }
#cancelBtn { background: #dc3545; color: #fff; }
#okBtn     { background: #28a745; color: #fff; }
#okBtn.hidden { display: none; }

.upload-hidden { display: none !important; }
.upload-flex   { display: flex; }
.upload-flex-col { flex-direction: column; }
.upload-flex-1 { flex: 1; }
.upload-text-xl { font-size: 1.25rem; }
.upload-mb-4    { margin-bottom: 1rem; }
.upload-overflow-auto { overflow: auto; }

/* Контейнер «Прогресс» */
.upload-progress-view {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Скрыт по умолчанию */
#progressView.upload-hidden {
  display: none;
}

/* Список прогресс-баров */
.upload-progress-list {
  flex: 1;
  overflow: auto;
}

/* Группа кнопок внизу */
.upload-btn-group {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Кнопки */
.upload-cancel-btn,
.upload-ok-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.upload-cancel-btn { background-color: #dc2626; }
.upload-ok-btn     { background-color: #16a34a; }
/* Скрывать OK по умолчанию */
#okBtn.upload-hidden {
  display: none;
}

