/* =========================
   Inquiry View (Admin)
   dashboard.css와 톤 통일
========================= */

/* 전체 박스 */
.detail-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* 정보 행 */
.detail-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eeeeee;
}

.detail-row:last-of-type {
  border-bottom: none;
}

.detail-row strong {
  width: 80px;
  font-size: 14px;
  font-weight: 600;
  color: #374151; /* dashboard th 컬러 */
}

.detail-row span {
  font-size: 14px;
  color: #111827;
}

.detail-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

.detail-row .thumbnail-img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

/* 썸네일 행 */
.detail-row.thumbnail {
  display: flex;
  align-items: flex-start;
}

.detail-row.thumbnail strong {
  flex-shrink: 0;
}

.thumbnail-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.thumbnail-preview {
  display: block; /* 항상 표시 */
  width: 100%;
  max-width: 300px;
  height: 300px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  object-fit: contain;
  background-color: #f3f4f6; /* 기본 배경 톤 */
}

/* =========================
   상태 영역
========================= */
.status-row {
  align-items: center;
}

/* 상태 뱃지 (dashboard 재사용) */
.detail-row .status {
  font-size: 12px;
  margin-right: 10px;
}

/* 상태 폼 */
.status-form {
  display: inline-block;
}

/* 완료 처리 버튼 */
.btn-status {
  padding: 6px 14px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.btn-status:hover {
  background: #1d4ed8;
}

.btn-status:active {
  transform: translateY(1px);
}

/* 제목 강조 */
.detail-row.title span {
  font-weight: 600;
}

/* 내용 영역 */
.detail-content {
  width: 100%;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  overflow-wrap: break-word; /* 긴 텍스트 줄바꿈 */
  word-break: break-word;
}

/* detail-content 내부 이미지 */
.detail-content img {
  max-width: 100%; /* 부모 영역 넘지 않도록 */
  height: auto; /* 비율 유지 */
  display: block;
  margin: 10px 0;
}

/* detail-content 내부 테이블 */
.detail-content table {
  width: 100%;
  border-collapse: collapse;
}

.detail-content td,
.detail-content th {
  word-break: break-word;
  padding: 6px;
  border: 1px solid #d1d5db;
}

/* 하단 버튼 영역 */
.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  gap: 10px;
}

.attach-link {
  color: #007bff;
  text-decoration: none;
}
.attach-link:hover {
  text-decoration: underline;
}

/* 목록 버튼 (search-box / pagination 톤) */
.detail-actions .btn {
  padding: 10px 18px;
  background: #1f2937;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.detail-actions .btn:hover {
  background: #111827;
  cursor: pointer;
}

.detail-actions .btn-delete {
  padding: 10px 18px;
  background: #6b7280;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.detail-actions .btn-delete:hover {
  background: #4b5563;
  cursor: pointer;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .detail-box {
    padding: 10px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .detail-row strong {
    width: auto;
    font-size: 13px;
  }

  .detail-row span {
    font-size: 13px;
  }

  .status-form {
    margin-top: 4px;
  }

  .detail-content {
    padding: 16px;
    font-size: 13px;
  }

  .detail-actions {
    flex-direction: column;
    justify-content: center;
  }

  .detail-actions .btn {
    width: 100%;
    text-align: center;
  }

  .thumbnail-area {
    width: 100%;
  }

  .thumbnail-preview {
    max-width: 100%;
  }
}
