/* =============================================
   수입관리 프로그램 - WizGlobal Import System
   전체 화면 고정 + 내부 스크롤 레이아웃
   v2.0 - 테이블 가로 스크롤 완전 재작성
   ============================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
  height: 100%; 
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Malgun Gothic', '맑은 고딕', sans-serif; 
}

/* =============================================
   전체 레이아웃 - viewport 고정
   ============================================= */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 사이드바 */
#sidebar {
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 메인 영역 */
#main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
}

/* 헤더 - 고정 */
#main-header {
  flex-shrink: 0;
}

/* 페이지 콘텐츠 - 스크롤 가능 */
#page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 20px 24px;
  -webkit-overflow-scrolling: touch;
}

/* =============================================
   사이드바 네비게이션 - 세련된 모던 디자인
   ============================================= */
#sidebar::-webkit-scrollbar { width: 3px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.sidebar-logo {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.sidebar-nav {
  padding: 10px 8px 16px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.nav-group { margin-bottom: 2px; }

.nav-group-title {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 7px 12px;
  color: rgba(255,255,255,0.45);
  font-size: 10px; 
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 7px;
  margin: 0 2px;
  white-space: nowrap;
}
.nav-group-title:hover { 
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.03);
}
.nav-group-title.group-active { 
  color: rgba(255,255,255,0.6);
}

.nav-group-title-left {
  display: flex; 
  align-items: center; 
  gap: 8px;
}
.nav-group-title-left i { 
  width: 16px; 
  text-align: center; 
  font-size: 11px;
}
.nav-group-title.group-active .nav-group-title-left i { 
  color: #4ADE80;
}

.nav-group-arrow {
  font-size: 9px;
  transition: transform 0.25s ease;
  opacity: 0.3;
}
.nav-group-arrow.open { 
  transform: rotate(90deg); 
  opacity: 0.6;
}

.nav-group-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  opacity: 0;
}
.nav-group-items.open {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 4px;
}

.nav-item {
  display: flex; 
  align-items: center; 
  gap: 8px;
  padding: 7px 12px 7px 36px;
  margin: 1px 4px;
  border-radius: 7px; 
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item:hover { 
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(74,222,128,0.15) 0%, rgba(34,197,94,0.08) 100%);
  color: #4ADE80;
  font-weight: 600;
}
.nav-item i { 
  width: 15px; 
  text-align: center; 
  font-size: 11px;
  opacity: 0.6;
}
.nav-item.active i { 
  opacity: 1;
  color: #4ADE80;
}

/* 활성 항목 왼쪽 바 인디케이터 */
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: #4ADE80;
}

/* 사이드바 하단 유저 영역 */
.sidebar-user {
  flex-shrink: 0;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
}

/* =============================================
   계정 전환 패널
   ============================================= */
.account-switch-panel {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.account-switch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}
.account-switch-role-badge {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.account-switch-role-badge.admin { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.account-switch-role-badge.manager { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.account-switch-role-badge.staff { background: linear-gradient(135deg, #0891B2, #0E7490); }
.account-switch-role-info h3 {
  color: #fff; font-size: 12px; font-weight: 700; margin: 0; line-height: 1.3;
}
.account-switch-role-info p {
  color: rgba(148,163,184,0.6); font-size: 9px; margin: 0; line-height: 1.3;
}
.switch-select-area {
  padding: 6px 14px 10px;
}
.switch-select-label {
  color: rgba(148,163,184,0.5); font-size: 9px; font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 5px; display: block;
}
.switch-select-row {
  display: flex; align-items: center; gap: 6px;
}
.switch-select {
  flex: 1;
  background: rgba(255,255,255,0.06);
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394A3B8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.switch-select:hover { border-color: rgba(255,255,255,0.2); }
.switch-select:focus { border-color: #22C55E; box-shadow: 0 0 0 1px rgba(34,197,94,0.3); }
.switch-select option { background: #1E293B; color: #E2E8F0; }
.switch-apply-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: #FB923C;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.switch-apply-btn:hover { background: rgba(249,115,22,0.3); }
.switch-data-summary {
  padding: 6px 14px 10px;
}
.switch-data-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 0; color: rgba(148,163,184,0.7); font-size: 10px;
}
.switch-data-row i { width: 14px; text-align: center; font-size: 9px; margin-right: 6px; }
.switch-data-value {
  font-weight: 700; padding: 1px 8px; border-radius: 10px; font-size: 10px;
}
.switch-data-value.green { background: rgba(34,197,94,0.15); color: #4ADE80; }
.switch-data-value.orange { background: rgba(249,115,22,0.15); color: #FB923C; }
.switch-scope-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(249,115,22,0.15); color: #FB923C;
  padding: 2px 8px; border-radius: 10px; font-size: 9px; font-weight: 700;
}
/* v9.2: 주문현황 상태별 건수 */
.switch-status-summary {
  padding: 6px 14px 10px;
  border-top: 1px solid rgba(148,163,184,0.1);
}
.switch-status-label {
  font-size: 9px; color: rgba(148,163,184,0.5); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.switch-status-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.switch-status-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(148,163,184,0.06);
  cursor: pointer; transition: all 0.15s;
}
.switch-status-item:hover {
  background: rgba(148,163,184,0.15);
  transform: translateX(2px);
}
.switch-status-name {
  font-size: 10px; color: rgba(148,163,184,0.7); font-weight: 500;
}
.switch-status-count {
  font-size: 10px; font-weight: 800; padding: 1px 7px;
  border-radius: 8px; min-width: 20px; text-align: center;
}
.switch-status-count.pending {
  background: rgba(249,115,22,0.15); color: #FB923C;
}
.switch-status-count.accepted {
  background: rgba(59,130,246,0.15); color: #60A5FA;
}
.switch-status-count.ordered {
  background: rgba(34,197,94,0.15); color: #4ADE80;
}
.switch-status-count.shipped {
  background: rgba(168,85,247,0.15); color: #C084FC;
}

.switch-active-indicator {
  padding: 6px 14px 8px;
  display: flex; align-items: center; gap: 8px;
}
.switch-active-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
  animation: switch-pulse 2s infinite;
}
@keyframes switch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.switch-active-text {
  color: rgba(148,163,184,0.6); font-size: 9px;
}
.switch-active-text strong {
  color: #22C55E; font-weight: 700;
}
.switch-reset-btn {
  margin-left: auto;
  background: none; border: none; color: rgba(148,163,184,0.4);
  font-size: 9px; cursor: pointer; padding: 2px 6px;
  border-radius: 4px; transition: all 0.2s;
}
.switch-reset-btn:hover { color: #FB923C; background: rgba(249,115,22,0.1); }

/* =============================================
   카드 스타일
   ============================================= */
.card {
  background: white; 
  border-radius: 10px;
  border: 1px solid #E5E8EB; 
  overflow: hidden;
}
.card-header {
  padding: 14px 18px; 
  border-bottom: 1px solid #F0F0F0;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}
.card-header h3 { 
  font-size: 14px; 
  font-weight: 700; 
  color: #191F28; 
}
.card-body { padding: 18px; }

/* 스탯 카드 */
.stat-card {
  background: white; 
  border-radius: 10px; 
  padding: 18px;
  border: 1px solid #E5E8EB;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
}
.stat-value { 
  font-size: 26px; 
  font-weight: 800; 
  color: #191F28; 
  line-height: 1; 
}
.stat-label { 
  font-size: 11px; 
  color: #8B95A1; 
  margin-top: 6px; 
}
.stat-icon {
  width: 38px; 
  height: 38px; 
  border-radius: 10px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 15px;
}

/* =============================================
   테이블 스타일
   ============================================= */
.data-table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 13px; 
}
.data-table thead th {
  background: #F8F9FA; 
  padding: 8px 6px;
  text-align: left; 
  font-weight: 600; 
  color: #4E5968;
  border-bottom: 2px solid #D5DAE0; 
  border-right: 1px solid #E5E8EB;
  white-space: nowrap; 
  font-size: 11.5px;
  letter-spacing: -0.3px;
}
.data-table thead th:last-child {
  border-right: none;
}
.data-table tbody td {
  padding: 8px 6px; 
  border-bottom: 1px solid #E5E8EB;
  border-right: 1px solid #F0F0F0;
  color: #333D4B; 
  vertical-align: middle;
}
.data-table tbody td:last-child {
  border-right: none;
}
.data-table tbody tr:hover { background: #F8FAFB; }
.data-table tbody tr { cursor: pointer; transition: background 0.1s; }

/* =============================================
   상태 뱃지
   ============================================= */
.badge {
  display: inline-flex; 
  align-items: center; 
  gap: 3px;
  padding: 2px 7px; 
  border-radius: 10px; 
  font-size: 10px; 
  font-weight: 600;
  white-space: nowrap;
}
.badge-pending { background: #FFF3E0; color: #E65100; }
.badge-accepted { background: #E3F2FD; color: #1565C0; }
.badge-ordered { background: #E8F5E9; color: #2E7D32; }
.badge-shipped { background: #F3E5F5; color: #7B1FA2; }
.badge-invoiced { background: #E0F2F1; color: #00695C; }
.badge-settled { background: #ECEFF1; color: #37474F; }
.badge-draft { background: #FFF8E1; color: #F57F17; }
.badge-confirmed { background: #E8F5E9; color: #2E7D32; }
.badge-active { background: #E8F5E9; color: #2E7D32; }
.badge-danger { background: #FFEBEE; color: #C62828; }

/* =============================================
   버튼
   ============================================= */
.btn {
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  padding: 7px 14px; 
  border-radius: 7px; 
  font-size: 13px;
  font-weight: 600; 
  cursor: pointer; 
  border: none;
  transition: all 0.15s ease;
}
.btn-primary { background: #03C75A; color: white; }
.btn-primary:hover { background: #02B050; }
.btn-naver { background: #03C75A; color: white; }
.btn-naver:hover { background: #02B050; }
.btn-secondary { background: #F0F2F5; color: #4E5968; }
.btn-secondary:hover { background: #E5E8EB; }
.btn-danger { background: #FF5252; color: white; }
.btn-danger:hover { background: #E53935; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-outline {
  background: transparent; 
  border: 1px solid #D1D5DB; 
  color: #4E5968;
}
.btn-outline:hover { background: #F8F9FA; }
.btn-icon-only {
  background: #F0F2F5; 
  color: #4E5968; 
  padding: 6px 10px;
  border: 1px solid #D1D5DB; 
  border-radius: 6px;
}
.btn-icon-only:hover { background: #E5E8EB; }
.btn-excel-upload {
  background: #1B7CED;
  color: white;
  border: none;
}
.btn-excel-upload:hover { background: #1565C0; }

/* =============================================
   입력 폼
   ============================================= */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; 
  font-size: 12px; 
  font-weight: 600;
  color: #4E5968; 
  margin-bottom: 5px;
}
.form-input {
  width: 100%; 
  padding: 8px 11px; 
  border: 1px solid #D1D5DB;
  border-radius: 7px; 
  font-size: 13px; 
  color: #333D4B;
  transition: border-color 0.15s;
}
.form-input:focus { 
  outline: none; 
  border-color: #03C75A; 
  box-shadow: 0 0 0 3px rgba(3,199,90,0.1); 
}
.form-select {
  width: 100%; 
  padding: 8px 11px; 
  border: 1px solid #D1D5DB;
  border-radius: 7px; 
  font-size: 13px; 
  color: #333D4B;
  background: white; 
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: #03C75A; }

/* 탭 */
.tab-bar { 
  display: flex; 
  border-bottom: 2px solid #E5E8EB; 
  margin-bottom: 16px; 
}
.tab-item {
  padding: 9px 18px; 
  font-size: 13px; 
  font-weight: 600;
  color: #8B95A1; 
  cursor: pointer; 
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; 
  transition: all 0.15s;
}
.tab-item:hover { color: #4E5968; }
.tab-item.active { color: #03C75A; border-bottom-color: #03C75A; }

/* 페이지 제목 */
.page-title {
  font-size: 18px; 
  font-weight: 800; 
  color: #191F28;
  margin-bottom: 3px;
}
.page-subtitle { font-size: 12px; color: #8B95A1; }

/* 토스트 알림 */
.toast {
  position: fixed; 
  bottom: 20px; 
  right: 20px;
  padding: 12px 18px; 
  border-radius: 10px;
  background: #191F28; 
  color: white; 
  font-size: 13px;
  z-index: 200; 
  opacity: 0; 
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* 금액 표시 */
.amount { 
  font-family: 'Pretendard', -apple-system, sans-serif; 
  font-weight: 600; 
  font-variant-numeric: tabular-nums; 
  letter-spacing: -0.01em; 
}
.amount-positive { color: #03C75A; }
.amount-negative { color: #FF5252; }

/* =============================================
   글로벌 스크롤바
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8B95A1; }

.table-scroll { overflow-x: auto; }
.table-scroll::-webkit-scrollbar { height: 4px; }

.chart-container { position: relative; height: 200px; }

/* 로딩 스피너 */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid #E5E8EB; border-top-color: #03C75A;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 빈 상태 */
.empty-state {
  text-align: center; padding: 50px 20px; color: #8B95A1;
}
.empty-state i { font-size: 42px; margin-bottom: 14px; opacity: 0.3; }
.empty-state p { font-size: 13px; }

.drag-over { border: 2px dashed #03C75A !important; background: rgba(3,199,90,0.05) !important; }

.progress-bar { height: 6px; background: #E5E8EB; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #03C75A; border-radius: 3px; transition: width 0.3s; }

/* =============================================
   상품등록관리 - 필터/검색 바
   ============================================= */
.product-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: white;
  border: 1px solid #E5E8EB;
  border-radius: 8px;
  margin-bottom: 10px;
  gap: 8px;
}
.filter-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-select {
  padding: 6px 10px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 12px;
  color: #333D4B;
  background: white;
  cursor: pointer;
  min-width: 110px;
}
.filter-select:focus { outline: none; border-color: #03C75A; }
.filter-search-box {
  display: flex;
  align-items: center;
  background: #F5F6F8;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 0 8px;
  min-width: 200px;
}
.filter-search-box input {
  border: none; background: transparent;
  padding: 6px 4px; font-size: 12px; color: #333D4B;
  width: 100%;
}
.filter-search-box input:focus { outline: none; }
.filter-count {
  font-size: 12px;
  color: #8B95A1;
  white-space: nowrap;
}
.filter-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: #D1D5DB;
  margin: 0 3px;
}

/* v9.0: 기간 검색 필터 */
.filter-date-range {
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-date-input {
  padding: 5px 8px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 11px;
  color: #333D4B;
  background: white;
  width: 130px;
}
.filter-date-input:focus { outline: none; border-color: #03C75A; }

/* =============================================
   상품 그리드 카드 + 테이블 (고정컬럼 + 스크롤)
   v2.0 - 완전 재작성: table-layout:auto, CSS변수 기반 sticky
   ============================================= */

/* =============================================
   수입상품관리 테이블 - v4.4 좌측고정 + 우측스크롤 분리
   ============================================= */

/* 전체 래퍼 */
.split-table-wrap {
  border: 1px solid #D5DAE0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

/* 좌우 분리 컨테이너 */
.split-table-container {
  display: flex;
  max-height: calc(100vh - 320px);
}

/* 좌측 고정 영역 */
.split-fixed {
  flex-shrink: 0;
  overflow: hidden;
  border-right: 2px solid #D5DAE0;
  box-shadow: 3px 0 8px -2px rgba(0,0,0,0.06);
  z-index: 2;
}

/* 우측 스크롤 영역 */
.split-scroll {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  position: relative;
}

/* 스크롤바 숨기기 - 세로만 표시 */
.split-scroll::-webkit-scrollbar {
  width: 4px;
  height: 0;
}
.split-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.split-scroll::-webkit-scrollbar-thumb {
  background: #C8D6E5;
  border-radius: 4px;
}
.split-scroll::-webkit-scrollbar-thumb:hover {
  background: #8B95A1;
}

/* Firefox 세로 스크롤바 */
.split-scroll {
  scrollbar-width: thin;
  scrollbar-color: #C8D6E5 transparent;
}

/* ★ 가로 스크롤 전용 트랙 - 테이블 하단에 별도 배치 */
.split-scroll-track {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 12px 8px 12px;
  background: linear-gradient(180deg, #F8FAFB 0%, #EEF1F4 100%);
  border-top: 1px solid #D5DAE0;
}

/* ★ 가로 스크롤바 디자인 - 세련된 컴팩트 스타일 */
.split-scroll-track::-webkit-scrollbar {
  height: 10px;
}
.split-scroll-track::-webkit-scrollbar-track {
  background: #E8ECF0;
  border-radius: 10px;
  margin: 0 8px;
}
.split-scroll-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #6BC98A 0%, #03C75A 50%, #6BC98A 100%);
  border-radius: 10px;
  border: 1.5px solid #E8ECF0;
  transition: background 0.2s;
}
.split-scroll-track::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #4BB86E 0%, #02A74D 50%, #4BB86E 100%);
  border-color: #D5DAE0;
}
.split-scroll-track::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox 가로 스크롤바 */
.split-scroll-track {
  scrollbar-width: auto;
  scrollbar-color: #4BB86E #E8ECF0;
}

/* 스크롤 트랙 내부 더미 - 스크롤 크기 동기화 */
.split-scroll-track-inner {
  height: 1px;
  pointer-events: none;
}

/* 공통 테이블 스타일 */
.split-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
  width: 100%;
}

/* 고정 테이블 컬럼 폭 */
.split-table-fixed {
  width: 348px;
  min-width: 348px;
  table-layout: fixed;
}
.split-table-fixed colgroup col:nth-child(1) { width: 40px; }
.split-table-fixed colgroup col:nth-child(2) { width: 88px; }
.split-table-fixed colgroup col:nth-child(3) { width: 130px; }
.split-table-fixed colgroup col:nth-child(4) { width: 44px; }

/* 스크롤 테이블 */
.split-table-scroll {
  table-layout: auto;
  min-width: 1200px;
}

/* 헤더 */
.split-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #F8F9FA;
  padding: 6px 4px;
  text-align: left;
  font-weight: 700;
  color: #4E5968;
  font-size: 10.5px;
  border-bottom: 2px solid #D5DAE0;
  border-right: 1px solid #E5E8EB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}
.split-table thead th:last-child { border-right: none; }

/* 본문 셀 */
.split-table tbody td {
  padding: 4px 4px;
  border-bottom: 1px solid #EDF0F3;
  border-right: 1px solid #F2F4F6;
  color: #333D4B;
  vertical-align: middle;
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
}
.split-table tbody td:last-child { border-right: none; }

/* 짝수행 */
.split-table tbody tr:nth-child(even) td { background: #FAFBFC; }

/* hover 동기화 */
.split-table tbody tr.row-hover td,
.split-table tbody tr:hover td { background: #F0F8FF !important; }

/* 상품코드 링크 */
.product-code-link {
  color: #1565C0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
}
.product-code-link:hover {
  text-decoration: underline;
  color: #0D47A1;
}

.link-icon {
  color: #1565C0;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.15s;
}
.link-icon:hover { color: #0D47A1; }

/* =============================================
   인라인 편집
   ============================================= */
.editable {
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s;
}
.editable:hover {
  background-color: #F0FFF4 !important;
}
.editable.editing {
  background-color: #FFFFF0 !important;
  box-shadow: inset 0 0 0 2px #03C75A;
  padding: 2px !important;
}
.editable.cell-saved {
  animation: cellSaveFlash 1s ease;
}
@keyframes cellSaveFlash {
  0% { background-color: #C8E6C9; }
  100% { background-color: transparent; }
}

.inline-edit-input {
  width: 100%;
  padding: 5px 7px;
  border: 2px solid #03C75A;
  border-radius: 4px;
  font-size: 12px;
  color: #333D4B;
  background: #FFFFF0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.15);
}
.inline-edit-input:focus {
  border-color: #02B050;
  box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.25);
}

.cell-text {
  display: block;
  padding: 1px 0;
  min-height: 18px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   페이지네이션
   ============================================= */
.product-pagination {
  padding: 10px 18px;
  border-top: 1px solid #E5E8EB;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: white;
  color: #4E5968;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover:not(.active):not(.disabled) {
  background: #F8F9FA;
  border-color: #9CA3AF;
}
.page-btn.active {
  background: #03C75A;
  color: white;
  border-color: #03C75A;
  font-weight: 700;
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-dots {
  display: inline-flex;
  align-items: center;
  padding: 0 3px;
  color: #8B95A1;
  font-size: 12px;
}

/* =============================================
   엑셀 업로드 영역
   ============================================= */
.upload-dropzone {
  border: 2px dashed #D1D5DB;
  border-radius: 10px;
  padding: 36px 18px;
  text-align: center;
  background: #FAFBFC;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-dropzone:hover {
  border-color: #03C75A;
  background: #F0FFF4;
}
.upload-icon {
  font-size: 40px;
  color: #D1D5DB;
  margin-bottom: 10px;
}
.upload-dropzone:hover .upload-icon { color: #03C75A; }
.upload-text {
  font-size: 13px;
  font-weight: 600;
  color: #4E5968;
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 11px;
  color: #8B95A1;
}
.upload-dropzone.compact { padding: 20px 14px; }

/* =============================================
   정렬 스타일
   ============================================= */
.sortable, .sortable-generic {
  cursor: pointer !important;
  user-select: none;
}
.sortable:hover, .sortable-generic:hover {
  background-color: #EDF2F7 !important;
}
.sort-icon {
  font-size: 9px;
  opacity: 0.3;
  margin-left: 2px;
  transition: opacity 0.15s;
}
.sort-icon.active {
  opacity: 1;
  color: #03C75A;
}
.sortable:hover .sort-icon,
.sortable-generic:hover .sort-icon {
  opacity: 0.6;
}

/* =============================================
   이미지 썸네일 / 모달
   ============================================= */
.product-thumb {
  width: 26px; height: 26px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #E5E8EB;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFBFC;
  margin: 0 auto;
  transition: border-color 0.15s;
}
.product-thumb:hover {
  border-color: #03C75A;
}
.thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: #D1D5DB;
  font-size: 11px;
}
.image-preview-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #FAFBFC;
  border: 1px solid #E5E8EB;
  border-radius: 8px;
  overflow: hidden;
}
.image-preview-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.reg-image-preview-box {
  width: 72px; height: 72px;
  border: 1px solid #E5E8EB;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFBFC;
  overflow: hidden;
  flex-shrink: 0;
}
.reg-image-preview-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.detail-image-preview {
  width: 56px; height: 56px;
  border: 1px solid #E5E8EB;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFBFC;
  overflow: hidden;
  flex-shrink: 0;
}
.detail-preview-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* =============================================
   이미지 업로드 탭
   ============================================= */
.img-upload-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #E5E8EB;
}
.img-tab {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #8B95A1;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.img-tab:hover { color: #4E5968; }
.img-tab.active { color: #03C75A; border-bottom-color: #03C75A; }
.img-tab-content { padding-top: 10px; }
.img-file-dropzone {
  border: 2px dashed #D1D5DB;
  border-radius: 8px;
  padding: 20px 14px;
  text-align: center;
  background: #FAFBFC;
  cursor: pointer;
  transition: all 0.2s;
}
.img-file-dropzone:hover { border-color: #03C75A; background: #F0FFF4; }
.img-file-dropzone-sm {
  border: 1px dashed #D1D5DB;
  border-radius: 7px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
  background: #FAFBFC;
}
.img-file-dropzone-sm:hover { border-color: #03C75A; background: #F0FFF4; }

/* =============================================
   통합 보드 테이블 - 명확한 상하/좌우 구분선
   ============================================= */
.board-card {
  border: 1px solid #D5DAE0;
  border-radius: 8px;
  overflow: hidden;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.board-table thead th {
  background: #F8F9FA;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #4E5968;
  border-bottom: 2px solid #D5DAE0;
  border-right: 1px solid #E5E8EB;
  white-space: nowrap;
  font-size: 12px;
}
.board-table thead th:last-child {
  border-right: none;
}
/* NO 열 중앙 정렬 */
.board-table thead th.col-no,
.board-table tbody td.col-no {
  text-align: center;
  width: 48px;
  min-width: 48px;
  color: #8B95A1;
  font-size: 12px;
}
.board-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #E5E8EB;
  border-right: 1px solid #F0F0F0;
  color: #333D4B;
  vertical-align: middle;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-table tbody td:last-child {
  border-right: none;
}
.board-table tbody tr { cursor: pointer; transition: background 0.1s; }
.board-table tbody tr:hover { background: #EDF2F7; }
.board-table tbody tr:nth-child(even) { background: #FCFCFD; }
.board-table tbody tr:nth-child(even):hover { background: #EDF2F7; }

/* HQ 상세 모달 테이블 헤더 */
.hq-th {
  padding: 8px 4px;
  font-weight: 700;
  color: #334155;
  border-bottom: 2px solid #94A3B8;
  border-right: 1px solid #CBD5E1;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.hq-th:last-child { border-right: none; }
#hq-detail-table tbody td {
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-pagination {
  padding: 10px 18px;
  border-top: 1px solid #E5E8EB;
  display: flex;
  justify-content: center;
}

/* =============================================
   모달
   ============================================= */
#modal-container {
  max-height: 90vh;
  overflow-y: auto;
}

/* =============================================
   전체 메뉴 팝업 (햄버거 메뉴)
   ============================================= */
.mega-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(2px);
}
.mega-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}
.mega-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 100vh;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 6px 0 24px rgba(0,0,0,0.3);
}
.mega-menu-panel.show {
  transform: translateX(0);
}
.mega-menu-header {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-menu-header h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mega-menu-close {
  background: rgba(255,255,255,0.06);
  border: none;
  color: #94A3B8;
  font-size: 15px;
  cursor: pointer;
  padding: 7px 9px;
  border-radius: 7px;
  transition: all 0.2s;
}
.mega-menu-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.mega-menu-body {
  padding: 14px;
}
.mega-menu-group {
  margin-bottom: 6px;
}
.mega-menu-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mega-menu-group-title i {
  width: 18px;
  text-align: center;
  font-size: 12px;
}
.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 40px;
  margin: 1px 0;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}
.mega-menu-item:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
}
.mega-menu-item.current {
  background: rgba(74,222,128,0.1);
  color: #4ADE80;
  font-weight: 600;
}
.mega-menu-item.current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: #4ADE80;
}
.mega-menu-item i {
  width: 16px;
  text-align: center;
  font-size: 11px;
}

.mega-menu-panel::-webkit-scrollbar { width: 3px; }
.mega-menu-panel::-webkit-scrollbar-track { background: transparent; }
.mega-menu-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* =============================================
   모바일 사이드바 오버레이 + 닫기 버튼
   ============================================= */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 39;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.active {
  display: block;
}
.sidebar-close-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #94A3B8;
  font-size: 14px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  margin-left: auto;
  transition: all 0.15s;
}
.sidebar-close-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.mobile-menu-btn { display: none !important; }
.desktop-menu-btn { display: flex !important; }
.btn-label { margin-left: 4px; }

/* =============================================
   반응형 - 태블릿 (768px ~ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  #sidebar { 
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  #sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .sidebar-close-btn { display: block; }
  .mobile-menu-btn { display: flex !important; }
  .desktop-menu-btn { display: none !important; }
  .header-divider { display: none !important; }
  #main-area { margin-left: 0 !important; }
  
  /* 필터바 - 태블릿 */
  .product-filter-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-controls {
    flex-wrap: wrap;
    gap: 6px;
  }
  .filter-search-box {
    min-width: 160px;
  }
}

/* =============================================
   반응형 - 모바일 (<= 768px)
   ============================================= */
@media (max-width: 768px) {
  /* 기본 레이아웃 */
  html, body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #app {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  #main-area {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  #page-content {
    overflow: visible;
    padding: 12px 10px;
    min-height: calc(100vh - 50px);
  }
  
  /* 헤더 */
  #main-header {
    padding: 0 12px !important;
    height: 48px !important;
    position: sticky;
    top: 0;
    z-index: 30;
  }
  #breadcrumb {
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
  
  /* 페이지 타이틀 */
  .page-title { font-size: 15px; }
  .page-subtitle { font-size: 11px; }
  
  /* 스탯 카드 - 2열 그리드 */
  .stat-card {
    padding: 10px 12px !important;
  }
  .stat-value { font-size: 18px !important; }
  .stat-label { font-size: 10px !important; }
  .stat-icon { width: 28px !important; height: 28px !important; font-size: 12px !important; }
  
  /* 카드 */
  .card-header { padding: 10px 12px; }
  .card-header h3 { font-size: 13px; }
  .card-body { padding: 12px; }
  
  /* 필터바 - 모바일 세로 스택 */
  .product-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px;
    gap: 8px;
  }
  .filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
  }
  .filter-select {
    min-width: 0;
    flex: 1;
    min-width: 90px;
    font-size: 11px;
    padding: 6px 6px;
  }
  .filter-search-box {
    min-width: 0;
    width: 100%;
    order: -1;
  }
  .filter-search-box input {
    font-size: 13px;
    padding: 8px 4px;
  }
  .filter-divider { display: none; }
  .filter-count {
    font-size: 11px;
    text-align: center;
    padding-top: 4px;
  }
  
  /* 필터바 버튼들 - 줄바꿈 */
  .filter-controls .btn-sm {
    padding: 6px 8px;
    font-size: 11px;
    gap: 3px;
    white-space: nowrap;
  }
  .filter-controls .btn-sm .mr-1 { margin-right: 2px; }
  /* 모바일에서 버튼 텍스트 숨기고 아이콘만 표시 */
  .filter-controls .btn-sm span.btn-text-mobile-hide {
    display: none;
  }
  
  /* 테이블 - 모바일 */
  .split-table-container {
    max-height: none;
  }
  .split-table-wrap {
    border-radius: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* 고정영역 축소 - 모바일 */
  .split-fixed {
    min-width: auto;
    box-shadow: 2px 0 6px -1px rgba(0,0,0,0.08);
  }
  .split-table-fixed {
    width: 272px !important;
    min-width: 272px !important;
  }
  
  /* 셀 패딩 축소 */
  .split-table thead th {
    padding: 6px 4px;
    font-size: 10px;
  }
  .split-table tbody td {
    padding: 5px 4px;
    font-size: 10px;
  }
  
  /* 이미지 썸네일 축소 */
  .product-thumb {
    width: 26px; height: 26px;
  }
  
  /* 스크롤 트랙 */
  .split-scroll-track {
    padding: 4px 8px;
  }
  .split-scroll-track::-webkit-scrollbar { height: 8px; }
  .split-scroll-track::-webkit-scrollbar-thumb {
    min-width: 40px;
  }
  .scroll-track-spacer {
    width: 272px !important;
  }
  
  /* 페이지네이션 */
  .product-pagination { padding: 8px 10px; }
  .page-btn { min-width: 28px; height: 28px; font-size: 11px; }
  
  /* 버튼 */
  .btn { padding: 6px 10px; font-size: 12px; gap: 4px; }
  .btn-sm { padding: 5px 8px; font-size: 11px; }
  
  /* 모달 - 모바일 전체화면 */
  #modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-responsive {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 92vh !important;
    min-height: 50vh;
  }
  #modal-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 92vh !important;
  }
  /* 모달 내부 그리드 - 1열 스택 */
  #modal-container .grid {
    display: flex !important;
    flex-direction: column !important;
  }
  #modal-container .grid.grid-cols-2,
  #modal-container .grid.grid-cols-3,
  #modal-container .grid.grid-cols-4,
  #modal-container .grid.grid-cols-5 {
    grid-template-columns: 1fr !important;
  }
  /* 모달 내부 패딩 축소 */
  #modal-container .p-6 { padding: 16px !important; }
  #modal-container .p-5 { padding: 14px !important; }
  #modal-container h2 { font-size: 15px !important; }
  
  /* 모바일 유틸 */
  .mobile-hide { display: none !important; }
  .btn-sm-mobile { padding: 6px 10px !important; font-size: 12px !important; }
  .btn-sm-mobile span { font-size: 11px; }
  .btn-label { display: none; }
  .btn .btn-label { display: none; }
  
  /* 토스트 */
  .toast {
    bottom: 10px;
    right: 10px;
    left: 10px;
    font-size: 12px;
    padding: 10px 14px;
    text-align: center;
  }
  
  /* 업로드 드롭존 */
  .upload-dropzone {
    padding: 24px 14px;
  }
  .upload-dropzone.compact { padding: 16px 12px; }
  .upload-icon { font-size: 30px; }
  .upload-text { font-size: 12px; }
  
  /* 빈 상태 */
  .empty-state { padding: 30px 15px; }
  .empty-state i { font-size: 32px; }
  
  /* 메가메뉴 모바일 */
  .mega-menu-panel {
    width: 100%;
  }
  
  /* 데이터 테이블 (주문, 인보이스 등) */
  .data-table { font-size: 11px; }
  .data-table thead th { padding: 8px 6px; font-size: 10px; }
  .data-table tbody td { padding: 8px 6px; }
  
  /* 보드 테이블 */
  .board-table { font-size: 11px; }
  .board-table thead th { padding: 8px 8px; font-size: 10px; }
  .board-table tbody td { padding: 8px 8px; font-size: 11px; }
  
  /* 폼 */
  .form-input { padding: 9px 10px; font-size: 14px; } /* 모바일 키보드 줌 방지 */
  .form-select { padding: 9px 10px; font-size: 14px; }
  .form-label { font-size: 12px; }
  
  /* 탭 */
  .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-item { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  
  /* 차트 */
  .chart-container { height: 160px; }
  
  /* 인라인 편집 */
  .inline-edit-input { font-size: 13px; padding: 6px; }
}

/* =============================================
   반응형 - 소형 모바일 (<= 480px)
   ============================================= */
@media (max-width: 480px) {
  #page-content { padding: 8px 6px; }
  
  .stat-value { font-size: 18px; }
  .stat-card { padding: 10px; }
  
  .product-filter-bar { padding: 6px 8px; }
  .filter-select { font-size: 10px; padding: 5px 4px; min-width: 75px; }
  .filter-controls .btn-sm { padding: 5px 6px; font-size: 10px; }
  
  /* 모달 전체화면 */
  .modal-responsive {
    max-height: 95vh !important;
    border-radius: 12px 12px 0 0 !important;
  }
  #modal-container .p-6 { padding: 12px !important; }
  #modal-container h2 { font-size: 14px !important; }
  
  .page-title { font-size: 14px; }
  .page-btn { min-width: 26px; height: 26px; font-size: 10px; padding: 0 5px; }
  
  /* 테이블 더 축소 */
  .split-table thead th { padding: 5px 3px; font-size: 9px; }
  .split-table tbody td { padding: 4px 3px; font-size: 9px; }
  .product-thumb { width: 22px; height: 22px; }
}

/* =============================================
   삭제 모드 스타일
   ============================================= */
.btn-danger-outline {
  background: transparent;
  border: 1px solid #FCA5A5;
  color: #DC2626;
}
.btn-danger-outline:hover {
  background: #FEF2F2;
  border-color: #F87171;
}
.delete-selected td {
  background: #FEF2F2 !important;
}
.delete-selected:hover td {
  background: #FEE2E2 !important;
}
.delete-checkbox {
  cursor: pointer;
}
#btn-delete-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================
   v7.0 컬럼 표시 설정 패널
   ============================================= */
.column-settings-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.col-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}
.col-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
}
.col-panel-count {
  display: inline-block;
  background: #F0FDF4;
  color: #03C75A;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 8px;
}
.col-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.col-panel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.col-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  white-space: nowrap;
  user-select: none;
}
.col-chk-label:hover {
  background: #DCFCE7;
}
.col-chk-label.col-chk-off {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
}
.col-chk-label.col-chk-off:hover {
  background: #F1F5F9;
}
.col-chk-label input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: #03C75A;
  cursor: pointer;
  margin: 0;
}
#btn-column-settings.active {
  background: #03C75A !important;
  color: #fff !important;
  border-color: #03C75A !important;
}

@media (max-width: 768px) {
  .column-settings-panel {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  .col-panel-header {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .col-panel-grid {
    gap: 3px 5px;
  }
  .col-chk-label {
    font-size: 11px;
    padding: 2px 6px;
  }
  .col-chk-label input[type="checkbox"] {
    width: 12px;
    height: 12px;
  }
}

/* =============================================
   v7.1 예치금 현황 (주문 상세 모달)
   ============================================= */
.deposit-section {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
}
.deposit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
.deposit-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
}
.deposit-title i {
  color: #03C75A;
  font-size: 14px;
}
.deposit-partner {
  font-weight: 500;
  color: #64748B;
  font-size: 12px;
  background: #E2E8F0;
  padding: 1px 8px;
  border-radius: 8px;
}
.deposit-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.deposit-badge-done {
  background: #DCFCE7;
  color: #166534;
}
.deposit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.deposit-item {
  background: #FFFFFF;
  border: 1px solid #E8ECF0;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.deposit-item-label {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 4px;
  white-space: nowrap;
}
.deposit-sub {
  font-size: 9px;
  color: #94A3B8;
  display: block;
  margin-top: 1px;
}
.deposit-item-value {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
}
.deposit-balance .deposit-item-value {
  color: #03C75A;
}
.deposit-minus {
  border-color: #FED7AA;
  background: #FFFBEB;
}
.deposit-minus .deposit-item-value {
  color: #EA580C;
}
.deposit-result {
  border-color: #BBF7D0;
  background: #F0FDF4;
}
.deposit-result .deposit-item-value {
  color: #166534;
  font-size: 15px;
}
.deposit-danger {
  border-color: #FECACA !important;
  background: #FEF2F2 !important;
}
.deposit-danger .deposit-item-value {
  color: #DC2626 !important;
}
.deposit-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.deposit-deduct-btn {
  background: #7C3AED !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  padding: 7px 16px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  transition: background 0.2s;
}
.deposit-deduct-btn:hover {
  background: #6D28D9 !important;
}
.deposit-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #DC2626;
  font-weight: 500;
  background: #FEF2F2;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #FECACA;
}
.deposit-warning i {
  font-size: 13px;
}

/* v7.2: 예치금 수정 가능 input */
.deposit-edit-input {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  color: #EA580C;
  background: #FFF;
  margin-top: 2px;
  transition: border-color 0.2s;
}
.deposit-edit-input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.15);
}
.deposit-edit-input:disabled {
  background: #F1F5F9;
  color: #94A3B8;
  cursor: not-allowed;
}
.deposit-item-sub {
  font-size: 9px;
  color: #94A3B8;
  margin-bottom: 1px;
}

/* v7.2: 차감 승인 요청 버튼 (1단계) */
.deposit-approve-btn {
  background: #7C3AED !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  padding: 7px 16px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  transition: all 0.2s;
}
.deposit-approve-btn:hover {
  background: #6D28D9 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(124,58,237,0.3);
}

/* v7.2: 차감 승인 확인 패널 (2단계) */
.deposit-confirm-panel {
  background: linear-gradient(135deg, #FDF2F8 0%, #FAF5FF 100%);
  border: 2px solid #C084FC;
  border-radius: 10px;
  padding: 14px 16px;
  animation: slideDown 0.3s ease;
  width: 100%;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.deposit-confirm-title {
  font-size: 13px;
  font-weight: 700;
  color: #7C3AED;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.deposit-confirm-title i {
  font-size: 15px;
}
.deposit-confirm-detail {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #E9D5FF;
}
.deposit-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
  color: #475569;
}
.deposit-confirm-val {
  color: #DC2626;
  font-weight: 600;
}
.deposit-confirm-total {
  border-top: 1px solid #E2E8F0;
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #1E293B;
}
.deposit-confirm-total span:last-child {
  color: #DC2626;
  font-size: 14px;
}
.deposit-confirm-after {
  font-weight: 600;
  color: #166534;
}
.deposit-confirm-after span:last-child {
  color: #03C75A;
  font-weight: 700;
}
.deposit-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.deposit-cancel-btn {
  background: #F1F5F9 !important;
  color: #64748B !important;
  border: 1px solid #CBD5E1 !important;
  font-weight: 600;
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  transition: all 0.15s;
}
.deposit-cancel-btn:hover {
  background: #E2E8F0 !important;
}
.deposit-execute-btn {
  background: #DC2626 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  padding: 6px 16px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.deposit-execute-btn:hover {
  background: #B91C1C !important;
  box-shadow: 0 3px 8px rgba(220,38,38,0.3);
}
.deposit-execute-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* v7.2: 차감 완료 안내 */
.deposit-done-detail {
  width: 100%;
}
.deposit-done-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #166534;
  font-weight: 500;
  background: #F0FDF4;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #BBF7D0;
}
.deposit-done-info i {
  font-size: 13px;
  color: #22C55E;
}

/* v7.2: 주문 상품 인라인 편집 input */
.oi-edit {
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 11px;
  color: #334155;
  background: #FAFBFC;
  transition: border-color 0.15s;
}
.oi-edit:focus {
  outline: none;
  border-color: #03C75A;
  background: #FFF;
  box-shadow: 0 0 0 2px rgba(3,199,90,0.12);
}
.oi-right {
  text-align: right;
}
.oi-edit:hover {
  border-color: #94A3B8;
}

@media (max-width: 768px) {
  .deposit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .deposit-item-value {
    font-size: 12px;
  }
  .deposit-result .deposit-item-value {
    font-size: 13px;
  }
  .deposit-section {
    padding: 10px 12px;
  }
  .deposit-deduct-btn,
  .deposit-approve-btn {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }
  .deposit-confirm-panel {
    padding: 10px 12px;
  }
  .deposit-confirm-actions {
    flex-direction: column;
  }
  .deposit-execute-btn,
  .deposit-cancel-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .deposit-edit-input {
    font-size: 12px;
    padding: 3px 6px;
  }
  .oi-edit {
    font-size: 10px;
    padding: 2px 4px;
  }
}

/* 예치금 관리 - 상세 패널 반응형 */
@media (max-width: 1024px) {
  #deposit-detail-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 420px !important;
    z-index: 60;
    background: #F8FAFC;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    padding: 12px;
  }
}

#deposits-tbody tr:hover {
  background: #F0FDF4 !important;
}

.deposit-row-active {
  background: #F0FDF4 !important;
  box-shadow: inset 3px 0 0 #22C55E;
}

/* =============================================
   Mywiple 창고 - 시장조사 페이지 디자인
   ============================================= */

/* 페이지 컨테이너 */
.mr-page {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* 페이지 헤더 */
.mr-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #F1F5F9;
  background: linear-gradient(135deg, #FAFBFF 0%, #F8FAFC 100%);
}
.mr-title-area {}
.mr-title {
  font-size: 18px;
  font-weight: 800;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.mr-title i {
  color: #3B82F6;
  font-size: 18px;
}
.mr-subtitle {
  font-size: 12px;
  color: #94A3B8;
  margin: 4px 0 0;
  font-weight: 400;
}

/* 액션바 */
.mr-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  gap: 12px;
  flex-wrap: wrap;
}
.mr-action-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mr-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 버튼 스타일 */
.mr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.mr-btn-add {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.mr-btn-add:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37,99,235,0.3);
}
.mr-btn-request {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(5,150,105,0.3);
}
.mr-btn-request:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(5,150,105,0.3);
}
.mr-btn-delete-bulk {
  background: #FFFFFF;
  color: #EF4444;
  border: 2px solid #FCA5A5 !important;
  box-shadow: none;
}
.mr-btn-delete-bulk:hover {
  background: #FEF2F2;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(239,68,68,0.2);
}

/* 검색박스 */
.mr-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 0 12px;
  min-width: 220px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mr-search-box:focus-within {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.mr-search-box i {
  color: #94A3B8;
  font-size: 13px;
}
.mr-search-box input {
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
  color: #334155;
  width: 100%;
  outline: none;
}
.mr-search-box input::placeholder {
  color: #CBD5E1;
}

/* 건수 배지 */
.mr-count-badge {
  font-size: 12px;
  color: #64748B;
  background: #EFF6FF;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid #BFDBFE;
}
.mr-count-badge b {
  color: #2563EB;
  font-weight: 700;
}

/* 테이블 래퍼 */
.mr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 테이블 */
.mr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

/* 컬럼 너비 정의 */
.mr-col-check { width: 42px; text-align: center; }
.mr-col-menu  { width: 100px; }
.mr-col-thumb { width: 64px; text-align: center; }
.mr-col-name  { width: 150px; }
.mr-col-memo  { width: 150px; }
.mr-col-link  { width: 50px; text-align: center; }
.mr-col-option { width: 100px; }
.mr-col-size  { width: 80px; }
.mr-col-pkg   { width: 80px; }
.mr-col-qty   { width: 80px; text-align: right; }
.mr-col-price { width: 90px; text-align: right; }
.mr-col-total { width: 100px; text-align: right; }

/* 테이블 헤더 */
.mr-table thead th {
  background: #F1F5F9;
  padding: 10px 12px;
  font-weight: 700;
  color: #475569;
  font-size: 12px;
  border-bottom: 2px solid #CBD5E1;
  border-right: 1px solid #E2E8F0;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.mr-table thead th:last-child {
  border-right: none;
}

/* 테이블 바디 */
.mr-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #F1F5F9;
  border-right: 1px solid #F8FAFC;
  color: #334155;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mr-table tbody td:last-child {
  border-right: none;
}
.mr-table tbody tr {
  transition: background 0.12s ease;
}
.mr-table tbody tr:hover {
  background: #F0F7FF !important;
}
.mr-table tbody tr:nth-child(even) {
  background: #FAFBFC;
}
.mr-table tbody tr:nth-child(even):hover {
  background: #F0F7FF !important;
}

/* 체크박스 */
.mr-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3B82F6;
  cursor: pointer;
}

/* 메뉴 배지 */
.mr-menu-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* 썸네일 */
.mr-thumb-cell {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  margin: 0 auto;
  transition: border-color 0.15s, transform 0.15s;
}
.mr-thumb-cell:hover {
  border-color: #3B82F6;
  transform: scale(1.08);
}
.mr-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mr-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #D1D5DB;
  font-size: 16px;
}

/* 상품명 */
.mr-product-name {
  font-weight: 600;
  color: #1E293B;
  font-size: 13px;
}

/* 조사메모 */
.mr-memo-text {
  color: #64748B;
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 링크 버튼 */
.mr-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #3B82F6;
  font-size: 12px;
  transition: all 0.15s;
  text-decoration: none;
}
.mr-link-btn:hover {
  background: #DBEAFE;
  color: #1D4ED8;
  transform: scale(1.1);
}

/* 옵션 텍스트 */
.mr-option-text {
  font-size: 12px;
  color: #64748B;
  background: #F8FAFC;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
}

/* 금액 표시 */
.mr-col-qty, .mr-col-price, .mr-col-total {
  font-variant-numeric: tabular-nums;
  font-family: 'Pretendard', -apple-system, sans-serif;
}
.mr-total-amount {
  font-weight: 700;
  color: #EA580C;
}
.mr-total-amount.high {
  color: #DC2626;
  background: #FEF2F2;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 없는 데이터 */
.mr-no-data {
  color: #D1D5DB;
  font-size: 12px;
}

/* 관리 버튼 */
.mr-action-btns {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.mr-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s ease;
}
.mr-edit-btn {
  background: #EFF6FF;
  color: #3B82F6;
}
.mr-edit-btn:hover {
  background: #DBEAFE;
  color: #1D4ED8;
  transform: scale(1.1);
}
.mr-del-btn {
  background: #FEF2F2;
  color: #F87171;
}
.mr-del-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
  transform: scale(1.1);
}

/* 빈 상태 */
.mr-empty-row td {
  padding: 0 !important;
  border: none !important;
}
.mr-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94A3B8;
}
.mr-empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.25;
}
.mr-empty-state p {
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  margin: 0 0 6px;
}
.mr-empty-state span {
  font-size: 12px;
  color: #94A3B8;
}

/* 인라인 편집 */
.mr-editable {
  cursor: pointer;
  position: relative;
  transition: background-color 0.12s ease;
  border: 1px solid transparent;
}
.mr-editable:hover {
  background-color: #EFF6FF !important;
  border-color: #BFDBFE;
}
.mr-editable:hover::after {
  content: '\f304';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  color: #60A5FA;
  opacity: 0.85;
  background: #EFF6FF;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.mr-editable.mr-editing {
  background-color: #FFFFF0 !important;
  border: 2px solid #3B82F6 !important;
  border-radius: 4px;
  padding: 3px 5px !important;
}
.mr-editable.mr-editing:hover::after {
  display: none;
}
.mr-editable.mr-cell-saved {
  animation: mrCellFlash 1s ease;
}
.mr-col-total.mr-cell-saved {
  animation: mrCellFlash 1s ease;
}
@keyframes mrCellFlash {
  0% { background-color: #BBF7D0; }
  100% { background-color: transparent; }
}

.mr-inline-input {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #3B82F6;
  border-radius: 6px;
  font-size: 14px;
  color: #1E293B;
  background: #FFFFF0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  font-family: inherit;
  min-height: 36px;
  line-height: 1.4;
}
.mr-inline-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}
.mr-inline-input[type="number"] {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.mr-inline-select {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #3B82F6;
  border-radius: 6px;
  font-size: 14px;
  color: #1E293B;
  background: #FFFFF0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
}

.mr-cell-text {
  display: block;
  padding: 3px 4px;
  min-height: 24px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px dashed transparent;
  border-radius: 4px;
  transition: border-color 0.15s;
}
.mr-editable:hover .mr-cell-text {
  border-color: #93C5FD;
}

/* 썸네일 편집 팝오버 */
.mr-thumb-editable {
  cursor: pointer;
  position: relative;
}
.mr-thumb-editable::after {
  content: '\f030';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 8px;
  color: #fff;
  background: rgba(59,130,246,0.8);
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.mr-thumb-editable:hover::after {
  opacity: 1;
}

.mr-thumb-popover {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 12px;
  width: 220px;
}
.mr-thumb-pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.mr-thumb-pop-header button {
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}
.mr-thumb-pop-header button:hover {
  background: #F1F5F9;
  color: #475569;
}
.mr-thumb-pop-preview {
  width: 100%;
  height: 120px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  margin-bottom: 8px;
}
.mr-thumb-pop-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 11px;
  color: #334155;
  margin-bottom: 6px;
  outline: none;
  transition: border-color 0.15s;
}
.mr-thumb-pop-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}
.mr-thumb-pop-file {
  margin-bottom: 8px;
}
.mr-thumb-pop-file label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px dashed #D1D5DB;
  border-radius: 6px;
  font-size: 11px;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
  background: #FAFBFC;
}
.mr-thumb-pop-file label:hover {
  border-color: #3B82F6;
  color: #3B82F6;
  background: #EFF6FF;
}
.mr-thumb-pop-save {
  width: 100%;
  padding: 7px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.mr-thumb-pop-save:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

/* 수입의뢰서 상세 테이블 인라인 편집 */
#ir-detail-table .mr-editable {
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}
#ir-detail-table .mr-editable:hover {
  background-color: #EFF6FF !important;
  border-color: #BFDBFE;
}
#ir-detail-table .mr-editable:hover::after {
  content: '\f304';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 8px;
  color: #60A5FA;
  opacity: 0.85;
  background: #EFF6FF;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
#ir-detail-table .mr-editable.mr-editing {
  background-color: #FFFFF0 !important;
  border: 2px solid #3B82F6 !important;
  border-radius: 4px;
  padding: 2px 4px !important;
}
#ir-detail-table .mr-editable.mr-editing:hover::after {
  display: none;
}
#ir-detail-table .mr-editable .mr-cell-text {
  padding: 2px 4px;
  min-height: 22px;
  border: 1px dashed transparent;
  border-radius: 3px;
  transition: border-color 0.15s;
}
#ir-detail-table .mr-editable:hover .mr-cell-text {
  border-color: #93C5FD;
}
.ir-inline-hint {
  font-size: 11px;
  color: #3B82F6;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
}
.ir-inline-hint i {
  font-size: 13px;
}

/* 반응형 - 시장조사 */
@media (max-width: 1024px) {
  .mr-table {
    table-layout: auto;
    min-width: 900px;
  }
}

@media (max-width: 768px) {
  .mr-page-header {
    padding: 16px 16px 12px;
  }
  .mr-title {
    font-size: 15px;
  }
  .mr-action-bar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .mr-action-left {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mr-search-box {
    min-width: 0;
    width: 100%;
    order: 3;
  }
  .mr-btn {
    font-size: 12px;
    padding: 7px 12px;
  }
  .mr-btn span {
    display: none;
  }
  .mr-count-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .mr-table {
    table-layout: auto;
    min-width: 800px;
  }
  .mr-table thead th {
    padding: 8px;
    font-size: 11px;
  }
  .mr-table tbody td {
    padding: 8px;
    font-size: 12px;
  }
  .mr-thumb-cell {
    width: 36px;
    height: 36px;
  }
}

/* =============================================
   수입의뢰서 작성 - 액션 버튼 바
   ============================================= */
.ir-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.ir-action-new {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.28);
}
.ir-action-new:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.ir-action-submit {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5,150,105,0.28);
  opacity: 0.45;
  pointer-events: none;
}
.ir-action-submit.active {
  opacity: 1;
  pointer-events: auto;
}
.ir-action-submit.active:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.35);
}
.ir-action-delete {
  background: #fff;
  color: #EF4444;
  border: 2px solid #FCA5A5;
  box-shadow: none;
  opacity: 0.45;
  pointer-events: none;
}
.ir-action-delete.active {
  opacity: 1;
  pointer-events: auto;
}
.ir-action-delete.active:hover {
  background: #FEF2F2;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}

/* HQ 상세 테이블 헤더 공통 스타일 */
.hq-th {
  padding: 8px 5px;
  font-weight: 700;
  color: #3730A3;
  border-bottom: 2px solid #818CF8;
  border-right: 1px solid #C7D2FE;
  font-size: 10px;
  white-space: nowrap;
  line-height: 1.3;
}
.hq-th:last-child {
  border-right: none;
}

/* =============================================
   수입신청서 관리 v5.0 - 전면 리디자인
   ============================================= */

/* 페이지 헤더 */
.im-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

/* 필터 바 */
.im-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 14px;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* 목록 테이블 카드 */
.im-table-card {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* 목록 테이블 */
.im-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 860px;
}
.im-list-table thead th {
  padding: 11px 12px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  font-weight: 700;
  color: #475569;
  font-size: 12px;
  border-bottom: 2px solid #CBD5E1;
  border-right: 1px solid #E2E8F0;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.im-list-table thead th:last-child { border-right: none; }

/* 목록 행 */
.im-list-row {
  cursor: pointer;
  transition: all 0.12s ease;
}
.im-list-row:hover { background: #F0F7FF !important; }
.im-list-row:nth-child(even) { background: #FAFBFD; }
.im-list-row:nth-child(even):hover { background: #F0F7FF !important; }
.im-row-pending { border-left: 4px solid #F59E0B !important; }
.im-row-pending:hover { border-left-color: #D97706 !important; }

/* 목록 셀 */
.im-list-td {
  padding: 12px 12px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #F1F5F9;
  vertical-align: middle;
  color: #334155;
}
.im-list-td:last-child { border-right: none; }

/* 컬럼별 스타일 */
.im-col-no { text-align: center; font-weight: 600; color: #94A3B8; font-size: 12px; width: 44px; }
.im-col-status { text-align: center; width: 110px; }
.im-col-code { width: 18%; }
.im-col-member { width: 26%; }
.im-col-count { text-align: center; width: 68px; }
.im-col-amount { text-align: right; width: 14%; }
.im-col-deposit { text-align: right; width: 11%; font-weight: 700; color: #1E293B; }
.im-col-date { text-align: center; font-size: 12px; color: #475569; width: 96px; }

/* 상태 뱃지 */
.im-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.im-status-badge i { font-size: 9px; }

/* 타입 칩 */
.im-type-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-right: 6px;
}
.im-order-code {
  font-weight: 800;
  color: #1D4ED8;
  font-size: 13px;
  vertical-align: middle;
}

/* 회원정보 */
.im-member-info { min-width: 0; }
.im-member-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.im-member-top strong { font-size: 13px; color: #1E293B; }
.im-type-label {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid;
}
.im-member-mid {
  font-size: 11px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.im-member-bot { font-size: 10px; color: #94A3B8; }

/* 숫자 */
.im-count-num { font-size: 15px; font-weight: 800; color: #1E293B; }
.im-count-unit { font-size: 10px; color: #94A3B8; margin-left: 2px; }
.im-amount-krw { font-size: 13px; font-weight: 800; color: #1D4ED8; }
.im-amount-cny { font-size: 10px; color: #EA580C; margin-top: 2px; }
.im-deposit-warn { color: #EF4444 !important; }
.im-warn-icon { font-size: 9px; color: #EF4444; margin-left: 2px; }
.im-date-done { color: #059669; font-weight: 700; }
.im-no-val { color: #CBD5E1; }

/* =============================================
   수입신청서 상세 모달 v5.0
   ============================================= */
.im-detail-modal {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 1900px;
  margin: 0 16px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 헤더 */
.im-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  border-bottom: 2px solid #DBEAFE;
  flex-shrink: 0;
}
.im-detail-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.im-detail-title {
  font-size: 15px;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
}
.im-detail-title i { color: #2563EB; margin-right: 6px; }
.im-detail-code {
  font-size: 14px;
  font-weight: 700;
  color: #1D4ED8;
  background: #DBEAFE;
  padding: 3px 12px;
  border-radius: 6px;
}
.im-detail-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 15px;
  transition: all 0.15s;
}
.im-detail-close:hover { background: #E2E8F0; color: #475569; }

/* 상태 스텝 바 */
.im-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #FAFBFC;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
  gap: 0;
  overflow-x: auto;
}
.im-step {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.im-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #FFF;
  flex-shrink: 0;
  transition: all 0.2s;
}
.im-step-label {
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  margin-left: 5px;
  margin-right: 4px;
}
.im-step-line {
  width: 30px;
  height: 2px;
  margin: 0 4px;
  border-radius: 1px;
  flex-shrink: 0;
}
.im-step-current .im-step-dot {
  box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
  transform: scale(1.15);
}
.im-step-current .im-step-label { color: #1E293B; font-weight: 800; }
.im-step-done .im-step-label { color: #059669; }
.im-step-future .im-step-dot { opacity: 0.5; }

/* 정보 카드 */
.im-info-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 14px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.im-info-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
}
.im-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 13px;
  flex-shrink: 0;
}
.im-info-label { font-size: 10px; color: #94A3B8; font-weight: 500; margin-bottom: 1px; }
.im-info-val { font-size: 13px; font-weight: 700; color: #1E293B; }

/* 편집 안내 */
.im-edit-notice {
  margin: 10px 16px 8px;
  padding: 8px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  font-size: 11px;
  color: #1E40AF;
  flex-shrink: 0;
}
.im-edit-notice i { margin-right: 5px; }

/* 상품 목록 본문 */
.im-detail-body {
  flex: 1;
  overflow: auto;
  padding: 0 16px 6px;
}

/* 상세 테이블 */
.im-detail-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
  min-width: 1780px;
}
.im-dt-th {
  padding: 9px 7px;
  font-weight: 700;
  color: #334155;
  background: linear-gradient(180deg, #F1F5F9 0%, #E8ECF1 100%);
  border-bottom: 2px solid #94A3B8;
  border-right: 1px solid #CBD5E1;
  font-size: 11px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}
.im-dt-th:last-child { border-right: none; }
.im-dt-fixed {
  position: sticky !important;
  z-index: 12 !important;
}
.im-dt-th.im-dt-fixed { z-index: 14 !important; background: #E8ECF1; }
.im-dt-th-cat { width: 72px; }
.im-dt-th-edit { color: #92400E; background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 100%) !important; }
.im-dt-th-calc { color: #3730A3; background: linear-gradient(180deg, #E0E7FF 0%, #C7D2FE 100%) !important; }

/* 상세 테이블 행 */
.im-dt-row { transition: background 0.1s; }
.im-dt-row:hover { background: #F0F7FF !important; }
.im-dt-row-alt { background: #F8FAFC; }
.im-dt-row-alt:hover { background: #F0F7FF !important; }

/* 상세 테이블 셀 */
.im-dt-td {
  padding: 7px 7px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #F1F5F9;
  font-size: 11.5px;
  color: #334155;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: inherit;
}
.im-dt-td:last-child { border-right: none; }
.im-dt-td.im-dt-fixed { background: #FFF; }
.im-dt-row-alt .im-dt-td.im-dt-fixed { background: #F8FAFC; }
.im-dt-td-cat { font-size: 10.5px; color: #64748B; }
.im-dt-td-formula {
  text-align: right;
  color: #6366F1;
  background: #F5F3FF !important;
  cursor: not-allowed;
}
.im-row-num { font-weight: 600; color: #94A3B8; font-size: 11px; }
.im-product-code { font-weight: 700; color: #059669; font-size: 11px; }
.im-product-name { font-weight: 700; color: #1E293B; font-size: 11.5px; }
.im-link-icon { color: #3B82F6; font-size: 10px; transition: color 0.15s; }
.im-link-icon:hover { color: #1D4ED8; }

/* 편집 가능 셀 */
.im-cell-editable {
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
}
.im-cell-editable:hover {
  background: #FFFBEB !important;
}
.im-cell-editable:hover::after {
  content: '\f304';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 7px;
  color: #F59E0B;
  opacity: 0.7;
}
.im-cell-editing {
  background: #FFFFF0 !important;
}
.im-inline-input {
  width: 100%;
  padding: 4px 6px;
  font-size: 11px;
  border: 2px solid #818CF8;
  border-radius: 5px;
  outline: none;
  background: #FFFFF0;
  color: #1E293B;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}
.im-inline-input:focus { border-color: #6366F1; }
.im-cell-saved {
  animation: imCellFlash 1s ease;
}
@keyframes imCellFlash {
  0% { background: #BBF7D0 !important; }
  100% { background: transparent; }
}

/* 합계 행 */
.im-dt-foot {
  background: linear-gradient(180deg, #FFF7ED 0%, #FEF3C7 100%);
  font-weight: 800;
}
.im-dt-foot-label {
  padding: 10px 8px;
  text-align: right;
  color: #92400E;
  font-size: 11px;
  border-top: 2px solid #F59E0B;
}
.im-dt-foot-label i { margin-right: 4px; }
.im-dt-foot-val {
  padding: 10px 8px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
  border-top: 2px solid #F59E0B;
}

/* 하단 푸터 */
.im-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-top: 2px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 0 0 16px 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}
.im-footer-summary { font-size: 12px; color: #64748B; }
.im-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.im-status-prev-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #94A3B8;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.im-status-prev-btn:hover { background: #E2E8F0; }
.im-status-prev-btn i { font-size: 10px; }
.im-status-next-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  color: #FFF;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.im-status-next-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.im-status-next-btn i { font-size: 11px; }
.im-complete-label {
  font-size: 12px;
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.im-close-btn {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  background: #FFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.im-close-btn:hover { background: #F1F5F9; }

/* 상세 모달 반응형 */
@media (max-width: 768px) {
  .im-detail-modal { margin: 0; border-radius: 12px 12px 0 0; max-height: 95vh; }
  .im-detail-header { padding: 10px 14px; }
  .im-detail-title { font-size: 13px; }
  .im-info-cards { grid-template-columns: repeat(2, 1fr); padding: 10px 14px; gap: 8px; }
  .im-info-card { padding: 8px 10px; }
  .im-info-icon { width: 28px; height: 28px; font-size: 11px; }
  .im-info-val { font-size: 12px; }
  .im-steps-bar { padding: 8px 12px; }
  .im-step-dot { width: 22px; height: 22px; font-size: 8px; }
  .im-step-label { font-size: 8px; }
  .im-step-line { width: 16px; }
  .im-detail-footer { padding: 10px 14px; }
  .im-status-next-btn { padding: 7px 14px; font-size: 12px; }
}
