76ba2eb8bf
전역 border-box 가 없어 height:100% + padding/border 가 고정 행 높이를 넘어 아래 주와 겹쳤다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1509 lines
59 KiB
CSS
1509 lines
59 KiB
CSS
/* 쿠팡 밀크런 — DESIGN.md 토큰 준수 (흰 배경 / 검정·회색 / 10·14px radius / 카드 16px) */
|
|
|
|
.cpg { display: flex; flex-direction: column; gap: 16px; }
|
|
.cpg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
|
/* 맨 오른쪽으로 밀기 (수정 버튼) */
|
|
.cpg-push-right { margin-left: auto; }
|
|
/* 달력 상단 설정 버튼 그룹 — 우측 정렬 */
|
|
.cpg-settings-btns { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
|
|
/* 액션바를 달력 레이아웃(좌:달력 1fr / 우:리스트 320)과 같은 그리드로
|
|
→ 설정 버튼이 달력 컬럼 오른쪽 끝에 정렬 */
|
|
.cpg-actions-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 320px;
|
|
gap: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.cpg-actions-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
@media (max-width: 980px) {
|
|
.cpg-actions-grid { grid-template-columns: 1fr; }
|
|
.cpg-actions-spacer { display: none; }
|
|
}
|
|
|
|
/* ── 레이아웃: 왼쪽 큰 달력 + 오른쪽 리스트 ── */
|
|
.cpg-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 320px;
|
|
gap: 16px;
|
|
align-items: stretch;
|
|
flex: 1 1 auto; min-height: 0; /* 남은 높이 채움 → 문서 스크롤 방지 */
|
|
}
|
|
@media (max-width: 980px) { .cpg-layout { grid-template-columns: 1fr; } }
|
|
|
|
.cpg-cal-card, .cpg-list-card { padding: 16px; }
|
|
.cpg-cal-card { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
|
|
.cpg-list-card { min-height: 0; overflow-y: auto; }
|
|
|
|
.cpg-cal-head {
|
|
display: flex; align-items: center; gap: 10px;
|
|
margin-bottom: 12px; flex-shrink: 0;
|
|
}
|
|
.cpg-cal-title { font-size: 18pt; font-weight: 600; letter-spacing: -0.45px; margin: 0; }
|
|
.cpg-nav-btn { min-width: 36px; padding: 4px 10px; font-size: 18pt; line-height: 1; }
|
|
|
|
.cpg-cal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
grid-template-rows: auto repeat(6, 1fr); /* 요일행 auto + 6주 균등 분할 */
|
|
gap: 6px;
|
|
flex: 1 1 auto; min-height: 0;
|
|
}
|
|
.cpg-cal-wd {
|
|
text-align: center; font-size: 15px; font-weight: 600;
|
|
color: var(--color-midtone-gray); padding: 6px 0;
|
|
}
|
|
.cpg-sun { color: var(--color-callout-red); }
|
|
.cpg-sat { color: #2b5bc2; }
|
|
|
|
.cpg-cal-cell {
|
|
display: flex; flex-direction: column; gap: 4px;
|
|
min-height: 0; padding: 8px; overflow: hidden;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 10px;
|
|
background: #fff;
|
|
transition: border-color .12s, box-shadow .12s;
|
|
}
|
|
.cpg-cal-cell:hover { border-color: var(--color-midtone-gray); }
|
|
.cpg-out { background: var(--color-ghost-gray); }
|
|
.cpg-out .cpg-cal-day { color: var(--color-midtone-gray); }
|
|
.cpg-today { border-color: var(--color-deep-black); }
|
|
.cpg-selected { box-shadow: 0 0 0 2px var(--color-deep-black); border-color: var(--color-deep-black); }
|
|
.cpg-cal-day { font-size: 17px; font-weight: 600; }
|
|
/* 일요일/공휴일 빨강, 토요일 파랑 (당월 셀 우선, 전후월은 옅게) */
|
|
.cpg-red .cpg-cal-day { color: var(--color-callout-red); }
|
|
.cpg-blue .cpg-cal-day { color: #2b5bc2; }
|
|
.cpg-out.cpg-red .cpg-cal-day { color: #e3a59b; }
|
|
.cpg-out.cpg-blue .cpg-cal-day { color: #9db4dd; }
|
|
.cpg-cal-badges { display: flex; flex-direction: column; gap: 3px; }
|
|
.cpg-mini { font-size: 12px; padding: 2px 7px; align-self: flex-start; }
|
|
|
|
/* ── 오른쪽 리스트 ── */
|
|
.cpg-list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
|
|
.cpg-list-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
|
|
.cpg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
.cpg-list-item { border: 1px solid var(--color-subtle-ash); border-radius: 10px; }
|
|
.cpg-list-link { display: block; padding: 10px 12px; }
|
|
.cpg-list-link:hover { background: var(--color-ghost-gray); border-radius: 10px; }
|
|
.cpg-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
.cpg-list-meta { font-size: 12px; margin-top: 4px; }
|
|
.cpg-empty { padding: 16px 0; }
|
|
|
|
/* 선택일 출고 hover 툴팁 (마우스 따라다님) */
|
|
.cpg-hover-tip {
|
|
position: fixed; z-index: 60; pointer-events: none;
|
|
background: var(--color-deep-black); color: #fff;
|
|
border-radius: 10px; padding: 8px 10px;
|
|
min-width: 160px; max-width: 280px;
|
|
box-shadow: 0 6px 20px rgba(0,0,0,.22);
|
|
font-size: 12px;
|
|
}
|
|
.cpg-tip-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
|
|
.cpg-tip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cpg-tip-qty { font-weight: 600; flex: 0 0 auto; }
|
|
.cpg-tip-empty { color: #d4d4d4; }
|
|
|
|
/* ── 폼 ── */
|
|
.cpg-form-card { padding: 16px; margin-bottom: 16px; }
|
|
|
|
/* 공통 헤더(좌) + 품목 라인(우) 2열 */
|
|
/* form 이 .cpg(남은 높이) 안에서 세로로 채우도록 */
|
|
.cpg > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
|
|
.cpg-form-2col {
|
|
display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch;
|
|
flex: 1 1 auto; min-height: 0;
|
|
}
|
|
/* 공통 헤더: 너비 450 고정 */
|
|
.cpg-form-head { flex: 0 0 450px; width: 450px; min-width: 0; margin-bottom: 0; align-self: flex-start; }
|
|
/* 품목 라인: 너비 900 고정, 높이는 가용 영역 채움, 내부 스크롤 */
|
|
.cpg-form-lines {
|
|
flex: 0 0 900px; width: 900px; height: 100%; min-width: 0; margin-bottom: 0;
|
|
display: flex; flex-direction: column; overflow: hidden;
|
|
}
|
|
@media (max-width: 1400px) {
|
|
.cpg-form-lines { flex-basis: auto; width: 100%; }
|
|
}
|
|
@media (max-width: 940px) {
|
|
.cpg-form-head { flex-basis: 100%; width: 100%; }
|
|
}
|
|
/* 라인 테이블 영역만 스크롤 */
|
|
.cpg-lines-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
|
|
/* 제목행: 제목 + 설명 + (우측) 추가/삭제 버튼 */
|
|
.cpg-lines-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.cpg-lines-btns { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }
|
|
|
|
/* 저장/취소 — 공통 헤더 카드 하단에 위치(우측 라인 수와 무관) */
|
|
.cpg-form-actions { margin-top: 16px; }
|
|
.cpg-card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
|
|
.cpg-card-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
|
|
|
|
.cpg-header-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, 185px);
|
|
gap: 12px 16px;
|
|
}
|
|
/* 작성일·출고일·센터입고일·입고센터·출고방식·작업자 입력 185px 고정
|
|
(.cpg .erp-field > .erp-input width:100% 보다 특이도 높게) */
|
|
.cpg .cpg-header-grid .erp-field > .erp-input,
|
|
.cpg .cpg-header-grid .erp-field > .erp-select {
|
|
width: 185px; max-width: 185px; min-width: 185px; box-sizing: border-box;
|
|
}
|
|
.cpg-rule-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: 12px 16px; align-items: end;
|
|
}
|
|
/* 그리드 항목 겹침 방지: 칸이 줄어들 때 내용이 밖으로 넘치지 않게 */
|
|
.cpg-header-grid .erp-field,
|
|
.cpg-rule-grid .erp-field { min-width: 0; }
|
|
.cpg .erp-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
|
|
.cpg .erp-field > span { font-size: 12px; color: var(--color-midtone-gray); }
|
|
/* 입력란이 칸 너비를 넘지 않도록 (date/select 포함) */
|
|
.cpg .erp-field > .erp-input,
|
|
.cpg .erp-field > .erp-select,
|
|
.cpg .erp-field > textarea.erp-input { width: 100%; max-width: 100%; box-sizing: border-box; }
|
|
.cpg-full { grid-column: 1 / -1; }
|
|
|
|
/* 검정 배경 버튼 글자는 항상 흰색 (안전 보강) */
|
|
.cpg .erp-btn-primary, .cpg .erp-btn-primary:visited { color: var(--color-canvas-white); }
|
|
|
|
.cpg-inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
|
|
.cpg-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
|
|
.cpg-icon-btn {
|
|
border: 0; background: none; cursor: pointer;
|
|
font-family: inherit;
|
|
font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 4px;
|
|
color: var(--color-midtone-gray);
|
|
}
|
|
.cpg-icon-btn:hover { background: var(--color-subtle-ash); color: var(--color-rich-black); }
|
|
.cpg-icon-btn.is-danger:hover { background: var(--color-subtle-ash); color: var(--color-callout-red); }
|
|
|
|
.cpg-btn-sm { padding: 3px 8px; font-size: 12px; flex: 0 0 auto; }
|
|
|
|
/* ── 라인 테이블 ── */
|
|
.cpg-lines td { vertical-align: middle; }
|
|
.cpg-lines th.cpg-check-col,
|
|
.cpg-lines td.cpg-check-col {
|
|
width: 36px; text-align: center;
|
|
padding-left: 0; padding-right: 0; vertical-align: middle;
|
|
}
|
|
.cpg-check-col input { display: block; margin: 0 auto; cursor: pointer; }
|
|
.cpg-lines .cpg-name-sel { width: 100%; min-width: 160px; }
|
|
/* 폭 고정: 제품코드 140px, 수량·입수량 60px */
|
|
.cpg-lines .cpg-code { width: 140px; min-width: 140px; box-sizing: border-box; }
|
|
.cpg-lines .cpg-qty,
|
|
.cpg-lines .cpg-upb { width: 60px; min-width: 60px; box-sizing: border-box; }
|
|
.cpg-lines .cpg-memo { width: 100%; min-width: 120px; box-sizing: border-box; }
|
|
.cpg-line-calc { font-size: 13px; color: var(--color-midtone-gray); white-space: nowrap; }
|
|
.cpg-line-calc.cpg-warn { color: var(--color-callout-red); }
|
|
.cpg-line-del { cursor: pointer; }
|
|
|
|
/* ── 상세 ── */
|
|
.cpg-detail-grid {
|
|
display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 12px; margin: 0;
|
|
}
|
|
.cpg-detail-grid dt { font-size: 12px; color: var(--color-midtone-gray); }
|
|
.cpg-detail-grid dd { margin: 2px 0 0; font-size: 14px; }
|
|
|
|
/* ── 설정(제품명) 2열 레이아웃 ── */
|
|
.cpg-prod-layout {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px; align-items: flex-start;
|
|
}
|
|
/* 미라네 주방 상품: 폭 500 / 높이 900 고정, 내부 스크롤 */
|
|
.cpg-prod-left {
|
|
width: 500px; height: 900px;
|
|
display: flex; flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
/* 등록된 제품명: 폭 680 / 높이 900 고정, 내부 스크롤 (가로 스크롤 없음) */
|
|
.cpg-prod-right {
|
|
width: 680px; height: 900px;
|
|
display: flex; flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
@media (max-width: 1240px) {
|
|
.cpg-prod-left, .cpg-prod-right { width: 100%; }
|
|
}
|
|
|
|
.cpg-src-list {
|
|
flex: 1 1 auto; min-height: 0; overflow-y: auto;
|
|
border: 1px solid var(--color-subtle-ash); border-radius: 10px;
|
|
}
|
|
/* 등록 목록 테이블 스크롤 영역 (카드 높이에서 헤더 제외하고 채움) */
|
|
.cpg-reg-scroll {
|
|
flex: 1 1 auto; min-height: 0; overflow-y: auto;
|
|
}
|
|
.cpg-src-item {
|
|
display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
|
|
padding: 8px 12px; cursor: pointer;
|
|
border-bottom: 1px solid var(--color-subtle-ash);
|
|
}
|
|
.cpg-src-item:last-child { border-bottom: 0; }
|
|
.cpg-src-item:hover { background: var(--color-ghost-gray); }
|
|
.cpg-src-name { font-size: 14px; font-weight: 500; }
|
|
.cpg-src-code { font-size: 12px; color: var(--color-midtone-gray); white-space: nowrap; }
|
|
/* 선택됨: 검정 테두리 강조 */
|
|
.cpg-src-item.is-selected { box-shadow: inset 0 0 0 2px var(--color-deep-black); }
|
|
/* 이미 등록됨: 진한 회색 배경 + 흰 글씨 */
|
|
.cpg-src-item.cpg-registered { background: #4b4b4b; }
|
|
.cpg-src-item.cpg-registered .cpg-src-name { color: #fff; }
|
|
.cpg-src-item.cpg-registered .cpg-src-code { color: #d4d4d4; }
|
|
.cpg-src-item.cpg-registered:hover { background: #3a3a3a; }
|
|
|
|
/* ── 박스 입수량 (좌: 추가/수정 480 / 우: 목록 900) ── */
|
|
.cpg-brule-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
|
|
.cpg-brule-add { flex: 0 0 480px; width: 480px; min-width: 0; margin-bottom: 0; }
|
|
.cpg-brule-list { flex: 0 0 900px; width: 900px; min-width: 0; margin-bottom: 0; }
|
|
@media (max-width: 1420px) { .cpg-brule-list { flex-basis: auto; width: 100%; } }
|
|
@media (max-width: 540px) { .cpg-brule-add { flex-basis: 100%; width: 100%; } }
|
|
|
|
.cpg-brule-fields { display: flex; flex-direction: column; gap: 12px; }
|
|
.cpg-brule-row { display: flex; gap: 16px; align-items: flex-end; }
|
|
.cpg-brule-memo-field { flex: 1 1 auto; min-width: 0; }
|
|
/* 필드별 고정 폭 (erp.css min-width:240 오버라이드) */
|
|
.cpg .cpg-brule-fields .cpg-brule-name { width: 180px; min-width: 180px; max-width: 180px; box-sizing: border-box; }
|
|
.cpg .cpg-brule-fields .cpg-brule-code { width: 100px; min-width: 100px; max-width: 100px; box-sizing: border-box; }
|
|
/* 박스이름 폭을 제품명(180)과 동일하게 → 박스당 입수량이 제품코드와 세로 정렬 */
|
|
.cpg .cpg-brule-fields .cpg-brule-box { width: 180px; min-width: 180px; max-width: 180px; box-sizing: border-box; }
|
|
/* 박스당 입수량 60px + "개" */
|
|
.cpg-upb-wrap { display: inline-flex; align-items: center; gap: 4px; }
|
|
.cpg .cpg-brule-fields .cpg-upb-wrap > .cpg-brule-upb {
|
|
width: 60px; min-width: 60px; max-width: 60px; box-sizing: border-box;
|
|
}
|
|
.cpg-upb-unit { font-size: 13px; color: var(--color-midtone-gray); }
|
|
/* 메모: 프레임 전체 너비 */
|
|
.cpg .cpg-brule-fields .cpg-brule-memo { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
|
|
|
|
/* 등록된 제품명 표 — 정렬 가능한 헤더 */
|
|
.cpg-sort {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
font: inherit;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.cpg-sort:hover { text-decoration: underline; }
|
|
.cpg-sort-ind::after {
|
|
content: "↕";
|
|
opacity: .35;
|
|
font-size: .85em;
|
|
}
|
|
.cpg-sort.is-asc .cpg-sort-ind::after { content: "▲"; opacity: 1; }
|
|
.cpg-sort.is-desc .cpg-sort-ind::after { content: "▼"; opacity: 1; }
|
|
|
|
/* 박스 계산기 — 가로 스크롤이 생기지 않게 열 폭·여백을 좁게 잡는다. */
|
|
.cpg-calc-table { table-layout: fixed; width: 100%; }
|
|
.cpg-calc-table th, .cpg-calc-table td { padding: 8px 6px; }
|
|
.cpg-calc-table .cpg-calc-num { text-align: right; white-space: nowrap; }
|
|
|
|
.cpg-calc-table .cpg-calc-name { width: 100%; min-width: 0; }
|
|
.cpg-calc-table .cpg-calc-qty { width: 100%; min-width: 0; text-align: right; padding-left: 6px; padding-right: 6px; }
|
|
.cpg-calc-table .cpg-calc-box { white-space: nowrap; font-size: 13px; }
|
|
.cpg-calc-table .cpg-calc-act { text-align: center; }
|
|
.cpg-calc-table .cpg-calc-del { padding: 2px 8px; line-height: 1.4; }
|
|
/* 제품명 칸을 좁게 고정하고, 나머지 열은 헤더가 잘리지 않을 폭을 준다.
|
|
fixed 레이아웃이라 남는 폭은 지정 폭 비율대로 나눠 가진다. */
|
|
.cpg-calc-table col.cpg-col-name { width: 180px; }
|
|
.cpg-calc-table col.cpg-col-qty { width: 78px; }
|
|
.cpg-calc-table col.cpg-col-box { width: 116px; }
|
|
.cpg-calc-table col.cpg-col-n { width: 64px; }
|
|
.cpg-calc-table col.cpg-col-act { width: 40px; }
|
|
/* fixed 레이아웃에서 내용이 셀 밖으로 삐져나와 가로 스크롤이 생기는 것을 막는다.
|
|
말줄임(…)은 글자 셀에만 준다 — input/button 이 든 셀에 주면 빈 "…" 이 그려진다. */
|
|
.cpg-calc-table th, .cpg-calc-table td { overflow: hidden; }
|
|
.cpg-calc-table thead th { white-space: nowrap; text-align: center; font-weight: 700; color: var(--color-rich-black); }
|
|
.cpg-calc-table .cpg-calc-box { text-overflow: ellipsis; }
|
|
/* 숫자열 헤더도 가운데 정렬(본문 셀은 우측 정렬 유지) */
|
|
.cpg-calc-table thead th.cpg-calc-num { text-align: center; }
|
|
.cpg-calc-row.cpg-calc-warn { background: color-mix(in srgb, var(--color-callout-red) 8%, transparent); }
|
|
.cpg-calc-actions { margin-top: 12px; gap: 8px; align-items: center; }
|
|
/* 상단선 정렬: 2열 그리드에서는 위 여백을 주지 않는다. */
|
|
.cpg-calc-sum { margin-top: 0; }
|
|
|
|
/* ── 박스 계산 요약 ─────────────────────────────── */
|
|
.cpg-sum-h3 {
|
|
margin: 20px 0 10px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
}
|
|
.cpg-sum-h3 .erp-muted { font-weight: 400; font-size: 13px; }
|
|
|
|
.cpg-sum-kpis {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
.cpg-kpi {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 10px;
|
|
background: var(--color-ghost-gray);
|
|
}
|
|
.cpg-kpi-label { font-size: 12px; color: var(--color-midtone-gray); }
|
|
.cpg-kpi-value { font-size: 24px; line-height: 1.2; }
|
|
.cpg-kpi-hint { font-size: 12px; color: var(--color-midtone-gray); }
|
|
|
|
.cpg-sum-prods {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
.cpg-sum-prod {
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 10px;
|
|
}
|
|
.cpg-sum-prod-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.cpg-sum-prod-name { font-weight: 600; }
|
|
.cpg-sum-prod-nums {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
font-size: 13px;
|
|
}
|
|
.cpg-sum-prod-nums strong { font-size: 17px; }
|
|
.cpg-sum-left { color: var(--color-callout-red); font-weight: 600; }
|
|
.cpg-sum-exact { color: var(--color-success-green); font-weight: 600; }
|
|
|
|
/* 혼합 박스 카드 */
|
|
.cpg-sum-boxes {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.cpg-box-card {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 12px;
|
|
background: var(--color-canvas-white);
|
|
opacity: 0;
|
|
animation: cpg-box-in .38s ease-out forwards;
|
|
}
|
|
@keyframes cpg-box-in {
|
|
from { opacity: 0; transform: translateY(10px) scale(.96); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
.cpg-box-art { flex: 0 0 auto; }
|
|
.cpg-box-svg { width: 72px; height: 64px; }
|
|
.cpg-box-body {
|
|
fill: #f6e2c3;
|
|
stroke: #b98a4a;
|
|
stroke-width: 2;
|
|
}
|
|
.cpg-box-flapL, .cpg-box-flapR {
|
|
fill: #e8cfa6;
|
|
stroke: #b98a4a;
|
|
stroke-width: 2;
|
|
transform-origin: 36px 20px;
|
|
animation: cpg-flap .5s ease-out both;
|
|
}
|
|
.cpg-box-flapL { animation-delay: .12s; }
|
|
.cpg-box-flapR { animation-delay: .2s; }
|
|
@keyframes cpg-flap {
|
|
from { transform: rotate(0deg) translateY(6px); opacity: .3; }
|
|
to { transform: none; opacity: 1; }
|
|
}
|
|
.cpg-box-fill {
|
|
fill: var(--color-rich-black);
|
|
opacity: .16;
|
|
animation: cpg-fill-up .55s ease-out both;
|
|
transform-origin: 36px 54px;
|
|
}
|
|
@keyframes cpg-fill-up {
|
|
from { transform: scaleY(0); }
|
|
to { transform: scaleY(1); }
|
|
}
|
|
.cpg-box-seam { stroke: #b98a4a; stroke-width: 1.5; opacity: .5; }
|
|
|
|
.cpg-box-info { min-width: 0; flex: 1 1 auto; }
|
|
.cpg-box-title { font-weight: 700; margin-bottom: 6px; }
|
|
.cpg-box-items {
|
|
list-style: none;
|
|
margin: 0 0 8px;
|
|
padding: 0;
|
|
font-size: 13px;
|
|
}
|
|
.cpg-box-items li {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 2px 0;
|
|
border-bottom: 1px dashed var(--color-subtle-ash);
|
|
}
|
|
.cpg-box-items li:last-child { border-bottom: 0; }
|
|
.cpg-box-bar {
|
|
height: 6px;
|
|
border-radius: 3px;
|
|
background: var(--color-ghost-gray);
|
|
overflow: hidden;
|
|
}
|
|
.cpg-box-bar span {
|
|
display: block;
|
|
height: 100%;
|
|
background: var(--color-rich-black);
|
|
animation: cpg-bar-grow .6s ease-out both;
|
|
transform-origin: left center;
|
|
}
|
|
@keyframes cpg-bar-grow {
|
|
from { transform: scaleX(0); }
|
|
to { transform: scaleX(1); }
|
|
}
|
|
.cpg-box-fillnum {
|
|
margin-top: 4px;
|
|
font-size: 12px;
|
|
color: var(--color-midtone-gray);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cpg-box-card, .cpg-box-fill, .cpg-box-flapL, .cpg-box-flapR, .cpg-box-bar span {
|
|
animation: none;
|
|
opacity: 1;
|
|
}
|
|
.cpg-box-fill { opacity: .16; }
|
|
}
|
|
|
|
/* 박스 계산 2열 레이아웃 — 왼쪽 입력표 / 오른쪽 요약. 좁으면 세로로 쌓임. */
|
|
.cpg-calc-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
.cpg-calc-layout > .erp-card { margin-bottom: 0; }
|
|
@media (max-width: 1280px) {
|
|
.cpg-calc-layout { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
|
|
/* 행이 많아도 카드가 잘리지 않도록 표 자체를 스크롤시킨다. */
|
|
.cpg-calc-card .erp-table-wrap {
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
.cpg-calc-card .cpg-calc-table thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
background: var(--color-canvas-white);
|
|
}
|
|
.cpg-calc-actions { flex-wrap: wrap; }
|
|
|
|
/* 1열/2열 카드 높이를 맞춘다(요약이 비어 있을 때는 왼쪽만 표시). */
|
|
.cpg-calc-layout { align-items: stretch; }
|
|
.cpg-calc-layout > .erp-card { display: flex; flex-direction: column; }
|
|
.cpg-calc-card .erp-table-wrap { flex: 1 1 auto; }
|
|
.cpg-calc-sum { overflow: hidden; }
|
|
|
|
/* 제품명 설정 — 수기 추가 폼 */
|
|
.cpg-prod-manual {
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 10px;
|
|
background: var(--color-ghost-gray);
|
|
}
|
|
.cpg-prod-manual-head {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.cpg-prod-manual-head .erp-muted { font-size: 12px; }
|
|
.cpg-prod-manual-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
.cpg-prod-manual-row .erp-field { flex: 1 1 160px; min-width: 0; }
|
|
.cpg-prod-manual-row .erp-input { min-width: 0; width: 100%; }
|
|
|
|
/* 상자 그림 안 박스 호수 라벨 (예: 2호) */
|
|
.cpg-box-label {
|
|
font-family: inherit;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
fill: #8a5a1e;
|
|
paint-order: stroke;
|
|
stroke: rgba(255, 255, 255, .85);
|
|
stroke-width: 3px;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* ── 박스 계산 3열 작업 영역 (① 계산 / ② 요약 / ③ 센터 분배) ── */
|
|
.cpg-calc3 {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
|
|
gap: 16px;
|
|
align-items: stretch;
|
|
}
|
|
.cpg-calc3 > .erp-card { margin-bottom: 0; display: flex; flex-direction: column; }
|
|
@media (max-width: 1500px) {
|
|
.cpg-calc3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
|
|
.cpg-calc3 > .cpg-dist-card { grid-column: 1 / -1; }
|
|
/* 3열이 접히면 그리드 행 높이가 auto 라 카드가 계속 늘어난다 →
|
|
카드마다 최대 높이를 줘서 내부 목록이 스크롤되게 한다. */
|
|
.cpg-calc3 > .erp-card { max-height: min(78vh, 860px); }
|
|
}
|
|
@media (max-width: 1000px) {
|
|
.cpg-calc3 { grid-template-columns: minmax(0, 1fr); }
|
|
.cpg-calc3 > .cpg-dist-card { grid-column: auto; }
|
|
.cpg-calc3 > .erp-card { max-height: min(70vh, 720px); }
|
|
}
|
|
|
|
/* ② 요약: 카드가 드래그 가능함을 알린다 */
|
|
.cpg-sum-prod.is-draggable, .cpg-box-card.is-draggable { cursor: grab; }
|
|
.cpg-sum-prod.is-draggable:hover, .cpg-box-card.is-draggable:hover {
|
|
border-color: var(--color-rich-black);
|
|
}
|
|
.cpg-sum-prod.is-dragging, .cpg-box-card.is-dragging { opacity: .35; }
|
|
.cpg-sum-prod.is-done, .cpg-box-card.is-done { opacity: .5; }
|
|
|
|
/* 커서를 따라다니는 복제 카드 */
|
|
body.cpg-dragging { cursor: grabbing; user-select: none; }
|
|
.cpg-drag-ghost {
|
|
position: fixed;
|
|
z-index: 1300;
|
|
pointer-events: none;
|
|
opacity: .9;
|
|
max-width: 320px;
|
|
background: var(--color-canvas-white);
|
|
border: 1px solid var(--color-rich-black);
|
|
border-radius: 10px;
|
|
box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
|
|
transform: rotate(-1.5deg);
|
|
animation: none;
|
|
}
|
|
|
|
/* ③ 센터 분배 */
|
|
.cpg-dist-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
overflow-y: auto;
|
|
max-height: min(72vh, 820px);
|
|
}
|
|
.cpg-dist-center {
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
background: var(--color-canvas-white);
|
|
}
|
|
.cpg-dist-center.has-items { border-color: var(--color-rich-black); }
|
|
|
|
/* 센터 헤더 = 회색 바, 아래 목록과 확실히 분리 */
|
|
.cpg-dist-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 7px 10px;
|
|
background: var(--color-ghost-gray);
|
|
border-bottom: 1px solid var(--color-subtle-ash);
|
|
font-size: 13px;
|
|
}
|
|
.cpg-dist-head > strong {
|
|
flex: 1 1 auto; min-width: 0;
|
|
font-size: 13px; font-weight: 700; letter-spacing: .02em;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.cpg-dist-center.has-items .cpg-dist-head {
|
|
background: var(--color-rich-black);
|
|
border-bottom-color: var(--color-rich-black);
|
|
color: var(--color-canvas-white);
|
|
}
|
|
.cpg-dist-center.has-items .cpg-dist-head .erp-badge {
|
|
background: rgba(255, 255, 255, .14);
|
|
border-color: rgba(255, 255, 255, .28);
|
|
color: var(--color-canvas-white);
|
|
}
|
|
.cpg-dist-center.has-items .cpg-dist-close {
|
|
border-color: rgba(255, 255, 255, .35);
|
|
color: var(--color-canvas-white);
|
|
background: transparent;
|
|
}
|
|
.cpg-dist-center.has-items .cpg-dist-close:hover {
|
|
background: rgba(255, 255, 255, .16);
|
|
}
|
|
/* 드롭 대상은 센터 패널 전체 */
|
|
.cpg-dist-center { transition: background .15s ease, border-color .15s ease; }
|
|
.cpg-dist-center.is-over {
|
|
border-color: var(--color-rich-black);
|
|
background: var(--color-ghost-gray);
|
|
}
|
|
.cpg-dist-hint {
|
|
margin: 10px;
|
|
padding: 10px 8px;
|
|
border: 1.5px dashed var(--color-subtle-ash);
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
color: var(--color-midtone-gray);
|
|
text-align: center;
|
|
}
|
|
.cpg-dist-sum { display: inline-flex; align-items: center; gap: 6px; }
|
|
.cpg-dist-close { padding: 0 6px; line-height: 1.5; }
|
|
.cpg-center-pick { margin-bottom: 10px; }
|
|
.cpg-center-pick .erp-select { flex: 1 1 auto; min-width: 0; }
|
|
.cpg-dist-items { list-style: none; margin: 0; padding: 4px 10px 6px; display: flex; flex-direction: column; }
|
|
.cpg-dist-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
padding: 5px 0;
|
|
}
|
|
.cpg-dist-item + .cpg-dist-item { border-top: 1px solid var(--color-ghost-gray); }
|
|
.cpg-dist-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
/* 박스 수량: 최대 세 자리 → 좁게. 스피너는 자리만 차지해 숨긴다. */
|
|
.cpg-dist-qty {
|
|
width: 46px; min-width: 0; flex: 0 0 auto;
|
|
text-align: center; padding: 2px 4px;
|
|
font-family: var(--font-geist-mono);
|
|
-moz-appearance: textfield;
|
|
}
|
|
.cpg-dist-qty::-webkit-outer-spin-button,
|
|
.cpg-dist-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
|
|
.cpg-dist-unit { font-size: 12px; color: var(--color-midtone-gray); }
|
|
.cpg-dist-del { padding: 2px 8px; line-height: 1.4; }
|
|
|
|
/* 박스 수량 입력 대화상자 */
|
|
.cpg-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; }
|
|
.cpg-modal[hidden] { display: none; }
|
|
.cpg-modal-back { position: absolute; inset: 0; background: rgba(10, 10, 10, .45); }
|
|
.cpg-modal-box {
|
|
position: relative;
|
|
width: min(420px, calc(100vw - 32px));
|
|
background: var(--color-canvas-white);
|
|
border-radius: 12px;
|
|
box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
.cpg-modal-box h3 { margin: 0; font-size: 17px; }
|
|
.cpg-dlg-item { margin: 0; font-weight: 600; }
|
|
.cpg-dlg-actions { margin: 4px 0 0; flex-wrap: wrap; }
|
|
.cpg-modal-box .erp-input, .cpg-modal-box .erp-select { width: 100%; min-width: 0; }
|
|
|
|
/* 드래그 중일 때 ③ 영역을 강조 — 어디에 놓아야 하는지 보이게 */
|
|
.cpg-dist-card.is-drop-ready { outline: 2px dashed var(--color-rich-black); outline-offset: 2px; }
|
|
.cpg-dist-card.is-drop-ready .cpg-dist-center { border-color: var(--color-midtone-gray); }
|
|
|
|
/* 달력 오른쪽 — 센터별 출고 카드 */
|
|
.cpg-ship-card {
|
|
display: block;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 10px;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
.cpg-ship-card:hover { border-color: var(--color-rich-black); background: var(--color-ghost-gray); }
|
|
.cpg-ship-head { display: flex; align-items: center; gap: 6px; }
|
|
.cpg-ship-head > strong { flex: 1 1 auto; min-width: 0; font-size: 14px;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cpg-ship-meta { margin-top: 2px; font-size: 12px; font-family: var(--font-geist-mono); }
|
|
.cpg-ship-items {
|
|
list-style: none; margin: 8px 0 0; padding: 6px 0 0;
|
|
border-top: 1px solid var(--color-ghost-gray);
|
|
}
|
|
.cpg-ship-items > li { display: flex; align-items: baseline; gap: 6px; padding: 2px 0; font-size: 13px; }
|
|
.cpg-ship-iname { flex: 1 1 auto; min-width: 0;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cpg-ship-iqty, .cpg-ship-ibox {
|
|
flex: 0 0 auto; font-family: var(--font-geist-mono); font-size: 12px;
|
|
}
|
|
.cpg-ship-iqty { color: var(--color-midtone-gray); }
|
|
.cpg-ship-ibox { font-weight: 600; }
|
|
|
|
/* 달력 오른쪽 — 삭제 버튼 / 확인 팝업 */
|
|
.cpg-list-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.cpg-list-head > h2 { flex: 0 0 auto; }
|
|
.cpg-list-head > .erp-muted { flex: 1 1 auto; }
|
|
.cpg-day-del { flex: 0 0 auto; }
|
|
.cpg-ship-name {
|
|
flex: 1 1 auto; min-width: 0;
|
|
font-size: 14px; font-weight: 700; text-decoration: none; color: inherit;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.cpg-ship-name:hover { text-decoration: underline; }
|
|
.cpg-del-box { width: min(400px, calc(100vw - 32px)); }
|
|
.cpg-del-msg { margin: 0; font-size: 14px; line-height: 1.5; word-break: keep-all; }
|
|
.cpg-del-act { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
|
|
|
|
/* ③ 헤더의 분배 확정 버튼 */
|
|
.cpg-dist-head-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.cpg-dist-head-bar > .erp-muted { flex: 1 1 auto; min-width: 0; }
|
|
.cpg-confirm-btn { flex: 0 0 auto; }
|
|
.cpg-confirm-btn:disabled { opacity: .4; cursor: not-allowed; }
|
|
|
|
/* 센터별 출고방식 */
|
|
.cpg-dist-method {
|
|
flex: 0 0 auto;
|
|
width: auto; min-width: 0;
|
|
padding: 2px 22px 2px 8px;
|
|
font-size: 11px; line-height: 1.6;
|
|
border-radius: 6px;
|
|
}
|
|
.cpg-dist-center.has-items .cpg-dist-method {
|
|
background-color: rgba(255, 255, 255, .14);
|
|
border-color: rgba(255, 255, 255, .3);
|
|
color: var(--color-canvas-white);
|
|
}
|
|
/* 펼친 목록은 항상 흰 바탕·검은 글씨 (닫힌 버튼 색이 옵션까지 번지지 않게) */
|
|
.cpg-dist-method option {
|
|
background-color: var(--color-canvas-white);
|
|
color: var(--color-rich-black);
|
|
}
|
|
/* 미선택은 눈에 띄게 — 확정 버튼이 막히는 이유 */
|
|
.cpg-dist-center.has-items .cpg-dist-method.is-unset {
|
|
background-color: var(--color-callout-red);
|
|
border-color: var(--color-callout-red);
|
|
}
|
|
|
|
/* 저장 중 알림 — 확정을 누르면 바로 뜨고, 저장이 끝나면 닫힌다. */
|
|
.cpg-saving-box {
|
|
width: min(320px, calc(100vw - 32px));
|
|
display: flex; flex-direction: column; align-items: center; gap: 10px;
|
|
text-align: center;
|
|
padding: 24px 20px;
|
|
}
|
|
.cpg-saving-box strong { font-size: 15px; }
|
|
.cpg-saving-box .erp-muted { font-size: 12px; font-family: var(--font-geist-mono); }
|
|
.cpg-spinner {
|
|
width: 34px; height: 34px;
|
|
border: 3px solid var(--color-subtle-ash);
|
|
border-top-color: var(--color-deep-black);
|
|
border-radius: 50%;
|
|
animation: cpg-spin 720ms linear infinite;
|
|
}
|
|
@keyframes cpg-spin { to { transform: rotate(360deg); } }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cpg-spinner { animation-duration: 2s; }
|
|
}
|
|
|
|
/* 임시 저장 / 불러오기 대화상자 */
|
|
.cpg-draft-box { width: min(520px, calc(100vw - 32px)); }
|
|
.cpg-draft-saveact { display: flex; align-items: center; gap: 8px; }
|
|
.cpg-draft-h4 {
|
|
margin: 6px 0 0;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--color-subtle-ash);
|
|
font-size: 13px; font-weight: 700;
|
|
}
|
|
.cpg-draft-list {
|
|
max-height: 260px; overflow-y: auto;
|
|
border: 1px solid var(--color-subtle-ash); border-radius: 8px;
|
|
}
|
|
.cpg-draft-list > p { margin: 0; padding: 12px; font-size: 13px; }
|
|
.cpg-draft-row {
|
|
display: flex; align-items: center; gap: 6px;
|
|
padding: 7px 10px;
|
|
}
|
|
.cpg-draft-row + .cpg-draft-row { border-top: 1px solid var(--color-ghost-gray); }
|
|
.cpg-draft-row:hover { background: var(--color-ghost-gray); }
|
|
.cpg-draft-rname {
|
|
flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.cpg-draft-rmeta {
|
|
flex: 0 0 auto;
|
|
font-family: var(--font-geist-mono);
|
|
font-size: 11px; color: var(--color-midtone-gray);
|
|
}
|
|
.cpg-draft-foot { display: flex; justify-content: flex-end; }
|
|
|
|
/* 대화상자 센터 버튼 목록 */
|
|
.cpg-dlg-centers {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
max-height: 132px;
|
|
overflow-y: auto;
|
|
}
|
|
.cpg-dlg-center-btn { padding: 4px 12px; }
|
|
|
|
/* 센터에 담긴 혼합 박스의 내용물 트리 */
|
|
.cpg-dist-item { display: block; }
|
|
.cpg-dist-line { display: flex; align-items: center; gap: 6px; }
|
|
.cpg-dist-tree {
|
|
list-style: none;
|
|
margin: 4px 0 2px;
|
|
padding: 0 0 0 10px;
|
|
border-left: 1px solid var(--color-subtle-ash);
|
|
}
|
|
.cpg-dist-tree li {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 6px;
|
|
padding: 1px 0;
|
|
font-size: 12px;
|
|
color: var(--color-midtone-gray);
|
|
}
|
|
.cpg-dist-tree li::before {
|
|
content: "└";
|
|
color: var(--color-subtle-ash);
|
|
}
|
|
.cpg-tree-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cpg-tree-qty { font-weight: 600; color: var(--color-rich-black); }
|
|
.cpg-tree-per { font-size: 11px; }
|
|
|
|
/* 배분 완료 도장 */
|
|
.cpg-stamp {
|
|
--stamp: #1d5fd0;
|
|
flex: 0 0 auto;
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border: 2px solid var(--stamp);
|
|
border-radius: 6px;
|
|
color: var(--stamp);
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
letter-spacing: 1px;
|
|
line-height: 1.4;
|
|
white-space: nowrap;
|
|
opacity: .85;
|
|
transform: rotate(-7deg);
|
|
box-shadow: inset 0 0 0 1px rgba(29, 95, 208, .25);
|
|
}
|
|
.cpg-stamp.is-new { animation: cpg-stamp-in .22s ease-out; }
|
|
@keyframes cpg-stamp-in {
|
|
from { opacity: 0; transform: rotate(-7deg) scale(1.6); }
|
|
to { opacity: .85; transform: rotate(-7deg) scale(1); }
|
|
}
|
|
|
|
/* 배분이 끝난 카드는 흐리게 — 글자·상자 아이콘 모두 */
|
|
.cpg-sum-prod.is-done, .cpg-box-card.is-done { opacity: 1; }
|
|
.cpg-sum-prod.is-done .cpg-sum-prod-name,
|
|
.cpg-box-card.is-done .cpg-box-title { color: var(--color-midtone-gray); }
|
|
.cpg-sum-prod.is-done .cpg-sum-prod-nums,
|
|
.cpg-box-card.is-done .cpg-box-items,
|
|
.cpg-box-card.is-done .cpg-box-fillnum { color: var(--color-midtone-gray); opacity: .6; }
|
|
.cpg-sum-prod.is-done .cpg-sum-prod-nums strong,
|
|
.cpg-box-card.is-done .cpg-box-items b { color: var(--color-midtone-gray); }
|
|
.cpg-box-card.is-done .cpg-box-svg { filter: grayscale(1); opacity: .45; }
|
|
.cpg-box-card.is-done .cpg-box-bar { opacity: .4; }
|
|
/* 도장은 카드가 흐려져도 또렷하게 유지 */
|
|
.cpg-sum-prod.is-done .cpg-stamp, .cpg-box-card.is-done .cpg-stamp { opacity: 1; }
|
|
|
|
/* 상자 변경 필요 도장 — 채움률이 낮은 혼합 상자 */
|
|
.cpg-stamp-warn {
|
|
--stamp: #e8730c;
|
|
box-shadow: inset 0 0 0 1px rgba(232, 115, 12, .25);
|
|
transform: rotate(-5deg);
|
|
}
|
|
.cpg-box-card.is-done .cpg-stamp-warn { opacity: 1; }
|
|
|
|
/* 채움률이 낮은 상자 안내 대화상자 */
|
|
.cpg-low-box { width: min(420px, calc(100vw - 32px)); }
|
|
.cpg-low-lead { margin: 0; font-size: 13px; line-height: 1.6; word-break: keep-all; }
|
|
.cpg-low-list {
|
|
list-style: none; margin: 0; padding: 0;
|
|
border: 1px solid var(--color-subtle-ash); border-radius: 8px;
|
|
max-height: 220px; overflow-y: auto;
|
|
}
|
|
.cpg-low-list > li {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 7px 10px; font-size: 13px;
|
|
}
|
|
.cpg-low-list > li + li { border-top: 1px solid var(--color-ghost-gray); }
|
|
.cpg-low-name { flex: 1 1 auto; min-width: 0; font-weight: 600;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cpg-low-fill {
|
|
flex: 0 0 auto; color: #e8730c; font-weight: 700;
|
|
font-family: var(--font-geist-mono); font-size: 12px;
|
|
}
|
|
|
|
/* 전체 배분 완료 도장 (센터 배분 KPI 칸) */
|
|
.cpg-kpi { position: relative; overflow: hidden; }
|
|
.cpg-stamp-all {
|
|
--stamp: var(--color-callout-red);
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 10px;
|
|
margin-top: -14px;
|
|
padding: 4px 10px;
|
|
font-size: 13px;
|
|
letter-spacing: 2px;
|
|
border-width: 3px;
|
|
border-radius: 8px;
|
|
opacity: .9;
|
|
transform: rotate(-12deg);
|
|
box-shadow: inset 0 0 0 1px rgba(194, 43, 16, .25);
|
|
}
|
|
.cpg-stamp-all.is-new { animation: cpg-stamp-all-in .3s cubic-bezier(.2, 1.4, .4, 1); }
|
|
@keyframes cpg-stamp-all-in {
|
|
0% { opacity: 0; transform: rotate(-12deg) scale(2.4); }
|
|
60% { opacity: .95; transform: rotate(-12deg) scale(.92); }
|
|
100% { opacity: .9; transform: rotate(-12deg) scale(1); }
|
|
}
|
|
|
|
/* ── 설정(제품명) — 상태 토글 배지 / 쿠팡상품코드 / 선택 등록 팝업 ── */
|
|
.cpg-active-toggle {
|
|
border: 0;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
.cpg-active-toggle:hover { filter: brightness(.94); }
|
|
.cpg-active-toggle:disabled { opacity: .6; cursor: progress; }
|
|
.cpg-prod-row.is-inactive { opacity: .55; }
|
|
.cpg-cpcode { font-family: var(--font-geist-mono); font-size: 13px; }
|
|
|
|
.cpg-reg-box { width: min(520px, calc(100vw - 32px)); }
|
|
.cpg-reg-list {
|
|
max-height: min(48vh, 380px);
|
|
overflow-y: auto;
|
|
overflow-x: hidden; /* 입력란 때문에 가로 스크롤 생기지 않게 */
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding-right: 4px;
|
|
}
|
|
.cpg-reg-item { min-width: 0; }
|
|
.cpg-reg-item > span { font-size: 13px; }
|
|
/* 입력란 400px 고정 — 모달 폭 안에서 가로 스크롤 없이 들어가게 */
|
|
.cpg-modal-box .cpg-reg-item .erp-input {
|
|
width: min(400px, 100%);
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.cpg-reg-code {
|
|
font-family: var(--font-geist-mono);
|
|
font-style: normal;
|
|
color: var(--color-midtone-gray);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* ── 설정(제품명) 등록 목록 표 — 한 줄 고정 (넘치면 … 처리) ── */
|
|
.cpg-prod-right .erp-table { table-layout: fixed; width: 100%; }
|
|
/* 표 안에서 가로 스크롤이 생기지 않게 (세로만 스크롤) */
|
|
.cpg-prod-right .erp-table-wrap { overflow-x: hidden; }
|
|
.cpg-prod-right .erp-table thead th,
|
|
.cpg-prod-right .erp-table tbody td {
|
|
/* width 에 padding 포함 — 지정 폭이 그대로 열 폭이 되게 */
|
|
box-sizing: border-box;
|
|
padding: 8px 10px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
vertical-align: middle;
|
|
}
|
|
/* 열 폭: 제품명 160 / 제품코드 96 / 상태 72 / 동작 104 고정,
|
|
쿠팡상품코드는 남는 폭을 흡수 → 다른 열이 지정 폭 그대로 유지된다. */
|
|
.cpg-prod-right .erp-table th:nth-child(1),
|
|
.cpg-prod-right .erp-table td:nth-child(1) { width: 160px; }
|
|
.cpg-prod-right .erp-table th:nth-child(2),
|
|
.cpg-prod-right .erp-table td:nth-child(2) { width: 96px; }
|
|
.cpg-prod-right .erp-table th:nth-child(4),
|
|
.cpg-prod-right .erp-table td:nth-child(4) { width: 72px; }
|
|
.cpg-prod-right .erp-table th:nth-child(5),
|
|
.cpg-prod-right .erp-table td:nth-child(5) { width: 104px; }
|
|
/* 제품코드·쿠팡상품코드는 mono 라 조금 더 좁게 */
|
|
.cpg-prod-right .erp-table td:nth-child(2),
|
|
.cpg-prod-right .erp-table td:nth-child(3) { font-size: 12px; }
|
|
.cpg-prod-right .cpg-sort { max-width: 100%; white-space: nowrap; }
|
|
/* 동작 버튼은 가로 한 줄 */
|
|
.cpg-prod-right .cpg-row-actions { flex-wrap: nowrap; gap: 4px; }
|
|
.cpg-prod-right .cpg-row-actions .erp-btn { padding: 3px 8px; font-size: 12px; line-height: 1.5; }
|
|
.cpg-prod-right .cpg-active-toggle { white-space: nowrap; }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
메인 달력 — 2개월(현재 달 + 다음 달) 월간 뷰
|
|
══════════════════════════════════════════════════════════════ */
|
|
.cpg-cal-card { padding: 16px 18px 14px; }
|
|
|
|
/* 상단 바: ← 기간 제목 → (가운데 정렬) */
|
|
.cpg-mcal-bar {
|
|
display: flex; align-items: center; justify-content: center; gap: 26px;
|
|
padding-bottom: 14px; margin-bottom: 16px;
|
|
border-bottom: 1px solid var(--color-subtle-ash);
|
|
flex-shrink: 0;
|
|
}
|
|
.cpg-mcal-navbtn {
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
width: 44px; height: 36px;
|
|
border: 0; background: none; border-radius: 8px;
|
|
color: var(--color-deep-black); text-decoration: none;
|
|
transition: background .12s, transform .12s;
|
|
}
|
|
/* 짧고 굵은 화살표 — 글꼴 글리프 대신 SVG 로 두께를 직접 준다 */
|
|
.cpg-mcal-arrow {
|
|
width: 30px; height: 26px;
|
|
fill: none; stroke: currentColor;
|
|
stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round;
|
|
}
|
|
.cpg-mcal-navbtn:hover { background: var(--color-ghost-gray); }
|
|
.cpg-mcal-navbtn:active { transform: scale(.94); }
|
|
.cpg-mcal-range {
|
|
margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.4px;
|
|
white-space: nowrap;
|
|
}
|
|
/* 오늘 — 두 달 사이 가운데 위쪽 */
|
|
.cpg-mcal-todaybtn {
|
|
position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
|
|
z-index: 2;
|
|
padding: 5px 16px; border-radius: 999px;
|
|
border: 1px solid var(--color-subtle-ash); background: #fff;
|
|
font-size: 13px; color: var(--color-rich-black); text-decoration: none;
|
|
}
|
|
.cpg-mcal-todaybtn:hover { background: var(--color-ghost-gray); border-color: var(--color-midtone-gray); }
|
|
|
|
/* 두 달 나란히 */
|
|
.cpg-mcal-months {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 22px;
|
|
flex: 1 1 auto; min-height: 0;
|
|
}
|
|
@media (max-width: 1200px) {
|
|
.cpg-mcal-months { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
.cpg-mcal { display: flex; flex-direction: column; min-height: 0; min-width: 0; align-self: start; }
|
|
|
|
/* 달 머리글 — 가운데 정렬, 출고 건수는 오른쪽 끝에 겹쳐 놓는다 */
|
|
.cpg-mcal-h {
|
|
position: relative;
|
|
display: flex; align-items: baseline; justify-content: center; gap: 8px;
|
|
padding: 0 2px 10px;
|
|
}
|
|
.cpg-mcal-mname { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
|
|
.cpg-mcal-myear { font-size: 24px; font-weight: 800; color: var(--color-midtone-gray); font-family: var(--font-geist-mono); }
|
|
.cpg-mcal-total {
|
|
position: absolute; right: 2px; top: 8px;
|
|
font-size: 11px; padding: 2px 8px; border-radius: 999px;
|
|
background: var(--color-ghost-gray); color: var(--color-midtone-gray);
|
|
}
|
|
.cpg-mcal.is-current .cpg-mcal-total {
|
|
background: var(--color-deep-black); color: #fff;
|
|
}
|
|
|
|
/* 날짜 격자 — 주 수(5주/6주)가 달라도 칸 크기가 같도록 행 높이를 고정한다.
|
|
(1fr 로 남은 높이를 나누면 5주 달과 6주 달의 칸 높이가 달라진다) */
|
|
.cpg-mcal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
grid-template-rows: auto; /* 요일 행은 내용 높이만 */
|
|
grid-auto-rows: var(--mcal-row, 84px);
|
|
gap: 4px;
|
|
flex: 0 0 auto; min-height: 0;
|
|
align-content: start;
|
|
}
|
|
@media (max-height: 900px) { .cpg-mcal-grid { --mcal-row: 72px; } }
|
|
@media (max-height: 780px) { .cpg-mcal-grid { --mcal-row: 62px; } }
|
|
.cpg-mcal-wd {
|
|
display: flex; align-items: center; justify-content: center;
|
|
height: 34px; padding: 0;
|
|
font-size: 22px; font-weight: 700; letter-spacing: -0.2px;
|
|
color: var(--color-midtone-gray);
|
|
border-bottom: 1px solid var(--color-subtle-ash);
|
|
}
|
|
.cpg-mcal-wd.is-sun { color: var(--color-callout-red); }
|
|
.cpg-mcal-wd.is-sat { color: #2b5bc2; }
|
|
|
|
.cpg-mcal-cell {
|
|
position: relative;
|
|
display: flex; flex-direction: column; align-items: center; gap: 4px;
|
|
/* 이 프로젝트엔 전역 border-box 가 없다. height:100% + padding 이 행 높이를
|
|
넘어 칸이 겹치던 문제를 막으려면 여기서 box-sizing 을 지정해야 한다. */
|
|
box-sizing: border-box;
|
|
height: 100%; min-height: 0; min-width: 0; padding: 6px 4px 7px;
|
|
justify-content: flex-start;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
text-decoration: none; color: var(--color-rich-black);
|
|
transition: background .12s, box-shadow .12s, border-color .12s;
|
|
}
|
|
.cpg-mcal-cell:hover { background: var(--color-ghost-gray); border-color: var(--color-midtone-gray); }
|
|
.cpg-mcal-day {
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
min-width: 32px; height: 32px; padding: 0 8px;
|
|
border-radius: 999px;
|
|
font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
|
|
}
|
|
.cpg-mcal-cell.is-red .cpg-mcal-day { color: var(--color-callout-red); }
|
|
.cpg-mcal-cell.is-blue .cpg-mcal-day { color: #2b5bc2; }
|
|
/* 이번 달이 아닌 날 — 흐리게 */
|
|
.cpg-mcal-cell.is-out { background: var(--color-ghost-gray); opacity: .5; }
|
|
/* 오늘 — 검은 원 */
|
|
.cpg-mcal-cell.is-today .cpg-mcal-day {
|
|
background: var(--color-deep-black); color: #fff; font-weight: 700;
|
|
}
|
|
/* 선택한 날 — 링 강조 */
|
|
.cpg-mcal-cell.is-selected {
|
|
background: var(--color-ghost-gray);
|
|
border-color: var(--color-deep-black);
|
|
box-shadow: inset 0 0 0 1.5px var(--color-deep-black);
|
|
}
|
|
|
|
/* 공휴일 이름 — 날짜 아래 작은 빨강 글씨 */
|
|
.cpg-mcal-holi {
|
|
max-width: 100%;
|
|
font-size: 11px; font-weight: 700; line-height: 1.3;
|
|
color: var(--color-callout-red);
|
|
text-align: center;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.cpg-mcal-cell.is-out .cpg-mcal-holi { color: #e3a59b; }
|
|
|
|
/* 출고 있는 날 — 건수/센터수 태그 */
|
|
.cpg-mcal-tag {
|
|
display: inline-flex; align-items: center; gap: 4px;
|
|
max-width: 100%; padding: 1px 7px;
|
|
border-radius: 999px;
|
|
background: var(--color-deep-black); color: #fff;
|
|
font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
|
|
overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.cpg-mcal-tag > em { font-style: normal; color: #c9c9c9; font-size: 11px; font-weight: 500; }
|
|
.cpg-mcal-cell.is-out .cpg-mcal-tag { background: var(--color-midtone-gray); }
|
|
|
|
/* 범례 */
|
|
.cpg-mcal-legend {
|
|
display: flex; gap: 16px; flex-wrap: wrap;
|
|
margin-top: 12px; padding-top: 10px;
|
|
border-top: 1px solid var(--color-subtle-ash);
|
|
font-size: 11px; color: var(--color-midtone-gray);
|
|
flex-shrink: 0;
|
|
}
|
|
.cpg-mcal-legend span { display: inline-flex; align-items: center; gap: 6px; }
|
|
.cpg-mcal-legend i { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
|
|
.cpg-lg-dot { background: var(--color-deep-black); }
|
|
.cpg-lg-today { background: var(--color-deep-black); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-subtle-ash); }
|
|
.cpg-lg-sel { background: var(--color-ghost-gray); box-shadow: inset 0 0 0 1.5px var(--color-deep-black); }
|
|
|
|
/* ── 쿠팡 발주 업로드 (① 카드) ── */
|
|
.cpg-po-box {
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
background: var(--color-ghost-gray);
|
|
}
|
|
.cpg-po-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
|
.cpg-po-file {
|
|
flex: 1 1 220px; min-width: 0;
|
|
font-size: 12px;
|
|
padding: 6px;
|
|
background: #fff;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 8px;
|
|
}
|
|
.cpg-po-msg { margin: 8px 0 0; font-size: 12px; }
|
|
.cpg-po-result { margin-top: 10px; }
|
|
.cpg-po-sum { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
|
|
.cpg-po-files, .cpg-po-warn { list-style: none; margin: 0; padding: 0; font-size: 12px; }
|
|
.cpg-po-files > li {
|
|
display: flex; align-items: baseline; gap: 8px;
|
|
padding: 4px 0; border-top: 1px solid var(--color-subtle-ash);
|
|
}
|
|
.cpg-po-files > li > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cpg-po-files > li > em { font-style: normal; color: var(--color-midtone-gray); white-space: nowrap; }
|
|
.cpg-po-files > li > b { font-family: var(--font-geist-mono); white-space: nowrap; }
|
|
.cpg-po-warn {
|
|
margin-top: 8px; padding: 8px 10px;
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, var(--color-callout-red) 10%, #fff);
|
|
color: var(--color-callout-red);
|
|
}
|
|
.cpg-po-warn > li { padding: 2px 0; }
|
|
|
|
/* ── 출고일 목록 (① 카드 안, 업로드한 발주서 기준) ── */
|
|
.cpg-date-list { display: flex; flex-direction: column; gap: 6px; }
|
|
.cpg-date-tab {
|
|
display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
|
|
width: 100%; box-sizing: border-box;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--color-subtle-ash); border-radius: 10px;
|
|
background: #fff; cursor: pointer; font: inherit; text-align: left;
|
|
transition: background .12s, border-color .12s;
|
|
}
|
|
.cpg-date-tab:hover { border-color: var(--color-midtone-gray); background: var(--color-ghost-gray); }
|
|
.cpg-date-tab > strong { font-size: 14px; font-family: var(--font-geist-mono); }
|
|
.cpg-date-tab > span { font-size: 11px; color: var(--color-midtone-gray); }
|
|
.cpg-date-tab.is-active {
|
|
background: var(--color-deep-black); border-color: var(--color-deep-black); color: #fff;
|
|
}
|
|
.cpg-date-tab.is-active > span { color: #c9c9c9; }
|
|
|
|
/* 업로드 결과 — 출고일별 요약 */
|
|
.cpg-po-dates { list-style: none; margin: 0 0 8px; padding: 0; font-size: 12px; }
|
|
.cpg-po-dates > li {
|
|
display: flex; gap: 8px; align-items: baseline;
|
|
padding: 3px 0;
|
|
}
|
|
.cpg-po-dates > li > b { font-family: var(--font-geist-mono); }
|
|
.cpg-po-dates > li > span { color: var(--color-midtone-gray); }
|
|
|
|
/* 자투리 혼합 박스 — 상자 종류 선택 */
|
|
.cpg-box-typerow { margin: 2px 0 6px; }
|
|
.cpg-box-type {
|
|
width: auto; min-width: 108px;
|
|
padding: 2px 8px; font-size: 12px; line-height: 1.6;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
박스 계산 3열 — 카드마다 자체 스크롤(문서 전체는 스크롤 안 함)
|
|
각 카드: 헤더/요약은 고정, 목록만 스크롤
|
|
══════════════════════════════════════════════════════════════ */
|
|
.cpg-calc3 { flex: 1 1 auto; min-height: 0; }
|
|
.cpg-calc3 > .erp-card { min-height: 0; overflow: hidden; }
|
|
.cpg-calc3 .cpg-card-head,
|
|
.cpg-calc3 .cpg-po-box,
|
|
.cpg-calc3 .cpg-sum-kpis,
|
|
.cpg-calc3 .cpg-center-pick,
|
|
.cpg-calc3 .cpg-calc-actions,
|
|
.cpg-calc3 > .erp-card > .cpg-sum-h3 { flex-shrink: 0; }
|
|
|
|
/* ① 입력 표 — 표 머리글 고정 + 표만 스크롤 */
|
|
.cpg-calc-card .erp-table-wrap { flex: 1 1 auto; min-height: 0; }
|
|
.cpg-calc-card .cpg-calc-table thead th {
|
|
position: sticky; top: 0; z-index: 2; background: var(--color-canvas-white);
|
|
}
|
|
/* 행 높이 축소 — 한 화면에 더 많은 품목 */
|
|
.cpg-calc-card .cpg-calc-table th,
|
|
.cpg-calc-card .cpg-calc-table td { padding: 2px 6px; }
|
|
.cpg-calc-card .cpg-calc-table .erp-select,
|
|
.cpg-calc-card .cpg-calc-table .erp-input {
|
|
padding: 2px 6px; font-size: 12px; line-height: 1.5; height: auto;
|
|
}
|
|
.cpg-calc-card .cpg-calc-table .cpg-calc-del { padding: 0 6px; font-size: 11px; line-height: 1.6; }
|
|
|
|
/* ② 요약 — KPI 까지 고정, 아래 목록만 스크롤 */
|
|
.cpg-calc-sum #cpg-sum-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
|
|
.cpg-sum-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px; }
|
|
.cpg-sum-scroll > .cpg-sum-h3:first-child { margin-top: 0; }
|
|
|
|
/* ③ 센터 분배 — 센터 목록만 스크롤 */
|
|
.cpg-dist-card .cpg-dist-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px; }
|
|
|
|
/* 업로드 버튼 — 네이티브 file input 은 숨기고 라벨을 버튼처럼 */
|
|
.cpg-po-pick { cursor: pointer; }
|
|
.cpg-po-box .cpg-po-file {
|
|
position: absolute; width: 1px; height: 1px;
|
|
padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0);
|
|
}
|
|
.cpg-po-row { align-items: center; }
|
|
.cpg-po-msg { margin: 0; font-size: 12px; }
|
|
/* 상단 액션은 줄어들지 않게 (3열 프레임만 남은 높이를 차지) */
|
|
.cpg > .erp-page-actions { flex-shrink: 0; }
|
|
|
|
/* 출고 보기(읽기 전용) — ③ 하단 메타 정보 */
|
|
/* ── 출고 보기 ② 상자 목록 — 상자번호 · 제품명 · 제품코드 · 수량 ── */
|
|
.cpg-boxno-dl {
|
|
font-size: 12px; padding: 4px 10px;
|
|
background: #217346; border-color: #217346;
|
|
}
|
|
/* .erp-body a { color: inherit } (0,1,1) 를 이기려면 a + 클래스로 잡아야 한다. */
|
|
a.cpg-boxno-dl, a.cpg-boxno-dl:link, a.cpg-boxno-dl:visited,
|
|
a.cpg-boxno-dl:hover, a.cpg-boxno-dl:active { color: #fff; }
|
|
a.cpg-boxno-dl:hover { background: #1a5c38; border-color: #1a5c38; font-weight: 700; }
|
|
.cpg-boxno-count {
|
|
margin-left: auto;
|
|
font-size: 12px; color: var(--color-midtone-gray);
|
|
font-family: var(--font-geist-mono);
|
|
}
|
|
.cpg-boxno-count.is-on { color: #217346; font-weight: 700; }
|
|
.cpg-boxno-table { table-layout: fixed; width: 100%; }
|
|
.cpg-boxno-table th, .cpg-boxno-table td {
|
|
box-sizing: border-box;
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
border-bottom: 1px solid var(--color-cloud-gray);
|
|
}
|
|
.cpg-boxno-table thead th {
|
|
position: sticky; top: 0; z-index: 2;
|
|
background: var(--color-ghost-gray);
|
|
overflow: visible; text-overflow: clip; /* 머리글은 줄여 쓰지 않는다 */
|
|
padding-left: 4px; padding-right: 4px;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
}
|
|
/* 머리글 글자가 잘리지 않을 만큼의 너비(12px 한글 기준) */
|
|
.cpg-boxno-c-no { width: 82px; }
|
|
.cpg-boxno-c-name { width: auto; }
|
|
.cpg-boxno-c-code { width: 100px; }
|
|
.cpg-boxno-c-qty { width: 62px; }
|
|
.cpg-boxno-cell {
|
|
text-align: center; font-weight: 700;
|
|
font-family: var(--font-geist-mono);
|
|
border-right: 1px solid var(--color-cloud-gray);
|
|
vertical-align: middle;
|
|
}
|
|
.cpg-boxno-code { color: var(--color-midtone-gray); font-family: var(--font-geist-mono); }
|
|
.cpg-boxno-table tbody tr.is-boxtop td { border-top: 1px solid var(--color-cloud-gray); }
|
|
.cpg-boxno-table tbody tr { cursor: pointer; }
|
|
.cpg-boxno-table tbody tr:hover td { background: var(--color-ghost-gray); }
|
|
/* 클릭 = 셌다는 표시. 상자 단위로 함께 켜진다. */
|
|
.cpg-boxno-table tbody tr.is-checked td {
|
|
background: #d8efe0;
|
|
color: #12502f;
|
|
}
|
|
.cpg-boxno-table tbody tr.is-checked .cpg-boxno-cell { color: #217346; }
|
|
.cpg-boxno-table tbody tr.is-checked .cpg-boxno-code { color: #2f7a55; }
|
|
|
|
.cpg-view-meta {
|
|
margin: 12px 0 0; padding: 10px 12px;
|
|
border: 1px solid var(--color-subtle-ash); border-radius: 10px;
|
|
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px;
|
|
}
|
|
.cpg-view-meta dt { font-size: 11px; color: var(--color-midtone-gray); }
|
|
.cpg-view-meta dd { margin: 2px 0 0; font-size: 13px; }
|
|
.cpg-view-row td { padding: 4px 6px; }
|
|
|
|
/* ── 달력 오른쪽 출고 목록 — ③ 센터 분배 카드와 같은 형식 ── */
|
|
.cpg-list .cpg-dist-center { overflow: hidden; }
|
|
.cpg-list .cpg-dist-head .cpg-ship-name {
|
|
flex: 1 1 auto; min-width: 0;
|
|
font-size: 13px; font-weight: 700; letter-spacing: .02em;
|
|
color: var(--color-canvas-white); text-decoration: none;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.cpg-list .cpg-dist-head .cpg-ship-name:hover { text-decoration: underline; }
|
|
.cpg-list .cpg-dist-head .cpg-icon-btn.is-danger {
|
|
border-color: rgba(255, 255, 255, .35);
|
|
color: var(--color-canvas-white);
|
|
background: transparent;
|
|
}
|
|
.cpg-list .cpg-dist-head .cpg-icon-btn.is-danger:hover { background: rgba(255, 255, 255, .16); }
|
|
.cpg-list .cpg-ship-meta { padding: 0 10px 8px; font-size: 11px; }
|
|
/* 혼합 상자 줄은 굵게 — 어떤 상자인지 바로 보이게 */
|
|
.cpg-dist-item.is-mix .cpg-dist-name { font-weight: 600; }
|
|
|
|
/* ── ③ 혼합 상자 내용물 편집 (수량 스테퍼 / 이동 / 미배치 풀) ── */
|
|
.cpg-mix-fill { font-style: normal; font-size: 11px; color: var(--color-midtone-gray); }
|
|
.cpg-mix-ctl { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
|
|
.cpg-mix-step {
|
|
width: 20px; height: 20px; line-height: 1;
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
border: 1px solid var(--color-subtle-ash); border-radius: 6px;
|
|
background: #fff; cursor: pointer; font-size: 13px; padding: 0;
|
|
}
|
|
.cpg-mix-step:hover:not(:disabled) { background: var(--color-ghost-gray); border-color: var(--color-midtone-gray); }
|
|
.cpg-mix-step:disabled { opacity: .35; cursor: not-allowed; }
|
|
.cpg-mix-move {
|
|
width: auto; min-width: 74px; max-width: 132px;
|
|
padding: 1px 4px; font-size: 11px; line-height: 1.5; cursor: pointer;
|
|
}
|
|
.cpg-dist-tree .cpg-tree-qty { min-width: 38px; text-align: right; }
|
|
|
|
.cpg-dist-foot { padding: 0 10px 10px; }
|
|
.cpg-mix-new { padding: 3px 10px; font-size: 12px; line-height: 1.5; }
|
|
|
|
/* ③ 센터 목록은 항상 카드 안에서만 스크롤 (편집으로 줄이 늘어나도 페이지가 밀리지 않게) */
|
|
.cpg-dist-card { min-height: 0; overflow: hidden; }
|
|
.cpg-dist-card .cpg-dist-list {
|
|
flex: 1 1 auto; min-height: 0;
|
|
overflow-y: auto; overflow-x: hidden;
|
|
}
|
|
|
|
/* ③ 목록 스크롤 — 부모 높이 계산에 기대지 않도록 최대 높이를 직접 준다 */
|
|
.cpg-dist-card .cpg-dist-list {
|
|
max-height: min(72vh, 820px);
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
/* ①② 도 같은 방식으로 안전장치 */
|
|
.cpg-calc-card .erp-table-wrap { max-height: min(64vh, 720px); }
|
|
.cpg-calc-sum .cpg-sum-scroll { max-height: min(64vh, 720px); }
|
|
/* 용량 초과 표시 */
|
|
.cpg-mix-fill.is-over { color: var(--color-callout-red); font-weight: 600; }
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
상자 계산 3열 — 프레임 높이/스크롤 (한 곳에서만 정의)
|
|
· .cpg-calc3 는 남은 화면 높이를 채우고 행 높이를 1fr 로 고정한다.
|
|
(기본 auto 행이면 카드가 화면 밖까지 늘어나 잘려 보인다)
|
|
· 카드는 넘치는 부분을 감추고, 안쪽 목록만 스크롤한다.
|
|
══════════════════════════════════════════════════════════════ */
|
|
.cpg-calc3 { grid-template-rows: minmax(0, 1fr); }
|
|
.cpg-calc3 > .erp-card { min-height: 0; overflow: hidden; }
|
|
|
|
.cpg-calc-card .erp-table-wrap,
|
|
.cpg-calc-sum .cpg-sum-scroll,
|
|
.cpg-dist-card .cpg-dist-list {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
max-height: none;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
overscroll-behavior: contain;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
.cpg-calc-card .erp-table-wrap::-webkit-scrollbar,
|
|
.cpg-calc-sum .cpg-sum-scroll::-webkit-scrollbar,
|
|
.cpg-dist-card .cpg-dist-list::-webkit-scrollbar { width: 10px; }
|
|
.cpg-calc-card .erp-table-wrap::-webkit-scrollbar-thumb,
|
|
.cpg-calc-sum .cpg-sum-scroll::-webkit-scrollbar-thumb,
|
|
.cpg-dist-card .cpg-dist-list::-webkit-scrollbar-thumb {
|
|
background: var(--color-subtle-ash); border-radius: 999px;
|
|
}
|
|
.cpg-dist-card .cpg-dist-list::-webkit-scrollbar-thumb:hover { background: var(--color-midtone-gray); }
|
|
|
|
/* 3열이 2열/1열로 접히면 카드가 세로로 쌓여 화면 높이를 나눠 갖게 된다.
|
|
그때는 높이 제한을 풀고 내용만큼 늘어나게 두어 페이지가 스크롤되게 한다. */
|
|
@media (max-width: 1500px) {
|
|
.erp-page > .cpg { flex: 0 0 auto; min-height: auto; }
|
|
.cpg-calc3 {
|
|
grid-template-rows: none;
|
|
flex: 0 0 auto;
|
|
}
|
|
.cpg-calc3 > .erp-card { max-height: none; overflow: visible; }
|
|
.cpg-calc-card .erp-table-wrap,
|
|
.cpg-calc-sum .cpg-sum-scroll,
|
|
.cpg-dist-card .cpg-dist-list {
|
|
max-height: none;
|
|
overflow: visible;
|
|
}
|
|
}
|
|
|
|
/* ── 넓은 화면(3열): ③ 카드 자체가 스크롤러 ──
|
|
카드 높이는 그리드 행(1fr)로 화면에 맞춰져 있으므로, 카드에 스크롤을 걸면
|
|
안쪽 구조와 무관하게 항상 스크롤된다. 헤더는 위에 고정. */
|
|
@media (min-width: 1501px) {
|
|
.cpg-calc3 > .cpg-dist-card {
|
|
overflow-y: auto !important;
|
|
overflow-x: hidden !important;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
.cpg-dist-card .cpg-card-head {
|
|
position: sticky; top: 0; z-index: 3;
|
|
background: var(--color-canvas-white);
|
|
padding-bottom: 8px;
|
|
}
|
|
/* 안쪽 목록은 자연 높이 — 스크롤은 카드가 담당 */
|
|
.cpg-dist-card .cpg-dist-list {
|
|
max-height: none !important;
|
|
overflow: visible !important;
|
|
flex: 0 0 auto;
|
|
}
|
|
.cpg-calc3 > .cpg-dist-card::-webkit-scrollbar { width: 10px; }
|
|
.cpg-calc3 > .cpg-dist-card::-webkit-scrollbar-thumb {
|
|
background: var(--color-subtle-ash); border-radius: 999px;
|
|
}
|
|
.cpg-calc3 > .cpg-dist-card::-webkit-scrollbar-thumb:hover { background: var(--color-midtone-gray); }
|
|
}
|