feat(실적): 카페24(실적) 열·합계 기준 통일·공통 보기 설정·일 합계 고정

매출 실적
- "카페24" 열 → "카페24(전체)", 바로 오른쪽 "카페24(실적)" = 전체 − 자사몰(공동구매),
  광고비 줄은 카페24(전체)의 구글·메타 그대로 (예전 "공구 제외" 열 대체)
- 합계 기준 통일: 일 합계·ROAS·KPI·추이·비중·월/연 누적 = 카페24(실적) + 공동구매 + 나머지
  (카페24(전체)에 공동구매가 들어 있어 이중 합산 제거, 그래프·누적의 카페24 줄 = 카페24(실적))
- 실적 설정 "공통 보기 설정"(관리자, perf_settings, 모든 사용자 적용):
  매출 단위(예전 브라우저 쿠키 perf_unit 대체), 표 열 숨기기(열만, 합계 그대로)
  표 열 너비는 사람(브라우저)마다 그대로

매출 실적·광고비 공통
- 일 합계 열을 날짜 오른쪽으로, 날짜와 함께 가로 고정
- 이전달·다음달 = 날짜 바로 옆 진한 회색 화살표 SVG(글자 높이)
- 광고비 탭 매출 대비 광고비·합계 ROAS 도 공동구매 이중 합산 제거

CSS·JS 캐시 버전 20261102a. 새 마이그레이션 없음(011 perf_settings 사용).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 12:21:33 +09:00
parent ff3b36bf77
commit 884e654bea
15 changed files with 498 additions and 129 deletions
+15 -10
View File
@@ -87,13 +87,12 @@ a.perf-tab.is-active:link, a.perf-tab.is-active:visited { color: #fff; }
.perf-seg:hover { background: var(--color-ghost-gray); }
.perf-seg.is-active { background: var(--color-deep-black); color: #fff; }
a.perf-seg.is-active, a.perf-seg.is-active:link, a.perf-seg.is-active:visited { color: #fff; }
.perf-nav { display: inline-flex; align-items: center; gap: 6px; }
.perf-nav-btn {
font-size: 12px; padding: 5px 9px; border: 1px solid var(--perf-line); border-radius: 8px; background: #fff;
white-space: nowrap;
}
.perf-nav { display: inline-flex; align-items: center; gap: 2px; }
/* 기간 이동 화살표(2026-11-02) — 진한 회색 SVG, 높이 = 날짜 글자 크기(1em) */
.perf-nav-btn { display: inline-flex; padding: 4px 5px; border-radius: 6px; font-size: 14px; }
.perf-nav-btn:hover { background: var(--color-ghost-gray); }
.perf-nav-label { font-weight: 600; font-size: 14px; min-width: 200px; text-align: center; }
.perf-nav-btn svg { display: block; height: 1em; width: auto; fill: none; stroke: #444; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.perf-nav-label { font-weight: 600; font-size: 14px; text-align: center; }
.perf-custom { display: inline-flex; align-items: center; gap: 6px; }
.perf-custom[hidden] { display: none; }
/* 공통 .erp-input 의 min-width:240px 를 날짜칸에서만 푼다 */
@@ -368,6 +367,7 @@ td.is-link:hover { background: #eef2ff; text-decoration: underline; }
.perf-opt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.perf-opt-label { font-weight: 600; min-width: 72px; }
.perf-opt-row + .perf-opt-row { margin-top: 10px; }
.perf-hide-list { display: flex; flex-wrap: wrap; gap: 0 12px; }
/* 자동 업데이트 일정(2026-10-26) — 매출 실적·광고비 한 줄씩: 이름·사용 | 요일·시간·간격 | 다음 회차 */
.perf-auto-rows { display: flex; flex-direction: column; }
.perf-auto-row { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--perf-line); }
@@ -438,11 +438,15 @@ body.perf-dragging, body.perf-dragging * { cursor: grabbing !important; user-sel
/* ── 매출 실적 표(2026-10-22): 열 너비 = 내용 길이(모든 기간 같음), 날짜 열 고정, 그룹·하위 열 구분, 접기 애니메이션 ── */
.perf-main.perf-autofit { width: auto; }
.perf-main.perf-autofit thead th.perf-th-label, .perf-main.perf-autofit .perf-td-label { width: auto; min-width: 0; max-width: none; overflow: visible; }
/* 날짜 열 — 가로 스크롤해도 왼쪽에 고정(배경을 깔아 뒤로 지나가는 칸을 가림, 오른쪽 그림자로 경계) */
/* 날짜 열 + 일 합계 열(2026-11-02) — 가로 스크롤해도 왼쪽에 고정(배경을 깔아 뒤로 지나가는 칸을 가림, 일 합계 오른쪽 그림자로 경계).
일 합계 왼쪽 위치 = 날짜 열 너비(자동 너비라 performance.js stickyHead 가 --perf-label-w 로 넣는다) */
.perf-main.perf-autofit .perf-th-label, .perf-main.perf-autofit .perf-td-label {
position: sticky; left: 0; z-index: 2; box-shadow: inset -1px 0 0 #e3e3e3, 6px 0 6px -6px rgba(0, 0, 0, .22);
position: sticky; left: 0; z-index: 2; box-shadow: inset -1px 0 0 #e3e3e3;
}
.perf-main.perf-autofit thead th.perf-th-label { z-index: 4; }
.perf-main.perf-autofit .perf-th-total, .perf-main.perf-autofit .perf-td-total {
position: sticky; left: var(--perf-label-w, 0); z-index: 2; box-shadow: inset -1px 0 0 #e3e3e3, 6px 0 6px -6px rgba(0, 0, 0, .22);
}
.perf-main.perf-autofit thead th.perf-th-label, .perf-main.perf-autofit thead th.perf-th-total { z-index: 4; }
:where(.perf-main.perf-autofit) .perf-td-label { background: #fff; } /* 주간합계·기간 합계 줄 배경은 그 줄 규칙 그대로 */
/* 그룹 열 = 진한 보라 머리 + 왼쪽 묶음 선, 하위 열 = 옅은 보라 머리(위 띠) + 옅은 칸, 마지막 하위 열(접히면 그룹 열)이 오른쪽 묶음 선 */
.perf-main th.perf-th-group { background: #e6defa; color: #3d1d8a; font-weight: 800; box-shadow: inset 2px 0 0 #8a6fd8; }
@@ -491,9 +495,10 @@ body.perf-dragging, body.perf-dragging * { cursor: grabbing !important; user-sel
날짜 칸 가로 고정(sticky left)은 그대로. 연간 보기 "연간 합계"는 맨 아래 그대로(제목 행만 고정). */
.perf-main-wrap { overflow-x: auto; overflow-y: hidden; }
.perf-main-wrap .perf-main thead th { z-index: 3; }
.perf-main-wrap .perf-main thead th.perf-th-label { z-index: 5; }
.perf-main-wrap .perf-main thead th.perf-th-label, .perf-main-wrap .perf-main thead th.perf-th-total { z-index: 5; }
.perf-main-wrap .perf-main tbody tr.perf-row-total:first-child > * { position: relative; z-index: 2; }
.perf-main-wrap .perf-main tbody tr.perf-row-total:first-child > .perf-td-label { position: sticky; left: 0; z-index: 4; }
.perf-main-wrap .perf-main tbody tr.perf-row-total:first-child > .perf-td-total { position: sticky; left: var(--perf-label-w, 0); z-index: 4; }
/* 내려온 제목 행 아래 1px — 표 칸 사이 선(border-collapse)은 칸과 함께 안 움직여 그 틈으로 뒤 줄 글자가 비쳤다 → 칸이 직접 선을 그림 */
.perf-main-wrap.is-stuck .perf-main thead th::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--perf-line); }
/* 스크롤 막대 배경(트랙) 투명(2026-10-27) — 표 상자 가로 막대·실적 화면 세로 막대. 손잡이만 옅은 회색 */