/* ============================================================
   pc-mod-ship.css  —  출고관리 모듈 레이아웃 override
   규칙: 좌우 한 화면 / 상하 페이지 스크롤 OK / 박스 내부 스크롤 X
   ============================================================ */

/* ─── 1. 가로 스크롤 wrapper 제거 ─────────────────────────── */
/* ship-ready / ship-hist / ship-claim 의 .u-scroll-x 무력화 */
#t-ship .u-scroll-x {
  overflow-x: visible !important;
  overflow: visible !important;
}

/* ─── 2. 출고 준비 테이블 (11컬럼) ────────────────────────── */
#shipReadyTbl {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}
/* 컬럼 폭 압축 — 고정폭이 필요한 컬럼만 */
#shipReadyTbl th,
#shipReadyTbl td {
  padding: 7px 5px !important;
  font-size: 12px !important;
  white-space: nowrap;
}
/* 제품 컬럼(3번째)은 텍스트가 길 수 있으므로 wrap 허용 */
#shipReadyTbl td:nth-child(3) {
  white-space: normal;
  min-width: 80px;
  max-width: 160px;
}
/* 지시번호 */
#shipReadyTbl th:nth-child(1),
#shipReadyTbl td:nth-child(1) { width: 80px; }
/* 거래처 */
#shipReadyTbl th:nth-child(2),
#shipReadyTbl td:nth-child(2) { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
/* 수량 계열 (4~7) */
#shipReadyTbl th:nth-child(4), #shipReadyTbl td:nth-child(4),
#shipReadyTbl th:nth-child(5), #shipReadyTbl td:nth-child(5),
#shipReadyTbl th:nth-child(6), #shipReadyTbl td:nth-child(6),
#shipReadyTbl th:nth-child(7), #shipReadyTbl td:nth-child(7) {
  width: 64px;
  text-align: right;
}
/* 출고예정(8) */
#shipReadyTbl th:nth-child(8),
#shipReadyTbl td:nth-child(8) { width: 82px; }
/* 입고처(9) */
#shipReadyTbl th:nth-child(9),
#shipReadyTbl td:nth-child(9) { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
/* 상태(10) */
#shipReadyTbl th:nth-child(10),
#shipReadyTbl td:nth-child(10) { width: 72px; text-align: center; }
/* 관리(11) */
#shipReadyTbl th:nth-child(11),
#shipReadyTbl td:nth-child(11) { width: 110px; white-space: nowrap; }

/* ─── 3. 출고 이력 테이블 (8컬럼) ─────────────────────────── */
#shipHistTbl {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}
#shipHistTbl th,
#shipHistTbl td {
  padding: 7px 6px !important;
  font-size: 12px !important;
  white-space: nowrap;
}
/* 제품 컬럼 wrap 허용 */
#shipHistTbl td:nth-child(3) {
  white-space: normal;
  min-width: 80px;
  max-width: 180px;
}
/* 관리 컬럼 */
#shipHistTbl td:last-child,
#shipHistTbl th:last-child { white-space: nowrap; }

/* ─── 4. 반품/클레임 테이블 (8컬럼) ──────────────────────── */
#claimTbl {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}
#claimTbl th,
#claimTbl td {
  padding: 7px 6px !important;
  font-size: 12px !important;
}
#claimTbl td:nth-child(6) {  /* 사유 컬럼 */
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── 5. 카드/박스 내부 스크롤 금지 ──────────────────────── */
#t-ship .card {
  overflow: visible !important;
  max-height: none !important;
}

/* ─── 6. 출고 통계 내부 테이블도 전폭 ─────────────────────── */
#shipStatC table.dt {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}

/* ─── 7. 모달은 스크롤 유지 (예외) ───────────────────────── */
/* shipMo, shipDetMo, claimMo 는 .mo > .mb 구조라 영향 없음 */
/* lotDetMo 는 .cmb 에 overflow-y:auto 가 있으므로 유지 */
