/* cache-bust: 20260517031750 */
/* =====================================================
   평가왕 (PyeongGaWang) — 전체 스타일시트
   ===================================================== */

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --secondary: #06B6D4;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --dark: #111827;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white:    #FFFFFF;
  --sidebar-w: 240px;
  --header-h:  60px;
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --transition: .15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  background: #ffffff; color: var(--gray-800); line-height: 1.5; min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* =====================================================
   로그인 화면
   ===================================================== */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  position: relative; overflow: hidden;
}
.login-screen::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(79,70,229,.3) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(6,182,212,.2) 0%, transparent 50%);
}
.login-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; border-radius: 50%; animation: float linear infinite; }
@keyframes float {
  0%   { transform: translateY(100vh) rotate(0);    opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .3; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.login-box { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 20px; }
.login-card {
  background: rgba(255,255,255,.06); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  padding: 44px 40px; box-shadow: 0 25px 50px rgba(0,0,0,.4);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; margin-bottom: 14px;
  box-shadow: 0 8px 25px rgba(79,70,229,.5);
}
.login-logo h1 { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.login-logo p  { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }
.login-tabs {
  display: flex; gap: 4px; background: rgba(255,255,255,.06);
  border-radius: 8px; padding: 4px; margin-bottom: 24px;
}
.login-tab {
  flex: 1; padding: 8px; border: none; background: transparent;
  color: rgba(255,255,255,.5); border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: var(--transition);
}
.login-tab.active { background: rgba(79,70,229,.6); color: #fff; }
.login-form .form-group { margin-bottom: 16px; }
.login-form .form-label {
  display: block; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.6); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.35); font-size: 14px; pointer-events: none; }
.input-icon-input { padding-left: 38px !important; }
.input-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.35); cursor: pointer; font-size: 14px; padding: 4px; }
.login-form .form-input {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm); padding: 11px 14px; color: #fff; font-size: 14px;
  transition: var(--transition);
}
.login-form .form-input::placeholder { color: rgba(255,255,255,.3); }
.login-form .form-input:focus {
  outline: none; border-color: rgba(79,70,229,.7);
  background: rgba(255,255,255,.12); box-shadow: 0 0 0 3px rgba(79,70,229,.2);
}
.btn-login {
  width: 100%; padding: 13px; margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; border-radius: var(--radius-sm); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: var(--transition); box-shadow: 0 4px 15px rgba(79,70,229,.4);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.5); }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.login-hint { margin-top: 20px; text-align: center; color: rgba(255,255,255,.35); font-size: 12px; }
.login-hint strong { color: rgba(255,255,255,.6); }

/* =====================================================
   앱 레이아웃
   ===================================================== */
.app-layout { display: flex; min-height: 100vh; background: #ffffff; }

/* ── 사이드바 ── */
.sidebar {
  width: var(--sidebar-w); background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
  transition: transform var(--transition), width var(--transition);
}
.sidebar.collapsed { width: 60px; }
.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .sidebar-company,
.sidebar.collapsed .sidebar-menu-item span,
.sidebar.collapsed .user-details,
.sidebar.collapsed .sidebar-divider { display: none; }
.sidebar.collapsed .logo-icon-sm { margin: 0 auto; }
.sidebar-header {
  padding: 0 16px; height: var(--header-h);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; flex-shrink: 0;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.logo-icon-sm {
  width: 34px; height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.sidebar-brand   { font-size: 16px; font-weight: 800; color: var(--gray-900); white-space: nowrap; }
.sidebar-company { font-size: 11px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }
.sidebar-divider {
  padding: 14px 16px 4px; font-size: 10px; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}
/* 보상 관리 섹션 — 시각적 강조 */
.sidebar-divider.divider-compensation {
  color: #b45309;
  padding-top: 18px;
  border-top: 1px solid #fde68a;
  margin-top: 4px;
}
.sidebar-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 1px 8px; border-radius: var(--radius-sm);
  color: var(--gray-600); cursor: pointer; transition: var(--transition);
  font-size: 13px; font-weight: 500; text-decoration: none;
}
.sidebar-menu-item:hover  { background: var(--gray-100); color: var(--gray-900); }
.sidebar-menu-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-menu-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
/* 잠김 메뉴 */
.sidebar-menu-locked {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 1px 8px; border-radius: var(--radius-sm);
  color: var(--gray-300); font-size: 13px; font-weight: 500;
  cursor: not-allowed; user-select: none;
}
.sidebar-menu-locked i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.sidebar-menu-locked span { flex: 1; }
.sidebar-lock-icon { font-size: 10px !important; color: var(--gray-300); width: auto !important; }
.sidebar-footer {
  padding: 12px; border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 8px;
}
.user-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.user-details { min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--gray-500); }
.btn-logout {
  width: 30px; height: 30px; border-radius: var(--radius-sm); flex-shrink: 0;
  border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-500); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 14px; transition: var(--transition);
}
.btn-logout:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-icon-sm {
  width: 30px; height: 30px; border-radius: var(--radius-sm); flex-shrink: 0;
  border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-500); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 13px; transition: var(--transition);
}
.btn-icon-sm:hover { background: var(--gray-100); color: var(--gray-900); }

/* ── 메인 래퍼 ── */
.main-wrapper { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; transition: margin-left var(--transition); }
.sidebar.collapsed ~ .main-wrapper { margin-left: 60px; }
.top-header {
  height: var(--header-h); background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; padding: 0 24px; gap: 12px;
  position: sticky; top: 0; z-index: 50;
}
.sidebar-toggle {
  width: 32px; height: 32px; border-radius: var(--radius-sm); flex-shrink: 0;
  border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-600); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 15px; transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--gray-100); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-company { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.main-content { flex: 1; padding: 24px; background: #ffffff; }

/* =====================================================
   페이지 헤더
   ===================================================== */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.page-title   { font-size: 20px; font-weight: 800; color: var(--gray-900); line-height: 1.2; }
.page-subtitle { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

/* =====================================================
   카드
   ===================================================== */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card-header {
  padding: 14px 20px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px; border-top: 1px solid var(--gray-200);
  background: var(--gray-50); border-radius: 0 0 var(--radius) var(--radius);
}
.p-0 { padding: 0 !important; }

/* =====================================================
   버튼
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; font-size: 13px; font-weight: 600; transition: var(--transition);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.btn-primary   { background: var(--primary);  color: #fff; border-color: var(--primary); }
.btn-primary:hover   { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-success   { background: var(--success);  color: #fff; border-color: var(--success); }
.btn-success:hover   { background: #059669; border-color: #059669; }
.btn-danger    { background: var(--danger);   color: #fff; border-color: var(--danger); }
.btn-danger:hover    { background: #DC2626; border-color: #DC2626; }
.btn-warning   { background: var(--warning);  color: #fff; border-color: var(--warning); }
.btn-warning:hover   { background: #D97706; }
.btn-dark      { background: var(--gray-800); color: #fff; border-color: var(--gray-800); }
.btn-info      { background: var(--secondary);color: #fff; border-color: var(--secondary); }
.btn:disabled  { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* =====================================================
   폼
   ===================================================== */
.form-group  { margin-bottom: 16px; }
.form-label  { display: block; font-size: 12px; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-input  {
  width: 100%; padding: 9px 12px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--gray-800);
  background: var(--white); transition: var(--transition);
  font-family: inherit;
}
.form-input:focus  { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-input:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }
.form-input::placeholder { color: var(--gray-400); }
select.form-input  { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* 앱 내 input-icon (일반 영역) */
.main-content .input-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 14px; pointer-events: none; }
.main-content .input-icon-wrap { position: relative; }
.main-content .input-icon-input { padding-left: 34px !important; }

/* =====================================================
   테이블
   ===================================================== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  background: var(--gray-50); color: var(--gray-600);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 14px; border-bottom: 2px solid var(--gray-200); white-space: nowrap;
}
.table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--gray-50); }
.table .text-center { text-align: center; }

/* =====================================================
   배지
   ===================================================== */
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-primary   { background: var(--primary-light);          color: var(--primary); }
.badge-secondary { background: rgba(6,182,212,.1);             color: var(--secondary); }
.badge-success   { background: rgba(16,185,129,.1);            color: var(--success); }
.badge-warning   { background: rgba(245,158,11,.1);            color: #D97706; }
.badge-danger    { background: rgba(239,68,68,.1);             color: var(--danger); }
.badge-dark      { background: var(--gray-800);                color: #fff; }
.badge-info      { background: rgba(6,182,212,.15);            color: var(--secondary); }
.badge-gray      { background: var(--gray-100);                color: var(--gray-600); }

/* 등급 배지 */
.badge-s { background: linear-gradient(135deg,#ffd700,#ff8c00); color:#fff; font-size:12px; font-weight:800; padding:4px 10px; }
.badge-a { background: linear-gradient(135deg,#4F46E5,#7C3AED); color:#fff; font-size:12px; font-weight:800; padding:4px 10px; }
.badge-b { background: linear-gradient(135deg,#10B981,#059669); color:#fff; font-size:12px; font-weight:800; padding:4px 10px; }
.badge-c { background: linear-gradient(135deg,#F59E0B,#D97706); color:#fff; font-size:12px; font-weight:800; padding:4px 10px; }
.badge-d { background: linear-gradient(135deg,#6B7280,#4B5563); color:#fff; font-size:12px; font-weight:800; padding:4px 10px; }

/* =====================================================
   모달
   ===================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-dialog {
  background: var(--white); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 100%; max-width: 520px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px); transition: transform .2s ease;
}
.modal-sm { max-width: 400px; }
.modal-md { max-width: 600px; }
.modal-lg { max-width: 860px; }
.modal-xl { max-width: 1100px; }
.modal-xxl { width: 1200px !important; max-width: 95vw !important; }
@media (max-width: 1300px) { .modal-xxl { width: 95vw !important; } }
.modal-overlay.open .modal-dialog { transform: translateY(0); }
.modal-header {
  padding: 18px 24px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.modal-title  { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.modal-close  {
  width: 30px; height: 30px; border-radius: var(--radius-sm); border: none;
  background: var(--gray-100); color: var(--gray-600); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: var(--transition); line-height: 1;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }
.modal-body   { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 24px; border-top: 1px solid var(--gray-200);
  display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0;
}

/* =====================================================
   토스트
   ===================================================== */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--gray-900); color: #fff;
  padding: 12px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: 13px;
  display: flex; align-items: center; gap: 10px; min-width: 260px;
  pointer-events: all; opacity: 0; transform: translateX(100%);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show    { opacity: 1; transform: translateX(0); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warning { background: var(--warning); color: #fff; }
.toast-info    { background: var(--primary); }
.toast-close   { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.toast-close:hover { color: #fff; }

/* =====================================================
   페이지네이션
   ===================================================== */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; padding-top: 16px; flex-wrap: wrap; }
.page-btn {
  min-width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-700);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: var(--transition); padding: 0 8px;
}
.page-btn:hover  { background: var(--gray-100); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-dots       { padding: 0 4px; color: var(--gray-400); }

/* =====================================================
   스피너 / 로더
   ===================================================== */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
.spinner-dark { border-color: var(--gray-200); border-top-color: var(--primary); }
.spinner-lg   { width: 40px; height: 40px; border-width: 4px; }
.page-loader  { display: flex; align-items: center; justify-content: center; padding: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   빈 상태
   ===================================================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; opacity: .5; }
.empty-state p { font-size: 14px; color: var(--gray-500); }

/* =====================================================
   통계 카드
   ===================================================== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 20px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow);
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
}
.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }
.bg-danger  { background: var(--danger); }
.bg-secondary { background: var(--secondary); }
.stat-info {}
.stat-val   { font-size: 26px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* =====================================================
   폼 섹션
   ===================================================== */
.form-section { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.form-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.form-section-title { font-size: 14px; font-weight: 700; color: var(--gray-700); margin-bottom: 16px; }

/* =====================================================
   검색/필터 바
   ===================================================== */
.search-bar {
  position: relative; display: flex; align-items: center;
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); overflow: hidden;
}
.search-bar input { border: none; outline: none; padding: 9px 12px 9px 36px; font-size: 13px; flex: 1; color: var(--gray-800); }
.search-bar-icon { position: absolute; left: 10px; color: var(--gray-400); font-size: 14px; }

/* =====================================================
   온보딩
   ===================================================== */
.onboarding-container { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: flex-start; }
.ob-steps { display: flex; flex-direction: column; gap: 8px; }
.ob-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--white);
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  transition: var(--transition);
}
.ob-step.active { border-color: var(--primary); background: var(--primary-light); }
.ob-step.done   { border-color: var(--success); background: #f0fdf4; }
.ob-step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--gray-200); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px; color: var(--gray-600);
}
.ob-step.active .ob-step-num { background: var(--primary); color: #fff; }
.ob-step.done   .ob-step-num { background: var(--success); color: #fff; }
.ob-step-title  { font-weight: 600; font-size: 13px; }
.ob-step.active .ob-step-title { color: var(--primary); }
.ob-step-desc   { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.ob-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--gray-200);
}

/* =====================================================
   KPI 목표 설정
   ===================================================== */
.kpi-goal-row {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.kpi-goal-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.kpi-goal-num {
  width: 24px; height: 24px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.kpi-goal-name { font-weight: 600; flex: 1; }
.kpi-goal-body { padding: 16px; }
.weight-checker { padding: 10px 16px; border-radius: 6px; font-size: 13px; }
.weight-ok   { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.weight-warn { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* =====================================================
   역량평가
   ===================================================== */
.comp-item {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.comp-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.comp-item-name   { font-weight: 600; flex: 1; }
.comp-weight      { font-size: 12px; color: var(--gray-500); }
.comp-score-row   { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.score-btns       { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.score-btn {
  padding: 6px 14px; border-radius: 6px; border: 1.5px solid var(--gray-300);
  background: var(--white); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: var(--transition); color: var(--gray-600);
}
.score-btn:hover  { border-color: var(--primary); color: var(--primary); }
.score-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.behavior-anchors {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px;
  font-size: 12px;
}
.behavior-anchors strong { display: block; margin-bottom: 6px; font-size: 13px; color: var(--gray-700); }
.behavior-anchors ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.behavior-anchors li { color: var(--gray-600); padding-left: 14px; position: relative; }
.behavior-anchors li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); font-size: 10px; top: 2px; }
.evaluatee-name {
  font-size: 15px; font-weight: 700; padding: 12px 16px;
  background: var(--primary-light); border-radius: var(--radius);
  color: var(--primary); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

/* 평가자 오류 경고 */
.error-alert {
  background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px;
}
.error-tag {
  background: #fff; border: 1px solid #f59e0b; border-radius: 4px;
  padding: 2px 8px; font-size: 12px; color: #92400e;
}

/* =====================================================
   다면평가
   ===================================================== */
.mr-question {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.mr-q-text { font-weight: 600; font-size: 14px; margin-bottom: 14px; color: var(--gray-800); }
.mr-score-row { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.mr-score-row .score-btn { flex: 1; min-width: 56px; text-align: center; padding: 10px 4px; }
.score-num   { display: block; font-size: 16px; font-weight: 700; }
.score-label { display: block; font-size: 10px; margin-top: 2px; color: inherit; opacity: .8; }

/* =====================================================
   팀원 목록 (역량평가)
   ===================================================== */
.member-list   { overflow-y: auto; max-height: 520px; }
.member-item   {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--gray-100); transition: var(--transition);
}
.member-item:hover  { background: var(--primary-light); }
.member-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.user-avatar-sm {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}

/* =====================================================
   결과 화면
   ===================================================== */
.result-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.result-period  { font-weight: 700; font-size: 16px; margin-bottom: 14px; color: var(--gray-800); }
.result-scores  { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.score-item     { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; }
.score-item .score-val   { font-size: 22px; font-weight: 800; color: var(--gray-800); }
.score-item.highlight .score-val { font-size: 28px; color: var(--primary); }
.score-item .score-label { font-size: 11px; color: var(--gray-500); }

/* =====================================================
   보고서 / 인쇄
   ===================================================== */
.report-personal {
  max-width: 900px; margin: 0 auto; background: var(--white);
  padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.report-header { text-align: center; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 3px solid var(--primary); }
.report-title  { font-size: 24px; font-weight: 800; color: var(--gray-900); }
.report-period { font-size: 14px; color: var(--gray-500); margin-top: 6px; }
.report-section { margin-top: 28px; }
.report-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.score-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px;
}
.score-block {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.score-block.highlight { background: var(--primary-light); border-color: var(--primary); }
.score-block-val   { font-size: 28px; font-weight: 800; color: var(--gray-800); }
.score-block.highlight .score-block-val { color: var(--primary); }
.score-block-label { font-size: 12px; color: var(--gray-500); margin-top: 6px; }

/* 등급 분포 */
.grade-dist { display: flex; gap: 16px; align-items: flex-end; padding: 8px 0; }
.grade-dist-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.grade-dist-count { font-size: 20px; font-weight: 700; color: var(--gray-800); }
.grade-dist-bar { width: 40px; background: var(--gray-100); border-radius: 4px 4px 0 0; height: 80px; display: flex; align-items: flex-end; overflow: hidden; }
.grade-dist-fill { width: 100%; border-radius: 4px 4px 0 0; min-height: 4px; transition: height .4s ease; }
.grade-dist-fill.grade-s { background: linear-gradient(180deg,#ffd700,#ff8c00); }
.grade-dist-fill.grade-a { background: linear-gradient(180deg,#7C3AED,#4F46E5); }
.grade-dist-fill.grade-b { background: linear-gradient(180deg,#10B981,#059669); }
.grade-dist-fill.grade-c { background: linear-gradient(180deg,#F59E0B,#D97706); }
.grade-dist-fill.grade-d { background: linear-gradient(180deg,#9CA3AF,#6B7280); }

@media print {
  .sidebar, .top-header, .page-actions, .no-print { display: none !important; }
  .main-wrapper { margin-left: 0 !important; }
  .main-content { padding: 0 !important; }
  .report-personal { box-shadow: none; padding: 0; }
  .card { box-shadow: none; }
}

/* =====================================================
   조직도 v2 — 계층형 트리 UI
   ===================================================== */

/* 통계 카드 행 */
.dept-stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 768px) { .dept-stat-row { grid-template-columns: 1fr 1fr; } }
.dept-stat-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
  position: relative;
}
.dept-stat-card.dept-stat-warn { border-color: #fde68a; background: #fffbeb; }
.dept-stat-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.dept-stat-val   { font-size: 24px; font-weight: 800; color: var(--gray-800); line-height: 1; }
.dept-stat-label { font-size: 12px; color: var(--gray-500); margin-top: 3px; }
.dept-stat-badge {
  position: absolute; top: 10px; right: 10px;
  color: #b45309; font-size: 14px;
}

/* 평가 연동 안내 바 */
.dept-eval-guide {
  display: flex; align-items: center; gap: 12px;
  background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: 10px; padding: 12px 16px;
  font-size: 12px; color: #0369a1; margin-top: 16px;
}
.dept-eval-guide i { font-size: 16px; flex-shrink: 0; }
.dept-eval-guide strong { display: block; font-weight: 700; margin-bottom: 2px; color: #0c4a6e; }

/* 트리 카드 컨테이너 */
.dept-tree-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 14px;
  overflow: hidden;
}
.dept-tree-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.dept-tree-legend {
  display: flex; gap: 16px; font-size: 12px; color: var(--gray-500);
}
.dept-tree-legend span { display: flex; align-items: center; gap: 5px; }
.dept-tree-actions-bar { display: flex; gap: 6px; }

/* 빈 상태 */
.dept-empty-state {
  text-align: center; padding: 64px 32px;
}
.dept-empty-state i    { font-size: 48px; color: var(--gray-300); display: block; margin-bottom: 16px; }
.dept-empty-state p    { font-size: 16px; font-weight: 600; color: var(--gray-500); margin-bottom: 6px; }
.dept-empty-state small { font-size: 13px; color: var(--gray-400); display: block; margin-bottom: 20px; }

/* ── 트리 노드 ── */
.dt-node { position: relative; }

.dt-row {
  display: flex; align-items: center; gap: 0;
  padding: 0 16px 0 0;
  min-height: 56px;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.dt-row:hover { background: #f8faff; }
.dt-inactive { opacity: .55; }

/* 들여쓰기 + 연결선 */
.dt-indent {
  flex-shrink: 0; position: relative; display: flex;
  align-items: center; justify-content: flex-end; height: 56px;
}
.dt-branch-line {
  position: absolute; right: 0; top: 50%;
  width: 14px; height: 1px; background: var(--gray-300);
}
.dt-indent::before {
  /* 수직 연결선 */
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  width: 1px; background: var(--gray-200);
}

/* 접기/펼치기 버튼 */
.dt-toggle {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid var(--gray-200); border-radius: 6px;
  background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--gray-500);
  transition: all .15s; margin: 0 8px;
}
.dt-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.dt-toggle-leaf { border-color: transparent; background: transparent; cursor: default; }
.dt-toggle-leaf:hover { border-color: transparent; background: transparent; color: var(--gray-300); }
.dt-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gray-300); display: block;
}

/* depth별 아이콘 색상 */
.dt-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; margin-right: 10px;
}
.dt-icon.depth-0 { background: #eff6ff; color: #1d4ed8; }
.dt-icon.depth-1 { background: #ecfeff; color: #0891b2; }
.dt-icon.depth-2 { background: #f0fdf4; color: #059669; }
.dt-icon.depth-3,.dt-icon.depth-4 { background: #faf5ff; color: #7c3aed; }

/* 이름 + 메타 */
.dt-info { flex: 1; min-width: 0; padding: 12px 0; }
.dt-name-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px;
}
.dt-name { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.dt-code {
  font-size: 11px; color: var(--gray-400); background: var(--gray-100);
  border-radius: 4px; padding: 1px 6px; font-family: monospace;
}
.dt-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.dt-head-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #6d28d9; font-weight: 600;
}
.dt-head-chip i { font-size: 11px; }
.dt-head-empty {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--gray-400);
}
.dt-member-count {
  font-size: 12px; color: var(--gray-500);
  display: flex; align-items: center; gap: 4px;
}
.dt-total-hint { color: var(--gray-400); font-size: 11px; }

/* 액션 버튼 */
.dt-actions {
  display: flex; gap: 4px; flex-shrink: 0; opacity: 0;
  transition: opacity .15s;
}
.dt-row:hover .dt-actions { opacity: 1; }

/* btn-xs 유틸리티 */
.btn-xs {
  padding: 4px 8px; font-size: 11px; border-radius: 5px;
}

/* 하위부서 래퍼 (접기) */
.dt-children { overflow: hidden; }
.dt-children.dt-collapsed { display: none; }

/* 기존 호환 (혹시 다른 곳에서 쓰일 경우) */
.dept-tree-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--gray-100);
}
.dept-tree-item:hover { background: var(--gray-50); }
.dept-tree-content { display: flex; align-items: center; flex: 1; gap: 6px; }
.dept-tree-actions { display: flex; gap: 4px; }

/* =====================================================
   알림
   ===================================================== */
.alert {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.5;
}
.alert i { flex-shrink: 0; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.alert-danger  { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* =====================================================
   기간/평가 카드
   ===================================================== */
.period-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; }
.period-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px;
}
.period-name { font-weight: 600; margin-bottom: 6px; }
.period-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }

/* =====================================================
   정보 그리드
   ===================================================== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 11px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.info-val   { font-size: 14px; color: var(--gray-800); font-weight: 500; }
.form-text-val {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 10px 12px; white-space: pre-wrap;
  font-size: 13px; color: var(--gray-700); min-height: 40px;
}

/* =====================================================
   체크박스 그룹
   ===================================================== */
.checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox-item  { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--gray-700); }
.checkbox-item input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

/* =====================================================
   탭
   ===================================================== */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; gap: 0; overflow-x: auto; }
.tab {
  padding: 10px 18px; border: none; background: transparent;
  color: var(--gray-500); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.tab:hover  { color: var(--gray-800); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* =====================================================
   모바일 반응형
   ===================================================== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrapper { margin-left: 0 !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .onboarding-container { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
  .page-header { flex-direction: column; }
  .form-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .login-card { padding: 32px 24px; }
  .stats-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   새 로그인 화면
   ===================================================== */
.login-screen-new {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card-new {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-logo-new {
  text-align: center;
  margin-bottom: 24px;
}
.login-logo-img { width: 160px; height: auto; display: block; margin: 0 auto 8px; }
.sidebar-logo-img { width: 72px; height: auto; display: block; flex-shrink: 0; }
.sidebar-logo { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 2px 0; }
.sidebar-company { font-size: 11px; color: #94a3b8; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.login-desc { font-size: 13px; color: #1a56db; font-weight: 600; margin-top: 2px; }
.login-title-new {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 24px;
}
.login-field {
  margin-bottom: 16px;
}
.login-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.login-label i { margin-right: 4px; color: #1a56db; }
.login-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  background: #f8fafc;
}
.login-input:focus { border-color: #1a56db; background: #fff; }
.login-pw-wrap { position: relative; }
.login-pw-wrap .login-input { padding-right: 44px; }
.login-eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 15px;
  padding: 0;
}
.login-eye-btn:hover { color: #1a56db; }
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: -4px;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}
.login-remember input[type=checkbox] { accent-color: #1a56db; width: 15px; height: 15px; }
.login-find-pw {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: #1a56db; text-decoration: underline; padding: 0;
}
.login-find-pw:hover { color: #1e3a8a; }
.login-btn-new {
  width: 100%;
  padding: 13px;
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: 0.3px;
}
.login-btn-new:hover { background: #1e3a8a; }
.login-btn-new:disabled { opacity: 0.7; cursor: not-allowed; }
.login-footer-new {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.login-company-name { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.login-company-info { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.login-company-info a { color: #1a56db; text-decoration: none; }
.login-company-info a:hover { text-decoration: underline; }
.login-copyright { font-size: 11px; color: #94a3b8; }

/* 서브도메인 로그인 - 회사 배지 */
.login-company-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  border: 1px solid #c4b5fd;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #4c1d95;
}
.login-company-badge i {
  color: #7c3aed;
}

/* =====================================================
   인사기록부 전용 스타일
   ===================================================== */

/* 페이지 전체 래퍼 */
.profile-page { max-width: 1100px; margin: 0 auto; }

/* 상단 바 (뒤로가기 + 수정) */
.profile-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}

/* 프로필 히어로 카드 */
.profile-hero {
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(135deg, #1a56db 0%, #1e429f 100%);
  border-radius: 16px; padding: 28px 32px; margin-bottom: 24px; color: #fff;
}
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar-img {
  width: 88px; height: 88px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4); object-fit: cover;
}
.profile-avatar-placeholder {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; color: #fff;
}
.profile-hero-info { flex: 1; }
.profile-hero-name {
  font-size: 26px; font-weight: 800; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.profile-hero-sub {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; opacity: 0.9; margin-bottom: 6px;
}
.profile-hero-sub span { display: flex; align-items: center; gap: 5px; }
.profile-hero-sub i { opacity: 0.7; }

/* 탭 */
.profile-tabs-wrap {
  background: #fff; border-radius: 12px; margin-bottom: 20px;
  border: 1px solid var(--gray-200); overflow: hidden;
}
.profile-tabs {
  display: flex; overflow-x: auto; border-bottom: 2px solid var(--gray-200);
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  display: flex; align-items: center; gap: 6px; padding: 14px 20px;
  background: none; border: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px; cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--gray-500); white-space: nowrap; transition: all .2s;
}
.profile-tab:hover { color: var(--primary); background: var(--primary-light); }
.profile-tab.active {
  color: var(--primary); border-bottom-color: var(--primary);
  font-weight: 700; background: var(--primary-light);
}
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray-200); color: var(--gray-600);
  font-size: 11px; font-weight: 700; border-radius: 10px;
  padding: 1px 7px; min-width: 20px;
}
.profile-tab.active .tab-badge { background: var(--primary); color: #fff; }

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

/* 섹션 그리드 (카드 2열) */
.profile-section-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px;
}
@media (max-width: 768px) { .profile-section-grid { grid-template-columns: 1fr; } }

/* 프로필 카드 */
.profile-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
}
.profile-card-title {
  font-size: 14px; font-weight: 700; color: var(--gray-700);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 8px;
}
.profile-card-title i { color: var(--primary); }

/* 빈 상태 */
.profile-empty {
  text-align: center; padding: 64px 24px; color: var(--gray-400);
  background: #fff; border-radius: 12px; border: 1px dashed var(--gray-200);
}
.profile-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: .4; }
.profile-empty p { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--gray-500); }
.profile-empty small { font-size: 13px; }

/* KPI 달성률 색상 */
.kpi-rate { font-weight: 700; }
.kpi-rate-good { color: #059669; }
.kpi-rate-ok   { color: #d97706; }
.kpi-rate-bad  { color: #dc2626; }

/* 타임라인 (인사이력) */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--gray-200);
}
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-dot {
  position: absolute; left: -20px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-body {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 12px 16px;
}
.timeline-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.timeline-type { font-weight: 700; color: var(--primary); font-size: 14px; }
.timeline-date { font-size: 12px; color: var(--gray-500); }
.timeline-changes {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px;
}
.timeline-changes span {
  font-size: 12px; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 4px; padding: 2px 8px; color: var(--gray-700);
}
.timeline-reason { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.timeline-orderno { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* =====================================================
   상단 헤더 직원 검색 자동완성
   ===================================================== */
.header-search-wrap {
  position: relative; flex: 1; max-width: 320px; margin: 0 16px;
}
.header-search-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 1000; overflow: hidden;
}
.header-search-dropdown.open { display: block; }
.hs-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer; transition: background .15s;
}
.hs-item:hover { background: var(--primary-light); }
.hs-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,var(--primary),#1e429f);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.hs-info { flex: 1; min-width: 0; }
.hs-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.hs-sub { font-size: 12px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-arrow { color: var(--gray-300); font-size: 11px; }
.hs-empty { padding: 12px 16px; font-size: 13px; color: var(--gray-400); text-align: center; }

/* =====================================================
   인사기록부 — 현재 진행중 평가 상태 카드
   ===================================================== */
.curr-eval-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd; border-radius: 14px;
  padding: 18px 24px; margin-bottom: 20px;
}
.curr-eval-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.curr-eval-label {
  font-size: 12px; font-weight: 700; color: #0369a1;
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 6px;
}
.curr-eval-body {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start;
}
@media (max-width: 640px) { .curr-eval-body { grid-template-columns: 1fr; } }
.curr-eval-name { font-size: 17px; font-weight: 800; color: #0c4a6e; margin-bottom: 6px; }
.curr-eval-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #0369a1; margin-bottom: 10px;
}
.curr-eval-meta span { display: flex; align-items: center; gap: 4px; }
.curr-eval-types { display: flex; gap: 6px; flex-wrap: wrap; }
.curr-eval-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.chip-mbo  { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.chip-comp { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.chip-mr   { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }

.curr-eval-stats {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 220px;
  background: rgba(255,255,255,.7); border-radius: 10px;
  padding: 12px 16px; border: 1px solid #bae6fd;
}
.curr-eval-stat-item { display: flex; flex-direction: column; gap: 3px; }
.curr-eval-stat-label { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }
.curr-eval-stat-val { font-size: 13px; font-weight: 600; color: #1e293b; }

/* 현재 평가 없음 상태 */
.curr-eval-card.curr-eval-empty {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.curr-eval-empty .curr-eval-label { color: var(--gray-400); }
.curr-eval-empty-body {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.curr-eval-empty-body > i {
  font-size: 28px; color: var(--gray-300); flex-shrink: 0;
}
.curr-eval-empty-title {
  font-size: 14px; font-weight: 700; color: var(--gray-500); margin: 0 0 3px;
}
.curr-eval-empty-desc {
  font-size: 12px; color: var(--gray-400); margin: 0;
}

.curr-kpi-bar-wrap {
  height: 6px; background: #e0f2fe; border-radius: 3px;
  overflow: hidden; margin-bottom: 3px; width: 140px;
}
.curr-kpi-bar-fill { height: 100%; background: #0284c7; border-radius: 3px; transition: width .4s; }

/* =====================================================
   평가기간 목록 — 카드형 UI
   ===================================================== */

/* 빈 히어로 */
.period-empty-hero {
  text-align: center; padding: 80px 32px;
  background: #fff; border-radius: 16px;
  border: 2px dashed var(--gray-200);
}
.period-empty-icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  background: var(--primary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--primary);
}
.period-empty-hero h3 { font-size: 20px; font-weight: 700; color: var(--gray-700); margin-bottom: 10px; }
.period-empty-hero p  { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }

/* 카드 목록 */
.period-list { display: flex; flex-direction: column; gap: 12px; }
.period-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 18px 24px;
  display: flex; align-items: center; gap: 20px;
  transition: box-shadow .2s, border-color .2s;
}
.period-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--primary); }
.period-card-left  { flex: 1; min-width: 0; }
.period-card-right { flex-shrink: 0; display: flex; gap: 8px; align-items: center; }
.period-card-badge { margin-bottom: 6px; }
.period-card-name  { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
.period-card-meta  {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--gray-500);
}
.period-card-meta span { display: flex; align-items: center; gap: 4px; }

/* =====================================================
   평가기간 상세 — 히어로
   ===================================================== */
.period-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
  border-radius: 16px; padding: 24px 32px; margin-bottom: 20px; color: #fff;
}
@media (max-width: 640px) { .period-hero { flex-direction: column; align-items: flex-start; } }
.period-hero-info { flex: 1; min-width: 0; }
.period-hero-name {
  font-size: 22px; font-weight: 800; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.period-hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; opacity: .85;
}
.period-hero-meta span { display: flex; align-items: center; gap: 5px; }

/* 히어로 통계 */
.period-hero-stats {
  display: flex; gap: 6px; flex-shrink: 0;
}
.ph-stat {
  background: rgba(255,255,255,.15); border-radius: 10px;
  padding: 12px 16px; text-align: center; min-width: 68px;
}
.ph-stat-val   { font-size: 22px; font-weight: 800; line-height: 1; }
.ph-stat-label { font-size: 11px; opacity: .8; margin-top: 4px; white-space: nowrap; }

/* =====================================================
   3단계 위자드
   ===================================================== */
.wizard-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.wizard-step {
  display: flex; align-items: center; gap: 10px;
  flex: 1; position: relative;
}
.wizard-step:not(:last-child)::after {
  content: ''; flex: 1; height: 2px;
  background: var(--gray-200); margin: 0 8px;
}
.wizard-step.done::after, .wizard-step.active::after { background: var(--primary); }
.ws-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--gray-200); color: var(--gray-500);
}
.wizard-step.active .ws-num { background: var(--primary); color: #fff; }
.wizard-step.done   .ws-num { background: var(--success); color: #fff; }
.ws-label {
  font-size: 13px; font-weight: 600; color: var(--gray-400);
  white-space: nowrap;
}
.wizard-step.active .ws-label { color: var(--primary); }
.wizard-step.done   .ws-label { color: var(--success); }

/* 평가유형 체크카드 */
.eval-type-checks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.check-card {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px;
  border: 2px solid var(--gray-200); background: var(--gray-50);
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gray-600);
  transition: all .2s; user-select: none;
}
.check-card input { display: none; }
.check-card:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.check-card.checked { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.check-card.checked i { color: var(--primary); }

/* 가중치 행 */
.weight-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.weight-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--gray-700);
}
.weight-item .form-input { width: 72px; text-align: center; }
.weight-total { font-size: 18px; color: var(--success); }

/* 등급 기준 행 */
.grade-criteria-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.grade-ci {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-700);
}
.grade-ci .form-input { width: 64px; text-align: center; }

/* 3단계 확인 화면 */
.wizard-confirm { margin-top: 8px; }
.confirm-hero {
  text-align: center; padding: 24px 16px;
  background: var(--primary-light); border-radius: 12px;
  margin-bottom: 16px;
}
.confirm-hero i  { font-size: 36px; color: var(--primary); margin-bottom: 12px; display: block; }
.confirm-hero h3 { font-size: 18px; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
.confirm-hero p  { font-size: 14px; color: var(--gray-500); }
.confirm-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px;
}
@media (max-width: 480px) { .confirm-grid { grid-template-columns: 1fr; } }
.confirm-item {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.ci-label { font-size: 11px; color: var(--gray-500); font-weight: 700; text-transform: uppercase; }
.ci-val   { font-size: 13px; color: var(--gray-800); font-weight: 600; }

/* =====================================================
   평가기간 상세 — 진행 현황 테이블 내 요소
   ===================================================== */

/* 평가자 칩 */
.evaluator-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid #bfdbfe; border-radius: 20px;
  padding: 3px 10px; font-size: 12px; font-weight: 600;
}

/* KPI 미니 바 (진행 현황 테이블) */
.kpi-mini-bar {
  height: 6px; background: var(--gray-200); border-radius: 3px;
  overflow: hidden; width: 80px; margin-bottom: 2px;
}
.kpi-mini-fill { height: 100%; background: var(--primary); border-radius: 3px; }

/* 테이블 래퍼 (가로 스크롤) */
.table-wrap { overflow-x: auto; }

/* period-detail 페이지 레이아웃 */
.period-detail-page { max-width: 1200px; margin: 0 auto; }

/* =====================================================
   직급/직책 관리 페이지
   ===================================================== */

/* 페이지 레이아웃 — 좌우 분할 */
.jg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .jg-layout { grid-template-columns: 1fr; }
}

/* 카드 헤더 */
.jg-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.jg-card-title {
  display: flex; align-items: center; gap: 10px;
}
.jg-card-title h3 {
  font-size: 15px; font-weight: 700; color: var(--gray-800); margin: 0;
}
.jg-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.jg-card-icon.grade  { background: #eff6ff; color: #2563eb; }
.jg-card-icon.pos    { background: #f0fdf4; color: #16a34a; }

/* 도움말 배너 */
.jg-help-banner {
  margin: 16px 20px 0;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px; color: var(--gray-500);
  display: flex; align-items: flex-start; gap: 8px;
}
.jg-help-banner i { color: #94a3b8; margin-top: 1px; flex-shrink: 0; }

/* 직급 행(row) */
.jg-list { padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 8px; }

.jg-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  transition: box-shadow .15s, border-color .15s;
  cursor: default;
}
.jg-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); border-color: var(--gray-200); }

/* 직급 레벨 뱃지 */
.jg-level-badge {
  min-width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: #eff6ff; color: #2563eb;
  flex-shrink: 0;
}

/* 직책 is_manager 뱃지 */
.jg-manager-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: #ecfdf5; color: #059669;
  border: 1px solid #a7f3d0;
  flex-shrink: 0;
}
.jg-staff-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: var(--gray-50); color: var(--gray-400);
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
}

/* 직급/직책 이름/코드 영역 */
.jg-info { flex: 1; min-width: 0; }
.jg-name {
  font-size: 14px; font-weight: 700; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0 0 2px;
}
.jg-meta {
  font-size: 11px; color: var(--gray-400);
  display: flex; align-items: center; gap: 8px;
}
.jg-meta-code { font-family: monospace; background: var(--gray-100); padding: 1px 5px; border-radius: 4px; }
.jg-desc { font-size: 11px; color: var(--gray-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 비활성 상태 */
.jg-row.inactive { opacity: .55; }
.jg-inactive-chip {
  font-size: 10px; font-weight: 700; color: var(--gray-400);
  background: var(--gray-100); border-radius: 4px;
  padding: 1px 6px; flex-shrink: 0;
}

/* 액션 버튼 그룹 */
.jg-actions {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.jg-btn {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
  background: #fff; color: var(--gray-500);
  cursor: pointer; font-size: 12px;
  transition: background .12s, color .12s;
}
.jg-btn:hover { background: var(--gray-50); color: var(--gray-700); }
.jg-btn.edit:hover  { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.jg-btn.del:hover   { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.jg-btn.toggle:hover { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }

/* 빈 상태 */
.jg-empty {
  text-align: center; padding: 40px 20px;
  color: var(--gray-400); font-size: 13px;
}
.jg-empty i { font-size: 28px; margin-bottom: 10px; display: block; opacity: .4; }

/* 정렬 안내 칩 */
.jg-sort-info {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--gray-400);
  padding: 0 20px 12px;
}
.jg-sort-info i { font-size: 10px; }

/* ═══════════════════════════════════════════════════════
   직급 상세 패널 (우측 슬라이드 패널)
═══════════════════════════════════════════════════════ */
.jg-detail-panel {
  display: none;
  flex: 0 0 420px; min-width: 0;
  border-left: 1px solid var(--gray-200);
  background: #fafbfc;
  border-radius: 0 16px 16px 0;
  overflow: hidden;
  animation: slideInRight .2s ease;
}
.jg-detail-panel.open { display: flex; flex-direction: column; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.jg-detail-inner { flex: 1; overflow-y: auto; padding: 0 0 24px; }

.jg-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  position: sticky; top: 0; z-index: 2;
}
.jg-detail-title {
  font-size: 15px; font-weight: 700; color: var(--gray-800);
  display: flex; align-items: center; gap: 8px;
}
.jg-detail-close {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: #fff; color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px;
  transition: background .12s, color .12s;
}
.jg-detail-close:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* 탭 */
.jg-detail-tabs {
  display: flex; border-bottom: 1px solid var(--gray-200);
  background: #fff; padding: 0 20px;
  gap: 0;
}
.jg-detail-tab {
  padding: 10px 16px; font-size: 12px; font-weight: 600;
  color: var(--gray-400); border: none; background: transparent;
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.jg-detail-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.jg-detail-tab:hover:not(.active) { color: var(--gray-600); }

.jg-detail-pane { display: none; padding: 20px; }
.jg-detail-pane.active { display: block; }

/* 섹션 */
.jg-detail-section { margin-bottom: 20px; }
.jg-detail-section-title {
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 12px; display: flex; align-items: center; gap: 6px;
}
.jg-detail-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

/* 승진기준 폼 */
.jg-rule-form {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.jg-rule-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jg-rule-field { display: flex; flex-direction: column; gap: 4px; }
.jg-rule-field label { font-size: 11px; font-weight: 600; color: var(--gray-500); }
.jg-rule-field input {
  padding: 7px 10px; font-size: 13px;
  border: 1px solid var(--gray-200); border-radius: 7px;
  outline: none; transition: border-color .15s;
}
.jg-rule-field input:focus { border-color: #2563eb; }
.jg-rule-field-full { grid-column: 1 / -1; }
.jg-rule-actions { display: flex; align-items: center; gap: 8px; }
.jg-rule-saved {
  font-size: 11px; color: #059669; display: flex; align-items: center; gap: 4px;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 선택된 직급 행 강조 */
.jg-row-active {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 2px #bfdbfe !important;
}

/* ═══════════════════════════════════════════════════════
   역량 세트 카드
═══════════════════════════════════════════════════════ */
.jg-set-list { display: flex; flex-direction: column; gap: 10px; }

.jg-set-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 10px; overflow: hidden;
  transition: box-shadow .15s;
}
.jg-set-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.jg-set-card.is-default { border-color: #bfdbfe; }

.jg-set-header {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--gray-100);
  background: #fafbfc;
}
.jg-set-card.is-default .jg-set-header { background: #eff6ff; }

.jg-set-title {
  flex: 1; font-size: 13px; font-weight: 700; color: var(--gray-800);
  display: flex; align-items: center; gap: 6px;
}
.jg-set-default-chip {
  font-size: 10px; font-weight: 700;
  background: #2563eb; color: #fff;
  padding: 1px 7px; border-radius: 20px;
}
.jg-set-count {
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  background: var(--gray-100); padding: 2px 8px; border-radius: 20px;
}

.jg-set-actions { display: flex; gap: 4px; }
.jg-set-btn {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--gray-200); background: #fff;
  color: var(--gray-500); cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.jg-set-btn:hover { background: var(--gray-50); color: var(--gray-700); }
.jg-set-btn.add:hover  { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.jg-set-btn.del:hover  { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* 세트 내 항목 목록 */
.jg-set-items { padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 6px; }

.jg-set-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 8px; border-radius: 7px;
  transition: background .12s;
}
.jg-set-item:hover { background: var(--gray-50); }

.jg-set-item-cat {
  font-size: 10px; font-weight: 700; color: #7c3aed;
  background: #f3e8ff; padding: 1px 7px; border-radius: 10px;
  flex-shrink: 0; margin-top: 1px;
}
.jg-set-item-body { flex: 1; min-width: 0; }
.jg-set-item-name {
  font-size: 12px; font-weight: 600; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-set-item-desc {
  font-size: 11px; color: var(--gray-400); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-set-item-del {
  width: 20px; height: 20px; border-radius: 4px;
  border: none; background: transparent; color: var(--gray-300);
  cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  transition: background .12s, color .12s;
}
.jg-set-item-del:hover { background: #fef2f2; color: #dc2626; }

.jg-set-empty {
  text-align: center; padding: 16px 10px;
  color: var(--gray-400); font-size: 12px;
}
.jg-set-empty i { font-size: 18px; display: block; margin-bottom: 6px; opacity: .35; }

/* ═══════════════════════════════════════════════════════
   직책 권한 카드 (pos-perm-*)
═══════════════════════════════════════════════════════ */
.pos-perm-section { margin-top: 4px; }
.pos-perm-title {
  font-size: 12px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 10px; display: flex; align-items: center; gap: 6px;
}
.pos-perm-title i { color: var(--gray-400); }

.pos-perm-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pos-perm-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border-radius: 10px;
  border: 2px solid var(--gray-200);
  background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none;
}
.pos-perm-item:hover { border-color: var(--gray-300); background: var(--gray-50); }
.pos-perm-item.active {
  border-color: #2563eb; background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.pos-perm-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  background: var(--gray-100); color: var(--gray-400);
  transition: background .15s, color .15s;
}
.pos-perm-item.active .pos-perm-icon { background: #2563eb; color: #fff; }

/* 관리자 카드 전용 색상 */
.pos-perm-item.perm-manager.active { border-color: #059669; background: #ecfdf5; box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.pos-perm-item.perm-manager.active .pos-perm-icon { background: #059669; }
.pos-perm-item.perm-approve.active  { border-color: #d97706; background: #fffbeb; box-shadow: 0 0 0 3px rgba(217,119,6,.1); }
.pos-perm-item.perm-approve.active  .pos-perm-icon { background: #d97706; }
.pos-perm-item.perm-adjust.active   { border-color: #7c3aed; background: #f3e8ff; box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.pos-perm-item.perm-adjust.active   .pos-perm-icon { background: #7c3aed; }

.pos-perm-body { flex: 1; min-width: 0; }
.pos-perm-label {
  font-size: 12px; font-weight: 700; color: var(--gray-700);
  margin: 0 0 2px; line-height: 1.3;
}
.pos-perm-item.active .pos-perm-label { color: var(--gray-800); }
.pos-perm-desc { font-size: 11px; color: var(--gray-400); line-height: 1.4; }
.pos-perm-hint {
  font-size: 10px; font-weight: 700; color: #2563eb;
  margin-top: 3px;
}
.pos-perm-item.active .pos-perm-hint { display: block; }
.pos-perm-item:not(.active) .pos-perm-hint { display: none; }

/* ═══════════════════════════════════════════════════════
   역량 항목 선택 모달 (comp-pick-*)
═══════════════════════════════════════════════════════ */
.comp-pick-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.comp-pick-search input {
  flex: 1; padding: 7px 10px; font-size: 13px;
  border: 1px solid var(--gray-200); border-radius: 7px;
  outline: none;
}
.comp-pick-search input:focus { border-color: #2563eb; }

.comp-pick-list {
  max-height: 340px; overflow-y: auto;
  padding: 8px 0;
}

.comp-pick-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 16px; cursor: pointer;
  transition: background .1s;
}
.comp-pick-item:hover { background: var(--gray-50); }
.comp-pick-item.selected { background: #eff6ff; }
.comp-pick-item.already-added {
  opacity: .45; cursor: not-allowed;
  pointer-events: none;
}

.comp-pick-checkbox {
  width: 16px; height: 16px; border: 2px solid var(--gray-300);
  border-radius: 4px; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: transparent;
  transition: background .12s, border-color .12s, color .12s;
}
.comp-pick-item.selected .comp-pick-checkbox {
  background: #2563eb; border-color: #2563eb; color: #fff;
}

.comp-pick-cat {
  font-size: 10px; font-weight: 700; color: #7c3aed;
  background: #f3e8ff; padding: 1px 6px; border-radius: 10px;
  flex-shrink: 0; margin-top: 2px;
}
.comp-pick-body { flex: 1; min-width: 0; }
.comp-pick-name {
  font-size: 13px; font-weight: 600; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comp-pick-desc { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

.comp-pick-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.comp-pick-count { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.comp-pick-empty {
  text-align: center; padding: 32px 20px;
  color: var(--gray-400); font-size: 13px;
}
.comp-pick-empty i { font-size: 24px; display: block; margin-bottom: 8px; opacity: .35; }

/* ═══════════════════════════════════════════════════════
   직원 프로필 — 직급 체류기간 뱃지
═══════════════════════════════════════════════════════ */
.grade-tenure-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: #eff6ff; color: #2563eb;
  border: 1px solid #bfdbfe;
}
.grade-tenure-badge i { font-size: 10px; }

.grade-history-card {
  margin-top: 12px;
}
.grade-history-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.grade-history-table th {
  padding: 6px 10px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
}
.grade-history-table td {
  padding: 7px 10px; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.grade-history-table tr:last-child td { border-bottom: none; }
.grade-history-table tr.current-grade td { background: #eff6ff; font-weight: 600; }
.grade-history-cur-chip {
  display: inline-block; font-size: 9px; font-weight: 800;
  background: #2563eb; color: #fff;
  padding: 1px 5px; border-radius: 10px; margin-left: 4px;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════
   평가항목 뱅크 (item-bank) — 전면 재설계
   ══════════════════════════════════════════════════════ */

/* ── 전체 페이지 레이아웃 ── */
.ibs-page {
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
}

/* ══════════════════════════════════════════════════════
   좌측 사이드바
   ══════════════════════════════════════════════════════ */
.ibs-sidebar {
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 16px;
}
.ibs-sidebar-section {
  padding: 16px 12px 8px;
  border-bottom: 1px solid #f1f5f9;
}
.ibs-sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ibs-section-collapsible { cursor: pointer; user-select: none; }
.ibs-section-collapsible:hover { color: #64748b; }
.ibs-filter-reset {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}
.ibs-filter-reset:hover { color: #2563eb; }

/* 평가 유형 버튼 */
.ibs-type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
  margin-bottom: 2px;
  transition: background .1s;
}
.ibs-type-item:hover { background: #f8fafc; }
.ibs-type-item.active { font-weight: 600; }
.ibs-type-label { flex: 1; text-align: left; }
.ibs-type-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
  min-width: 28px;
  text-align: center;
}

/* 직무 네비 */
.ibs-nav-list { display: flex; flex-direction: column; gap: 1px; }
.ibs-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
  transition: background .1s;
}
.ibs-nav-item:hover { background: #f8fafc; color: #1e293b; }
.ibs-nav-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}
.ibs-nav-label { flex: 1; text-align: left; }
.ibs-nav-count {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.ibs-nav-item.active .ibs-nav-count { color: #2563eb; }

/* 기타 필터 버튼 */
.ibs-filter-group { margin-bottom: 10px; }
.ibs-filter-group-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
}
.ibs-filter-btn {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 11px;
  color: #64748b;
  background: #fff;
  cursor: pointer;
  margin: 2px 2px 0 0;
  transition: all .1s;
}
.ibs-filter-btn:hover { border-color: #2563eb; color: #2563eb; }
.ibs-filter-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  font-weight: 600;
}

/* 빠른 시작 가이드 카드 */
.ibs-sidebar-guide {
  margin: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border-radius: 10px;
  border: 1px solid #e0e7ff;
  text-align: center;
}
.ibs-guide-rocket { font-size: 22px; margin-bottom: 6px; }
.ibs-guide-title { font-size: 12px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.ibs-guide-desc { font-size: 11px; color: #64748b; line-height: 1.5; margin-bottom: 10px; }
.ibs-guide-btn {
  display: inline-block;
  padding: 5px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ibs-guide-btn:hover { background: #1d4ed8; }

/* ══════════════════════════════════════════════════════
   우측 메인 영역
   ══════════════════════════════════════════════════════ */
.ibs-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

/* 페이지 타이틀 바 */
.ibs-main-title-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  gap: 12px;
}
.ibs-main-title { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 2px; }
.ibs-main-desc  { font-size: 12px; color: #94a3b8; margin: 0; }
.ibs-main-title-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 추천 버튼 */
.ibs-btn-recommend {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fefce8;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ibs-btn-recommend i { color: #f59e0b; }
.ibs-btn-recommend:hover { background: #fef08a; border-color: #f59e0b; }

/* 더보기 버튼 */
.ibs-btn-more {
  width: 32px; height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.ibs-btn-more:hover { background: #f8fafc; }

/* 항목 추가 스플릿 버튼 */
.ibs-btn-add-split { display: flex; align-items: center; }
.ibs-btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.ibs-btn-add:hover { background: #1d4ed8; }
.ibs-btn-add-arrow {
  padding: 8px 10px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-left: 1px solid #2563eb99;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 12px;
  transition: background .15s;
}
.ibs-btn-add-arrow:hover { background: #1e40af; }

/* 검색바 */
.ibs-search-bar {
  padding: 12px 24px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ibs-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px;
  transition: border-color .15s;
}
.ibs-search-wrap:focus-within { border-color: #2563eb; background: #fff; }
.ibs-search-icon { color: #94a3b8; font-size: 13px; margin-right: 8px; flex-shrink: 0; }
.ibs-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 13px;
  color: #1e293b;
  outline: none;
}
.ibs-search-input::placeholder { color: #cbd5e1; }
.ibs-search-clear {
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 14px; padding: 4px;
}
.ibs-search-clear:hover { color: #475569; }

/* ── 툴바 (카테고리 탭 + 정렬/뷰전환) ── */
.ibs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  gap: 12px;
  background: #fff;
}
.ibs-tab-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.ibs-tab-bar::-webkit-scrollbar { display: none; }

/* 카테고리 탭 */
.ibs-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.ibs-tab:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.ibs-tab.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  font-weight: 600;
}
.ibs-tab-cnt {
  font-size: 11px;
  font-weight: 700;
  opacity: .85;
}

/* 툴바 우측 */
.ibs-toolbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 정렬 드롭다운 */
.ibs-sort-wrap { position: relative; }
.ibs-sort-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.ibs-sort-btn:hover { border-color: #2563eb; color: #2563eb; }
.ibs-sort-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 100;
  min-width: 110px;
  overflow: hidden;
}
.ibs-sort-opt {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
}
.ibs-sort-opt:hover { background: #f8fafc; color: #1e293b; }
.ibs-sort-opt.active { color: #2563eb; font-weight: 700; background: #eff6ff; }

/* 뷰 전환 버튼 */
.ibs-view-toggle {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.ibs-view-btn {
  width: 32px; height: 30px;
  border: none;
  background: #fff;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .1s;
}
.ibs-view-btn + .ibs-view-btn { border-left: 1px solid #e2e8f0; }
.ibs-view-btn:hover { background: #f8fafc; color: #475569; }
.ibs-view-btn.active { background: #2563eb; color: #fff; }

/* ── 리스트 컨테이너 ── */
.ibs-list-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

/* ══════════════════════════════════════════════════════
   카드 그리드 뷰
   ══════════════════════════════════════════════════════ */
.ibs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 24px;
  align-content: start;
}
@media (max-width: 1200px) { .ibs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px)  { .ibs-grid { grid-template-columns: 1fr; } }

/* 카드 */
.ibc-card {
  position: relative;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .1s;
}
.ibc-card:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,.1);
  border-color: #bfdbfe;
  transform: translateY(-1px);
}
.ibc-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px #2563eb22;
}
.ibc-card.previewing {
  border-color: #818cf8;
  background: #f5f3ff;
}

/* 카드 상단 (체크 + 북마크) */
.ibc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ibc-chk-wrap { display: flex; align-items: center; cursor: pointer; }
.ibc-chk-wrap input[type="checkbox"] { display: none; }
.ibc-chk-box {
  width: 18px; height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.ibc-chk-wrap input:checked + .ibc-chk-box {
  background: #2563eb;
  border-color: #2563eb;
}
.ibc-chk-wrap input:checked + .ibc-chk-box::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
.ibc-bookmark {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: color .15s;
}
.ibc-bookmark:hover { color: #f59e0b; }
.ibc-bookmark.active { color: #f59e0b; }

/* 카드 본문 */
.ibc-card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ibc-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}
.ibc-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ibc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ibc-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.ibc-tag-measure { background: #eff6ff; color: #2563eb; }
.ibc-tag-erp     { background: #ecfdf5; color: #059669; }

/* 카드 하단 (메타) */
.ibc-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.ibc-meta { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.ibc-meta-lbl { color: #cbd5e1; }
.ibc-badge-used {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
}
.ibc-badge-custom {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: #f5f3ff;
  color: #7c3aed;
}

/* 카드 액션 (수정/삭제, 커스텀 전용) */
.ibc-card-actions {
  position: absolute;
  top: 10px;
  right: 36px;
  display: none;
  gap: 4px;
}
.ibc-card:hover .ibc-card-actions { display: flex; }
.ibc-act-btn {
  width: 26px; height: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ibc-act-btn:hover { background: #f8fafc; }
.ibc-act-del { color: #ef4444; border-color: #fecaca; }
.ibc-act-del:hover { background: #fef2f2; }

/* ══════════════════════════════════════════════════════
   리스트 뷰
   ══════════════════════════════════════════════════════ */
.ibs-list {
  display: flex;
  flex-direction: column;
  padding: 12px 24px;
}

/* 리스트 행 */
.ibl-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 56px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  transition: background .1s;
  padding: 8px 0;
  position: relative;
}
.ibl-row:hover { background: #f8fafc; }
.ibl-row.selected { background: #eff6ff; border-left: 3px solid #2563eb; }
.ibl-row.previewing { background: #f5f3ff; border-left: 3px solid #818cf8; }
.ibl-row:first-child { border-top: 1px solid #f1f5f9; }

/* 체크박스 */
.ibl-chk-wrap {
  flex-shrink: 0;
  width: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ibl-chk-wrap input[type="checkbox"] { display: none; }
.ibl-chk-box {
  width: 16px; height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.ibl-chk-wrap input:checked + .ibl-chk-box {
  background: #2563eb; border-color: #2563eb;
}
.ibl-chk-wrap input:checked + .ibl-chk-box::after {
  content: '';
  width: 4px; height: 7px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

/* 행 본문 */
.ibl-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

/* 카테고리 뱃지 */
.ibl-cat-wrap {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.ibl-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.ibl-measure {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  white-space: nowrap;
}

/* 항목명 + 설명 */
.ibl-name-wrap {
  flex: 1;
  min-width: 0;
  padding: 0 12px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ibl-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.ibl-desc {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.ibl-badge-used {
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 20px;
  background: #ecfdf5; color: #059669;
  flex-shrink: 0;
}
.ibl-badge-custom {
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 20px;
  background: #f5f3ff; color: #7c3aed;
  flex-shrink: 0;
}

/* 직무 태그 */
.ibl-jobs {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  padding: 0 8px;
}
.ibl-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

/* 단위 */
.ibl-unit {
  flex-shrink: 0;
  width: 64px;
  font-size: 12px;
  color: #475569;
  padding: 0 8px;
  text-align: center;
}

/* 방향 */
.ibl-dir {
  flex-shrink: 0;
  width: 92px;
  padding: 0 8px;
  text-align: center;
}
.ibl-dir-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.ibl-dir-higher { background: #eff6ff; color: #2563eb; }
.ibl-dir-lower  { background: #fef2f2; color: #ef4444; }
.ibl-dir-range  { background: #f0fdf4; color: #16a34a; }

/* 가중치 */
.ibl-weight {
  flex-shrink: 0;
  width: 64px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  padding: 0 8px;
  text-align: center;
}
.ibl-weight-val { color: #1e293b; }
.ibl-empty { color: #cbd5e1; font-size: 12px; }

/* 우측 액션 */
.ibl-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  opacity: 0;
  transition: opacity .15s;
}
.ibl-row:hover .ibl-actions { opacity: 1; }
.ibl-row.selected .ibl-actions { opacity: 1; }
.ibl-bookmark {
  width: 28px; height: 28px;
  border: none;
  background: none;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all .1s;
}
.ibl-bookmark:hover { color: #f59e0b; background: #fefce8; }
.ibl-bookmark.active { color: #f59e0b; }
.ibl-quick-add {
  width: 28px; height: 28px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .1s;
}
.ibl-quick-add:hover { background: #2563eb; color: #fff; }
.ibl-act-btn {
  width: 28px; height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ibl-act-btn:hover { background: #f8fafc; }
.ibl-act-del { color: #ef4444; border-color: #fecaca; }
.ibl-act-del:hover { background: #fef2f2; }

/* ══════════════════════════════════════════════════════
   빈 상태
   ══════════════════════════════════════════════════════ */
.ibs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.ibs-empty-icon { font-size: 40px; color: #cbd5e1; margin-bottom: 12px; }
.ibs-empty-rocket { font-size: 40px; margin-bottom: 12px; }
.ibs-empty-title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.ibs-empty-desc  { font-size: 13px; color: #94a3b8; margin-bottom: 20px; }
.ibs-empty-jobs  { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.ibs-empty-job-btn {
  padding: 5px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}
.ibs-empty-job-btn:hover { border-color: #2563eb; color: #2563eb; }
.ibs-empty-btn {
  padding: 8px 20px;
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.ibs-empty-btn:hover { background: #eff6ff; }

/* ══════════════════════════════════════════════════════
   미리보기 패널 (우측)
   ══════════════════════════════════════════════════════ */
.ibs-preview {
  width: 0;
  min-width: 0;
  overflow: hidden;
  transition: width .2s, min-width .2s;
  border-left: 1px solid #e2e8f0;
  background: #fff;
}
.ibs-preview.open {
  width: 320px;
  min-width: 320px;
  overflow-y: auto;
}
.ibs-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 20px;
  text-align: center;
}
.ibs-preview-empty-icon { font-size: 32px; color: #e2e8f0; margin-bottom: 12px; }
.ibs-preview-empty-text { font-size: 13px; color: #cbd5e1; line-height: 1.6; }

/* ibp (미리보기 내부) */
.ibp-inner { display: flex; flex-direction: column; height: 100%; }
.ibp-head {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.ibp-head-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ibp-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.ibp-cat-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: #f1f5f9; color: #475569;
}
.ibp-name { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 4px; line-height: 1.4; }
.ibp-desc { font-size: 12px; color: #64748b; line-height: 1.6; }
.ibp-content { flex: 1; overflow-y: auto; padding: 12px 16px; }
.ibp-section { margin-bottom: 16px; }
.ibp-section-label {
  font-size: 11px; font-weight: 700;
  color: #94a3b8; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px; padding-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}
.ibp-meta-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.ibp-meta-card {
  background: #f8fafc; border-radius: 8px; padding: 10px 8px; text-align: center;
}
.ibp-meta-label { font-size: 10px; color: #94a3b8; font-weight: 600; margin-bottom: 4px; }
.ibp-meta-val   { font-size: 13px; font-weight: 700; color: #1e293b; }
.ibp-formula-wrap {
  margin-top: 10px; padding: 10px 12px;
  background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0;
}
.ibp-formula-label { font-size: 11px; color: #64748b; font-weight: 600; margin-bottom: 6px; }
.ibp-formula-code  { font-size: 12px; color: #1e293b; font-family: monospace; line-height: 1.5; }
.ibp-anchor-list   { display: flex; flex-direction: column; gap: 6px; }
.ibp-anchor-row    { display: flex; align-items: flex-start; gap: 8px; }
.ibp-anchor-lv {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ibp-anchor-txt { font-size: 12px; color: #475569; line-height: 1.5; padding-top: 4px; }
.ibp-tag-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ibp-tag-type {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  width: 32px; flex-shrink: 0; text-align: right;
}
.ibp-footer {
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  display: flex; flex-direction: column; gap: 8px;
}
.ibp-used-note {
  font-size: 12px; color: #94a3b8;
  display: flex; align-items: center; gap: 6px;
}
.ibp-btn-sel {
  width: 100%; padding: 10px;
  border: none; border-radius: 8px;
  color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: opacity .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ibp-btn-sel:hover { opacity: .88; }
.ibp-btn-desel {
  width: 100%; padding: 10px;
  border: 1.5px solid #2563eb; border-radius: 8px;
  background: #eff6ff; color: #2563eb; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ibp-btn-desel:hover { background: #dbeafe; }

/* ══════════════════════════════════════════════════════
   하단 Sticky 액션바
   ══════════════════════════════════════════════════════ */
.ibs-action-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 56px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.ibs-action-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.ibs-action-chk-wrap {
  flex-shrink: 0;
  display: flex; align-items: center;
  cursor: pointer;
}
.ibs-action-chk-wrap input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer;
}
.ibs-action-count {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}
.ibs-action-count strong { color: #fff; }

/* 선택 칩 영역 */
.ibs-action-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.ibs-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 10px;
  background: #334155;
  border-radius: 20px;
  font-size: 12px;
  color: #e2e8f0;
  white-space: nowrap;
  max-width: 160px;
  flex-shrink: 0;
}
.ibs-action-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.ibs-action-chip-del {
  background: none; border: none;
  color: #94a3b8; font-size: 14px;
  cursor: pointer; padding: 0 0 0 2px;
  line-height: 1; flex-shrink: 0;
}
.ibs-action-chip-del:hover { color: #f87171; }
.ibs-action-chip-more {
  background: #475569;
  color: #94a3b8;
  font-weight: 700;
  font-size: 11px;
  cursor: default;
}

/* 우측 버튼 */
.ibs-action-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ibs-action-btn-ghost {
  padding: 7px 16px;
  border: 1.5px solid #475569;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.ibs-action-btn-ghost:hover { border-color: #94a3b8; color: #e2e8f0; }
.ibs-action-btn-primary {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background .15s;
}
.ibs-action-btn-primary:hover { background: #1d4ed8; }

/* ══════════════════════════════════════════════════════
   복사 모달 / 커스텀 등록 모달
   ══════════════════════════════════════════════════════ */
.ib-copy-group { margin-bottom: 16px; }
.ib-copy-group-title {
  font-size: 13px; font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.ib-copy-item-list { display: flex; flex-direction: column; gap: 4px; }
.ib-copy-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  background: var(--gray-50);
  border-radius: 6px; border: 1px solid var(--gray-200);
  font-size: 12px;
}
.ib-copy-item-name { font-weight: 600; color: #475569; }
.ib-tag-input-wrap { display: flex; flex-direction: column; gap: 6px; }
.ib-tag-row { display: flex; align-items: center; gap: 8px; }
.ib-tag-label { font-size: 12px; font-weight: 600; color: var(--gray-500); width: 36px; flex-shrink: 0; }
.ib-tag-row .form-input { flex: 1; padding: 6px 10px; font-size: 12px; }

/* 태그 pill */
.ibs-tag-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}
.ibs-card-measure-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ── 유틸 ────────────────────────────────────────────── */
.w-full { width: 100%; }


/* ══════════════════════════════════════════════════════════════
   KPI 항목 관리 (km-*) — SaaS 스타일
   ══════════════════════════════════════════════════════════════ */

/* ── 페이지 헤더 ───────────────────────────────────────── */
.km-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 24px 0 0;
}
.km-page-title { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.km-page-desc  { font-size: 13px; color: #6b7280; margin: 0; }
.km-page-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── 탭 바 ─────────────────────────────────────────────── */
.km-tab-bar {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
  margin-top: 16px;
  gap: 0;
}
.km-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.km-tab:hover   { color: #374151; }
.km-tab.active  { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }

/* ── 콘텐츠 영역 ────────────────────────────────────────── */
.km-content { display: flex; flex-direction: column; gap: 16px; }

/* ── 요약 카드 그리드 ───────────────────────────────────── */
.km-stat-grid   { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.km-stat-grid-3 { grid-template-columns: repeat(3,1fr); }

.km-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px 14px;
  position: relative;
  overflow: hidden;
}
.km-stat-body { display: flex; align-items: flex-start; justify-content: space-between; }
.km-stat-title { font-size: 12px; color: #6b7280; font-weight: 500; margin-bottom: 6px; }
.km-stat-num   { font-size: 28px; font-weight: 700; color: #111827; line-height: 1; }
.km-stat-unit  { font-size: 14px; font-weight: 500; color: #6b7280; margin-left: 2px; }
.km-stat-sub   { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.km-stat-icon  {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.km-stat-chart { position: absolute; right: 16px; bottom: 10px; opacity: .85; }
.km-stat-type-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.km-stat-type-lbl { font-size: 12px; color: #6b7280; }
.km-stat-type-val { font-size: 13px; font-weight: 600; color: #374151; }
.km-sparkline { position: absolute; right: 14px; bottom: 12px; opacity: .7; }

/* BSC 범례 */
.km-bsc-legend   { display: flex; flex-direction: column; gap: 2px; }
.km-bsc-lg-row   { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7280; }
.km-bsc-lg-row strong { color: #374151; font-weight: 600; margin-left: 2px; }
.km-bsc-dot      { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── 필터바 ─────────────────────────────────────────────── */
.km-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
}
.km-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
}
.km-search-icon  { position: absolute; left: 10px; color: #9ca3af; font-size: 13px; pointer-events: none; }
.km-search-input {
  width: 100%; padding: 7px 10px 7px 30px;
  border: 1px solid #e5e7eb; border-radius: 7px;
  font-size: 13px; color: #374151; background: #f9fafb;
  outline: none; transition: border-color .15s;
}
.km-search-input:focus { border-color: #2563eb; background: #fff; }
.km-select {
  padding: 7px 10px; border: 1px solid #e5e7eb; border-radius: 7px;
  font-size: 13px; color: #374151; background: #f9fafb;
  outline: none; cursor: pointer; transition: border-color .15s;
}
.km-select:focus { border-color: #2563eb; background: #fff; }

/* ── 버튼 ────────────────────────────────────────────────── */
.km-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: #2563eb; color: #fff;
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.km-btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.km-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.km-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  background: #fff; color: #374151;
  font-size: 13px; font-weight: 500;
  border: 1px solid #d1d5db; cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.km-btn-secondary:hover { background: #f3f4f6; }
.km-btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 8px;
  background: none; color: #6b7280;
  font-size: 13px; border: 1px solid #e5e7eb; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.km-btn-ghost:hover { background: #f3f4f6; color: #374151; }
.km-btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  background: #fff; color: #dc2626;
  font-size: 13px; font-weight: 500;
  border: 1px solid #fca5a5; cursor: pointer;
}
.km-btn-danger:hover { background: #fef2f2; }
.km-btn-full  { width: 100%; justify-content: center; }
.km-btn-half  { flex: 1; justify-content: center; }
.km-btn-hint  { font-size: 11px; color: #9ca3af; text-align: center; margin-top: 6px; }

/* ── 아이콘 버튼 ─────────────────────────────────────────── */
.km-icon-btn {
  width: 30px; height: 30px; border-radius: 6px;
  background: none; border: 1px solid transparent; color: #6b7280;
  font-size: 12px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
  transition: all .12s;
}
.km-icon-btn:hover         { background: #f3f4f6; border-color: #e5e7eb; color: #374151; }
.km-icon-btn-more:hover    { background: #f3f4f6; }
.km-icon-btn-danger:hover  { background: #fef2f2; color: #dc2626; }

/* ── 메인 2단 레이아웃 ─────────────────────────────────── */
.km-main-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.km-table-section {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.km-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f3f4f6;
}
.km-table-count { font-size: 13px; font-weight: 600; color: #374151; }

/* ── 테이블 ─────────────────────────────────────────────── */
.km-table-wrap { overflow-x: auto; }
.km-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.km-table thead tr { background: #f9fafb; }
.km-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.km-table td { padding: 11px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.km-table tr:last-child td { border-bottom: none; }
.km-tr { transition: background .1s; cursor: pointer; }
.km-tr:hover           { background: #f9fafb; }
.km-tr-selected        { background: #eff6ff !important; }

/* 셀 타입 */
.km-td-drag    { width: 28px; color: #d1d5db; cursor: grab; }
.km-td-chk     { width: 36px; }
.km-td-num     { width: 48px; color: #6b7280; font-size: 13px; text-align: center; }
.km-td-center  { text-align: center; }
.km-td-date    { white-space: nowrap; color: #6b7280; font-size: 12px; }
.km-td-weight  { color: #374151; font-weight: 600; }
.km-td-desc    { color: #6b7280; font-size: 12px; max-width: 300px; }
.km-td-actions { white-space: nowrap; }
.km-td-main    { min-width: 160px; }

.km-item-name  { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.km-item-desc  { font-size: 11px; color: #9ca3af; }
.km-drag-icon  { font-size: 11px; }
.km-empty      { text-align: center; color: #9ca3af; padding: 32px; font-size: 13px; }

/* ── 뱃지 ────────────────────────────────────────────────── */
.km-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* ── 토글 스위치 ─────────────────────────────────────────── */
.km-toggle        { display: inline-flex; align-items: center; cursor: pointer; }
.km-toggle-input  { position: absolute; opacity: 0; width: 0; height: 0; }
.km-toggle-track  {
  width: 36px; height: 20px; border-radius: 10px;
  background: #d1d5db; position: relative;
  transition: background .2s;
}
.km-toggle-input:checked + .km-toggle-track { background: #2563eb; }
.km-toggle-thumb  {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.km-toggle-input:checked + .km-toggle-track .km-toggle-thumb { transform: translateX(16px); }

/* ── BSC 막대 ────────────────────────────────────────────── */
.km-bsc-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: #f3f4f6;
  min-width: 80px;
}
.km-bsc-seg  { height: 100%; transition: width .3s; }
.km-bsc-bar-empty { color: #d1d5db; font-size: 12px; }

/* ── 체크박스 ────────────────────────────────────────────── */
.km-chk {
  width: 15px; height: 15px; accent-color: #2563eb; cursor: pointer;
}

/* ── 페이지네이션 ────────────────────────────────────────── */
.km-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.km-page-info { font-size: 12px; color: #6b7280; flex: 1; }
.km-page-size { padding: 5px 8px; font-size: 12px; }
.km-page-nums { display: flex; gap: 2px; }
.km-page-btn  {
  min-width: 30px; height: 30px; border-radius: 6px;
  background: none; border: 1px solid #e5e7eb;
  color: #374151; font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .12s; padding: 0 6px;
}
.km-page-btn:hover:not(:disabled):not(.active) { background: #f3f4f6; }
.km-page-btn.active  { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.km-page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── 우측 상세 패널 ─────────────────────────────────────── */
.km-detail-panel {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.km-panel-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
.km-panel-empty-icon { font-size: 28px; color: #d1d5db; }
.km-panel-detail     { display: flex; flex-direction: column; height: 100%; }
.km-panel-header     {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.km-panel-title { font-size: 13px; font-weight: 700; color: #111827; margin: 0; }
.km-panel-body  { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.km-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 8px;
}
.km-panel-section { display: flex; flex-direction: column; gap: 4px; }
.km-panel-row-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.km-panel-label   { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .4px; }
.km-panel-value   { font-size: 13px; color: #374151; }
.km-panel-name    { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.3; }
.km-panel-desc    { font-size: 12px; color: #6b7280; line-height: 1.5; }
.km-panel-persp-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.km-date          { font-size: 12px; color: #6b7280; }

/* 목표 구간 테이블 */
.km-panel-range-table { font-size: 12px; color: #6b7280; border-collapse: collapse; width: 100%; }
.km-panel-range-table td { padding: 3px 6px 3px 0; }
.km-panel-range-table td:last-child { text-align: right; font-weight: 600; color: #374151; }

/* KPI 칩 예시 */
.km-kpi-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.km-kpi-chip  {
  padding: 3px 9px; background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 20px; font-size: 11px; color: #374151;
}

/* 카테고리 목록 */
.km-cat-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.km-cat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 7px;
  transition: background .1s;
}
.km-cat-item:hover { background: #f9fafb; }
.km-cat-num  { font-size: 12px; color: #9ca3af; width: 18px; flex-shrink: 0; }
.km-cat-name { font-size: 13px; color: #374151; flex: 1; }
.km-cat-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .1s; }
.km-cat-item:hover .km-cat-actions { opacity: 1; }

/* BSC 관점 */
.km-persp-name { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; }
.km-persp-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.km-persp-en   { font-weight: 400; color: #6b7280; font-size: 12px; }

/* ── 스테퍼 ─────────────────────────────────────────────── */
.km-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 4px;
}
.km-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}
.km-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e5e7eb; color: #9ca3af;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.km-step.active .km-step-circle { background: #2563eb; color: #fff; }
.km-step.done   .km-step-circle { background: #10b981; color: #fff; }
.km-step-info   { display: flex; flex-direction: column; gap: 1px; }
.km-step-label  { font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap; }
.km-step.active .km-step-label { color: #2563eb; }
.km-step.done   .km-step-label { color: #10b981; }
.km-step-sub    { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.km-step-line   {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 12px;
  align-self: center;
  transition: background .3s;
}
.km-step.done + .km-step .km-step-line,
.km-step.done .km-step-line { background: #10b981; }

/* ── 일괄 변경 패널 ─────────────────────────────────────── */
.km-bulk-panel {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.km-radio-group { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.km-radio-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #374151; cursor: pointer; }
.km-radio-label input[type=radio] { accent-color: #2563eb; }
.km-input {
  padding: 7px 10px; border: 1px solid #e5e7eb; border-radius: 7px;
  font-size: 13px; color: #374151; background: #f9fafb;
  outline: none; transition: border-color .15s;
}
.km-input:focus { border-color: #2563eb; background: #fff; }
.km-preview-section { background: #f9fafb; border-radius: 8px; padding: 12px; }
.km-preview-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #6b7280; padding: 3px 0;
}
.km-preview-row strong { font-weight: 600; color: #374151; }
.km-warn-box {
  background: #fef3c7; border: 1px solid #f59e0b;
  border-radius: 8px; padding: 10px 12px;
  font-size: 12px; color: #92400e;
  display: flex; align-items: center; gap: 7px;
}
.km-info-box {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: #1d4ed8;
  display: flex; align-items: center; gap: 7px;
  margin: 0 16px 10px;
}

/* 완료 화면 */
.km-done-icon { text-align: center; font-size: 48px; color: #10b981; margin: 16px 0 8px; }
.km-done-msg  { text-align: center; font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 16px; }

/* ── 하단 Sticky Bar ────────────────────────────────────── */
.km-bulk-sticky {
  position: fixed;
  bottom: 0; left: 220px; right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.km-bulk-sticky-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.km-sticky-count { font-size: 13px; font-weight: 700; color: #374151; white-space: nowrap; }
.km-action-chips { display: flex; gap: 5px; align-items: center; flex-wrap: nowrap; overflow: hidden; }
.km-action-chip  {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0f4ff; border: 1px solid #c7d7fd;
  border-radius: 20px; padding: 3px 8px 3px 10px;
  font-size: 12px; color: #2563eb; flex-shrink: 0;
  max-width: 160px;
}
.km-chip-name    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.km-chip-del     {
  width: 16px; height: 16px; border-radius: 50%; background: none; border: none;
  color: #6b7280; font-size: 13px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
}
.km-chip-del:hover { color: #dc2626; }
.km-chip-more    {
  display: inline-flex; align-items: center; gap: 3px;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 20px; padding: 3px 10px;
  font-size: 12px; color: #6b7280; cursor: pointer; flex-shrink: 0;
}


/* =====================================================
   대시보드 (db-*) 스타일
   ===================================================== */

/* ── 페이지 레이아웃 ── */
.db-page { padding: 0; }

.db-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.db-title { font-size: 22px; font-weight: 800; color: #111827; line-height: 1.2; }
.db-desc  { font-size: 13px; color: #6b7280; margin-top: 4px; }
.db-header-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-period-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; background: #eff6ff; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #2563eb;
}

/* ── 스켈레톤 로딩 ── */
.db-skeleton-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; margin-bottom: 20px; }
.db-skel-card {
  height: 110px; background: linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 50%,#f3f4f6 75%);
  background-size: 400% 100%; border-radius: 12px;
  animation: db-shimmer 1.5s infinite;
}
@keyframes db-shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }
.db-loading-msg { text-align: center; color: #9ca3af; font-size: 13px; padding: 16px; }

/* ── 요약 카드 6개 그리드 ── */
.db-card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.db-sum-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .15s;
  min-width: 0;
}
.db-sum-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.db-sum-left { flex: 1; min-width: 0; }
.db-sum-right { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.db-sum-label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-sum-val   { font-size: 26px; font-weight: 800; line-height: 1.1; margin-bottom: 4px; }
.db-sum-sub   { font-size: 11px; color: #9ca3af; line-height: 1.4; }

/* ── 그래프 영역 ── */
.db-chart-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: stretch;
}
.db-chart-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  min-width: 0;
  display: flex; flex-direction: column;
}
.db-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 6px;
}
.db-chart-title { font-size: 14px; font-weight: 700; color: #111827; }
.db-chart-sub   { font-size: 11px; color: #9ca3af; }
.db-chart-link  {
  font-size: 11px; color: #3b82f6; background: none; border: none;
  cursor: pointer; padding: 0; font-weight: 600;
}
.db-chart-link:hover { text-decoration: underline; }
.db-chart-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.db-chart-line { overflow: hidden; }
.db-chart-line svg { width: 100%; }

/* ── 라인차트 ── */
.db-lv-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.db-lv-legend span { font-size: 10px; color: #6b7280; display: flex; align-items: center; }

/* ── 바차트 (부서별) ── */
.db-bar-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.db-bar-name  { font-size: 12px; color: #374151; width: 68px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-bar-track { flex: 1; height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.db-bar-fill  { height: 100%; border-radius: 4px; transition: width .4s ease; }
.db-bar-val   { font-size: 11px; font-weight: 700; width: 34px; text-align: right; flex-shrink: 0; }

/* ── 스택바 (역량 레벨) ── */
.db-stack-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.db-stack-name  { font-size: 12px; color: #374151; width: 68px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-stack-track { flex: 1; height: 10px; border-radius: 5px; overflow: hidden; display: flex; }
.db-stack-seg   { height: 100%; transition: width .3s; }

/* ── 하단 운영 카드 ── */
.db-ops-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.db-ops-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.db-ops-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f3f4f6;
}
.db-ops-title { font-size: 13px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 6px; }
.db-ops-body  { flex: 1; padding: 12px 16px; overflow-y: auto; max-height: 230px; }
.db-ops-foot  { padding: 10px 16px; border-top: 1px solid #f3f4f6; }
.db-foot-link {
  font-size: 12px; color: #3b82f6; font-weight: 600;
  background: none; border: none; cursor: pointer; padding: 0;
}
.db-foot-link:hover { text-decoration: underline; }

/* ── 위험 KPI 리스트 ── */
.db-list-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid #f9fafb; gap: 8px;
}
.db-list-row:last-child { border-bottom: none; }
.db-list-left { display: flex; align-items: center; min-width: 0; flex: 1; }
.db-list-name { font-size: 12px; color: #374151; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-list-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.db-badge-danger {
  font-size: 10px; font-weight: 600; color: #92400e;
  background: #fef3c7; border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
.db-badge-red {
  font-size: 10px; font-weight: 600; color: #fff;
  background: #ef4444; border-radius: 4px; padding: 2px 6px;
}

/* ── 개선 KPI ── */
.db-improve-row  { padding: 8px 0; border-bottom: 1px solid #f9fafb; }
.db-improve-row:last-child { border-bottom: none; }
.db-improve-title { font-size: 12px; color: #374151; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; }
.db-prog-wrap  { display: flex; align-items: center; gap: 8px; }
.db-prog-bar   { flex: 1; height: 5px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.db-prog-fill  { height: 100%; border-radius: 3px; transition: width .4s ease; }
.db-prog-label { font-size: 10px; color: #6b7280; white-space: nowrap; }

/* ── 최근 피드백 ── */
.db-feed-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f9fafb;
}
.db-feed-row:last-child { border-bottom: none; }
.db-feed-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,#4f46e5,#06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.db-feed-body { flex: 1; min-width: 0; }
.db-feed-who  { font-size: 12px; margin-bottom: 2px; }
.db-feed-who strong { color: #111827; }
.db-feed-grade { font-size: 11px; color: #9ca3af; margin-left: 4px; }
.db-feed-note { font-size: 11px; color: #6b7280; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-feed-date { font-size: 10px; color: #9ca3af; flex-shrink: 0; padding-top: 2px; }

/* ── 등급 분포 도넛 ── */
.db-grade-wrap  { display: flex; align-items: center; gap: 12px; width: 100%; }
.db-grade-legend { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.db-grade-row   { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.db-grade-dot   { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.db-grade-name  { font-weight: 700; width: 18px; }
.db-grade-pct   { color: #9ca3af; font-size: 11px; }
.db-grade-cnt   { margin-left: auto; font-weight: 600; color: #374151; }

/* ── 빈 상태 ── */
.db-empty-sm {
  text-align: center; color: #9ca3af; font-size: 12px;
  padding: 20px 8px; line-height: 1.6;
}
.db-empty-sm i { font-size: 18px; display: block; margin-bottom: 6px; }

/* ── 반응형 ── */
@media (max-width: 1280px) {
  .db-card-grid { grid-template-columns: repeat(3,1fr); }
  .db-chart-row { flex-wrap: wrap; }
  .db-chart-row .db-chart-card { flex: 1 1 45%; }
  .db-ops-row   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .db-card-grid { grid-template-columns: repeat(2,1fr); }
  .db-chart-row .db-chart-card { flex: 1 1 100%; }
  .db-ops-row   { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   조직도 관리 (omv2-*) — 전면재구현 v=20260516a
   ═══════════════════════════════════════════════════════════ */

/* ── 페이지 헤더 */
.omv2-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 0; padding: 20px 0 12px;
}
.omv2-header-left { flex: 1; }
.omv2-page-title {
  font-size: 20px; font-weight: 700; color: #111827;
  margin: 0 0 4px; display: flex; align-items: center; gap: 8px;
}
.omv2-page-title i { color: #2563eb; }
.omv2-page-desc { font-size: 13px; color: #6b7280; margin: 0; }
.omv2-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── 탭 바 */
.omv2-tab-bar {
  display: flex; gap: 0; border-bottom: 2px solid #e5e7eb;
  background: #fff; overflow-x: auto; flex-wrap: nowrap;
  margin-bottom: 0;
}
.omv2-tab {
  padding: 10px 16px; border: none; background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; color: #6b7280;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.omv2-tab:hover { color: #374151; background: #f9fafb; }
.omv2-tab.omv2-tab-active {
  color: #1d4ed8; border-bottom-color: #1d4ed8;
  background: #eff6ff; font-weight: 600;
}
.omv2-tab i { font-size: 11px; }
.omv2-new-badge {
  background: #f97316; color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 8px; line-height: 1.4; margin-left: 2px;
}

/* ── 컨텐츠 영역 */
.omv2-content { min-height: 400px; }
.omv2-loading {
  text-align: center; padding: 60px 24px; color: #9ca3af;
  font-size: 14px; line-height: 1.8;
}
.omv2-loading i { font-size: 28px; color: #d1d5db; }

/* ── 2컬럼 레이아웃 */
.omv2-two-col {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 16px; align-items: start; padding: 16px 0;
}
.omv2-main-col { min-width: 0; }
.omv2-side-col { position: sticky; top: 80px; }

/* ── 공통 툴바 */
.omv2-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; margin-bottom: 8px;
}
.omv2-toolbar-title {
  font-size: 14px; font-weight: 600; color: #374151;
  display: flex; align-items: center; gap: 8px;
}
.omv2-filter-row { display: flex; gap: 8px; align-items: center; }

/* ── 테이블 */
.omv2-table-wrap {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  overflow: hidden; overflow-x: auto;
}
.omv2-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.omv2-table th {
  background: #f9fafb; color: #374151; font-weight: 600;
  padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.omv2-table td {
  padding: 10px 14px; border-bottom: 1px solid #f3f4f6;
  color: #374151; vertical-align: middle;
}
.omv2-table tr:last-child td { border-bottom: none; }
.omv2-table tr:hover td { background: #f9fafb; }
.omv2-table .omv2-row-sel td { background: #eff6ff; }
.omv2-table .omv2-log-row { cursor: pointer; }
.omv2-empty-td { text-align: center; color: #9ca3af; padding: 32px 14px; }

/* ── 뱃지 */
.omv2-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.omv2-badge-blue   { background: #dbeafe; color: #1d4ed8; }
.omv2-badge-green  { background: #dcfce7; color: #15803d; }
.omv2-badge-orange { background: #ffedd5; color: #c2410c; }
.omv2-badge-purple { background: #f3e8ff; color: #7c3aed; }
.omv2-badge-red    { background: #fee2e2; color: #b91c1c; }
.omv2-badge-gray   { background: #f3f4f6; color: #6b7280; }
.omv2-badge-yellow { background: #fef9c3; color: #a16207; }
.omv2-badge-on     { background: #dcfce7; color: #15803d; }
.omv2-badge-off    { background: #f3f4f6; color: #6b7280; }
.omv2-badge-active { background: #dcfce7; color: #15803d; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.omv2-badge-inactive{ background: #fee2e2; color: #b91c1c; border-radius: 6px; padding: 2px 8px; font-size: 12px; }

/* ── 우측 패널 카드 */
.omv2-panel-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 16px; margin-bottom: 12px;
}
.omv2-panel-card-title {
  font-size: 12px; font-weight: 600; color: #374151;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.omv2-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #f9fafb;
  border-bottom: 1px solid #e5e7eb; border-radius: 8px 8px 0 0;
}
.omv2-panel-title { font-size: 13px; font-weight: 600; color: #374151; }
.omv2-panel-close {
  background: none; border: none; cursor: pointer;
  color: #9ca3af; font-size: 14px; padding: 2px 4px;
}
.omv2-panel-close:hover { color: #374151; }
.omv2-panel-body { padding: 12px 16px; }
.omv2-panel-footer {
  display: flex; gap: 8px; padding: 10px 16px;
  border-top: 1px solid #f3f4f6; background: #fafafa;
  border-radius: 0 0 8px 8px;
}
.omv2-panel-empty {
  text-align: center; padding: 32px 16px; color: #9ca3af;
}
.omv2-panel-empty i { font-size: 28px; display: block; margin-bottom: 8px; color: #d1d5db; }
.omv2-panel-empty p { margin: 0; font-size: 13px; line-height: 1.6; }
.omv2-panel-note { font-size: 12px; color: #6b7280; line-height: 1.6; margin: 0; }

/* ── 상세 행 */
.omv2-detail-row {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px;
}
.omv2-detail-row:last-child { border-bottom: none; }
.omv2-detail-row label {
  width: 76px; flex-shrink: 0; color: #6b7280; font-size: 12px; padding-top: 1px;
}
.omv2-detail-row span { color: #111827; flex: 1; }
.omv2-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 13px; border-bottom: 1px solid #f9fafb;
}
.omv2-summary-row:last-child { border-bottom: none; }
.omv2-summary-row label { color: #6b7280; font-size: 12px; }
.omv2-summary-row span { font-weight: 500; color: #111827; }
.omv2-divider { border: none; border-top: 1px solid #e5e7eb; margin: 10px 0; }
.omv2-text-blue   { color: #2563eb !important; }
.omv2-text-orange { color: #ea580c !important; }

/* ── 빈 상태 */
.omv2-empty-state {
  text-align: center; padding: 60px 24px; color: #6b7280;
  background: #fff; border: 2px dashed #e5e7eb; border-radius: 12px;
  margin: 16px 0;
}
.omv2-empty-state i { font-size: 40px; color: #d1d5db; display: block; margin-bottom: 12px; }
.omv2-empty-state p { margin: 0 0 16px; font-size: 14px; }

/* ── 범례 */
.omv2-legend {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: #6b7280;
}
.omv2-legend-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.omv2-legend-item {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151;
}

/* ═══════════════════════════════════
   TAB1: 조직도 트리
   ═══════════════════════════════════ */
.omv2-t1-wrap { padding: 16px 0; }
.omv2-t1-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.omv2-t1-actions { display: flex; gap: 8px; }
.omv2-t1-body {
  display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start;
}

/* ── 트리 스크롤 영역 */
.omv2-tree-scroll {
  overflow-x: auto; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 24px; min-height: 300px;
}

/* ── 트리 가로 row */
.omv2-tree-row {
  display: flex; flex-direction: column; gap: 0; align-items: flex-start;
}

/* ── 노드 컬럼 (자신 + 자식) */
.omv2-tree-col {
  display: flex; flex-direction: column; align-items: center;
  margin: 0 8px; position: relative;
}

/* ── 트리 노드 박스 */
.omv2-tree-node {
  position: relative; cursor: pointer;
  width: 140px; min-height: 80px;
  border: 2px solid #e5e7eb; border-radius: 10px;
  background: #fff; padding: 10px 12px;
  transition: box-shadow 0.15s, transform 0.1s;
  display: flex; flex-direction: column; gap: 4px;
}
.omv2-tree-node:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-1px);
}
.omv2-tree-node.omv2-node-sel {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.3);
}

/* ── 케밥 버튼 */
.omv2-node-kebab {
  position: absolute; top: 6px; right: 6px;
  width: 20px; height: 20px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #9ca3af; cursor: pointer;
  line-height: 1;
}
.omv2-node-kebab:hover { background: rgba(0,0,0,0.07); color: #374151; }

/* ── 노드 텍스트 */
.omv2-node-name {
  font-size: 12px; font-weight: 600; line-height: 1.3;
  word-break: keep-all; padding-right: 16px;
}
.omv2-node-head { font-size: 11px; color: #6b7280; }
.omv2-no-head { color: #f59e0b; font-size: 11px; }
.omv2-node-count { font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 3px; }

/* ── 하위 조직 영역 (들여쓰기) */
.omv2-tree-children {
  margin-left: 24px; margin-top: 0; padding-left: 16px;
  border-left: 2px solid #e5e7eb;
  display: flex; flex-direction: column; gap: 12px; padding-top: 12px;
}

/* ── 케밥 드롭다운 메뉴 */
.omv2-kebab-menu {
  position: absolute; top: 28px; right: 4px; z-index: 200;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 4px; min-width: 148px;
}
.omv2-kebab-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border: none; background: none; cursor: pointer;
  font-size: 13px; color: #374151; border-radius: 6px; text-align: left;
}
.omv2-kebab-menu button:hover { background: #f3f4f6; }
.omv2-kebab-menu button.omv2-menu-danger { color: #ef4444; }
.omv2-kebab-menu button.omv2-menu-danger:hover { background: #fef2f2; }

/* ── 우측 상세 패널 */
.omv2-right-panel {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  min-height: 200px; overflow: hidden;
  position: sticky; top: 80px;
}

/* ═══════════════════════════════════
   TAB2: 우선순위 / Flow 패널
   ═══════════════════════════════════ */
.omv2-priority-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: 13px; color: #374151;
}
.omv2-priority-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: #2563eb; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.omv2-flow-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.omv2-flow-node { display: flex; flex-direction: column; align-items: flex-start; }
.omv2-flow-label {
  font-size: 12px; font-weight: 500; color: #374151;
  background: #eff6ff; border: 1px solid #bfdbfe;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 2px;
}
.omv2-flow-arrow { font-size: 16px; color: #9ca3af; line-height: 1.2; margin-left: 8px; }

/* ═══════════════════════════════════
   TAB3: 4-step 스텝퍼
   ═══════════════════════════════════ */
.omv2-step-body { padding: 16px 0; }
.omv2-stepper {
  display: flex; align-items: center;
  margin-bottom: 28px; overflow-x: auto;
}
.omv2-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.omv2-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e5e7eb; color: #9ca3af;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.omv2-step.omv2-step-active .omv2-step-circle {
  background: #2563eb; color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.2);
}
.omv2-step.omv2-step-done .omv2-step-circle {
  background: #22c55e; color: #fff;
}
.omv2-step-label { font-size: 11px; color: #6b7280; white-space: nowrap; text-align: center; }
.omv2-step.omv2-step-active .omv2-step-label { color: #1d4ed8; font-weight: 600; }
.omv2-step.omv2-step-done .omv2-step-label  { color: #15803d; }
.omv2-step-line {
  flex: 1; height: 2px; background: #e5e7eb; min-width: 24px; margin: 0 4px;
  margin-bottom: 20px;
}
.omv2-step-content { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; }
.omv2-step-nav { display: flex; gap: 8px; margin-top: 16px; }
.omv2-t3-layout { display: flex; flex-direction: column; gap: 12px; }
.omv2-t3-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 프로그레스 바 */
.omv2-progress-bar-wrap {
  background: #f3f4f6; border-radius: 4px; height: 8px;
  overflow: hidden; margin-top: 8px;
}
.omv2-progress-bar {
  height: 100%; background: #2563eb; border-radius: 4px;
  transition: width 0.3s ease;
}

/* ═══════════════════════════════════
   TAB4: 변경 이력 diff 패널
   ═══════════════════════════════════ */
.omv2-log-diff { display: flex; gap: 8px; margin-top: 12px; }
.omv2-diff-col { flex: 1; min-width: 0; }
.omv2-diff-label {
  font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 4px;
}
.omv2-diff-pre {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 8px 10px; font-size: 11px; font-family: monospace;
  white-space: pre-wrap; word-break: break-all; margin: 0;
  max-height: 120px; overflow-y: auto;
}
.omv2-diff-old { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.omv2-diff-new { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }

/* ═══════════════════════════════════
   TAB5: 자동 변경 규칙 Flow Steps
   ═══════════════════════════════════ */
.omv2-flow-steps { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.omv2-flow-step { display: flex; flex-direction: column; align-items: flex-start; }
.omv2-flow-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: #fff;
}
.omv2-flow-step-label { font-size: 12px; color: #374151; margin-top: 4px; font-weight: 500; }
.omv2-flow-arrow-v {
  width: 2px; height: 16px; background: #e5e7eb;
  margin-left: 17px; margin-top: 2px; margin-bottom: 2px;
}

/* ═══════════════════════════════════
   TAB6: Lock 관리
   ═══════════════════════════════════ */
.omv2-lock-overview {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px;
  padding: 16px 0 0;
}
.omv2-lock-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.omv2-lock-card i { font-size: 20px; margin-bottom: 4px; }
.omv2-lock-num { font-size: 28px; font-weight: 700; line-height: 1.1; }
.omv2-lock-lbl { font-size: 12px; color: #6b7280; }
.omv2-lock-total   { border-top: 3px solid #6b7280; }
.omv2-lock-total .omv2-lock-num { color: #374151; }
.omv2-lock-locked  { border-top: 3px solid #ef4444; }
.omv2-lock-locked i, .omv2-lock-locked .omv2-lock-num { color: #ef4444; }
.omv2-lock-unlocked{ border-top: 3px solid #22c55e; }
.omv2-lock-unlocked i, .omv2-lock-unlocked .omv2-lock-num { color: #22c55e; }
.omv2-lock-cond    { border-top: 3px solid #f97316; }
.omv2-lock-cond i, .omv2-lock-cond .omv2-lock-num { color: #f97316; }
.omv2-t6-actions   { display: flex; gap: 8px; }
.omv2-lock-legend  { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

/* form-input-sm */
.form-input-sm {
  padding: 5px 8px; font-size: 12px; height: auto;
}

/* 반응형 */
@media (max-width: 1100px) {
  .omv2-two-col { grid-template-columns: 1fr; }
  .omv2-side-col { position: static; }
  .omv2-t1-body  { grid-template-columns: 1fr; }
  .omv2-lock-overview { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .omv2-lock-overview { grid-template-columns: repeat(2,1fr); }
  .omv2-tab { padding: 8px 10px; font-size: 12px; }
  .omv2-step-label { display: none; }
  .omv2-tree-node { width: 120px; }
  .omv2-page-header { flex-direction: column; }
}


/* =====================================================
   org_management_v2 — 수평 조직도 트리 + 컨트롤바
   네임스페이스: v2cb- (컨트롤바) / v2- (본문) / v2m- (모달)
   ===================================================== */

/* ── 컨트롤 바 ── */
.v2cb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.v2cb-left, .v2cb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v2cb-select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  outline: none;
  min-width: 110px;
}
.v2cb-select:focus { border-color: #2563eb; }
.v2cb-check-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}
.v2cb-check-label input { cursor: pointer; }
.v2cb-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.v2cb-search-icon {
  position: absolute;
  left: 9px;
  color: #9ca3af;
  font-size: 12px;
  pointer-events: none;
}
.v2cb-search {
  height: 34px;
  padding: 0 10px 0 28px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  width: 180px;
  outline: none;
  color: #374151;
}
.v2cb-search:focus { border-color: #2563eb; box-shadow: 0 0 0 2px #2563eb22; }
.v2cb-zoom-group {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
}
.v2cb-zoom-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: #f9fafb;
  color: #374151;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.v2cb-zoom-btn:hover { background: #e5e7eb; }
.v2cb-zoom-val {
  min-width: 44px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  padding: 0 4px;
  line-height: 30px;
}
.v2cb-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.v2cb-btn:hover { background: #f3f4f6; border-color: #9ca3af; }

/* ── 본문 레이아웃 ── */
.v2-body {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 12px;
  min-height: 420px;
}
.v2-canvas-wrap {
  overflow: auto;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 400px;
  padding: 24px 16px;
}
.v2-canvas {
  transform-origin: top center;
  transition: transform .2s;
  min-width: min-content;
}

/* ── 수평 트리 구조 ── */
.v2-tree-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.v2-level {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.v2-level-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0;
}
.v2-level-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── 연결선 (부모→자식 방식) ── */
/*
  구조:
    .v2-level-row.has-parent  ← 이 레벨 위에 수직선 (::before)
    .v2-level-col             ← 각 카드 위에 수직 줄기 (::before)
                                 + 카드들을 잇는 수평선 (::after on row)
*/

/* 레벨 전체: 부모로부터 내려오는 중앙 수직선 */
.v2-level-row.has-parent {
  position: relative;
  margin-top: 0;
}
/* 수평 브리지 선 (자식들 위를 가로지름) */
.v2-level-row.has-parent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: #d1d5db;
  /* 너비는 JS에서 동적으로 계산하기 어려우므로
     자식 컬럼 수에 따라 CSS calc 근사 적용 */
  width: calc(100% - 160px);
  min-width: 2px;
}
/* 각 자식 카드 위 수직선 */
.v2-level-col.has-parent-line {
  position: relative;
  padding-top: 20px;
}
.v2-level-col.has-parent-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #d1d5db;
}
/* 부모 카드 아래 수직선 */
.v2-level-col.has-children-line {
  position: relative;
  padding-bottom: 20px;
}
.v2-level-col.has-children-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #d1d5db;
}
/* 레벨 사이 간격 */
.v2-level + .v2-level {
  margin-top: 0;
}

/* ── 카드 ── */
.v2-card {
  width: 152px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 11px 9px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: box-shadow .15s, transform .1s;
  user-select: none;
}
.v2-card:hover {
  box-shadow: 0 4px 16px #0001;
  transform: translateY(-1px);
}
.v2-card-sel {
  box-shadow: 0 0 0 3px #2563eb55;
}
.v2-card-match {
  box-shadow: 0 0 0 3px #f59e0b88 !important;
  animation: v2-pulse .6s ease-in-out;
}
@keyframes v2-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #f59e0b88; }
  50%  { box-shadow: 0 0 0 6px #f59e0b44; }
}
.v2-card-l1 { width: 172px; }
.v2-card-l2 { width: 152px; }
.v2-card-l3 { width: 138px; }
.v2-card-head-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}
.v2-card-type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.v2-card-type-label { font-size: 11px; font-weight: 600; flex: 1; }
.v2-card-more {
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
  border-radius: 4px;
  position: relative;
}
.v2-card-more:hover { background: #f3f4f6; color: #374151; }
.v2-card-more-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px #0002;
  z-index: 9999;
  min-width: 140px;
  overflow: hidden;
}
.v2-card-more-menu button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  text-align: left;
}
.v2-card-more-menu button:hover { background: #f3f4f6; }
.v2-card-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
  word-break: keep-all;
}
.v2-card-meta, .v2-card-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

/* ── 빈 상태 ── */
.v2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #9ca3af;
  gap: 12px;
  font-size: 14px;
}
.v2-empty i { font-size: 40px; color: #d1d5db; }

/* ── 범례 ── */
.v2-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.v2-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* ── 우측 상세 패널 ── */
.v2-detail-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 520px;
}
.v2-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: #9ca3af;
  text-align: center;
  padding: 24px;
}
.v2-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.v2-panel-title { font-size: 14px; font-weight: 700; color: #111827; }
.v2-panel-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.v2-panel-close:hover { background: #f3f4f6; color: #374151; }
.v2-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.v2-drow {
  display: flex;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  gap: 8px;
}
.v2-drow label {
  width: 88px;
  flex-shrink: 0;
  color: #6b7280;
  font-size: 12px;
  padding-top: 1px;
}
.v2-drow span { color: #111827; }
.v2-desc-row span { font-size: 12px; color: #4b5563; line-height: 1.5; }
.v2-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.v2-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
}

/* ── 모달 — org_management_v2 ── */
.modal-xl .modal-dialog { max-width: 860px; }

/* ── 섹션 래퍼 ── */
.v2m-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── 박스 (섹션 단위 카드) ── */
.v2m-box {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.v2m-box-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* 섹션 1: 기본정보(좌) + 조직장정보(우) 2열 */
.v2m-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 기본 정보 — 내부 2×2 그리드 */
.v2m-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 조직장 정보 — 검색 + 프리뷰 카드 */
.v2m-head-search-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.v2m-head-search-row .v2m-input { flex: 1; }
.v2m-head-search-btn {
  height: 36px;
  padding: 0 12px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.v2m-head-search-btn:hover { background: #1d4ed8; }
/* 검색 결과 드롭다운 */
.v2m-head-results {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  max-height: 140px;
  overflow-y: auto;
  margin-top: 4px;
  background: #fff;
  display: none;
}
.v2m-head-results.open { display: block; }
.v2m-head-result-item {
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
  color: #111827;
}
.v2m-head-result-item:hover { background: #f3f4f6; }
/* 선택된 조직장 프리뷰 카드 */
.v2m-head-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  margin-top: 8px;
}
.v2m-head-preview.hidden { display: none; }
.v2m-head-preview-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8;
}
.v2m-head-preview-no {
  font-size: 11px;
  color: #6b7280;
}
.v2m-head-clear {
  background: none;
  border: none;
  font-size: 14px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.v2m-head-clear:hover { color: #ef4444; }

/* 섹션 2: 평가자 설정 — 라디오 + 자동배정규칙 */
.v2m-eval-radio-row {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}
.v2m-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  font-weight: 500;
}
.v2m-radio-label input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
  cursor: pointer;
}
.v2m-auto-rule-wrap {
  border: 1px solid #dbeafe;
  background: #f0f7ff;
  border-radius: 6px;
  padding: 12px;
}
.v2m-auto-rule-label {
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 8px;
}
.v2m-rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.v2m-rule-sel { flex: 1; }
.v2m-arrow {
  font-size: 16px;
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}
.v2m-hint {
  font-size: 11px;
  color: #6b7280;
  margin: 8px 0 0;
  background: #e8f0fe;
  border-radius: 4px;
  padding: 5px 8px;
}

/* 섹션 3: 추가 정보 — 설명 + 체크박스 */
.v2m-desc-row {
  position: relative;
}
.v2m-char-count {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  color: #9ca3af;
  pointer-events: none;
}
.v2m-check-row {
  display: flex;
  align-items: center;
  padding-top: 10px;
}
.v2m-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.v2m-check-label input { cursor: pointer; }

/* 공통 폼 요소 */
.v2m-group { display: flex; flex-direction: column; gap: 4px; }
.v2m-label { font-size: 12px; font-weight: 600; color: #374151; }
.v2m-req { color: #ef4444; }
.v2m-input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #111827;
  background: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s;
}
.v2m-input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px #2563eb22; }
textarea.v2m-input { height: auto; padding: 8px 10px; resize: vertical; }
.v2m-textarea {
  height: 80px !important;
  resize: vertical;
  padding-bottom: 24px !important; /* 글자수 카운터 공간 */
}

/* ── 반응형 ── */
@media (max-width: 1200px) {
  .v2-body { grid-template-columns: 1fr 260px; }
}
@media (max-width: 900px) {
  .v2-body { grid-template-columns: 1fr; }
  .v2cb-bar { flex-direction: column; align-items: flex-start; }
  .v2m-top-row { grid-template-columns: 1fr; }
  .v2m-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .v2m-info-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   구성원 관리 (emp-) — v=20260516d
   ════════════════════════════════════════════════════════════ */

/* ── 페이지 헤더 ── */
.emp-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.emp-header-left { display: flex; flex-direction: column; gap: 4px; }
.emp-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.emp-page-title i { color: #2563eb; font-size: 18px; }
.emp-page-desc { font-size: 13px; color: #6b7280; margin: 0; }
.emp-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── 필터 바 ── */
.emp-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.emp-filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.emp-filter-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.emp-filter-select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  outline: none;
  cursor: pointer;
  min-width: 110px;
  transition: border-color .15s;
}
.emp-filter-select:focus { border-color: #2563eb; box-shadow: 0 0 0 2px #2563eb22; }

.emp-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.emp-search-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: #9ca3af;
  pointer-events: none;
}
.emp-search-input {
  height: 34px;
  padding: 0 10px 0 32px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  outline: none;
  width: 220px;
  transition: border-color .15s;
}
.emp-search-input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px #2563eb22; }
.emp-search-input::placeholder { color: #9ca3af; }

/* ── 본문 레이아웃 (좌+우 패널) ── */
.emp-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  align-items: start;
  min-height: 500px;
}
.emp-body.panel-hidden {
  grid-template-columns: 1fr;
}

/* ── 좌측 테이블 영역 ── */
.emp-main {
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.emp-table-meta {
  padding: 10px 16px;
  font-size: 13px;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.emp-table-meta b { color: #111827; font-weight: 700; }
.emp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 테이블 ── */
.emp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 760px;
}
.emp-table thead tr {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.emp-table th {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
  white-space: nowrap;
  user-select: none;
}
.emp-table td {
  padding: 10px 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  white-space: nowrap;
}
.emp-row {
  cursor: pointer;
  transition: background .12s;
}
.emp-row:hover { background: #f0f7ff; }
.emp-row:hover td { border-bottom-color: #dbeafe; }
.emp-row-sel { background: #eff6ff !important; }
.emp-row-sel td { border-bottom-color: #bfdbfe !important; }
.emp-row-sel td:first-child { border-left: 3px solid #2563eb; }

/* ── 컬럼별 너비 ── */
.emp-td-check { width: 36px; text-align: center; padding-left: 8px !important; }
.emp-td-photo { width: 52px; text-align: center; }
.emp-td-name  { min-width: 90px; font-weight: 500; color: #111827; }
.emp-td-email { min-width: 140px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.emp-td-more  { width: 40px; text-align: center; }

/* ── 이름 링크 ── */
.emp-name-link {
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
}
.emp-name-link:hover { text-decoration: underline; }

/* ── 프로필 이미지 & 이니셜 ── */
.emp-avatar {
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
}
.emp-avatar-init {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 700;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── 상태 뱃지 ── */
.emp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
}
.emp-badge-green  { background: #d1fae5; color: #065f46; }
.emp-badge-orange { background: #fef3c7; color: #92400e; }
.emp-badge-gray   { background: #f3f4f6; color: #6b7280; }
.emp-badge-blue   { background: #dbeafe; color: #1d4ed8; }
.emp-badge-red    { background: #fee2e2; color: #991b1b; }

/* ── 체크박스 ── */
.emp-chk, #emp-chk-all {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #2563eb;
}

/* ── 더보기 버튼 ── */
.emp-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 18px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  transition: background .12s, color .12s;
}
.emp-more-btn:hover { background: #e5e7eb; color: #374151; }

/* ── 더보기 드롭다운 메뉴 ── */
.emp-more-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 160px;
  padding: 4px 0;
  animation: fadeIn .1s ease;
}
.emp-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .1s;
}
.emp-menu-item:hover { background: #f3f4f6; }
.emp-menu-item i { width: 14px; color: #6b7280; font-size: 12px; }
.emp-menu-danger { color: #dc2626 !important; }
.emp-menu-danger:hover { background: #fef2f2 !important; }
.emp-menu-danger i { color: #dc2626 !important; }

/* ── 페이지네이션 ── */
.emp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.emp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all .12s;
}
.emp-page-btn:hover { background: #f0f7ff; border-color: #2563eb; color: #2563eb; }
.emp-page-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 700;
}
.emp-page-dots { color: #9ca3af; font-size: 13px; padding: 0 2px; }
.emp-page-size {
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  margin-left: 8px;
}

/* ── 로딩 & 빈 상태 ── */
.emp-loading, .emp-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 13px;
}
.emp-loading i { font-size: 20px; margin-bottom: 8px; display: block; color: #2563eb; }
.emp-empty { color: #6b7280; }

/* ── 우측 상세 패널 ── */
.emp-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  transition: opacity .2s;
}
.emp-panel.hidden { display: none; }
.emp-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: #9ca3af;
  font-size: 13px;
  flex: 1;
}
.emp-panel-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #2563eb;
  font-size: 20px;
  flex: 1;
}

/* 패널 헤더 */
.emp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}
.emp-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.emp-panel-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 15px;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
}
.emp-panel-close:hover { background: #e5e7eb; color: #111827; }

/* 패널 프로필 영역 */
.emp-panel-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.emp-panel-profile-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.emp-panel-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.emp-panel-sub {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 패널 탭 */
.emp-panel-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}
.emp-panel-tab {
  flex: 1;
  padding: 9px 4px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  text-align: center;
}
.emp-panel-tab:hover { color: #2563eb; background: #f0f7ff; }
.emp-panel-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 700;
}

/* 패널 콘텐츠 스크롤 */
.emp-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  min-height: 0;
}

/* 패널 하단 */
.emp-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}
.emp-panel-footer-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}
.emp-panel-footer-row .btn { flex: 1; }
#emp-panel-pw { width: 100%; margin-top: 8px; }

/* ── 상세 패널 정보 목록 ── */
.emp-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.emp-info-row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
  font-size: 13px;
}
.emp-info-row:last-child { border-bottom: none; }
.emp-info-row label {
  min-width: 90px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  flex-shrink: 0;
}
.emp-info-row span {
  flex: 1;
  color: #111827;
  word-break: break-word;
}

/* ── 이력 테이블 ── */
.emp-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.emp-history-table th {
  padding: 8px 10px;
  background: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
}
.emp-history-table td {
  padding: 8px 10px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.emp-history-table tr:last-child td { border-bottom: none; }

/* ── 패널 카드 (ep-card) ── */
.ep-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  overflow: hidden;
}
.ep-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}
.ep-card-title i { color: #2563eb; }

/* ── 빈 상태 ── */
.ep-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  color: #9ca3af;
  gap: 6px;
  font-size: 12px;
}
.ep-empty-state i { font-size: 22px; }

/* ── 카운트 배지 ── */
.ep-badge-count {
  display: inline-block;
  padding: 1px 7px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}

/* ──────────────────────────────────────────
   타임라인 (ep-timeline)
   ────────────────────────────────────────── */
.ep-timeline {
  display: flex;
  flex-direction: column;
  padding: 2px 0;
}

/* 아이템 래퍼 */
.ep-tl-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.ep-tl-item:last-child { padding-bottom: 0; }

/* 점(dot) + 세로선 */
.ep-tl-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 22px;
}
.ep-tl-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e5e7eb;
}
.ep-tl-line {
  width: 2px;
  flex: 1;
  background: #e5e7eb;
  margin-top: 5px;
  min-height: 10px;
}
.ep-tl-item:last-child .ep-tl-line { display: none; }

/* 본문 */
.ep-tl-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.ep-tl-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}
.ep-tl-type {
  font-size: 12px;
  font-weight: 700;
}
.ep-tl-orderno {
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
}
.ep-tl-date {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
}
.ep-tl-by {
  font-size: 11px;
  color: #9ca3af;
}

/* 변경 내용 */
.ep-tl-changes {
  background: #f8fafc;
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ep-tl-change-row {
  font-size: 12px;
  color: #374151;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.ep-tl-arrow { color: #9ca3af; font-size: 10px; }
.ep-tl-from {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 11px;
  text-decoration: line-through;
}
.ep-tl-to {
  background: #dcfce7;
  color: #16a34a;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 11px;
}

/* 메모 */
.ep-tl-memo {
  font-size: 11px;
  color: #6b7280;
  background: #fefce8;
  border-left: 3px solid #fde047;
  padding: 5px 8px;
  border-radius: 0 4px 4px 0;
  white-space: pre-wrap;
}

/* ── 구성원 추가/수정 모달 ── */
.emp-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}
.emp-modal-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.emp-modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  padding-bottom: 8px;
  border-bottom: 2px solid #dbeafe;
  margin-bottom: 4px;
}

/* ── 프로필 섹션 ── */
.emp-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 4px;
}

/* ── 반응형 ── */
@media (max-width: 1280px) {
  .emp-body { grid-template-columns: 1fr 300px; }
}
@media (max-width: 1024px) {
  .emp-body { grid-template-columns: 1fr 280px; }
  .emp-modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .emp-body { grid-template-columns: 1fr; }
  .emp-panel {
    position: static;
    max-height: none;
  }
  .emp-filter-bar { flex-direction: column; align-items: stretch; }
  .emp-filter-left { flex-direction: column; }
  .emp-search-input { width: 100%; }
}
@media (max-width: 600px) {
  .emp-page-header { flex-direction: column; }
  .emp-header-actions { width: 100%; justify-content: flex-end; }
  .emp-table { font-size: 12px; }
  .emp-td-email { display: none; }
}
}

/* ═══════════════════════════════════════════════════════
   구성원 추가/수정 모달 — 강제 적용 v5 (modal-dialog 직접)
   ═══════════════════════════════════════════════════════ */

/* ── 1. ecm 모달 전용: 모달 폭·높이 완전 강제 ── */
/* ※ :has() 사용 금지 — .modal-ecm 클래스 직접 부여 방식 사용 */
.modal-ecm {
  width: 1280px !important;
  max-width: 96vw !important;
  max-height: 92vh !important;
  min-height: 680px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
@media (max-width: 1400px) {
  .modal-ecm {
    width: 96vw !important;
    max-height: 94vh !important;
  }
}
@media (max-width: 900px) {
  .modal-ecm {
    width: 98vw !important;
    max-height: 96vh !important;
    min-height: auto !important;
  }
}
.modal-ecm .modal-header {
  flex-shrink: 0 !important;
}
.modal-ecm .modal-body {
  padding: 0 !important;
  overflow: hidden !important;
  flex: 1 !important;
  min-height: 0 !important;
}
.modal-ecm .modal-footer {
  flex-shrink: 0 !important;
}

/* ── 2. 레이아웃 ── */
.ecm-layout {
  display: flex !important;
  gap: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

/* ── 5. 좌: 프로필 고정폭 ── */
.ecm-profile-section {
  width: 200px !important;
  flex-shrink: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  box-sizing: border-box;
  height: 100% !important;
}
.ecm-avatar {
  width: 120px; height: 120px;
  border-radius: 50%; background: #e5e7eb;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  border: 2px solid #d1d5db; flex-shrink: 0;
}
.ecm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecm-avatar-icon { font-size: 44px; color: #9ca3af; }
.ecm-upload-btn {
  width: 100%; height: 36px; padding: 0 12px;
  background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; color: #374151; cursor: pointer;
  box-sizing: border-box; text-align: center; transition: background 0.15s;
}
.ecm-upload-btn:hover { background: #f3f4f6; }
.ecm-upload-hint { font-size: 11px; color: #9ca3af; text-align: center; line-height: 1.6; margin: 0; }

/* ── 6. 우: 폼 영역 — 내부 스크롤 ── */
.ecm-form-section {
  flex: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 20px 24px !important;
  box-sizing: border-box !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ── 7. 섹션 카드 ── */
.ecm-card {
  border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px; background: #fff;
}
.ecm-card:last-child { margin-bottom: 0; }
.ecm-card-title {
  font-size: 13px; font-weight: 700; color: #111827;
  padding-bottom: 10px; margin: 0 0 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.ecm-optional { font-size: 12px; font-weight: 400; color: #9ca3af; margin-left: 4px; }

/* ── 8. 3열 그리드 강제 ── */
.ecm-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px 16px !important;
}

/* ── 9. 필드 단위 ── */
.ecm-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  min-width: 0 !important;
}
.ecm-label { font-size: 13px; font-weight: 500; color: #374151; }
.ecm-req { color: #ef4444; margin-left: 1px; }

/* ── 10. input/select 100% 강제 ── */
.ecm-input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  padding: 0 10px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: #111827 !important;
  box-sizing: border-box !important;
  background: #fff !important;
  outline: none;
  appearance: auto;
}
.ecm-input:focus { border-color: #2563EB !important; box-shadow: 0 0 0 2px rgba(37,99,235,.12) !important; }
.ecm-input[readonly] { background: #f9fafb !important; color: #6b7280 !important; cursor: not-allowed !important; }

/* ── 11. 라디오 / 체크박스 ── */
.ecm-gender-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.ecm-radio { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #374151; cursor: pointer; }
.ecm-radio input[type="radio"] { cursor: pointer; margin: 0; flex-shrink: 0; }
.ecm-checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: #374151; cursor: pointer; }
.ecm-checkbox-row input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; margin: 0; }
.ecm-hint { color: #9ca3af; font-size: 11px; }

/* ── 12. 반응형 ── */
@media (max-width: 860px) {
  .ecm-layout { flex-direction: column !important; }
  .ecm-profile-section {
    width: 100% !important; border-right: none;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 16px;
  }
  .ecm-grid-3 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 540px) {
  .ecm-grid-3 { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════
   13. 모달 5탭 — 탭 바 & 탭 패널
   ════════════════════════════════════════════ */
/* form 자체도 flex column으로 채움 */
#ecm-form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.ecm-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ecm-tab-bar::-webkit-scrollbar { display: none; }
.ecm-tab {
  flex-shrink: 0;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.ecm-tab:hover { color: #2563EB; }
.ecm-tab.ecm-tab-active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 600;
}
.ecm-tab-pane { display: none !important; }
.ecm-tab-pane.ecm-tab-pane-active {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* ════════════════════════════════════════════
   14. 추가정보 탭 — 인라인 편집 테이블 (ecm-xt)
   ════════════════════════════════════════════ */
.ecm-xt-section { margin-bottom: 24px; }
.ecm-xt-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ecm-xt {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}
.ecm-xt thead th {
  background: #f3f4f6;
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.ecm-xt tbody td {
  padding: 4px 4px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.ecm-xt tbody tr:hover td { background: #f9fafb; }
.ecm-xt-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 12px;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  min-width: 60px;
}
.ecm-xt-input:focus { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,.10); }
.ecm-xt-input.sm { min-width: 50px; max-width: 80px; }
.ecm-xt-input[type="checkbox"] {
  width: 15px; height: 15px;
  min-width: unset; max-width: unset;
  padding: 0; margin: 0 auto; display: block;
}
.ecm-xt-input[type="date"] { min-width: 110px; }
.ecm-add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.ecm-add-row-btn:hover { background: #DBEAFE; }
.ecm-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: #fee2e2;
  border: none;
  border-radius: 4px;
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.ecm-del-btn:hover { background: #fecaca; }

/* 주소 섹션 별도 폼 */
.ecm-addr-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 10px;
  align-items: center;
  font-size: 12px;
}
.ecm-addr-grid label { color: #6b7280; font-weight: 500; }
.ecm-addr-grid .ecm-xt-input { width: 100%; }
.ecm-addr-full { grid-column: 1 / -1; }

/* 메모 텍스트에리어 */
.ecm-memo-area {
  width: 100%;
  min-height: 80px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #111827;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}
.ecm-memo-area:focus { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,.10); }

/* ════════════════════════════════════════════
   15. 인사기록부 탭 — 요약 카드 (hrs-*)
   이미지3 기준 3열 균일 카드 레이아웃
   ════════════════════════════════════════════ */

/* ── 헤더 ── */
.hr-sum-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hr-sum-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.hr-sum-desc {
  font-size: 12px;
  color: #6B7280;
}
.hr-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #2563EB;
  background: #fff;
  border: 1px solid #2563EB;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.hr-view-btn:hover { background: #EFF6FF; }

/* ── 요약 래퍼 ── */
.hr-preview-wrap {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

/* ── 3열 그리드 ── */
.hrs-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 1000px) {
  .hrs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .hrs-grid { grid-template-columns: 1fr !important; }
}

/* ── 카드 공통 ── */
.hrs-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px;
  overflow: hidden;
}
.hrs-card-hd {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hrs-card-hd i { color: #2563EB; font-size: 12px; }

/* ── 라벨-값 테이블 ── */
.hrs-kv-tbl { width: 100%; border-collapse: collapse; }
.hrs-kv-lbl {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
  padding: 3px 8px 3px 0;
  width: 72px;
  vertical-align: top;
  white-space: nowrap;
}
.hrs-kv-val {
  font-size: 12px;
  color: #111827;
  padding: 3px 0;
  word-break: break-all;
}

/* ── 미니 테이블 (가족/학력 등) ── */
.hrs-mini-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.hrs-mini-tbl thead th {
  background: #F9FAFB;
  color: #6B7280;
  font-weight: 600;
  padding: 5px 6px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
}
.hrs-mini-tbl tbody td {
  padding: 5px 6px;
  color: #374151;
  border-bottom: 1px solid #F3F4F6;
  word-break: break-all;
}
.hrs-mini-tbl tbody tr:last-child td { border-bottom: none; }

/* ── 더보기 링크 ── */
.hrs-more-link {
  font-size: 11px;
  color: #2563EB;
  cursor: pointer;
  padding: 4px 0 0;
}
.hrs-more-link:hover { text-decoration: underline; }

/* ── 빈 상태 ── */
.hrs-empty { font-size: 12px; color: #9CA3AF; padding: 6px 0; margin: 0; }

/* ── 메모 텍스트 ── */
.hrs-memo-txt {
  font-size: 12px;
  color: #374151;
  white-space: pre-wrap;
  line-height: 1.6;
  min-height: 40px;
}

/* ── 하단 안내 바 ── */
.hrs-info-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1D4ED8;
  margin-top: 4px;
}
.hrs-info-bar i { flex-shrink: 0; margin-top: 2px; }

@media (max-width: 900px) {
  .hrs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hrs-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   16. 인사기록부 출력 페이지 (er-*)
   ════════════════════════════════════════════ */
.er-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  font-size: 13px;
  color: #111827;
}
.er-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.er-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.er-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; color: #374151; font-size: 13px; cursor: pointer;
  transition: background .15s;
}
.er-back-btn:hover { background: #f3f4f6; }
.er-toolbar-title { font-size: 16px; font-weight: 700; color: #111827; }
.er-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.er-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s;
  border: none;
}
.er-btn.print { background: #f3f4f6; color: #374151; }
.er-btn.print:hover { background: #e5e7eb; }
.er-btn.excel { background: #dcfce7; color: #15803d; }
.er-btn.excel:hover { background: #bbf7d0; }
.er-btn.pdf { background: #dbeafe; color: #1d4ed8; }
.er-btn.pdf:hover { background: #bfdbfe; }

/* 인사기록부 본문 */
.er-report {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.er-report-header {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.er-profile-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.4);
  flex-shrink: 0;
  background: rgba(255,255,255,.2);
}
.er-profile-photo-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: rgba(255,255,255,.7);
  flex-shrink: 0;
}
.er-header-info { flex: 1; }
.er-header-name { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.er-header-sub { font-size: 13px; color: rgba(255,255,255,.8); display: flex; gap: 14px; flex-wrap: wrap; }
.er-header-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  font-size: 12px; color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.er-section {
  padding: 20px 28px;
  border-bottom: 1px solid #e5e7eb;
}
.er-section:last-child { border-bottom: none; }
.er-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.er-section-title i { color: #4f46e5; }
.er-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px;
}
.er-field { display: flex; flex-direction: column; gap: 2px; }
.er-field-label { font-size: 11px; color: #9ca3af; font-weight: 500; }
.er-field-value { font-size: 13px; color: #111827; font-weight: 500; word-break: break-word; }
.er-field-value.empty { color: #d1d5db; font-style: italic; }

/* 인라인 테이블 (학력/경력/자격 등) */
.er-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.er-tbl thead th {
  background: #f3f4f6;
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}
.er-tbl tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}
.er-tbl tbody tr:last-child td { border-bottom: none; }
.er-empty-row td { color: #d1d5db; text-align: center; padding: 12px; font-style: italic; }

@media print {
  .er-toolbar { display: none !important; }
  .er-page { padding: 0; }
  .er-report { border: none; border-radius: 0; }
}
@media (max-width: 640px) {
  .er-grid { grid-template-columns: repeat(2, 1fr); }
  .er-report-header { flex-direction: column; text-align: center; }
  .er-section { padding: 16px; }
}

/* ════════════════════════════════════════════
   추가 정보 탭 — 3열 그리드 카드 레이아웃 (ex-*)
   ════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   추가정보 탭 전용 — 3열 고정 그리드 + 파란색 테마
   ════════════════════════════════════════════ */

/* 3열 그리드 — 절대 깨지지 않음 */
.ex-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  padding: 2px 0 16px !important;
  overflow: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 1100px) {
  .ex-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 700px) {
  .ex-grid { grid-template-columns: 1fr !important; }
}

/* 카드 공통 */
.ex-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  min-height: 180px;
  box-sizing: border-box;
}

/* 카드 헤더 */
.ex-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
  flex-shrink: 0;
}
.ex-card-ttl {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ex-card-ttl i { color: #2563EB; font-size: 12px; }

/* + 추가 버튼 — 파란 outline */
.ex-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #2563EB;
  background: transparent;
  border: 1px solid #2563EB;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.ex-add-btn:hover { background: #EFF6FF; }
.ex-add-btn i { font-size: 10px; }

/* 테이블 래퍼 — 가로 스크롤 허용 */
.ex-tbl-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  flex: 1;
}
.ex-tbl-wrap::-webkit-scrollbar { height: 4px; }
.ex-tbl-wrap::-webkit-scrollbar-track { background: #f9fafb; }
.ex-tbl-wrap::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* 인라인 편집 테이블 */
.ex-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 280px;
}
.ex-tbl thead th {
  background: #F9FAFB;
  padding: 8px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
}
.ex-tbl tbody td {
  padding: 4px 4px;
  border-bottom: 1px solid #E5E7EB;
  vertical-align: middle;
}
.ex-tbl tbody tr:last-child td { border-bottom: none; }
.ex-tbl tbody tr:hover td { background: #F9FAFB; }

/* 셀 안 input / select — 정상 크기 36px 높이 */
.ex-inp {
  width: 100%;
  height: 32px;
  min-width: 50px;
  padding: 4px 8px;
  border: 1px solid #D1D5DB;
  border-radius: 5px;
  font-size: 12px;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.ex-inp:focus { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,.10); }
.ex-inp.ex-inp-sm { min-width: 44px; max-width: 70px; }
.ex-inp[type="date"],
.ex-inp[type="month"] { min-width: 108px; }

/* 체크박스 셀 */
.ex-td-chk { text-align: center; width: 44px; }
.ex-chk { width: 15px; height: 15px; cursor: pointer; margin: 0; }

/* 삭제 버튼 셀 */
.ex-td-del { width: 32px; text-align: center; }
.ex-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: #FEE2E2;
  border: none;
  border-radius: 4px;
  color: #EF4444;
  font-size: 11px;
  cursor: pointer;
  transition: background .15s;
}
.ex-del-btn:hover { background: #FECACA; }

/* 주소 전용 */
.ex-addr-body { display: flex; flex-direction: column; gap: 8px; }
.ex-addr-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.ex-addr-zip-wrap { flex-shrink: 0; }
.ex-lbl {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 4px;
}
.ex-zip-btn {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.ex-zip-btn:hover { background: #DBEAFE; }

/* 주소 입력칸 공통 (ex-inp과 같은 스타일) */
.ex-inp-addr {
  width: 100%;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #D1D5DB;
  border-radius: 5px;
  font-size: 12px;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.ex-inp-addr:focus { border-color: #2563EB; }

/* 메모 텍스트에리어 */
.ex-memo-ta {
  width: 100%;
  flex: 1;
  min-height: 90px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #111827;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}
.ex-memo-ta:focus { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,.10); }
.ex-memo-cnt {
  text-align: right;
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 4px;
  flex-shrink: 0;
}

/* 하단 안내 바 */
.ex-info-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 7px;
  font-size: 12px;
  color: #1D4ED8;
  margin-top: 12px;
}
.ex-info-bar i { color: #2563EB; flex-shrink: 0; }

/* ════════════════════════════════════════════
   인사기록부 출력 모달 (hr-report / hr-doc)
   이미지1 기준 A4형 출력 스타일
   ════════════════════════════════════════════ */

/* ── 래퍼 ── */
.hr-report-wrap {
  padding: 0;
}

/* ── 상단 버튼 바 ── */
.hr-report-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #E5E7EB;
  background: #F9FAFB;
}
.hr-report-btns button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #374151;
}
.hr-report-btns button:hover { background: #F3F4F6; }
.hr-btn-pdf  { color: #DC2626 !important; border-color: #FECACA !important; }
.hr-btn-excel{ color: #16A34A !important; border-color: #BBF7D0 !important; }
.hr-btn-print{ color: #374151 !important; }

/* ── 문서 영역 ── */
.hr-doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #fff;
}
.hr-doc-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #111827;
}

/* ── 상단: 프로필 + 기본정보 ── */
.hr-top-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.hr-photo-box {
  flex-shrink: 0;
  width: 100px;
  height: 130px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAFB;
}
.hr-photo-img { width: 100%; height: 100%; object-fit: cover; }
.hr-photo-placeholder { font-size: 36px; color: #D1D5DB; }

/* ── 기본정보 테이블 ── */
.hr-info-tbl {
  flex: 1;
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hr-info-lbl {
  background: #F3F4F6;
  color: #374151;
  font-weight: 600;
  padding: 7px 10px;
  border: 1px solid #E5E7EB;
  width: 80px;
  white-space: nowrap;
}
.hr-info-val {
  padding: 7px 12px;
  border: 1px solid #E5E7EB;
  color: #111827;
}

/* ── 섹션 공통 ── */
.hr-section {
  margin-bottom: 16px;
}
.hr-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1D4ED8;
  background: #EFF6FF;
  border-left: 3px solid #2563EB;
  padding: 6px 10px;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
}

/* ── 섹션 내 미니 테이블 ── */
.hr-mini-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.hr-mini-tbl thead th {
  background: #F9FAFB;
  color: #6B7280;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid #E5E7EB;
  text-align: left;
}
.hr-mini-tbl tbody td {
  padding: 6px 10px;
  border: 1px solid #E5E7EB;
  color: #374151;
  word-break: break-word;
}
.hr-mini-tbl tbody tr:nth-child(even) td { background: #FAFAFA; }

/* ── 2열 레이아웃 ── */
.hr-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.hr-two-col .hr-section { margin-bottom: 0; }

/* ── 메모 박스 ── */
.hr-memo-box {
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  background: #FAFAFA;
}
.hr-empty { font-size: 12px; color: #9CA3AF; padding: 6px 0; margin: 0; }

/* ── 인쇄 스타일 ── */
@media print {
  .modal-overlay,
  .hr-report-btns,
  .modal-header { display: none !important; }
  .hr-doc {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  body { margin: 0; }
}

