/* support-form.css */

#support-data-wrap {
  margin: 20px 0;
  font-family: 'Noto Sans KR', sans-serif;
  max-width: 1400px;
}

.support-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.support-data-table th {
  background-color: #496c56;
  color: #fff;
  padding: 10px;
  text-align: center;
}

.support-data-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.support-data-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.support-data-table tr:hover {
  background-color: #e9f1ec;
}

#support-search {
  margin-bottom: 15px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.support-pagination {
  margin-top: 15px;
  text-align: center;
}

.support-pagination button {
  background: #496c56;
  color: #fff;
  border: none;
  margin: 0 3px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.support-pagination button:hover {
  background: #3d5d4a;
}

.support-pagination button.active {
  background: #2f4d3a;
}



.support-data-table {
  width: 100%;
  table-layout: fixed; /* 열 너비 고정 */
  border-collapse: collapse;
}

.support-data-table th,
.support-data-table td {
  height: 60px; /* 원하는 기본 높이 */
  vertical-align: middle;

  padding: 8px;
  text-align: left;
  border: 1px solid #ddd;
  overflow: hidden;       /* 넘치면 감춤 */
  text-overflow: ellipsis; /* 말줄임 표시 */
  white-space: nowrap;     /* 줄바꿈 방지 */
}

/* textarea/input 스타일 */
.support-data-table td.editing textarea,
.support-data-table td.editing input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  resize: none;
  border: none;
  outline: none;
  background: #fdfdfd;
  padding: 6px;
  font-size: 14px;
}



/* 각 열 너비 고정 */
.support-data-table th:nth-child(1),
.support-data-table td:nth-child(1) { width: 50px; text-align: center; }   /* ID */
.support-data-table th:nth-child(2),
.support-data-table td:nth-child(2) { width: 125px; text-align: center; }   /* 이름 */
.support-data-table th:nth-child(3),
.support-data-table td:nth-child(3) { width: 150px; text-align: center; } /* 전화번호 */
.support-data-table th:nth-child(4),
.support-data-table td:nth-child(4) { width: 250px; text-align: left; }   /* 이메일 */
.support-data-table th:nth-child(5),
.support-data-table td:nth-child(5) { width: 275x; text-align: left; }   /* 제목 */
.support-data-table th:nth-child(6),
.support-data-table td:nth-child(6) { width: 325px; text-align: left; }   /* 내용 */
.support-data-table th:nth-child(7),
.support-data-table td:nth-child(7) { width: 150px; text-align: center; } /* 등록일 */
.support-data-table th:nth-child(8),
.support-data-table td:nth-child(8) { width: 75px; text-align: center; } /* 답장 */

/* 헤더 전체 중앙 정렬 */
.support-data-table th {
  text-align: center;
}



/* 행 강조 */
.support-data-table tr.row-selected {
  background-color: #e5f0ea; /* 연한 초록빛 */
}

/* 열 강조 */
.support-data-table td.col-selected {
  background-color: #f1f8f5; /* 더 옅은 초록 */
}

/* 선택된 셀 강조 */
.support-data-table td.cell-selected {
  background-color: #496c56 !important; /* 진한 초록 */
  color: #fff !important;
  font-weight: bold;
}


/* 전체 모달 배경 */
#reply-modal.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  font-family: "Noto Sans KR", sans-serif;
}

/* 모달 박스 */
#reply-modal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  width: 420px;
  max-width: 95%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: fadeInUp 0.3s ease;
  position: relative;
}

/* 닫기 버튼 */
#reply-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
#reply-modal .close-btn:hover {
  color: #333;
}

/* 제목 */
#reply-modal h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

/* From / To 표시 */
#reply-modal p {
  margin: 6px 0;
  font-size: 14px;
  color: #555;
}
#reply-modal p strong {
  color: #333;
}

/* 제목 input */
#reply-modal input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  margin: 10px 0;
  transition: border 0.2s;
}
#reply-modal input[type="text"]:focus {
  border-color: #16a085;
  outline: none;
}

/* 메시지 textarea */
#reply-modal textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  resize: none;
  transition: border 0.2s;
}
#reply-modal textarea:focus {
  border-color: #16a085;
  outline: none;
}

/* 보내기 버튼 */
#reply-modal .btn-send {
  margin-top: 14px;
  width: 100%;
  background: #16a085;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#reply-modal .btn-send:hover {
  background: #13856e;
}

/* 애니메이션 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
