/* 全局样式变量 */
:root {
  /* 基础颜色 */
  --txt-default-color: #1e293b;
  --color-enable: #0b9f01;
  --color-disable: #ff3737;
  --color-select: #ffd343;

  /* 主题色系列 - 使用白色主题颜色 */
  --theme-color-primary: #2563eb;
  --theme-color-light-1: #ffffff;
  --theme-color-light-2: #f8fafc;
  --theme-color-light-3: #e2e8f0;
  --theme-color-light-4: #cbd5e1;
  --theme-color-light-5: #94a3b8;
  
  /* 사이드바와 헤더용 어두운 색상 */
  --sidebar-bg: #091d4f;
  --sidebar-light-1: #091d4f;
  --sidebar-light-2: #1a2d5f;
  --sidebar-light-3: #2b3d6f;
  --sidebar-light-4: #3c4d7f;
  --sidebar-light-5: #4d5d8f;

  /* 应用变量 - 参考图片的精确尺寸 */
  --app-menu-group-bg: var(--theme-color-light-1);
  --app-menu-group-txt-open: var(--theme-color-light-1);
  --app-logo-width: 100px;
  --app-logo-color: #1e293b;
  --app-logo-font-size: 22px; /* 参考图片的logo大小 */
  --app-header-height: 62px; /* 参考图片的精确header高度 */
  --app-menu-width: 250px; /* 参考图片的菜单宽度 */
  --app-menu-icon-size: 18px; /* 参考图片的图标大小 */
  --app-menu-font-size: 14px; /* 参考图片的菜单字体大小 */
  --app-menu-group-border-radius: 10px; /* 增加圆角半径 */
  --app-menu-group-height: 42px; /* 参考图片的菜单项高度 */
  --app-menu-group-padding-bottom: 4px;
  --app-menu-group-bg-open: #8d94a1;
  --app-menu-group-bg-open-select: #ffd343;
  --app-menu-group-icon-padding-left: 20px;
  --app-menu-group-txt: #1e293b;
  --app-menu-group-txt-font-size: 14px; /* 参考图片的菜单字体大小 */
  --app-menu-group-txt-font-size-open: 15px;
  --app-menu-group-txt-margin-left: 15px;
  --app-menu-group-txt-padding-top: 12px;
  --app-menu-group-children-bg: #00000033;
  --app-menu-group-children-margin-bottom: 8px;
  --app-menu-group-children-padding: 8px;
  --app-menu-group-children-border-radius: 8px;
  --app-menu-item-txt-color: rgba(30, 41, 59, 0.7);
  --app-menu-item-height: 42px; /* 参考图片的菜单项高度 */
  --app-menu-item-margin-left: 20px;
  --app-menu-item-txt-color-hover: #1e293b;
  --app-main-bg: #ffffff;

  /* 组件高度 */
  --component-height: 36px; /* 参考图片的组件高度 */

  /* 阴影效果 */
--shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-medium: 0 2px 6px rgba(0, 0, 0, 0.1);
--shadow-heavy: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 全局重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--txt-default-color);
  background: #ffffff;
  transition: color 0.5s, background-color 0.5s;
  line-height: 1.6;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑, Arial, sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 布局容器 */
.container {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏样式 - 参考图片的精确尺寸 */
.sidebar {
  width: var(--app-menu-width);
  background-color: #312C85;
  color: #ffffff;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--theme-color-light-3);
  box-shadow: var(--shadow-medium);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.logo {
  padding: 16px 20px; /* 调整logo内边距，参考图片的精确高度 */
  text-align: center;
  border-bottom: 1px solid var(--theme-color-light-3);
  background-color: #312C85;
  position: relative;
  height: 62px; /* 设置logo区域精确高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--theme-color-light-4), transparent);
}

.logo i {
  font-size: 24px; /* 参考图片的logo图标大小 */
  margin-right: 10px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo h2 {
  font-size: var(--app-logo-font-size);
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-menu {
  list-style: none;
  padding: 15px 0; /* 参考图片的菜单内边距 */
  flex: 1;
  overflow-y: auto;
  padding-bottom: 200px; /* 为底部余额信息区域留出空间 */
}

.nav-item {
  padding: 12px var(--app-menu-group-icon-padding-left); /* 参考图片的菜单项内边距 */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  height: var(--app-menu-item-height);
  margin-bottom: 2px; /* 参考图片的菜单项间距 */
  color: #ffffff;
  position: relative;
  border-radius: var(--app-menu-group-border-radius); /* 添加圆角 */
  margin-left: 10px; /* 添加左边距，为圆角留出空间 */
  margin-right: 10px; /* 添加右边距，为圆角留出空间 */
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-select);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0; /* 为左边框添加圆角 */
}

.nav-item:hover {
  background-color: #744CFF;
  color: #ffffff;
  transform: translateX(2px);
}

.nav-item:hover::before {
  transform: scaleY(1);
}

.nav-item.active {
  background-color: #744CFF;
  color: #ffffff; /* 白色文字 */
  border-left-color: transparent; /* 移除左边框 */
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(116, 76, 255, 0.3); /* 添加紫色阴影 */
  border-radius: var(--app-menu-group-border-radius); /* 确保圆角 */
}

.nav-item.active::before {
  display: none; /* 隐藏活跃状态的左边框 */
}

.nav-item.active i {
  color: #ffffff; /* 活跃状态的图标也是白色 */
}

.nav-item i {
  margin-right: var(--app-menu-group-txt-margin-left);
  width: var(--app-menu-icon-size);
  text-align: center;
  font-size: var(--app-menu-font-size);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.nav-item:hover i {
  transform: scale(1.1);
  color: #ffffff;
}

.nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  font-size: var(--app-menu-font-size);
  font-weight: 500;
  line-height: 1.5; /* 参考图片的行高 */
}

.nav-link:hover {
  text-decoration: none;
  color: inherit;
}

/* 主内容区样式 */
.main-content {
  flex: 1;
  margin-left: var(--app-menu-width);
  background-color: var(--app-main-bg);
  min-height: 100vh;
}

/* 顶部导航栏 - 参考图片的精确样式 */
.top-header {
  background: #ffffff;
  padding: 0 25px;
  height: var(--app-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 잔액 정보 섹션 - 이미지와 동일한 스타일 */
.balance-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  margin: 0 20px;
  justify-content: flex-end;
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4338ca;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 5px;
  white-space: nowrap;
  border: 1px solid #EEF2FF;
  border-radius: 12px;
  background-color: #EEF2FF;
  transition: all 0.3s ease;
}

.balance-item:hover {
  border-color: #6366f1;
  background-color: #f1f5f9;
}

.balance-item-icon {
  color: #4338ca;
  font-size: 18px;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.balance-item:hover .balance-item-icon {
  transform: none;
}

.balance-label {
  color: #000000;
  font-weight: 500;
  min-width: 140px;
  font-size: 14px;
}

.balance-amount {
  color: #1e293b;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.balance-item:nth-child(1) {
  border-color: #e0e7ff;
  background-color: #f8fafc;
}

.balance-item:nth-child(1) .balance-amount {
  color: #4338ca;
  font-size: 18px;
  font-weight: 700;
}

.balance-item:nth-child(2) {
  border-color: #e0e7ff;
  background-color: #f8fafc;
}

.balance-item:nth-child(2) .balance-amount {
  color: #432DD7;
  font-size: 18px;
  font-weight: 700;
}

.balance-item:nth-child(3) {
  border-color: #e0e7ff;
  background-color: #f8fafc;
}

.balance-item:nth-child(3) .balance-amount {
  color: #4338ca;
  font-size: 18px;
  font-weight: 700;
}

/* 출금신청 버튼 스타일 */
.withdrawal-btn {
  background: #432DD7;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
}

.withdrawal-btn:hover {
  background: #3721b8;
  transform: translateY(-1px);
}

/* 메일 아이템 스타일 */
.mail-item {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

/* 메일 버튼 스타일 */
.mail-btn {
  background: #4338ca;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mail-btn:hover {
  background: #3730a3;
  transform: translateY(-1px);
}

/* 온라인 회원 드롭다운 스타일 */
.online-members-item {
  position: relative;
  cursor: pointer;
}

.online-members-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--theme-color-light-1);
  border: 1px solid var(--theme-color-light-3);
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  min-width: 200px;
  display: none;
  z-index: 1000;
  margin-top: 5px;
  overflow: hidden;
}

.online-members-item:hover .online-members-dropdown {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.dropdown-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--theme-color-light-2);
  border-bottom: 1px solid var(--theme-color-light-3);
  color: var(--txt-default-color);
  font-weight: 600;
  font-size: 14px;
}

.dropdown-header i {
  margin-right: 8px;
  color: #00ff00;
}

.dropdown-content {
  padding: 8px 0;
}

.brand-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--theme-color-light-3);
}

.brand-member:last-child {
  border-bottom: none;
}

.brand-member:hover {
  background-color: var(--theme-color-light-2);
}

.brand-name {
  color: var(--txt-default-color);
  font-weight: 500;
  font-size: 14px;
}

.member-count {
  color: #00ff00;
  font-weight: 700;
  font-size: 16px;
}

.balance-item:nth-child(2) .balance-amount {
  color: #432DD7;
  font-size: 20px;
  font-weight: 800;
}

.withdrawal-btn {
  background-color: #432DD7;
  color: white;
  border: 1px solid #432DD7;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 8px;
}

.withdrawal-btn:hover {
  background-color: #3721b8;
  border-color: #3721b8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.balance-icon {
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
  border: 1px solid var(--theme-color-light-3);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  margin-left: 10px;
}

.balance-icon:hover {
  color: var(--color-select);
  border-color: var(--color-select);
  background-color: rgba(255, 211, 67, 0.1);
  transform: scale(1.05);
}

/* 한줄공지 스타일 */
.announcement-bar {
  background-color: #dc2626;
  border-bottom: 1px solid #b91c1c;
  overflow: hidden;
  position: sticky;
  top: var(--app-header-height);
  z-index: 99;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  gap: 15px;
  overflow: hidden;
  position: relative;
}

.announcement-content i {
  color: #ffffff;
  font-size: 18px;
}

.announcement-group {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: scroll-left 15s linear infinite;
}

.announcement-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #000000;
  font-weight: 500;
  height: 100%;
}

.breadcrumb i {
  margin: 0 12px;
  font-size: 14px;
  color: #000000;
}

.user-menu {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #4338ca;
  border: 1px solid #e0e7ff;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  background-color: #f8fafc;
}

.user-info:hover {
  background-color: #f1f5f9;
  border-color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.user-info .fa-sms {
  font-size: 16px;
  color: #4338ca;
  transition: all 0.3s ease;
}

.avatar-icon {
  font-size: 16px;
  color: #4338ca;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--theme-color-light-1);
  border: 1px solid var(--theme-color-light-3);
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  min-width: 150px;
  display: none;
  z-index: 1000;
  margin-top: 5px;
  overflow: hidden;
}

.user-menu:hover .dropdown-menu {
  display: block;
  animation: fadeInUp 0.3s ease;
}

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

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--txt-default-color);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--theme-color-light-3);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: var(--theme-color-light-2);
  color: var(--color-select);
  transform: translateX(5px);
}

.dropdown-menu a i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* 页面内容 - 参考图片的标题大小 */
.page-content {
  padding: 5px;
  display: flex;
  flex-direction: column;
}

.page {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}





/* 图表区域 - 参考图片的标题大小 */
.charts-section {
  margin-bottom: 30px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-header h3 {
  margin: 0;
  color: var(--txt-default-color);
  font-size: 18px;
  font-weight: 600;
}

.chart-controls {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
}

.chart-container {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
  height: 400px; /* 固定图表区域高度 */
  display: none;
  flex-direction: column;
  overflow: hidden; /* 防止内容溢出 */
  position: relative;
}

.chart-container.active {
  display: flex;
}

.chart-container:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
  margin-bottom: 20px; /* 参考图片的下边距 */
  color: var(--txt-default-color);
  font-size: 16px; /* 参考图片的图表标题大小 */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0; /* 防止标题被压缩 */
}

.chart-container h3::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--color-select);
  border-radius: 2px;
}

.chart-container canvas {
  flex: 1; /* 图表占满剩余空间 */
  max-height: calc(100% - 60px); /* 减去标题高度 */
  width: 100% !important;
  height: 100% !important;
}

/* 브랜드별 차트 그리드 */
.brand-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  height: 100%;
}

.brand-chart-item {
  background-color: var(--theme-color-light-2);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--theme-color-light-3);
  display: flex;
  flex-direction: column;
}

.brand-chart-item h4 {
  margin: 0 0 15px 0;
  color: var(--txt-default-color);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
}

.brand-chart-item canvas {
  flex: 1;
  max-height: calc(100% - 40px);
}

/* 단일 브랜드 차트 스타일 */
.single-brand-chart {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.single-brand-chart h4 {
  margin: 0 0 20px 0;
  color: var(--txt-default-color);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.single-brand-chart canvas {
  width: 100% !important;
  height: calc(100% - 60px) !important;
}

/* 域名信息区域 - 替换最近活动 */
.domain-info-section {
  background-color: var(--theme-color-light-1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  order: -1; /* 保持在最前面 */
}

/* 数据统计卡片区域 - 新增的4个数据卡片 */
.stats-cards-section {
  margin-bottom: 30px;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: var(--theme-color-light-1);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.stats-header h3 {
  margin: 0;
  color: var(--txt-default-color);
  font-size: 18px;
  font-weight: 600;
}

.stats-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

#brand-selector,
#chart-brand-selector {
  margin-left: 10px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--theme-color-light-2);
  color: var(--txt-default-color);
  font-size: 14px;
  min-width: 120px;
}

.stats-cards-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stats-cards-grid.active {
  display: grid;
}

/* 브랜드별 통계 카드 스타일 */
.brand-stats-card {
  position: relative;
  overflow: hidden;
}

.brand-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-select), var(--color-enable));
}

.brand-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.brand-badge.daebak {
  background: linear-gradient(135deg, #ff6384, #ff8a9e);
}

.brand-badge.w365 {
  background: linear-gradient(135deg, #36a2eb, #5bb8ff);
}

.brand-badge.ikea {
  background: linear-gradient(135deg, #ffcd56, #ffd93d);
}

.brand-badge.king {
  background: linear-gradient(135deg, #9966ff, #b388ff);
}

.stats-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--txt-default-color);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-select);
}

.stats-card:nth-child(2)::before {
  background: var(--color-enable);
}

.stats-card:nth-child(3)::before {
  background: var(--color-select);
}

.stats-card:nth-child(4)::before {
  background: var(--color-select);
}

.stats-card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-color-light-4);
}

.stats-card-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--theme-color-light-3);
}

.stats-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt-default-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.stats-card-content {
  margin-bottom: 15px;
}

.stats-card-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--theme-color-light-2);
  border-radius: 8px;
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
}

.stats-card-item:hover {
  transform: none;
  box-shadow: var(--shadow-light);
  border-color: var(--color-select);
}

.stats-card-item-icon {
  width: 36px;
  height: 36px;
  background: var(--theme-color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
  box-shadow: var(--shadow-light);
  margin-right: 12px;
  flex-shrink: 0;
}

.stats-card-item-icon i.text-success {
  color: #28a745;
  font-size: 20px;
}

.stats-card-item-info {
  flex: 1;
}

.stats-card-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-default-color);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.stats-card-item-value {
  font-size: 22px;
  font-weight: bold;
  color: var(--txt-default-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 4px;
}

.stats-card-item-change {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-card-item-change.positive {
  color: var(--color-enable);
  background-color: rgba(11, 159, 1, 0.15);
  border: 1px solid rgba(11, 159, 1, 0.3);
}

.stats-card-item-change.negative {
  color: var(--color-disable);
  background-color: rgba(255, 55, 55, 0.15);
  border: 1px solid rgba(255, 55, 55, 0.3);
}

/* 기존 호환성 유지 */
.stats-card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--theme-color-light-2) 0%, var(--theme-color-light-3) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-select);
  font-size: 18px;
  box-shadow: var(--shadow-light);
}

.stats-card-values {
  margin-bottom: 8px;
}

.stats-card-main-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--txt-default-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 6px;
}

.stats-card-sub-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--txt-default-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stats-card-sub-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-card-sub-values span {
  font-size: 20px;
  font-weight: 600;
  color: var(--txt-default-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 기존 stats-card-value 호환성 유지 */
.stats-card-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--txt-default-color);
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stats-card-change {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.1);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stats-card-change.positive {
  color: var(--color-enable);
  background-color: rgba(11, 159, 1, 0.1);
}

.stats-card-change.negative {
  color: var(--color-disable);
  background-color: rgba(255, 55, 55, 0.1);
}

.domain-info-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--theme-color-light-3);
}

.section-header h3 {
  color: var(--txt-default-color);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 브랜드 선택기 스타일 */
.brand-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.brand-btn {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brand-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.brand-btn.active {
  background: #744CFF;
  color: white;
  border-color: #744CFF;
}

/* 컨트롤 그룹 스타일 */
.controls-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-header h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--color-select);
  border-radius: 2px;
}

.result-count {
  color: var(--theme-color-light-4);
  font-size: 14px;
  font-weight: 500;
  background-color: var(--theme-color-light-2);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--theme-color-light-3);
}

/* 域名链接样式 */
.domain-link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  word-break: break-all;
}

.domain-link:hover {
  color: #333333;
  text-decoration: underline;
  text-shadow: none;
}

/* 表格容器优化 */
.domain-info-section .table-container {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
  margin: 0;
}

.domain-info-section .table-container:hover {
  transform: none;
  box-shadow: none;
}

.domain-info-section .table-container h3 {
  display: none; /* 隐藏表格容器的标题，因为已经有section-header了 */
}

/* 表格样式优化 */
.domain-info-section .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--theme-color-light-2);
  border: 1px solid var(--theme-color-light-3);
}

.domain-info-section .data-table th,
.domain-info-section .data-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--theme-color-light-3);
}

.domain-info-section .data-table th {
  background: linear-gradient(135deg, var(--theme-color-light-1), var(--theme-color-light-2));
  font-weight: 600;
  color: var(--txt-default-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.domain-info-section .data-table tr:hover {
  background-color: var(--theme-color-light-3);
  transform: scale(1.01);
  transition: all 0.3s ease;
}

.domain-info-section .data-table td {
  color: var(--txt-default-color);
  font-weight: 500;
}

.domain-info-section .data-table tr:last-child td {
  border-bottom: none;
}

/* 状态徽章优化 */
.domain-info-section .status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: var(--shadow-light);
  background: linear-gradient(135deg, rgba(11, 159, 1, 0.2), rgba(11, 159, 1, 0.1));
  color: var(--color-enable);
  border: 1px solid rgba(11, 159, 1, 0.3);
}

/* 搜索表单 - 参考图片的标签和输入框 */
.search-form {
  background-color: var(--theme-color-light-1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  margin-bottom: 20px;
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
}

.search-form:hover {
  box-shadow: var(--shadow-heavy);
}

.form-row {
  display: flex;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 50px;
}

.form-group label {
  margin: 0;
  font-weight: 500;
  color: var(--txt-default-color);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.form-group input,
.form-group select {
  padding: 10px 14px; /* 参考图片的内边距 */
  border: 1px solid var(--theme-color-light-3);
  border-radius: 6px;
  font-size: 14px; /* 参考图片的输入框字体大小 */
  background-color: var(--theme-color-light-2);
  color: var(--txt-default-color);
  height: var(--component-height);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--theme-color-light-5);
  background-color: var(--theme-color-light-1);
  box-shadow: 0 0 0 3px rgba(119, 130, 154, 0.1);
}

/* 按钮样式 - 参考图片的文本大小 */
.btn {
  padding: 10px 18px; /* 参考图片的内边距 */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px; /* 参考图片的按钮字体大小 */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--component-height);
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--theme-color-light-4), var(--theme-color-light-5));
  color: var(--txt-default-color);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--theme-color-light-5), var(--theme-color-light-4));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--theme-color-light-3), var(--theme-color-light-4));
  color: var(--txt-default-color);
  box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--theme-color-light-4), var(--theme-color-light-3));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-disable), #e63946);
  color: var(--txt-default-color);
  box-shadow: var(--shadow-light);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #e63946, var(--color-disable));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 클릭 가능한 회원ID 스타일 */
.clickable-member-id {
    color: #3b82f6;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.clickable-member-id:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* 회원 상세 정보 팝업 스타일 */
.member-detail-modal {
    max-width: 98vw !important;
    max-height: 90vh !important;
    width: 95vw !important;
    height: 800px !important;
    min-width: 1400px !important;
}

.member-detail-modal .modal-body {
    height: calc(100% - 60px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.member-detail-modal .vue-tabs {
    flex-shrink: 0;
}

.member-detail-modal .tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.member-detail-modal .tab-nav-item {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.member-detail-modal .tab-nav-item:hover {
    background: #e2e8f0;
    color: #475569;
}

.member-detail-modal .tab-nav-item.active {
    background: var(--theme-color-primary);
    color: white;
    border-color: var(--theme-color-primary);
}

.member-detail-modal .tab-content {
    flex: 1;
    overflow-y: auto;
    display: none;
}

/* 회원 상세 정보 팝업 테이블 스타일 */
.member-detail-modal .table-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.member-detail-modal .data-table {
    width: 100% !important;
    table-layout: fixed !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.member-detail-modal .data-table th,
.member-detail-modal .data-table td {
    padding: 12px 8px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-detail-modal .data-table th:nth-child(1),
.member-detail-modal .data-table td:nth-child(1) {
    width: 18% !important; /* 로그인시간 */
    max-width: 200px !important;
}

.member-detail-modal .data-table th:nth-child(2),
.member-detail-modal .data-table td:nth-child(2) {
    width: 22% !important; /* 도메인 */
    max-width: 250px !important;
}

.member-detail-modal .data-table th:nth-child(3),
.member-detail-modal .data-table td:nth-child(3) {
    width: 15% !important; /* 로그인IP */
    max-width: 150px !important;
}

.member-detail-modal .data-table th:nth-child(4),
.member-detail-modal .data-table td:nth-child(4) {
    width: 10% !important; /* Device */
    max-width: 100px !important;
    text-align: center !important;
}

.member-detail-modal .data-table th:nth-child(5),
.member-detail-modal .data-table td:nth-child(5) {
    width: 35% !important; /* 핑거프린트 */
    max-width: 400px !important;
    word-break: break-all !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    overflow-wrap: break-word !important;
}

/* 입금 탭 테이블 컬럼 너비 */
.member-detail-modal #deposits-tab .data-table th:nth-child(1),
.member-detail-modal #deposits-tab .data-table td:nth-child(1) {
    width: 12% !important; /* 신청시간 */
    max-width: 120px !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(2),
.member-detail-modal #deposits-tab .data-table td:nth-child(2) {
    width: 10% !important; /* 신청금액 */
    max-width: 100px !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(3),
.member-detail-modal #deposits-tab .data-table td:nth-child(3) {
    width: 10% !important; /* 보너스 금액 */
    max-width: 100px !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(4),
.member-detail-modal #deposits-tab .data-table td:nth-child(4) {
    width: 12% !important; /* 이벤트 이름 */
    max-width: 120px !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(5),
.member-detail-modal #deposits-tab .data-table td:nth-child(5) {
    width: 10% !important; /* 일반잔액 */
    max-width: 100px !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(6),
.member-detail-modal #deposits-tab .data-table td:nth-child(6) {
    width: 10% !important; /* 보너스 잔액 */
    max-width: 100px !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(7),
.member-detail-modal #deposits-tab .data-table td:nth-child(7) {
    width: 12% !important; /* 출금가능 잔액 */
    max-width: 120px !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(8),
.member-detail-modal #deposits-tab .data-table td:nth-child(8) {
    width: 8% !important; /* 쿠폰잔액 */
    max-width: 80px !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(9),
.member-detail-modal #deposits-tab .data-table td:nth-child(9) {
    width: 8% !important; /* 상태 */
    max-width: 80px !important;
    text-align: center !important;
}

.member-detail-modal #deposits-tab .data-table th:nth-child(10),
.member-detail-modal #deposits-tab .data-table td:nth-child(10) {
    width: 12% !important; /* 처리시간 */
    max-width: 120px !important;
}

/* 출금 탭 테이블 컬럼 너비 */
.member-detail-modal #withdrawals-tab .data-table th:nth-child(1),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(1) {
    width: 12% !important; /* 신청시간 */
    max-width: 120px !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(2),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(2) {
    width: 10% !important; /* 신청금액 */
    max-width: 100px !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(3),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(3) {
    width: 8% !important; /* 롤링 */
    max-width: 80px !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(4),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(4) {
    width: 12% !important; /* 이벤트이름 */
    max-width: 120px !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(5),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(5) {
    width: 10% !important; /* 일반잔액 */
    max-width: 100px !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(6),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(6) {
    width: 10% !important; /* 보너스 잔액 */
    max-width: 100px !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(7),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(7) {
    width: 12% !important; /* 출금가능잔액 */
    max-width: 120px !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(8),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(8) {
    width: 8% !important; /* 쿠폰잔액 */
    max-width: 80px !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(9),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(9) {
    width: 8% !important; /* 상태 */
    max-width: 80px !important;
    text-align: center !important;
}

.member-detail-modal #withdrawals-tab .data-table th:nth-child(10),
.member-detail-modal #withdrawals-tab .data-table td:nth-child(10) {
    width: 12% !important; /* 처리시간 */
    max-width: 120px !important;
}

/* USDT입금 탭 테이블 컬럼 너비 */
.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(1),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(1) {
    width: 12% !important; /* 신청시간 */
    max-width: 120px !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(2),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(2) {
    width: 12% !important; /* 거래ID */
    max-width: 120px !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(3),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(3) {
    width: 10% !important; /* 코인신청금액 */
    max-width: 100px !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(4),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(4) {
    width: 10% !important; /* 원화금액 */
    max-width: 100px !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(5),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(5) {
    width: 12% !important; /* 이벤트이름 */
    max-width: 120px !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(6),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(6) {
    width: 10% !important; /* 보너스 금액 */
    max-width: 100px !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(7),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(7) {
    width: 8% !important; /* 환율 */
    max-width: 80px !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(8),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(8) {
    width: 8% !important; /* 암호화폐 */
    max-width: 80px !important;
    text-align: center !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(9),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(9) {
    width: 8% !important; /* 상태 */
    max-width: 80px !important;
    text-align: center !important;
}

.member-detail-modal #usdt-deposits-tab .data-table th:nth-child(10),
.member-detail-modal #usdt-deposits-tab .data-table td:nth-child(10) {
    width: 12% !important; /* 처리시간 */
    max-width: 120px !important;
}

/* USDT출금 탭 테이블 컬럼 너비 */
.member-detail-modal #usdt-withdrawals-tab .data-table th:nth-child(1),
.member-detail-modal #usdt-withdrawals-tab .data-table td:nth-child(1) {
    width: 20% !important; /* 신청시간 */
    max-width: 200px !important;
}

.member-detail-modal #usdt-withdrawals-tab .data-table th:nth-child(2),
.member-detail-modal #usdt-withdrawals-tab .data-table td:nth-child(2) {
    width: 20% !important; /* 처리시간 */
    max-width: 200px !important;
}

.member-detail-modal #usdt-withdrawals-tab .data-table th:nth-child(3),
.member-detail-modal #usdt-withdrawals-tab .data-table td:nth-child(3) {
    width: 20% !important; /* 코인 신청금액 */
    max-width: 200px !important;
}

.member-detail-modal #usdt-withdrawals-tab .data-table th:nth-child(4),
.member-detail-modal #usdt-withdrawals-tab .data-table td:nth-child(4) {
    width: 20% !important; /* USDT금액 */
    max-width: 200px !important;
}

.member-detail-modal #usdt-withdrawals-tab .data-table th:nth-child(5),
.member-detail-modal #usdt-withdrawals-tab .data-table td:nth-child(5) {
    width: 20% !important; /* 상태 */
    max-width: 200px !important;
    text-align: center !important;
}

/* 보너스현황 탭 테이블 컬럼 너비 */
.member-detail-modal #bonus-status-tab .data-table th:nth-child(1),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(1) {
    width: 12% !important; /* 날짜 */
    max-width: 120px !important;
}

.member-detail-modal #bonus-status-tab .data-table th:nth-child(2),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(2) {
    width: 12% !important; /* 합산 보너스 */
    max-width: 120px !important;
}

.member-detail-modal #bonus-status-tab .data-table th:nth-child(3),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(3) {
    width: 11% !important; /* 스포츠 보너스 */
    max-width: 110px !important;
}

.member-detail-modal #bonus-status-tab .data-table th:nth-child(4),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(4) {
    width: 11% !important; /* 카지노 보너스 */
    max-width: 110px !important;
}

.member-detail-modal #bonus-status-tab .data-table th:nth-child(5),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(5) {
    width: 11% !important; /* 낙첨 포인트 */
    max-width: 110px !important;
}

.member-detail-modal #bonus-status-tab .data-table th:nth-child(6),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(6) {
    width: 11% !important; /* 리베이트 */
    max-width: 110px !important;
}

.member-detail-modal #bonus-status-tab .data-table th:nth-child(7),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(7) {
    width: 11% !important; /* 캐시백 */
    max-width: 110px !important;
}

.member-detail-modal #bonus-status-tab .data-table th:nth-child(8),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(8) {
    width: 11% !important; /* 쿠폰 */
    max-width: 110px !important;
}

.member-detail-modal #bonus-status-tab .data-table th:nth-child(9),
.member-detail-modal #bonus-status-tab .data-table td:nth-child(9) {
    width: 11% !important; /* 쿠폰회수금 */
    max-width: 110px !important;
}

/* 스포츠 통계 탭 테이블 컬럼 너비 */
.member-detail-modal #sports-stats-tab .data-table th:nth-child(1),
.member-detail-modal #sports-stats-tab .data-table td:nth-child(1) {
    width: 12% !important; /* 날짜 */
    max-width: 120px !important;
}

.member-detail-modal #sports-stats-tab .data-table th:nth-child(2),
.member-detail-modal #sports-stats-tab .data-table td:nth-child(2) {
    width: 10% !important; /* 배팅횟수 */
    max-width: 100px !important;
    text-align: center !important;
}

.member-detail-modal #sports-stats-tab .data-table th:nth-child(3),
.member-detail-modal #sports-stats-tab .data-table td:nth-child(3) {
    width: 12% !important; /* 총 배팅금 */
    max-width: 120px !important;
}

.member-detail-modal #sports-stats-tab .data-table th:nth-child(4),
.member-detail-modal #sports-stats-tab .data-table td:nth-child(4) {
    width: 12% !important; /* 총적중금 */
    max-width: 120px !important;
}

.member-detail-modal #sports-stats-tab .data-table th:nth-child(5),
.member-detail-modal #sports-stats-tab .data-table td:nth-child(5) {
    width: 12% !important; /* 총GGR수익금 */
    max-width: 120px !important;
}

.member-detail-modal #sports-stats-tab .data-table th:nth-child(6),
.member-detail-modal #sports-stats-tab .data-table td:nth-child(6) {
    width: 10% !important; /* GGR수익율 */
    max-width: 100px !important;
    text-align: center !important;
}

.member-detail-modal #sports-stats-tab .data-table th:nth-child(7),
.member-detail-modal #sports-stats-tab .data-table td:nth-child(7) {
    width: 12% !important; /* 배팅수익금 */
    max-width: 120px !important;
}

.member-detail-modal #sports-stats-tab .data-table th:nth-child(8),
.member-detail-modal #sports-stats-tab .data-table td:nth-child(8) {
    width: 12% !important; /* 평균배팅금 */
    max-width: 120px !important;
}

/* 카지노 통계 탭 테이블 컬럼 너비 */
.member-detail-modal #casino-stats-tab .data-table th:nth-child(1),
.member-detail-modal #casino-stats-tab .data-table td:nth-child(1) {
    width: 12% !important; /* 날짜 */
    max-width: 120px !important;
}

.member-detail-modal #casino-stats-tab .data-table th:nth-child(2),
.member-detail-modal #casino-stats-tab .data-table td:nth-child(2) {
    width: 10% !important; /* 배팅횟수 */
    max-width: 100px !important;
    text-align: center !important;
}

.member-detail-modal #casino-stats-tab .data-table th:nth-child(3),
.member-detail-modal #casino-stats-tab .data-table td:nth-child(3) {
    width: 12% !important; /* 총 배팅금 */
    max-width: 120px !important;
}

.member-detail-modal #casino-stats-tab .data-table th:nth-child(4),
.member-detail-modal #casino-stats-tab .data-table td:nth-child(4) {
    width: 12% !important; /* 총적중금 */
    max-width: 120px !important;
}

.member-detail-modal #casino-stats-tab .data-table th:nth-child(5),
.member-detail-modal #casino-stats-tab .data-table td:nth-child(5) {
    width: 12% !important; /* 총GGR수익금 */
    max-width: 120px !important;
}

.member-detail-modal #casino-stats-tab .data-table th:nth-child(6),
.member-detail-modal #casino-stats-tab .data-table td:nth-child(6) {
    width: 10% !important; /* GGR수익율 */
    max-width: 100px !important;
    text-align: center !important;
}

.member-detail-modal #casino-stats-tab .data-table th:nth-child(7),
.member-detail-modal #casino-stats-tab .data-table td:nth-child(7) {
    width: 12% !important; /* 배팅수익금 */
    max-width: 120px !important;
}

.member-detail-modal #casino-stats-tab .data-table th:nth-child(8),
.member-detail-modal #casino-stats-tab .data-table td:nth-child(8) {
    width: 12% !important; /* 평균배팅금 */
    max-width: 120px !important;
}

/* 슬롯 통계 탭 테이블 컬럼 너비 */
.member-detail-modal #slot-stats-tab .data-table th:nth-child(1),
.member-detail-modal #slot-stats-tab .data-table td:nth-child(1) {
    width: 12% !important; /* 날짜 */
    max-width: 120px !important;
}

.member-detail-modal #slot-stats-tab .data-table th:nth-child(2),
.member-detail-modal #slot-stats-tab .data-table td:nth-child(2) {
    width: 10% !important; /* 배팅횟수 */
    max-width: 100px !important;
    text-align: center !important;
}

.member-detail-modal #slot-stats-tab .data-table th:nth-child(3),
.member-detail-modal #slot-stats-tab .data-table td:nth-child(3) {
    width: 12% !important; /* 총 배팅금 */
    max-width: 120px !important;
}

.member-detail-modal #slot-stats-tab .data-table th:nth-child(4),
.member-detail-modal #slot-stats-tab .data-table td:nth-child(4) {
    width: 12% !important; /* 총적중금 */
    max-width: 120px !important;
}

.member-detail-modal #slot-stats-tab .data-table th:nth-child(5),
.member-detail-modal #slot-stats-tab .data-table td:nth-child(5) {
    width: 12% !important; /* 총GGR수익금 */
    max-width: 120px !important;
}

.member-detail-modal #slot-stats-tab .data-table th:nth-child(6),
.member-detail-modal #slot-stats-tab .data-table td:nth-child(6) {
    width: 10% !important; /* GGR수익율 */
    max-width: 100px !important;
    text-align: center !important;
}

.member-detail-modal #slot-stats-tab .data-table th:nth-child(7),
.member-detail-modal #slot-stats-tab .data-table td:nth-child(7) {
    width: 12% !important; /* 배팅수익금 */
    max-width: 120px !important;
}

.member-detail-modal #slot-stats-tab .data-table th:nth-child(8),
.member-detail-modal #slot-stats-tab .data-table td:nth-child(8) {
    width: 12% !important; /* 평균배팅금 */
    max-width: 120px !important;
}

.member-detail-modal .tab-content.active {
    display: block;
}

.member-detail-modal .coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #64748b;
}

.member-detail-modal .coming-soon i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.member-detail-modal .coming-soon h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #475569;
}

.member-detail-modal .coming-soon p {
    font-size: 16px;
    color: #64748b;
}

/* Device 상태 배지 스타일 */
.status-badge.device-pc {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.status-badge.device-mobile {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.device-tablet {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* 입금 상태 배지 스타일 */
.status-badge.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
}

.status-badge.processing {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
}

.status-badge.failed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white !important;
}

.btn-sm {
  padding: 6px 12px; /* 参考图片的小按钮内边距 */
  font-size: 12px; /* 参考图片的小按钮字体大小 */
  height: 26px; /* 参考图片的小按钮高度 */
}

/* 表格样式 - 参考图片的文本大小和间距 */
.table-container {
  background-color: var(--theme-color-light-1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.table-container:hover {
  box-shadow: var(--shadow-heavy);
}

.table-container h3 {
  margin-bottom: 20px; /* 参考图片的下边距 */
  color: var(--txt-default-color);
  font-size: 16px; /* 参考图片的表格标题大小 */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-container h3::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--color-select);
  border-radius: 2px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--theme-color-light-3);
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--theme-color-light-3);
}

/* 숫자 데이터는 오른쪽 정렬 - 优惠券金额 컬럼만 */
.data-table td:nth-child(9) {
  text-align: right;
}

.data-table th:nth-child(9) {
  text-align: right;
}

.data-table th:first-child,
.data-table td:first-child {
  width: 50px;
  padding: 16px 8px;
  text-align: center;
}

.data-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--txt-default-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  border-bottom: 2px solid var(--theme-color-light-3);
}

.data-table tr:hover {
  background-color: var(--theme-color-light-2);
  transform: scale(1.01);
  transition: all 0.3s ease;
}

.data-table tr:hover td {
  color: var(--txt-default-color);
  font-weight: 600;
}

/* 선택된 행 스타일 */
.data-table tr.selected {
  background-color: var(--theme-color-primary);
  color: white;
}

.data-table tr.selected td {
  color: white;
  font-weight: 600;
}

.data-table td {
  color: var(--txt-default-color);
  font-weight: 500;
}

.data-table tbody tr {
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 선택되지 않은 행만 호버 효과 적용 */
.data-table tbody tr:not(.selected):hover {
  background: var(--theme-color-light-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table tbody tr:not(.selected):hover td {
  color: var(--txt-default-color);
  font-weight: 600;
}

.data-table tbody tr.selected {
  background: var(--theme-color-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.data-table tbody tr.selected td {
  color: white !important;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 선택된 행이 호버 상태일 때도 동일한 스타일 유지 */
.data-table tbody tr.selected:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.data-table tbody tr.selected:hover td {
  color: white !important;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 합계 행 스타일 */
.summary-row {
  background-color: #f8fafc;
  border-top: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  font-weight: 600;
}

.summary-row td {
  padding: 12px 15px;
  color: #1e293b;
  text-align: left;
  border-bottom: none;
}

.summary-row td:first-child {
  text-align: center;
  color: #374151;
}

.summary-row td:nth-child(2) {
  text-align: left;
  font-weight: bold;
  color: #1e293b;
}

.summary-coupon-amount {
  text-align: right !important;
  font-weight: bold;
  color: #059669;
  background-color: transparent;
}

.summary-ggr,
.summary-betting,
.summary-subordinate,
.summary-total {
  font-weight: 700;
  color: #059669;
}

/* 클릭 가능한 셀 스타일 (메인 테이블용) */
.data-table .clickable-cell {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.data-table .clickable-cell:hover {
  background-color: #f8fafc;
  color: var(--txt-default-color);
  font-weight: 500;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

/* 메인 테이블의 clickable-cell은 원래 스타일 유지 */
.data-table .clickable-cell {
  background-color: #ffffff !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.data-table .clickable-cell:hover {
  background-color: #f8fafc !important;
  color: var(--txt-default-color) !important;
  font-weight: 500;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  border-color: #cbd5e1 !important;
}

/* detail-table 내의 clickable-cell은 완전히 다른 스타일 적용 */
.detail-table .clickable-cell,
.brand-detail-table .detail-table .clickable-cell,
.brand-details-list .detail-table .clickable-cell,
.detail-table .detail-clickable-cell,
.brand-detail-table .detail-table .detail-clickable-cell,
.brand-details-list .detail-table .detail-clickable-cell {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
  transform: none !important;
}

.detail-table .clickable-cell:hover,
.brand-detail-table .detail-table .clickable-cell:hover,
.brand-details-list .detail-table .clickable-cell:hover,
.detail-table .detail-clickable-cell:hover,
.brand-detail-table .detail-table .detail-clickable-cell:hover,
.brand-details-list .detail-table .detail-clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed !important;
  z-index: 99999 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(5px) !important;
  overflow: auto !important;
  pointer-events: auto !important;
}

/* 모달이 표시될 때 배경 요소들의 상태 보존 */
.modal[style*="display: block"] {
  pointer-events: auto !important;
}

/* 펼쳐진 행의 상태 보존 - 더 강력한 규칙 */
.expandable-row.selected,
.expandable-row[style*="background-color: #fef3c7"],
.expandable-row[style*="border: 2px solid #f59e0b"],
.expandable-row[data-preserved="true"] {
  background-color: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
  color: #000000 !important;
}

.detail-row[style*="display: block"],
.detail-row[style*="visibility: visible"],
.detail-row[style*="opacity: 1"],
.detail-row[data-preserved="true"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 모달이 표시되어도 펼쳐진 상태 유지 */
.modal[style*="display: block"] ~ .expandable-row.selected,
.modal[style*="display: block"] ~ .detail-row[style*="display: block"],
.modal[style*="display: block"] ~ .expandable-row[data-preserved="true"],
.modal[style*="display: block"] ~ .detail-row[data-preserved="true"] {
  background-color: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* data-preserved 속성이 있는 요소는 절대 숨겨지지 않음 */
[data-preserved="true"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.expandable-row[data-preserved="true"] {
  background-color: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
  color: #000000 !important;
}

.modal.show {
  display: block !important;
}

/* 모달이 강제로 표시될 때를 위한 추가 스타일 */
.modal[style*="display: block"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 상태 배지 스타일 */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  display: inline-block;
  min-width: 60px;
}

.status-badge.active {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-badge.inactive {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-badge.used {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-badge.expired {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.status-badge.recalled {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-badge.completed {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.status-badge.processing {
  background-color: #dbeafe;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.status-badge.pending {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.status-badge.rejected {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-badge.cancelled {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* 머니변동기록 유형 배지 스타일 */
.status-badge.deposit {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.status-badge.withdrawal {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-badge.bonus {
  background-color: #dbeafe;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.status-badge.rebate {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.status-badge.cashback {
  background-color: #e0e7ff;
  color: #7c3aed;
  border: 1px solid #c7d2fe;
}

.status-badge.coupon {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.status-badge.commission {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.status-badge.adjustment {
  background-color: #f9fafb;
  color: #374151;
  border: 1px solid #d1d5db;
}

.status-badge.coupon-transfer {
  background-color: #e0e7ff;
  color: #7c3aed;
  border: 1px solid #c7d2fe;
}

/* 로그인 기록 행위 상태 배지 */
.status-badge.login {
  background-color: #3b82f6;
  color: white;
  border: 1px solid #2563eb;
}

.status-badge.coupon-send {
  background-color: #10b981;
  color: white;
  border: 1px solid #059669;
}

.status-badge.excel-download {
  background-color: #f59e0b;
  color: white;
  border: 1px solid #d97706;
}

.status-badge.coupon-recall {
  background-color: #ef4444;
  color: white;
  border: 1px solid #dc2626;
}

.status-badge.create {
  background-color: #8b5cf6;
  color: white;
  border: 1px solid #7c3aed;
}

.status-badge.edit {
  background-color: #06b6d4;
  color: white;
  border: 1px solid #0891b2;
}

.status-badge.admin-add {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.status-badge.admin-deduct {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-badge.settlement {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

/* 금액 변동 표시 스타일 */
.positive {
  color: #16a34a;
  font-weight: 600;
}

.negative {
  color: #dc2626;
  font-weight: 600;
}

/* 체크박스 래퍼 스타일 */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-wrapper label {
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--txt-default-color);
  white-space: nowrap;
}

/* 쿠폰 관리 버튼 영역 스타일 */
.coupon-action-section {
  margin: 20px 0;
  padding: 15px;
  background-color: var(--theme-color-light-2);
  border-radius: 8px;
  border: 1px solid var(--theme-color-light-3);
}

.action-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.action-buttons .btn {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-buttons .btn-primary {
  background-color: #2563eb;
  color: white;
}

.action-buttons .btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.action-buttons .btn-danger {
  background-color: #dc2626;
  color: white;
}

.action-buttons .btn-danger:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.action-buttons .btn-warning {
  background-color: #f59e0b;
  color: white;
}

.action-buttons .btn-warning:hover {
  background-color: #d97706;
  transform: translateY(-1px);
}

/* 통계 카드 섹션 */
.stats-cards-section {
  margin: 15px 0;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.stats-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.stats-card:hover::before {
  opacity: 1;
}

.stats-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stats-card-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0.8;
  transition: all 0.3s ease;
}

.stats-card:hover .stats-card-icon {
  opacity: 1;
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
}

.stats-card-icon i {
  font-size: 14px;
  color: #3b82f6;
}

.stats-card-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stats-card-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.stats-card:hover .stats-card-label {
  color: #475569;
}

.stats-card-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  transition: color 0.3s ease;
  margin-top: 2px;
}

.stats-card:hover .stats-card-value {
  color: #3b82f6;
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 1200px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: none;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--theme-color-light-3);
  background-color: var(--theme-color-light-2);
}

.modal-header h3 {
  margin: 0;
  color: var(--txt-default-color);
  font-size: 18px;
  font-weight: 600;
}

.close {
  color: var(--txt-default-color);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.modal-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}

/* 모달 검색 영역 스타일 */
.modal-search-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 6px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.modal-search-section .form-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.modal-search-section .form-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-direction: row;
}

.modal-search-section .form-group label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-default-color);
  white-space: nowrap;
  min-width: 60px;
  order: 1;
}

.modal-search-section .form-group input {
  order: 2;
  flex: 1;
}

.modal-search-section .form-group:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-direction: row;
}

.modal-search-section input {
  padding: 6px 10px;
  border: 1px solid var(--theme-color-light-3);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--theme-color-light-2);
  min-width: 120px;
  height: 32px;
}

.modal-search-section input:focus {
  outline: none;
  border-color: var(--theme-color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-search-section .btn {
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
}

.modal-search-section .btn-primary {
  background-color: var(--theme-color-primary);
  color: white;
}

.modal-search-section .btn-primary:hover {
  background-color: #1d4ed8;
}

.modal-search-section .btn-success {
  background-color: #10b981;
  color: white;
}

.modal-search-section .btn-success:hover {
  background-color: #059669;
}

.modal-search-section .btn-warning {
  background-color: #f59e0b;
  color: white;
}

.modal-search-section .btn-warning:hover {
  background-color: #d97706;
}

.modal-body .table-container {
  margin: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
}

.modal-body .data-table {
  margin: 0;
  min-width: 1200px;
  font-size: 12px;
}

/* 하위수익 모달 테이블 컨테이너 - 가로 스크롤 강화 */
#subordinateModal .table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  white-space: nowrap;
}

/* 하위수익 모달 테이블 - 최소 너비 설정 */
#subordinateModal .data-table {
  min-width: 2500px;
  width: 100%;
  table-layout: fixed;
}

/* 하위수익 모달 테이블 셀 - 최소 너비 설정 */
#subordinateModal .data-table th,
#subordinateModal .data-table td {
  min-width: 120px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 12px;
  text-align: center;
}

/* 하위수익 모달 테이블 헤더 - 고정 */
#subordinateModal .data-table thead th {
  position: sticky;
  top: 0;
  background-color: var(--theme-color-light-2);
  z-index: 10;
  border-bottom: 2px solid var(--color-border);
}

/* 하위수익 모달 테이블 첫 번째 열 (체크박스) - 고정 */
#subordinateModal .data-table th:first-child,
#subordinateModal .data-table td:first-child {
  position: sticky;
  left: 0;
  background-color: var(--theme-color-light-2);
  z-index: 5;
  min-width: 50px;
  max-width: 50px;
}

/* 하위수익 모달 테이블 두 번째 열 (회원계정) - 고정 */
#subordinateModal .data-table th:nth-child(2),
#subordinateModal .data-table td:nth-child(2) {
  position: sticky;
  left: 50px;
  background-color: var(--theme-color-light-2);
  z-index: 5;
  min-width: 120px;
  max-width: 120px;
}

/* 모달 체크박스 스타일 */
.modal-body .select-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--theme-color-primary);
}

/* 모달 페이지네이션 스타일 */
.modal-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--theme-color-light-3);
  margin-top: 15px;
}

.modal-pagination .pagination-info {
  font-size: 14px;
  color: var(--txt-default-color);
}

.modal-pagination .pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-pagination .pagination-btn {
  padding: 6px 12px;
  border: 1px solid var(--theme-color-light-3);
  background-color: white;
  color: var(--txt-default-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-pagination .pagination-btn:hover:not(:disabled) {
  background-color: var(--theme-color-light-2);
  border-color: var(--theme-color-primary);
}

.modal-pagination .pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-pagination .pagination-numbers {
  display: flex;
  gap: 4px;
}

.modal-pagination .page-number {
  padding: 6px 10px;
  border: 1px solid var(--theme-color-light-3);
  background-color: white;
  color: var(--txt-default-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 32px;
  text-align: center;
}

.modal-pagination .page-number:hover {
  background-color: var(--theme-color-light-2);
  border-color: var(--theme-color-primary);
}

.modal-pagination .page-number.active {
  background-color: var(--theme-color-primary);
  color: white;
  border-color: var(--theme-color-primary);
}

.modal-body .data-table th,
.modal-body .data-table td {
  padding: 8px 6px;
  white-space: nowrap;
}



/* 확장 가능한 행 스타일 */
.expandable-row {
  cursor: pointer;
  transition: all 0.2s ease;
}

.expandable-row:hover {
  background-color: var(--theme-color-light-2);
}

.expandable-row.expanded {
  background-color: var(--theme-color-light-3);
}

.expandable-row::before {
  display: none;
}

.expand-icon {
  display: inline-block;
  margin-right: 8px;
  color: var(--txt-default-color);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.expandable-row.expanded .expand-icon {
  transform: rotate(90deg);
}

/* 상세 정보 행 스타일 */
.detail-row {
  background-color: var(--theme-color-light-1);
  border-top: none;
}

.detail-row td {
  padding: 0;
  border: none;
}

/* 브랜드 상세 정보 리스트 스타일 */
.brand-details-list {
  padding: 20px;
  background: linear-gradient(135deg, var(--theme-color-light-1) 0%, var(--theme-color-light-2) 100%);
}

.brand-detail-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--theme-color-light-3);
}

.brand-detail-header h4 {
  margin: 0;
  color: var(--txt-default-color);
  font-size: 18px;
  font-weight: 600;
}

.brand-detail-table {
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--theme-color-light-3);
}

.detail-table thead {
  background-color: var(--theme-color-light-2);
}

.detail-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--txt-default-color);
  font-size: 14px;
  border-bottom: 2px solid var(--theme-color-light-3);
  background: var(--theme-color-light-2);
}

/* 상세 테이블의 숫자 데이터도 오른쪽 정렬 */
.detail-table td:nth-child(3),
.detail-table td:nth-child(4),
.detail-table td:nth-child(5),
.detail-table td:nth-child(6) {
  text-align: right;
}

.detail-table th:nth-child(3),
.detail-table th:nth-child(4),
.detail-table th:nth-child(5),
.detail-table th:nth-child(6) {
  text-align: right;
}

.detail-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--theme-color-light-3);
  color: var(--txt-default-color);
  font-size: 14px;
  background-color: #ffffff;
}

/* detail-table 내의 clickable-cell 배경색을 다른 열과 동일하게 설정 */
.detail-table .clickable-cell,
.detail-table .detail-clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
  cursor: pointer !important;
  transition: all 0.3s ease;
  position: relative;
}

.detail-table .detail-clickable-cell:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.detail-table .clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* 더 구체적인 선택자로 강제 적용 */
.brand-detail-table .detail-table .clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
}

.brand-detail-table .detail-table .clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

/* 최고 우선순위로 강제 적용 */
.detail-table tbody tr td.clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
}

.detail-table tbody tr td.clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

/* 메인 테이블의 clickable-cell만 스타일 적용 */
.data-table .clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
}

.data-table .clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

/* 메인 테이블의 모든 가능한 선택자로 강제 적용 */
.data-table td,
.data-table td.clickable-cell,
.data-table tbody td,
.data-table tbody td.clickable-cell,
.data-table tbody tr td,
.data-table tbody tr td.clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
}

.data-table tr:not(.selected):hover td,
.data-table tr:not(.selected):hover td.clickable-cell,
.data-table tbody tr:not(.selected):hover td,
.data-table tbody tr:not(.selected):hover td.clickable-cell {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

/* 모든 열의 호버 효과를 완전히 통일 */
.data-table tr:not(.selected):hover td:first-child,
.data-table tr:not(.selected):hover td:nth-child(2),
.data-table tr:not(.selected):hover td:nth-child(3),
.data-table tr:not(.selected):hover td:nth-child(4),
.data-table tr:not(.selected):hover td:nth-child(5),
.data-table tr:not(.selected):hover td:nth-child(6),
.data-table tbody tr:not(.selected):hover td:first-child,
.data-table tbody tr:not(.selected):hover td:nth-child(2),
.data-table tbody tr:not(.selected):hover td:nth-child(3),
.data-table tbody tr:not(.selected):hover td:nth-child(4),
.data-table tbody tr:not(.selected):hover td:nth-child(5),
.data-table tbody tr:not(.selected):hover td:nth-child(6) {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

/* 모든 clickable-cell에 대한 전역 재정의 */
.clickable-cell {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
  transform: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* 메인 테이블의 모든 셀에 대한 강제 통일 */
.data-table tbody tr td {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
}

.data-table tbody tr:not(.selected):hover td {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

/* 선택된 행 스타일 (연한 노란색) */
.data-table tbody tr.selected td {
  background-color: #fef3c7 !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  border-color: #f59e0b !important;
}

.data-table tbody tr.selected:hover td {
  background-color: #fef3c7 !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  border-color: #f59e0b !important;
}

/* 모든 셀의 호버 효과를 완전히 통일 */
.data-table tbody tr:not(.selected):hover td,
.data-table tbody tr:not(.selected):hover td.clickable-cell,
.data-table tbody tr:not(.selected):hover td:first-child,
.data-table tbody tr:not(.selected):hover td:nth-child(2),
.data-table tbody tr:not(.selected):hover td:nth-child(3),
.data-table tbody tr:not(.selected):hover td:nth-child(4),
.data-table tbody tr:not(.selected):hover td:nth-child(5),
.data-table tbody tr:not(.selected):hover td:nth-child(6) {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

/* 메인 테이블의 clickable-cell에 대한 추가 보장 */
.data-table tbody tr td.clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
  transform: none !important;
}

.data-table tbody tr:not(.selected):hover td.clickable-cell {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1 !important;
}

/* detail-clickable-cell은 완전히 다른 스타일 */
.detail-clickable-cell {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
  transform: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.detail-clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* detail-table 내의 clickable-cell에 대한 추가 보장 */
.detail-table .clickable-cell,
.detail-table tbody tr td.clickable-cell,
.brand-detail-table .detail-table .clickable-cell,
.brand-detail-table .detail-table tbody tr td.clickable-cell {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.detail-table .clickable-cell:hover,
.detail-table tbody tr td.clickable-cell:hover,
.brand-detail-table .detail-table .clickable-cell:hover,
.brand-detail-table .detail-table tbody tr td.clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* detail-clickable-cell에 대한 완전히 새로운 스타일 */
.detail-clickable-cell {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
  transform: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.detail-clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* detail-table 내의 detail-clickable-cell에 대한 추가 보장 */
.detail-table .detail-clickable-cell,
.detail-table tbody tr td.detail-clickable-cell,
.brand-detail-table .detail-table .detail-clickable-cell,
.brand-detail-table .detail-table tbody tr td.detail-clickable-cell,
.brand-details-list .detail-table .detail-clickable-cell,
.brand-details-list .detail-table tbody tr td.detail-clickable-cell {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
  transform: none !important;
}

.detail-table .detail-clickable-cell:hover,
.detail-table tbody tr td.detail-clickable-cell:hover,
.brand-detail-table .detail-table .detail-clickable-cell:hover,
.brand-detail-table .detail-table tbody tr td.detail-clickable-cell:hover,
.brand-details-list .detail-table .detail-clickable-cell:hover,
.brand-details-list .detail-table tbody tr td.detail-clickable-cell:hover {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.detail-table td:first-child {
  padding-left: 15px;
}

.detail-table tbody tr.selected {
  background: #fef3c7;
  box-shadow: none;
}

.detail-table tbody tr.selected td {
  color: var(--txt-default-color) !important;
  font-weight: 600;
  background-color: #fef3c7 !important;
  border-color: #f59e0b !important;
}

.detail-table tbody tr.selected:hover {
  background: #fef3c7;
  box-shadow: none;
}

.detail-table tbody tr.selected:hover td {
  color: var(--txt-default-color) !important;
  font-weight: 600;
  background-color: #fef3c7 !important;
  border-color: #f59e0b !important;
}

/* 선택되지 않은 행만 호버 효과 적용 - 테이블 행에 직접 마우스가 올라갔을 때만 */
.detail-table tbody tr:not(.selected):hover {
  background: var(--theme-color-light-2);
  box-shadow: none;
}

.detail-table tbody tr:not(.selected):hover td {
  color: var(--txt-default-color);
  font-weight: 600;
}

/* 브랜드 상세 정보 헤더나 다른 영역에 마우스가 올라가도 테이블 행에 영향을 주지 않도록 */
.brand-details-list:hover .detail-table tbody tr:not(.selected) {
  background-color: transparent;
}

.brand-details-list:hover .detail-table tbody tr:not(.selected) td {
  color: var(--txt-default-color);
}

/* 브랜드 상세 정보 헤더 자체의 호버 효과 제거 */
.brand-detail-header:hover {
  background-color: transparent;
}

.brand-detail-header:hover + .brand-detail-table .detail-table tbody tr:not(.selected) {
  background-color: transparent;
}

.brand-detail-header:hover + .brand-detail-table .detail-table tbody tr:not(.selected) td {
  color: var(--txt-default-color);
}

/* detail-table 내의 모든 셀이 기본 상태에서 동일한 배경색을 가지도록 강제 적용 */
.detail-table tbody tr td {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
  transform: none !important;
}

/* detail-table 내의 모든 셀에 대한 최고 우선순위 강제 적용 */
.detail-table tbody tr td,
.detail-table tbody tr td.clickable-cell,
.detail-table tbody tr td.detail-clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
  transform: none !important;
  cursor: default !important;
}

/* 모든 셀에 대한 절대적 강제 적용 */
.detail-table tbody tr td:nth-child(1),
.detail-table tbody tr td:nth-child(2),
.detail-table tbody tr td:nth-child(3),
.detail-table tbody tr td:nth-child(4),
.detail-table tbody tr td:nth-child(5),
.detail-table tbody tr td:nth-child(6) {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
  transform: none !important;
  cursor: default !important;
}

/* 모든 셀의 호버 상태에 대한 절대적 강제 적용 */
.detail-table tbody tr:not(.selected):hover td:nth-child(1),
.detail-table tbody tr:not(.selected):hover td:nth-child(2),
.detail-table tbody tr:not(.selected):hover td:nth-child(3),
.detail-table tbody tr:not(.selected):hover td:nth-child(4),
.detail-table tbody tr:not(.selected):hover td:nth-child(5),
.detail-table tbody tr:not(.selected):hover td:nth-child(6) {
  background-color: var(--theme-color-light-2) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default !important;
}

.detail-table tbody tr:not(.selected):hover td {
  background-color: var(--theme-color-light-2) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  cursor: default !important;
}

.detail-table tbody tr:not(.selected):hover td.clickable-cell {
  background-color: var(--theme-color-light-2) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  cursor: default !important;
}

.detail-table tbody tr:not(.selected):hover td.detail-clickable-cell {
  background-color: var(--theme-color-light-2) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  cursor: default !important;
}

/* 브랜드 상세 정보 영역에서 마우스가 벗어났을 때 모든 셀의 배경색을 동일하게 설정 */
.brand-details-list .detail-table tbody tr:not(.selected):not(:hover) td {
  background-color: #ffffff !important;
}

.brand-details-list .detail-table tbody tr:not(.selected):not(:hover) td.clickable-cell {
  background-color: #ffffff !important;
}

/* 최고 우선순위로 모든 셀의 배경색을 강제 통일 */
.detail-table tbody tr td,
.detail-table tbody tr td.clickable-cell,
.detail-table tbody tr td.detail-clickable-cell,
.brand-detail-table .detail-table tbody tr td,
.brand-detail-table .detail-table tbody tr td.clickable-cell,
.brand-detail-table .detail-table tbody tr td.detail-clickable-cell,
.brand-details-list .detail-table tbody tr td,
.brand-details-list .detail-table tbody tr td.clickable-cell,
.brand-details-list .detail-table tbody tr td.detail-clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
  transform: none !important;
  cursor: default !important;
}

/* 모든 가능한 선택자로 강제 적용 */
.detail-table td,
.detail-table td.clickable-cell,
.detail-table td.detail-clickable-cell,
.brand-detail-table td,
.brand-detail-table td.clickable-cell,
.brand-detail-table td.detail-clickable-cell,
.brand-details-list td,
.brand-details-list td.clickable-cell,
.brand-details-list td.detail-clickable-cell,
.detail-table tbody td,
.detail-table tbody td.clickable-cell,
.detail-table tbody td.detail-clickable-cell,
.brand-detail-table tbody td,
.brand-detail-table tbody td.clickable-cell,
.brand-detail-table tbody td.detail-clickable-cell,
.brand-details-list tbody td,
.brand-details-list tbody td.clickable-cell,
.brand-details-list tbody td.detail-clickable-cell {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
  transform: none !important;
  cursor: default !important;
}

/* 호버 상태에서도 모든 셀의 배경색을 강제 통일 */
.detail-table tbody tr:not(.selected):hover td,
.detail-table tbody tr:not(.selected):hover td.clickable-cell,
.detail-table tbody tr:not(.selected):hover td.detail-clickable-cell,
.brand-detail-table .detail-table tbody tr:not(.selected):hover td,
.brand-detail-table .detail-table tbody tr:not(.selected):hover td.clickable-cell,
.brand-detail-table .detail-table tbody tr:not(.selected):hover td.detail-clickable-cell,
.brand-details-list .detail-table tbody tr:not(.selected):hover td,
.brand-details-list .detail-table tbody tr:not(.selected):hover td.clickable-cell,
.brand-details-list .detail-table tbody tr:not(.selected):hover td.detail-clickable-cell {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* 모든 가능한 호버 선택자로 강제 적용 */
.detail-table tr:not(.selected):hover td,
.detail-table tr:not(.selected):hover td.clickable-cell,
.brand-detail-table tr:not(.selected):hover td,
.brand-detail-table tr:not(.selected):hover td.clickable-cell,
.brand-details-list tr:not(.selected):hover td,
.brand-details-list tr:not(.selected):hover td.clickable-cell,
.detail-table tbody tr:not(.selected):hover td,
.detail-table tbody tr:not(.selected):hover td.clickable-cell,
.brand-detail-table tbody tr:not(.selected):hover td,
.brand-detail-table tbody tr:not(.selected):hover td.clickable-cell,
.brand-details-list tbody tr:not(.selected):hover td,
.brand-details-list tbody tr:not(.selected):hover td.clickable-cell {
  background-color: var(--theme-color-light-2) !important;
  color: var(--txt-default-color) !important;
  font-weight: 600;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* 선택되지 않은 상태에서 모든 셀의 배경색을 강제 통일 */
.detail-table tbody tr:not(.selected):not(:hover) td,
.detail-table tbody tr:not(.selected):not(:hover) td.clickable-cell,
.brand-detail-table .detail-table tbody tr:not(.selected):not(:hover) td,
.brand-detail-table .detail-table tbody tr:not(.selected):not(:hover) td.clickable-cell,
.brand-details-list .detail-table tbody tr:not(.selected):not(:hover) td,
.brand-details-list .detail-table tbody tr:not(.selected):not(:hover) td.clickable-cell {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* 모든 가능한 선택되지 않은 상태 선택자로 강제 적용 */
.detail-table tr:not(.selected):not(:hover) td,
.detail-table tr:not(.selected):not(:hover) td.clickable-cell,
.brand-detail-table tr:not(.selected):not(:hover) td,
.brand-detail-table tr:not(.selected):not(:hover) td.clickable-cell,
.brand-details-list tr:not(.selected):not(:hover) td,
.brand-details-list tr:not(.selected):not(:hover) td.clickable-cell,
.detail-table tbody tr:not(.selected):not(:hover) td,
.detail-table tbody tr:not(.selected):not(:hover) td.clickable-cell,
.brand-detail-table tbody tr:not(.selected):not(:hover) td,
.brand-detail-table tbody tr:not(.selected):not(:hover) td.clickable-cell,
.brand-details-list tbody tr:not(.selected):not(:hover) td,
.brand-details-list tbody tr:not(.selected):not(:hover) td.clickable-cell {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.detail-table tbody tr:last-child td {
  border-bottom: none;
}

/* 브랜드명 셀 스타일 */
.brand-name-cell {
  font-weight: 600;
  position: relative;
}

.brand-name-cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 2px;
}

.detail-table tbody tr:nth-child(1) .brand-name-cell::before {
  background-color: #ff6384;
}

.detail-table tbody tr:nth-child(2) .brand-name-cell::before {
  background-color: #36a2eb;
}

.detail-table tbody tr:nth-child(3) .brand-name-cell::before {
  background-color: #ffcd56;
}

.detail-table tbody tr:nth-child(4) .brand-name-cell::before {
  background-color: #9966ff;
}

.brand-name-cell {
  padding-left: 25px !important;
}



/* 状态徽章 - 参考图片的大小 */
.status-badge {
  padding: 6px 12px; /* 参考图片的内边距 */
  border-radius: 20px;
  font-size: 12px; /* 参考图片的徽章字体大小 */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-light);
}

.status-badge.success {
  background: linear-gradient(135deg, rgba(11, 159, 1, 0.2), rgba(11, 159, 1, 0.1));
  color: var(--color-enable);
  border: 1px solid rgba(11, 159, 1, 0.3);
}

.status-badge.warning {
  background: linear-gradient(135deg, rgba(255, 211, 67, 0.2), rgba(255, 211, 67, 0.1));
  color: var(--color-select);
  border: 1px solid rgba(255, 211, 67, 0.3);
}

.status-badge.danger {
  background: linear-gradient(135deg, rgba(255, 55, 55, 0.2), rgba(255, 55, 55, 0.1));
  color: var(--color-disable);
  border: 1px solid rgba(255, 55, 55, 0.3);
}

/* 利润摘要 - 参考图片的文本大小 */
.profit-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.summary-card {
  background: linear-gradient(135deg, var(--theme-color-light-1), var(--theme-color-light-2));
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  text-align: center;
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-select), var(--color-enable));
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.summary-card h3 {
  font-size: 14px; /* 参考图片的摘要标题大小 */
  color: var(--theme-color-light-4);
  margin-bottom: 15px; /* 参考图片的下边距 */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.summary-number {
  font-size: 28px; /* 参考图片的摘要数字大小 */
  font-weight: bold;
  color: var(--txt-default-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}



/* 即将推出页面 - 参考图片的文本大小 */
.coming-soon {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--theme-color-light-1), var(--theme-color-light-2));
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
}

.coming-soon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.coming-soon i {
  font-size: 64px; /* 参考图片的图标大小 */
  color: var(--theme-color-light-4);
  margin-bottom: 25px; /* 参考图片的下边距 */
  opacity: 0.6;
}

.coming-soon h2 {
  font-size: 28px; /* 参考图片的标题大小 */
  color: var(--txt-default-color);
  margin-bottom: 15px; /* 参考图片的下边距 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.coming-soon p {
  color: var(--theme-color-light-4);
  font-size: 16px; /* 参考图片的描述文字大小 */
  font-weight: 500;
  line-height: 1.6;
}



/* 连接状态动画 */
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* 工具类 */
.flex-center {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.flex-nowrap {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.flex-left-center {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: flex-start;
  align-items: center;
}

.unselect {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.no-scroll {
  overflow: hidden;
}

.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--theme-color-light-2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--theme-color-light-4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color-light-5);
}

/* 移动端响应式设计 */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  
  .main-content {
    margin-left: 200px;
  }
  
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .balance-section {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .balance-item {
    min-width: 200px;
  }
}




@media (max-width: 480px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    height: 100vh;
    background-color: var(--theme-color-light-1);
    overflow-y: auto;
  }
  
  .nav-link {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .nav-link i {
    font-size: 16px;
  }
  

  
  .section-header {
    padding: 10px 15px;
  }
  
  .section-header h3 {
    font-size: 16px;
  }
  
  .table-container {
    margin: 10px;
  }
  
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 6px;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .announcement-bar {
    padding: 8px 15px;
  }
  
  .announcement-text {
    font-size: 12px;
  }
  
  .user-info {
    font-size: 12px;
    gap: 6px;
    padding: 8px 12px;
  }
  
  .user-info .fa-sms {
    font-size: 14px;
  }
  
  .avatar-icon {
    font-size: 24px;
  }
  
  .dropdown-menu {
    right: 0;
    min-width: 150px;
  }
  
  .dropdown-menu a {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* 검색 섹션 스타일 */
.search-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 8px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.search-section .form-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.search-section .form-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.search-section .form-group label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-default-color);
  white-space: nowrap;
}

/* 날짜 범위 입력 스타일 */
.date-range-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--theme-color-light-2);
  border: 1px solid var(--theme-color-light-3);
  border-radius: 6px;
  padding: 0 12px;
  height: 35px;
  min-width: 400px;
}

.date-range-input label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-default-color);
  white-space: nowrap;
  min-width: 40px;
}

.date-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.date-inputs i {
  color: var(--theme-color-light-4);
  font-size: 14px;
}

.date-range-input .form-control {
  border: none;
  background: transparent;
  padding: 0;
  height: 100%;
  font-size: 14px;
  color: var(--txt-default-color);
  min-width: 120px;
  flex: 1;
}

.date-range-input .form-control:focus {
  outline: none;
  box-shadow: none;
}

.date-separator {
  color: var(--theme-color-light-4);
  font-weight: 500;
  margin: 0 4px;
}

.search-section .btn {
  height: 35px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-section .btn-primary {
  background-color: #2563eb;
  color: white;
}

.search-section .btn-primary:hover {
  background-color: #1d4ed8;
}

.search-section .btn-success {
  background-color: #059669;
  color: white;
}

.search-section .btn-success:hover {
  background-color: #047857;
}

/* 테이블 섹션 스타일 */
.table-section {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--theme-color-light-3);
  background-color: var(--theme-color-light-2);
}

.table-header h3 {
  margin: 0;
  color: var(--txt-default-color);
  font-size: 18px;
  font-weight: 600;
}

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

/* 페이지네이션 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 20px;
  background-color: var(--theme-color-light-2);
  border-top: 1px solid var(--theme-color-light-3);
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--theme-color-light-3);
  background-color: var(--theme-color-light-1);
  color: var(--txt-default-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--theme-color-primary);
  color: white;
  border-color: var(--theme-color-primary);
}

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

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--txt-muted-color);
  padding: 0 8px;
}





/* 详细数据统计区域 */
.detailed-stats-section {
  background-color: var(--theme-color-light-1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--theme-color-light-3);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.detailed-stats-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* Tabs容器 */
.tabs-container {
  margin-top: 20px;
}

/* Tabs导航 */
.tabs-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  background-color: var(--theme-color-light-1);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--theme-color-light-3);
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  background-color: var(--theme-color-light-2);
  border: none;
  border-radius: 6px;
  color: var(--txt-default-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--theme-color-light-3);
}

.tab-btn:hover {
  background-color: var(--theme-color-light-3);
  color: var(--color-select);
  border-color: var(--color-select);
}

.tab-btn.active {
  background-color: var(--color-select);
  color: var(--theme-color-primary);
  font-weight: 600;
  box-shadow: var(--shadow-light);
  border-color: var(--color-select);
}

/* 비활성 탭의 가시성 개선 */
.tab-btn:not(.active) {
  color: var(--txt-default-color);
  background-color: var(--theme-color-light-2);
  border-color: var(--theme-color-light-3);
}

.tab-btn:not(.active):hover {
  background-color: var(--theme-color-light-3);
  color: var(--color-select);
  border-color: var(--color-select);
}

/* Tab内容 */
.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 数据标签样式 */
.data-label {
  font-size: 11px;
  color: var(--theme-color-light-4);
  font-weight: 400;
  margin-left: 8px;
  opacity: 0.8;
  display: block;
  line-height: 1.3;
}

/* 综合表格样式 */
.comprehensive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--theme-color-light-2);
  border: 1px solid var(--theme-color-light-3);
  table-layout: fixed;
}

.comprehensive-table th,
.comprehensive-table td {
  padding: 12px 8px;
  text-align: left;
  border: 1px solid var(--theme-color-light-3);
  vertical-align: middle;
  word-wrap: break-word;
}

/* 主表头样式 */
.comprehensive-table .main-header th {
  background: linear-gradient(135deg, var(--theme-color-light-1), var(--theme-color-light-2));
  font-weight: 600;
  color: var(--txt-default-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  text-align: center;
  padding: 14px 8px;
}

/* 子表头样式 */
.comprehensive-table .sub-header th {
  background: linear-gradient(135deg, var(--theme-color-light-2), var(--theme-color-light-3));
  font-weight: 500;
  color: var(--txt-default-color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 10px;
  text-align: center;
  padding: 10px 6px;
}

/* 第一列（指标名称）样式 */
.comprehensive-table td:first-child {
  background-color: var(--theme-color-light-1);
  font-weight: 600;
  color: var(--txt-default-color);
  font-size: 12px;
  min-width: 150px;
}

/* 第二列（전체）样式 */
.comprehensive-table td:nth-child(2) {
  background-color: var(--theme-color-light-2);
  font-weight: 600;
  color: var(--color-select);
  text-align: center;
  font-size: 14px;
}

/* 数值列样式 */
.comprehensive-table td:nth-child(3),
.comprehensive-table td:nth-child(5),
.comprehensive-table td:nth-child(7),
.comprehensive-table td:nth-child(9) {
  background-color: var(--theme-color-light-2);
  font-weight: 600;
  color: var(--txt-default-color);
  text-align: center;
  font-size: 13px;
}

/* 描述列样式 */
.comprehensive-table td:nth-child(4),
.comprehensive-table td:nth-child(6),
.comprehensive-table td:nth-child(8),
.comprehensive-table td:nth-child(10) {
  background-color: var(--theme-color-light-3);
  font-weight: 500;
  color: var(--txt-default-color);
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.9;
}

/* 表格行悬停效果 */
.comprehensive-table tbody tr:hover {
  background-color: var(--theme-color-light-3);
  transform: scale(1.01);
  transition: all 0.3s ease;
}

.comprehensive-table tbody tr:hover td {
  background-color: var(--theme-color-light-4);
  color: var(--txt-default-color);
}

/* 描述列 호버 시 가독성 개선 */
.comprehensive-table tbody tr:hover td:nth-child(4),
.comprehensive-table tbody tr:hover td:nth-child(6),
.comprehensive-table tbody tr:hover td:nth-child(8),
.comprehensive-table tbody tr:hover td:nth-child(10) {
  background-color: var(--theme-color-light-4);
  color: var(--txt-default-color);
  opacity: 1;
  font-weight: 600;
}

/* 表格容器优化 */
.detailed-stats-section .table-container {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
  margin: 0;
  overflow-x: auto;
}

.detailed-stats-section .table-container:hover {
  transform: none;
  box-shadow: none;
}

.detailed-stats-section .table-container h3 {
  display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .comprehensive-table {
    font-size: 11px;
  }
  
  .comprehensive-table th,
  .comprehensive-table td {
    padding: 8px 4px;
  }
  
  .comprehensive-table .main-header th {
    font-size: 10px;
    padding: 10px 4px;
  }
  
  .comprehensive-table .sub-header th {
    font-size: 9px;
    padding: 8px 4px;
  }
}



/* 강제 상태 보존 - 더 강력한 규칙 */
.expandable-row[data-force-preserved="true"] {
  background-color: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
  color: #000000 !important;
  position: relative !important;
  z-index: 1000 !important;
}

.detail-row[data-force-preserved="true"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;
}

/* 모달이 표시되어도 강제 보존 */
.modal[style*="display: block"] ~ .expandable-row[data-force-preserved="true"],
.modal[style*="display: block"] ~ .detail-row[data-force-preserved="true"] {
  background-color: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 모든 상황에서 강제 보존 */
body:has(.modal[style*="display: block"]) .expandable-row[data-force-preserved="true"],
body:has(.modal[style*="display: block"]) .detail-row[data-force-preserved="true"] {
  background-color: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 절대적인 강제 보존 */
[data-force-preserved="true"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
  color: #000000 !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* Vue 스타일 간결한 탭 네비게이션 */
.vue-tabs {
  margin-bottom: 24px;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
}

.tab-nav-item {
  position: relative;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-nav-item:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.tab-nav-item.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: transparent;
}

.tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

/* Vue 스타일 간결한 탭 콘텐츠 */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Vue 스타일 간결한 준비 중 페이지 */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.coming-soon i {
  font-size: 48px;
  color: #3b82f6;
  margin-bottom: 16px;
  opacity: 0.7;
}

.coming-soon h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.coming-soon p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  max-width: 300px;
  text-align: center;
}

/* 누적통계 페이지 스타일 */
.cumulative-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-header {
  background: #f8fafc;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.section-header p {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.section-header.monthly {
  background: #dbeafe;
}

.section-header.monthly .header-left h3 {
  color: #1e40af;
}

.section-header.monthly .header-left p {
  color: #3b82f6;
}

.month-selector select {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.month-selector select:hover {
  border-color: #3b82f6;
}

.month-selector select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
}

.stats-card {
  background: #f8fafc;
  padding: 16px;
  border-right: 1px solid #e2e8f0;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.stats-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
}

.stats-table {
  overflow-x: auto;
  max-width: 100%;
}

.cumulative-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 800px;
}

.cumulative-table th {
  background: #f1f5f9;
  color: #374151;
  font-weight: 600;
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  min-width: 100px;
}

.cumulative-table td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  font-weight: 500;
}

.cumulative-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.cumulative-table tbody tr:hover {
  background: #f1f5f9;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-card {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
}

/* 공지확인 페이지 스타일 */
.color-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.type-badge.login {
    background: linear-gradient(135deg, #10b981, #059669);
}

.type-badge.withdrawal {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.type-badge.deposit {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.type-badge.bonus {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.type-badge.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.status-badge.read {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.status-badge.unread {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-badge.expired {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* 도메인 설정 페이지 전용 상태 배지 */
.status-badge.main {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.status-badge.sub {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.mirror {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.status-badge.received {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.blocked {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* 브랜드 그룹 헤더 스타일 */
.brand-group-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 2px solid #cbd5e1;
}

.brand-header {
  padding: 12px 16px;
  background: transparent;
}

.brand-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #1e293b;
}

.brand-header-content i {
  color: #667eea;
  font-size: 16px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
}

.domain-count {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.brand-cell {
  background-color: #f8fafc;
  font-weight: 500;
  color: #475569;
}

/* 도메인 추가 팝업 스타일 */
.form-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

/* 모달 기본 스타일 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 10000;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: #f3f4f6;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 0 0 8px 8px;
}

#domain-add-modal .modal-content {
  max-width: 500px;
}

#domain-add-modal .form-group {
  margin-bottom: 20px;
}

#domain-add-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

#domain-add-modal .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#domain-add-modal .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#domain-add-modal .form-control:invalid {
  border-color: #ef4444;
}

#domain-add-modal textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* 도메인 설정 페이지 버튼 스타일 */
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin: 0 2px;
}

.btn-sm.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: white;
}

.btn-sm.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 권한 설정 페이지 스타일 */
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.permission-category {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.permission-category h4 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.permission-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
    padding: 8px 12px;
}

.permission-item:hover {
    background-color: #f8fafc;
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.permission-item span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* 계층적 권한 관리 스타일 */
.hierarchical-permissions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.menu-permission-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.menu-permission-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.menu-permission-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.menu-permission-label:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.menu-permission-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

.menu-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.tab-permissions {
    padding: 16px 20px 16px 52px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.tab-permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 2px 0;
}

.tab-permission-item:hover {
    background-color: #e2e8f0;
}

.tab-permission-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
    cursor: pointer;
}

.tab-permission-item span {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

/* 메뉴 권한이 비활성화일 때 탭 권한도 비활성화 */
.menu-permission-item:has(input[type="checkbox"]:not(:checked)) .tab-permissions {
    opacity: 0.5;
    pointer-events: none;
}

.menu-permission-item:has(input[type="checkbox"]:not(:checked)) .tab-permission-item input[type="checkbox"] {
    pointer-events: none;
}

/* 계정 유형 상태 배지 */
.status-badge.admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-badge.partner {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.status-badge.operator {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.viewer {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* 출금신청 모달 스타일 */
.withdrawal-info-section {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: none;
}

.balance-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.balance-display .balance-item {
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: space-between;
}

.balance-display .balance-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #059669);
}

.balance-display .balance-label {
  font-size: 15px;
  color: #64748b;
  font-weight: 600;
}

.balance-display .balance-amount {
  font-size: 20px;
  font-weight: 800;
  color: #059669;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 출금신청 모달 폼 그룹 스타일 */
#withdrawal-modal .form-group {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

#withdrawal-modal .form-group label {
  flex: 0 0 120px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-align: right;
  margin-bottom: 0;
}

#withdrawal-modal .form-control {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #374151;
  font-weight: 500;
}

#withdrawal-modal .form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #ffffff;
}

#withdrawal-modal .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

#withdrawal-modal select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

#withdrawal-modal select.form-control option {
  color: #374151;
  background: #ffffff;
  padding: 8px 12px;
}

.input-group {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
  border-right: none;
  flex: 1;
}

.input-group-text {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid #e5e7eb;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 0;
  width: 100%;
  flex: 1;
}

.amount-buttons .btn-sm {
  font-size: 12px;
  padding: 8px 10px;
  min-height: 36px;
}

.amount-buttons .btn {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  color: #374151;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.amount-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.amount-buttons .btn:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.amount-buttons .btn:hover::before {
  left: 100%;
}

.amount-buttons .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.withdrawal-summary {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.withdrawal-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #059669);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.summary-item:hover {
  background: rgba(59, 130, 246, 0.03);
  border-radius: 8px;
  padding: 16px 12px;
  transform: translateX(4px);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  margin: 12px -20px -20px -20px;
  padding: 16px 20px;
  border-radius: 0 0 12px 12px;
  border-top: 2px solid #0ea5e9;
  position: relative;
}

.summary-item.total::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.summary-label {
  font-size: 15px;
  color: #64748b;
  font-weight: 600;
}

.summary-value {
  font-size: 17px;
  color: #1e293b;
  font-weight: 700;
}

.summary-item.total .summary-label {
  color: #1e293b;
  font-size: 16px;
}

.summary-item.total .summary-value {
  color: #059669;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 출금신청 모달 전체 스타일 개선 */
#withdrawal-modal .modal-content {
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#withdrawal-modal .modal-header {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 24px 32px;
  border-bottom: none;
  flex-shrink: 0;
}

#withdrawal-modal .modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
  justify-content: center;
}

#withdrawal-modal .modal-header h3 i {
  font-size: 24px;
}

#withdrawal-modal .modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

#withdrawal-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

/* GGR 详情弹窗更宽展示与滚动友好 */
#ggr-detail-modal .modal-content {
  max-width: 1000px; /* 原来较窄，扩大到更适合表格展示的宽度 */
  width: 96%;
}

#ggr-detail-modal .table-container {
  overflow-x: auto;
}

#ggr-detail-modal .data-table {
  min-width: 900px; /* 保证列足够展示 */
}

#withdrawal-modal .modal-body {
  padding: 32px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  flex: 1;
  overflow-y: auto;
}

#withdrawal-modal .modal-footer {
  background: #ffffff;
  padding: 24px 32px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

#withdrawal-modal .modal-footer .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 100px;
}

#withdrawal-modal .modal-footer .btn-secondary {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #6b7280;
}

#withdrawal-modal .modal-footer .btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

#withdrawal-modal .modal-footer .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 2px solid #3b82f6;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#withdrawal-modal .modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 출금 섹션 스타일 */
.withdrawal-section {
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 20px;
  text-align: center;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* 계좌 카드 컨테이너 */
.account-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

.account-cards-container::-webkit-scrollbar {
  width: 6px;
}

.account-cards-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.account-cards-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.account-cards-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 계좌 카드 스타일 */
.account-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 180px;
  width: 100%;
}

.account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #059669);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.account-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-3px);
}

.account-card:hover::before {
  transform: scaleX(1);
}

.account-card.has-amount {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.account-card.has-amount::before {
  transform: scaleX(1);
}

/* 계좌 헤더 */
.account-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.bank-info {
  width: 100%;
}

.bank-name {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-holder {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.account-number {
  font-size: 13px;
  color: #9ca3af;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

/* 금액 입력 섹션 */
.account-amount-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  flex: 1;
}

.amount-input-group {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.account-amount {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #3b82f6;
  border-radius: 12px 0 0 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #374151;
  font-weight: 600;
  text-align: right;
  min-height: 42px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  width: 100%;
  display: block;
}

.account-amount:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.account-amount::placeholder {
  color: #9ca3af;
  font-weight: 400;
  text-align: right;
}

.amount-unit {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 2px solid #3b82f6;
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 10px 12px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
  min-width: 50px;
  min-height: 42px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* 빠른 선택 버튼 */
.quick-amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.btn-quick {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid #3b82f6;
  background: white;
  color: #3b82f6;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
  min-height: 32px;
}

.btn-quick::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-quick:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-quick:hover::before {
  left: 100%;
}

.btn-max {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-color: #f59e0b;
}

.btn-max:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* 출금신청 2차 확인 팝업 스타일 */
.confirm-modal-content {
  max-width: 600px;
  width: 95%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.confirm-header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
  position: relative;
  flex-shrink: 0;
}

.confirm-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  justify-content: center;
}

.confirm-header h3 i {
  font-size: 22px;
}

.confirm-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(135deg, #fefefe, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.confirm-icon {
  text-align: center;
  margin-bottom: 16px;
}

.confirm-icon i {
  font-size: 48px;
  color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.confirm-message {
  text-align: center;
  margin-bottom: 20px;
}

.confirm-message h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.confirm-message p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.withdrawal-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-section h5 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-bank {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.account-detail {
  font-size: 12px;
  color: #64748b;
}

.account-amount {
  font-size: 14px;
  font-weight: 700;
  color: #059669;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.summary-row.total-row {
  border-top: 2px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 8px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 8px;
  padding: 12px 8px;
}

.summary-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.summary-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 700;
}

.summary-row.total-row .summary-label {
  color: #1e293b;
  font-size: 15px;
}

.summary-row.total-row .summary-value {
  color: #3b82f6;
  font-size: 16px;
  font-weight: 800;
}

.warning-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #1e40af;
  font-size: 13px;
  font-weight: 500;
}

.warning-notice i {
  font-size: 16px;
  color: #3b82f6;
}

.confirm-footer {
  background: #ffffff;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: center;
  border-radius: 0 0 16px 16px;
  flex-shrink: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.confirm-footer .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.confirm-footer .btn-secondary {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #6b7280;
}

.confirm-footer .btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.confirm-footer .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 2px solid #f59e0b;
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.confirm-footer .btn-primary:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* 프로필 페이지 스타일 */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 24px;
}

.profile-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.profile-section .section-header {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 20px 24px;
  margin: 0;
  border-radius: 0;
}

.profile-section .section-header h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-section .section-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* 프로필 기본 정보 카드 */
.profile-info-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  align-items: flex-start;
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-avatar i {
  font-size: 80px;
  color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 50%;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.profile-item:last-child {
  border-bottom: none;
}

.profile-item label {
  flex: 0 0 100px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.profile-value {
  flex: 1;
  font-size: 15px;
  color: #1e293b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #ffffff;
}

.profile-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-input:read-only {
  background: #f8fafc;
  color: #64748b;
}

.btn-outline {
  background: transparent;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #3b82f6;
  color: white;
}

/* 계좌 정보 섹션 */
.accounts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
}

.profile-account-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  transition: all 0.3s ease;
  overflow: hidden;
}

.profile-account-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.profile-account-card.registered {
  border-color: #059669;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.profile-account-card .account-header {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-account-card .bank-name {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.account-status {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge:not(.registered) {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.status-badge.registered {
  background: #dcfce7;
  color: #059669;
  border: 1px solid #bbf7d0;
}

.account-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.account-form label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.account-form .form-control {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #ffffff;
}

.account-form .form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.account-form .form-control:read-only {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.form-actions {
  margin-top: 8px;
}

.form-actions .btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 2px solid #3b82f6;
  color: white;
}

.form-actions .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.form-actions .btn-primary:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .profile-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .profile-item label {
    flex: none;
  }
  
  .accounts-container {
    grid-template-columns: 1fr;
  }
}

/* 권한설정 페이지는 표준 vue-tabs 스타일 사용 */

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

/* 권한관리 페이지 스타일 */
.permission-management-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    height: 600px;
}

.section-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-card .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 0;
}

.section-card .section-header i {
    color: #3b82f6;
    font-size: 16px;
}

.section-card .section-header h3 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.status-indicator {
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 사용자 계정 트리 스타일 */
.user-tree {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tree-item:hover {
    background: #f1f5f9;
}

.tree-item.selected {
    background: #e0f2fe;
    color: #0369a1;
}

.tree-icon {
    width: 12px;
    color: #64748b;
    font-size: 10px;
}

.tree-children {
    margin-left: 20px;
    border-left: 1px dashed #e2e8f0;
    padding-left: 16px;
}

.tree-item.leaf {
    font-size: 14px;
    color: #64748b;
}

.user-actions {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.user-actions label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
}

.memo-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memo-section label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0;
}

.memo-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

/* 메뉴할당 및 권한 통합 스타일 */
.menu-permissions-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.menu-item {
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.menu-item.expandable {
    border: 1px solid #e2e8f0;
}

.menu-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-wrap: wrap;
}

.menu-main:hover {
    background: #f8fafc;
}

.expand-icon {
    width: 12px;
    color: #64748b;
    font-size: 10px;
    transition: transform 0.2s;
    margin-top: 2px;
}

.menu-item.expanded .expand-icon {
    transform: rotate(90deg);
}

.menu-main label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    flex: 1;
    min-width: 120px;
}

.menu-permissions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #059669;
    font-weight: 500;
    background: #f0fdfa;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.permission-item:hover {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.permission-item.coupon-permission {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.permission-item.coupon-permission:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.permission-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #059669;
    margin: 0;
}

.permission-item.coupon-permission input[type="checkbox"] {
    accent-color: #dc2626;
}

.menu-tabs {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 12px 16px;
}

.tab-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 0;
    margin-left: 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-item:last-child {
    border-bottom: none;
}

.tab-item > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    margin: 0;
    flex: 1;
    min-width: 100px;
}

.tab-item > label:hover {
    color: #374151;
}

.tab-permissions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.main-menu-checkbox,
.tab-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.status-indicator {
    cursor: pointer;
    transition: all 0.2s;
}

.status-indicator:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* 페이지 권한 스타일 */
.permissions-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.permission-notice {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 14px;
}

.permission-groups {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.permission-group {
    padding: 8px 0;
}

.permission-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.permission-group.special label {
    color: #059669;
    font-weight: 500;
}

.permission-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.permission-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-permission {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save {
    background: #3b82f6;
    color: white;
}

.btn-save:hover {
    background: #2563eb;
}

.btn-add {
    background: #10b981;
    color: white;
}

.btn-add:hover {
    background: #059669;
}

/* 컨텍스트 메뉴 스타일 */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s;
}

.context-menu-item:hover {
    background: #f1f5f9;
}

.context-menu-item:first-child {
    border-radius: 6px 6px 0 0;
}

.context-menu-item:last-child {
    border-radius: 0 0 6px 6px;
}

.context-menu-item i {
    width: 16px;
    font-size: 12px;
    color: #64748b;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .permission-management-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 16px;
    }
    
    .section-card {
        height: 400px;
    }
    
    .menu-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .menu-permissions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
    
    .tab-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tab-permissions {
        width: 100%;
        justify-content: flex-start;
    }
}

.section-header h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 권한설정 페이지는 표준 search-section 스타일 사용 */

.table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.table-header h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add:hover {
    background: #059669;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f8fafc;
}

.permission-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.permission-badge.admin {
    background: #fee2e2;
    color: #dc2626;
}

.permission-badge.user {
    background: #dbeafe;
    color: #2563eb;
}

.permission-badge.viewer {
    background: #f3e8ff;
    color: #7c3aed;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.blocked {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.self {
    background: #fef3c7;
    color: #d97706;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.2s;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.btn-page {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-page:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.btn-page.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.coming-soon i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.coming-soon h3 {
    color: #374151;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.coming-soon p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }
    
    .permission-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #e2e8f0;
        border-right: none;
    }
    
    .tab-button.active {
        border-bottom-color: #667eea;
        border-right: 3px solid #667eea;
    }
}

/* 회원통계 페이지 전용 스타일 */
.status-badge.vip {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* 회원통계 테이블 가로 스크롤 스타일 */
#member-stats .table-container {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0 auto;
}

#member-stats .data-table {
    width: auto; /* 내용에 맞는 너비로 자동 조정 */
    min-width: 100%; /* 최소 너비는 컨테이너 너비 */
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto; /* 자동 레이아웃으로 내용에 맞게 조정 */
}

#member-stats .data-table th,
#member-stats .data-table td {
    min-width: 100px; /* 각 열의 최소 너비 설정 */
    max-width: 200px; /* 각 열의 최대 너비 설정 */
    padding: 12px 16px; /* 적절한 패딩으로 가독성 향상 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    border-right: 1px solid #e2e8f0; /* 열 구분선 */
    width: auto; /* 내용에 맞는 너비로 자동 조정 */
}


#member-stats .data-table th:last-child,
#member-stats .data-table td:last-child {
    border-right: none; /* 마지막 열의 오른쪽 테두리 제거 */
}

/* 회원통계 테이블 교대 배경색 (Zebra Striping) */
#member-stats .table-container .data-table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important; /* 짝수 행에 연한 회색 배경 */
}

#member-stats .table-container .data-table tbody tr:nth-child(odd) td {
    background-color: #ffffff !important; /* 홀수 행에 흰색 배경 */
}

#member-stats .table-container .data-table tbody tr:hover td {
    background-color: #e2e8f0 !important; /* 호버 시 더 진한 회색 배경 */
    transition: background-color 0.2s ease; /* 부드러운 전환 효과 */
}

/* 추가적인 교대 배경색 스타일 */
#member-stats .data-table tbody tr:nth-child(2n) {
    background-color: #f8fafc;
}

#member-stats .data-table tbody tr:nth-child(2n+1) {
    background-color: #ffffff;
}

#member-stats .data-table tbody tr:hover {
    background-color: #e2e8f0;
}

/* 스크롤바 스타일링 */
#member-stats .table-container::-webkit-scrollbar {
    height: 8px;
}

#member-stats .table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#member-stats .table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#member-stats .table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 회원통계 페이지 전체 스크롤 제어 */
#member-stats {
    overflow-x: hidden; /* 회원통계 페이지의 가로 스크롤 방지 */
}

#member-stats .page-content {
    overflow-x: hidden; /* 페이지 콘텐츠의 가로 스크롤 방지 */
    overflow-y: visible; /* 세로 스크롤은 허용 */
    width: 100%;
    max-width: 100%;
}

#member-stats .search-section {
    overflow-x: hidden; /* 검색 섹션의 가로 스크롤 방지 */
    width: 100%;
    max-width: 100%;
}

#member-stats .pagination {
    overflow-x: hidden; /* 페이지네이션의 가로 스크롤 방지 */
    width: 100%;
    max-width: 100%;
}

/* 메인 콘텐츠 영역 스크롤 제어 */
.main-content {
    overflow-x: hidden; /* 메인 콘텐츠의 가로 스크롤 방지 */
    overflow-y: auto; /* 세로 스크롤은 허용 */
}

/* 테이블 컨테이너 스크롤 힌트 */
#member-stats .table-container::after {
    content: "← 左右滑动查看更多列 →";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    pointer-events: none;
}

.status-badge.gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.silver {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.status-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: white;
}

.status-badge.normal {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.morning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.status-badge.evening {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.in-progress {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* 금액 표시 스타일 */
.amount {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.amount.positive {
    color: var(--color-enable);
}

.amount.negative {
    color: var(--color-disable);
}

/* 태그 스타일 */
.tag {
    display: inline-block;
    padding: 2px 6px;
    background-color: var(--theme-color-light-3);
    color: var(--txt-default-color);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

/* 정렬 가능한 테이블 헤더 스타일 */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Modal 기본 스타일 (프로젝트 공통 스타일이 있다면 자동으로 어울림) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    width: 720px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateY(-8px);
    animation: modal-pop .18s ease-out both;
}

.modal-header, .modal-footer {
    padding: 14px 18px;
    background: var(--theme-color-light-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    border-bottom: 1px solid #e5e7eb;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
}

.modal-body {
    padding: 18px 20px;
}

.modal-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
}

/* 更好看的弹窗布局 */
.modal .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}
.modal .form-group {
    min-width: 200px;
}
.modal .form-group:not([style*="flex:1 1 100%"]){
    flex: 1 1 calc(50% - 16px);
}
.modal .form-group textarea {
    min-height: 110px;
}

/* 输入框与按钮美化 */
.modal .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.modal .form-control:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147,197,253,0.35);
}

.modal .form-group label {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    display: inline-block;
}

.btn.btn-success, .btn.btn-primary, .btn.btn-outline-primary {
    border-radius: 8px;
}

.btn.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
}

.btn.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
}

.btn.btn-outline-primary {
    border: 1px solid #93c5fd;
    color: #2563eb;
    background: #fff;
}

@keyframes modal-pop {
    0% { opacity: 0; transform: translateY(-8px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 圆形对号按钮 */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn-icon i { font-size: 14px; }
.btn-icon:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(22,163,74,.45); }
.btn-icon:active { transform: translateY(0); opacity: .9; }

/* 背景虚化更柔和 */
.modal { backdrop-filter: blur(2px); }

/* 白晚班交接表：让日期列宽度等于文本宽度，且不换行/不拆分字符 */
#shift-handover .data-table { table-layout: auto; }
#shift-handover .data-table th:first-child,
#shift-handover .data-table td:first-child {
    width: 1%;
    white-space: nowrap;
    word-break: keep-all;      /* 阻止按字符强制换行 */
    overflow: visible;
    min-width: 0;
}

.page-header .page-actions {
    margin-top: 10px;
}
/* 범위 입력 스타일 */
.range-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-input .form-control {
    flex: 1;
    min-width: 0;
}

.range-separator {
    color: var(--txt-default-color);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.sort-icon {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.sortable:hover .sort-icon {
    opacity: 1;
}

.sortable[data-order="asc"] .sort-icon,
.sortable[data-order="desc"] .sort-icon {
    opacity: 1;
    color: var(--theme-color-primary);
}

/* 퍼센트 표시 스타일 */
.percentage {
    font-weight: 600;
    color: var(--theme-color-primary);
    font-family: 'Courier New', monospace;
}

/* 상태 배지 스타일 */
.status-badge.inactive {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}