/* ========== ЖАЛОБЫ ==========
   Оверлей/окно повторяют форму #friendsOverlay/#friendsWindow (см. friends_styles.css) —
   тот же паттерн position:fixed + центрирование. Внутри — просто форма, без табов,
   поэтому берём готовые .admin-header/.close-shop-btn/.admin-text-input/.item-btn
   (общие классы, определены в других css-файлах фич, доступны глобально), а не
   изобретаем новые ради одной формы. */

#reportOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

#reportWindow {
  background: white;
  width: 90%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

#reportContent {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#reportTargetLabel {
  margin: 0;
  font-weight: 600;
}

#reportMessagePreview {
  background: #f5f5f5;
  border-left: 3px solid #ccc;
  padding: 8px 10px;
  font-size: 13px;
  color: #555;
  border-radius: 4px;
  max-height: 80px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

#reportContent label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

#reportDescription {
  resize: vertical;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

#reportSubmitBtn {
  align-self: flex-end;
}

.report-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-photo-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.report-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Фото-доказательства в детальной карточке жалобы (админка, см. js/admin.js) —
   те же миниатюры, что в форме отправки жалобы выше, только без кнопки удаления
   и с кликом-в-новую-вкладку вместо превью-удаления. */
.admin-report-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-report-photos img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.report-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 11px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
}
