/* === 기본 리셋 & 변수 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a6b3c;
  --primary-dark: #134d2b;
  --primary-light: #e8f5ee;
  --gold: #c8a84b;
  --gold-dark: #a8892f;
  --gold-light: #fdf6e3;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --bg: #f0f4f8;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text-main: #1e293b;
  --text-sub: #64748b;
  --text-light: #94a3b8;
  --sidebar-w: 260px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === 사이드바 === */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #0f3d22 0%, #1a6b3c 60%, #134d2b 100%);
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(200,168,75,0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(200,168,75,0.25);
  color: var(--gold);
  font-weight: 700;
  border-left: 3px solid var(--gold);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* === 오버레이 === */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
}

/* === 메인 래퍼 === */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin var(--transition);
}

/* === 탑바 === */
.topbar {
  background: var(--surface);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.current-date {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}

/* === 컨텐츠 영역 === */
.content-area {
  padding: 24px;
  flex: 1;
}

.page { display: none; }
.page.active { display: block; }

/* === 대시보드 통계 카드 === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  border-left: 4px solid transparent;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-card.green { border-left-color: var(--primary); }
.stat-card.gold { border-left-color: var(--gold); }
.stat-card.blue { border-left-color: var(--blue); }
.stat-card.purple { border-left-color: var(--purple); }

.stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card.green .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-card.gold .stat-icon { background: var(--gold-light); color: var(--gold-dark); }
.stat-card.blue .stat-icon { background: var(--blue-light); color: var(--blue); }
.stat-card.purple .stat-icon { background: var(--purple-light); color: var(--purple); }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
  margin-top: 4px;
}

/* === 대시보드 그리드 === */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i { color: var(--primary); }

.card-body {
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn-link:hover { text-decoration: underline; }

/* 대시보드 아이템 */
.dash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}

.dash-item:last-child { border-bottom: none; }
.dash-item:hover { background: var(--bg); }

.dash-item-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-item-info { flex: 1; min-width: 0; }
.dash-item-name { font-size: 13px; font-weight: 600; }
.dash-item-sub { font-size: 11px; color: var(--text-sub); }

/* === 퀵 액션 === */
.quick-actions {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.quick-actions h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.quick-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all var(--transition);
}

.quick-btn.green { background: var(--primary-light); color: var(--primary); }
.quick-btn.gold { background: var(--gold-light); color: var(--gold-dark); }
.quick-btn.blue { background: var(--blue-light); color: var(--blue); }

.quick-btn:hover { transform: translateY(-2px); filter: brightness(0.95); }

/* === 페이지 액션 === */
.page-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  flex: 1;
  max-width: 360px;
}

.search-wrap i { color: var(--text-light); font-size: 14px; }

.search-wrap input {
  border: none;
  outline: none;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
  width: 100%;
}

/* === 버튼 === */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg);
  color: var(--text-sub);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all var(--transition);
}

.btn-secondary:hover { background: var(--border); }

.btn-icon {
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}

.btn-icon.edit   { color: var(--blue); }
.btn-icon.edit:hover   { background: var(--blue-light); }
.btn-icon.delete { color: var(--danger); }
.btn-icon.delete:hover { background: #fef2f2; }
.btn-icon.view   { color: var(--primary); }
.btn-icon.view:hover   { background: var(--primary-light); }
.btn-icon.consult { color: #7c3aed; }
.btn-icon.consult:hover { background: #ede9fe; }

/* === 테이블 === */
.table-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  background: #f8fafc;
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: #f8fafc; }

.data-table tbody td {
  padding: 12px 14px;
  color: var(--text-main);
  vertical-align: middle;
}

.loading-cell {
  text-align: center !important;
  padding: 40px !important;
  color: var(--text-light);
}

/* === 배지 === */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green { background: var(--primary-light); color: var(--primary); }
.badge-gold { background: var(--gold-light); color: var(--gold-dark); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-red { background: #fef2f2; color: var(--danger); }
.badge-gray { background: #f1f5f9; color: var(--text-sub); }
.badge-orange { background: #fff7ed; color: #ea580c; }

/* === 필터 탭 === */
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  color: var(--text-sub);
  transition: all var(--transition);
}

.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; }

/* === 페이지네이션 === */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 16px;
  flex-wrap: wrap;
}

.page-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 700; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* === 빈 상태 === */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-state i {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

/* === 모달 === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.25s ease;
}

.modal.large { max-width: 720px; }
.modal.xlarge {
  max-width: 860px;
  max-height: 90vh;
  height: auto;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h2 i { color: var(--primary); }

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-sub);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--danger); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* === 폼 === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group.required label::after {
  content: ' *';
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-main);
  background: var(--surface);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.08);
}

.form-group textarea { resize: vertical; }

.form-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 고객 선택 드롭다운 */
.customer-select-wrap {
  position: relative;
}

.customer-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.customer-dropdown.open { display: block; }

.customer-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
/* 예약 모달 자동완성 아이템 (customer-dropdown-item) */
.customer-dropdown-item {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.customer-dropdown-item:last-child { border-bottom: none; }
.customer-dropdown-item:hover { background: var(--primary-light); }

.customer-option:last-child { border-bottom: none; }
.customer-option:hover { background: var(--primary-light); }
.customer-option-name { font-weight: 600; }
.customer-option-phone { font-size: 11px; color: var(--text-sub); }

/* === 상세 보기 === */
.detail-section {
  margin-bottom: 20px;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.detail-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.detail-item.full { grid-column: 1 / -1; }

.detail-label {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

/* 고객 상세 헤더 */
.customer-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.customer-avatar-large {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.customer-main-info h3 {
  font-size: 20px;
  font-weight: 800;
}

.customer-main-info p {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* === 토스트 === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--text-main);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.toast.out { animation: toastOut 0.3s ease forwards; }

/* === 반응형 === */

/* ── PC 대형 화면 (1280px 이상) ── */
@media (min-width: 1280px) {
  :root { --sidebar-w: 260px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .modal.xlarge { max-width: 1000px; }
  .content-area { padding: 28px 32px; }
}

/* ── 태블릿 가로 / 큰 태블릿 (1024px 이하) ── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 13px; }
  .data-table thead th,
  .data-table tbody td { padding: 9px 11px; }
}

/* ── 아이패드 세로 / 태블릿 (768~1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  /* 사이드바: 아이콘만 표시 (슬림 모드) */
  :root { --sidebar-w: 64px; }

  .sidebar {
    width: 64px;
    overflow: visible;
    transition: width var(--transition);
  }

  /* 로고 텍스트, 메뉴 텍스트, 하단 푸터 숨김 */
  .logo-text,
  .nav-item span,
  .sidebar-footer { display: none; }

  .logo-icon { margin: 0 auto; }
  .sidebar-header {
    padding: 16px 11px;
    justify-content: center;
  }

  /* 네비 아이템: 아이콘만 중앙 정렬 */
  .nav-item {
    justify-content: center;
    padding: 13px 0;
    gap: 0;
    border-left: none !important;
  }
  .nav-item i { font-size: 18px; width: auto; }

  /* 툴팁: 아이콘 오른쪽에 메뉴명 팝업 */
  .nav-item { position: relative; }
  .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #0f3d22;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    z-index: 999;
  }
  .nav-item:hover::after { opacity: 1; }

  .main-wrapper { margin-left: 64px; }

  /* 컨텐츠 패딩 축소 */
  .content-area { padding: 18px; }

  /* 통계 카드 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card { padding: 16px 18px; }
  .stat-value { font-size: 24px; }

  /* 테이블 */
  .data-table { font-size: 12px; }
  .data-table thead th,
  .data-table tbody td { padding: 8px 10px; }

  /* 페이지 액션 */
  .page-actions { gap: 10px; }

  /* 모달 */
  .modal.large { max-width: 90vw; }
  .modal.xlarge { max-width: 95vw; }

  /* 달력 */
  .cal-cell { min-height: 80px; }
  .chip { font-size: 10px; padding: 2px 5px; }

  /* 폼 그리드 */
  .form-grid { grid-template-columns: repeat(2, 1fr); }

  /* 테이블 가로 스크롤 */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── 스마트폰 / 아이패드 미니 세로 (768px 이하) ── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close { display: block; }
  .overlay.show { display: block; }
  .main-wrapper { margin-left: 0; }
  .hamburger { display: block; }
  .content-area { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-value { font-size: 22px; }
  .modal.large, .modal.xlarge { max-width: 100%; width: 100%; border-radius: 0; margin: 0; height: 100dvh; max-height: 100dvh; }
  .modal { border-radius: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-actions { flex-direction: column; align-items: stretch; }
  .view-toggle-wrap { align-self: flex-start; }
  .search-wrap { max-width: 100%; }
  .quick-btns { flex-direction: column; }
  .quick-btn { justify-content: center; }
  .topbar { padding: 0 16px; }
  .data-table { font-size: 12px; }
  .data-table thead th, .data-table tbody td { padding: 8px 10px; }

  /* 테이블 가로 스크롤 */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 달력 작게 */
  .cal-cell { min-height: 60px; padding: 4px; }
  .chip { font-size: 10px; }
  .cal-day-num { font-size: 12px; }

  /* 팝오버 전체 너비 */
  .day-popover { width: 94vw !important; left: 3vw !important; }
}

/* ── 소형 스마트폰 (480px 이하) ── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 16px; }
  .stat-icon { width: 40px; height: 40px; font-size: 18px; }
  .stat-value { font-size: 20px; }
  .topbar { height: 56px; }
  .page-title { font-size: 17px; }
}

/* ── 터치 기기 공통 최적화 ── */
@media (hover: none) and (pointer: coarse) {
  /* 터치 타겟 최소 44px */
  .btn-icon { padding: 10px; font-size: 15px; }
  .nav-item { padding: 14px 16px; }
  .btn-primary, .btn-secondary { padding: 10px 20px; min-height: 44px; }
  /* 스크롤 부드럽게 */
  .modal-body,
  .sidebar-nav,
  .table-wrap,
  .content-area { -webkit-overflow-scrolling: touch; }
  /* 클릭 딜레이 제거 */
  a, button, [role="button"] { touch-action: manipulation; }
}

/* ── 테이블 가로 스크롤 래퍼 ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

/* ── PC/태블릿 공통: 모달 스크롤 ── */
.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===================================
   뷰 토글 버튼 (달력/목록)
=================================== */
.view-toggle-wrap {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.view-toggle-btn {
  background: none;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-sub);
  transition: all var(--transition);
}

.view-toggle-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ===================================
   달력 (캘린더 뷰)
=================================== */
.cal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  flex: 1;
  text-align: center;
}

.cal-nav-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-sub);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}

.cal-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.cal-today-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all var(--transition);
}

.cal-today-btn:hover { background: var(--primary-dark); }

/* 범례 */
.cal-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
}

.leg-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.leg-dot.green { background: var(--primary); }
.leg-dot.blue  { background: var(--blue); }
.leg-dot.red   { background: var(--danger); }
.leg-dot.gray  { background: var(--text-light); }

/* 달력 감싸기 */
.calendar-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* 요일 헤더 */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.cal-wd {
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.5px;
}
.cal-wd.sun { color: #ef4444; }
.cal-wd.sat { color: var(--blue); }

/* 날짜 그리드 */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 110px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 6px 4px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: #f8fafc; }

.cal-cell.other-month {
  background: #fafbfc;
}
.cal-cell.other-month .cal-day-num { color: var(--text-light); }

.cal-cell.today { background: var(--primary-light); }
.cal-cell.today .cal-day-num {
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

.cal-day-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}

.cal-cell.sun-col .cal-day-num { color: #ef4444; }
.cal-cell.sat-col .cal-day-num { color: var(--blue); }
.cal-cell.today .cal-day-num { color: white !important; }

/* 달력 이벤트 칩 */
.cal-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-event-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: grab;
  line-height: 1.5;
  transition: opacity var(--transition), transform 0.1s ease;
}
.cal-event-chip:hover { opacity: 0.88; transform: translateY(-1px); }
.cal-event-chip:active { transform: scale(0.97); }

.chip-green { background: var(--primary-light); color: var(--primary); border-left: 3px solid var(--primary); }
.chip-blue  { background: var(--blue-light);    color: var(--blue);    border-left: 3px solid var(--blue); }
.chip-red   { background: #fef2f2;              color: var(--danger);  border-left: 3px solid var(--danger); }
.chip-gray  { background: #f1f5f9;              color: var(--text-sub);border-left: 3px solid var(--text-light); }
.chip-gold  { background: var(--gold-light);    color: var(--gold-dark);border-left: 3px solid var(--gold); }

.cal-more-link {
  font-size: 10px;
  color: var(--text-sub);
  font-weight: 600;
  padding: 1px 4px;
  cursor: pointer;
}
.cal-more-link:hover { color: var(--primary); }

/* ===================================
   캘린더 드래그 & 드롭
=================================== */

/* 드래그 중 커서 */
body.cal-dragging,
body.cal-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

/* 드래그 가능한 칩 — 기본 .cal-event-chip에 cursor:grab 이미 선언됨 */

/* 드래그 고스트 */
.cal-drag-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transform: rotate(2deg);
  opacity: 0.93;
  transition: none;
}

/* 고스트 날짜 힌트 (::after) */
.cal-drag-ghost[data-hint]::after {
  content: attr(data-hint);
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: inherit;
  opacity: 0.75;
  margin-top: 1px;
}

/* 드롭 가능한 셀 하이라이트 */
.cal-cell.drag-over {
  background: #d1fae5 !important;
  border: 2px dashed #1a6b3c !important;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(26,107,60,0.18);
}
.cal-cell.drag-over .cal-day-num {
  color: var(--primary) !important;
  font-weight: 800;
}

/* ===================================
   날짜 팝오버
=================================== */
.day-popover {
  display: none;
  position: fixed;
  width: 300px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 250;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: popIn 0.18s ease;
}

.day-popover.open { display: block; }

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.day-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.day-popover-header button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 14px;
}

.day-popover-body {
  padding: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.day-popover-footer {
  padding: 10px;
  border-top: 1px solid var(--border);
}

.pop-appt-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 6px;
  cursor: default;
}

.pop-appt-item:last-child { margin-bottom: 0; }

.pop-appt-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  margin-top: 1px;
}

.pop-appt-info { flex: 1; min-width: 0; }

.pop-appt-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.pop-appt-sub {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop-appt-actions {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
  align-items: center;
}
.pop-appt-actions .btn-icon {
  padding: 5px 6px;
  font-size: 13px;
}

/* === 스크롤바 === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* 모바일 달력 */
@media (max-width: 768px) {
  .cal-cell { min-height: 70px; padding: 4px 3px; }
  .cal-day-num { font-size: 12px; width: 22px; height: 22px; }
  .cal-event-chip { font-size: 10px; padding: 1px 4px; }
  .cal-title { font-size: 16px; }
  .day-popover { width: calc(100vw - 32px); left: 16px !important; }
}

/* ===================================
   프로 & 인플루언서 카드 그리드
=================================== */
.inf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.inf-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.inf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.inf-card-top {
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.inf-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.inf-avatar.cat-프로         { background: linear-gradient(135deg, #1a6b3c, #2d9e5f); }
.inf-avatar.cat-유튜버       { background: linear-gradient(135deg, #ff0000, #ff6b6b); }
.inf-avatar.cat-인스타그래머 { background: linear-gradient(135deg, #e1306c, #f77737); }
.inf-avatar.cat-틱톡커       { background: linear-gradient(135deg, #010101, #69c9d0); }
.inf-avatar.cat-기타         { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.inf-name-area { flex: 1; min-width: 0; }

.inf-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.inf-category-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.inf-card-body {
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.inf-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.inf-info-row i {
  width: 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
}

.inf-info-row span {
  color: var(--text-main);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inf-card-footer {
  padding: 10px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inf-followers {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}

.inf-followers i { color: var(--gold-dark); }

.inf-card-actions {
  display: flex;
  gap: 4px;
}

/* 상태 배지 */
.badge-inf-진행중 { background: #dcfce7; color: #16a34a; }
.badge-inf-대기   { background: #fef9c3; color: #ca8a04; }
.badge-inf-완료   { background: #dbeafe; color: #2563eb; }
.badge-inf-종료   { background: #f1f5f9; color: #64748b; }

/* 카테고리 배지 */
.badge-cat-프로         { background: var(--primary-light); color: var(--primary); }
.badge-cat-유튜버       { background: #fef2f2; color: #dc2626; }
.badge-cat-인스타그래머 { background: #fdf2f8; color: #be185d; }
.badge-cat-틱톡커       { background: #f0fdf4; color: #15803d; }
.badge-cat-기타         { background: var(--purple-light); color: var(--purple); }

/* 빈 카드 상태 */
.inf-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.inf-empty i { font-size: 48px; display: block; margin-bottom: 16px; }
.inf-empty p { font-size: 15px; }

/* 인플루언서 상세 */
.inf-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--gold-light));
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .inf-card-grid { grid-template-columns: 1fr; }
}

/* ===================================
   클럽 지원 상세 테이블 (엑셀형)
=================================== */
.club-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  /* max-height는 fullscreen 모달에서 인라인 스타일로 지정 */
}

.club-support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 1100px;
}

.club-support-table thead th {
  background: #1a6b3c;
  color: white;
  padding: 9px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.2);
  position: sticky;
  top: 0;
  z-index: 1;
}

.club-support-table thead th:last-child { border-right: none; }

.club-support-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.club-support-table tbody tr:nth-child(even) { background: #fafbfc; }
.club-support-table tbody tr:hover { background: #f0fdf4; }

.club-support-table tbody td {
  padding: 3px 4px;
  border-right: 1px solid var(--border);
  vertical-align: middle;
}

.club-support-table tbody td:last-child { border-right: none; text-align: center; }

.club-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  color: var(--text-main);
  padding: 5px 6px;
  border-radius: 4px;
  transition: background var(--transition);
}

.club-input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(26,107,60,0.2);
}

.club-input[type="date"] { font-size: 11px; }
.club-input[type="number"] { text-align: center; }

.btn-del-row {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background var(--transition);
}

.btn-del-row:hover { background: #fef2f2; }

.btn-add-row {
  margin-left: auto;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}

.btn-add-row:hover { background: var(--primary); color: white; }

.section-title { justify-content: space-between; }

.club-table-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 클럽 지원 상세보기 테이블 */
.club-view-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
  min-width: 900px;
}

.club-view-table thead th {
  background: var(--primary);
  color: white;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.club-view-table tbody tr { border-bottom: 1px solid var(--border); }
.club-view-table tbody tr:nth-child(even) { background: #fafbfc; }
.club-view-table tbody td {
  padding: 7px 10px;
  font-size: 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.club-view-table tbody td:first-child { text-align: left; font-weight: 600; }
.club-view-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ===================================
   예약 모달 — 고객 검색 자동완성 드롭다운
=================================== */
/* 기존고객 매칭 안내 — 위 .form-group position:relative 선언으로 드롭다운 앵커됨 */
.appt-matched-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  flex-wrap: wrap;
}
/* form-group 내 드롭다운 위치 재정의 */
.form-group > .customer-dropdown {
  top: 100%;
  margin-top: 2px;
}

/* 추가정보 토글 버튼 */
.btn-appt-extra-toggle {
  width: 100%;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}
.btn-appt-extra-toggle:hover,
.btn-appt-extra-toggle.open {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   📸 고객 프로필 사진 스타일
============================================================ */
.cust-profile-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--primary);
  transition: transform .15s, box-shadow .15s;
  display: block;
  margin: 0 auto;
}
.cust-profile-img:hover { transform: scale(1.08); box-shadow: 0 2px 10px rgba(26,107,60,.3); }

.cust-profile-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  cursor: pointer;
  position: relative;
  margin: 0 auto;
  transition: background .15s;
}
.cust-profile-avatar:hover { background: #c6e8d4; }
.cust-photo-add-hint {
  position: absolute; bottom: -2px; right: -2px;
  background: var(--primary); color: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* 사진 모달 */
.photo-preview-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.photo-preview {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: var(--primary-light);
  background: #f0fdf4;
}
.photo-preview-name {
  font-size: 16px; font-weight: 700; color: var(--text-main);
}
.photo-btn-group {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.photo-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 12px; font-weight: 600;
  color: var(--text-sub);
  transition: all .15s;
  min-width: 90px;
}
.photo-action-btn i { font-size: 22px; }
.photo-action-btn.camera { border-color: var(--primary); color: var(--primary); }
.photo-action-btn.camera:hover { background: var(--primary); color: #fff; }
.photo-action-btn.gallery { border-color: var(--blue); color: var(--blue); }
.photo-action-btn.gallery:hover { background: var(--blue); color: #fff; }
.photo-action-btn.delete { border-color: var(--danger); color: var(--danger); }
.photo-action-btn.delete:hover { background: var(--danger); color: #fff; }

/* ============================================================
   📸 클럽 이미지 (상담일지) 스타일
============================================================ */
.club-img-inline-area {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start;
  padding: 4px 0;
}
.club-img-add-btn {
  width: 80px; height: 80px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; color: var(--primary);
  font-size: 10px; font-weight: 600;
  transition: background .15s;
  flex-shrink: 0;
}
.club-img-add-btn i { font-size: 22px; }
.club-img-add-btn:hover { background: var(--primary-light); }

.club-img-inline-list {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.club-img-thumb {
  position: relative; width: 80px;
}
.club-img-thumb img {
  width: 80px; height: 80px;
  object-fit: cover; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: transform .15s;
}
.club-img-thumb img:hover { transform: scale(1.05); }
.club-img-del-btn {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: var(--danger); color: #fff; border: none;
  border-radius: 50%; font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.club-img-caption {
  width: 100%; font-size: 9px;
  border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 4px; margin-top: 4px;
  color: var(--text-sub);
}
.club-img-caption:focus { outline: none; border-color: var(--primary); }

/* 상담일지 클럽 이미지 업로드 영역 (클럽 이미지 모달용) */
.club-img-upload-area {
  border: 2px dashed var(--primary); border-radius: var(--radius);
  padding: 24px; text-align: center; cursor: pointer;
  color: var(--primary); font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: background .15s;
}
.club-img-upload-area i { font-size: 32px; }
.club-img-upload-area:hover { background: var(--primary-light); }

.club-img-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 16px;
}

/* ============================================================
   📸 고객 등록/수정 모달 — 인라인 사진 영역
============================================================ */
.cust-modal-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

/* 사진 컬럼 */
.cust-modal-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 120px;
}

.cust-modal-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow .15s;
}
.cust-modal-photo:hover { box-shadow: 0 0 0 4px rgba(26,107,60,.2); }

.cust-modal-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
}
.cust-modal-photo:hover .cust-modal-photo-overlay { opacity: 1; }

.cust-modal-photo-btns {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.cust-photo-btn {
  width: 100%;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all .15s;
  font-family: 'Noto Sans KR', sans-serif;
}
.cust-photo-btn.camera-btn { border-color: var(--primary); color: var(--primary); }
.cust-photo-btn.camera-btn:hover { background: var(--primary); color: #fff; }
.cust-photo-btn.gallery-btn { border-color: var(--blue); color: var(--blue); }
.cust-photo-btn.gallery-btn:hover { background: var(--blue); color: #fff; }
.cust-photo-btn.del-btn { border-color: var(--danger); color: var(--danger); }
.cust-photo-btn.del-btn:hover { background: var(--danger); color: #fff; }

/* 이름+연락처 컬럼 */
.cust-modal-main-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 반응형 - 작은 화면에서 세로 배치 */
@media (max-width: 480px) {
  .cust-modal-top {
    flex-direction: column;
    align-items: center;
  }
  .cust-modal-photo-wrap { width: 100%; align-items: center; }
  .cust-modal-photo-btns { flex-direction: row; justify-content: center; width: auto; gap: 8px; }
  .cust-photo-btn { width: auto; padding: 6px 14px; }
  .cust-modal-main-fields { width: 100%; }
}

/* 추가정보 박스 */
.appt-extra-box {
  border: 1.5px solid #86efac;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  padding: 14px 16px;
  margin-top: 6px;
}
#apptExtraArea {
  grid-column: 1 / -1;
}

/* ===================================
   예약 유형 다중선택 체크박스 칩
=================================== */
.appt-type-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
}

.appt-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.appt-type-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.appt-type-chip input[type="checkbox"] {
  display: none;
}

.appt-type-chip:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(26,107,60,0.35);
}

/* :has() 미지원 브라우저 폴백 */
.appt-type-chip.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(26,107,60,0.35);
}
   클럽지원 전용 모달 (fullscreen)
=================================== */
.modal.fullscreen-modal {
  width: 96vw;
  max-width: 1400px;
  height: 92vh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal.fullscreen-modal .modal-body {
  flex: 1;
  overflow-y: auto;
}

.club-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn-club-paste {
  background: #fff8e1;
  color: #b7791f;
  border: 1px solid #f6d860;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}
.btn-club-paste:hover { background: #f6d860; color: #7c5a00; }

.btn-club-clear {
  background: #fff0f0;
  color: #c53030;
  border: 1px solid #feb2b2;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}
.btn-club-clear:hover { background: #feb2b2; color: #742a2a; }

.club-row-count {
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  margin-left: 4px;
}

.club-qty-total {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 700;
}

.club-paste-hint {
  background: #fffde7;
  border: 1px solid #f6e05e;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #744210;
  line-height: 1.6;
}

.club-paste-hint textarea {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #f6e05e;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  resize: vertical;
  box-sizing: border-box;
}

/* 행 번호 셀 */
.row-num-cell {
  background: #f7f8fa;
  border-right: 1px solid var(--border);
  text-align: center;
  user-select: none;
}

.row-num {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  min-width: 20px;
  display: inline-block;
}

/* 합계 행 */
.club-foot-row {
  background: #f0fdf4;
  border-top: 2px solid var(--primary);
}

.club-foot-row td {
  padding: 7px 8px;
  font-size: 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}

/* 클럽 지원 요약 (등록 모달 내) */
.club-support-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: #fafbfc;
  min-height: 44px;
}

.club-summary-empty {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.club-summary-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}

.club-summary-badge strong {
  color: var(--primary);
}

.club-summary-preview {
  font-size: 12px;
  color: var(--text-sub);
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
}

/* 클럽 지원 열기 버튼 */
.btn-open-club {
  background: linear-gradient(135deg, #1a6b3c, #145030);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(26,107,60,0.3);
}
.btn-open-club:hover { background: linear-gradient(135deg, #145030, #0d3520); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(26,107,60,0.4); }

/* 인플루언서 필터 스크롤 */
.inf-filter-scrollable {
  overflow-x: auto;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.inf-filter-scrollable::-webkit-scrollbar { display: none; }
.inf-filter-scrollable .filter-tab { white-space: nowrap; flex-shrink: 0; }

/* .modal.xlarge 는 위에서 이미 정의됨 */

/* club-table-wrap max-height override (in fullscreen modal use inline style) */

/* 인플루언서 상세 보기 클럽 테이블 래퍼 max-height */
.inf-detail-club-wrap {
  margin-top: 12px;
}

/* ===== 클럽지원 모달 고급 스타일 ===== */

/* 전용 모달 테이블 헤더 행 번호 열 */
.club-support-table thead th:first-child {
  background: #145030;
}

/* 클럽지원 입력 셀 포커스 강조 */
.club-support-table tbody tr:focus-within {
  background: #f0fdf4 !important;
  outline: 2px solid rgba(26,107,60,0.3);
  outline-offset: -2px;
}

/* 클럽지원 입력 날짜 셀 */
.club-input[type="date"] {
  color: var(--text-main);
  cursor: pointer;
}

/* 클럽지원 모달 헤더 그라데이션 border-radius 수정 */
.modal.fullscreen-modal .modal-header {
  border-radius: var(--radius) var(--radius) 0 0;
}

/* 클럽지원 저장 버튼 (직접저장 모드) */
.club-save-direct {
  background: linear-gradient(135deg, #d4af37, #b8960c) !important;
  box-shadow: 0 2px 8px rgba(212,175,55,0.4) !important;
}

/* 클럽지원 요약 내 행 카운트 강조 */
.club-summary-badge .item-count {
  background: var(--primary);
  color: white;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* 클럽지원 툴바 행 통계 */
.club-row-count {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
  margin-left: 4px;
}

.club-qty-total {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

/* =============================================
   📐 라이 / 로프트 탭 스타일
============================================= */

/* 인플루언서 모달 탭 메뉴 */
.inf-modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  padding: 0 20px;
  flex-shrink: 0;
}
.inf-tab-btn {
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--text-sub);
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, border-color .15s;
}
.inf-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.inf-tab-btn:hover:not(.active) { color: var(--text-main); }

/* 라이/로프트 상단 정보 행 */
.ll-info-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ll-info-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 130px;
}
.ll-info-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ll-input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--surface);
  color: var(--text-main);
  transition: border-color .15s;
}
.ll-input:focus { outline: none; border-color: var(--primary); }

/* 라이/로프트 테이블 */
.ll-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.ll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}
.ll-table thead tr:first-child th {
  background: #1a6b3c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: center;
}
.ll-table thead tr:first-child th.loft { background: #145030; }
.ll-table thead tr:first-child th.lie  { background: #b45309; }
.ll-th-club { width: 52px; }
.ll-th-sub {
  background: #f0fdf4;
  color: var(--text-sub);
  font-size: 11px;
  padding: 5px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.ll-th-sub.correct {
  background: #ecfdf5;
  color: var(--primary);
  font-weight: 700;
}
.ll-table tbody tr { transition: background .1s; }
.ll-table tbody tr:hover { background: #f9fafb; }
.ll-table tbody tr:nth-child(even) { background: #f8fafb; }
.ll-table tbody tr:nth-child(even):hover { background: #f0fdf4; }
.ll-td-club {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-align: center;
  padding: 5px 8px;
  background: #f9fafb;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.ll-cell {
  width: 100%;
  min-width: 60px;
  padding: 5px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.ll-cell:focus { outline: none; border-color: var(--primary); background: #f0fdf4; }
.ll-cell.correct { background: #ecfdf5; border-color: #a7f3d0; }
.ll-cell.correct:focus { border-color: var(--primary); }
td { padding: 3px 4px; vertical-align: middle; }

/* 오차범위 */
.ll-tolerance {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-sub);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ll-tol-item { color: #92400e; font-weight: 600; }

/* 저장/이전기록 버튼 행 */
.ll-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

/* 이전 기록 히스토리 */
.ll-history-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.ll-history-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 15px;
  padding: 2px 6px;
}
.ll-history-close:hover { color: var(--danger); }
.ll-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.ll-hist-empty { text-align: center; color: var(--text-sub); font-size: 13px; padding: 20px 0; }

/* 이전 기록 카드 */
.ll-hist-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.ll-hist-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafb;
  cursor: pointer;
  transition: background .15s;
}
.ll-hist-card-header:hover { background: #f0fdf4; }
.ll-hist-meta { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; min-width: 0; }
.ll-hist-date { font-size: 13px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.ll-hist-model { font-size: 12px; color: var(--text-main); font-weight: 600; }
.ll-hist-shaft { font-size: 12px; color: var(--text-sub); }
.ll-hist-memo-badge {
  background: #fef3c7; color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
}
.ll-hist-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ll-btn-load {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #f0fdf4;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex; align-items: center; gap: 4px;
  transition: all .15s;
}
.ll-btn-load:hover { background: var(--primary); color: #fff; }
.ll-btn-del {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #fca5a5;
  color: var(--danger);
  background: #fef2f2;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all .15s;
}
.ll-btn-del:hover { background: var(--danger); color: #fff; }
.ll-hist-chevron { color: var(--text-sub); font-size: 12px; transition: transform .2s; }

/* 이전 기록 상세 테이블 */
.ll-hist-body { padding: 10px 14px; overflow-x: auto; }
.ll-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 440px;
}
.ll-hist-table th {
  background: #f0fdf4;
  color: var(--text-sub);
  font-size: 11px;
  padding: 5px 8px;
  text-align: center;
  border: 1px solid #d1fae5;
}
.ll-hist-table th.loft-group { background: #145030; color: #fff; }
.ll-hist-table th.lie-group  { background: #b45309; color: #fff; }
.ll-hist-table th.correct    { color: var(--primary); font-weight: 700; }
.ll-hist-table td {
  padding: 4px 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
  color: var(--text-main);
}
.ll-hist-table td.ll-td-club {
  font-weight: 700;
  background: #f9fafb;
  color: #374151;
}
.ll-hist-table td.correct { color: var(--primary); font-weight: 600; background: #f0fdf4; }

/* 반응형 */
@media (max-width: 768px) {
  .ll-info-row { flex-direction: column; }
  .ll-info-field { min-width: 100%; }
  .ll-action-row { flex-direction: column; }
  .ll-action-row button { width: 100%; justify-content: center; }
}

/* 클럽지원 테이블 날짜 열 고정 */
.club-support-table tbody td:nth-child(2) input,
.club-support-table tbody td:nth-child(3) input {
  font-weight: 600;
}

/* 클럽지원 테이블 수량 열 강조 */
.club-support-table tbody td:nth-child(5) input {
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

/* 클럽지원 합계 행 수량 */
.club-foot-row td:nth-child(5) {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

/* 인플루언서 카드 구분 배지 */
.badge-cat-KPGA        { background: #dbeafe; color: #1d4ed8; }
.badge-cat-KLPGA       { background: #fce7f3; color: #9d174d; }
.badge-cat-KPGA챔피언스 { background: #e0e7ff; color: #3730a3; }
.badge-cat-KPGA드림     { background: #ede9fe; color: #5b21b6; }
.badge-cat-KLPGA드림    { background: #fdf2f8; color: #be185d; }
.badge-cat-아시안투어   { background: #fef3c7; color: #92400e; }
.badge-cat-기타투어     { background: #f1f5f9; color: #475569; }
.badge-cat-주니어       { background: #dcfce7; color: #15803d; }
.badge-cat-미드아마협회 { background: #ecfdf5; color: #065f46; }
.badge-cat-기타아마     { background: #f0fdf4; color: #166534; }
.badge-cat-인플루언서   { background: #fff7ed; color: #c2410c; }
.badge-cat-유튜버       { background: #fee2e2; color: #b91c1c; }
.badge-cat-인스타그래머 { background: #fdf4ff; color: #7e22ce; }
.badge-cat-틱톡커       { background: #f0f9ff; color: #0369a1; }
.badge-cat-기타골프협회 { background: #f8fafc; color: #334155; }
.badge-cat-기타         { background: #f1f5f9; color: #64748b; }

/* 아바타 카테고리 색 */
.cat-KPGA        { background: linear-gradient(135deg,#1d4ed8,#3b82f6); }
.cat-KLPGA       { background: linear-gradient(135deg,#9d174d,#ec4899); }
.cat-아시안투어  { background: linear-gradient(135deg,#92400e,#f59e0b); }
.cat-기타투어    { background: linear-gradient(135deg,#475569,#94a3b8); }
.cat-주니어      { background: linear-gradient(135deg,#15803d,#4ade80); }
.cat-미드아마협회 { background: linear-gradient(135deg,#065f46,#34d399); }
.cat-기타아마    { background: linear-gradient(135deg,#166534,#86efac); }
.cat-인플루언서  { background: linear-gradient(135deg,#c2410c,#fb923c); }
.cat-유튜버      { background: linear-gradient(135deg,#b91c1c,#f87171); }
.cat-인스타그래머 { background: linear-gradient(135deg,#7e22ce,#c084fc); }
.cat-틱톡커      { background: linear-gradient(135deg,#0369a1,#38bdf8); }
.cat-기타골프협회 { background: linear-gradient(135deg,#334155,#94a3b8); }
.cat-기타        { background: linear-gradient(135deg,#64748b,#cbd5e1); }

/* 인플루언서 상태 배지 */
.badge-inf-진행중 { background: #dcfce7; color: #166534; }
.badge-inf-대기   { background: #fef9c3; color: #854d0e; }
.badge-inf-완료   { background: #dbeafe; color: #1e40af; }
.badge-inf-종료   { background: #f1f5f9; color: #64748b; }
.badge-inf-해지   { background: #fee2e2; color: #991b1b; }

/* 클럽 지원 내역 섹션 타이틀 분리 */
.detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 0 8px;
  border-bottom: 2px solid var(--primary-light);
  margin-bottom: 12px;
}

/* 클럽지원 내역 없음 메시지 */
/* =============================================
   📐 상담 모달 내 라이/로프트 섹션 스타일
============================================= */

/* 섹션 타이틀 — 클릭 가능 */
.cj-ll-section .cj-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}
.cj-ll-section .cj-section-title:hover { color: var(--primary); }

/* 요약 배지 */
.cj-ll-summary {
  display: inline-flex;
  align-items: center;
  background: #d1fae5;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}

/* 접기/펼치기 화살표 */
.cj-ll-chevron {
  font-size: 13px;
  color: var(--text-sub);
  transition: transform .25s;
}

/* 패널 내부 여백 */
.cj-ll-panel-body { margin-top: 14px; padding-top: 4px; }

/* 상담 모달에서의 라이로프트 테이블 — 인라인 배치 최적화 */
#cjLLTableBody tr:hover { background: #f0fdf4; }
#cjLLTableBody .ll-cell { min-width: 54px; }

/* 반응형 */
@media (max-width: 768px) {
  .cj-ll-section .cj-section-title { font-size: 13px; }
  .cj-ll-summary { font-size: 10px; }
}
.club-empty-msg {
  text-align: center;
  padding: 30px;
  color: var(--text-light);
  font-size: 14px;
}

/* 클럽지원 인쇄 영역 */
@media print {
  .club-toolbar, .modal-footer, .sidebar, .topbar { display: none !important; }
  .modal.fullscreen-modal { box-shadow: none; }
}

/* =============================================
   성별 배지 (고객 목록, 상담 그룹 헤더 등)
============================================= */
.gender-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.6;
  vertical-align: middle;
  flex-shrink: 0;
}
.gender-badge.gender-male {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.gender-badge.gender-female {
  background: #fce7f3;
  color: #9d174d;
  border: 1px solid #fbcfe8;
}

/* =============================================
   라이/로프트 클럽명 input 스타일
============================================= */
.ll-club-name {
  font-weight: 700 !important;
  color: #374151 !important;
  background: #f9fafb !important;
  border-color: #d1d5db !important;
  text-align: center !important;
  width: 58px;
  min-width: 48px;
  max-width: 80px;
  padding: 4px 4px !important;
  font-size: 11px !important;
}
.ll-club-name:focus {
  background: #fff !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

@media (max-width: 768px) {
  .modal.fullscreen-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .club-toolbar { gap: 5px; }
  .inf-filter-scrollable { max-width: calc(100vw - 200px); }
}

