dcc059815e
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1121 lines
41 KiB
CSS
1121 lines
41 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-card { padding: 16px; }
|
|
|
|
.cpg-center-bar {
|
|
display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
|
|
padding-bottom: 12px; border-bottom: 1px solid var(--color-subtle-ash);
|
|
}
|
|
.cpg-center-addform { display: flex; gap: 6px; align-items: center; margin: 0; flex: 1 1 320px; min-width: 0; }
|
|
.cpg-center-addinput { flex: 1 1 auto; min-width: 0; }
|
|
.cpg-center-search { flex: 0 1 240px; min-width: 0; }
|
|
|
|
.cpg-center-head { margin: 12px 0 10px; }
|
|
|
|
/* 멀티컬럼: 한 열을 위→아래로 읽고, 다 차면 다음 열로 */
|
|
.cpg-center-cols {
|
|
columns: 4 230px;
|
|
column-gap: 16px;
|
|
}
|
|
|
|
/* 그룹 = 헤더 바 + 목록 패널 */
|
|
.cpg-center-group {
|
|
break-inside: avoid; page-break-inside: avoid;
|
|
margin: 0 0 12px;
|
|
border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background: var(--color-canvas-white);
|
|
}
|
|
|
|
.cpg-center-gtitle {
|
|
display: flex; align-items: center; gap: 6px; width: 100%;
|
|
padding: 7px 10px;
|
|
border: 0; border-bottom: 1px solid var(--color-subtle-ash);
|
|
background: var(--color-ghost-gray);
|
|
cursor: pointer; text-align: left;
|
|
font-family: inherit;
|
|
}
|
|
.cpg-center-gtitle:hover { background: var(--color-subtle-ash); }
|
|
.cpg-center-gname {
|
|
flex: 1 1 auto; min-width: 0;
|
|
font-size: 12px; font-weight: 700; letter-spacing: .04em;
|
|
color: var(--color-rich-black);
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.cpg-center-gcount {
|
|
flex: 0 0 auto;
|
|
font-family: var(--font-geist-mono);
|
|
font-size: 11px; font-weight: 600; line-height: 1;
|
|
padding: 3px 6px; border-radius: 4px;
|
|
background: var(--color-canvas-white);
|
|
border: 1px solid var(--color-subtle-ash);
|
|
color: var(--color-midtone-gray);
|
|
}
|
|
/* 접기 캐럿 */
|
|
.cpg-center-caret {
|
|
flex: 0 0 auto; width: 0; height: 0;
|
|
border-left: 4px solid var(--color-midtone-gray);
|
|
border-top: 4px solid transparent;
|
|
border-bottom: 4px solid transparent;
|
|
transform: rotate(90deg);
|
|
transition: transform .12s ease;
|
|
}
|
|
.cpg-center-group.is-collapsed .cpg-center-caret { transform: rotate(0deg); }
|
|
.cpg-center-group.is-collapsed .cpg-center-glist { display: none; }
|
|
.cpg-center-group.is-collapsed .cpg-center-gtitle { border-bottom: 0; }
|
|
|
|
.cpg-center-glist { padding: 2px 0; }
|
|
|
|
.cpg-center-row {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 5px 10px;
|
|
min-width: 0;
|
|
}
|
|
.cpg-center-row + .cpg-center-row { border-top: 1px solid var(--color-ghost-gray); }
|
|
.cpg-center-row:hover { background: var(--color-ghost-gray); }
|
|
.cpg-center-dot {
|
|
flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
|
|
background: var(--color-success-green);
|
|
}
|
|
.cpg-center-row.is-inactive .cpg-center-name { color: var(--color-midtone-gray); text-decoration: line-through; }
|
|
.cpg-center-row.is-inactive .cpg-center-dot { background: var(--color-subtle-ash); }
|
|
.cpg-center-name {
|
|
flex: 1 1 auto; min-width: 0;
|
|
font-family: var(--font-geist-mono);
|
|
font-size: 13px;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
|
|
/* 행 액션: hover/focus 시에만 노출 */
|
|
.cpg-center-acts {
|
|
display: inline-flex; gap: 2px; flex: 0 0 auto;
|
|
opacity: 0; transition: opacity .12s ease;
|
|
}
|
|
.cpg-center-row:hover .cpg-center-acts,
|
|
.cpg-center-row:focus-within .cpg-center-acts { opacity: 1; }
|
|
@media (hover: none) {
|
|
.cpg-center-acts { opacity: .7; }
|
|
}
|
|
.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-center-empty { margin: 8px 0 0; }
|
|
|
|
/* 센터 관리 팝업 */
|
|
.cpg-center-dlgmsg { margin: 0; font-size: 14px; line-height: 1.5; word-break: keep-all; }
|
|
.cpg-center-dlgact { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
|
|
|
|
.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;
|
|
}
|
|
/* 등록된 제품명: 폭 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;
|
|
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-cfm-box { width: min(460px, calc(100vw - 32px)); }
|
|
.cpg-cal { border: 1px solid var(--color-subtle-ash); border-radius: 8px; overflow: hidden; }
|
|
.cpg-cal-head {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 8px;
|
|
padding: 6px 8px;
|
|
background: var(--color-ghost-gray);
|
|
border-bottom: 1px solid var(--color-subtle-ash);
|
|
font-size: 13px;
|
|
}
|
|
.cpg-cal-dow, .cpg-cal-grid {
|
|
display: grid; grid-template-columns: repeat(7, 1fr);
|
|
}
|
|
.cpg-cal-dow {
|
|
padding: 4px 6px 2px;
|
|
font-size: 11px; color: var(--color-midtone-gray); text-align: center;
|
|
}
|
|
.cpg-cal-dow > span:first-child { color: var(--color-callout-red); }
|
|
.cpg-cal-grid { gap: 2px; padding: 6px; }
|
|
.cpg-cal-cell {
|
|
border: 1px solid transparent; background: none; cursor: pointer;
|
|
font-family: var(--font-geist-mono);
|
|
font-size: 13px; line-height: 1;
|
|
padding: 7px 0; border-radius: 6px;
|
|
color: var(--color-rich-black);
|
|
}
|
|
.cpg-cal-cell.is-blank { cursor: default; }
|
|
.cpg-cal-cell.is-sun { color: var(--color-callout-red); }
|
|
.cpg-cal-cell.is-sat { color: #1a56c2; }
|
|
.cpg-cal-cell:not(.is-blank):hover { background: var(--color-ghost-gray); }
|
|
.cpg-cal-cell.is-today { border-color: var(--color-subtle-ash); font-weight: 700; }
|
|
.cpg-cal-cell.is-picked {
|
|
background: var(--color-rich-black); border-color: var(--color-rich-black);
|
|
color: var(--color-canvas-white); font-weight: 700;
|
|
}
|
|
|
|
.cpg-cfm-pick { margin: 0; font-size: 13px; font-weight: 600; }
|
|
.cpg-cfm-list { border: 1px solid var(--color-subtle-ash); border-radius: 8px; max-height: 140px; overflow-y: auto; }
|
|
.cpg-cfm-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
|
|
.cpg-cfm-row + .cpg-cfm-row { border-top: 1px solid var(--color-ghost-gray); }
|
|
.cpg-cfm-cname { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600;
|
|
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cpg-cfm-cmeta { flex: 0 0 auto; font-family: var(--font-geist-mono); font-size: 11px; color: var(--color-midtone-gray); }
|
|
.cpg-cfm-note { margin: 0; font-size: 12px; }
|
|
.cpg-cfm-act { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
|
|
.cpg-cfm-act > .erp-muted { flex: 1 1 auto; min-width: 0; font-size: 12px; }
|
|
|
|
/* 임시 저장 / 불러오기 대화상자 */
|
|
.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; }
|
|
|
|
/* 전체 배분 완료 도장 (센터 배분 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 thead th,
|
|
.cpg-prod-right .erp-table tbody td {
|
|
padding: 8px 10px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
vertical-align: middle;
|
|
}
|
|
/* 제품명 160 / 제품코드 96 / 쿠팡상품코드(남는 폭) / 상태 62 / 동작 108 */
|
|
.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: 62px; }
|
|
.cpg-prod-right .erp-table th:nth-child(5),
|
|
.cpg-prod-right .erp-table td:nth-child(5) { width: 108px; }
|
|
.cpg-prod-right .cpg-sort { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
|
|
/* 동작 버튼은 가로 한 줄 */
|
|
.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; }
|