/* ============================================
   EJIN Mobile Styles
   모바일 전용 스타일 (768px 이하)
   
   CSP 준수: 인라인 스타일 사용 없이 클래스 기반 스타일링
   ============================================ */

/* ===========================================
   모바일 CSS 변수
   =========================================== */
:root {
  --mobile-header-height: 56px;
  --mobile-sidebar-width: 280px;
  --mobile-overlay-bg: rgba(0, 0, 0, 0.5);
  --mobile-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================================
   모바일 줌 방지 (더블탭 줌 차단)
   =========================================== */
.mobile-view {
  touch-action: manipulation;
}

/* ===========================================
   iOS Safe Area 지원
   =========================================== */
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ===========================================
   모바일 햄버거 메뉴 버튼
   =========================================== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

/* ===========================================
   사이드바 오버레이 배경 (CSP 준수 - 클래스 기반)
   =========================================== */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mobile-overlay-bg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mobile-transition), visibility var(--mobile-transition);
}

/* 오버레이 표시 상태 */
.sidebar-overlay.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ===========================================
   데스크톱/모바일 표시 제어
   =========================================== */
.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

/* ===========================================
   터치 태블릿 가로모드 지원 (JS에서 body.mobile-view 클래스 추가)
   - 터치 디바이스 + 1200~1399px 범위에서 모바일 헤더 유지
   =========================================== */
.mobile-view .desktop-only {
  display: none !important;
}
.mobile-view .mobile-only {
  display: inline-flex !important;
}
.mobile-view .mobile-menu-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.mobile-view .app-header {
  height: auto !important;
  min-height: var(--mobile-header-height) !important;
  height: calc(var(--mobile-header-height) + env(safe-area-inset-top)) !important;
  padding-top: env(safe-area-inset-top) !important;
}
.mobile-view .app-header .header-container {
  padding: 0 8px !important;
}
.mobile-view .app-header .header-left {
  gap: 0.5rem !important;
  padding-left: 0.5rem !important;
}
.mobile-view .app-header .brand-section {
  flex: 1;
  min-width: 0;
}
.mobile-view .app-header .brand-text {
  font-size: 0.85rem !important;
  max-width: 200px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.mobile-view .app-header .top-nav {
  display: none !important;
}
.mobile-view .app-header .header-right {
  padding-right: 0.5rem !important;
}
.mobile-view .app-header .user-section {
  gap: 4px !important;
}
.mobile-view .app-header .notification-btn,
.mobile-view .app-header .user-icon-btn,
.mobile-view .app-header .logout-btn {
  padding: 8px !important;
  font-size: 1rem !important;
}
.mobile-view .app-header .notification-badge {
  top: -2px;
  right: -2px;
  font-size: 0.6rem;
  padding: 0.15rem 0.3rem;
  min-width: 16px;
}
.mobile-view .app-header .user-menu,
.mobile-view .app-header .user-name {
  display: none !important;
}
.mobile-view .app-header .desktop-only-logout {
  display: none !important;
}
.mobile-view .user-dropdown-menu {
  display: block !important;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 150px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  overflow: hidden;
}
.mobile-view .user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 44px;
}
.mobile-view .user-dropdown-item:hover {
  background: #f5f5f5;
}
.mobile-view .user-dropdown-item i {
  width: 16px;
  text-align: center;
  color: #666;
}
.mobile-view .user-dropdown-divider {
  height: 1px;
  background: #e9ecef;
}
.mobile-view .user-dropdown-logout {
  color: #dc3545;
}
.mobile-view .user-dropdown-logout i {
  color: #dc3545;
}
.mobile-view .sidebar,
.mobile-view .app-sidebar {
  position: fixed !important;
  left: calc(-1 * var(--mobile-sidebar-width)) !important;
  top: 0 !important;
  width: var(--mobile-sidebar-width) !important;
  height: 100vh !important;
  z-index: 1001 !important;
  transition: left var(--mobile-transition) !important;
  padding-top: calc(var(--mobile-header-height) + env(safe-area-inset-top)) !important;
  border-radius: 0 !important;
}
.mobile-view .sidebar.mobile-open,
.mobile-view .app-sidebar.mobile-open {
  left: 0 !important;
}
.mobile-view .app-sidebar .sidebar-header {
  display: none !important;
}
.mobile-view .app-sidebar .sidebar-user-section {
  padding: 15px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.mobile-view .app-sidebar .sidebar-user-avatar {
  font-size: 2rem !important;
}
.mobile-view .app-sidebar .sidebar-menu-list {
  padding: 10px 0 !important;
}
.mobile-view .app-sidebar .sidebar-menu-link {
  padding: 12px 20px !important;
  font-size: 0.95rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.mobile-view .main-content {
  margin-left: 0 !important;
  width: 100% !important;
  margin-top: calc(var(--mobile-header-height) + env(safe-area-inset-top)) !important;
  min-height: calc(100vh - var(--mobile-header-height) - env(safe-area-inset-top)) !important;
  overflow-x: hidden !important;
}
.mobile-view .main-content.with-sidebar,
.mobile-view .main-content.sidebar-collapsed,
.mobile-view .main-content.no-sidebar {
  margin-left: 0 !important;
  width: 100% !important;
}
.mobile-view .app-footer .footer-content {
  flex-direction: column-reverse !important;
  gap: 0;
  text-align: center;
}
.mobile-view .app-footer .footer-links {
  justify-content: center;
  gap: 1rem !important;
}
.mobile-view .app-footer .footer-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem !important;
}
.mobile-view .app-footer .footer-left p {
  font-size: 0.7rem !important;
  margin: 0;
  padding-bottom: 0.5rem;
}
.mobile-view .app-footer {
  padding: 0.75rem 0 !important;
}

/* 터치 태블릿 가로모드: Bootstrap xl 브레이크포인트 오버라이드
   - 테이블(d-none d-xl-block) 숨기고 카드(d-block d-xl-none) 표시
   - 데스크톱 페이징(d-none d-xl-flex) 숨김 */
.mobile-view .d-none.d-xl-block {
  display: none !important;
}
.mobile-view .d-block.d-xl-none {
  display: block !important;
}
.mobile-view .d-none.d-xl-flex {
  display: none !important;
}

/* 터치 태블릿 가로모드: 카드 2열 그리드 (768px 이상) */
@media (min-width: 768px) {
  .mobile-view .mobile-card-layout > div:not(.text-center):not(.infinite-scroll-loading) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .mobile-view .mobile-card-layout > div > .card {
    margin-bottom: 0 !important;
  }
  .mobile-view .mobile-card-layout > div > .text-center,
  .mobile-view .mobile-card-layout > div > .infinite-scroll-loading,
  .mobile-view .mobile-card-layout > div > .end-of-data {
    grid-column: 1 / -1;
    text-align: center;
  }
  .mobile-view .mobile-card-layout .text-truncate {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
}

/* ===========================================
   모바일/태블릿 미디어 쿼리 (1199.98px 이하)
   =========================================== */
@media (max-width: 1199.98px) {
  /* -----------------------------------------
     표시 제어
     ----------------------------------------- */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: inline-flex !important;
  }
  
  /* 모바일 햄버거 메뉴 버튼 표시 */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  /* -----------------------------------------
     헤더 스타일
     ----------------------------------------- */
  .app-header {
    height: auto !important;
    min-height: var(--mobile-header-height) !important;
    height: calc(var(--mobile-header-height) + env(safe-area-inset-top)) !important;
    padding-top: env(safe-area-inset-top) !important;
  }
  
  .app-header .header-container {
    padding: 0 8px !important;
  }
  
  .app-header .header-left {
    gap: 0.5rem !important;
    padding-left: 0.5rem !important;
  }
  
  /* 브랜드 섹션 */
  .app-header .brand-section {
    flex: 1;
    min-width: 0; /* flexbox에서 텍스트 오버플로우 허용 */
  }
  
  .app-header .brand-text {
    font-size: 0.85rem !important;
    max-width: 200px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  
  /* 상단 메뉴 숨김 */
  .app-header .top-nav {
    display: none !important;
  }
  
  /* 사용자 섹션 - 아이콘만 표시 */
  .app-header .header-right {
    padding-right: 0.5rem !important;
  }
  
  .app-header .user-section {
    gap: 4px !important;
  }
  
  .app-header .notification-btn,
  .app-header .user-icon-btn,
  .app-header .logout-btn {
    padding: 8px !important;
    font-size: 1rem !important;
  }
  
  .app-header .user-menu,
  .app-header .user-name {
    display: none !important;
  }

  /* 모바일: 로그아웃 버튼 숨기고 드롭다운으로 대체 */
  .app-header .desktop-only-logout {
    display: none !important;
  }

  /* 사용자 드롭다운 메뉴 */
  .user-dropdown-menu {
    display: block !important;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    overflow: hidden;
  }

  .user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .user-dropdown-item:hover {
    background: #f5f5f5;
  }

  .user-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #666;
  }

  .user-dropdown-divider {
    height: 1px;
    background: #e9ecef;
  }

  .user-dropdown-logout {
    color: #dc3545;
  }

  .user-dropdown-logout i {
    color: #dc3545;
  }
  
  /* -----------------------------------------
     사이드바 스타일 (CSP 준수 - 클래스 기반)
     ----------------------------------------- */
  .sidebar,
  .app-sidebar {
    position: fixed !important;
    left: calc(-1 * var(--mobile-sidebar-width)) !important;
    top: 0 !important;
    width: var(--mobile-sidebar-width) !important;
    height: 100vh !important;
    z-index: 1001 !important;
    transition: left var(--mobile-transition) !important;
    padding-top: calc(var(--mobile-header-height) + env(safe-area-inset-top)) !important;
    border-radius: 0 !important;
  }
  
  /* 사이드바 열림 상태 */
  .sidebar.mobile-open,
  .app-sidebar.mobile-open {
    left: 0 !important;
  }
  
  /* 사이드바 내부 조정 */
  .app-sidebar .sidebar-header {
    display: none !important;
  }
  
  .app-sidebar .sidebar-user-section {
    padding: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .app-sidebar .sidebar-user-avatar {
    font-size: 2rem !important;
  }
  
  .app-sidebar .sidebar-menu-list {
    padding: 10px 0 !important;
  }
  
  .app-sidebar .sidebar-menu-link {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  
  .app-sidebar .sidebar-submenu-link {
    padding: 10px 20px 10px 50px !important;
    font-size: 0.9rem !important;
  }
  
  .app-sidebar .sidebar-subsubmenu-link {
    padding: 10px 20px 10px 70px !important;
    font-size: 0.85rem !important;
  }
  
  .app-sidebar .sidebar-footer {
    padding: 10px 15px !important;
  }
  
  /* 오버레이 표시 */
  .sidebar-overlay {
    display: block;
  }
  
  .sidebar-overlay.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* -----------------------------------------
     메인 콘텐츠 - 전체 화면 사용
     ----------------------------------------- */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    margin-top: calc(var(--mobile-header-height) + env(safe-area-inset-top)) !important;
    min-height: calc(100vh - var(--mobile-header-height) - env(safe-area-inset-top)) !important;
  }
  
  .main-content.with-sidebar,
  .main-content.sidebar-collapsed,
  .main-content.no-sidebar {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* 컨테이너 패딩 조정 */
  .main-content .container,
  .main-content .container-fluid {
    padding: 0.75rem !important;
  }
  
  /* -----------------------------------------
     페이지 헤더 조정
     ----------------------------------------- */
  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0 !important;
    position: sticky;
    top: var(--mobile-header-height, 56px);
    z-index: 5;
    background: #fff;
    padding-top: 0.75rem;
  }

  .page-header .header-title p {
    display: none;
  }

  .page-header .header-title h1 {
    font-size: 1.5rem !important;
  }
  
  .page-header .header-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }

  .page-header .header-actions .btn {
    flex: 0 1 auto !important;
    max-width: none !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.7rem !important;
    white-space: nowrap !important;
  }
  
  /* -----------------------------------------
     MainView 로그인 화면 모바일 최적화
     ----------------------------------------- */
  /* 상단 섹션을 세로 배치로 변경 */
  .top-section {
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 20px !important;
    flex: 0 0 auto !important;
    min-height: 60% !important;
  }
  
  /* 로고 위치 조정 */
  .logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  .logo-image {
    max-width: 200px !important;
  }
  
  /* 메인 이미지 숨기기 (모바일에서는 불필요) */
  .main-page-image-container {
    display: none !important;
  }
  
  /* 로그인 폼 가운데 정렬 */
  .login-form-section {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 90% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }
  
  /* iOS 자동 줌 방지 - input font-size 16px 이상 */
  .form-input,
  .login-form input[type="text"],
  .login-form input[type="password"] {
    font-size: 16px !important;
  }
  
  /* 하단 섹션 */
  .bottom-section {
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 200px !important;
    padding: 40px 20px !important;
  }
  
  /* 제품 정보 위치 조정 */
  .product-info {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 20px !important;
  }
  
  .product-title {
    font-size: 2rem !important;
  }
  
  /* 저작권 정보 */
  .copyright {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    text-align: center !important;
    padding: 10px !important;
  }
  
  /* -----------------------------------------
     테이블 반응형
     ----------------------------------------- */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* -----------------------------------------
     모달 반응형
     ----------------------------------------- */
  .modal-dialog {
    margin: 10px !important;
    max-width: calc(100% - 20px) !important;
  }
  
  .modal-xxl {
    max-width: calc(100% - 20px) !important;
    width: calc(100% - 20px) !important;
  }
  
  /* -----------------------------------------
     드롭다운 메뉴 (모바일에서는 사용되지 않지만 안전하게)
     ----------------------------------------- */
  .dropdown-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
  }
}

/* ===========================================
   태블릿 카드 레이아웃 (768px~1199px)
   2열 그리드로 카드 배치
   =========================================== */
@media (min-width: 768px) and (max-width: 1199.98px) {
  /* 카드 컨테이너만 2열 그리드 적용 (더 보기/끝 표시 div 제외) */
  .mobile-card-layout > div:not(.text-center):not(.infinite-scroll-loading) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .mobile-card-layout > div > .card {
    margin-bottom: 0 !important;
  }

  /* 그리드 내부의 더 보기, 로딩, 끝 표시 → 2열 전체 차지 + 중앙 정렬 */
  .mobile-card-layout > div > .text-center,
  .mobile-card-layout > div > .infinite-scroll-loading,
  .mobile-card-layout > div > .end-of-data {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* 태블릿에서 텍스트 truncate 해제 - 공간 여유 활용 */
  .mobile-card-layout .text-truncate {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
}

/* ===========================================
   작은 모바일 화면 (480px 이하)
   =========================================== */
@media (max-width: 480px) {
  /* 브랜드 텍스트 - 작은 화면에서 말줄임 */
  .app-header .brand-text {
    font-size: 0.8rem !important;
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  /* 버튼 크기 축소 */
  .app-header .notification-btn,
  .app-header .user-icon-btn,
  .app-header .logout-btn {
    padding: 6px !important;
    font-size: 0.95rem !important;
    width: 32px !important;
    height: 32px !important;
  }
  
  .mobile-menu-btn {
    padding: 6px 10px !important;
    font-size: 1.1rem !important;
  }
  
  /* 로그인 폼 */
  .logo-image {
    max-width: 150px !important;
  }
  
  .login-form-section {
    width: 95% !important;
    padding: 0 10px !important;
  }
  
  .login-form .form-group label {
    font-size: 0.85rem !important;
  }
  
  .form-input {
    padding: 0.75rem 0.875rem !important;
  }
  
  .btn-login {
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .product-title {
    font-size: 1.5rem !important;
  }
  
  .product-subtitle {
    font-size: 0.95rem !important;
  }

  /* 회원가입 버튼 세로 배치 */
  .registration-buttons {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .btn-registration {
    font-size: 0.85rem !important;
    padding: 0.7rem 0.875rem !important;
  }
  
  /* 2차인증 모달 모바일 최적화 */
  .two-factor-auth-container {
    width: 95% !important;
    padding: 1.5rem !important;
  }
  
  .code-input-digit {
    width: 40px !important;
    height: 50px !important;
    font-size: 1.25rem !important;
  }
  
  /* 페이지 헤더 */
  .page-header .header-title h1 {
    font-size: 1.25rem !important;
  }
  
  .page-header .header-actions .btn {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.6rem !important;
  }
}

/* -----------------------------------------
   .mobile-view 페이지 헤더 sticky (터치 태블릿 대응)
   ----------------------------------------- */
.mobile-view .page-header {
  position: sticky;
  top: var(--mobile-header-height, 56px);
  z-index: 5;
  background: #fff;
  padding-top: 0.75rem;
}

.mobile-view .page-header .header-title p {
  display: none;
}

/* ===========================================
   가로 모드 (Landscape) 대응
   =========================================== */
@media (max-width: 1199.98px) and (orientation: landscape) {
  .main-view-container {
    min-height: 100vh !important;
  }
  
  .top-section {
    flex: 0 0 auto !important;
    min-height: auto !important;
    padding: 10px 20px !important;
  }
  
  .bottom-section {
    min-height: auto !important;
    padding: 20px !important;
  }
  
  .login-form-section {
    max-width: 350px !important;
  }
  
  /* 사이드바 높이 조정 */
  .sidebar,
  .app-sidebar {
    height: 100vh !important;
  }
}

/* ===========================================
   터치 디바이스 최적화
   =========================================== */
@media (hover: none) and (pointer: coarse) {
  /* 터치 타겟 크기 확대 (최소 44x44px) */
  .mobile-menu-btn,
  .app-header .notification-btn,
  .app-header .user-icon-btn,
  .app-header .logout-btn {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .app-sidebar .sidebar-menu-link,
  .app-sidebar .sidebar-submenu-link {
    min-height: 44px !important;
  }

  /* 터치 하이라이트 제거 */
  .sidebar-menu-link,
  .sidebar-submenu-link,
  .sidebar-subsubmenu-link {
    -webkit-tap-highlight-color: transparent !important;
  }

  /* 호버 효과 제거 (터치 디바이스에서는 의미 없음) */
  .sidebar-menu-link:hover,
  .sidebar-submenu-link:hover,
  .sidebar-subsubmenu-link:hover {
    background: transparent !important;
    transform: none !important;
    color: inherit !important;
  }

  .sidebar-menu-link:hover i,
  .sidebar-submenu-link:hover i,
  .sidebar-subsubmenu-link:hover i {
    transform: none !important;
    color: inherit !important;
  }

  /* active 상태는 유지 (실제 활성화된 메뉴) */
  .sidebar-menu-link.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(155, 89, 182, 0.3) 100%) !important;
  }

  .sidebar-submenu-link.active,
  .sidebar-subsubmenu-link.active {
    background: rgba(52, 152, 219, 0.3) !important;
  }
}

/* ===========================================
   AppFooter 모바일 터치 영역 개선
   =========================================== */
@media (max-width: 1199.98px) {
  .app-footer .footer-content {
    flex-direction: column-reverse !important;
    gap: 0;
    text-align: center;
  }

  .app-footer .footer-links {
    justify-content: center;
    gap: 1rem !important;
  }

  .app-footer .footer-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem !important;
  }

  .app-footer .footer-left p {
    font-size: 0.7rem !important;
    margin: 0;
    padding-bottom: 0.5rem;
  }

  .app-footer {
    padding: 0.75rem 0 !important;
  }
}

/* ===========================================
   고해상도 디스플레이 (Retina) 대응
   =========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* 얇은 보더 */
  .app-sidebar {
    border-right: 0.5px solid rgba(255, 255, 255, 0.1);
  }
}

/* ===========================================
   ConCha 하단 탭바 (BottomTabBar)
   =========================================== */
:root {
  --concha-primary: #1B6DE0;
  --concha-primary-light: #E8F1FD;
  --concha-text-tertiary: #9BA3B5;
  --concha-border: #E8EAF0;
  --concha-tab-height: 58px;
  --concha-tab-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.concha-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--concha-tab-height) + var(--concha-tab-safe-bottom));
  padding-bottom: var(--concha-tab-safe-bottom);
  background: #fff;
  border-top: 1px solid var(--concha-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 4px;
  padding-right: 4px;
  z-index: 1000;
  box-shadow: 0 -1px 8px rgba(26, 29, 38, 0.06);
}

.concha-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: var(--concha-text-tertiary);
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.concha-tab-item i {
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
  transition: transform 0.15s ease;
}

.concha-tab-item.active {
  color: var(--concha-primary);
}

.concha-tab-item.active i {
  transform: scale(1.08);
}

.concha-tab-item:active {
  background: var(--concha-primary-light);
}

/* 탭바 높이만큼 콘텐츠 하단 여백 (모바일 뷰 한정) */
.mobile-view .main-content {
  padding-bottom: calc(var(--concha-tab-height) + var(--concha-tab-safe-bottom) + 8px);
}

/* ===========================================
   ConCha 세그먼트 컨트롤 (SegmentControl)
   =========================================== */
.concha-segment-control {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #F0F1F5;
  flex-shrink: 0;
}

.concha-segment-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--concha-text-tertiary);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.concha-segment-item.active {
  background: var(--concha-primary);
  color: #fff;
}

.concha-segment-item:not(.active):active {
  background: var(--concha-primary-light);
  color: var(--concha-primary);
}

/* ===========================================
   ConCha 칩 필터 (ChipFilter)
   =========================================== */
.concha-chip-row {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  background: #F7F8FB;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.concha-chip-row::-webkit-scrollbar { display: none; }
.concha-chip-row + .concha-chip-row { padding-top: 2px; }
.concha-chip-row:has(+ .concha-chip-row) { padding-bottom: 2px; }

.concha-chip {
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--concha-border);
  background: #fff;
  color: #5F6577;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.concha-chip.active {
  background: var(--concha-primary);
  color: #fff;
  border-color: var(--concha-primary);
}

/* ===========================================
   ConCha 필터 액션 바
   =========================================== */
.concha-filter-actions {
  display: flex;
  gap: 6px;
  padding: 0 16px 8px;
  background: #F7F8FB;
}
.concha-filter-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--concha-border);
  background: #fff;
  color: #5F6577;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.concha-filter-action-btn i { font-size: 10px; }
.concha-filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--concha-primary);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.concha-chip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--concha-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  margin-left: 4px;
}
.concha-chip.active .concha-chip-badge {
  background: #fff;
  color: var(--concha-primary);
}

/* ===========================================
   ConCha 운송 카드 (TransportCard)
   =========================================== */
.concha-mobile-card-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background: #F7F8FB;
}

.concha-transport-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(26,29,38,0.04), 0 1px 2px rgba(26,29,38,0.02);
  border: 1px solid #F0F1F5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.15s;
}
.concha-transport-card:active {
  box-shadow: 0 4px 12px rgba(26,29,38,0.10);
}

.concha-tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.concha-tc-type {
  display: flex;
  align-items: center;
  gap: 8px;
}
.concha-tc-spec {
  font-size: 11px;
  color: #9BA3B5;
  font-weight: 500;
}

/* 수출입 타입 뱃지 */
.concha-type-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.concha-type-badge.export { background: #E8F1FD; color: #1B6DE0; }
.concha-type-badge.import { background: #FFF4E5; color: #C47A0A; }

/* 상태 뱃지 */
.concha-status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.concha-status-badge.ready   { background: #E8F1FD; color: #1B6DE0; }
.concha-status-badge.done    { background: #E7F8EF; color: #0EA958; }
.concha-status-badge.cancel  { background: #FDEAEC; color: #DC3545; }
.concha-status-badge.pending { background: #FFF4E5; color: #E88B0E; }
.concha-status-badge.not-issued { background: #F0F1F3; color: #6c757d; }

/* 경로 도트라인 */
.concha-tc-route {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #F7F8FB;
  border-radius: 8px;
}
.concha-tc-route-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
}
.concha-route-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--concha-primary);
  background: #fff;
  flex-shrink: 0;
}
.concha-route-dot.end { background: var(--concha-primary); }
.concha-route-line {
  width: 2px;
  flex: 1;
  background: var(--concha-border);
  min-height: 16px;
}
.concha-tc-route-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.concha-route-place { display: flex; flex-direction: column; }
.concha-route-label { font-size: 10px; color: #9BA3B5; margin-bottom: 2px; }
.concha-route-name  { font-size: 13px; font-weight: 600; color: #1A1D26; line-height: 1.3; }

/* 카드 푸터 */
.concha-tc-parties {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-bottom: 4px;
  border-top: 1px dashed var(--concha-border);
  font-size: 12px;
  color: #5F6577;
}
.concha-tc-party {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #1A1D26;
}
.concha-tc-party-label { font-size: 10px; color: #9BA3B5; margin-right: 3px; font-weight: 500; }
.concha-tc-party-sep { color: #D0D4E0; font-size: 12px; }

.concha-tc-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.concha-tc-meta { display: flex; gap: 12px; }
.concha-tc-meta-item { display: flex; flex-direction: column; }
.concha-tc-meta-label { font-size: 10px; color: #9BA3B5; }
.concha-tc-meta-value { font-size: 12px; font-weight: 600; color: #1A1D26; }
.concha-tc-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--concha-primary);
  letter-spacing: -0.3px;
  text-align: right;
}
.concha-tc-price-label {
  font-size: 11px;
  font-weight: 500;
  color: #6B7280;
  margin-right: 2px;
}
.concha-tc-date {
  font-size: 10px;
  color: #9BA3B5;
  margin-top: 4px;
  text-align: right;
}

/* ===========================================
   ConCha FAB (Floating Action Button)
   =========================================== */
.concha-fab {
  position: fixed;
  bottom: calc(var(--concha-tab-height) + var(--concha-tab-safe-bottom) + 16px);
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--concha-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(27, 109, 224, 0.35);
  z-index: 999;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.concha-fab i { font-size: 20px; color: #fff; }
.concha-fab:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(27, 109, 224, 0.25);
}

/* ─── 스켈레톤 로딩 (GPU 가속) ─── */
@keyframes concha-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.concha-skeleton-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--concha-border);
  padding: 14px;
  margin-bottom: 10px;
}
.concha-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: #F0F0F0;
  overflow: hidden;
  position: relative;
}
.concha-skeleton-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: concha-shimmer 1.5s ease-in-out infinite;
  will-change: transform;
}
.concha-skeleton-line--header { width: 55%; height: 14px; margin-bottom: 14px; }
.concha-skeleton-line--dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.concha-skeleton-line--route { width: 70%; height: 11px; }
.concha-skeleton-line--route-short { width: 45%; height: 11px; }
.concha-skeleton-line--bar { height: 2px; flex: 1; margin: 0 6px; }
.concha-skeleton-route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.concha-skeleton-route-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.concha-skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--concha-border);
}
.concha-skeleton-line--footer-left { width: 40%; height: 10px; }
.concha-skeleton-line--footer-right { width: 25%; height: 14px; }
.concha-skeleton-line--badge { width: 35px; height: 20px; border-radius: 4px; display: inline-block; margin-right: 6px; }
.concha-skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.concha-skeleton-header-left { display: flex; align-items: center; gap: 6px; }

/* 스켈레톤 공통 인라인 대체 클래스 */
.concha-skeleton-line--w80 { width: 80px; }
.concha-skeleton-line--w50 { width: 50px; }
.concha-skeleton-line--bar-vert { width: 2px; height: 16px; margin: 0; }
.concha-skeleton-flex1 { flex: 1; }
.concha-skeleton-line--route-mb { margin-bottom: 18px; }
.concha-skeleton-route--mb0 { margin-bottom: 0; }

/* 교환 스켈레톤 전용 */
.concha-sk-exchange-target {
  background: #F7F8FB;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.concha-sk-exchange-wish {
  background: #FFF8F0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.concha-sk-exchange-label { width: 50px; height: 10px; margin-bottom: 10px; }
.concha-sk-exchange-wish-label { width: 50px; height: 10px; margin-bottom: 8px; }
.concha-sk-exchange-wish-spec { width: 60%; height: 12px; margin-bottom: 10px; }
.concha-sk-exchange-wish-date { width: 45%; height: 10px; }
.concha-skeleton-route--mb6 { margin-bottom: 6px; }
/* 교환 스켈레톤 오렌지 dot/bar */
.concha-skeleton-line--dot-orange {
  background: #F5DFC0;
}
.concha-skeleton-line--dot-orange::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.concha-skeleton-line--bar-vert-orange {
  width: 2px; height: 16px; margin: 0;
  background: #F5DFC0;
}
.concha-skeleton-line--bar-vert-orange::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}

/* 공통 모바일 유틸 (CSP 인라인 스타일 대체) */
.concha-section-mt0 { margin-top: 0; }
.concha-required { color: #dc3545; }
.concha-filter-select--mb { margin-bottom: 6px; }
.concha-filter-input--flex1 { flex: 1; }
.concha-filter-textarea { resize: vertical; }
.concha-exchange-route-pad0 { padding: 0; }
.concha-exchange-icon-mr { margin-right: 4px; }

/* 등록취소 (빨간) 액션 버튼 */
.concha-action-btn--cancel {
  background: #dc3545;
  color: #fff;
  border: none;
}

/* ===========================================
   ConCha 바텀시트 필터 (FilterBottomSheet)
   =========================================== */
.concha-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.concha-filter-sheet {
  background: #fff;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--concha-border);
  max-height: 80vh;
  overflow-y: auto;
}

.concha-filter-handle-row {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.concha-filter-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--concha-border);
}

.concha-filter-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F0F1F5;
}
.concha-filter-sheet-title {
  font-size: 14px;
  font-weight: 700;
  color: #1A1D26;
}
.concha-filter-sheet-title i {
  font-size: 12px;
  color: var(--concha-primary);
  margin-right: 6px;
}
.concha-filter-reset-btn {
  font-size: 11px;
  color: #9BA3B5;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.concha-filter-sheet-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.concha-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.concha-filter-field-label {
  font-size: 10px;
  font-weight: 600;
  color: #9BA3B5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.concha-filter-field-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.concha-filter-select {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--concha-border);
  font-size: 12px;
  color: #1A1D26;
  background: #fff;
  font-family: inherit;
  appearance: none;
}
.concha-filter-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--concha-border);
  font-size: 12px;
  color: #1A1D26;
  background: #fff;
  font-family: inherit;
}
.concha-filter-input::placeholder { color: #9BA3B5; }
.concha-filter-date-sep {
  color: #9BA3B5;
  font-size: 12px;
  padding: 0 2px;
  flex-shrink: 0;
}

.concha-filter-sheet-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #F0F1F5;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

/* 공통 액션 버튼 */
.concha-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.concha-action-primary {
  background: var(--concha-primary);
  color: #fff;
}
.concha-action-outline {
  background: #fff;
  color: #5F6577;
  border: 1px solid var(--concha-border);
}

/* ═══ ConCha 상세 페이지 모바일 UI ═══ */
.concha-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--concha-border);
}
.concha-detail-hero-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.concha-detail-hero-right {
  text-align: right;
  flex-shrink: 0;
}
.concha-detail-fee-label {
  font-size: 10px;
  color: var(--concha-text-tertiary);
}
.concha-detail-fee {
  font-size: 18px;
  font-weight: 800;
  color: var(--concha-primary);
}

.concha-detail-section {
  background: #fff;
  border-radius: 12px;
  margin: 8px 12px 0;
  overflow: hidden;
}
.concha-detail-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2D3142;
  border-bottom: 1px solid var(--concha-border);
}
.concha-detail-section-header i {
  color: var(--concha-primary);
  font-size: 13px;
}

.concha-detail-route-wrap {
  padding: 12px 16px;
}
.concha-detail-route {
  display: flex;
  gap: 10px;
}
.concha-detail-route-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}
.concha-detail-route-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.concha-detail-route-place {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.concha-detail-route-label {
  font-size: 10px;
  color: var(--concha-text-tertiary);
  font-weight: 500;
}
.concha-detail-route-value {
  font-size: 13px;
  font-weight: 600;
  color: #2D3142;
}

/* 정보 그리드 (2열) */
.concha-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.concha-info-cell {
  padding: 10px 16px;
  border-bottom: 1px solid #F5F6FA;
}
.concha-info-cell:nth-child(odd) {
  border-right: 1px solid #F5F6FA;
}
.concha-info-cell--full {
  grid-column: 1 / -1;
  border-right: none;
}
.concha-info-label {
  display: block;
  font-size: 10px;
  color: var(--concha-text-tertiary);
  margin-bottom: 2px;
}
.concha-info-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2D3142;
}

/* 타임라인 */
.concha-timeline {
  padding: 12px 16px;
}
.concha-timeline-item {
  display: flex;
  gap: 12px;
}
.concha-timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.concha-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.concha-timeline-dot.active {
  background: var(--concha-primary);
}
.concha-timeline-dot.empty {
  background: #D8DCE8;
}
.concha-timeline-line {
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: #E8EAF0;
  margin: 3px 0;
}
.concha-timeline-content {
  flex: 1;
  padding-bottom: 16px;
}
.concha-timeline-label {
  font-size: 11px;
  color: var(--concha-text-tertiary);
  margin-bottom: 2px;
}
.concha-timeline-value {
  font-size: 13px;
  font-weight: 600;
  color: #2D3142;
}
.concha-timeline-value.empty {
  color: #D0D4E0;
}
.concha-timeline-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #6B7280;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  vertical-align: middle;
}
.concha-timeline-refresh-btn:active {
  background: #E5E7EB;
}

/* 하단 액션바를 포함하는 모바일 래퍼: 최소 뷰포트 높이 확보 → 짧은 폼/상세에서도 액션바가 항상 하단에 위치 */
.d-block.d-xl-none:has(> .concha-detail-bottom-actions) {
  min-height: calc(100vh - var(--mobile-header-height, 56px));
  display: flex;
  flex-direction: column;
}
.d-block.d-xl-none:has(> .concha-detail-bottom-actions) > .concha-detail-section,
.d-block.d-xl-none:has(> .concha-detail-bottom-actions) > .concha-detail-wrap {
  flex: 1;
}

/* 하단 액션바 */
.concha-detail-bottom-actions {
  position: sticky;
  bottom: var(--concha-tab-height);
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid var(--concha-border);
  padding-bottom: calc(10px + var(--concha-tab-safe-bottom));
  z-index: 10;
  margin-top: 8px;
}

/* ═══ ConCha 등록/수정 폼 (모바일) ═══ */
.concha-form-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.concha-form-body .concha-filter-field {
  padding: 10px 0;
  border-bottom: 1px solid #F5F6FA;
}
.concha-form-body .concha-filter-field:last-child {
  border-bottom: none;
}
.concha-form-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: 4px;
  background: var(--concha-primary-light);
  border-radius: 8px;
  font-size: 12px;
  color: var(--concha-primary);
  font-weight: 500;
}
.concha-field-error {
  border-color: #dc3545 !important;
}
.concha-field-error-msg {
  font-size: 11px;
  color: #dc3545;
  margin-top: 4px;
}
.concha-form-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--concha-border);
  border-radius: 8px;
  background: #fff;
  color: var(--concha-primary);
  font-size: 14px;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.concha-form-search-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── 교환합니다 전용 스타일 ─── */
/* 교환희망 카드 요약 */
.concha-exchange-wish-summary {
  padding: 8px 12px;
  background: #FFF4E5;
  border-radius: 8px;
  margin: 0 12px 8px;
}
.concha-exchange-wish-label {
  font-size: 10px;
  color: #C47A0A;
  font-weight: 600;
  margin-bottom: 4px;
}
.concha-exchange-wish-spec {
  font-size: 12px;
  font-weight: 700;
  color: #2D3142;
  margin-bottom: 2px;
}
.concha-exchange-wish-route-dots {
  padding: 0;
  margin-top: 6px;
}
.concha-exchange-wish-route-dots .concha-route-name {
  font-size: 11px;
}
/* 교환희망 도트 오렌지 컬러 */
.concha-route-dot.wish {
  border-color: #E88B0E;
  background: #fff;
}
.concha-route-dot.end.wish {
  border-color: #E88B0E;
  background: #E88B0E;
}
.concha-route-line.wish {
  background: #E88B0E40;
}
.concha-exchange-wish-date {
  font-size: 10px;
  color: #C47A0A;
  margin-top: 4px;
}
/* 교환대상 카드 경로 배경 */
.concha-exchange-target-route {
  padding: 10px 12px;
  background: #F8F9FC;
  border-radius: 8px;
  margin: 0 12px 8px;
}
.concha-exchange-target-label {
  font-size: 10px;
  color: var(--concha-text-tertiary);
  font-weight: 600;
  margin-bottom: 6px;
}
/* 교환희망정보 섹션 (상세 페이지) */
.concha-detail-section--wish {
  border: 1px solid #E88B0E40;
}
.concha-detail-section--wish .concha-detail-section-header {
  background: #FFF4E5;
}
.concha-detail-section--wish .concha-detail-section-header i {
  color: #E88B0E;
}

/* ===========================================
   ConCha 차량매매 공통 유틸 클래스
   =========================================== */
/* 빈 데이터 */
.concha-empty-icon { font-size: 2rem; opacity: 0.3; }
.concha-empty-text { font-size: 13px; }

/* 상세 래퍼 */
.concha-detail-wrap {
  background: #F7F8FB;
  min-height: 100vh;
  padding-bottom: 70px;
}

/* 상세 섹션 본문 패딩 */
.concha-detail-section-body { padding: 12px 16px; }

/* 상세 스펙태그 영역 */
.concha-detail-specs { padding: 12px 16px 10px; }

/* 차량 스켈레톤 (카드형) */
.concha-sk-vc-image { width: 100%; height: 120px; border-radius: 8px 8px 0 0; margin-bottom: 0; }
.concha-sk-vc-body { padding: 12px; }
.concha-sk-vc-title { width: 70%; height: 16px; margin-bottom: 8px; }
.concha-sk-vc-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.concha-sk-vc-tag { width: 50px; height: 22px; border-radius: 4px; }
.concha-sk-vc-tag--wide { width: 60px; }
.concha-sk-vc-bottom { display: flex; justify-content: space-between; align-items: center; }
.concha-sk-vc-price { width: 100px; height: 18px; }
.concha-sk-vc-location { width: 80px; height: 14px; }

/* 카드 이미지 placeholder 아이콘 */
.concha-vc-image-icon { font-size: 36px; color: rgba(27,109,224,0.25); z-index: 1; }

/* 상세 이미지 히어로 아이콘/라벨 */
.concha-vehicle-hero-icon { font-size: 48px; color: rgba(255,255,255,0.5); }
.concha-vehicle-hero-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.concha-vehicle-hero-cam-icon { font-size: 11px; }

/* 신청자 아바타 색상 */
.concha-contact-avatar--applicant { background: #E7F8EF; color: #0EA958; }

/* 액션 버튼 flex/아이콘/색상 */
.concha-action-flex1 { flex: 1; }
.concha-action-flex2 { flex: 2; }
.concha-action-icon { font-size: 11px; margin-right: 4px; }
.concha-action-complete { color: var(--concha-primary, #1B6DE0); }
.concha-action-danger { color: #DC3545; }

/* ===========================================
   ConCha 차량매매 카드 (Vehicle Trade Card)
   =========================================== */
.concha-vehicle-card {
  background: #fff;
  border-radius: var(--concha-border-radius, 12px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,29,38,0.04), 0 1px 2px rgba(26,29,38,0.02);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.concha-vehicle-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(26,29,38,0.08);
}
.concha-vc-image {
  height: 120px;
  background: linear-gradient(135deg, #EBF3FE, #D6E7FD);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.concha-vc-image-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.concha-vc-image-actual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
/* 썸네일 페이드인 */
.concha-img-fadein {
  animation: concha-fadein 0.3s ease-out;
}
@keyframes concha-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.concha-vc-image-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.9);
  color: var(--concha-primary, #1B6DE0);
}
.concha-vc-body {
  padding: 12px 14px;
}
.concha-vc-title {
  font-size: 15px;
  font-weight: 700;
  color: #1A1D26;
  margin-bottom: 8px;
  line-height: 1.3;
}
.concha-vc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.concha-vc-spec-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: #F7F8FB;
  color: #5F6577;
  border: 1px solid #E8EAF0;
}
.concha-vc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.concha-vc-price {
  font-size: 17px;
  font-weight: 900;
  color: #1A1D26;
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}
.concha-vc-location {
  font-size: 12px;
  color: #9BA3B5;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ─── 차량매매 이미지 히어로 (상세) ─── */
.concha-vehicle-hero {
  height: 200px;
  background: linear-gradient(135deg, #D6E7FD, #EBF3FE);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.concha-vehicle-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.concha-vehicle-hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.concha-vehicle-hero-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ─── 가격 히어로 (상세) ─── */
.concha-price-hero {
  background: #fff;
  padding: 16px 20px;
  border-bottom: 1px solid #E8EAF0;
}
.concha-price-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.concha-price-hero-price {
  font-size: 24px;
  font-weight: 900;
  color: #1A1D26;
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}
.concha-price-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #9BA3B5;
}
.concha-price-hero-meta i {
  margin-right: 2px;
}

/* ─── 기타설명 박스 ─── */
.concha-desc-box {
  background: #F7F8FB;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #5F6577;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ─── 첨부파일 행 ─── */
.concha-attachment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F1F5;
}
.concha-attachment-row:last-child { border-bottom: none; }
.concha-attachment-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--concha-primary-light, #E8F1FD);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.concha-attachment-icon i {
  font-size: 18px;
  color: var(--concha-primary, #1B6DE0);
}
.concha-attachment-info { flex: 1; min-width: 0; }
.concha-attachment-name {
  font-size: 13px;
  font-weight: 600;
  color: #1A1D26;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.concha-attachment-size {
  font-size: 11px;
  color: #9BA3B5;
  margin-top: 1px;
}
.concha-attachment-dl {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--concha-border, #E8EAF0);
  background: #fff;
  color: var(--concha-primary, #1B6DE0);
  cursor: pointer;
  font-family: inherit;
}
.concha-attachment-dl:active { background: #F7F8FB; }

/* ─── 연락처 카드 (ContactCard) ─── */
.concha-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.concha-contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--concha-primary-light, #E8F1FD);
  color: var(--concha-primary, #1B6DE0);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.concha-contact-info { flex: 1; min-width: 0; }
.concha-contact-name {
  font-size: 14px;
  font-weight: 700;
  color: #1A1D26;
}
.concha-contact-detail {
  font-size: 12px;
  color: #9BA3B5;
  margin-top: 2px;
}
.concha-contact-actions { flex-shrink: 0; }
.concha-contact-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--concha-primary, #1B6DE0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.concha-contact-action-btn:active { opacity: 0.8; }

/* ============================================
   ConCha HOME 대시보드 (모바일)
   ============================================ */
.concha-home-wrap {
  padding: 4px 16px;
  padding-bottom: calc(var(--concha-tab-height, 58px) + var(--concha-tab-safe-bottom, 0px) + 16px);
  background: #F7F8FB;
  min-height: calc(100vh - 56px - var(--concha-tab-height, 58px) - var(--concha-tab-safe-bottom, 0px));
}
/* container-fluid 기본 패딩 제거 (HOME 모바일) */
.mobile-view .concha-home-wrap { margin: 0 -12px; padding-left: 16px; padding-right: 16px; }

/* 인사말 */
.concha-home-greeting {
  padding: 4px 0 12px;
}
.concha-home-greeting-name {
  font-size: 16px;
  font-weight: 800;
  color: #1A1D26;
}
.concha-home-greeting-org {
  font-size: 12px;
  color: #9BA3B5;
  margin-top: 2px;
}

/* 모바일 KPI 요약 그리드 */
.concha-home-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.concha-home-kpi-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border-top: 3px solid transparent;
}
.concha-home-kpi-card--blue { border-top-color: var(--concha-primary); }
.concha-home-kpi-card--green { border-top-color: #0d904f; }
.concha-home-kpi-card--purple { border-top-color: #7c3aed; }
.concha-home-kpi-card--orange { border-top-color: #ea580c; }
.concha-home-kpi-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
  margin-bottom: 4px;
}
.concha-home-kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: #1A1D26;
  line-height: 1.2;
}
.concha-home-kpi-unit {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  margin-left: 1px;
}
.concha-home-kpi-period {
  font-size: 11px;
  color: #9BA3B5;
  margin-top: 4px;
}
.concha-home-kpi-badge {
  display: inline-block;
  background: #dcfce7;
  color: #16a34a;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  margin-right: 2px;
}

/* 퀵액션 2x2 그리드 */
.concha-home-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.concha-home-quick-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(26,29,38,0.04), 0 1px 2px rgba(26,29,38,0.02);
  border: 1px solid #F0F1F5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
.concha-home-quick-card:active {
  transform: scale(0.97);
}
.concha-home-quick-icon {
  font-size: 18px;
  display: block;
  margin-bottom: 6px;
}
.concha-home-quick-icon--primary { color: var(--concha-primary, #1B6DE0); }
.concha-home-quick-icon--purple { color: #7C5CDB; }
.concha-home-quick-icon--green { color: #0EA958; }
.concha-home-quick-icon--orange { color: #E88B0E; }
.concha-home-quick-title {
  font-size: 12px;
  font-weight: 700;
  color: #1A1D26;
}
.concha-home-quick-desc {
  font-size: 10px;
  color: #9BA3B5;
  margin-top: 2px;
}
.concha-home-quick-warn {
  color: #E88B0E;
  font-weight: 700;
}

/* 섹션 타이틀 */
.concha-home-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1A1D26;
  margin-bottom: 8px;
  margin-top: 4px;
}

/* 나의 할 일 피드 */
.concha-home-feed {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.concha-feed-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.concha-feed-row:active {
  background: #f3f4f6;
}
.concha-feed-row + .concha-feed-row {
  border-top: 1px solid #f0f1f3;
}
.concha-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 12px;
}
.concha-feed-dot--blue { background: var(--concha-primary); }
.concha-feed-dot--yellow { background: #eab308; }
.concha-feed-dot--green { background: #16a34a; }
.concha-feed-dot--red { background: #dc2626; }
.concha-feed-dot--gray { background: #9CA3AF; }
.concha-feed-body {
  flex: 1;
  min-width: 0;
}
.concha-feed-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A1D26;
  line-height: 1.3;
}
.concha-feed-count {
  font-weight: 800;
  color: var(--concha-primary);
}
.concha-feed-sub {
  font-size: 12px;
  color: #9BA3B5;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.concha-feed-arrow {
  font-size: 11px;
  color: #c4c8d0;
  margin-left: 8px;
  flex-shrink: 0;
}
.concha-feed-header {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  padding: 12px 16px 4px;
}
.concha-feed-header:first-child {
  padding-top: 8px;
}
.concha-feed-row + .concha-feed-header {
  border-top: 1px solid #f0f1f3;
}

/* 최근 활동 카드 목록 */
.concha-home-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.concha-home-activity-list .concha-transport-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
.concha-home-activity-list .concha-transport-card:active {
  transform: scale(0.98);
}

/* 빈 상태 */
.concha-home-empty {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #F0F1F5;
}

/* 스켈레톤 (HOME 전용) */
.concha-home-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.concha-home-quick-skeleton {
  height: 72px;
}
.concha-home-activity-skeleton {
  height: 120px;
}

/* ============================================
   ConCha MORE HUB (더보기)
   ============================================ */
.concha-more-wrap {
  background: #F7F8FB;
  min-height: 100vh;
  padding-bottom: calc(var(--concha-tab-height, 58px) + var(--concha-tab-safe-bottom, 0px) + 16px);
}

/* 프로필 영역 */
.concha-more-profile {
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #F0F1F5;
  display: flex;
  align-items: center;
  gap: 14px;
}
.concha-more-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--concha-primary-light, #E8F1FD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--concha-primary, #1B6DE0);
  flex-shrink: 0;
}
.concha-more-profile-info {
  flex: 1;
  min-width: 0;
}
.concha-more-profile-name {
  font-size: 15px;
  font-weight: 700;
  color: #1A1D26;
}
.concha-more-profile-role {
  font-size: 11px;
  color: #9BA3B5;
  margin-top: 2px;
}
.concha-more-profile-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: #F7F8FB;
  font-size: 11px;
  font-weight: 600;
  color: #5F6577;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.concha-more-profile-btn:active { opacity: 0.7; }

/* 섹션 타이틀 */
.concha-more-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #9BA3B5;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 16px 8px;
}

/* 3열 그리드 (주요 메뉴 / 고객지원) */
.concha-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px 4px;
}
.concha-more-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(26,29,38,0.04), 0 1px 2px rgba(26,29,38,0.02);
  border: 1px solid #F0F1F5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
.concha-more-grid-item:active {
  transform: scale(0.95);
}
.concha-more-grid-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.concha-more-grid-icon--blue { background: #E8F1FD; color: #1B6DE0; }
.concha-more-grid-icon--green { background: #E7F8EF; color: #0EA958; }
.concha-more-grid-icon--orange { background: #FFF4E5; color: #E88B0E; }
.concha-more-grid-icon--purple { background: #F0EBFA; color: #7C5CDB; }
.concha-more-grid-icon--red { background: #FDEAEC; color: #DC3545; }
.concha-more-grid-label {
  font-size: 11px;
  font-weight: 600;
  color: #1A1D26;
  text-align: center;
}

/* 기타 리스트 */
.concha-more-list {
  margin: 0 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(26,29,38,0.04), 0 1px 2px rgba(26,29,38,0.02);
  border: 1px solid #F0F1F5;
  overflow: hidden;
}
.concha-more-list-item {
  padding: 14px 16px;
  border-bottom: 1px solid #F0F1F5;
  font-size: 13px;
  font-weight: 500;
  color: #1A1D26;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.concha-more-list-item:last-child { border-bottom: none; }
.concha-more-list-item:active { background: #F7F8FB; }
.concha-more-list-item--danger { color: #DC3545; }
.concha-more-list-arrow {
  color: #9BA3B5;
  font-size: 12px;
}

/* 전체 메뉴 아코디언 */
.concha-more-list-item--parent {
  font-weight: 600;
}
.concha-more-list-icon {
  width: 20px;
  text-align: center;
  margin-right: 8px;
  font-size: 13px;
  color: #5F6577;
}
.concha-more-list-chevron {
  font-size: 11px;
  color: #9BA3B5;
  transition: transform 0.25s ease;
}
.concha-more-list-chevron--open {
  transform: rotate(180deg);
}
.concha-more-list-chevron--sm {
  font-size: 10px;
}
/* 서브메뉴 영역 */
.concha-more-submenu {
  background: #F7F8FB;
}
.concha-more-submenu-item {
  padding-left: 28px !important;
  font-size: 13px;
  font-weight: 500;
}
/* 3depth 서브서브메뉴 */
.concha-more-sub-submenu {
  background: #F0F1F5;
}
.concha-more-sub-submenu-item {
  padding-left: 44px !important;
  font-size: 12px;
  font-weight: 400;
  color: #5F6577;
}

/* 버전 정보 */
.concha-more-version {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 10px;
  color: #9BA3B5;
}

/* ============================================
   ConCha 모바일: 뒤로가기 버튼
   ============================================ */
/* ConCha 모바일 뒤로가기 버튼 */
.concha-back-btn {
  display: none;
  background: none;
  border: none;
  color: var(--concha-primary, #1B6DE0);
  font-size: 18px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
body.concha-mobile .concha-back-btn {
  display: flex;
}
.concha-back-btn:active { opacity: 0.6; }

/* ============================================
   뒤로가기 더블백 종료 토스트
   ============================================ */
.concha-back-toast {
  position: fixed;
  bottom: calc(var(--concha-tab-height, 58px) + env(safe-area-inset-bottom, 0px) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.concha-back-toast--hide {
  opacity: 0;
}

/* ============================================
   ConCha 프로필 (EjinMyProfileView 모바일)
   ============================================ */
.concha-profile-hero {
  background: #fff;
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid #F0F1F5;
}
.concha-profile-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--concha-primary-light, #E8F1FD);
  color: var(--concha-primary, #1B6DE0);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.concha-profile-hero-name {
  font-size: 17px;
  font-weight: 700;
  color: #1A1D26;
}
.concha-profile-hero-id {
  font-size: 12px;
  color: #9BA3B5;
  margin-top: 2px;
}
.concha-profile-authority-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.concha-profile-authority-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1A1D26;
}
.concha-profile-authority-icon {
  color: var(--concha-primary, #1B6DE0);
  font-size: 14px;
}
.concha-detail-section-icon {
  font-size: 14px;
}

/* ============================================
   ConCha 태블릿 최적화 (768px 이상)
   ============================================ */

/* ── 공통: 카드 목록 2열 그리드 ── */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .concha-mobile-card-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 20px;
  }
  /* 더보기/로딩/끝표시 → 전체 너비 */
  .concha-mobile-card-layout > .text-center,
  .concha-mobile-card-layout > .concha-skeleton-card,
  .concha-mobile-card-layout > div:last-child:not(.concha-transport-card):not(.concha-vehicle-card) {
    grid-column: 1 / -1;
  }
}

/* 터치 태블릿 (body.mobile-view + 768px 이상) */
@media (min-width: 768px) {
  .mobile-view .concha-mobile-card-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 20px;
  }
  .mobile-view .concha-mobile-card-layout > .text-center,
  .mobile-view .concha-mobile-card-layout > .concha-skeleton-card,
  .mobile-view .concha-mobile-card-layout > div:last-child:not(.concha-transport-card):not(.concha-vehicle-card) {
    grid-column: 1 / -1;
  }
}

/* ── HOME 대시보드 태블릿 ── */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .concha-home-wrap {
    padding: 8px 32px;
    max-width: 800px;
    margin: 0 auto;
  }
  /* KPI: 4열 한 줄 */
  .concha-home-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* 퀵액션: 4열 한 줄 */
  .concha-home-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* 최근 활동: 2열 */
  .concha-home-activity-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (min-width: 768px) {
  .mobile-view .concha-home-wrap {
    padding: 8px 32px;
    max-width: 800px;
    margin: 0 auto;
  }
  .mobile-view .concha-home-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .mobile-view .concha-home-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .mobile-view .concha-home-activity-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ── MoreHub 태블릿 ── */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .concha-more-wrap {
    max-width: 800px;
    margin: 0 auto;
  }
}
@media (min-width: 768px) {
  .mobile-view .concha-more-wrap {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* ── 상세/등록 폼 태블릿 ── */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .concha-detail-wrap {
    max-width: 720px;
    margin: 0 auto;
  }
  /* concha-detail-hero를 포함하는 모바일 상세 영역 (concha-detail-wrap 미사용 뷰 대응) */
  .d-block.d-xl-none:has(.concha-detail-hero) {
    max-width: 720px;
    margin: 0 auto;
  }
  .d-block.d-xl-none:has(.concha-form-body) {
    max-width: 720px;
    margin: 0 auto;
  }
}
@media (min-width: 768px) {
  .mobile-view .concha-detail-wrap {
    max-width: 720px;
    margin: 0 auto;
  }
  .mobile-view .d-block.d-xl-none:has(.concha-detail-hero) {
    max-width: 720px;
    margin: 0 auto;
  }
  .mobile-view .d-block.d-xl-none:has(.concha-form-body) {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* ── 칩 필터 / 필터 액션 태블릿 ── */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .concha-chip-row {
    padding: 8px 20px;
  }
  .concha-filter-actions {
    padding: 8px 20px;
  }
}
@media (min-width: 768px) {
  .mobile-view .concha-chip-row {
    padding: 8px 20px;
  }
  .mobile-view .concha-filter-actions {
    padding: 8px 20px;
  }
}

/* ── 스켈레톤 태블릿 (HOME) ── */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .concha-home-skeleton .concha-home-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) {
  .mobile-view .concha-home-skeleton .concha-home-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════
   ConCha 알림내역 카드 (.concha-noti-*)
   ═══════════════════════════════════════════════════════ */
.concha-noti-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--concha-border);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.concha-noti-card:active {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.concha-noti-card--unread {
  border-left: 3px solid var(--concha-primary);
  background: #F8FBFF;
}
.concha-noti-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.concha-noti-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.concha-noti-card--unread .concha-noti-title {
  color: #111827;
}
.concha-noti-card-body {
  margin-bottom: 8px;
}
.concha-noti-preview {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.concha-noti-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.concha-noti-time {
  font-size: 12px;
  color: #9CA3AF;
}
.concha-noti-time i {
  margin-right: 3px;
}
.concha-noti-link-icon {
  font-size: 12px;
  color: var(--concha-primary);
}

/* 알림 상세 */
.concha-noti-detail-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}
.concha-noti-detail-contents {
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 스켈레톤 */
.concha-noti-card--skeleton {
  pointer-events: none;
  border-left: none;
  background: #fff;
}
.concha-noti-card--skeleton .concha-skeleton-line {
  border-radius: 4px;
}

/* 게시판 댓글 뱃지 */
.concha-bbs-comment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--concha-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* 태블릿 2열 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .concha-mobile-card-layout > .concha-noti-card {
    break-inside: avoid;
  }
}
@media (min-width: 768px) {
  .mobile-view .concha-mobile-card-layout > .concha-noti-card {
    break-inside: avoid;
  }
}
