diff --git a/app/modules/performance/templates/performance/index.html b/app/modules/performance/templates/performance/index.html index a7e0148..acad170 100644 --- a/app/modules/performance/templates/performance/index.html +++ b/app/modules/performance/templates/performance/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {%- macro won(v) -%} {%- if v is none -%} @@ -239,4 +239,4 @@ } | tojson }} {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/modules/performance/templates/performance/settings.html b/app/modules/performance/templates/performance/settings.html index 99e7a08..06da1de 100644 --- a/app/modules/performance/templates/performance/settings.html +++ b/app/modules/performance/templates/performance/settings.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {%- macro when(v) -%}{{ (v or '')[:16] | replace('T', ' ') or '—' }}{%- endmacro -%} @@ -155,4 +155,4 @@ {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/static/performance.css b/app/static/performance.css index d6ed4bc..1231438 100644 --- a/app/static/performance.css +++ b/app/static/performance.css @@ -2,13 +2,16 @@ 실적(쇼핑몰 통합 매출) — 정보 밀도 높은 관리자 대시보드. 기존 ERP 토큰(erp.css :root) 위에서만 쓴다. 색은 증감·상태·주말에만. ════════════════════════════════════════════════════ */ -.perf { +/* 색 변수 — 창(.perf-modal)은 document.body 에 붙어 .perf 밖이라 같이 정의한다 */ +.perf, .perf-modal { --perf-line: var(--color-subtle-ash); --perf-soft: #fafafa; --perf-up: #0f8a3a; --perf-down: var(--color-callout-red); --perf-sat: #1d4ed8; --perf-sun: var(--color-callout-red); +} +.perf { display: flex; flex-direction: column; gap: 12px; font-variant-numeric: tabular-nums; } @@ -223,4 +226,6 @@ td.is-link:hover { background: #eef2ff; text-decoration: underline; } text-align: center; font-weight: 700; font-size: 18px; color: var(--color-deep-black, #111); position: sticky; top: -12px; z-index: 2; } -.perf-ev-table td.perf-ev-kind-cancel { font-style: italic; text-decoration: line-through; color: #9a9a9a; } +.perf-ev-table thead th { background: var(--perf-soft, #fafafa); box-shadow: 0 1px 0 var(--perf-line, #e5e5e5); } +/* 취소 행 — 행 전체를 기울임 + 취소선 + 회색 */ +.perf-ev-table tr.is-cancel td { font-style: italic; text-decoration: line-through; color: #9a9a9a; } diff --git a/app/static/performance.js b/app/static/performance.js index 2a74e43..7bc5037 100644 --- a/app/static/performance.js +++ b/app/static/performance.js @@ -187,9 +187,8 @@ const body = rows.map(function (r) { sum += r.amount; if (r.amount >= 0) sales += r.amount; else minus += r.amount; - return '