feat(project): month-bounded meeting weeks, weekly sales targets, sticky header

- Weeks stay inside the month: week 1 starts on the 1st (through the next
  Sunday if the 1st is a weekend); a trailing Mon/Tue joins the last week.
  "Last week" is the previous period.
- Prev-week review columns: 전주 업무 | 결과(text, new result_note) |
  전주 목표 | 결과(amount).
- Header now shows month target, cumulative weekly target, month-to-date
  sales and gap (amount + %), with decisions/notes beside it; the area
  stays fixed while scrolling.
- Goals board: the monthly sales target is entered per week; the sum
  becomes the month target.
- Migration 020: result_note, goal_week_targets, drop Monday-only check,
  move absorbed Monday meetings to the new week start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 11:24:41 +09:00
parent 9194487217
commit cd3577b299
21 changed files with 751 additions and 250 deletions
+47 -13
View File
@@ -2501,17 +2501,28 @@ html.pj-goal-selecting, html.pj-goal-selecting * { user-select: none !important;
.pj-meet-sync.is-warn { background: #fff4ec; color: #b45309; }
@keyframes pj-meet-spin { to { transform: rotate(360deg); } }
@media print { .pj-meet-sync { display: none !important; } }
/* 숫자 — 한 줄 막대(칸 9개, 좁으면 두 줄). 설명 문구는 말풍선(title) */
/* 위쪽 고정 영역(2026-10-07) — 왼쪽 절반 숫자 4칸 | 오른쪽 절반 결정 사항·메모. 스크롤해도 위에 붙는다(.pj-meet-pane 기준).
표 머리 줄은 이 높이(--pj-meet-top-h, project.js initMeetTop) 아래에 붙는다. 설명 문구는 말풍선(title) */
.pj-meet-top {
position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
align-items: stretch; padding: 0 0 10px; background: #fff;
}
.pj-meet-kpibar {
display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin-bottom: 10px;
display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: stretch;
border: 1px solid var(--pj-border); border-radius: 10px; background: #fff; overflow: hidden;
}
.pj-meet-kpis { display: contents; }
.pj-meet-kpi { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; min-width: 0; border-right: 1px solid var(--pj-border); }
.pj-meet-kpis.is-week .pj-meet-kpi:last-child { border-right: none; }
.pj-meet-kpis:not(.is-week) .pj-meet-kpi:last-child { border-right: 2px solid #d5d9de; } /* 월 | 주 경계 */
.pj-meet-kpi { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 12px; min-width: 0; border-right: 1px solid var(--pj-border); }
.pj-meet-kpi:last-child { border-right: none; }
.pj-meet-kpi.is-accent { background: #faf9ff; }
.pj-meet-kpi.is-input { background: #fffaf4; }
.pj-meet-kpi-sub.is-good { color: #1f8a4c; font-weight: 700; }
.pj-meet-kpi-sub.is-low { color: #c2410c; font-weight: 700; }
.pj-meet-kpi-link { color: var(--pj-accent-dark); text-decoration: none; }
.pj-meet-kpi-link:hover { text-decoration: underline; }
.pj-meet-top .pj-meet-notes { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.pj-meet-top .pj-meet-notes h3 { margin: 0 0 4px; font-size: 13px; }
.pj-meet-top .pj-meet-notes textarea, .pj-meet-top .pj-meet-notes .pj-meet-ro {
flex: 1 1 auto; min-height: 64px; max-height: 140px; overflow-y: auto; padding: 8px 10px;
}
.pj-meet-kpi-label { font-size: 11px; color: var(--pj-ink-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-meet-kpi-label small { font-weight: 500; }
.pj-meet-kpi-val { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 2px; white-space: nowrap; }
@@ -2523,7 +2534,7 @@ html.pj-goal-selecting, html.pj-goal-selecting * { user-select: none !important;
font-size: 14px; font-weight: 800; height: 24px; width: 100%; text-align: left;
border: 1px solid #f3d2b0; border-radius: 6px; background: #fff; padding: 0 6px;
}
@media (max-width: 1300px) { .pj-meet-kpibar { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1300px) { .pj-meet-kpibar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-meet-kpi:nth-child(2) { border-right: none; } .pj-meet-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--pj-border); } }
/* 이 달 계획 — 연간 목표 표의 그 달 열(업무 영역별 작은 카드) */
.pj-meet-plan { margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--pj-border); border-radius: 10px; background: #fff; }
@@ -2587,11 +2598,11 @@ html.pj-goal-selecting, html.pj-goal-selecting * { user-select: none !important;
}
.pj-meet-table tr > :last-child { border-right: none; }
.pj-meet-table thead th {
position: sticky; top: 0; z-index: 3; background: #f7f8f9; height: 32px; padding: 0 8px; font-weight: 700;
position: sticky; top: var(--pj-meet-top-h, 0px); z-index: 3; background: #f7f8f9; height: 32px; padding: 0 8px; font-weight: 700;
text-align: center; vertical-align: middle; white-space: nowrap;
}
.pj-meet-table thead tr.pj-meet-group th { top: 0; height: 26px; font-size: 12px; }
.pj-meet-table thead tr:nth-child(2) th { top: 26px; }
.pj-meet-table thead tr.pj-meet-group th { top: var(--pj-meet-top-h, 0px); height: 26px; font-size: 12px; }
.pj-meet-table thead tr:nth-child(2) th { top: calc(var(--pj-meet-top-h, 0px) + 26px); }
.pj-meet-table thead th.is-this { background: #fff7ed; color: #9a4b0b; }
/* 이번주 ↔ 지난주 순서 바꾸기 버튼(표 왼쪽 위 빈 칸) */
.pj-meet-order-cell { vertical-align: middle; }
@@ -2627,11 +2638,13 @@ th.pj-meet-c-label { position: relative; font-weight: 600; color: #3b4048; text-
.pj-meet-more { position: absolute; top: 3px; right: 2px; width: 24px; height: 24px; opacity: 0; transition: opacity .12s; }
.pj-meet-more .material-symbols-outlined { font-size: 18px; }
th.pj-meet-c-label:hover .pj-meet-more, .pj-meet-more:focus { opacity: 1; }
textarea.pj-meet-text, .pj-meet-notes textarea {
textarea.pj-meet-text, textarea.pj-meet-rnote, .pj-meet-notes textarea {
display: block; width: 100%; box-sizing: border-box; min-height: 38px; padding: 6px; border: none; background: transparent;
font: inherit; line-height: var(--pj-text-leading); color: inherit; resize: none; overflow: hidden;
}
textarea.pj-meet-text:focus { outline: none; }
textarea.pj-meet-text:focus, textarea.pj-meet-rnote:focus { outline: none; }
textarea.pj-meet-rnote { min-height: calc(var(--pj-text-leading) + 12px); padding: 6px; }
textarea.pj-meet-rnote::placeholder { color: rgba(0, 0, 0, .28); }
/* 같은 행의 가장 긴 내용으로 높이를 정하고, 짧은 셀은 위에서 시작한다. */
textarea.pj-meet-text { min-height: calc(var(--pj-text-leading) + 12px); }
.pj-meet-notes textarea:focus { outline: 2px solid var(--pj-accent); outline-offset: -2px; background: rgba(255, 255, 255, .8); }
@@ -2670,10 +2683,31 @@ input.pj-meet-amount::placeholder { color: rgba(0, 0, 0, .28); }
.erp-sidebar, .erp-topbar, .pj-side, .pj-goal-head-acts, .pj-meet-weeks, .pj-goal-foot, .pj-meet-more, .pj-meet-sec-add,
.pj-meet-goalbtn, .pj-meet-title .pj-btn { display: none !important; }
.pj-meet-pane { overflow: visible; }
.pj-meet-top { position: static; }
.pj-meet-table thead th { position: static; }
input.pj-meet-amount { border: none; appearance: none; }
}
/* 목표 표 — 매출 목표 칸(주차별 입력, 020): 누르면 주차 입력 창 */
.pj-goal-numtd.is-weekly .pj-goal-num { cursor: pointer; }
.pj-goal-numtd.is-weekly input.pj-goal-num:hover { background: var(--pj-accent-tint); }
.pj-goal-wkpop {
position: fixed; z-index: 1000; width: 260px; padding: 10px 12px; background: #fff; border: 1px solid var(--pj-border);
border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .16); font-size: 13px;
}
.pj-goal-wkpop-head { font-weight: 700; margin-bottom: 8px; }
.pj-goal-wkpop-head small { font-weight: 500; color: var(--pj-ink-soft); }
.pj-goal-wkpop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; }
.pj-goal-wkpop-row em { font-style: normal; color: var(--pj-ink-soft); font-size: 12px; }
.pj-goal-wkpop-row input {
width: 100px; height: 26px; padding: 0 6px; border: 1px solid var(--pj-border); border-radius: 6px; font: inherit;
text-align: right; font-variant-numeric: tabular-nums;
}
.pj-goal-wkpop-row input[readonly] { background: #f7f8f9; }
.pj-goal-wkpop-sum { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--pj-border); }
.pj-goal-wkpop-sum b { font-variant-numeric: tabular-nums; }
.pj-goal-wkpop-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
/* 영역 색 고르기 팝업(body 에 붙음) */
.pj-goal-colorpop {
position: fixed; z-index: 1000; display: grid; grid-template-columns: repeat(8, 26px); gap: 6px;