/* ============================================================
   DX Intranet — intranet.css v1.0.0
   기업용 인트라넷 테마 메인 스타일시트
   ============================================================ */

/* ── 기본 리셋 ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body.dxi-body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }
img { max-width: 100%; vertical-align: middle; }


/* ============================================================
   레이아웃 — 사이드바 + 콘텐츠
   ============================================================ */
.dxi-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.dxi-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: margin-left .25s cubic-bezier(.4,0,.2,1);
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.dxi-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: width .25s cubic-bezier(.4,0,.2,1);
  z-index: 200;
  position: relative;
}

/* 접힌 상태 */
.dxi-body.sidebar-collapsed .dxi-sidebar { width: 60px; }
.dxi-body.sidebar-collapsed .dxi-logo-text,
.dxi-body.sidebar-collapsed .dxi-user-info,
.dxi-body.sidebar-collapsed .dxi-user-setting,
.dxi-body.sidebar-collapsed .dxi-nav-label,
.dxi-body.sidebar-collapsed .dxi-nav-arrow,
.dxi-body.sidebar-collapsed .dxi-new-badge,
.dxi-body.sidebar-collapsed .dxi-sidebar-footer span { display: none; }
.dxi-body.sidebar-collapsed .dxi-sidebar-toggle i { transform: rotate(180deg); }
.dxi-body.sidebar-collapsed .dxi-logo { padding: 0 10px; justify-content: center; }
.dxi-body.sidebar-collapsed .dxi-logo-link { gap: 0; }
.dxi-body.sidebar-collapsed .dxi-user-card { justify-content: center; padding: 12px 0; }
.dxi-body.sidebar-collapsed .dxi-nav-item,
.dxi-body.sidebar-collapsed .dxi-nav-parent { justify-content: center; padding: 0 10px; }
.dxi-body.sidebar-collapsed .dxi-nav-icon { margin-right: 0; }
.dxi-body.sidebar-collapsed .dxi-nav-sub { display: none !important; }
.dxi-body.sidebar-collapsed .dxi-sidebar-footer { justify-content: center; padding: 12px 0; }
.dxi-body.sidebar-collapsed .dxi-sidebar-logout,
.dxi-body.sidebar-collapsed .dxi-sidebar-login { justify-content: center; }

/* 로고 */
.dxi-logo {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 8px;
}
.dxi-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}
.dxi-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--p);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(26,115,232,.3);
}
.dxi-logo-text { display: flex; flex-direction: column; min-width: 0; }
.dxi-logo-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.dxi-logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.dxi-sidebar-toggle {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all .2s;
}
.dxi-sidebar-toggle:hover { background: var(--p-light); color: var(--p); border-color: var(--p); }
.dxi-sidebar-toggle i { transition: transform .25s; }

/* 유저 카드 */
.dxi-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.dxi-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), #6366f1);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.dxi-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dxi-user-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg-sidebar);
}
.dxi-user-status.online { background: #10b981; }
.dxi-user-info { flex: 1; min-width: 0; }
.dxi-user-name {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dxi-user-dept {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dxi-user-setting {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .2s;
}
.dxi-user-setting:hover { background: var(--p-light); color: var(--p); }

/* 네비게이션 */
.dxi-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dxi-nav::-webkit-scrollbar { width: 4px; }
.dxi-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.dxi-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: var(--nav-item-h);
  padding: 0 10px;
  border-radius: var(--nav-radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .18s;
  border: none;
  background: none;
  text-decoration: none;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.dxi-nav-item:hover { background: var(--bg-body); color: var(--text-main); }
.dxi-nav-item.active {
  background: var(--p-light);
  color: var(--p);
  font-weight: 700;
}
.dxi-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: color .18s;
}
.dxi-nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.dxi-nav-arrow {
  font-size: 10px;
  margin-left: auto;
  transition: transform .2s;
  flex-shrink: 0;
}

/* 그룹 (서브메뉴 있음) */
.dxi-nav-group.open > .dxi-nav-parent .dxi-nav-arrow { transform: rotate(90deg); }
.dxi-nav-parent { font-weight: 600; }
.dxi-nav-parent.active { background: var(--p-light); color: var(--p); }

.dxi-nav-sub {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 8px;
}
.dxi-nav-group.open .dxi-nav-sub { display: flex; }
.dxi-nav-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .15s;
}
.dxi-nav-sub-item:hover { background: var(--bg-body); color: var(--text-main); }
.dxi-nav-sub-item.active { background: var(--p-alpha); color: var(--p); font-weight: 700; }
.dxi-nav-sub-icon { width: 15px; text-align: center; font-size: 11px; flex-shrink: 0; }

.dxi-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}
.dxi-nav-admin { color: #7c3aed !important; }
.dxi-nav-admin:hover { background: rgba(124,58,237,.08) !important; }
.dxi-nav-admin .dxi-nav-icon { color: #7c3aed; }

/* NEW 뱃지 */
.dxi-new-badge, .dxp-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.2;
  letter-spacing: .02em;
  flex-shrink: 0;
}

/* 사이드바 푸터 */
.dxi-sidebar-footer {
  padding: 10px 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.dxi-sidebar-logout, .dxi-sidebar-login {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--nav-radius);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .18s;
}
.dxi-sidebar-logout:hover { background: #fef2f2; color: #ef4444; }
.dxi-sidebar-login:hover { background: var(--p-light); color: var(--p); }


/* ============================================================
   HEADER
   ============================================================ */
.dxi-header {
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  flex-shrink: 0;
  z-index: 100;
  position: sticky;
  top: 0;
}
.dxi-header-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.dxi-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 모바일 햄버거 */
.dxi-mob-menu {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-muted);
  font-size: 15px;
  align-items: center;
  justify-content: center;
}

/* 브레드크럼 */
.dxi-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.dxi-bc-sep { font-size: 9px; color: var(--text-sub); }
.dxi-bc-item { color: var(--text-muted); font-weight: 500; }
.dxi-bc-item.current { color: var(--text-main); font-weight: 700; }

/* 검색 */
.dxi-search-wrap { position: relative; }
.dxi-search-form { display: flex; align-items: center; position: relative; }
.dxi-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-sub);
  font-size: 12px;
  pointer-events: none;
}
.dxi-search-input {
  width: 220px;
  height: 32px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 14px 0 32px;
  font-size: 12.5px;
  color: var(--text-main);
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, width .2s;
}
.dxi-search-input:focus { border-color: var(--p); width: 280px; }
.dxi-search-input::placeholder { color: var(--text-sub); }

/* 헤더 아이콘 버튼 */
.dxi-header-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  position: relative;
  text-decoration: none;
}
.dxi-header-btn:hover { background: var(--p-light); color: var(--p); border-color: var(--p); }

/* 알림 패널 */
.dxi-notif-wrap { position: relative; }
.dxi-notif-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: #ef4444;
  color: #fff;
  border-radius: 99px;
  min-width: 16px; height: 16px;
  font-size: 9px; font-weight: 700;
  line-height: 1; padding: 3px 3px 0;
  border: 2px solid var(--bg-header);
  text-align: center;
}
.dxi-notif-panel {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  overflow: hidden;
}
.dxi-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}
.dxi-notif-actions { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.dxi-notif-act-btn { background: none; border: none; color: var(--p); font-weight: 600; font-size: 11.5px; padding: 0; }
.dxi-notif-list { max-height: 300px; overflow-y: auto; }
.dxi-notif-footer { border-top: 1px solid var(--border); padding: 8px; text-align: center; }
.dxi-notif-footer a { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.dxi-notif-footer a:hover { color: var(--p); }

/* 프로필 드롭다운 */
.dxi-profile-wrap { position: relative; }
.dxi-profile-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px 0 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: all .18s;
}
.dxi-profile-btn:hover { background: var(--bg-body); border-color: var(--p); }
.dxi-profile-ava {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), #6366f1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dxi-profile-ava img { width: 100%; height: 100%; object-fit: cover; }
.dxi-profile-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dxi-profile-arrow { font-size: 9px; color: var(--text-sub); }
.dxi-profile-drop {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  overflow: hidden;
}
.dxi-profile-drop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.dxi-profile-drop-ava {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), #6366f1);
  color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.dxi-profile-drop-ava img { width: 100%; height: 100%; object-fit: cover; }
.dxi-profile-drop-name { font-size: 13px; font-weight: 700; color: var(--text-main); }
.dxi-profile-drop-dept { font-size: 11px; color: var(--text-muted); }
.dxi-profile-drop-body { padding: 6px; }
.dxi-profile-drop-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-main);
  transition: background .15s;
}
.dxi-profile-drop-item:hover { background: var(--bg-body); }
.dxi-profile-drop-item i { width: 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.dxi-profile-drop-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dxi-profile-drop-logout { color: #ef4444 !important; }
.dxi-profile-drop-logout i { color: #ef4444 !important; }
.dxi-profile-drop-logout:hover { background: #fef2f2 !important; }

.dxi-btn-login {
  height: 32px;
  padding: 0 16px;
  background: var(--p);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(26,115,232,.25);
  transition: filter .15s;
}
.dxi-btn-login:hover { filter: brightness(1.1); }


/* ============================================================
   MAIN 콘텐츠
   ============================================================ */
.dxi-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.dxi-main::-webkit-scrollbar { width: 6px; }
.dxi-main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.dxi-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}


/* ============================================================
   공통 카드 컴포넌트
   ============================================================ */
.dxi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.dxi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
}
.dxi-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.dxi-card-title-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.dxi-card-body { padding: 18px; }
.dxi-card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.dxi-card-footer a { font-size: 12.5px; font-weight: 600; color: var(--p); }
.dxi-card-footer a:hover { text-decoration: underline; }

/* 통계 카드 */
.dxi-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.dxi-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.dxi-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.dxi-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.dxi-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.dxi-stat-value { font-size: 22px; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.dxi-stat-sub { font-size: 11px; color: var(--text-sub); margin-top: 1px; }

/* 퀵 액션 */
.dxi-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.dxi-quick-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all .2s;
  text-decoration: none;
}
.dxi-quick-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26,115,232,.12);
  border-color: var(--p);
}
.dxi-quick-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all .2s;
}
.dxi-quick-item:hover .dxi-quick-icon { transform: scale(1.1); }
.dxi-quick-label { font-size: 12px; font-weight: 700; color: var(--text-main); }
.dxi-quick-sub { font-size: 11px; color: var(--text-sub); line-height: 1.3; }

/* 공지사항 리스트 */
.dxi-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
  cursor: pointer;
}
.dxi-notice-item:last-child { border-bottom: none; }
.dxi-notice-item:hover { background: var(--hover-row); }
.dxi-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.dxi-notice-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.dxi-notice-title:hover { color: var(--p); }
.dxi-notice-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 3px;
  white-space: nowrap;
}
.dxi-notice-arrow { font-size: 10px; color: var(--text-sub); align-self: center; }
.dxi-notice-item:hover .dxi-notice-arrow { color: var(--p); }

/* 탭 필터 */
.dxi-tab-filter {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.dxi-tab-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.dxi-tab-btn.active { background: var(--bg-card); color: var(--p); box-shadow: var(--shadow-sm); }

/* 업무/프로젝트 */
.dxi-task-item {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.dxi-task-item:hover { border-color: var(--p); }
.dxi-task-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dxi-task-title { font-size: 13px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.dxi-task-title.done { text-decoration: line-through; color: var(--text-sub); }
.dxi-task-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dxi-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0;
}
.dxi-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--p);
  transition: width .5s ease;
}
.dxi-task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 6px;
}

/* 일정 타임라인 */
.dxi-timeline {
  position: relative;
  padding-left: 20px;
}
.dxi-timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.dxi-tl-item {
  position: relative;
  padding-bottom: 18px;
}
.dxi-tl-item:last-child { padding-bottom: 0; }
.dxi-tl-dot {
  position: absolute;
  left: -17px;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  flex-shrink: 0;
}
.dxi-tl-time { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.dxi-tl-title { font-size: 12.5px; font-weight: 600; color: var(--text-main); }
.dxi-tl-place { font-size: 11px; color: var(--text-sub); margin-top: 1px; }

/* 아바타 그룹 */
.dxi-avatar-group { display: flex; }
.dxi-avatar-group .dxi-mini-ava {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p), #6366f1);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dxi-avatar-group .dxi-mini-ava:first-child { margin-left: 0; }
.dxi-avatar-group .dxi-mini-ava img { width: 100%; height: 100%; object-fit: cover; }


/* ============================================================
   게시판 스타일 (기업 전용)
   ============================================================ */
.dxi-board-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dxi-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.dxi-board-title { font-size: 15px; font-weight: 800; color: var(--text-main); }
.dxi-board-actions { display: flex; gap: 8px; }

/* 게시글 테이블 */
.dxi-post-table { width: 100%; border-collapse: collapse; }
.dxi-post-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-body);
}
.dxi-post-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-main);
  vertical-align: middle;
}
.dxi-post-table tr:last-child td { border-bottom: none; }
.dxi-post-table tr:hover td { background: var(--hover-row); }
.dxi-post-table .post-title a {
  font-weight: 600;
  color: var(--text-main);
  transition: color .15s;
}
.dxi-post-table .post-title a:hover { color: var(--p); }
.dxi-post-notice { background: var(--p-light) !important; }
.dxi-post-notice td { color: var(--p); }

/* 버튼 */
.dxi-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.dxi-btn:hover { background: var(--bg-body); }
.dxi-btn-primary {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
  box-shadow: 0 2px 8px rgba(26,115,232,.2);
}
.dxi-btn-primary:hover { filter: brightness(1.08); }
.dxi-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }


/* ============================================================
   페이지 헤더 (게시판/페이지 상단)
   ============================================================ */
.dxi-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.dxi-page-title { font-size: 20px; font-weight: 800; color: var(--text-main); }
.dxi-page-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }


/* ============================================================
   모바일 오버레이
   ============================================================ */
.dxi-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 190;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.dxi-overlay.show { display: block; }


/* ============================================================
   푸터
   ============================================================ */
.dxi-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.dxi-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
}
.dxi-footer-links { display: flex; gap: 16px; }
.dxi-footer-links a { color: var(--text-sub); }
.dxi-footer-links a:hover { color: var(--p); }


/* ============================================================
   알림 / 토스트
   ============================================================ */
.dxi-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.dxi-toast.show { transform: translateY(0); opacity: 1; }
.dxi-toast-icon { color: #10b981; font-size: 15px; }


/* ============================================================
   다크모드 보완
   ============================================================ */
body.dark .dxi-search-input { background: var(--bg-body); }
body.dark .dxi-tab-filter { background: rgba(255,255,255,.05); }
body.dark .dxi-tab-btn.active { background: var(--bg-card); }
body.dark .dxi-task-item { background: rgba(255,255,255,.03); }
body.dark .dxi-stat-card { box-shadow: none; }


/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1024px) {
  .dxi-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index: 200;
    width: var(--sidebar-w) !important;
  }
  .dxi-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  /* 접힌 상태 무효화 (모바일) */
  .dxi-body.sidebar-collapsed .dxi-sidebar { width: var(--sidebar-w) !important; }
  .dxi-body.sidebar-collapsed .dxi-logo-text,
  .dxi-body.sidebar-collapsed .dxi-user-info,
  .dxi-body.sidebar-collapsed .dxi-user-setting,
  .dxi-body.sidebar-collapsed .dxi-nav-label,
  .dxi-body.sidebar-collapsed .dxi-nav-arrow,
  .dxi-body.sidebar-collapsed .dxi-new-badge,
  .dxi-body.sidebar-collapsed .dxi-sidebar-footer span { display: initial; }
  .dxi-body.sidebar-collapsed .dxi-logo { padding: 0 14px; justify-content: initial; }
  .dxi-body.sidebar-collapsed .dxi-logo-link { gap: 10px; }
  .dxi-body.sidebar-collapsed .dxi-user-card { justify-content: initial; padding: 12px 14px; }
  .dxi-body.sidebar-collapsed .dxi-nav-item,
  .dxi-body.sidebar-collapsed .dxi-nav-parent { justify-content: initial; padding: 0 10px; }
  .dxi-body.sidebar-collapsed .dxi-nav-icon { margin-right: initial; }
  .dxi-body.sidebar-collapsed .dxi-sidebar-footer { justify-content: initial; padding: 10px 8px; }
  .dxi-body.sidebar-collapsed .dxi-sidebar-logout,
  .dxi-body.sidebar-collapsed .dxi-sidebar-login { justify-content: initial; }

  .dxi-mob-menu { display: flex; }
  .dxi-sidebar-toggle { display: none; }
  .dxi-search-input { width: 160px; }
  .dxi-search-input:focus { width: 200px; }
}

@media (max-width: 640px) {
  .dxi-content { padding: 16px; }
  .dxi-header { padding: 0 14px; gap: 8px; }
  .dxi-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dxi-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .dxi-search-wrap { display: none; }
  .dxi-profile-name { display: none; }
  .dxi-footer-inner { padding: 10px 16px; font-size: 11px; }
}

@media (max-width: 400px) {
  .dxi-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .dxi-stat-grid { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   페이지네이션
   ============================================================ */
.dxi-paging { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.dxi-paging a,
.dxi-paging span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; color: var(--text-main);
  text-decoration: none; transition: all .15s;
}
.dxi-paging a:hover { border-color: var(--p); color: var(--p); background: var(--p-light, #e8f0fe); }
.dxi-paging .current,
.dxi-paging span.on { background: var(--p); color: #fff; border-color: var(--p); font-weight: 700; }
.dxi-paging .disabled,
.dxi-paging span.disabled { color: var(--text-muted); pointer-events: none; opacity: .5; }

/* CMS 기본 페이지네이션 클래스 오버라이드 */
.dxi-paging .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width:32px; height:32px; padding:0 6px; border:1px solid var(--border); border-radius:6px; font-size:13px; color:var(--text-main); text-decoration:none; transition:all .15s; }
.dxi-paging .page-numbers.current { background:var(--p); color:#fff; border-color:var(--p); font-weight:700; }
.dxi-paging .page-numbers:hover { border-color:var(--p); color:var(--p); background:var(--p-light,#e8f0fe); }


/* ============================================================
   게시글 내용 스타일
   ============================================================ */
.dxi-post-content h2 { font-size: 1.3em; font-weight: 700; margin: 1.2em 0 .5em; color: var(--text-main); }
.dxi-post-content h3 { font-size: 1.1em; font-weight: 600; margin: 1em 0 .4em; color: var(--text-main); }
.dxi-post-content p  { margin: 0 0 .9em; }
.dxi-post-content ul, .dxi-post-content ol { padding-left: 1.5em; margin-bottom: .9em; }
.dxi-post-content li { margin-bottom: .3em; }
.dxi-post-content blockquote { border-left: 3px solid var(--p); margin: 1em 0; padding: 8px 16px; background: var(--bg-body); color: var(--text-muted); border-radius: 0 6px 6px 0; }
.dxi-post-content code { font-family: monospace; background: var(--bg-body); padding: 1px 5px; border-radius: 3px; font-size: .9em; border: 1px solid var(--border); }
.dxi-post-content pre { background: var(--bg-body); border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow-x: auto; margin-bottom: 1em; }
.dxi-post-content pre code { background: none; border: none; padding: 0; }
.dxi-post-content img { max-width: 100%; border-radius: 6px; }
.dxi-post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: 13px; }
.dxi-post-content th { background: var(--bg-body); font-weight: 600; }
.dxi-post-content th, .dxi-post-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.dxi-post-content tr:hover td { background: var(--hover-row); }
.dxi-post-content a { color: var(--p); text-decoration: underline; }
.dxi-post-content a:hover { opacity: .8; }
.dxi-post-content hr { border: none; border-top: 1px solid var(--border); margin: 1.5em 0; }


/* ============================================================
   댓글
   ============================================================ */
.dxi-comment-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.dxi-comment-item:last-child { border-bottom: none; }
.dxi-comment-ava { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--p), var(--p-dark)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; }
.dxi-comment-ava img { width: 100%; height: 100%; object-fit: cover; }
.dxi-comment-body { flex: 1; }
.dxi-comment-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.dxi-comment-name { font-weight: 600; color: var(--text-main); }
.dxi-comment-date { color: var(--text-muted); }
.dxi-comment-del  { color: var(--text-muted); cursor: pointer; margin-left: auto; }
.dxi-comment-del:hover { color: #ea4335; }
.dxi-comment-text { font-size: 13px; color: var(--text-main); line-height: 1.6; }


/* ============================================================
   폼 공통
   ============================================================ */
.dxi-form-group { margin-bottom: 20px; }
.dxi-form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.dxi-form-input,
.dxi-form-select,
.dxi-form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: var(--font);
  color: var(--text-main); background: var(--bg-card);
  outline: none; transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.dxi-form-input:focus,
.dxi-form-select:focus,
.dxi-form-textarea:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}
.dxi-form-textarea { resize: vertical; line-height: 1.6; }
.dxi-form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.dxi-form-err  { font-size: 11px; color: #ea4335; margin-top: 5px; }


/* ============================================================
   뱃지 / 레이블
   ============================================================ */
.dxi-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.dxi-badge-blue   { background: #e8f0fe; color: #1a73e8; }
.dxi-badge-green  { background: #e6f4ea; color: #34a853; }
.dxi-badge-orange { background: #fef3e2; color: #f9ab00; }
.dxi-badge-red    { background: #fce8e6; color: #ea4335; }
.dxi-badge-gray   { background: var(--border-light); color: var(--text-muted); }


/* ============================================================
   빈 상태 (Empty State)
   ============================================================ */
.dxi-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.dxi-empty i { font-size: 40px; display: block; margin-bottom: 12px; opacity: .35; }
.dxi-empty p { font-size: 14px; }
.dxi-empty small { font-size: 12px; display: block; margin-top: 4px; opacity: .7; }


/* ============================================================
   프린트 스타일
   ============================================================ */
@media print {
  .dxi-sidebar,
  .dxi-header,
  .dxi-footer,
  .dxi-breadcrumb,
  .dxi-header-btn,
  .dxi-btn { display: none !important; }
  .dxi-content-wrap { margin: 0 !important; }
  .dxi-content { max-width: 100% !important; padding: 0 !important; }
  .dxi-card { box-shadow: none !important; border: 1px solid #ddd !important; }
  .dxi-post-content { font-size: 12pt; }
  body { background: #fff !important; }
}
