/* ================================================================
   pc-mod-prod.css  —  생산관리 모듈 레이아웃 override
   담당 모듈: mes-plan(t-plan), mes-proc-log, mes-outsource, t-worker
   규칙: 좌우 한 화면 / 상하 페이지 스크롤 OK / 카드·박스 내부 스크롤 X
   예외: .mo-ov/.mo 모달 내부 스크롤은 유지
   ================================================================ */

/* ── 1. 카드/래퍼 내부 스크롤 제거 ─────────────────────────── */
#pg-mes-proc-log .card,
#pg-mes-outsource .card {
  max-height: none !important;
  overflow: visible !important;
}

/* t-plan 영역 KPI/그리드 래퍼 */
#t-plan #planPriority,
#t-plan #planGrid {
  max-height: none !important;
  overflow: visible !important;
}

/* plan-card 내부 콘텐츠 스크롤 제거 (JS 생성 카드 내 item 영역) */
#t-plan .plan-card {
  overflow: visible !important;
}

/* ── 2. 가로 스크롤 wrapper 무력화 ─────────────────────────── */
/* 생산관리 섹션에 u-scroll-x / dt-scroll 이 있을 경우 대비 */
#pg-mes-proc-log .u-scroll-x,
#pg-mes-outsource .u-scroll-x,
#t-plan .u-scroll-x,
#t-worker .u-scroll-x {
  overflow-x: visible !important;
  overflow: visible !important;
}

#pg-mes-proc-log .dt-scroll,
#pg-mes-outsource .dt-scroll,
#t-plan .dt-scroll,
#t-worker .dt-scroll {
  overflow-x: visible !important;
  overflow: visible !important;
}

/* ── 3. 공정실적 테이블 (procLogTbl, 9컬럼) 압축 ──────────── */
#procLogTbl {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}
#procLogTbl th,
#procLogTbl td {
  padding: 7px 6px !important;
  font-size: 12px !important;
  white-space: nowrap;
}
/* 비고 컬럼은 wrap 허용 */
#procLogTbl td:nth-child(8),
#procLogTbl th:nth-child(8) {
  white-space: normal;
  min-width: 60px;
  max-width: 140px;
}

/* ── 4. 외주관리 테이블 (osTbl, 10컬럼) 압축 ──────────────── */
#osTbl {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}
#osTbl th,
#osTbl td {
  padding: 7px 5px !important;
  font-size: 12px !important;
  white-space: nowrap;
}
/* 업체명 컬럼 wrap 허용 */
#osTbl td:nth-child(4),
#osTbl th:nth-child(4) {
  white-space: normal;
  min-width: 60px;
  max-width: 120px;
}

/* ── 5. t-worker 공정 카드 그리드 (JS 생성 HTML) ───────────── */
/* workerMonArea 는 grid이므로 가로 넘침 없음, 높이 제한만 제거 */
#workerMonArea {
  max-height: none !important;
  overflow: visible !important;
}
/* 각 공정 카드 (JS에서 생성) 내부 콘텐츠 div: overflow-y:auto 제거를
   JS(mes-worker.js)에서 이미 제거됨. CSS에서 추가 보호 */
#workerMonArea > div {
  overflow: visible !important;
}
#workerMonArea > div > div:last-child {
  max-height: none !important;
  overflow: visible !important;
}

/* ── 6. 생산계획 KPI/plan-kpi wrap 허용 ────────────────────── */
#t-plan #planPriority > div {
  flex-wrap: wrap;
}
