/* RELEASE_VERSION: v0.8.288 (2026-01-28) */
/*
 * ✅ v0.8.288 주요 수정사항:
 * - 사용자 휴가관리 페이지를 관리자와 동일한 1열 스택으로 재구성
 * - Row1~Row4 그리드 제거, 위→아래 자연스러운 흐름
 * - 카드 내부만 2열 그리드 (.status-grid, .form-grid)
 * - 반응형: 768px 이하 모든 내부 그리드 1열
 *
 * ✅ v0.8.287 주요 수정사항:
 * - DNIC-WORKS 통합 컬러 시스템 도입
 * - 브랜드 그린 (#acc731) 메인 포인트 컬러 적용
 * - 상태 컬러 통일: 반려/주의 (#db6736), 오류/취소 (#e91e44)
 * - 리스트 테이블 공통 스타일 추가 (.dnic-table, .list-table)
 * - 섹션 타이틀 박스형 (#667eea 배경 + 흰색 텍스트)
 * - 열 교차 텍스트 컬러 (홀수: 흰색, 짝수: 옅은 그레이)
 * - 다크 헤더 배경 (#1f2937) 통일
 * - 공통 컴포넌트: 상태 배지, 버튼, 페이지네이션, 필터바
 * - 모바일 반응형 최적화
 *
 * ✅ v0.8.53 주요 수정사항:
 * - 토글 버튼 위치 최적화: right: 5px (우측 라인에 딱 붙임)
 * - 최상위 레이어 고정: z-index: 1003 (메뉴 아이콘 간섭 방지)
 * - 접힌 상태 위치 고정: 중앙 정렬 영향 받지 않도록 강제 고정
 *
 * ✅ v0.8.52 주요 수정사항:
 * - 사이드바 내부 오버플로우 제거: overflow-x: hidden, width: 100%
 * - 토글 버튼 위치 고정: right: 15px, 잘리지 않도록 조정
 * - iOS 호환성: cursor: pointer, touch-action: manipulation
 * - 사이드바 내부 요소 100% 맞춤: box-sizing: border-box 강제
 *
 * ✅ v0.8.50 주요 수정사항:
 * - 연차 관리 테이블 레이아웃 최적화: 잔여연차 12%, 잔여적립 12%, 관리 14%
 * - 알림 뱃지 깜빡임 애니메이션 추가: notification-pulse (2s, ease-in-out)
 * - 저장 버튼 최소 너비 확장: 80px → 안정적인 클릭 영역
 * - 데이터 값 좌측 정렬: 숫자 가독성 향상
 */

/* ===== CSS 변수 ===== */
:root {
  /* 레이아웃 */
  --header-height: 64px;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;
  --z-header: 1001;
  --z-sidebar: 1000;
  --z-backdrop: 999;
  --z-auth-overlay: 9999;  /* ⭐ 인증 로딩 오버레이 */
  --transition-speed: 0.3s;
  --breakpoint-mobile: 768px;
  --min-layout-width: 1200px;
  
  /* ===== DNIC-WORKS 브랜드 컬러 ===== */
  /* 메인 포인트 */
  --color-brand-green: #acc731;
  --color-brand-green-hover: #9bb628;
  --color-brand-green-active: #8aa520;
  
  /* 섹션 타이틀 (퍼플) */
  --color-section-purple: #667eea;
  --color-section-purple-hover: #5568d3;
  --color-section-purple-active: #4a5bc4;
  
  /* 보조 퍼플 그라데이션 */
  --color-purple-gradient-start: #667eea;
  --color-purple-gradient-end: #764ba2;
  --color-purple-alt-1: #805AD5;
  --color-purple-alt-2: #7c3aed;
  --color-purple-alt-3: #6d28d9;
  
  /* 기본 다크 (헤더/리스트 헤더) */
  --color-dark-header: #1f2937;
  --color-dark-bg: #111827;
  --color-dark-lighter: #374151;
  
  /* 상태 컬러 (중요) */
  --color-status-warning: #db6736;   /* 주의/반려 */
  --color-status-error: #e91e44;     /* 오류/취소 */
  --color-status-success: #acc731;   /* 승인/정상 (브랜드 그린) */
  --color-status-pending: #f59e0b;   /* 대기 */
  
  /* 레거시 호환 (기존 변수명 유지) */
  --color-primary: #acc731;
  --color-primary-hover: #9bb628;
  --color-primary-active: #8aa520;
  --color-secondary: #6b7280;
  --color-success: #acc731;
  --color-warning: #db6736;
  --color-danger: #e91e44;
  --color-info: #667eea;
  
  /* 배경 */
  --color-bg-page: #f3f4f6;
  --color-bg-card: #ffffff;
  --color-bg-sidebar: #1f2937;
  --color-bg-header: #ffffff;
  --color-bg-list-header: #1f2937;
  --color-bg-dark: #111827;
  --color-backdrop: rgba(0, 0, 0, 0.5);
  
  /* 텍스트 */
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;
  --color-text-lighter: #d1d5db;
  --color-text-inverse: #ffffff;
  
  /* 리스트 테이블 전용 */
  --color-table-text-odd: #ffffff;    /* 1열/3열/5열 */
  --color-table-text-even: #d1d5db;   /* 2열/4열/6열 */
  
  /* 테두리 */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-border-dark: #374151;
  
  /* 간격 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

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

html {
  font-size: 16px;
  /* 스크롤 컨텍스트 통일: html/body 고정 (!important로 전 페이지 강제) */
  height: 100% !important;
  height: -webkit-fill-available;
  overflow: hidden !important; /* body 스크롤 금지 */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  /* 스크롤 컨텍스트 통일: body 고정 (!important로 전 페이지 강제) */
  position: relative;
  height: 100% !important;
  height: -webkit-fill-available;
  overflow: hidden !important; /* body 스크롤 금지, main-content만 스크롤 */
}

/* 로그인 페이지는 min-width 제거 + 스크롤 허용 */
body.login-page {
  min-width: auto;
  overflow: auto; /* 로그인 페이지만 예외적으로 스크롤 허용 */
}

/* 대시보드는 PC 최소 너비 유지 (overflow는 main-content에서 처리) */
body:not(.login-page) {
  min-width: var(--min-layout-width);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ===== 로그인 페이지 ===== */
.login-page {
  min-height: 100vh;
  min-height: -webkit-fill-available;  /* 안드로이드 키보드 대응 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;  /* 상하 패딩으로 변경 */
  /* 안드로이드 스크롤 방지 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-container {
  width: 100%;
  max-width: 500px;  /* 400px → 500px로 확대 */
  padding: var(--spacing-xl);
}

/* 모바일 대응 */
@media (max-width: 480px) {
  .login-container {
    padding: var(--spacing-md);
    max-width: 100%;
  }
  
  .login-card {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

/* 1. 로그인 화면 강제 수정 */
.login-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 48px 40px;
  display: flex !important;
  flex-direction: column !important;
  min-height: 600px !important; /* 최소 높이 확보 */
}

.login-header {
  text-align: center;
  margin-bottom: 48px;
  padding-top: var(--spacing-lg);
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 16px;
}

.subtitle {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.login-form {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: none;
}

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

.input-icon {
  display: none;
}

.login-form input,
.input-wrapper input {
  width: 100% !important; /* 입력창 꽉 채우기 */
  box-sizing: border-box !important;
  height: 52px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.input-wrapper input:focus,
.login-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  scroll-margin-top: 100px;
}

.toggle-password {
  position: absolute;
  right: 16px;
  padding: 8px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  cursor: pointer;
}

.toggle-password:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: #667eea;
  color: var(--color-text-inverse);
  border: none;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
  background: #4a5bc4;
  transform: translateY(0);
}

.btn-purple {
  background: #7c3aed;
  color: white;
  border: none;
}

.btn-purple:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-purple:active {
  background: #5b21b6;
  transform: translateY(0);
}

.btn-login {
  width: 100%;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  /* 로그인 버튼은 항상 퍼플 계열 (브랜드 그린과 무관) */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
}

.btn-login:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f94 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.btn-login:active {
  background: linear-gradient(135deg, #4a5bc4 0%, #5e3786 100%) !important;
  transform: translateY(0);
}

/* 로그인 옵션 (아이디 저장, 자동 로그인) - 좌우 끝 정렬 */
.login-options {
  display: flex;
  justify-content: space-between;  /* 좌우 양 끝으로 배치 */
  align-items: center;
  width: 100%;
  margin: 0 0 20px 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;                    /* 고정 크기 */
  height: 16px;                   /* 고정 크기 */
  min-width: 16px;                /* 최소 크기 보장 */
  max-width: 16px;                /* 최대 크기 제한 */
  border: 2px solid #d1d5db;
  border-radius: 3px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  position: relative;
  background-color: white;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:hover {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;            /* 글자가 아래로 떨어지지 않게 */
}

.checkbox-wrapper:hover .checkbox-label {
  color: var(--color-text-primary);
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 24px !important;
  font-size: 14px;
  margin-top: auto !important; /* 바닥 고정 */
  text-align: center;
}

.login-footer .link {
  color: #667eea;
  transition: color 0.2s;
  padding: 4px 0;
}

.login-footer .link:hover {
  color: #5568d3;
  text-decoration: underline;
}

.separator {
  color: var(--color-text-light);
  font-weight: 300;
}

.login-copyright {
  text-align: center;
  margin-top: 32px;  /* 네이버웍스 스타일: 더 넓은 상단 간격 */
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.login-copyright p {
  font-size: 12px;
  color: var(--color-text-light);
  font-style: italic;
}

.version-info {
  margin-top: var(--spacing-xs);
  font-size: 11px !important;
  color: var(--color-text-light) !important;
  font-style: normal !important;
  opacity: 0.7;
}

/* ===== Header ===== */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--header-height) !important;
  background: var(--color-bg-header) !important;
  border-bottom: 1px solid var(--color-border) !important;
  z-index: var(--z-header) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important; /* ✅ 추가: 좌우 정렬 */
  padding: 0 var(--spacing-lg) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.sidebar-toggle {
  display: block; /* PC에서도 표시 */
  background: none;
  border: none;
  font-size: 1.5rem; /* 24px 확대 */
  color: var(--color-text-primary);
  padding: var(--spacing-sm);
  margin-right: var(--spacing-md);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.sidebar-toggle:hover {
  color: var(--color-primary);
  background: none !important; /* 배경 제거 */
  transform: scale(1.15); /* 약간 더 크게 */
}

/* 클릭/포커스 시 배경 제거 */
.sidebar-toggle:active,
.sidebar-toggle:focus {
  background: none !important;
  outline: none;
}

.header-logo {
  flex: 0 0 auto !important; /* ✅ 수정: flex-grow 제거 */
  display: flex !important;
  align-items: center !important;
}

.logo-text {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #667eea !important;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important; /* ✅ 명시적 간격 */
  margin-left: auto !important; /* ✅ 우측 정렬 강제 */
  position: relative !important; /* ✅ absolute 제거 */
}

/* ===== 알림 버튼 ===== */
.notification-menu {
  position: relative !important;
}

.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-text-primary);
  transition: background 0.2s;
  font-size: 22px; /* 18px → 22px로 증가 (약 1.2배) */
}

.notification-btn:hover {
  background: var(--color-bg-page);
}

.notification-badge {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  min-width: 18px !important;
  height: 18px !important;
  /* display는 JavaScript에서 inline style로 제어 (no !important) */
  display: none;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-danger) !important;
  color: white !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 0 5px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  z-index: 10 !important;
  /* 🔥 깜빡임 애니메이션 추가 */
  animation: notification-pulse 2s ease-in-out infinite !important;
}

/* 🔥 알림 뱃지 깜빡임 애니메이션 */
@keyframes notification-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* ===== 사용자 메뉴 =====  */
.user-menu {
  position: relative;
}

/* 🔥 user-profile 스타일 추가 */
.user-profile {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.profile-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  background: none !important;
  border: none !important;
  color: var(--color-text-primary) !important;
  font-size: 24px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  padding: 0 !important;
}

.profile-toggle:hover {
  background: var(--color-bg-page);
  color: var(--color-primary);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--color-bg-card);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
  padding: 8px 0;
  display: none;
}

.user-profile.active .profile-dropdown,
.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.profile-dropdown a:hover {
  background: var(--color-bg-page);
}

.profile-dropdown a i {
  width: 20px;
  text-align: center;
  color: var(--color-text-secondary);
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px;
  transition: background 0.2s;
  font-size: 14px;
}

.user-menu-toggle:hover {
  background: var(--color-bg-page);
}

.user-name {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-toggle .fa-chevron-down {
  font-size: 12px;
  transition: transform 0.2s;
}

.user-menu.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* ===== 드롭다운 메뉴 ===== */
/* 알림 드롭다운 */
.notification-menu {
  position: relative;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 500px;
  background: var(--color-bg-card);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notification-menu.active .notification-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== .show 클래스 지원 (JavaScript toggle용) ===== */
.notification-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}

/* 알림 헤더 */
.notification-dropdown .notification-header {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-page);
}

.notification-dropdown .notification-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

/* 공지 발송 버튼 (관리자 전용) */
.btn-send-announcement {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-send-announcement:hover {
  background: var(--color-primary-hover);
}

.btn-send-announcement i {
  font-size: 13px;
}

/* 알림 탭 */
.notification-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.notification-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: transparent;
}

.notification-tab:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-page);
}

.notification-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.notification-tab i {
  font-size: 13px;
}

/* 알림 컨텐츠 */
.notification-content {
  flex: 1;
  overflow-y: auto;
  max-height: 350px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.2s;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--color-bg-page);
}

.notification-item.unread {
  background: rgba(102, 126, 234, 0.05);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
}

.notification-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.notification-icon.system {
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary);
}

.notification-icon.announcement {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.notification-icon.info {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.notification-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 2줄 레이아웃: 1행 - 보낸이 | 타입 | 날짜 */
.notification-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-light);
}

.notification-sender {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.notification-type {
  color: var(--color-text-light);
}

.notification-date {
  color: var(--color-text-light);
  margin-left: auto;
}

.notification-divider {
  color: var(--color-border);
}

/* 2줄 레이아웃: 2행 - 알림 내용 */
.notification-message {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* 미읽음 알림 강조 */
.notification-item.unread .notification-message {
  font-weight: 500;
}

/* 레거시 스타일 (하위 호환성) */
.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-time {
  font-size: 12px;
  color: var(--color-text-light);
}

/* 알림 빈 상태 */
.notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.notification-empty i {
  font-size: 48px;
  color: #cbd5e0;
  margin-bottom: 12px;
}

.notification-empty p {
  color: #718096;
  font-size: 14px;
  margin: 0;
}

/* 알림 푸터 */
.notification-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-page);
}

.notification-footer .btn-mark-all-read {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notification-footer .btn-mark-all-read:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.notification-footer .btn-mark-all-read i {
  font-size: 12px;
}

.notification-footer a {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.notification-footer a:hover {
  color: var(--color-primary-hover);
}

/* 사용자 드롭다운 */
/* 3. 헤더 드롭다운 (슬림하게) */
.user-dropdown,
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px !important;
  width: auto !important;
  padding: 8px 0 !important;
  background: var(--color-bg-card);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
}

.user-menu.active .user-dropdown,
.user-dropdown.show,
.user-menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px 15px !important;
  color: var(--color-text-primary);
  transition: background 0.2s;
  font-size: 14px;
}

.dropdown-item:hover {
  background: var(--color-bg-page);
}

.user-dropdown a,
.user-menu-dropdown a {
  padding: 10px 15px !important;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--color-text-secondary);
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 4px 0;
}

/* ===== Sidebar ===== */
/* ===== v0.8.61: iOS 확대 시 토글 버튼 작동 문제 해결 - position fixed ===== */
.sidebar-collapse-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: rgba(160, 174, 192, 0.08) !important;
  color: #a0aec0;
  border: none !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s ease;
  /* iOS 터치 최적화 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
  -webkit-user-select: none;
  user-select: none;
  /* iOS 터치 영역 확보 */
  min-width: 44px;
  min-height: 44px;
  /* iOS 확대 시에도 터치 보장 */
  pointer-events: auto;
  isolation: isolate;
}

.sidebar-collapse-btn:hover {
  color: var(--color-primary);
  background: rgba(102, 126, 234, 0.15) !important;
  transform: none;
}

.sidebar-collapse-btn:active {
  background: rgba(102, 126, 234, 0.25) !important;
  transform: scale(0.95);
}

.sidebar-collapse-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

/* 사이드바 접힘 상태일 때 아이콘 회전 */
.sidebar.collapsed .sidebar-collapse-btn i {
  transform: rotate(180deg);
}

/* 접힌 상태에서 토글 버튼을 사이드바 중앙에 위치 */
.sidebar.collapsed .sidebar-collapse-btn {
  top: 10px;
  right: 10px;
  transform: none;
}

/* ===== v0.8.52: 사이드바 레이아웃 (오버플로우 제거 및 내부 요소 100% 맞춤) ===== */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header-height);
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background-color: #1a202c !important;
  z-index: var(--z-sidebar);
  overflow-y: auto !important; /* sidebar 전체 스크롤 허용 */
  overflow-x: hidden !important;
  transition: width var(--transition-speed) ease, transform var(--transition-speed) ease;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  
  /* 스크롤바 숨김 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* WebKit 브라우저용 스크롤바 숨김 */
.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-nav {
  flex: 0 1 auto; /* 내용만큼 차지하되 축소 가능 */
  display: block;
  padding: 60px 0 0 0;
  width: 100% !important;
  box-sizing: border-box !important;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* ⭐ v0.8.52: 내부 요소 100% 맞춤 */
  width: 100% !important;
  box-sizing: border-box !important;
}

.sidebar-nav > .menu-list {
  min-height: auto; /* 자연스러운 높이 */
  padding-bottom: 0; /* 패딩 제거 - 이미지처럼 딱 맞게 */
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 12px var(--spacing-lg);
  color: #d1d5db;
  transition: all 0.2s;
  /* ⭐ v0.8.52: 내부 요소 100% 맞춤 */
  width: 100% !important;
  box-sizing: border-box !important;
  /* ⭐ v0.8.52: iOS 터치 인식 */
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.menu-item a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
}

.menu-item.active a {
  background: rgba(102, 126, 234, 0.2);
  color: #a5b4fc;
  border-left: 3px solid #667eea;
  padding-left: calc(var(--spacing-lg) - 3px);
}

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

.sidebar-footer {
  border-top: 1px solid #4a5568 !important;
  padding: 0 !important;
  background-color: #1a202c;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: auto !important; /* 자동으로 하단 배치 */
  flex-shrink: 0 !important; /* 축소 방지 */
}

.sidebar-footer .menu-list {
  margin: 0 !important;
  padding: 0 !important; /* 상하 패딩 완전 제거 */
  list-style: none;
}

.sidebar-footer .menu-item {
  margin: 0 !important; /* 여백 제거 */
  padding: 0 !important;
}

.sidebar-footer .menu-item a {
  display: block !important; /* 블록 요소로 설정 */
  width: 100% !important; /* 전체 너비 */
  padding: 12px 20px !important;
  font-size: 13px;
  opacity: 0.9;
  box-sizing: border-box !important; /* 패딩 포함 전체 너비 */
}

.sidebar-footer .menu-item a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer .menu-item i {
  font-size: 14px;
}

/* 사이드바 시그니처 영역 */
.sidebar-signature {
  text-align: center !important;
  padding: 15px 0 0 0 !important;
  color: #718096 !important;
  font-size: 0.75rem !important;
  display: block !important;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* ⭐ v0.8.52: 내부 요소 100% 맞춤 */
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-signature p {
  margin: 0;
  padding: 0;
}

.sidebar-version {
  font-size: 10px;
  color: #718096;
  opacity: 0.8;
  margin-top: 4px;
}

.sidebar-version span {
  opacity: 0.8;
}

/* ===== Menu Section Header (대제목 - 야근관리) ===== */
.menu-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 12px 24px;
  margin-top: 8px;
}

.section-header-bar {
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header-text {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Backdrop ===== */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-backdrop);
  z-index: var(--z-backdrop);
  transition: opacity var(--transition-speed) ease;
}

/* ===== Sidebar Collapsed State ===== */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .menu-item a {
  justify-content: center;
  padding: 12px 0;
}

.sidebar.collapsed .menu-item a span {
  display: none;
}

.sidebar.collapsed .menu-item i {
  width: auto;
  margin: 0;
}

.sidebar.collapsed .menu-item.active a {
  border-left: none;
  padding-left: 0;
}

.sidebar.collapsed .sidebar-signature {
  display: none;
}

/* 사이드바에 transition 추가 */
.sidebar {
  transition: width var(--transition-speed) ease, transform var(--transition-speed) ease;
}

/* ===== Main Content ===== */
.main-content {
  /* 스크롤 컨텍스트 통일: main-content만 스크롤 (!important로 전 페이지 강제) */
  position: fixed !important;
  top: var(--header-height) !important;
  left: var(--sidebar-width) !important;
  right: 0 !important;
  bottom: 0 !important;
  height: calc(100vh - var(--header-height)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: var(--spacing-xl);
  transition: left var(--transition-speed) ease;
}

/* Main content with collapsed sidebar */
.main-content.sidebar-collapsed {
  left: var(--sidebar-collapsed-width);
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== Cards ===== */
/* 팀원 현황 바 (Slim Text Bar) */
.employee-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.employee-status-bar .status-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.employee-status-bar .status-label {
  color: #6b7280; /* text-gray-600 */
  font-size: 14px;
  font-weight: 500;
}

.employee-status-bar .status-value {
  font-size: 16px;
  font-weight: 700;
}

/* 전체팀원: 기본 회색 */
.employee-status-bar .status-value.status-total {
  color: #4b5563; /* text-gray-600 */
}

/* 활동: 초록색 (긍정적 상태 강조) */
.employee-status-bar .status-value.status-active {
  color: #10b981; /* text-green-600 */
}

/* 휴가: 주황색 (부재중 상태) */
.employee-status-bar .status-value.status-vacation {
  color: #f59e0b; /* text-orange-500 */
}

.employee-status-bar .status-divider {
  color: var(--color-border);
  font-size: 14px;
  margin: 0 16px;
}

.employee-status-bar .btn-manage-employees {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  margin-left: auto;
}

.employee-status-bar .btn-manage-employees:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.employee-status-bar .btn-manage-employees i {
  font-size: 13px;
}

/* 알림 발송 버튼 */
.employee-status-bar .btn-send-notification {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
}

.employee-status-bar .btn-send-notification:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.employee-status-bar .btn-send-notification i {
  font-size: 13px;
}

/* 체크박스 그룹 */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.checkbox-label:hover {
  background: white;
}

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

.checkbox-label span {
  font-size: 14px;
  color: var(--color-text-primary);
}

/* 배지 스타일 */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-info {
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary);
}

.badge-secondary {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.badge-primary {
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge-secondary {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .employee-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .employee-status-bar .status-divider {
    display: none;
  }

  .employee-status-bar .status-item {
    width: 100%;
    justify-content: space-between;
  }

  .employee-status-bar .btn-manage-employees {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

.user-info-card,
.activity-card,
.stats-card,
.notice-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--spacing-lg);
}

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

.card-header h2 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ===== 접기/펼치기 버튼 통일 스타일 ===== */
.btn-toggle-card {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

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

.btn-toggle-card i {
  transition: transform 0.3s ease;
}

/* 내 정보 카드: 기본 펼침 상태 */
.user-info-card .card-body {
  display: block;
}

/* 내 정보 카드: 접힌 상태 */
.user-info-card.collapsed .card-body {
  display: none;
}

.user-info-card.collapsed .btn-toggle-card i {
  transform: rotate(180deg);
}

/* 내 활동 이력: 기본 접힌 상태 */
.activity-log-card .card-body {
  display: block;
}

.activity-log-card.collapsed .card-body {
  display: none;
}

.activity-log-card.collapsed .btn-toggle-card i {
  transform: rotate(180deg);
}

/* ===== User Info Grid ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.info-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.info-value {
  font-size: 15px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.info-value.highlight {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
}

/* ===== Activity Log (로그 테이블) ===== */
.activity-log-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--spacing-lg);
}

.activity-log-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.activity-log-card .card-header > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-log-card .card-header h2 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ===== Card Body 공통 스타일 ===== */
.card-body {
  padding: var(--spacing-lg);
}

.log-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.log-table-wrapper {
  overflow-x: auto;
}

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

.log-table thead {
  background: var(--color-bg-page);
}

.log-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
}

.log-table th.col-time {
  width: 180px;
  white-space: nowrap;
}

.log-table th.col-user {
  width: 150px;
}

.log-table th.col-action {
  width: 120px;
}

.log-table th.col-detail {
  width: auto;
}

.log-table tbody tr {
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.2s;
}

.log-table tbody tr:hover {
  background: var(--color-bg-page);
}

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

.log-table td {
  padding: 12px 16px;
  font-size: 14px;
}

.log-time {
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.log-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.log-user i {
  color: var(--color-text-secondary);
}

.log-action {
  font-weight: 500;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-badge.badge-create {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.log-badge.badge-edit {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.log-badge.badge-delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.log-badge.badge-login {
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary);
}

.log-badge.badge-announce {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.log-badge.badge-security {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}

.log-badge.badge-info {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
}

.log-detail {
  color: var(--color-text-primary);
}

/* 로그 푸터 (보존 정책 안내) */
.log-footer {
  padding: 16px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-page);
}

.log-retention-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
}

.log-retention-notice i {
  color: var(--color-info);
  font-size: 14px;
}

/* ===== Activity List ===== */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.activity-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: 8px;
  transition: background 0.2s;
}

.activity-item:hover {
  background: var(--color-bg-page);
}

.activity-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-page);
}

.activity-content {
  flex: 1;
}

.activity-content p {
  margin-bottom: var(--spacing-xs);
  font-size: 14px;
}

.activity-time {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.text-success {
  color: var(--color-success);
}

.text-info {
  color: var(--color-info);
}

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

.text-warning {
  color: var(--color-warning);
}

/* ===== 직원 현황 통계 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-bg-page);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary);
  font-size: 20px;
}

.stat-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.stat-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

.stat-icon.info {
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-info);
}

.stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.quick-actions {
  display: flex;
  justify-content: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-light);
}

.quick-actions .btn {
  min-width: 200px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 20px;
  }
}

/* ===== 빈 상태 (Empty State) ===== */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  color: var(--color-text-secondary);
}

.empty-state i {
  font-size: 48px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

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

/* ===== 모바일: 768px 이하 ===== */
@media (max-width: 768px) {
  /* 사이드바 Collapse 버튼 숨김 (모바일) */
  .sidebar-collapse-btn {
    display: none !important;
  }
  
  /* 사이드바 기본 숨김 */
  .sidebar {
    transform: translateX(-100%);
  }
  
  /* 사이드바 열림 상태 */
  .sidebar.active {
    transform: translateX(0);
  }
  
  /* 배경 표시 */
  .sidebar-backdrop.active {
    display: block;
  }
  
  /* 토글 버튼 표시 */
  .sidebar-toggle {
    display: block;
  }
  
  /* 콘텐츠 영역 전체 너비 (fixed positioning 사용) */
  .main-content {
    left: 0; /* 모바일에서는 사이드바 없이 전체 너비 */
  }
  
  /* 스크롤 잠금 (사이드바 열림 시) */
  body.sidebar-open {
    overflow: hidden;
  }
  
  /* User info grid - 모바일에서 1열 */
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PC: 769px 이상 ===== */
@media (min-width: 769px) {
  /* 사이드바 항상 표시 */
  .sidebar {
    transform: translateX(0);
  }
  
  /* 토글 버튼 숨김 */
  .sidebar-toggle {
    display: none;
  }
  
  /* 배경 숨김 */
  .sidebar-backdrop {
    display: none !important;
  }
}

/* ===== Scrollbar Styles ===== */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   팀원 관리 (Team Member Management)
   ======================================== */

/* 페이지 헤더 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-border-light);
}

.page-header-left {
  flex: 1;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title i {
  color: var(--color-primary);
}

.page-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
}

.page-header-right {
  display: flex;
  gap: var(--spacing-sm);
}

/* 버튼 스타일 */
.btn-large {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--color-text-primary);
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.btn-search {
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-search:hover {
  background: var(--color-primary-hover);
}

/* 팀원 등록 버튼 (퍼플 계열) */
.btn-create-member {
  background: #7c3aed;  /* Tailwind purple-600 */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-left: auto;  /* 우측 정렬 */
}

.btn-create-member:hover {
  background: #6d28d9;  /* Tailwind purple-700 */
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

/* 검색 및 필터 카드 */
.search-filters-card {
  background: transparent;  /* 투명 배경 */
  border-radius: 8px;
  padding: 0;  /* 패딩 제거 */
  margin-bottom: var(--spacing-md);  /* 여백 축소 */
}

.search-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-group {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 40px;  /* 높이 축소 */
  border: 1px solid var(--color-border);
  border-radius: 6px;  /* 모서리 축소 */
  font-size: 14px;
  background: white;  /* 입력창만 흰색 배경 */
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
  padding: 8px 14px;  /* 높이 축소 */
  border: 1px solid var(--color-border);
  border-radius: 6px;  /* 모서리 축소 */
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 팀원 목록 테이블 카드 */
.members-table-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.members-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.members-table th {
  padding: 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.members-table th.text-center {
  text-align: center;
}

.members-table tbody tr {
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
}

.members-table tbody tr:hover {
  background: #f9fafb;
}

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

.members-table td {
  padding: 16px;
  color: var(--color-text-primary);
  vertical-align: middle;
}

.members-table td.text-center {
  text-align: center;
}

.members-table td.loading-cell {
  padding: 60px 16px;
}

.loading-text {
  display: inline-block;
  margin-left: 12px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* 상태 배지 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-success::before {
  background: #10b981;
}

.badge-warning {
  background: #fed7aa;
  color: #92400e;
}

.badge-warning::before {
  background: #f59e0b;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-danger::before {
  background: #ef4444;
}

.badge-secondary {
  background: #f3f4f6;
  color: #6b7280;
}

.badge-secondary::before {
  background: #9ca3af;
}

/* 액션 버튼 */
.btn-edit,
.btn-delete {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}

.btn-edit {
  background: #eff6ff;
  color: #1e40af;
}

.btn-edit:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.btn-delete {
  background: #fee2e2;
  color: #991b1b;
}

.btn-delete:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

/* 페이지네이션 */
.pagination-wrapper {
  padding: 20px;
  border-top: 1px solid var(--color-border-light);
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.btn-page {
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-page:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

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

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

.page-info {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 0 12px;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

/* 모달 열렸을 때 스크롤 잠금 */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
  pointer-events: auto;
}

.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideIn 0.3s ease-out;
  z-index: 9999;
  pointer-events: auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

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

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: var(--color-text-primary);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

/* 폼 스타일 */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row:has(.form-group:nth-child(2)) {
  grid-template-columns: 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label i {
  color: var(--color-primary);
  font-size: 13px;
}

.required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:disabled {
  background: #f9fafb;
  color: var(--color-text-secondary);
  cursor: not-allowed;
}

.form-help {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .page-header-right {
    width: 100%;
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .search-filters {
    flex-direction: column;
  }
  
  .search-input-group,
  .filter-select,
  .btn-search {
    width: 100%;
  }
  
  .form-row:has(.form-group:nth-child(2)) {
    grid-template-columns: 1fr;
  }
  
  .members-table {
    font-size: 13px;
  }
  
  .members-table th,
  .members-table td {
    padding: 12px 8px;
  }
  
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-header,
  .modal-body {
    padding: 20px;
  }
}

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

.empty-state i {
  font-size: 48px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

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

/* ===== 검색 X 버튼 스타일 ===== */
#clearSearchBtn {
  transition: color 0.2s ease;
}

#clearSearchBtn:hover {
  color: #718096 !important;
}

#clearSearchBtn:active {
  color: #4a5568 !important;
}

/* ===== 검색 입력창 스타일 개선 ===== */
.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== 비밀번호 변경/초기화 페이지 스타일 ===== */
.password-change-card {
  max-width: 500px !important;  /* 540px → 500px로 통일 */
  width: 100%;
  background: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 48px 40px;
}

/* 비밀번호 변경 페이지 컨테이너 너비 확장 */
.login-page .login-container:has(.password-change-card) {
  max-width: 500px !important;  /* 540px → 500px로 통일 */
}

.password-change-card .login-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.password-change-card .login-header h1 i {
  color: var(--color-primary);
}

.password-change-card .login-header p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

.password-change-card .form-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.password-change-card .btn-login {
  width: 100%;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
}

/* 입력 필드 너비 최적화 */
.password-change-card .input-wrapper input {
  width: 100% !important;
  padding-right: 48px !important;  /* 눈 아이콘 공간 확보 */
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .password-change-card {
    max-width: 100%;
    padding: 32px 24px;
  }
  
  .login-page .login-container:has(.password-change-card) {
    max-width: 100%;
  }
  
  .password-change-card .login-header h1 {
    font-size: 24px;
  }
  
  .password-change-card .login-header p {
    font-size: 14px;
  }
}

/* ==================== 알림 센터 페이지 ==================== */

/* 알림 센터 헤더 */
.notification-center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.notification-center-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-center-header h1 i {
  color: var(--color-primary);
}

.notification-center-actions {
  display: flex;
  gap: 8px;
}

/* 발송 섹션 */
.notification-send-section {
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* 알림 리스트 섹션 */
.notification-list-section {
  margin-bottom: 24px;
}

.notification-list {
  min-height: 200px;
}

/* 발송 내역 아이템 (관리자) */
.notification-item-card {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--color-bg-card);
  transition: box-shadow 0.2s;
}

.notification-item-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notification-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.notification-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-item-date {
  font-size: 13px;
  color: var(--color-text-light);
  margin-left: auto;
}

.notification-item-body {
  margin-bottom: 12px;
}

.notification-item-message {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.5;
  margin: 0;
}

.notification-item-footer {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.btn-read-status,
.btn-unread-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-read-status {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.btn-read-status:hover {
  background: rgba(16, 185, 129, 0.2);
}

.btn-unread-status {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.btn-unread-status:hover {
  background: rgba(245, 158, 11, 0.2);
}

.btn-read-status strong,
.btn-unread-status strong {
  font-size: 14px;
}

/* 상세 모달 */
.notification-detail-message {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-bg-page);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.detail-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.detail-message-date {
  font-size: 13px;
  color: var(--color-text-light);
}

.detail-message-body {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* 탭 */
.notification-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.detail-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.detail-tab:hover {
  color: var(--color-primary);
  background: var(--color-bg-page);
}

.detail-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.detail-tab i {
  margin-right: 6px;
}

/* 탭 패널 */
.notification-detail-content {
  max-height: 400px;
  overflow-y: auto;
}

.tab-pane {
  display: none;
}

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

/* 수신자 목록 */
.recipient-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipient-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

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

.recipient-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.recipient-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.recipient-email {
  font-size: 13px;
  color: var(--color-text-light);
  margin-left: 8px;
}

.recipient-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.recipient-status.read {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.recipient-status.unread {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.recipient-item-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

/* 상태 표시 */
.loading-state,
.empty-state,
.error-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--color-text-light);
}

.loading-state i,
.empty-state i,
.error-state i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  opacity: 0.5;
}

.empty-state p,
.error-state p {
  font-size: 16px;
  margin: 0;
}

.error-state {
  color: #f44336;
}

/* 알림 센터 버튼 */
.btn-view-notifications {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
}

.btn-view-notifications:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-view-notifications i {
  font-size: 13px;
}

/* ==================== 알림 센터 탭 스타일 ==================== */

/* 탭 메뉴 */
.notification-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-border);
}

.notification-tab {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notification-tab:hover {
  color: var(--color-primary);
  background: var(--color-bg-page);
}

.notification-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: transparent;
}

.notification-tab i {
  font-size: 14px;
}

/* 탭 컨텐츠 */
.notification-tab-content {
  display: none;
}

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

/* 알림 아이템 클릭 가능 */
.notification-item {
  cursor: pointer;
  position: relative;
}

.notification-item:hover {
  background: var(--color-bg-page);
}

/* 미읽음 강조 - 위치 조정 */
.notification-item.unread {
  position: relative;
  padding-left: 20px;
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
}

/* ===== 페이지네이션 스타일 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 0;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

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

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--color-bg-page);
}

.pagination-btn i {
  font-size: 12px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .pagination {
    gap: 6px;
    margin-top: 16px;
  }
  
  .pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* ========================================
   🚀 1열 가로 통합형 발송 UI (최종 통합 버전)
   ======================================== */

/* 1. 컨테이너 - 1열 가로 레이아웃 */
.recipient-control-row {
  display: flex !important;
  flex-direction: row !important;  /* 가로 방향 강제 */
  align-items: center !important;  /* 세로 중앙 정렬 */
  gap: 12px !important;            /* 요소 사이 간격 */
  width: 100% !important;          /* 전체 너비 */
  position: relative !important;   /* 드롭다운 기준점 */
  flex-wrap: wrap !important;
  padding: 16px !important;
  background: #f8f9fa !important;
  border: 2px solid #e1e4e8 !important;
  border-radius: 8px !important;
  min-height: 60px !important;
}

/* 2. 라디오 버튼 그룹 */
.recipient-control-row .radio-group {
  display: flex !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.recipient-control-row .radio-group .radio-label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  background: white !important;
  border: 2px solid #dee2e6 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.recipient-control-row .radio-group .radio-label:hover {
  border-color: #4285f4 !important;
  background: rgba(66, 133, 244, 0.05) !important;
}

.recipient-control-row .radio-group .radio-label input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.recipient-control-row .radio-group .radio-label:has(input:checked) {
  border-color: #4285f4 !important;
  background: rgba(66, 133, 244, 0.1) !important;
  color: #4285f4 !important;
  font-weight: 600 !important;
}

/* 3. 검색 컨테이너 - flex-grow로 남는 공간 차지 */
.search-container,
.recipient-control-row .search-container {
  position: relative !important;
  flex-grow: 1 !important;         /* ⭐ 남는 공간을 검색창이 차지 */
  min-width: 200px !important;
  overflow: visible !important;    /* 드롭다운 표시를 위해 필수 */
}

.recipient-control-row .search-input {
  width: 100% !important;
  padding: 10px 16px 10px 40px !important;
  border: 2px solid #dee2e6 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background: white !important;
  transition: all 0.2s ease !important;
}

.recipient-control-row .search-input:focus {
  outline: none !important;
  border-color: #4285f4 !important;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1) !important;
}

.recipient-control-row .search-input:disabled {
  background: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.recipient-control-row .search-input.active {
  border-color: #4285f4 !important;
}

.recipient-control-row .search-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #999 !important;
  font-size: 14px !important;
  pointer-events: none !important;
}

/* 4. 검색 결과 드롭다운 - 공중에 띄우기 (레이아웃 뭉개짐 방지) */
#searchResults,
.search-results,
.recipient-control-row .search-results {
  position: absolute !important;   /* ⭐ 레이아웃을 밀지 않고 위에 뜸 */
  top: 100% !important;            /* 검색창 바로 아래 */
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;        /* 다른 요소보다 위로 */
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
  max-height: 200px !important;    /* 드롭다운 최대 높이 */
  overflow-y: auto !important;
  margin: 0 !important;
}

.search-result-item {
  padding: 12px 16px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  border-bottom: 1px solid #e1e4e8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.search-result-item:last-child {
  border-bottom: none !important;
}

.search-result-item:hover {
  background: rgba(66, 133, 244, 0.05) !important;
}

.search-result-item i {
  color: #4285f4 !important;
  font-size: 14px !important;
}

.search-result-name {
  font-weight: 500 !important;
  color: #333 !important;
  flex: 1 !important;
}

.search-result-email {
  color: #666 !important;
  font-size: 13px !important;
}

.search-no-results {
  padding: 20px !important;
  text-align: center !important;
  color: #999 !important;
  font-size: 14px !important;
}

/* 5. 선택된 태그 영역 - 자연스럽게 줄바꿈 */
.recipient-control-row .selected-tags {
  display: flex !important;
  flex-wrap: wrap !important;      /* ⭐ 태그가 많아지면 아래로 자연스럽게 */
  gap: 6px !important;             /* 태그 간격 */
  align-items: center !important;
  max-width: 300px !important;     /* ⭐ 너무 길어지지 않게 조절 */
  min-width: 150px !important;
}

.recipient-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  animation: tagFadeIn 0.3s ease !important;
}

.recipient-tag i {
  font-size: 12px !important;
}

.tag-remove {
  background: none !important;
  border: none !important;
  color: white !important;
  cursor: pointer !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease !important;
}

.tag-remove:hover {
  opacity: 1 !important;
}

.tags-hint {
  color: #999 !important;
  font-size: 13px !important;
  font-style: italic !important;
}

@keyframes tagFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 6. Hidden Input */
#selectedRecipientIds {
  display: none !important;
}

/* 7. 반응형 */
@media (max-width: 768px) {
  .recipient-control-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .recipient-control-row .radio-group {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .recipient-control-row .search-container,
  .recipient-control-row .selected-tags {
    width: 100% !important;
  }
}

/* ========================================
   🔐 인증 로딩 오버레이 (Flicker 방지)
   ======================================== */

/* 로딩 오버레이 컨테이너 */
#authLoadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-auth-overlay);
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

/* 숨김 상태 */
#authLoadingOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 로딩 스피너 */
.auth-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 로딩 텍스트 */
.auth-loading-text {
  margin-top: 24px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: auth-pulse 1.5s ease-in-out infinite;
}

@keyframes auth-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* 로고 */
.auth-logo {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 32px;
  letter-spacing: 2px;
}

/* ========================================
   🏖️ 연차 관리 시스템 (v0.8.37)
   ======================================== */

/* 연도 선택 드롭다운 */
.year-selector-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.year-selector-container label {
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.year-selector {
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
}

.year-selector:hover {
  border-color: #2563eb;
}

.year-selector:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 테이블 레이아웃 정렬 */
.members-table th,
.members-table td {
  text-align: left !important;
}

.members-table th[style*="center"],
.members-table td[style*="center"] {
  text-align: center !important;
}

/* 관리 컬럼 중앙 정렬 */
.members-table th:last-child,
.members-table td:last-child {
  text-align: center !important;
}

/* 숫자 입력 필드 */
.leave-input {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  text-align: right;
  font-size: 14px;
}

.leave-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* 저장 버튼 */
.btn-save-leave {
  padding: 6px 12px;
  font-size: 13px;
  margin-left: 8px;
}

/* 공휴일 테이블 수정 버튼 */
.btn-edit-holiday {
  background: #10b981;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  margin-right: 8px;
}

.btn-edit-holiday:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* 삭제 버튼 스타일 개선 */
.btn-delete-holiday {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-delete-holiday:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}


/* ========================================
   🏖️ 연차 관리 시스템 v0.8.42 (레이아웃 최종 교정)
   ======================================== */

/* 테이블 고정 레이아웃 및 한 줄 표시 강제 */
.members-table {
  table-layout: fixed;
  width: 100%;
  white-space: nowrap;
}

/* 컬럼 너비 최적화 - 중요 컬럼(잔여 연차, 잔여 적립, 관리) 우선 배분 */
.members-table th:nth-child(1),  /* 이름 */
.members-table td:nth-child(1) {
  width: 7%;
}

.members-table th:nth-child(2),  /* 직급 */
.members-table td:nth-child(2) {
  width: 6%;
}

.members-table th:nth-child(3),  /* 입사일 */
.members-table td:nth-child(3) {
  width: 8%;
}

.members-table th:nth-child(4),  /* 근무 형태 */
.members-table td:nth-child(4) {
  width: 7%;
}

.members-table th:nth-child(5),  /* 기본 연차 */
.members-table td:nth-child(5) {
  width: 10%;
}

.members-table th:nth-child(6),  /* 적립 휴가 */
.members-table td:nth-child(6) {
  width: 8%;
}

.members-table th:nth-child(7),  /* 사용 연차 */
.members-table td:nth-child(7) {
  width: 8%;
}

.members-table th:nth-child(8),  /* 사용 적립 */
.members-table td:nth-child(8) {
  width: 8%;
}

.members-table th:nth-child(9),  /* 잔여 연차 ⭐ 중요 */
.members-table td:nth-child(9) {
  width: 12%;
  min-width: 120px;
}

.members-table th:nth-child(10), /* 잔여 적립 ⭐ 중요 */
.members-table td:nth-child(10) {
  width: 12%;
  min-width: 120px;
}

.members-table th:nth-child(11), /* 관리 ⭐ 중요 */
.members-table td:nth-child(11) {
  width: 14%;
  min-width: 140px;
}

/* 읽기 전용 값 스타일 */
.readonly-value {
  color: #64748b;
  font-weight: 500;
}

/* 한 줄 표시 강제 */
.members-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

/* 저장 버튼 너비 고정 */
.btn-save-leave {
  min-width: 100px;
  white-space: nowrap;
  padding: 6px 16px;
}

/* 모든 데이터 좌측 정렬 (관리 버튼만 중앙) */
.members-table td {
  text-align: left !important;
}

.members-table td:nth-child(11) {
  text-align: center !important;
}

/* ===== v0.8.64: 개인 연차 현황판 (My Leave Status) ===== */
.my-leave-status-section {
  margin-bottom: 32px;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 연도 선택기 */
.year-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.year-selector-label {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.year-selector {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-selector:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
}

.year-selector:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 연차 카드 그리드 */
.leave-status-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 개별 카드 */
.leave-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.leave-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color) 0%, transparent 100%);
}

.leave-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--card-color);
}

/* 카드 아이콘 */
.leave-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  flex-shrink: 0;
}

.leave-card-icon.base {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-color: #667eea;
}

.leave-card:has(.base)::before {
  background: linear-gradient(90deg, #667eea 0%, transparent 100%);
}

.leave-card-icon.accrued {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --card-color: #f093fb;
}

.leave-card:has(.accrued)::before {
  background: linear-gradient(90deg, #f093fb 0%, transparent 100%);
}

.leave-card-icon.remain {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --card-color: #4facfe;
}

.leave-card:has(.remain)::before {
  background: linear-gradient(90deg, #4facfe 0%, transparent 100%);
}

.leave-card-icon.remain-accrued {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --card-color: #43e97b;
}

.leave-card:has(.remain-accrued)::before {
  background: linear-gradient(90deg, #43e97b 0%, transparent 100%);
}

/* 카드 컨텐츠 */
.leave-card-content {
  flex: 1;
}

.leave-card-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leave-card-value {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 4px;
}

.leave-card-unit {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}

.leave-card-pending {
  margin-top: 8px;
  font-size: 12px;
  color: #f59e0b;
  font-weight: 500;
  padding: 4px 8px;
  background: #fef3c7;
  border-radius: 4px;
  display: inline-block;
}

/* 모바일 반응형 (768px 이하) */
@media (max-width: 768px) {
  .leave-status-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .leave-card {
    padding: 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .leave-card-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .leave-card-value {
    font-size: 28px;
  }
  
  .my-leave-status-section {
    padding: 16px;
  }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .leave-status-cards {
    grid-template-columns: 1fr;
  }
  
  .leave-card {
    flex-direction: row;
    text-align: left;
  }
}

/* ===== 안내 카드 (Info Card) ===== */
.info-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0ea5e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0c4a6e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card p {
  font-size: 14px;
  color: #0369a1;
  line-height: 1.6;
  margin: 8px 0;
}

.info-card p:last-child {
  margin-bottom: 0;
}


/* ========================================================================= */
/* ===== DNIC-WORKS 공통 리스트/테이블 스타일 시스템 (v0.8.260+) ===== */
/* ========================================================================= */

/* ===== 1. 섹션 타이틀 (박스형, 퍼플 배경) ===== */
.section-title-box,
.dnic-section-title {
  background: var(--color-section-purple);
  color: var(--color-text-inverse);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.section-title-box i,
.dnic-section-title i {
  font-size: 18px;
}

/* 서브 섹션 타이틀 (조금 더 작고 옅은 퍼플) */
.sub-section-title {
  background: var(--color-purple-alt-1);
  color: var(--color-text-inverse);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

/* ===== 2. 리스트 테이블 헤더 (다크 배경) ===== */
.dnic-table,
.list-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-dark);
  border-radius: 8px;
  overflow: hidden;
}

.dnic-table thead,
.list-table thead {
  background: var(--color-dark-header);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dnic-table thead th,
.list-table thead th {
  background: var(--color-dark-header);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--color-border-dark);
  white-space: nowrap;
}

/* ===== 3. 리스트 테이블 바디 (교차 컬러) ===== */
.dnic-table tbody,
.list-table tbody {
  background: var(--color-bg-dark);
}

.dnic-table tbody tr,
.list-table tbody tr {
  border-bottom: 1px solid var(--color-border-dark);
  transition: background-color 0.2s;
}

.dnic-table tbody tr:hover,
.list-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* 열 교차 텍스트 컬러: 1/3/5 흰색, 2/4/6 옅은 그레이 */
.dnic-table tbody td,
.list-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  vertical-align: middle;
}

/* 홀수 열 (1, 3, 5, 7...) - 흰색 */
.dnic-table tbody td:nth-child(odd),
.list-table tbody td:nth-child(odd) {
  color: var(--color-table-text-odd);
}

/* 짝수 열 (2, 4, 6, 8...) - 옅은 그레이 */
.dnic-table tbody td:nth-child(even),
.list-table tbody td:nth-child(even) {
  color: var(--color-table-text-even);
}

/* ===== 4. 상태 배지 (통일된 컬러) ===== */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* 승인/정상 - 브랜드 그린 */
.status-badge.approved,
.status-badge.active,
.status-badge.success {
  background: var(--color-brand-green);
  color: var(--color-dark-header);
}

/* 대기 - 노란색 */
.status-badge.pending,
.status-badge.waiting {
  background: var(--color-status-pending);
  color: var(--color-dark-header);
}

/* 반려/주의 - 주황색 */
.status-badge.rejected,
.status-badge.warning {
  background: var(--color-status-warning);
  color: var(--color-text-inverse);
}

/* 취소/오류 - 빨간색 */
.status-badge.cancelled,
.status-badge.error {
  background: var(--color-status-error);
  color: var(--color-text-inverse);
}

/* 비활성/삭제 - 회색 */
.status-badge.inactive,
.status-badge.deleted {
  background: var(--color-text-secondary);
  color: var(--color-text-inverse);
}

/* ===== 5. 브랜드 그린 버튼 ===== */
.btn-brand-green,
.btn-green {
  background: var(--color-brand-green);
  color: var(--color-dark-header);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-brand-green:hover,
.btn-green:hover {
  background: var(--color-brand-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(172, 199, 49, 0.3);
}

.btn-brand-green:active,
.btn-green:active {
  background: var(--color-brand-green-active);
  transform: translateY(0);
}

/* ===== 6. 퍼플 버튼 (섹션 강조용) ===== */
.btn-purple-section {
  background: var(--color-section-purple);
  color: var(--color-text-inverse);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-purple-section:hover {
  background: var(--color-section-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-purple-section:active {
  background: var(--color-section-purple-active);
  transform: translateY(0);
}

/* ===== 6-1. 위험 버튼 (삭제/제외용) ===== */
.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
  background: #991b1b;
  transform: translateY(0);
}

/* ===== 7. 빈 상태 (No Data) ===== */
.empty-state,
.no-data-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}

.empty-state i,
.no-data-message i {
  font-size: 48px;
  color: var(--color-text-lighter);
  margin-bottom: 16px;
  display: block;
}

.empty-state p,
.no-data-message p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ===== 8. 로딩 스피너 (다크 모드 대응) ===== */
.loading-spinner-dark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--color-border-dark);
  border-top-color: var(--color-brand-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 9. 카드형 섹션 (다크 배경) ===== */
.dnic-card-dark {
  background: var(--color-dark-header);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dnic-card-dark .card-title {
  color: var(--color-text-inverse);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 10. 페이지네이션 (브랜드 그린) ===== */
.pagination-brand-green .pagination-btn {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-brand-green .pagination-btn:hover:not(:disabled) {
  background: var(--color-brand-green);
  color: var(--color-dark-header);
  border-color: var(--color-brand-green);
}

.pagination-brand-green .pagination-btn.active {
  background: var(--color-brand-green);
  color: var(--color-dark-header);
  border-color: var(--color-brand-green);
  font-weight: 600;
}

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

/* ===== 11. 필터/검색 바 ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg-card);
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--color-bg-card);
  color: var(--color-text-primary);
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 3px rgba(172, 199, 49, 0.1);
}

/* ===== 12. 액션 버튼 그룹 ===== */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-btn-edit {
  background: var(--color-brand-green);
  color: var(--color-dark-header);
}

.action-btn-edit:hover {
  background: var(--color-brand-green-hover);
}

.action-btn-delete {
  background: var(--color-status-error);
  color: var(--color-text-inverse);
}

.action-btn-delete:hover {
  background: #d11a3d;
}

.action-btn-view {
  background: var(--color-section-purple);
  color: var(--color-text-inverse);
}

.action-btn-view:hover {
  background: var(--color-section-purple-hover);
}

/* ===== 13. 통계 카드 (브랜드 그린 강조) ===== */
.stat-card-green {
  background: linear-gradient(135deg, var(--color-brand-green) 0%, #9bb628 100%);
  color: var(--color-dark-header);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(172, 199, 49, 0.2);
}

.stat-card-green .stat-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
}

.stat-card-green .stat-value {
  font-size: 32px;
  font-weight: 700;
}

/* ===== 14. 모바일 반응형 ===== */
@media (max-width: 768px) {
  .section-title-box,
  .dnic-section-title {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .dnic-table,
  .list-table {
    font-size: 12px;
  }
  
  .dnic-table thead th,
  .list-table thead th {
    padding: 10px 8px;
    font-size: 12px;
  }
  
  .dnic-table tbody td,
  .list-table tbody td {
    padding: 8px;
    font-size: 12px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== 15. 모달 (Fixed Positioning for Leave Management) ===== */
.modal-overlay-fixed {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content-fixed {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== 16. 연차관리 테이블 컬럼 배경 ===== */
/* 연차 영역 (한도/사용/잔여) - 흰색 배경 */
.leave-table-col-base,
.leave-table-col-annual {
  background-color: #ffffff !important;
}

/* 적립 영역 (한도/사용/잔여) - 그레이 배경 */
.leave-table-col-accrued {
  background-color: #f3f4f6 !important;
}

/* 그룹 헤더 */
.leave-table-group-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  font-weight: 700;
  padding: 10px;
  border: none;
}

/* rowspan 헤더 수직 정렬 */
.dnic-table thead th[rowspan] {
  vertical-align: middle;
}

/* 2행 헤더 높이 통일 */
.dnic-table thead tr:first-child th {
  height: 45px;
}

.dnic-table thead tr:nth-child(2) th {
  height: 40px;
}

/* ===== 17. 연차관리 테이블 지브라 스트라이프 (라이트모드) ===== */
/* 테이블 전체 폰트 14px 통일 */
#membersSection #leaveMembersTable,
#membersSection #leaveMembersTable * {
  font-size: 14px !important;
}

/* 헤더 스타일 - 다크 그레이 배경, 흰색 텍스트 */
#membersSection .dnic-table thead tr {
  background: #1f2937 !important;
  height: 35px !important;
}

#membersSection .dnic-table thead th {
  background: #1f2937 !important;
  color: #ffffff !important;
  height: 35px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
}

/* 데이터행 기본 스타일 */
#membersSection .dnic-table tbody tr {
  height: 30px !important;
  color: #111111 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

/* 데이터행 홀수 (1, 3, 5...) - 흰색 배경 */
#membersSection .dnic-table tbody tr:nth-child(odd) {
  background: #ffffff !important;
}

/* 데이터행 짝수 (2, 4, 6...) - 회색 배경 */
#membersSection .dnic-table tbody tr:nth-child(even) {
  background: #f3f4f6 !important;
}

/* 데이터 셀 텍스트 색상 통일 (검정) + bold 해제 + 폰트 13px */
#membersSection .dnic-table tbody td {
  color: #111111 !important;
  padding: 6px 12px !important;
  height: 30px !important;
  vertical-align: middle !important;
  font-weight: normal !important;
  font-size: 13px !important;
}

/* hover 효과 - 라이트 그레이 */
#membersSection .dnic-table tbody tr:hover {
  background: #e5e7eb !important;
}

/* 연차/적립 컬럼 배경을 행 전체와 동일하게 (지브라 통일) */
#membersSection .dnic-table tbody tr:nth-child(odd) td {
  background-color: #ffffff !important;
}

#membersSection .dnic-table tbody tr:nth-child(even) td {
  background-color: #f3f4f6 !important;
}

/* 숫자 강조 스타일 제거 - 모두 검정/일반 굵기 */
#membersSection .dnic-table tbody td strong {
  font-weight: normal !important;
  color: #111111 !important;
}

/* 버튼 폰트도 13px */
#membersSection .dnic-table tbody button {
  font-size: 13px !important;
}

/* ===== 18. 공휴일 설정 테이블 스타일 (사용자별 휴가현황과 동일) ===== */
#holidaysSection .dnic-table {
  font-size: 14px;
}

#holidaysSection .dnic-table thead tr {
  background: #1f2937 !important;
  height: 35px !important;
}

#holidaysSection .dnic-table thead th {
  background: #1f2937 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  vertical-align: middle !important;
  height: 35px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
}

#holidaysSection .dnic-table tbody tr {
  height: 30px !important;
  color: #111111 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

#holidaysSection .dnic-table tbody tr:nth-child(odd) {
  background: #ffffff !important;
}

#holidaysSection .dnic-table tbody tr:nth-child(even) {
  background: #f3f4f6 !important;
}

#holidaysSection .dnic-table tbody td {
  font-weight: 400 !important;
  vertical-align: middle !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: #111111 !important; /* 텍스트 검정 명시 */
}

#holidaysSection .dnic-table tbody tr:hover {
  background: #e5e7eb !important;
}

#holidaysSection .dnic-table tbody button {
  font-size: 14px !important;
}

/* 체크박스 스타일 */
#holidaysSection .dnic-table input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #667eea; /* 퍼플 테마 */
}

/* ===== 19. 적립휴가 히스토리 테이블 스타일 (사용자별 휴가현황과 동일) ===== */
#accruedHistorySection .dnic-table,
#accruedHistorySection .dnic-table * {
  font-size: 14px !important;
}

#accruedHistorySection .dnic-table thead tr {
  background: #1f2937 !important;
  height: 35px !important;
}

#accruedHistorySection .dnic-table thead th {
  background: #1f2937 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  vertical-align: middle !important;
  height: 35px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
}

#accruedHistorySection .dnic-table tbody tr {
  height: 30px !important;
  color: #111111 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

#accruedHistorySection .dnic-table tbody tr:nth-child(odd) {
  background: #ffffff !important;
}

#accruedHistorySection .dnic-table tbody tr:nth-child(even) {
  background: #f3f4f6 !important;
}

#accruedHistorySection .dnic-table tbody td {
  font-weight: 400 !important;
  vertical-align: middle !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: #111111 !important;
}

#accruedHistorySection .dnic-table tbody tr:hover {
  background: #e5e7eb !important;
}

#accruedHistorySection .dnic-table tbody button {
  font-size: 13px !important;
}

/* ===== 20. 휴가신청 히스토리 테이블 스타일 (사용자별 휴가현황과 동일) ===== */
#requestHistorySection .dnic-table,
#requestHistorySection .dnic-table * {
  font-size: 14px !important;
}

#requestHistorySection .dnic-table thead tr {
  background: #1f2937 !important;
  height: 35px !important;
}

#requestHistorySection .dnic-table thead th {
  background: #1f2937 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  vertical-align: middle !important;
  height: 35px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
}

#requestHistorySection .dnic-table tbody tr {
  height: 30px !important;
  color: #111111 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

#requestHistorySection .dnic-table tbody tr:nth-child(odd) {
  background: #ffffff !important;
}

#requestHistorySection .dnic-table tbody tr:nth-child(even) {
  background: #f3f4f6 !important;
}

#requestHistorySection .dnic-table tbody td {
  font-weight: 400 !important;
  vertical-align: middle !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: #111111 !important;
}

#requestHistorySection .dnic-table tbody tr:hover {
  background: #e5e7eb !important;
}

#requestHistorySection .dnic-table tbody button {
  font-size: 13px !important;
}

/* =========================================================
   [PATCH] Leave Management - font 12px 강제 규칙 완화 (중요)
   기존에 아래와 같은 규칙이 있으면(또는 유사하면) 반드시 교체하세요.
   - #leaveManagementContent > div:not(.page-header) { font-size: 12px !important; }
   - #leaveManagementContent > div:not(.page-header) * { font-size: 12px !important; }
   ========================================================= */

/* ✅ 페이지 헤더는 기존 유지 */
#leaveManagementContent .page-header {
  font-size: initial !important;
}
#leaveManagementContent .page-header h1 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
}

/* ✅ 섹션 컨테이너만 12px 기준, 내부는 컴포넌트별로 허용 */
#leaveManagementContent .dnic-panel,
#leaveManagementContent .section-body {
  font-size: 12px;
}

/* ❌ (중요) 전역 * 강제 금지: 반드시 삭제/주석 처리
#leaveManagementContent > div:not(.page-header) * {
  font-size: 12px !important;
}
*/

/* =========================================================
   [DNIC DESIGN KIT] (leave-management 전용 UI 컴포넌트)
   ========================================================= */
#leaveManagementContent{
  --navy:#1f2937;
  --indigo:#667eea;
  --indigo2:#764ba2;
  --lime:#a3e635;
  --lime2:#bef264;
  --bg:#f1f3f5;
  --card:#ffffff;
  --line:#e9ecef;
  --muted:#868e96;
  --text:#111827;

  --reject:#db6736;  /* 반려 */
  --danger:#e91e44;  /* 오류/취소 */
  --ok:#10b981;      /* 승인 */
  --wait:#f97316;    /* 대기 */
}

#leaveManagementContent .dnic-panel{
  background: var(--card);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
  border: 1px solid #f0f1f3;
  margin-bottom: 18px;
}

#leaveManagementContent .dnic-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:6px;
}
#leaveManagementContent .dnic-title-bar{
  width:6px; height:26px;
  background: var(--navy);
  border-radius: 2px;
}
#leaveManagementContent .dnic-title h2{
  font-size: 20px;
  font-weight: 900;
  color: #1a1a1a;
  margin:0;
}
#leaveManagementContent .dnic-subtitle{
  margin: 0 0 14px 18px;
  font-size: 13px;
  color: var(--muted);
}

/* 액션바 */
#leaveManagementContent .dnic-actionbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 14px;
  margin: 10px 0 14px;
}
#leaveManagementContent .dnic-action-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 1;
}
#leaveManagementContent .dnic-action-right{
  display:flex;
  align-items:center;
  gap:10px;
}

/* input */
#leaveManagementContent .dnic-input{
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  font-size: 13px;
  background: #fff;
}
#leaveManagementContent .dnic-input:focus{
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}

/* 버튼 */
#leaveManagementContent .dnic-btn{
  height: 38px;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}
#leaveManagementContent .dnic-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}
#leaveManagementContent .dnic-btn-primary{
  background: var(--navy);
  color: #fff;
}
#leaveManagementContent .dnic-btn-primary:hover{ filter: brightness(1.05); }

#leaveManagementContent .dnic-btn-lime{
  background: var(--lime);
  color: #1a202c;
}
#leaveManagementContent .dnic-btn-lime:hover{ background: var(--lime2); }

#leaveManagementContent .dnic-btn-indigo{
  background: var(--indigo);
  color: #fff;
}
#leaveManagementContent .dnic-btn-indigo:hover{ filter: brightness(1.06); }

#leaveManagementContent .dnic-btn-reject{
  background: #6366f1;
  color:#fff;
}
#leaveManagementContent .dnic-btn-reject:hover{ background:#818cf8; }

#leaveManagementContent .dnic-btn-danger{
  background: var(--danger);
  color:#fff;
}
#leaveManagementContent .dnic-btn-danger:hover{ filter: brightness(1.05); }

/* 배지 */
#leaveManagementContent .dnic-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.06);
}
#leaveManagementContent .dnic-badge-type{
  color: #1e40af;
  background: #eff6ff;
  border-color: #dbeafe;
}
#leaveManagementContent .dnic-badge-wait{
  color: #fff;
  background: var(--wait);
  border-color: rgba(255,255,255,.2);
}
#leaveManagementContent .dnic-badge-approve{
  color: #fff;
  background: var(--ok);
  border-color: rgba(255,255,255,.2);
}
#leaveManagementContent .dnic-badge-reject{
  color: #fff;
  background: var(--reject);
  border-color: rgba(255,255,255,.2);
}
#leaveManagementContent .dnic-badge-cancel{
  color: #fff;
  background: #868e96;
  border-color: rgba(255,255,255,.2);
}

/* table */
#leaveManagementContent .dnic-table-wrap{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background:#fff;
}
#leaveManagementContent .dnic-table-scroll{
  width:100%;
  overflow:auto;
}
#leaveManagementContent .dnic-table{
  width:100%;
  border-collapse: collapse;
}
#leaveManagementContent .dnic-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 10px;
  border-right: 1px solid #374151;
  white-space: nowrap;
  text-align: center;
}
#leaveManagementContent .dnic-table tbody td{
  padding: 12px 10px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
}
#leaveManagementContent .dnic-table tbody tr:nth-child(even){ background: #f9fafb; }
#leaveManagementContent .dnic-table tbody tr:hover{ background: #f1f5f9; }

#leaveManagementContent .dnic-td-name{
  font-weight: 900;
  text-align: left !important;
  padding-left: 18px !important;
  color: #1a1a1a;
}
#leaveManagementContent .dnic-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-weight: 700;
  color: #1e40af;
  font-size: 12px;
}

/* 오늘휴가 카드 */
#leaveManagementContent .dnic-card{
  border: 1px solid var(--line);
  border-radius: 12px;
  background:#fff;
  overflow: hidden;
}
#leaveManagementContent .dnic-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 14px 16px;
  border-bottom: 2px dashed #dee2e6;
  background: #f8f9fa;
}
#leaveManagementContent .dnic-count-pill{
  background: var(--indigo);
  color:#fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
#leaveManagementContent .dnic-card-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #f0f0f0;
}
#leaveManagementContent .dnic-card-item:hover{
  background: #f8fafc;
}
#leaveManagementContent .dnic-avatar{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  flex: 0 0 auto;
}
#leaveManagementContent .dnic-card-info{ flex: 1; min-width:0; }
#leaveManagementContent .dnic-name-row{
  display:flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
#leaveManagementContent .dnic-name{
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
}
#leaveManagementContent .dnic-pos{
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
#leaveManagementContent .dnic-desc{
  font-size: 13px;
  color: #4b5563;
}

/* 빈 상태 */
#leaveManagementContent .empty-state{
  padding: 18px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  color: #6b7280;
  background: #fff;
  text-align: center;
}

/* (선택) 로딩 컴포넌트 기존 유지 */
#leaveManagementContent .lm-loading{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
}
#leaveManagementContent .lm-spinner{
  width:16px;height:16px;
  border:2px solid #e5e7eb;
  border-top-color: var(--indigo);
  border-radius:50%;
  animation: lm-spin .9s linear infinite;
}
@keyframes lm-spin{ to{ transform: rotate(360deg); } }

/* 모바일 */
@media (max-width: 640px){
  #leaveManagementContent .dnic-actionbar{
    flex-direction: column;
    align-items: stretch;
  }
  #leaveManagementContent .dnic-action-left{
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== 사용자 휴가관리 페이지 전용 스타일 (v0.8.288) ===== */
/* Scope: #userLeaveContent - 다른 페이지에 영향 없음 */
/* 레이아웃: 관리자 모드처럼 1열 스택 기본 */

/* 🆕 사이드바 접힘 버그 해결: max-width 제거, width 100% */
#userLeaveContent .leave-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
}

/* 카드 스택 (1열 흐름) */
#userLeaveContent .leave-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}

#userLeaveContent .leave-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 카드 헤더 (관리자 모드 섹션 타이틀 패턴) */
#userLeaveContent .section-title-box {
  background: #f9fafb !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #e5e7eb;
  border-left: 4px solid var(--color-brand-green);
  margin: 0 !important;
}

#userLeaveContent .section-title-box h2,
#userLeaveContent .section-title-box h3 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

#userLeaveContent .section-title-box i {
  color: var(--color-brand-green);
  font-size: 18px;
}

/* 카드 본문 */
#userLeaveContent .leave-section {
  padding: 20px;
}

/* 내 휴가 현황 카드 내부: 연차/적립 2열 그리드 */
#userLeaveContent .status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#userLeaveContent .status-card {
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid;
}

#userLeaveContent .status-card h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#userLeaveContent .status-card .status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

#userLeaveContent .status-card .status-divider {
  padding-top: 8px;
  border-top: 1px solid;
}

/* 폼 레이아웃 */
#userLeaveContent .leave-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 폼 필드 2열 그리드 (카드 내부만) */
#userLeaveContent .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#userLeaveContent .form-full {
  grid-column: 1 / -1;
}

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

#userLeaveContent .form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

#userLeaveContent .form-group input,
#userLeaveContent .form-group select,
#userLeaveContent .form-group textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

#userLeaveContent .form-group input:focus,
#userLeaveContent .form-group select:focus,
#userLeaveContent .form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 3px rgba(172, 199, 49, 0.1);
}

#userLeaveContent .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* 폼 액션 (버튼 우측 정렬) */
#userLeaveContent .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

#userLeaveContent .form-actions button {
  width: auto !important;
  min-width: 160px;
  padding: 10px 24px;
}

/* 프리뷰/에러 메시지 */
#userLeaveContent .preview-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #0369a1;
}

#userLeaveContent .error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #dc2626;
}

/* 히스토리 테이블 툴바 */
#userLeaveContent .history-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

#userLeaveContent .history-toolbar .search-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

#userLeaveContent .history-toolbar input[type="text"] {
  width: 250px !important;
  max-width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

/* 반응형: 모바일에서 폼 필드/상태 카드 1열 */
@media (max-width: 768px) {
  #userLeaveContent .form-grid,
  #userLeaveContent .status-grid {
    grid-template-columns: 1fr;
  }
  
  #userLeaveContent .history-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  #userLeaveContent .history-toolbar .search-group {
    width: 100%;
  }
  
  #userLeaveContent .history-toolbar input[type="text"] {
    flex: 1;
  }
}

/* 로딩 스피너 (사용자 페이지용) */
#userLeaveContent .lm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
}

#userLeaveContent .lm-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--color-brand-green);
  border-radius: 50%;
  animation: lm-spin 0.9s linear infinite;
}

#userLeaveContent .lm-loading-text {
  color: #6b7280;
  font-size: 12px;
}

/* 빈 상태 */
#userLeaveContent .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

#userLeaveContent .empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
  display: block;
}

#userLeaveContent .empty-state p {
  margin: 0;
  font-size: 14px;
}

/* ===== 승인취소 버튼 ===== */
.btn-danger-sm {
  padding: 6px 12px;
  font-size: 12px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-danger-sm:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

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

.btn-danger-sm i {
  font-size: 11px;
}

/* ========================================
   🆕 DNIC 통합 디자인 시스템 (사용자 휴가관리 페이지)
   ======================================== */

/* 컨테이너 */
.dnic-container {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

/* 포인트 바 (Identity Bar) */
.identity-bar {
  width: 6px;
  height: 28px;
  background: #1f2937;
  border-radius: 3px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* 섹션 타이틀 박스 (포인트 바 포함) */
.dnic-section-title-box {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.dnic-section-title-box h2,
.dnic-section-title-box h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.dnic-section-title-box i {
  margin-right: 8px;
  color: #1f2937;
}

/* 버튼 통일 */
.dnic-btn-primary {
  background: #1f2937;
  color: white;
  border: none;
  height: 40px;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dnic-btn-primary:hover {
  background: #374151;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.2);
}

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

.dnic-btn-secondary {
  background: #667eea;
  color: white;
  border: none;
  height: 40px;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dnic-btn-secondary:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

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

/* 모달 backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 모달 컨텐츠 */
.modal-backdrop .modal {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 모바일 풀스크린 모달 */
@media (max-width: 768px) {
  .modal-backdrop .modal {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

/* 모달 헤더 */
.modal-backdrop .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e9ecef;
}

.modal-backdrop .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* 모달 바디 */
.modal-backdrop .modal-body {
  padding: 24px 28px;
}

/* 모달 푸터 */
.modal-backdrop .modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid #e9ecef;
}

/* 테이블 통일 */
.dnic-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.dnic-table thead {
  background: #1f2937;
}

.dnic-table thead th {
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.dnic-table tbody tr {
  border-bottom: 1px solid #e9ecef;
}

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

.dnic-table tbody tr:hover {
  background: #f1f3f5;
}

.dnic-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: #1f2937;
}

/* 버튼 그룹 */
.dnic-button-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .dnic-button-group {
    flex-direction: column;
  }
  
  .dnic-button-group button {
    width: 100%;
  }
}

/* ========================================
   🆕 오늘/예정 휴가 스케줄 박스 (DNIC)
   ======================================== */

.dnic-schedule-outer {
  width: 100%;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  box-sizing: border-box;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}

.dnic-schedule-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dnic-schedule-icon {
  font-size: 24px;
  background: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dnic-schedule-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.dnic-schedule-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 2px;
}

.dnic-schedule-main {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.dnic-schedule-date {
  font-size: 14px;
  color: #868e96;
  font-weight: 500;
}

.dnic-schedule-msg {
  padding: 12px 20px;
  background: #eff6ff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

@media (max-width: 768px) {
  .dnic-schedule-outer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dnic-schedule-msg {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* =========================================================
   Leave User - DNIC Section Layout (Desktop first)
   - 컨테이너 없이 공통 레이아웃 폭을 그대로 사용
   - 모든 섹션에 동일한 디자인 시스템 적용
========================================================= */

/* Section Container */
body.leave-user-page .dnic-section {
  width: 100%;
  margin: 0 0 32px 0;
}

/* Title & Subtitle */
body.leave-user-page .dnic-title-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

body.leave-user-page .dnic-point-bar {
  width: 6px;
  height: 28px;
  background-color: #1f2937;
  margin-right: 12px;
  border-radius: 3px;
}

body.leave-user-page .dnic-main-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: #1a1a1a;
}

body.leave-user-page .dnic-sub-title {
  font-size: 15px;
  color: #868e96;
  margin: 0 0 18px 18px;
  text-align: left;
}

/* Action Bar */
body.leave-user-page .dnic-action-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px 0;
}

body.leave-user-page .dnic-filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

body.leave-user-page .dnic-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

body.leave-user-page .dnic-input:focus {
  border-color: #667eea;
}

/* Buttons */
body.leave-user-page .dnic-btn {
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.1s;
  padding: 8px 16px;
}

body.leave-user-page .dnic-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

body.leave-user-page .dnic-btn:active {
  transform: translateY(0);
}

body.leave-user-page .dnic-btn-primary {
  background: #1f2937;
}

body.leave-user-page .dnic-btn-csv {
  background: #667eea;
}

body.leave-user-page .dnic-btn-success {
  background: #10b981;
}

body.leave-user-page .dnic-btn-danger {
  background: #dc3545;
}

/* Table Outer Box */
body.leave-user-page .dnic-table-outer {
  width: 100%;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #e9ecef;
}

body.leave-user-page .dnic-table-wrap {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  overflow: hidden;
}

/* Table Styles */
body.leave-user-page table.dnic-table2 {
  width: 100%;
  border-collapse: collapse;
}

body.leave-user-page table.dnic-table2 th {
  background: #1f2937;
  color: #fff;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

body.leave-user-page table.dnic-table2 td {
  padding: 15px 20px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #eee;
  text-align: left;
}

body.leave-user-page table.dnic-table2 tbody tr:nth-child(odd) {
  background: #fff;
}

body.leave-user-page table.dnic-table2 tbody tr:nth-child(even) {
  background: #f9fafb;
}

body.leave-user-page table.dnic-table2 tbody tr:hover {
  background: #f1f5f9;
}

/* Status Badges */
body.leave-user-page .status-badge {
  font-weight: 800;
}

body.leave-user-page .status-approved {
  color: #10b981;
}

body.leave-user-page .status-pending {
  color: #1f2937;
}

body.leave-user-page .status-rejected {
  color: #dc3545;
}

body.leave-user-page .status-canceled {
  color: #6b7280;
}

/* Empty State */
body.leave-user-page .dnic-empty {
  padding: 40px 20px;
  color: #6b7280;
  text-align: center;
  font-size: 15px;
}

/* Pagination */
body.leave-user-page .dnic-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

body.leave-user-page .dnic-pagination button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

body.leave-user-page .dnic-pagination button:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #1f2937;
}

body.leave-user-page .dnic-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body.leave-user-page .dnic-pagination button.active {
  background: #1f2937;
  color: #fff;
  border-color: #1f2937;
}

/* =========================
   DNIC WORKS - Modal (Leave)
   ========================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-section {
  width: 95%;
  max-width: 600px;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.modal-title-container { display: flex; align-items: center; margin-bottom: 8px; }
.modal-point-bar { width: 6px; height: 26px; background-color: #1f2937; margin-right: 12px; }
.modal-title { font-size: 24px; font-weight: 800; margin: 0; color: #1a1a1a; }
.modal-sub-title { font-size: 14px; color: #868e96; margin: 0 0 25px 18px; text-align: left; }

.modal-form-outer {
  width: 100%;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  box-sizing: border-box;
  border: 1px solid #e9ecef;
}

.modal-form-group { width: 100%; margin-bottom: 20px; text-align: left; }
.modal-form-label { display: block; font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
.modal-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.modal-info-text {
  margin: 5px 0 25px 0;
  font-size: 13px;
  color: #667eea;
  text-align: left;
  line-height: 1.4;
}

.modal-action-area {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.modal-btn {
  border: none;
  padding: 14px 35px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  max-width: 150px;
}

.modal-btn-submit { background-color: #1f2937; color: white; }
.modal-btn-close  { background-color: #667eea; color: white; }

@media (max-width: 768px) {
  .modal-section { width: 100%; height: 100%; max-width: none; border-radius: 0; padding: 30px 20px; }
  .modal-form-outer { padding: 20px 15px; background: #fff; border: none; }
}

/* 오늘/예정휴가 섹션 타이틀 우측 버튼 */
.leave-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.leave-action-btn {
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.leave-action-btn.primary { background: #1f2937; color: #fff; }
.leave-action-btn.secondary { background: #667eea; color: #fff; }

/* ===== [내 휴가현황] Leave Summary Section ===== */
.leave-summary-section {
  width: 100%;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.leave-summary-title {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.leave-summary-pointbar {
  width: 6px;
  height: 28px;
  background-color: #1f2937;
  margin-right: 12px;
  border-radius: 3px;
}

.leave-summary-h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: #1a1a1a;
}

.leave-summary-sub {
  font-size: 15px;
  color: #868e96;
  margin: 0 0 30px 18px;
  text-align: left;
}

/* 요약 카드 */
.leave-summary-container {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.leave-status-card {
  flex: 1;
  min-width: 500px;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.leave-card-accent {
  width: 8px;
  flex-shrink: 0;
}

.leave-accent-blue {
  background-color: #3b82f6;
}

.leave-accent-green {
  background-color: #10b981;
}

.leave-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.leave-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leave-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.leave-card-stats {
  display: flex;
  align-items: center;
  gap: 25px;
}

.leave-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leave-stat-label {
  font-size: 12px;
  color: #868e96;
  font-weight: 500;
}

.leave-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.leave-stat-result {
  padding-left: 15px;
  border-left: 1px solid #eee;
}

.leave-result-value {
  font-size: 18px;
  font-weight: 800;
}

.leave-val-blue {
  color: #3b82f6;
}

.leave-val-green {
  color: #10b981;
}

/* 프로그레스 바 */
.leave-graph-container {
  width: 100%;
  margin-top: 5px;
}

.leave-progress-bg {
  width: 100%;
  height: 8px;
  background-color: #f1f3f5;
  border-radius: 10px;
  overflow: hidden;
}

.leave-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

.leave-bg-blue {
  background-color: #3b82f6;
}

.leave-bg-green {
  background-color: #10b981;
}

.leave-graph-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #adb5bd;
  font-weight: 600;
}

/* 데스크탑 우선, 최소 대응만 */
@media (max-width: 1024px) {
  .leave-status-card {
    min-width: 100%;
  }
}

/* ===== END OF DNIC-WORKS 공통 스타일 ===== */

/* =========================================================
   User Dashboard Top Bar v2 (좌: 인사/이름 | 우: 날씨+시간)
   ========================================================= */

.gbar { margin: 12px 0; }

.gbar-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
  color: #fff;
}

/* LEFT */
.gbar-left {
  min-width: 260px;
}

.gbar-hello {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.92;
  margin-bottom: 6px;
}

.gbar-name {
  font-size: 26px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.gbar-suffix {
  font-size: 20px;
  font-weight: 900;
  opacity: 0.95;
  margin-left: 4px;
}

.gbar-sub {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.92;
}

/* RIGHT (전체 우측정렬) */
.gbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* ✅ 우측정렬 핵심 */
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  text-align: right;
}

.gbar-weather {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.gbar-wicon {
  font-size: 34px;
  line-height: 1;
}

.gbar-wmeta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.gbar-temp {
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
}

.gbar-place {
  font-size: 13px;
  font-weight: 850;
  opacity: 0.9;
}

.gbar-dt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.gbar-date {
  font-size: 14px;
  font-weight: 850;
  opacity: 0.92;
}

.gbar-time {
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 1px;
  line-height: 1;
}

/* Mobile */
@media (max-width: 700px) {
  .gbar-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .gbar-right {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }
  
  .gbar-wmeta,
  .gbar-dt {
    align-items: flex-start;
  }
  
  .gbar-weather {
    justify-content: flex-start;
  }
}

/* ========================================
   알림센터 - 새 카드 디자인 (단일 리스트)
   ======================================== */

/* 알림 카드 컨테이너 */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 알림 카드 - 단일 리스트 */
.alert-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #667eea; /* 기본 보라색 */
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alert-card:hover {
  background: #f9fafb;
  border-left-width: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 미읽음 알림 강조 */
.alert-card.unread {
  background: linear-gradient(to right, rgba(102, 126, 234, 0.04), #ffffff);
  border-left-width: 5px;
}

.alert-card.unread:hover {
  background: linear-gradient(to right, rgba(102, 126, 234, 0.06), #f9fafb);
}

/* 상태별 좌측 컬러 라인 */
.alert-card.status-approve {
  border-left-color: #acc731 !important; /* 승인 - 연두 */
}

.alert-card.status-reject {
  border-left-color: #db6736 !important; /* 반려 - 오렌지 */
}

.alert-card.status-cancel {
  border-left-color: #e91e44 !important; /* 취소 - 빨강 */
}

.alert-card.status-info {
  border-left-color: #667eea !important; /* 일반 - 보라 */
}

.alert-card.status-update {
  border-left-color: #3b82f6 !important; /* 업데이트 - 파랑 */
}

/* 아이콘 박스 */
.alert-icon-box {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.alert-card:hover .alert-icon-box {
  transform: scale(1.05);
}

/* 아이콘 타입별 스타일 */
.alert-icon-box.icon-system {
  background: rgba(102, 126, 234, 0.12);
  color: #667eea;
}

.alert-icon-box.icon-notice {
  background: rgba(255, 152, 0, 0.12);
  color: #ff9800;
}

.alert-icon-box.icon-update {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.alert-icon-box.icon-admin {
  background: rgba(219, 103, 54, 0.12);
  color: #db6736;
}

/* 컨텐츠 영역 */
.alert-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 메타 정보 (보낸이 · 타입) */
.alert-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.alert-sender {
  font-weight: 600;
  color: #374151;
}

.alert-type {
  color: #9ca3af;
}

.alert-divider {
  color: #d1d5db;
}

/* 알림 텍스트 */
.alert-text {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.alert-card.unread .alert-text {
  font-weight: 500;
  color: #111827;
}

/* 시간 (우측 정렬) */
.alert-time {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 12px;
  color: #9ca3af;
  text-align: right;
  white-space: nowrap;
  min-width: 80px;
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
  .alert-card {
    flex-direction: column;
    gap: 12px;
  }
  
  .alert-icon-box {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .alert-time {
    align-self: flex-end;
    min-width: auto;
  }
  
  .alert-meta {
    flex-wrap: wrap;
  }
}

/* 빈 상태 및 로딩 스타일 유지 */
.loading-state,
.error-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  color: #6b7280;
}

.loading-state i,
.error-state i,
.empty-state i {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 16px;
}

.loading-state i {
  color: #667eea;
}

/* ========================================
   사용자 대시보드 - 새 웰컴 위젯 바
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;800&family=Montserrat:wght@300;700;900&display=swap');

.welcome-widget-bar {
  width: 98%;
  max-width: 1600px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 20px;
  padding: 35px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 좌측 환영 문구 */
.welcome-message {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user-greeting {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.user-greeting b {
  color: #a3e635;
  text-shadow: 0 0 15px rgba(163, 230, 53, 0.3);
}

.nim-suffix {
  color: #ffffff;
  font-weight: 900;
}

.day-wish {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 400;
  opacity: 0.8;
}

/* 우측 정보 위젯 */
.info-widgets {
  display: flex;
  gap: 50px;
  align-items: center;
}

.widget-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.widget-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.widget-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #f8fafc;
}

/* 날씨 위젯 */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.temp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: #f8fafc;
}

/* 반응형: 모바일 */
@media (max-width: 1200px) {
  .welcome-widget-bar {
    flex-direction: column;
    gap: 30px;
    padding: 30px 40px;
  }

  .welcome-message {
    align-items: center;
    text-align: center;
  }

  .info-widgets {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .widget-item {
    align-items: center;
    width: 100%;
  }

  .weather-widget {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .welcome-widget-bar {
    padding: 25px 30px;
  }

  .user-greeting {
    font-size: 22px;
  }

  .day-wish {
    font-size: 13px;
  }

  .widget-value {
    font-size: 18px;
    font-weight: 700;
  }

  .temp-val {
    font-size: 22px;
  }

  .weather-icon {
    font-size: 28px;
  }

  .info-widgets {
    gap: 15px;
  }
}

/* ========================================
   알림센터 - DNIC 표준 대제목 헤더
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&display=swap');

:root {
  --dnic-navy: #1f2937;
  --dnic-blue: #3b82f6;
  --dnic-lime: #a3e635;
  --text-sub: #868e96;
}

/* 대제목 섹션 */
.main-header {
  margin-bottom: 30px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.title-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 300px;
}

.title-container {
  display: flex;
  align-items: center;
}

/* 포인트 바 디자인 */
.point-bar {
  width: 6px;
  height: 28px;
  background-color: var(--dnic-navy);
  margin-right: 12px;
  border-radius: 2px;
}

/* 메인 타이틀 - Montserrat */
.main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

/* 서브 타이틀 */
.sub-title {
  font-size: 14px;
  color: var(--text-sub);
  margin-left: 18px;
  font-weight: 500;
  margin: 0;
}

/* 알림 카운트 위젯 */
.alert-counter {
  background: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.counter-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--dnic-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.counter-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--dnic-navy);
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-title {
    font-size: 22px;
  }

  .sub-title {
    font-size: 12px;
  }

  .alert-counter {
    width: 100%;
    justify-content: center;
  }

  .counter-value {
    font-size: 18px;
  }
}

/* ========================================
   알림센터 - 받은 알림 버튼 (DNIC 표준)
   ======================================== */

/* 탭 버튼 영역 */
.notification-tab-area {
  margin: 0 0 25px 18px; /* 대제목 포인트 바 위치에 정렬 */
  display: flex;
  gap: 12px;
}

/* 슬림 & 고밀도 버튼 디자인 */
.btn-inbox {
  background: var(--dnic-navy);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.15);
  transition: all 0.2s ease;
  font-family: 'Pretendard', sans-serif;
}

/* 모든 자식 요소도 흰색 강제 */
.btn-inbox * {
  color: #ffffff !important;
}

.btn-inbox:hover {
  transform: translateY(-2px);
  background: #111827;
  color: #ffffff !important;
  box-shadow: 0 12px 25px rgba(31, 41, 55, 0.2);
}

.btn-inbox.active {
  background: var(--dnic-navy);
  color: #ffffff !important;
  box-shadow: 0 12px 25px rgba(31, 41, 55, 0.25);
}

/* 비활성 버튼 (관리자 전용) */
.btn-inbox:not(.active) {
  background: #9ca3af;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(156, 163, 175, 0.15);
}

.btn-inbox:not(.active):hover {
  background: #6b7280;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* 아이콘 및 텍스트 */
.btn-icon {
  font-size: 18px;
}

/* 알림센터 탭 버튼의 라벨만 흰색 */
.btn-inbox .btn-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff !important;
}

/* 알림 카운트 배지 - JetBrains Mono */
.alert-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--dnic-navy);
  background: var(--dnic-lime); /* 라임 그린 포인트 */
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
  .notification-tab-area {
    margin-left: 0;
    flex-direction: column;
  }

  .btn-inbox {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .btn-inbox .btn-label {
    font-size: 14px;
    color: #ffffff !important;
  }

  .btn-icon {
    font-size: 16px;
  }

  .alert-count {
    font-size: 12px;
    padding: 2px 8px;
  }
}


/* ===== 업무툴 바로가기 스타일 ===== */
.shortcut-center-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 중제목 및 디자인 바 스타일 (수직 정렬 일치) */
.dnic-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-left: 5px;
}

.dnic-design-bar {
  width: 6px;
  height: 22px;
  background-color: #a4c639; /* DNIC 시그니처 연두색 */
  border-radius: 3px;
  margin-right: 12px;
}

.dnic-section-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #333333;
}

/* 1열 4개 배치를 위한 그리드 */
.button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* 반응형: 화면이 좁아지면 유연하게 줄바꿈 */
@media (max-width: 1024px) {
  .button-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .button-grid {
    grid-template-columns: 1fr;
  }
}

/* 버튼 스타일 */
.tool-button {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #ececec;
  transition: all 0.2s ease-in-out;
}

.tool-button:hover {
  border-color: #a4c639;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.btn-icon {
  font-size: 24px;
  margin-right: 15px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fdfdfd;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.btn-info {
  display: flex;
  flex-direction: column;
}

.btn-label {
  color: #333333;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

.btn-desc {
  color: #666666;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* ===== 실적관리 페이지 스타일 ===== */
/* content-wrapper 기본 스타일 사용 (max-width 제거) */

/* 페이지 헤더 */
.header-section {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
}

.design-bar {
  width: 6px;
  height: 26px;
  background-color: var(--primary-dnic, #a3e635);
  border-radius: 2px;
  margin-right: 12px;
}

.header-section h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

/* 관리자 입력 패널 */
.admin-panel {
  background: var(--card-color, #ffffff);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  border: 1px solid var(--border-color, #e5e7eb);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  flex: 1;
}

.input-group input:focus {
  border-color: var(--primary-dnic, #a3e635);
  outline: none;
}

.btn-green {
  background: var(--primary-dnic, #a3e635);
  color: #1a2331;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-green:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 연도 탭 */
.year-tabs-container {
  position: relative;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.year-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.year-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 5px 15px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--border-color, #e5e7eb);
  color: var(--text-sub, #6b7280);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab:hover {
  background: #f3f4f6;
}

.tab.active {
  background: var(--primary-dnic, #a3e635);
  color: #1a2331;
  border-color: var(--primary-dnic, #a3e635);
  font-weight: 700;
}

.tab-add {
  border-style: dashed;
  color: var(--primary-dnic, #a3e635);
  font-weight: 700;
}

/* 실적 리스트 */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.performance-card {
  background: var(--card-color, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.performance-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.col-label {
  font-size: 0.7rem;
  color: var(--text-sub, #6b7280);
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.event-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.role-name {
  color: var(--text-sub, #6b7280);
  font-size: 0.85rem;
}

/* 반응형 */
@media (max-width: 800px) {
  .performance-grid {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group input {
    width: 100%;
  }
}

/* 빈 상태 메시지 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub, #6b7280);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* 실적 카드 액션 버튼 */
.performance-card {
  position: relative;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.btn-edit,
.btn-delete {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: transparent;
}

.btn-edit {
  color: #3b82f6;
}

.btn-edit:hover {
  background: #eff6ff;
  transform: scale(1.1);
}

.btn-delete {
  color: #ef4444;
}

.btn-delete:hover {
  background: #fef2f2;
  transform: scale(1.1);
}

/* 페이지네이션 컨트롤 */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: var(--card-color, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
}

.pagination-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-left label {
  font-size: 0.9rem;
  color: var(--text-sub, #6b7280);
  font-weight: 500;
}

.items-per-page-select {
  padding: 6px 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  background: white;
}

.items-per-page-select:focus {
  border-color: var(--primary-dnic, #a3e635);
  outline: none;
}

.page-info {
  font-size: 0.9rem;
  color: var(--text-sub, #6b7280);
  font-weight: 500;
}

.pagination-right {
  display: flex;
  gap: 8px;
}

.btn-page {
  padding: 8px 16px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  background: white;
  color: var(--text-main, #1f2937);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-page:hover:not(:disabled) {
  background: var(--primary-dnic, #a3e635);
  color: #1a2331;
  border-color: var(--primary-dnic, #a3e635);
}

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

/* 반응형: 모바일 */
@media (max-width: 600px) {
  .pagination-controls {
    flex-direction: column;
    gap: 12px;
  }

  .pagination-left,
  .pagination-right {
    width: 100%;
    justify-content: center;
  }
}

/* ===== 하위 메뉴 스타일 (출퇴근관리 등) ===== */
.menu-item.has-children > a.menu-parent {
  position: relative;
  cursor: pointer;
}

.menu-chevron {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.2s;
}

.menu-item.has-children.open .menu-chevron {
  transform: rotate(180deg);
}

.menu-children {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.menu-item.has-children.open .menu-children {
  max-height: 500px;
}

.menu-children .menu-item a {
  padding-left: 48px;
  font-size: 14px;
}

.menu-children .menu-item a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-children .menu-item.active a {
  background: rgba(102, 126, 234, 0.15);
  color: #a5b4fc;
  border-left: 3px solid #667eea;
  padding-left: calc(48px - 3px);
}

.menu-children .menu-item i {
  font-size: 14px;
  width: 18px;
}
