/* ============================================
   회원 관리 시스템 - 세련된 CSS 스타일
   ============================================ */

/* ============================================
   기본 설정 & 변수
   ============================================ */
:root {
  /* Colors - Primary */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  /* Colors - Gray Scale */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Colors - Status */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography - Fonts */
  --font-sans: 'Inter', 'Malgun Gothic', '맑은 고딕', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', monospace;
  
  /* Typography - Font Sizes (업무 시스템 최적화 스케일) */
  --text-xs: 11px;      /* 매우 작은 텍스트 - 배지, 보조 정보 */
  --text-sm: 12px;      /* 작은 텍스트 - 테이블, 폼 라벨 */
  --text-base: 13px;    /* 기본 텍스트 - 본문, 일반 콘텐츠 */
  --text-md: 14px;      /* 중간 텍스트 - 탭, 버튼 */
  --text-lg: 15px;      /* 큰 텍스트 - 카드 제목, 강조 */
  --text-xl: 17px;      /* 매우 큰 텍스트 - 섹션 제목 */
  --text-2xl: 19px;     /* 주요 제목 - 페이지 타이틀 */
  --text-3xl: 21px;     /* 대형 제목 - 헤더 */
  
  /* Typography - Font Weights */
  --font-normal: 400;    /* 일반 본문 */
  --font-medium: 500;    /* 강조 본문 */
  --font-semibold: 600;  /* 라벨, 버튼 */
  --font-bold: 700;      /* 제목, 중요 정보 */
  --font-extrabold: 800; /* 특별 강조 */
  
  /* Typography - Line Heights */
  --line-height-tight: 1.2;   /* 버튼, UI 요소 */
  --line-height-snug: 1.3;    /* 제목 */
  --line-height-normal: 1.5;  /* 폼 요소 */
  --line-height-relaxed: 1.6; /* 본문 텍스트 */
  
  /* Typography - Letter Spacing */
  --letter-spacing-tight: -0.02em;  /* 제목 */
  --letter-spacing-normal: 0;       /* 일반 텍스트 */
  --letter-spacing-wide: 0.02em;    /* 작은 텍스트 */
  --letter-spacing-wider: 0.05em;   /* 대문자, 라벨 */
  
  /* Typography - Text Colors */
  --text-primary: #2c3e50;    /* 제목, 중요 정보 (명암비 12.6:1) */
  --text-secondary: #495057;  /* 본문 텍스트 (명암비 8.6:1) */
  --text-tertiary: #6c757d;   /* 보조 정보 (명암비 5.1:1) */
  --text-quaternary: #adb5bd; /* 플레이스홀더 (명암비 2.9:1) */
  --text-link: #3498db;       /* 링크 */
  --text-link-hover: #2980b9; /* 링크 호버 */
  --text-disabled: #dee2e6;   /* 비활성 텍스트 */
}

/* ============================================
   리셋 & 기본 스타일
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background: #ecf0f1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ============================================
   스크롤바 스타일
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* ============================================
   레이아웃 - 메인 컨테이너
   ============================================ */
.app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  overflow: hidden;
}

/* ============================================
   헤더
   ============================================ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 50px;
  background: #2c3e50;
  border-bottom: 3px solid #3498db;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: var(--text-3xl);
  color: #3498db;
}

.app-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: #ffffff;
  line-height: var(--line-height-tight);
  letter-spacing: 0.03em;  /* 자간 원래대로 복구: 0.15em → 0.03em */
  display: flex;
  align-items: baseline;
  gap: 4px;  /* 8px → 4px (50% 감소) */
}

.app-subtitle {
  font-size: 10px;
  font-weight: var(--font-normal);
  color: #fbbf24;  /* 노란색 계열 - 따뜻하고 눈에 띄는 골드 */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 4px;  /* 8px → 4px (50% 감소) */
}

.divider-vertical {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.meta-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  color: #ecf0f1;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
}

.meta-badge-user {
  background: rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(52, 152, 219, 0.4);
  color: #ffffff;
}

.meta-badge-user i {
  color: #3498db;
  font-size: var(--text-sm);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  }
}

/* 퀵 메뉴 */
.quick-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-menu-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  color: #ecf0f1;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.quick-menu-item i {
  font-size: var(--text-base);
}

.quick-menu-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.quick-menu-item.active {
  background: #3498db;
  border-color: #3498db;
  color: #ffffff;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.user-profile:hover {
  background: rgba(30, 41, 59, 1);
  border-color: var(--color-gray-600);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-xl);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: white;
}

.user-role {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

/* 헤더 우측 버튼 그룹 */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 수금대장 모드 버튼 */
/* 회원정보수정 버튼 */
.btn-edit-profile {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 3px;
  color: #27ae60;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit-profile:hover {
  background: rgba(46, 204, 113, 0.25);
  border-color: rgba(46, 204, 113, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(46, 204, 113, 0.3);
}

.btn-edit-profile i {
  font-size: 13px;
}

/* 원격지원 버튼 */
.btn-remote-support {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(52, 152, 219, 0.15);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 3px;
  color: #3498db;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remote-support:hover {
  background: rgba(52, 152, 219, 0.25);
  border-color: rgba(52, 152, 219, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.btn-remote-support i {
  font-size: 13px;
}

/* 로그아웃 버튼 */
.btn-logout {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 3px;
  color: #e74c3c;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(231, 76, 60, 0.25);
  border-color: rgba(231, 76, 60, 0.5);
  color: #ffffff;
}

/* ============================================
   메인 바디 레이아웃 (3분할)
   ============================================ */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 12px;
  padding: 18px;
  background: #f8f9fa;
  height: calc(100vh - 50px);
}

/* 좌측 현재화면영역 (기존 전체 영역) */
.main-content-area {
  flex: 0 0 calc(70% - 8px);
  display: flex;
  gap: 12px;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* 우측 사이드 패널 영역 */
.side-panels {
  flex: 0 0 calc(30% - 4px);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

/* 상담대장영역 (우측 상단) */
.counseling-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border: 2px solid #b0bac5;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  min-height: 0;
}

/* 일정관리영역 (우측 하단) */
.schedule-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border: 2px solid #b0bac5;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  min-height: 0;
}

/* ============================================
   사이드바 (왼쪽 패널) - 현재화면영역 내부
   ============================================ */
.sidebar {
  flex: 0 0 calc(28.57% - 6px);
  display: flex;
  flex-direction: column;
  background: white;
  border: 2px solid #b0bac5;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  overflow: hidden;
}



/* 회원검색 헤더 */
.search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-bottom: 3px solid #3498db;
  flex-shrink: 0;
}

.search-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: #ffffff;
  margin: 0;
  line-height: var(--line-height-snug);
  letter-spacing: 0.03em;
}

.search-section-title i {
  font-size: 14px;
  color: #3498db;
}

/* 검색 섹션 */
.search-section {
  padding: 12px 10px;
  background: white;
  border-bottom: 2px solid #b0bac5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  overflow: hidden;
}

.badge-count {
  padding: 3px 8px;
  background: #3498db;
  border: none;
  border-radius: 3px;
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.search-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.search-row {
  display: flex;
  gap: 4px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.search-label {
  flex: 0 0 40px;
  width: 40px;
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  padding: 5px 0;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-box {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 44px);
  padding: 4px 6px;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 3px;
  font-size: 11px;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  line-height: 1.4;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-box-full {
  width: 100%;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.select-box:hover {
  border-color: var(--color-primary-400);
}

.select-box:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.input-search {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 44px - 74px);
  padding: 4px 6px;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 3px;
  font-size: 11px;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: var(--font-sans);
  line-height: 1.4;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-search-full {
  width: 100%;
}

.input-search::placeholder {
  color: var(--color-gray-400);
}

.input-search:hover {
  border-color: var(--color-primary-400);
}

.input-search:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.btn-primary {
  flex: 0 0 auto;
  min-width: 69px;
  max-width: 80.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.45px;
  padding: 4.6px 9.2px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border: none;
  border-radius: 3.45px;
  color: white;
  font-size: 12.65px;
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
  box-shadow: 0 3px 6px rgba(52, 152, 219, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: #21618c;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(52, 152, 219, 0.2);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  color: var(--color-gray-600);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-icon:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
  color: var(--color-gray-900);
  transform: translateY(-1px);
}

/* 회원 목록 */
.member-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #f8f9fa;
  border-bottom: 2px solid #b0bac5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.member-card:hover {
  border-color: #3498db;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.15);
}

.member-card.active {
  border-color: #3498db;
  background: #ebf5fb;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.member-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.member-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-gray-200);
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.member-avatar-primary {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-400));
  color: white;
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.member-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.member-name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  flex: 1;
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

.member-detail {
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: var(--font-medium);
  line-height: var(--line-height-normal);
}

.member-detail::before {
  content: '•';
  margin-right: 6px;
  color: #95a5a6;
  font-weight: bold;
}

.member-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.member-footer .member-detail {
  margin-bottom: 0;
}

.member-business {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: #e8f4f8;
  border: 1px solid #3498db;
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: #2980b9;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: var(--letter-spacing-wide);
}

.status-badge.status-active {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.status-badge.status-pending {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.status-badge.status-terminated {
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-300);
}

.member-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
}

.info-item i {
  color: var(--color-gray-400);
  font-size: var(--text-md);
}

.info-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-gray-500);
}

/* ============================================
   콘텐츠 패널 (오른쪽)
   ============================================ */
.content-panel {
  flex: 0 0 calc(71.43% - 6px);
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
  border: 2px solid #b0bac5;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* 회원정보조회 헤더 */
.content-panel-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-bottom: 3px solid #3498db;
  flex-shrink: 0;
}

.content-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: #ffffff;
  margin: 0;
  line-height: var(--line-height-snug);
  letter-spacing: 0.03em;
}

.content-panel-title i {
  font-size: 14px;
  color: #3498db;
}

/* 회원명 표시 (노란색, 오른쪽 끝) */
.member-name-display {
  margin-left: auto;
  padding: 4px 12px;
  background: rgba(241, 196, 15, 0.2);
  border: 1px solid rgba(241, 196, 15, 0.4);
  border-radius: 4px;
  color: #f1c40f;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================
   우측 패널 영역 스타일
   ============================================ */
/* 상담대장영역 & 일정관리영역 공통 헤더 */
.counseling-area .panel-header,
.schedule-area .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #34495e;
  border-bottom: 2px solid #3498db;
  flex-shrink: 0;
  margin-bottom: 0;
}

.counseling-area .panel-title,
.schedule-area .panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: #ffffff;
  margin: 0;
}

.counseling-area .panel-title i,
.schedule-area .panel-title i {
  font-size: 12px;
  color: #3498db;
}

/* 일정관리 컨트롤 */
.schedule-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group {
  display: flex;
  align-items: center;
}

.schedule-select {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='white' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 24px;
  min-width: 90px;
}

.schedule-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.schedule-select:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #3498db;
}

.schedule-select option {
  background: #34495e;
  color: white;
  padding: 4px;
}

/* 상담등록 버튼 */
.btn-add-counsel {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-add-counsel:hover {
  background: #2980b9;
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
  transform: translateY(-1px);
}

.btn-add-counsel:active {
  transform: translateY(0);
}

.btn-add-counsel i {
  font-size: 10px;
}

/* 패널 콘텐츠 영역 */
.counseling-area .panel-content,
.schedule-area .panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f8f9fa;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 상담대장 필터 영역 */
.counsel-filter-area {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 8px;
  flex-shrink: 0;
}

.counsel-filter-area .filter-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.counsel-filter-area .filter-select {
  flex: 1;
  min-width: 80px;
  padding: 5px 8px;
  font-size: 11px;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.2s;
}

.counsel-filter-area .filter-select:hover {
  border-color: #3498db;
}

.counsel-filter-area .filter-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.btn-filter-search {
  padding: 5px 12px;
  font-size: 11px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-filter-search:hover {
  background: #2980b9;
}

.btn-filter-search i {
  font-size: 10px;
}

.btn-filter-reset {
  padding: 5px 12px;
  font-size: 11px;
  background: #95a5a6;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-filter-reset:hover {
  background: #7f8c8d;
}

.btn-filter-reset i {
  font-size: 10px;
}

/* 상담대장 테이블 컨테이너 */
.counsel-table-container {
  flex: 1;
  overflow-y: auto;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  min-height: 0;
}

/* 상담대장 테이블 */
.counsel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.counsel-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #5a6c7d;
}

.counsel-table thead th {
  padding: 7px 5px;
  text-align: center;
  font-weight: var(--font-semibold);
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid #3498db;
  white-space: nowrap;
  font-size: var(--text-xs);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
}

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

.counsel-table tbody tr {
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
  cursor: pointer;
}

.counsel-table tbody tr:hover {
  background-color: #f0f8ff;
}

.counsel-table tbody td {
  padding: 7px 5px;
  text-align: center;
  color: var(--text-primary);
  border-right: 1px solid #f0f0f0;
  font-size: var(--text-xs);
  font-weight: var(--font-normal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: var(--line-height-normal);
}

.counsel-table tbody td:last-child {
  border-right: none;
}

/* 상담 구분 배지 */
.counsel-type-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  line-height: 1;
  letter-spacing: var(--letter-spacing-wide);
}

/* 상담 상태 배지 */
.counsel-status-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-wide);
}

.counsel-status-badge.status-received {
  background: #e8f5e9;
  color: #27ae60;
}

.counsel-status-badge.status-processing {
  background: #fff3cd;
  color: #f39c12;
}

.counsel-status-badge.status-completed {
  background: #e3f2fd;
  color: #3498db;
}

.counsel-status-badge.status-hold {
  background: #f5f5f5;
  color: #95a5a6;
}

/* 상담대장 페이지네이션 */
.counsel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  flex-shrink: 0;
}

.counsel-pagination .btn-page {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  color: #2c3e50;
}

.counsel-pagination .btn-page:hover {
  background: #3498db;
  border-color: #3498db;
  color: white;
}

.counsel-pagination .btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.counsel-pagination .btn-page i {
  font-size: 8px;
}

.counsel-pagination .page-info {
  font-size: var(--text-xs);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
  min-width: 35px;
  text-align: center;
  line-height: var(--line-height-tight);
}

/* 상담 데이터 없음 메시지 */
.counsel-no-data {
  text-align: center;
  padding: 60px 20px;
  color: #95a5a6;
}

.counsel-no-data i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.counsel-no-data p {
  font-size: 11px;
  margin: 0;
}

/* 탭 컨테이너 */
.tab-container {
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  border-bottom: 2px solid #dee2e6;
  padding: 8px 16px 0 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.tab-nav {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  font-family: var(--font-sans);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
}

.tab-item i {
  font-size: 13px;
  transition: all 0.25s ease;
  color: #7f8c8d;
}

.tab-item:hover {
  color: #2980b9;
  background: rgba(52, 152, 219, 0.05);
  border-bottom-color: #2980b9;
  transform: translateY(-1px);
}

.tab-item:hover i {
  color: #2980b9;
  transform: scale(1.1);
}

.tab-item.active {
  background: linear-gradient(to bottom, rgba(52, 152, 219, 0.08), rgba(52, 152, 219, 0.12));
  color: #1a252f;
  border-bottom-color: #2980b9;
  font-weight: 700;
  box-shadow: inset 0 1px 3px rgba(52, 152, 219, 0.1);
}

.tab-item.active i {
  color: #2980b9;
  transform: scale(1.15);
}

/* 탭 콘텐츠 래퍼 */
.tab-content-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.tab-content-panel {
  display: none;
  padding: 16px;
  animation: fadeIn 0.2s;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

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

/* 기본정보 탭만 특별 레이아웃 (푸터 고정을 위해) */
#tab-basic {
  display: none;
  padding: 0;
  position: relative;
  height: 100%;
  overflow: hidden;
}

#tab-basic.active {
  display: flex;
  flex-direction: column;
}

#tab-basic .basic-info-image-section {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  margin: 0;
  width: 100%;
}

#tab-basic .basic-info-footer {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
}

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

/* 패널 헤더 */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ecf0f1;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.title-accent {
  width: 5px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-primary-600), var(--color-primary-400));
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.panel-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
}

/* 상태 스위처 */
.status-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
}

.status-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-gray-600);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
}

.status-toggle:hover {
  background: white;
  color: var(--color-gray-900);
  box-shadow: var(--shadow-sm);
}

.status-toggle.active {
  background: white;
  box-shadow: var(--shadow-md);
}

.status-toggle.active:nth-child(1) {
  color: var(--color-success);
}

.status-toggle.active:nth-child(2) {
  color: var(--color-warning);
}

.status-toggle.active:nth-child(3) {
  color: var(--color-gray-600);
}

/* ============================================
   폼 테이블
   ============================================ */
.form-table {
  border-top: 2px solid var(--color-gray-800);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: flex;
  border-bottom: 1px solid var(--color-gray-200);
  transition: background var(--transition-fast);
}

.form-row:last-child {
  border-bottom: none;
}

.form-row:hover {
  background: var(--color-gray-50);
}

.form-label {
  width: 120px;
  padding: 8px 10px;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  flex-shrink: 0;
  gap: 4px;
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
}

.label-required {
  color: var(--color-danger);
  font-size: 14px;
}

.form-value {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.form-value-wide {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.form-value-column {
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-sm);
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #6c757d;
  font-weight: 500;
}

.form-hint i {
  color: var(--color-primary-400);
}

/* 폼 입력 필드 */
.input-field,
.select-field,
.textarea-field {
  padding: 6px 10px;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: var(--font-sans);
  line-height: var(--line-height-normal);
}

.input-field:hover,
.select-field:hover,
.textarea-field:hover {
  border-color: #3498db;
}

.input-field:focus,
.select-field:focus,
.textarea-field:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.input-field {
  width: 100%;
}

/* 기본정보 탭 특정 필드 크기 조정 */
#tab-basic #joinDate,
#tab-basic #memberName,
#tab-basic #mobile,
#tab-basic #phone {
  width: 40%;
  min-width: 200px;
}

.input-small {
  width: 120px;
  text-align: center;
  font-weight: 600;
}

.input-medium {
  width: 280px;
}

.input-large {
  width: 420px;
}

.select-field {
  width: 200px;
  cursor: pointer;
}

.textarea-field {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}

.address-input-group {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.text-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-gray-700);
  letter-spacing: 0.02em;
}

/* Chip / Badge */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.chip-success {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.chip-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.chip-danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

/* 버튼 */
.btn-secondary {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-gray-700);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-secondary:hover {
  background: var(--color-gray-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 패널 액션 버튼 */
.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-gray-200);
}

.btn-save {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--color-gray-800), var(--color-gray-900));
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-save:active {
  transform: translateY(0);
}

.btn-cancel {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: white;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  color: var(--color-gray-700);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
}

.btn-cancel:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-400);
  transform: translateY(-1px);
}

/* ============================================
   Empty State (준비 중 화면)
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: var(--spacing-2xl);
}

.empty-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-50));
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.empty-icon i {
  font-size: 56px;
  color: var(--color-gray-300);
}

.empty-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-sm);
}

.empty-description {
  font-size: 15px;
  color: var(--color-gray-500);
  font-weight: 500;
}

/* ============================================
   알림 (Notification)
   ============================================ */
.notification {
  animation: slideInDown 0.3s ease-out, slideOutUp 0.3s ease-in 2.7s;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ============================================
   수납원장 스타일
   ============================================ */
.payment-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.btn-payment-gold {
  padding: 6px 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-payment-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 통계 섹션 */
.payment-summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 12px 20px;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  align-items: center;
}

.summary-label {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  line-height: var(--line-height-tight);
}

.summary-value-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.summary-value {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  font-family: 'Courier New', monospace;
  line-height: 1;
}

.summary-value.summary-highlight {
  color: #dc2626;
}

.summary-unit {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

.summary-divider {
  width: 2px;
  height: 29px;
  background: linear-gradient(to bottom, transparent 0%, #cbd5e1 50%, transparent 100%);
  border-radius: 1px;
}

/* 월별현황 버튼 */
.btn-monthly-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
  line-height: 1.2;
}

.btn-monthly-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-monthly-status i {
  font-size: 13px;
}

/* 필터 섹션 */
.payment-filter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
}

.filter-left,
.filter-center,
.filter-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
}

.select-field-sm {
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
}

.select-field-sm:hover {
  border-color: var(--color-primary-400);
}

.select-field-sm:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.radio-label-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 10px;
  font-weight: 500;
  color: var(--color-gray-700);
  line-height: 1.3;
}

.radio-label-inline:hover {
  border-color: var(--color-primary-400);
  background: var(--color-gray-50);
}

.radio-label-inline input[type="radio"] {
  margin: 0;
  cursor: pointer;
  width: 12px;
  height: 12px;
}

.radio-label-inline input[type="radio"]:checked ~ span {
  color: var(--color-primary-600);
  font-weight: 600;
}

.radio-label-inline:has(input[type="radio"]:checked) {
  border-color: var(--color-primary-500);
  background: var(--color-primary-50);
}

.btn-filter-sm {
  padding: 5px 11px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  line-height: 1.3;
}

.btn-primary-sm {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-500));
  color: white;
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-sm {
  background: white;
  border: 1px solid var(--color-gray-300);
  color: var(--color-gray-700);
}

.btn-secondary-sm:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

.btn-info-sm {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
}

.btn-info-sm:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #138496, #117a8b);
}

/* 수납원장 테이블 */
.payment-table-container {
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.payment-table thead {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.payment-table thead th {
  padding: 8px 10px;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: white;
  border: none;
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-wide);
}

.payment-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: background var(--transition-fast);
}

.payment-table tbody tr:hover {
  background: var(--color-gray-50);
}

.payment-table tbody td {
  padding: 6px 10px;
  font-size: var(--text-xs);
  color: var(--text-primary);
  font-weight: var(--font-normal);
  line-height: var(--line-height-normal);
}

.payment-table .text-right {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ============================================
   하단 푸터
   ============================================ */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-top: 2px solid #3498db;
  z-index: 1000;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: 100%;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-copyright,
.footer-support,
.footer-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-support {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f39c12;
  font-weight: 600;
}

.footer-support i {
  font-size: 14px;
  color: #f39c12;
}

/* 푸터로 인한 컨텐츠 하단 여백 조정 */
.app-body {
  height: calc(100vh - 90px); /* 헤더 50px + 푸터 40px */
  margin-bottom: 0;
  padding-bottom: 0;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .app-footer {
    height: 36px;
  }
  
  .footer-content {
    padding: 0 12px;
  }
  
  .footer-copyright,
  .footer-support,
  .footer-info {
    font-size: 10px;
  }
  
  .footer-support i {
    font-size: 12px;
  }
  
  .app-body {
    height: calc(100vh - 86px); /* 헤더 50px + 푸터 36px */
  }
}


.payment-table .amount-paid {
  color: var(--color-primary-600);
  font-weight: 700;
}

.payment-table .amount-billed {
  color: var(--color-gray-700);
  font-weight: 700;
}

.badge-payment {
  display: inline-flex;
  padding: 4px 10px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-wide);
}

.badge-billing {
  display: inline-flex;
  padding: 4px 10px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-wide);
}

.payment-table .date-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  font-size: 12px;
}

.payment-table .date-link:hover {
  text-decoration: underline;
  color: #2563eb;
}

.payment-table .link-blue {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.payment-table .link-blue:hover {
  text-decoration: underline;
  color: #2563eb;
}

/* 비고 셀 스타일 */
.payment-table tbody td.remarks-cell {
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-table .text-center {
  text-align: center;
}

.btn-table-action {
  padding: 4px 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.btn-edit {
  background: var(--color-gray-700);
  color: white;
  margin-right: 4px;
}

.btn-edit:hover {
  background: var(--color-gray-800);
  transform: translateY(-1px);
}

.btn-cancel {
  background: var(--color-gray-300);
  color: var(--color-gray-700);
}

.btn-cancel:hover {
  background: var(--color-gray-400);
}

/* 페이지네이션 */
.pagination-container {
  display: flex;
  justify-content: center;
  padding: var(--spacing-lg);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.pagination-info i {
  color: var(--color-primary-500);
  font-size: 14px;
}

.pagination-info strong {
  color: #1e293b;
  font-weight: 700;
}

/* ============================================
   요약정보 탭 스타일
   ============================================ */

/* 요약정보 컨테이너 */
.summary-sections-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
}

/* 원장선택 영역 */
.ledger-selector-area {
  display: block !important;
  visibility: visible !important;
  margin-bottom: 16px;
  background: white !important;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative !important;
  z-index: 10 !important;
}

.ledger-selector-container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative !important;
  z-index: 10 !important;
  width: 100%;
}

.ledger-left-group {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex: 1;
  position: relative !important;
  z-index: 10 !important;
}

.ledger-label {
  display: inline-block !important;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
  min-width: 70px;
  font-family: 'Inter', sans-serif;
}

.ledger-select {
  display: inline-block !important;
  visibility: visible !important;
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  background: white !important;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
  font-family: 'Inter', sans-serif;
  position: relative !important;
  z-index: 10 !important;
}

.ledger-select:hover {
  border-color: #3498db;
}

.ledger-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ledger-notice {
  display: inline-block !important;
  visibility: visible !important;
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
  margin-left: 8px;
  font-family: 'Inter', sans-serif;
}

.btn-ledger-summary {
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
  border: none;
  border-radius: 4px;
  color: white !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
  font-family: 'Inter', sans-serif;
  position: relative !important;
  z-index: 10 !important;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-ledger-summary:hover {
  background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%) !important;
  box-shadow: 0 3px 6px rgba(52, 152, 219, 0.3);
  transform: translateY(-1px);
}

.btn-ledger-summary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(52, 152, 219, 0.2);
}

.btn-ledger-summary i {
  font-size: 12px;
  color: white !important;
}

/* 정보 섹션 */
.info-section {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 섹션 헤더 */
.info-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  cursor: pointer;
  transition: background 0.2s;
}

.info-section-header:hover {
  background: #e9ecef;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bullet {
  color: #000;
  font-size: var(--text-xs);
  line-height: 1;
}

.section-title-text {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-wide);
}

.arrow-icon {
  font-size: var(--text-base);
  color: #64748b;
  transition: transform 0.3s;
}

.info-section.collapsed .arrow-icon {
  transform: rotate(-90deg);
}

/* 섹션 콘텐츠 */
.info-section-content {
  padding: 0;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.info-section.collapsed .info-section-content {
  max-height: 0;
}

/* 정보 테이블 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.info-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 10px 16px;
  vertical-align: middle;
}

.label-cell {
  background: #f8f9fa;
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  width: 25%;
  font-size: var(--text-sm);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
}

.value-cell {
  background: white;
  color: var(--text-primary);
  width: 25%;
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  line-height: var(--line-height-normal);
}

/* 한 줄 테이블 레이아웃 (청구납입 요약) */
.info-table-single-row .label-cell {
  width: 16.66%;
}

.info-table-single-row .value-cell {
  width: 16.66%;
}

/* 히스토리 테이블 (thead 있는 테이블) */
.history-table thead th {
  background: #f8f9fa;
  padding: 10px 14px;
  text-align: left;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  border-bottom: 1px solid #dee2e6;
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
}

.history-table tbody td {
  padding: 9px 18px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--font-normal);
  line-height: var(--line-height-normal);
}

/* 상태 배지 */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: var(--text-base);
  font-weight: 700;
}

.status-normal {
  background: #dbeafe;
  color: #1e40af;
}

/* 텍스트 색상 */
.text-blue {
  color: #3b82f6;
  font-weight: 600;
}

.text-red {
  color: #dc2626;
}

.text-right {
  text-align: right;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

/* 빈 메시지 */
.empty-message {
  padding: 40px 20px;
  text-align: center;
}

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

/* ============================================
   기존 요약정보 카드 스타일 (호환성 유지)
   ============================================ */
.summary-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.summary-card {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.summary-card-wide {
  grid-column: 1 / -1;
}

.summary-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(to bottom, var(--color-gray-50), white);
  border-bottom: 2px solid var(--color-gray-200);
}

.summary-card-header i {
  font-size: 18px;
  color: var(--color-primary-600);
}

.summary-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gray-900);
}

.summary-card-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-gray-100);
}

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

.summary-row.full-width {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.summary-row .summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-600);
}

.summary-row .summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-900);
}

.summary-row .amount-large {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.text-primary {
  color: var(--color-primary-600) !important;
}

.text-danger {
  color: var(--color-danger) !important;
}

/* 활동 타임라인 */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.activity-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.activity-item:hover {
  background: var(--color-gray-100);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.activity-icon-info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gray-900);
}

.activity-description {
  font-size: 13px;
  color: var(--color-gray-600);
}

.activity-date {
  font-size: 12px;
  color: var(--color-gray-500);
  font-weight: 500;
}

/* 메모 콘텐츠 */
.memo-content {
  padding: var(--spacing-md);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-gray-800);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ============================================
   자동청구 탭 스타일
   ============================================ */
.auto-billing-tip {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}

.auto-billing-tip i {
  font-size: 16px;
  color: #f59e0b;
}

.auto-billing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gray-100);
}

.header-filters {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.select-field-md {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  min-width: 120px;
}

.select-field-md:hover {
  border-color: var(--color-primary-400);
}

.select-field-md:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.btn-action-primary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-500));
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-action-success {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--color-warning), #d97706);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-action-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 통계 박스 */
.billing-stats {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: 16px;
}

.stat-box {
  flex: 1;
  padding: 12px 16px;
  background: linear-gradient(to bottom, var(--color-gray-50), white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-box .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: 6px;
}

.stat-box .stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
}

/* 청구 폼 컨테이너 */
.billing-form-container {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.billing-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #3498db;
}

.billing-form-header h3 {
  font-size: 12px;
  font-weight: 600;
  color: #2c3e50;
}

.billing-date {
  font-size: 11px;
  color: #6c757d;
  font-weight: 500;
}

/* 청구 폼 그리드 */
.billing-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

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

.form-label-auto {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-700);
}

.label-bullet {
  color: var(--color-primary-600);
  font-weight: 700;
}

.select-field-auto,
.input-field-auto {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-900);
  transition: all var(--transition-base);
  font-family: var(--font-sans);
}

.select-field-auto {
  cursor: pointer;
}

.select-field-auto:hover,
.input-field-auto:hover {
  border-color: var(--color-primary-400);
}

.select-field-auto:focus,
.input-field-auto:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.input-field-auto[readonly] {
  background: var(--color-gray-50);
  cursor: not-allowed;
}

.input-field-auto.text-right {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* 청구 폼 액션 */
.billing-form-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-billing-submit {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--color-gray-800), var(--color-gray-900));
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
}

.btn-billing-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 안내 사항 */
.billing-notice {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.notice-list li {
  font-size: 12px;
  color: var(--color-gray-600);
  line-height: 1.6;
  padding-left: var(--spacing-md);
  position: relative;
}

.notice-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary-600);
  font-weight: 700;
}

/* ============================================
   예약청구 탭 스타일
   ============================================ */
.reservation-notice-box {
  background: linear-gradient(to bottom, #fff8f0, #fff);
  border: 2px solid #ffa726;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.reservation-notice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 10px;
}

.reservation-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reservation-notice-list li {
  font-size: 12px;
  color: var(--color-gray-700);
  line-height: 1.5;
}

/* 예약청구 헤더 */
.reservation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
}

.reservation-stats {
  display: flex;
  gap: 64px;
}

.reservation-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reservation-stat-item .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-600);
}

.reservation-stat-item .stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gray-900);
}

.btn-reservation-add {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 5px 11px;
  background: linear-gradient(135deg, var(--color-warning), #d97706);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-reservation-add:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 예약청구 테이블 */
.reservation-table-container {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}

.reservation-table {
  width: 100%;
  border-collapse: collapse;
}

.reservation-table thead {
  background: linear-gradient(to bottom, var(--color-gray-100), var(--color-gray-50));
}

.reservation-table thead th {
  padding: var(--spacing-md);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gray-700);
  border-bottom: 2px solid var(--color-gray-300);
}

.reservation-table tbody td {
  padding: var(--spacing-md);
  text-align: center;
  font-size: 13px;
  color: var(--color-gray-900);
  border-bottom: 1px solid var(--color-gray-200);
}

.reservation-table tbody .empty-message {
  padding: var(--spacing-2xl);
  text-align: center;
  color: var(--color-gray-500);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   결제정보 탭 스타일
   ============================================ */
.payment-info-section {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.payment-info-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-gray-200);
}

.payment-info-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: var(--spacing-md);
  padding: 3px 0;
}

.payment-info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  background: var(--color-gray-50);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
}

.select-field-payment {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  max-width: 300px;
}

.select-field-payment:hover {
  border-color: var(--color-primary-400);
}

.select-field-payment:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.select-field-payment-small {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  width: 60px;
}

.input-field-payment {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-900);
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  max-width: 300px;
}

.input-field-payment:hover {
  border-color: var(--color-primary-400);
}

.input-field-payment:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.input-field-payment[readonly] {
  background: var(--color-gray-50);
  cursor: not-allowed;
}

.payment-info-hint {
  font-size: 11px;
  color: var(--color-gray-500);
  margin-left: var(--spacing-md);
}

.btn-verify {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-gray-700);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-left: var(--spacing-sm);
  font-family: var(--font-sans);
}

.btn-verify:hover {
  background: var(--color-gray-800);
  transform: translateY(-1px);
}

.payment-notice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: var(--spacing-md);
  grid-column: 2;
}

.payment-notice-text p {
  font-size: 11px;
  color: var(--color-gray-600);
  line-height: 1.4;
}

.payment-info-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--spacing-lg);
}

.btn-payment-submit {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--color-gray-800), var(--color-gray-900));
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
}

.btn-payment-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Payment Info Inline Layout */
.payment-info-row-inline {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.payment-info-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: nowrap;
}

.payment-info-hint-inline {
  font-size: 11px;
  color: var(--color-gray-500);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: var(--spacing-sm);
}

/* ============================================
   기본정보 탭 - 계산서/영수증 설정 스타일
   ============================================ */

.invoice-settings-section {
  margin-top: 16px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section-title-basic {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-gray-200);
  font-family: var(--font-sans);
}

.section-title-basic i {
  color: var(--color-primary-600);
  font-size: 18px;
}

/* 기본정보 이미지 섹션 */
.basic-info-image-section {
  width: 100%;
  padding: 0;
  margin: 0;
}

.basic-info-image-section .section-title-basic {
  padding-left: 16px;
  padding-right: 16px;
}

.basic-info-image-container {
  background: white;
  border: none;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0;
  overflow: hidden;
  width: 100%;
}

.basic-info-detail-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
  object-fit: contain;
}

.basic-info-full-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

/* 기본정보 탭 푸터 스타일 */
.basic-info-footer {
  background: #9ca3af;
  border-top: 1px solid #6b7280;
  padding: 8px 16px;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 50px;
}

.basic-info-footer-content {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 9.35px;
  padding: 0;
}

.footer-left-section {
  display: none;
}

.footer-right-section {
  display: flex;
  gap: 6.8px;
  align-items: flex-start;
}

.btn-footer-edit,
.btn-footer-close {
  display: flex;
  align-items: center;
  gap: 4.59px;
  padding: 5.36px 10.71px;
  border: none;
  border-radius: 3.83px;
  font-size: 9.9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-footer-edit {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-footer-edit:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-footer-close {
  background: #6b7280;
  color: #ffffff;
  border: 1px solid #4b5563;
}

.btn-footer-close:hover {
  background: #4b5563;
  border-color: #374151;
  transform: translateY(-2px);
}

.btn-footer-edit i,
.btn-footer-close i {
  font-size: 9.9px;
}

/* 반응형: 작은 화면에서 푸터 레이아웃 조정 */
@media (max-width: 768px) {
  .basic-info-footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-right-section {
    width: 100%;
    justify-content: center;
  }
}

.payment-ledger-image-section {
  width: 100%;
  overflow: hidden;
}

.payment-ledger-full-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.auto-billing-image-section {
  width: 100%;
  overflow: hidden;
}

.auto-billing-full-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.payment-info-full-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.reservation-full-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}
}

.basic-info-detail-image:hover {
  transform: scale(1.005);
}

.form-label-basic {
  min-width: 140px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  background: var(--color-gray-50);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
}

.radio-label-inline-basic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-right: 8px;
  white-space: nowrap;
}

.radio-label-inline-basic span {
  white-space: nowrap;
  display: inline-block;
}

.radio-label-inline-basic:hover {
  border-color: var(--color-primary-400);
  background: var(--color-gray-50);
}

.radio-label-inline-basic input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.radio-label-inline-basic:has(input[type="radio"]:checked) {
  background: var(--color-primary-50);
  border-color: var(--color-primary-500);
  color: var(--color-primary-700);
  font-weight: 700;
}

.select-field-basic {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  max-width: 200px;
}

.select-field-basic:hover {
  border-color: var(--color-primary-400);
}

.select-field-basic:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.input-field-basic {
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-900);
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  width: 100%;
  max-width: 300px;
}

.input-field-basic:hover {
  border-color: var(--color-primary-400);
}

.input-field-basic:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.btn-verify-basic {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-gray-700);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-left: var(--spacing-sm);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-verify-basic:hover {
  background: var(--color-gray-800);
  transform: translateY(-1px);
}

.form-hint-basic {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-gray-500);
  margin-top: 6px;
  line-height: 1.4;
}

.form-hint-basic i {
  color: var(--color-primary-500);
  font-size: 12px;
}






/* ============================================
   수납원장 스타일
   ============================================ */

/* 상단 액션 버튼 그룹 */
.payment-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-payment-action {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  color: var(--color-gray-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-payment-action:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-payment-action i {
  color: var(--color-primary-500);
}

.btn-payment-register {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-warning), #d97706);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
}

.btn-payment-register:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 요약 섹션 */
.payment-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  background: linear-gradient(to bottom, var(--color-gray-50), white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-700);
  white-space: nowrap;
  line-height: 1.2;
}

.summary-value-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.summary-input {
  width: 100px;
  padding: 6px 10px;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gray-900);
  text-align: right;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.summary-input.summary-highlight {
  color: var(--color-danger);
  border-color: var(--color-danger);
  background: var(--color-danger-light);
}

.summary-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-600);
  line-height: 1.2;
}

/* 필터 라디오 버튼 */
.payment-filter {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.radio-label:hover {
  background: white;
  color: var(--color-gray-900);
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-label input[type="radio"]:checked + i {
  color: var(--color-primary-600);
}

.radio-label:has(input:checked) {
  background: white;
  color: var(--color-primary-600);
  box-shadow: var(--shadow-sm);
}

.radio-label i {
  font-size: 13px;
  transition: color var(--transition-base);
}

/* 수납원장 테이블 */
.payment-table-container {
  margin-bottom: var(--spacing-xl);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.payment-table thead {
  background: linear-gradient(to bottom, var(--color-gray-100), var(--color-gray-50));
  border-bottom: 2px solid var(--color-gray-300);
}

.payment-table thead th {
  padding: var(--spacing-md);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gray-700);
  white-space: nowrap;
  border-right: 1px solid var(--color-gray-200);
}

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

.payment-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: background var(--transition-fast);
}

.payment-table tbody tr:hover {
  background: var(--color-gray-50);
}

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

.payment-table tbody td {
  padding: var(--spacing-md);
  font-size: 12px;
  color: var(--color-gray-800);
  border-right: 1px solid var(--color-gray-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.payment-table tbody td:last-child {
  border-right: none;
}

.payment-table .text-right {
  text-align: right !important;
  font-family: var(--font-mono);
  font-weight: 600;
  padding-right: 12px;
}

.payment-table .amount-billed {
  color: var(--color-primary-600);
  text-align: right !important;
}

.payment-table .amount-paid {
  color: var(--color-success);
  text-align: right !important;
}

/* 테이블 배지 */
.badge-payment {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--color-success-light);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-full);
  color: var(--color-success);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-billing {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--color-info-light);
  border: 1px solid var(--color-info);
  border-radius: var(--radius-full);
  color: var(--color-info);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* 테이블 액션 버튼 (20% 축소) */
.btn-table-action {
  padding: 3px 8px !important;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-size: 10px !important;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  margin-right: 3px;
  min-width: 42px !important;
  width: 42px !important;
  text-align: center;
  box-sizing: border-box;
  display: inline-block;
}

.btn-table-action:last-child {
  margin-right: 0;
}

.btn-table-action.btn-edit {
  background: white !important;
  color: var(--color-gray-700) !important;
  min-width: 42px !important;
  width: 42px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
}

.btn-table-action.btn-edit:hover {
  background: var(--color-gray-700);
  color: white;
  border-color: var(--color-gray-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-table-action.btn-cancel {
  background: white !important;
  color: var(--color-danger) !important;
  border-color: var(--color-danger) !important;
  min-width: 42px !important;
  width: 42px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
}

.btn-table-action.btn-cancel:hover {
  background: var(--color-danger);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-table-action.btn-delete {
  background: white;
  color: #dc2626;
  border-color: #e5e7eb;
}

.btn-table-action.btn-delete:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* 작업 컬럼 버튼 가로 배치 */
.payment-table tbody td.action-column {
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 8px 6px;
}

/* 계산서/영수증 컬럼 너비 최소화 */
.payment-table th.certificate-column,
.payment-table td.certificate-column {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  padding: 8px 4px;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}

/* 작업 컬럼 너비 최소화 - 버튼 크기에 맞춤 */
.payment-table th.action-column-header {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  padding: 8px 4px;
  text-align: center;
}

.payment-table tbody td.action-column {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  padding: 4px 2px;
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.action-column .btn-table-action {
  flex-shrink: 0;
  margin-right: 0 !important;
  min-width: 42px !important;
  width: 42px !important;
}

/* 페이지네이션 */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--color-gray-600);
  box-shadow: var(--shadow-sm);
}

.pagination-info i {
  color: var(--color-primary-500);
}

.pagination-info strong {
  color: var(--color-primary-600);
  font-weight: 700;
}
