h3 {
  font-family: 'TT-Hoves-Pro-Expanded-DemiBold', sans-serif;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  margin-top: 40px;
}

.room-info {
  text-align: center;
  margin-bottom: 25px;
  font-family: 'TT Hoves Pro Expanded', sans-serif;
  font-weight: 500;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 25px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'TT Hoves Pro Expanded', sans-serif;
}

.remark-form {
  margin-bottom: 30px;
}

.remark-section {
  margin-bottom: 20px;
  text-align: center;
}

.remark-section label {
  display: block;
  font-family: 'TT-Hoves-Pro-Expanded-DemiBold', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-control {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-family: 'TT Hoves Pro Expanded', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

select.form-control,
input.form-control,
textarea.form-control {
  transition: border-color 0.3s ease;
}

select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
  outline: none;
  border-color: #874FFF;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

#filePreview {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.file-preview {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'TT Hoves Pro Expanded', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-2px);
}
.warning-text {
  font-size: 0.9em;
  margin-top: 5px;
  margin-bottom: 5px;
}

.hidden {
  display: none;
}
#attachFileBtn {
  background: #DAFF96;
  color: #000000;
}

#fixRemarkBtn {
  background: #A4FD00;
  color: #000000;
}

#finishInspectionBtn {
  background: #874FFF;
  color: #FFFFFF;
  margin-bottom: 60px;
}

.remarks-container {
  margin-bottom: 25px;
}

.remark-tile {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid #874FFF;
}

.button-group {
  text-align: center;
  margin-top: 20px;
}

.btn-attach-act {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
}

.btn-attach-act img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.btn-attach-act:hover img {
  opacity: 1;
}

/* Располагаем кнопку справа */
.modal-header-report {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.remark-tile {
  position: relative;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.btn.btn-secondary.remove-tile {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Отступ для основного контента, чтобы он не накладывался на кнопку */
.remark-tile > div:first-child {
  margin-right: 35px;
}

.inspection-status {
  background-color: #fff3cd;
  color: #856404;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-family: 'TT Hoves Pro Expanded', sans-serif;
  text-align: center;
   margin-top: 30px;
}

.admin-warning {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-family: 'TT Hoves Pro Expanded', sans-serif;
  text-align: center;
  border: 1px solid #f5c6cb;
}

/* Стиль для плиток замечаний в режиме только для чтения */
.remark-tile.read-only {
  opacity: 0.7;
  cursor: not-allowed;
  background: #e9ecef;
}

.remark-tile.read-only .remove-tile {
  display: none;
}

#fixRemarkBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#remarkForm.loading {
  opacity: 0.6;
  pointer-events: none;
}

.modal-header-report {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

.report-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 5px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-btn:hover {
  background: #218838;
}

.report-btn img {
  width: 16px;
  height: 16px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .modal-content {
    margin-top: 50px;
  }
  
  .remark-section {
    margin-bottom: 15px;
  }
  
  .form-control {
    max-width: 100%;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 10px;
  }
}
