*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 14px;
  background: #f2ede3;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ── 헤더 (브랜드만) ── */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

/* ── 탭 네비게이션 바 ── */
.tab-nav {
  background: #ffffff;
  border-bottom: 2px solid #e5e7eb;
  padding: 0 32px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 56px;
  z-index: 9;
}
.tab-nav::-webkit-scrollbar { display: none; }

.nav-tab {
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.nav-tab:hover { color: #1a1a1a; }
.nav-tab.active { color: #1a1a1a; font-weight: 600; border-bottom: 2px solid #2563eb; }

/* ── 탭 패널 ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── 콘텐츠 ── */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}

.page-title { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 6px; letter-spacing: -0.3px; }
.page-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 28px; line-height: 1.5; }

/* ── 검색 폼 ── */
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-form label { font-size: 13px; color: #6b7280; white-space: nowrap; margin-right: 2px; }
.search-form select,
.search-form input[type="date"] {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  background: #ffffff;
  font-size: 13px;
  color: #1a1a1a;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}
.search-form select:focus,
.search-form input[type="date"]:focus { border-color: #2563eb; }
.search-form select { min-width: 170px; }
.search-form input[type="date"] { min-width: 150px; }

.btn-search {
  height: 36px;
  padding: 0 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
  margin-left: 4px;
}
.btn-search:hover { background: #1d4ed8; }

.divider { border: none; border-top: 1px solid #e0d9ce; margin-bottom: 24px; }
.total-count { font-size: 13px; color: #6b7280; margin-bottom: 12px; min-height: 20px; }

/* ── 테이블 카드 ── */
.table-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; min-width: 800px; white-space: nowrap; }

thead th {
  padding: 13px 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
tbody td {
  padding: 14px 18px;
  text-align: center;
  font-size: 13px;
  color: #1a1a1a;
  border-bottom: 1px solid #f3f4f6;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafaf9; }

/* ── 등급 배지 ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-best   { background: #dbeafe; color: #1d4ed8; }
.badge-good   { background: #dcfce7; color: #15803d; }
.badge-normal { background: #fef9c3; color: #92400e; }
.badge-bad    { background: #fee2e2; color: #b91c1c; }

/* ── 페이지네이션 ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 18px;
  border-top: 1px solid #f3f4f6;
}
.pagination button {
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: transparent;
  font-size: 13px; color: #6b7280;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background 0.1s;
}
.pagination button:hover { background: #f3f4f6; }
.pagination button.active { background: #2563eb; color: #fff; font-weight: 700; }
.pagination button:disabled { color: #d1d5db; cursor: default; }
.pagination button:disabled:hover { background: transparent; }

.status-row td { padding: 52px; color: #9ca3af; font-size: 13px; }
