bcbf3de24c
- 엑셀(N월) 버튼 제거 - 제품명 설정 / 입고센터 관리 / 박스 입수량 설정 로 명칭 통일, 우측 정렬 - 캐시 버전 j Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
286 lines
12 KiB
CSS
286 lines
12 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; }
|
|
|
|
/* ── 레이아웃: 왼쪽 큰 달력 + 오른쪽 리스트 ── */
|
|
.cpg-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 320px;
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
@media (max-width: 980px) { .cpg-layout { grid-template-columns: 1fr; } }
|
|
|
|
.cpg-cal-card, .cpg-list-card { padding: 16px; }
|
|
|
|
.cpg-cal-head {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
.cpg-cal-title { font-size: 18px; font-weight: 600; letter-spacing: -0.45px; margin: 0; }
|
|
.cpg-nav-btn { min-width: 36px; padding: 4px 10px; font-size: 16px; line-height: 1; }
|
|
|
|
.cpg-cal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 6px;
|
|
}
|
|
.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: 96px; padding: 8px;
|
|
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; }
|
|
|
|
/* ── 폼 ── */
|
|
.cpg-form-card { padding: 16px; margin-bottom: 16px; }
|
|
|
|
/* 공통 헤더(좌) + 품목 라인(우) 2열 */
|
|
.cpg-form-2col {
|
|
display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
|
|
}
|
|
/* 공통 헤더: 너비 450 고정 */
|
|
.cpg-form-head { flex: 0 0 450px; width: 450px; min-width: 0; margin-bottom: 0; }
|
|
/* 품목 라인: 900x900 고정, 내부 스크롤 */
|
|
.cpg-form-lines {
|
|
flex: 0 0 900px; width: 900px; height: 900px; 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-search-pop {
|
|
position: absolute; z-index: 50;
|
|
background: #fff; border: 1px solid var(--color-subtle-ash);
|
|
border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.08);
|
|
max-height: 260px; overflow-y: auto; min-width: 280px;
|
|
}
|
|
.cpg-search-item { padding: 8px 12px; cursor: pointer; font-size: 13px; }
|
|
.cpg-search-item:hover, .cpg-search-item.is-active { background: var(--color-ghost-gray); }
|
|
.cpg-search-item .cpg-sc { font-weight: 600; }
|
|
.cpg-search-item .cpg-sn { color: var(--color-midtone-gray); margin-left: 8px; }
|
|
.cpg-search-empty { padding: 10px 12px; font-size: 12px; color: var(--color-midtone-gray); }
|