/* ============================================
   EJIN 기본 스타일 (시스템 전체 적용)
   ============================================ */

/* 기본 글자 크기 설정 (시스템 전체 일괄 적용) */
html {
  font-size: 0.9rem; /* 기본 1rem(16px)에서 0.9rem(14.4px)로 조정 */
}

body {
  font-size: 0.9rem; /* 기본 1rem(16px)에서 0.9rem(14.4px)로 조정 */
}

/* ============================================
   EJIN Main View Custom Styles
   MainView.vue 전용 스타일
   ============================================ */

/* 메인페이지 전용 전역 스타일 */
/* 메인페이지에서만 상단 메뉴바와 좌측 사이드바 숨기기 */
body.home-page .app-header,
body.home-page .app-sidebar,
body.home-page .navbar,
body.home-page .sidebar,
body.home-page .main-header,
body.home-page .main-sidebar {
  display: none;
}

/* 메인 컨텐츠 영역 전체 화면 사용 */
body.home-page {
    margin: 0;
  padding: 0;
    overflow: hidden;
}

/* 메인페이지에서 메인 컨텐츠 영역 전체 화면 사용 */
body.home-page .main-content,
body.home-page .content-wrapper {
    margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
}

/* 메인 뷰 컨테이너 */
.main-view-container {
    display: flex;
  flex-direction: column;
    height: 100vh; 
    width: 100%;
    overflow: hidden;
}

.top-section {
  flex: 0 0 60%;
  background: #ffffff;
    display: flex;
    position: relative;
  overflow: visible;
}

/* 로고 (왼쪽 상단) */
.logo {
    position: absolute;
  top: 40px;
  left: 60px;
  z-index: 10;
}

.logo-image {
        height: auto;
        max-width: 300px;
    display: block;
}

/* 메인 페이지 이미지 컨테이너 (로고 아래) */
.main-page-image-container {
    position: absolute;
  top: 300px;
  left: 100px;
  z-index: 5;
    display: flex;
  align-items: flex-start;
}

.main-page-image {
  max-width: 800px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 로그인 폼 섹션 (오른쪽 상단) */
.login-form-section {
    position: absolute;
  top: 80px;
  right: 120px;
  width: 400px;
  z-index: 10;
}

.login-form {
    display: flex;
    flex-direction: column;
  gap: 1.5rem;
}

.login-form .form-group {
    display: flex;
        flex-direction: column;
  gap: 0.5rem;
}

.login-form .form-group label {
  font-size: 0.95rem;
    font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
    transition: all 0.3s ease;
  background: #f8fafc;
  color: #1e293b;
}

.form-input:focus {
  outline: none;
    border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

/* 로그인 버튼 */
.btn-login {
    width: 100%;
  padding: 1rem 2rem;
    border: none;
  background: #1e3a8a;
    color: white;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
  cursor: pointer;
    transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-login:hover:not(:disabled) {
  background: #1e40af;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 회원가입 버튼 영역 */
.registration-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-registration {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #1e293b;
}

.btn-registration:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: #f8fafc;
}

.btn-registration-company i {
  color: #3b82f6;
}

.btn-registration-driver i {
  color: #f59e0b;
}

/* 로그인 옵션 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
  margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
  color: #64748b;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.password-change-link {
        font-size: 0.9rem;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.password-change-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 하단 파란색 영역 (40%) */
.bottom-section {
  flex: 0 0 40%;
  background: #1e3a8a;
    display: flex;
    position: relative;
  overflow: hidden;
}

/* 제품 정보 (오른쪽) */
.product-info {
  position: absolute;
  bottom: 60px;
  right: 120px;
  text-align: right;
  z-index: 10;
}

.product-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.product-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem 0;
}

.product-version {
    font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 저작권 정보 */
.copyright {
    position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

.copyright p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 2차인증 오버레이 */
.two-factor-auth-overlay {
  position: fixed;
    top: 0;
  left: 0;
    width: 100%;
    height: 100%;
  background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
  z-index: 2000;
}

.two-factor-auth-container {
    background: white;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.two-factor-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.two-factor-auth-header {
  text-align: center;
}

.two-factor-auth-header i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.two-factor-auth-header h3 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
    margin-bottom: 0.5rem;
}

.two-factor-auth-header p {
  color: #64748b;
    font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.delivery-info {
  color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.two-factor-code-input {
    display: flex;
  gap: 0.5rem;
    justify-content: center;
}

.code-input-digit {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
    font-weight: 600;
  border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.code-input-digit:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-back-to-login {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: #64748b;
    border-radius: 8px;
  font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  font-weight: 500;
  margin-top: 1rem;
}

.btn-back-to-login:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f8fafc;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}


/* ============================================
   EJIN AppHeader Custom Styles
   AppHeader.vue 전용 스타일
   ============================================ */

.app-header {
  background: #1e3a8a;
  color: white;
  border-bottom: 1px solid #1a2e6f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: 60px;
}

/* 가입신청 페이지에서 헤더 공간 제거 */
body.registration-page .app-header,
html.registration-page .app-header {
  display: none;
}

body.registration-page .app-layout,
html.registration-page .app-layout {
  margin-top: 0;
  padding-top: 0;
  min-height: 100vh;
}

body.registration-page .main-content,
html.registration-page .main-content {
  margin-top: 0;
  padding-top: 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0;
  max-width: none;
  margin: 0;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2rem;
  padding-left: 1.5rem;
}

.header-center {
  display: none;
}

.brand-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.brand-icon {
  font-size: 1.3rem;
  color: #3498db;
  margin-right: 0.5rem;
}

.brand-text {
  font-size: 1.1rem;
}

/* 상단 메뉴 */
.top-nav {
  display: flex;
  position: relative;
  z-index: 1002;
  flex: 1;
  min-width: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex-direction: row;
  flex-wrap: nowrap;
}

.nav-item {
  margin: 0;
  position: relative;
  z-index: 1002;
}

/* 헤더 네비게이션 링크 스타일 (nav-tabs 제외) */
.top-nav .nav-link,
.app-header .nav-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 0 0.25rem;
  white-space: nowrap;
}

.top-nav .nav-link:hover,
.app-header .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

.top-nav .nav-link.active,
.app-header .nav-link.active {
  background-color: #2c5aa0;
  color: white;
  font-weight: 600;
}

/* 드롭다운 메뉴 스타일 */
.nav-item.dropdown {
  position: relative;
}

.nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-item.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: auto;
  min-width: 230px;
  max-width: 230px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  display: block;
  overflow: visible;
  white-space: nowrap;
  margin-top: 0;
  margin-left: 0;
  right: auto;
  bottom: auto;
}

.nav-item.dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.dropdown-item-wrapper {
  margin: 0;
  padding: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #2c5aa0;
  text-decoration: none;
}

.dropdown-item.active {
  background-color: #2c5aa0;
  color: white;
  font-weight: 600;
}

.dropdown-item i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.dropdown-item-wrapper:not(:last-child) .dropdown-item {
  border-bottom: 1px solid #f1f3f4;
}

.dropdown-item-wrapper:last-child .dropdown-item {
  border-bottom: none;
}

/* 3단계 드롭다운 메뉴 (서브 드롭다운) */
.dropdown-item-wrapper.has-children {
  position: relative;
}

.dropdown-item-wrapper.has-children .dropdown-item {
  padding-right: 2.5rem;
}

.submenu-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.dropdown-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  width: auto;
  min-width: 200px;
  max-width: 200px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  display: block;
  overflow: visible;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.dropdown-item-wrapper.has-children:hover .dropdown-submenu,
.dropdown-submenu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  display: block;
}

.dropdown-submenu-item {
  margin: 0;
  padding: 0;
}

.dropdown-submenu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.dropdown-submenu-link:hover {
  background-color: #f8f9fa;
  color: #2c5aa0;
  text-decoration: none;
}

.dropdown-submenu-link.active {
  background-color: #2c5aa0;
  color: white;
  font-weight: 600;
}

.dropdown-submenu-link i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.dropdown-submenu-item:not(:last-child) .dropdown-submenu-link {
  border-bottom: 1px solid #f1f3f4;
}

.nav-item.dropdown:last-child .dropdown-menu {
  right: 0;
  left: auto;
}

.nav-item.dropdown:nth-last-child(2) .dropdown-menu {
  right: 0;
  left: auto;
}

.app-header .nav-item.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  bottom: auto;
  transform: translateY(0);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1.5rem;
}

.search-section {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  border: 1px solid #e9ecef;
}

.search-input {
  border: none;
  background: none;
  outline: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  width: 200px;
}

.search-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
}

.notification-section {
  position: relative;
}

.notification-btn {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
  position: relative;
}

.notification-btn:hover {
  background-color: #f8f9fa;
  color: #2c3e50;
  border-color: #dee2e6;
}

.notification-btn i {
  font-size: 1rem;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #dc3545;
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.user-section {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 데스크톱: 드롭다운 숨김 */
.user-dropdown-menu {
  display: none;
}

.user-icon-btn {
  background: none;
  border: 1px solid #e9ecef;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  color: #6c757d;
}

.user-icon-btn:hover {
  background-color: #f8f9fa;
  color: #2c3e50;
  border-color: #dee2e6;
}

.user-icon-btn i {
  font-size: 1rem;
}

.logout-btn {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.logout-btn:hover {
  background-color: #f8f9fa;
  color: #2c3e50;
  border-color: #dee2e6;
}

.logout-btn i {
  font-size: 0.9rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  filter: brightness(1.2);
}

.user-menu:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
  filter: brightness(1.3);
}

.auth-section {
  display: flex;
  align-items: center;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background: #2980b9;
  color: white;
}

/* ============================================
  EJIN AppLeft Custom Styles
  AppLeft.vue 전용 스타일
   ============================================ */

.sidebar, .app-sidebar {
    width: 220px;
    background: #1e3a8a;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.16), 0 4px 16px 0 rgba(0,0,0,.12);
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed, .app-sidebar.collapsed {
    width: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 16px 16px 0;
}

/* 우측 사이드바 전용 배치 */
.app-sidebar.app-sidebar-right {
    left: auto;
    right: 0;
    border-radius: 8px 0 0 8px;
}

.app-sidebar.app-sidebar-right.collapsed {
    border-radius: 16px 0 0 16px;
}

/* AppRight 배너 샘플 */
.right-banner-wrap {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    height: 100%;
}

.right-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.4px;
}

.right-banner-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.right-banner-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.right-banner-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #1e3a8a;
    background: #bfdbfe;
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.right-banner-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.right-banner-desc {
    font-size: 12px;
    line-height: 1.4;
    color: #dbeafe;
}

.app-sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0.5rem;
}

.app-sidebar.collapsed .sidebar-brand {
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    margin: 0 auto;
}

.app-sidebar.collapsed .sidebar-brand i {
    font-size: 1rem;
    margin: 0;
}

.sidebar-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    background: #1e3a8a;
    min-height: 60px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 40px;
    min-height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.sidebar-brand i {
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-brand:hover i {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-item {
    margin: 0;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    border-radius: 0 12px 12px 0;
    margin: 0.125rem 0.5rem 0.125rem 0;
    position: relative;
    overflow: hidden;
}

.sidebar-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-left-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-menu-link.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(155, 89, 182, 0.3) 100%);
    color: white;
    font-weight: 600;
    border-left-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.sidebar-menu-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu-link:hover i {
    transform: scale(1.1);
    color: #3498db;
}

.sidebar-menu-link span {
    flex: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 0.5rem;
    border-radius: 0 8px 8px 0;
}

.sidebar-submenu.show {
    max-height: 1200px;
    border-left-color: rgba(52, 152, 219, 0.3);
    box-shadow: inset 2px 0 4px rgba(52, 152, 219, 0.1);
}

.sidebar-submenu-item {
    margin: 0;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    margin: 0.125rem 0.5rem 0.125rem 0;
    position: relative;
}

.sidebar-submenu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border-left-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.sidebar-submenu-link.active {
    background: rgba(52, 152, 219, 0.3);
    color: white;
    font-weight: 500;
    border-left-color: #3498db;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.sidebar-submenu-link i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-submenu-link:hover i {
    color: #3498db;
    transform: scale(1.1);
}

/* 3단계 사이드바 서브메뉴 (서브 서브메뉴) */
.sidebar-submenu-item.has-children {
    position: relative;
}

.sidebar-submenu-item.has-children .sidebar-submenu-link {
    padding-right: 2.5rem;
}

.sidebar-submenu-item .submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}

.sidebar-submenu-item .submenu-arrow.rotated {
    transform: rotate(180deg);
}

.sidebar-subsubmenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 0.5rem;
    border-radius: 0 8px 8px 0;
}

.sidebar-subsubmenu.show {
    max-height: 1200px;
    border-left-color: rgba(52, 152, 219, 0.3);
    box-shadow: inset 2px 0 4px rgba(52, 152, 219, 0.1);
}

.sidebar-subsubmenu-item {
    margin: 0;
}

.sidebar-subsubmenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    margin: 0.125rem 0.5rem 0.125rem 0;
    position: relative;
}

.sidebar-subsubmenu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border-left-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.sidebar-subsubmenu-link.active {
    color: white;
    font-weight: 500;
    border-left-color: #3498db;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.sidebar-subsubmenu-link i {
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-subsubmenu-link:hover i {
    color: #3498db;
    transform: scale(1.1);
}

.sidebar-user-section {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-details {
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar.collapsed .sidebar-user-details {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-user-name {
    font-weight: 600;
    color: white;
    font-size: 0.8rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-info {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    opacity: 0.9;
}

.sidebar-footer-links {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.sidebar-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s;
}

.sidebar-footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.sidebar-footer-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
    font-size: 0.65rem;
}

.app-sidebar.collapsed .footer-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   EJIN Main Content Area Styles
   사이드바 축소/확장에 따른 메인 콘텐츠 영역 자동 조절
   ============================================ */

.main-content {
  width: calc(100vw - 220px);
  max-width: 100%;
  padding: 0 0 44px 0;
  margin-left: 220px; 
  margin-top: 60px; 
  min-height: calc(100vh - 60px); 
  background: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
  transition: all 0.3s ease;
}

/* 사이드바 축소시 main-content 자동 조정 */
.main-content.sidebar-collapsed,
.main-content.collapsed {
  width: calc(100vw - 60px);
  margin-left: 60px;
  transition: all 0.3s ease;
}

/* 사이드바가 숨겨진 경우 (LEFT가 hide인 경우) */
.main-content.no-sidebar {
  width: 100vw;
  margin-left: 0;
  margin-right: 0;
  transition: all 0.3s ease;
}

/* 우측 사이드바가 함께 표시되는 경우 */
.main-content.with-sidebar.with-right-sidebar {
  width: calc(100vw - 440px);
  margin-left: 220px;
  margin-right: 220px;
  transition: all 0.3s ease;
}

.main-content.no-sidebar.with-right-sidebar {
  width: calc(100vw - 220px);
  margin-left: 0;
  margin-right: 220px;
  transition: all 0.3s ease;
}

/* 좌측 사이드바 축소 + 우측 사이드바 표시 조합 */
.main-content.sidebar-collapsed.with-right-sidebar,
.main-content.collapsed.with-right-sidebar {
  width: calc(100vw - 280px);
  margin-left: 60px;
  margin-right: 220px;
  transition: all 0.3s ease;
}

/* 우측 사이드바 축소 조합 */
.main-content.with-sidebar.with-right-sidebar.with-right-collapsed {
  width: calc(100vw - 280px);
  margin-left: 220px;
  margin-right: 60px;
  transition: all 0.3s ease;
}

.main-content.no-sidebar.with-right-sidebar.with-right-collapsed {
  width: calc(100vw - 60px);
  margin-left: 0;
  margin-right: 60px;
  transition: all 0.3s ease;
}

.main-content.sidebar-collapsed.with-right-sidebar.with-right-collapsed,
.main-content.collapsed.with-right-sidebar.with-right-collapsed {
  width: calc(100vw - 120px);
  margin-left: 60px;
  margin-right: 60px;
  transition: all 0.3s ease;
}

/* ============================================
   AppFooter 영역
   ============================================ */
.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: #ffffff;
  border-top: 1px solid #dfe3e8;
  z-index: 950;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.app-footer.with-left-sidebar {
  left: 220px;
}

.app-footer.with-left-sidebar.left-collapsed {
  left: 60px;
}

.app-footer.with-right-sidebar {
  right: 220px;
}

.app-footer.with-right-sidebar.right-collapsed {
  right: 60px;
}

.footer-container {
  width: 100%;
  padding: 0 12px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 12px;
  color: #6c757d;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-link {
  color: #6c757d;
  text-decoration: none;
}

.footer-link:hover {
  color: #495057;
  text-decoration: underline;
}

/* 사이드바 확장시 container-fluid 스타일 */
.main-content:not(.sidebar-collapsed) .container-fluid {
  width: 100%;
  max-width: none;
    margin: 0;
  padding: 1rem 1rem 1rem 1rem;
    box-sizing: border-box;
  transition: all 0.3s ease;
}

.main-content:not(.sidebar-collapsed) .container {
    width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 1rem 1rem 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* 사이드바 축소시 container-fluid가 축소된 사이드바 공간을 제외하고 전체 너비 차지 */
.main-content.sidebar-collapsed .container-fluid,
.main-content.collapsed .container-fluid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 1rem 1rem 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.main-content.sidebar-collapsed .container,
.main-content.collapsed .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 1rem 1rem 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* ============================================
   EJIN Page Header Styles
   페이지 타이틀과 액션 버튼을 같은 줄에 배치
   ============================================ */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
  gap: 1rem;
}

.header-title {
  flex: 1;
  min-width: 0;
}

.header-title h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.2;
}

.header-title h1 i {
  font-size: 1.75rem;
}

.header-title p {
  margin: 0.5rem 0 0 0;
  color: #6c757d;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

.header-actions .btn {
  white-space: nowrap;
}

/* ============================================
   EJIN 일정관리 (EjinCalendarView.vue) 스타일
   ============================================ */

/* 기존 .calendar-header, .calendar-body 전역 스타일은
   EjinCalendarView 레이아웃 변경 및 각 컴포넌트 scoped 스타일로 대체되어
   더 이상 사용되지 않으므로 제거하였습니다. */

/* 월별 뷰 */
.month-view {
  padding: 20px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e9ecef;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  margin-bottom: 1px;
}

.sticky-weekdays {
  position: sticky;
  top: 0;
  z-index: 5;
}

.weekday {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #495057;
  border-right: 1px solid #e9ecef;
  background: linear-gradient(180deg, #fdfdfd 0%, #f0f4ff 100%);
}

.weekday-0 {
  background: linear-gradient(180deg, #ffe5e7 0%, #ffd8dc 100%);
  color: #d32f2f;
}

.weekday-6 {
  background: linear-gradient(180deg, #ddeaff 0%, #cfe0ff 100%);
  color: #0d6efd;
}

.weekday:last-child {
  border-right: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.calendar-day {
  background-color: white;
  min-height: 120px;
  padding: 12px;
  border-right: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.calendar-day:hover {
  background-color: #f8f9fa;
}

.calendar-day.other-month {
  background-color: #f8f9fa;
  color: #6c757d;
}

.calendar-day.other-month .day-number {
  color: #adb5bd;
}

.calendar-day.holiday .day-number {
  color: #d9534f;
}

.calendar-day.today .day-number {
  color: #0d6efd;
}

.calendar-day.today {
  background-color: #e3f2fd;
  border: 2px solid #2196f3;
}

.calendar-day.holiday {
  background-color: #ffebee;
}

.calendar-day.has-events {
  border-left: 4px solid #28a745;
}

.day-number {
  font-weight: 600;
  font-size: 0.9rem;
  color: #212529;
  position: absolute;
  top: 6px;
  left: 8px;
  text-align: left;
}

.day-events {
  font-size: 0.75rem;
  margin-top: 24px;
}

.event-item {
  background-color: #007bff;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-item.holiday {
  background-color: #dc3545;
}

.event-item.company {
  background-color: #ffc107;
  color: #212529;
}

.event-item.special {
  background-color: #17a2b8;
}

.more-events {
  color: #6c757d;
  font-size: 0.7rem;
  font-style: italic;
}

/* 주별 뷰 */
.week-view {
  padding: 20px;
}

.week-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 1px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1px;
}

.time-column {
  background-color: #f8f9fa;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #495057;
}

.day-column {
  background-color: #f8f9fa;
  padding: 12px;
  text-align: center;
  border-right: 1px solid #e9ecef;
}

.day-column.today {
  background-color: #e3f2fd;
  border: 2px solid #2196f3;
}

.day-column.holiday {
  background-color: #ffebee;
}

.day-name {
  font-weight: 600;
  color: #495057;
  margin-bottom: 4px;
}

.day-number {
  font-size: 1.2rem;
  font-weight: 700;
} 

.week-body {
  max-height: 600px;
  overflow-y: auto;
}

.time-slot {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 1px;
  background-color: #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.time-label {
  background-color: #f8f9fa;
  padding: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
  border-right: 1px solid #e9ecef;
}

.time-cell {
  background-color: white;
  min-height: 40px;
  padding: 4px;
  border-right: 1px solid #e9ecef;
  cursor: pointer;
  position: relative;
}

.time-cell:hover {
  background-color: #f8f9fa;
}

.week-event {
  background-color: #007bff;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-event.holiday {
  background-color: #dc3545;
}

.week-event.company {
  background-color: #ffc107;
  color: #212529;
}

.week-event.special {
  background-color: #17a2b8;
}

/* 일별 뷰 */
.day-view {
  padding: 20px;
}

.day-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.day-body {
  max-height: 600px;
  overflow-y: auto;
}

.day-time-slot {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1px;
  background-color: #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.day-event {
  background-color: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-event.holiday {
  background-color: #dc3545;
}

.day-event.company {
  background-color: #ffc107;
  color: #212529;
}

.day-event.special {
  background-color: #17a2b8;
}

/* 모달 스타일 */
.modal {
  z-index: 1055;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}
/* 모달 표시 시 배경·노출 (Vue v-if 모달용). .modal.fade보다 구체적으로 해서 Bootstrap의 display:none을 덮어씀 */
.modal.fade.show {
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
}

/* 모달 최상단 표시용 공통 클래스 (AppHeader 등 위에 표시). 모달+배경을 감싼 wrapper에 적용 */
.modal-stack-top {
  position: relative;
  z-index: 10600;
}

.modal-stack-top .modal {
  z-index: 2;
}

.modal-stack-top .modal-backdrop {
  z-index: 1;
}

/* ============================================
   모달 크기 확대 (modal-xxl 공통 스타일)
   ============================================ */
/* 가로 크기 확대: 큰 화면에서 넓게 표시 */
.modal-xxl {
  max-width: 95%;
  width: 95%;
}
/* 세로 높이 제한 및 스크롤 */
.modal-xxl .modal-content {
  max-height: 90vh;
}
.modal-xxl .modal-body {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
}
/* ============================================
   Table Cell Width Utility Classes
   테이블 셀(th, td) 너비 유틸리티 클래스
   ============================================ */
.w-5 {
  width: 5%;
}
.w-10 {
  width: 10%;
}
.w-15 {
  width: 15%;
}
.w-20 {
  width: 20%;
}

/* ============================================
   폼 컨트롤 및 라벨 폰트 사이즈 통일 (html/body의 0.9rem과 일치.)
   ============================================ */
/* 폼 라벨 스타일 - html/body의 0.9rem과 동일하게 설정 */
.form-label {
  font-size: 0.9rem;
}

/* col-form-label도 동일한 폰트 크기 적용 */
.col-form-label {
  font-size: 0.9rem;
}

/* 폼 컨트롤 스타일 - 라벨과 동일한 폰트 크기 */
.form-control,
.form-select {
  font-size: 0.9rem;
}

/* textarea도 동일한 폰트 크기 */
textarea.form-control {
  font-size: 0.9rem;
}

/* input-group 내부의 form-control도 동일한 폰트 크기 */
.input-group .form-control {
  font-size: 0.9rem;
}

/* ============================================
   TreeNode 선택된 노드 스타일
   계약서내용적정성점검 탭 및 기타 트리 구조에서 사용
   ============================================ */

/* 트리 노드 기본 스타일 */
.tree-node {
  padding: 4px 8px;
  margin: 2px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

/* 트리 노드 호버 효과 (일반 노드) */
.tree-node:not(.selected):hover {
  background-color: #f0f8ff;
  color: #007bff;
}

/* 선택된 노드 스타일 (파란 배경 + 흰색 텍스트) */
.tree-node.selected {
  background-color: #007bff;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
  transition: all 0.2s ease;
}

/* 선택된 노드의 텍스트 색상 */
.tree-node.selected .tree-node-text {
  color: #ffffff;
}

/* 선택된 노드의 아이콘 색상 (흰색으로 변경) */
.tree-node.selected i {
  color: #ffffff;
}

/* 선택된 노드의 확장 아이콘 색상 */
.tree-node.selected .expand-icon {
  color: #ffffff;
}

/* 선택된 노드 호버 효과 (선택된 노드) */
.tree-node.selected:hover {
  background-color: #0056b3;
  color: #ffffff;
}

/* 선택된 노드의 배지(badge) 색상 조정 */
.tree-node.selected .badge {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================
   테이블 행 클릭 가능 표시 (table-hover 사용 시)
   table / table-striped table-hover 내 tbody tr에 적용
   ============================================ */
.table-hover tbody tr {
  cursor: pointer;
}

/* ============================================
   데스크톱 헤더 메뉴 축소 (1200~1659px)
   ============================================ */

/* 1단계: 1400~1659px - 약간 축소 */
@media (min-width: 1400px) and (max-width: 1659.98px) {
  .nav-list {
    gap: 0.15rem;
  }
  .top-nav .nav-link,
  .app-header .nav-link {
    padding: 0.75rem 0.8rem;
    font-size: 0.85rem;
    margin: 0 0.1rem;
  }
  .header-right {
    gap: 0.5rem;
    padding-right: 0.75rem;
  }
}

/* 2단계: 1200~1399px - 최대 축소 */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nav-list {
    gap: 0;
  }
  .top-nav .nav-link,
  .app-header .nav-link {
    padding: 0.6rem 0.45rem;
    font-size: 0.78rem;
    margin: 0;
  }
  .nav-link.dropdown-toggle .dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 0.25rem !important;
  }
  .brand-text {
    font-size: 0.85rem;
  }
  .header-right {
    gap: 0.3rem;
    padding-right: 0.5rem;
  }
  .user-name {
    font-size: 0.8rem;
  }
  .logout-btn span {
    font-size: 0.78rem;
  }
}

/* ============================================
   Open Terms Page (개인정보처리방침 등 공개 약관 페이지)
   GET /ejin/open/terms/privacy 전용, 인라인 style 대신 외부 CSS 사용
   ============================================ */
body.open-terms-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
  color: #333;
  background: #f8f9fa;
  line-height: 1.7;
  font-size: 15px;
}
body.open-terms-page .open-terms-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
body.open-terms-page .open-terms-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #dee2e6;
}
body.open-terms-page .open-terms-header h1 {
  font-size: 24px;
  color: #212529;
  margin-bottom: 8px;
}
body.open-terms-page .open-terms-header .open-terms-date {
  font-size: 14px;
  color: #868e96;
}
body.open-terms-page .open-terms-content {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  word-break: keep-all;
}
body.open-terms-page .open-terms-no-content {
  text-align: center;
  padding: 60px 20px;
  color: #868e96;
}
body.open-terms-page .open-terms-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: #adb5bd;
}
@media (max-width: 600px) {
  body.open-terms-page .open-terms-container {
    padding: 24px 16px;
  }
  body.open-terms-page .open-terms-header h1 {
    font-size: 20px;
  }
  body.open-terms-page .open-terms-content {
    padding: 20px 16px;
    font-size: 14px;
  }
}

/* ============================================================
   ConCha 웹 대시보드 리디자인 (데스크톱)
   ============================================================ */
:root {
  --dash-bg: #f5f6f8;
  --dash-surface: #ffffff;
  --dash-text-primary: #1a1d23;
  --dash-text-secondary: #5f6368;
  --dash-text-tertiary: #9aa0a6;
  --dash-border: #e8eaed;
  --dash-border-light: #f1f3f4;
  --dash-brand: #1a73e8;
  --dash-brand-light: #e8f0fe;
  --dash-brand-dark: #1557b0;
  --dash-success: #0d904f;
  --dash-success-light: #e6f4ea;
  --dash-warning: #e37400;
  --dash-warning-light: #fef7e0;
  --dash-danger: #c5221f;
  --dash-danger-light: #fce8e6;
  --dash-purple: #7c3aed;
  --dash-purple-light: #f3e8ff;
  --dash-radius: 12px;
  --dash-radius-sm: 8px;
  --dash-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --dash-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

/* ─── Dashboard Layout ─── */
.dash-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 24px 48px;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dash-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--dash-text-primary);
}
.dash-title-sub {
  font-size: 13px;
  color: var(--dash-text-tertiary);
  margin-top: 2px;
}
.dash-btn-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.dash-btn-refresh:hover {
  border-color: var(--dash-brand);
  color: var(--dash-brand);
}

/* ─── Date Filter Bar ─── */
.dash-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dash-surface);
  border-radius: var(--dash-radius);
  padding: 12px 20px;
  box-shadow: var(--dash-shadow-sm);
  margin-bottom: 12px;
}
.dash-filter-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text-primary);
  white-space: nowrap;
}
.dash-filter-title i {
  color: var(--dash-text-tertiary);
  margin-right: 6px;
}
.dash-date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.dash-date-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dash-date-label {
  font-size: 12px;
  color: var(--dash-text-tertiary);
  font-weight: 500;
}
.dash-date-input {
  font-family: inherit;
  font-size: 12px;
  color: var(--dash-text-primary);
  padding: 5px 8px;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  background: var(--dash-surface);
  outline: none;
  transition: border-color 0.15s;
  width: 130px;
}
.dash-date-input:focus {
  border-color: var(--dash-brand);
}
.dash-date-sep {
  font-size: 12px;
  color: var(--dash-text-tertiary);
  padding: 0 2px;
}
.dash-btn-search {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: var(--dash-brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.dash-btn-search:hover {
  background: var(--dash-brand-dark);
}

/* ─── KPI Cards ─── */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.dash-kpi-card {
  background: var(--dash-surface);
  border-radius: var(--dash-radius);
  padding: 20px;
  box-shadow: var(--dash-shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.dash-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--dash-shadow);
}
.dash-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}
.dash-kpi-card.blue::before { background: var(--dash-brand); }
.dash-kpi-card.green::before { background: var(--dash-success); }
.dash-kpi-card.amber::before { background: var(--dash-warning); }
.dash-kpi-card.red::before { background: var(--dash-danger); }
.dash-kpi-card.purple::before { background: var(--dash-purple); }

.dash-kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--dash-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.dash-kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}
.dash-kpi-unit {
  font-size: 16px;
  font-weight: 500;
}
.dash-kpi-card.blue .dash-kpi-value { color: var(--dash-brand); }
.dash-kpi-card.green .dash-kpi-value { color: var(--dash-success); }
.dash-kpi-card.amber .dash-kpi-value { color: var(--dash-warning); }
.dash-kpi-card.red .dash-kpi-value { color: var(--dash-danger); }
.dash-kpi-card.purple .dash-kpi-value { color: var(--dash-purple); }
.dash-kpi-sub {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dash-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.dash-kpi-badge.up { background: var(--dash-success-light); color: var(--dash-success); }
.dash-kpi-badge.down { background: var(--dash-danger-light); color: var(--dash-danger); }
.dash-kpi-period {
  color: var(--dash-text-tertiary);
  font-size: 11px;
}
.dash-kpi-status-text {
  font-size: 14px;
  font-weight: 600;
}

/* ─── Chart Section ─── */
.dash-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.dash-card {
  background: var(--dash-surface);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow-sm);
  overflow: hidden;
}
.dash-chart-grid .dash-card {
  overflow: visible;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}
.dash-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dash-text-primary);
}
.dash-card-title i {
  color: var(--dash-text-tertiary);
  margin-right: 4px;
}
.dash-card-action {
  font-size: 12px;
  color: var(--dash-brand);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.dash-card-action:hover {
  text-decoration: underline;
}
.dash-card-body {
  padding: 0 20px 16px;
}
.dash-year-select {
  font-family: inherit;
  font-size: 12px;
  color: var(--dash-text-secondary);
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--dash-surface);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.dash-year-select:focus {
  border-color: var(--dash-brand);
}

/* Fare summary mini cards */
.dash-fare-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.dash-fare-item {
  background: var(--dash-bg);
  border-radius: var(--dash-radius-sm);
  padding: 12px;
  text-align: center;
}
.dash-fare-item-label {
  font-size: 11px;
  color: var(--dash-text-tertiary);
  margin-bottom: 4px;
}
.dash-fare-item-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.dash-fare-item-value.primary { color: var(--dash-brand); }
.dash-fare-item-value.secondary { color: var(--dash-text-primary); }
.dash-fare-item-value.muted { color: var(--dash-text-tertiary); }
.dash-fare-unit {
  font-size: 12px;
  font-weight: 500;
}

/* ─── Feed Tabs ─── */
.dash-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--dash-border);
  padding: 0 20px;
}
.dash-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
  top: 1px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.dash-tab:hover {
  color: var(--dash-text-secondary);
}
.dash-tab.active {
  color: var(--dash-brand);
  border-bottom-color: var(--dash-brand);
}
.dash-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}
.dash-tab.active .dash-tab-count {
  background: var(--dash-brand-light);
  color: var(--dash-brand);
}
.dash-tab:not(.active) .dash-tab-count {
  background: var(--dash-border-light);
  color: var(--dash-text-tertiary);
}

/* Feed items */
.dash-feed {
  padding: 12px 20px 16px;
}
.dash-feed-item {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--dash-radius-sm);
  transition: background 0.12s;
  cursor: pointer;
}
.dash-feed-item:hover {
  background: var(--dash-bg);
}
.dash-feed-item + .dash-feed-item {
  border-top: 1px solid var(--dash-border-light);
}
.dash-feed-bar {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  flex-shrink: 0;
}
.dash-feed-bar.organize { background: #0369a1; }
.dash-feed-bar.exchange { background: #15803d; }
.dash-feed-bar.search { background: #b45309; }
.dash-feed-content {
  flex: 1;
  min-width: 0;
}
.dash-feed-route {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-feed-route-arrow {
  color: var(--dash-text-tertiary);
  font-size: 11px;
}
.dash-feed-meta {
  font-size: 12px;
  color: var(--dash-text-tertiary);
  margin-top: 2px;
  display: flex;
  gap: 8px;
}
.dash-feed-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  align-self: center;
}
.dash-status-new { background: var(--dash-brand-light); color: var(--dash-brand); }
.dash-status-progress { background: var(--dash-warning-light); color: var(--dash-warning); }
.dash-status-done { background: var(--dash-success-light); color: var(--dash-success); }
.dash-status-cancel { background: var(--dash-danger-light); color: var(--dash-danger); }
.dash-feed-time {
  font-size: 12px;
  color: var(--dash-text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* ─── Bottom Grid ─── */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

/* Vehicle trade list */
.dash-trade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-border-light);
}
.dash-trade-item:last-child { border-bottom: none; }
.dash-trade-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-text-primary);
}
.dash-trade-detail {
  font-size: 12px;
  color: var(--dash-text-tertiary);
  margin-top: 2px;
}
.dash-trade-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text-primary);
  white-space: nowrap;
}
.dash-trade-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}
.dash-trade-tag.sell { background: #dbeafe; color: #1d4ed8; }
.dash-trade-tag.buy { background: #fce7f3; color: #be185d; }

/* Notice list */
.dash-notice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--dash-border-light);
}
.dash-notice-item:last-child { border-bottom: none; }
.dash-notice-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-notice-badge.notice { background: var(--dash-brand-light); color: var(--dash-brand); }
.dash-notice-badge.qna { background: var(--dash-purple-light); color: var(--dash-purple); }
.dash-notice-text {
  font-size: 13px;
  color: var(--dash-text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-notice-date {
  font-size: 11px;
  color: var(--dash-text-tertiary);
  white-space: nowrap;
}

/* ─── Quick Actions ─── */
.dash-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
}
.dash-quick-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--dash-bg);
  border: 1px solid var(--dash-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.dash-quick-btn:hover {
  border-color: var(--dash-brand);
  color: var(--dash-brand);
  background: var(--dash-brand-light);
}

/* ─── Chart skeleton ─── */
.dash-chart-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: dashShimmer 1.5s ease infinite;
  border-radius: var(--dash-radius-sm);
}
@keyframes dashShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Fade-up animation ─── */
@keyframes dashFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dash-animate {
  animation: dashFadeUp 0.4s ease forwards;
  opacity: 0;
}
.dash-delay-1 { animation-delay: 0.05s; }
.dash-delay-2 { animation-delay: 0.1s; }
.dash-delay-3 { animation-delay: 0.15s; }
.dash-delay-4 { animation-delay: 0.2s; }
.dash-delay-5 { animation-delay: 0.25s; }
.dash-delay-6 { animation-delay: 0.3s; }
.dash-delay-7 { animation-delay: 0.35s; }

/* ─── Empty state ─── */
.dash-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--dash-text-tertiary);
  font-size: 13px;
}

/* ─── Responsive ─── */
@media (max-width: 1400px) {
  .dash-kpi-grid { gap: 10px; }
  .dash-kpi-card { padding: 16px; }
  .dash-kpi-value { font-size: 24px; }
}
@media (max-width: 1200px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-chart-grid { grid-template-columns: 1fr; }
  .dash-bottom-grid { grid-template-columns: 1fr; }
  .dash-date-filter { flex-wrap: wrap; margin-left: 0; margin-top: 4px; }
  .dash-date-input { width: 110px; }
  .dash-filter-bar { flex-wrap: wrap; gap: 8px; }
}
