@charset "utf-8";

/* ===== search2 - shadcn style ===== */

.search2-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  margin-top: 20px;
}

/* 검색 폼 */
#new_sch {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
#new_sch legend {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.search2-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#new_sch select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  min-width: 100px;
}
#new_sch select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
}

.search2-input-wrap {
  position: relative;
  flex: 1;
  max-width: 400px;
}

#new_sch .frm_input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  box-sizing: border-box;
}
#new_sch .frm_input::placeholder {
  color: #a0aec0;
}
#new_sch .frm_input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
}

#new_sch .btn_submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#new_sch .btn_submit:hover {
  color: #1a1a1a;
}

/* 검색결과 정보 */
.search2-result-info {
  padding: 12px 0;
  margin-bottom: 16px;
  font-size: 14px;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}
.search2-keyword {
  font-weight: 600;
  color: #1a1a1a;
}
.search2-count {
  color: #3b82f6;
  font-weight: 600;
}

/* 테이블 */
.search2-table {
  margin: 0 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.search2-wrap .search2-table.tbl_wrap table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-spacing: 0 !important;
  min-width: 580px;
}

.search2-wrap .search2-table.tbl_head01 thead th {
  padding: 10px 16px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  text-align: left !important;
  background: #fff !important;
  border-top: none !important;
  border-bottom: 1px solid #e9ecef !important;
  white-space: nowrap !important;
  height: auto !important;
}
.search2-wrap .search2-table thead th.th-board {
  width: 12%;
  text-align: center !important;
}
.search2-wrap .search2-table thead th.th-name {
  width: 12%;
  text-align: center !important;
}
.search2-wrap .search2-table thead th.th-date {
  width: 10%;
  text-align: center !important;
}

.search2-wrap .search2-table.tbl_head01 td {
  padding: 12px 16px !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: none !important;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  word-break: break-all;
}
.search2-table tbody tr:hover td {
  background: #f8fafc !important;
}
.search2-table tbody tr:first-child td {
  border-top: none !important;
}

/* 게시판 배지 */
.search2-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
  white-space: nowrap;
}
.td_board {
  text-align: center;
}

/* 제목 */
.td_subject a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.5;
}
.td_subject a:hover {
  color: #3b82f6;
  text-decoration: none;
}

/* 댓글 표시 */
.search2-comment {
  color: #94a3b8;
  font-size: 13px;
}

/* 별 아이콘 (레벨) 세로 정렬 */
.search2-table .namelevel {
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* 이름, 날짜 */
.td_name {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.td_name .flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.td_date {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
}

/* 빈 목록 */
.empty_table {
  padding: 48px 16px !important;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* 검색어 하이라이트 */
.sch_word {
  color: #fff;
  font-weight: 600;
  background: #b20088;
  padding: 1px 4px;
  border-radius: 3px;
}

/* 어드민 버튼 */
.admin_new_btn {
  margin: 8px 0;
  text-align: right;
}
.admin_new_btn .btn {
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
}
.admin_new_btn .btn:hover {
  background: #f8fafc;
  color: #ef4444;
  border-color: #fecaca;
}

/* 체크박스 */
.selec_chk {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  outline: 0;
  z-index: -1;
  overflow: hidden;
}
.chk_box {
  position: relative;
}
.chk_box label span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
}
.chk_box input:checked + label span {
  background: #3b82f6;
  border-color: #3b82f6;
}
.chk_box input:checked + label span::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 2px;
  left: 5px;
  transform: rotate(45deg);
}

/* 페이징 - 기본 스타일 오버라이드 */
.search2-wrap .pg_wrap {
  margin: 24px 0;
  text-align: center;
}

/* 모바일 반응형 */
@media (max-width: 640px) {
  .search2-wrap {
    padding: 0 10px;
    margin-top: 14px;
  }
  .search2-form {
    gap: 5px;
  }
  #new_sch select {
    height: 36px;
    font-size: 13px;
    min-width: 70px;
    padding-right: 22px;
  }
  #new_sch .frm_input {
    height: 36px;
    font-size: 13px;
  }
  #new_sch .btn_submit {
    width: 36px;
    height: 36px;
  }
  .search2-input-wrap {
    max-width: none;
  }
}
