/* BASIC css start */
/* THE LAB CHEMICAL — 게시판 목록 CSS v3 */
#bbsData {
  --navy:   #0C025B;
  --navy2:  #080142;
  --lt:     #f0eeff;
  --border: #e5e7eb;
  --text:   #111827;
  --sub:    #6b7280;
  --muted:  #9ca3af;
  --bg:     #ffffff;
  --soft:   #f9fafb;
  --thead:  #f1f3f5;
  --thead-text: #374151;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  color: var(--text);
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  -webkit-font-smoothing: antialiased;
}
#bbsData * { box-sizing: border-box; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ── 탭 ── */
.bbs-nav { margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.bbs-nav ul { list-style:none; margin:0; padding:0; display:flex; }
.bbs-nav ul li a {
  display:block; padding:11px 20px; font-size:13.5px; font-weight:600;
  color:var(--sub); text-decoration:none;
  border-bottom:2px solid transparent; margin-bottom:-1px;
  transition:color .15s, border-color .15s; white-space:nowrap;
}
.bbs-nav ul li a:hover { color:var(--navy); border-bottom-color:var(--navy); }

/* ── 헤더 ── */
.bbs-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px; gap:16px; flex-wrap:wrap;
}
.bbs-title { font-size:22px; font-weight:900; color:var(--navy); letter-spacing:-.4px; margin:0; }

/* ── 검색 ── */
.bbs-search fieldset { display:flex; align-items:center; gap:12px; border:none; margin:0; padding:0; }
.search-radios { display:flex; gap:12px; font-size:13px; color:var(--sub); }
.search-radios label { display:flex; align-items:center; gap:4px; cursor:pointer; white-space:nowrap; }
.search-radios input[type="radio"] { accent-color:var(--navy); }
.search-input {
  display:flex; align-items:center;
  border:1px solid var(--border); border-radius:8px;
  overflow:hidden; background:var(--bg);
}
.search-input input { height:38px; padding:0 14px; border:none; outline:none; font-size:13px; font-family:inherit; color:var(--text); width:200px; }
.search-btn {
  display:flex; align-items:center; justify-content:center;
  height:38px; padding:0 18px;
  background:var(--navy); color:#fff;
  font-size:13px; font-weight:700; text-decoration:none;
  font-family:inherit; transition:background .15s;
}
.search-btn:hover { background:var(--navy2); }

/* ── 테이블 ── */
.bbs-table-wrap {
  border:1px solid var(--border); border-radius:12px;
  overflow:hidden; margin-bottom:20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.bbs-table { width:100%; border-collapse:collapse; font-size:13.5px; }

/* 헤더 → 회색 */
.bbs-table thead tr { background:var(--thead); }
.bbs-table thead th {
  padding:13px 16px; font-size:11.5px; font-weight:800;
  color:var(--thead-text); text-align:center;
  letter-spacing:.06em; border-right:1px solid var(--border);
  white-space:nowrap; text-transform:uppercase;
}
.bbs-table thead th:last-child { border-right:none; }
.bbs-table thead th.th-subject { text-align:left; padding-left:20px; }

/* colgroup 비율 조정 */
.bbs-table col:nth-child(1) { width:70px; }
.bbs-table col:nth-child(2) { width:28px; }
.bbs-table col:nth-child(3) { width:auto; }
.bbs-table col:nth-child(4) { width:130px; }
.bbs-table col:nth-child(5) { width:110px; }
.bbs-table col:nth-child(6) { width:60px; }

/* tbody */
.bbs-table tbody tr { border-bottom:1px solid var(--border); background:var(--bg); transition:background .12s; }
.bbs-table tbody tr:last-child { border-bottom:none; }
.bbs-table tbody tr:hover { background:#fafbff; }
.bbs-table tbody td { padding:14px 16px; color:var(--text); vertical-align:middle; }

.td-center { text-align:center; }
.td-num    { color:var(--muted); font-size:12.5px; }
.td-date   { color:var(--sub); font-size:12.5px; white-space:nowrap; }
.td-hits   { color:var(--muted); font-size:12.5px; }



.td-subject { text-align:left; padding-left:20px; }
.subject-link { color:var(--text); text-decoration:none; font-weight:500; line-height:1.5; transition:color .12s; }
.subject-link:hover { color:var(--navy); }
.comment-cnt { color:var(--navy); font-size:12px; font-weight:700; margin-left:3px; }
.product-tag { color:var(--navy); font-size:12px; font-weight:700; margin-right:4px; text-decoration:none; }
.product-thumb { width:44px; height:44px; object-fit:contain; border:1px solid var(--border); border-radius:4px; }
.del-notice { font-size:12px; color:var(--muted); display:block; margin-bottom:2px; }

/* 공지 */
.notice-row { background:var(--lt) !important; }
.notice-row td { font-weight:600; }
.notice-row:hover { background:#e8e4ff !important; }
.badge-notice {
  display:inline-flex; align-items:center; justify-content:center;
  height:20px; padding:0 8px; background:var(--navy); color:#fff;
  font-size:10px; font-weight:800; border-radius:4px; letter-spacing:.04em;
}

/* ── 페이징 + 버튼 ── */
.bbs-foot { display:flex; align-items:center; justify-content:center; position:relative; padding:8px 0; }
.bbs-paging { display:flex; align-items:center; gap:4px; }
.pg-btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:36px; height:36px; padding:0 8px;
  border:1px solid var(--border); border-radius:8px;
  font-size:13px; font-weight:600; color:var(--sub);
  text-decoration:none; background:var(--bg); transition:all .12s;
}
.pg-btn:hover { border-color:var(--navy); color:var(--navy); background:var(--lt); }
.pg-btn.active { background:var(--navy); border-color:var(--navy); color:#fff; }

.write-btn {
  position:absolute; right:0;
  display:inline-flex; align-items:center; justify-content:center;
  height:38px; padding:0 24px;
  background:var(--navy); color:#fff;
  font-size:13px; font-weight:700; border-radius:8px;
  text-decoration:none; transition:background .15s; font-family:inherit;
}
.write-btn:hover { background:var(--navy2); }

@media (max-width:768px) {
  #bbsData { padding:20px 16px 48px; }
  .bbs-head { flex-direction:column; align-items:flex-start; gap:10px; }
  .bbs-table-wrap { border-radius:8px; }
  .bbs-table thead th:nth-child(1),.bbs-table tbody td:nth-child(1),
  .bbs-table thead th:nth-child(6),.bbs-table tbody td:nth-child(6),
  .bbs-table thead th:nth-child(7),.bbs-table tbody td:nth-child(7) { display:none; }
  .search-input input { width:130px; }
  .write-btn { position:static; margin-left:auto; }
  .bbs-foot { flex-wrap:wrap; gap:8px; }
}

/* NAME 컬럼 정렬 통일 */
.td-writer {
  text-align: center !important;
  vertical-align: middle !important;
}
.td-writer img {
  display: block !important;
  margin: 0 auto !important;
  max-height: 20px !important;
  width: auto !important;
}
/* BASIC css end */

