45807e545d
This reverts commit 47e09b94d7.
698 lines
26 KiB
CSS
698 lines
26 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: hidden; }
|
|
.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-center-layout {
|
|
display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
|
|
}
|
|
.cpg-center-add {
|
|
width: 360px; flex: 0 0 auto;
|
|
padding: 16px;
|
|
}
|
|
.cpg-center-listcard {
|
|
flex: 1 1 480px; min-width: 0;
|
|
height: 900px;
|
|
display: flex; flex-direction: column; overflow: hidden;
|
|
}
|
|
@media (max-width: 820px) {
|
|
.cpg-center-add, .cpg-center-listcard { width: 100%; flex-basis: 100%; }
|
|
}
|
|
|
|
.cpg-center-add-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
|
|
.cpg-btn-sm { padding: 3px 8px; font-size: 12px; }
|
|
|
|
/* 목록: 카드 높이 채우고 내부 스크롤 */
|
|
.cpg-center-list {
|
|
flex: 1 1 auto; min-height: 0; overflow-y: auto;
|
|
display: flex; flex-direction: column; gap: 6px;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.cpg-center-row {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 5px 8px;
|
|
border: 1px solid var(--color-subtle-ash); border-radius: 10px;
|
|
min-width: 0;
|
|
}
|
|
.cpg-center-row.is-inactive { opacity: .55; }
|
|
.cpg-center-edit { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
|
|
.cpg-center-name { flex: 1 1 auto; min-width: 0; }
|
|
.cpg-center-sort { width: 56px; flex: 0 0 auto; }
|
|
.cpg-center-state { display: inline-flex; gap: 4px; flex: 0 0 auto; }
|
|
.cpg-center-act { display: inline-flex; gap: 4px; 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;
|
|
}
|
|
/* 등록된 제품명: 폭 600 / 높이 900 고정, 내부 스크롤 */
|
|
.cpg-prod-right {
|
|
width: 600px; height: 900px;
|
|
display: flex; flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
@media (max-width: 1180px) {
|
|
.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;
|
|
max-height: min(58vh, 560px);
|
|
}
|
|
.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: auto; max-height: min(78vh, 900px); }
|
|
|
|
/* 제품명 설정 — 수기 추가 폼 */
|
|
.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; }
|
|
}
|
|
@media (max-width: 1000px) {
|
|
.cpg-calc3 { grid-template-columns: minmax(0, 1fr); }
|
|
.cpg-calc3 > .cpg-dist-card { grid-column: auto; }
|
|
}
|
|
|
|
/* ② 요약: 카드가 드래그 가능함을 알린다 */
|
|
.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;
|
|
padding: 10px 12px;
|
|
}
|
|
.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;
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
}
|
|
/* 드롭 대상은 센터 패널 전체 */
|
|
.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: 0;
|
|
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 { display: flex; gap: 8px; margin-bottom: 10px; }
|
|
.cpg-center-pick .erp-select { flex: 1 1 auto; min-width: 0; }
|
|
.cpg-dist-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
|
.cpg-dist-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
}
|
|
.cpg-dist-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cpg-dist-qty { width: 62px; min-width: 0; text-align: right; padding: 2px 6px; }
|
|
.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); }
|