1d33761003
- 수동 등록 카드 제거
- 왼쪽: itemcode_db 전체 목록(낱개+세트) 다중선택, 등록된 항목 진회색+흰글씨
/cupang/api/products/all + /cupang/products/bulk(JSON 일괄 upsert)
- 오른쪽: 등록 제품명 목록 — 제품명/코드/상태 + 활성·비활성 토글 + 완전삭제
/products/{id}/active (토글), /products/{id}/delete (hard delete)
- ItemcodeReader.list_all 추가
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
162 lines
7.0 KiB
CSS
162 lines
7.0 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-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; }
|
|
.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, minmax(200px, 1fr));
|
|
gap: 12px 16px;
|
|
}
|
|
.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-lines td { vertical-align: middle; }
|
|
.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: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
gap: 16px; align-items: start;
|
|
}
|
|
@media (max-width: 980px) { .cpg-prod-layout { grid-template-columns: 1fr; } }
|
|
|
|
.cpg-src-list {
|
|
max-height: 520px; overflow-y: auto;
|
|
border: 1px solid var(--color-subtle-ash); border-radius: 10px;
|
|
}
|
|
.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; }
|
|
|
|
/* ── 상품 검색 드롭다운 ── */
|
|
.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); }
|