:root {
  --primary-color: #2c3e50;
  --bg-color: #f4f7f6;
}

/* ===== 기본 ===== */
body {
  font-family: 'Pretendard', sans-serif;
  background-color: var(--bg-color);
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== 상단 영역 ===== */
.filter-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
}

.summary {
  font-size: 13px;
  color: #444;
}

/* 폼 스타일(기존 toolbar 스타일 유지) */
.toolbar input[type="text"],
.toolbar select,
.toolbar input[type="date"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.toolbar button {
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
}

/* 채널 체크박스 라인 */
.channel-filter {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #222;
}

.channel-filter label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

/* ===== 테이블 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  vertical-align: middle;
}

th {
  background-color: var(--primary-color);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:hover {
  background-color: #f8f9fa;
}

.center { text-align: center; }
.price { text-align: right; font-weight: bold; white-space: nowrap; }

.img-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.spu-text {
  font-family: monospace;
  font-weight: bold;
  color: #e67e22;
}

/* ===== 판매처 뱃지 ===== */
.channel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

/* ===== 페이지네이션 ===== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 13px;
  color: #111;
  text-decoration: none;
}

.page-btn:hover {
  background: #f3f4f6;
}

.page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* 정렬 헤더 링크 스타일 */
th a {
  color: #fff;
  text-decoration: none;
}
th a:hover {
  text-decoration: underline;
}

/* ===== 헤더 버튼 영역 ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-bottom: 2px solid #e5e7eb;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
}

.page-title a {
  color: #111827;
  text-decoration: none;
}

.page-title a:hover {
  text-decoration: underline;
}

.page-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1e40af;
}

/* ✅ 공급사 리스트 톤 통일 */
.wrap{
  max-width:1400px;
  margin:0 auto;
}

.card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  padding:18px;
}

/* ===== 공급사 리스트와 동일 톤 강제 적용 ===== */
:root{
  --bg:#f4f7f6;
  --card:#ffffff;
  --line:#e5e7eb;
  --text:#111827;
  --muted:#6b7280;
  --primary:#2c3e50;
  --radius:14px;
}

/* ✅ 페이지 바깥 배경(연회색) */
html, body{
  background: var(--bg) !important;
}

/* ✅ body 기본값(공급사 리스트처럼) */
body{
  margin:0 !important;
  padding:20px !important;
  font-family:Pretendard, system-ui, -apple-system, Segoe UI, Roboto, Arial !important;
  color: var(--text) !important;
}

/* ✅ 가운데 카드(흰색) */
.container{
  max-width:1400px;
  margin:0 auto;
  background: var(--card) !important;
  border:1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.06) !important;
  padding:20px !important;
}

/* ✅ (선택) 필터 섹션도 공급사처럼 톤 맞춤 */
.filter-section{
  background:#f9fafb !important;
  border:1px solid var(--line) !important;
}

/* ✅ 테이블 헤더 색(스샷처럼 진한 남색) */
th{
  background: var(--primary) !important;
  color:#fff !important;
}

/* ===== 엑셀 다운로드 드롭다운(추가) ===== */
.dl-wrap{ position:relative; display:inline-block; }
.dl-menu{
  display:none;
  position:absolute;
  right:0;
  top:42px;
  min-width:240px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  padding:6px;
  z-index:1000;
}
.dl-hint{
  font-size:12px;
  color:#6b7280;
  padding:8px 10px;
}
.dl-item{
  display:block;
  padding:10px;
  border-radius:8px;
  text-decoration:none;
  color:#111827;
}
.dl-item:hover{ background:#f3f4f6; }
