/* ════════════════════════════════════════════════════ 실적(쇼핑몰 통합 매출) — 정보 밀도 높은 관리자 대시보드. 기존 ERP 토큰(erp.css :root) 위에서만 쓴다. 색은 증감·상태·주말에만. ════════════════════════════════════════════════════ */ /* 색 변수 — 창(.perf-modal)은 document.body 에 붙어 .perf 밖이라 같이 정의한다 */ .perf, .perf-modal { --perf-line: var(--color-subtle-ash); --perf-soft: #fafafa; --perf-up: #0f8a3a; --perf-good: #1a56db; /* 증감 표시 좋음(파랑) — 나쁨은 --perf-down(빨강) */ --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; } /* 공통 .erp-page 는 width:100% + padding 이라 부모보다 48px 넓어져 오른쪽이 잘린다. 전역 규칙은 다른 모듈에 영향이 있어, 실적 화면이 들어 있을 때만 border-box 로 맞춘다. */ .erp-page:has(> .perf) { box-sizing: border-box; } .perf, .perf > * { min-width: 0; } .perf-muted { color: var(--color-midtone-gray); font-size: 12px; } .perf-nowrap { white-space: nowrap; } .perf-center { text-align: center; } /* 탭 */ /* [매출 실적] [광고비] — 큰 알약 탭 둘, 고른 탭은 채운 색(매출 = 검정, 광고비 = 주황)으로 한눈에 구분. 설정은 맨 오른쪽 톱니 아이콘(프로젝트 모듈과 같은 Material Symbols "settings"). */ .perf-tabs { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--perf-line); } .perf-tabs-main { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--color-ghost-gray, #f3f3f3); } .perf-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--color-midtone-gray); text-decoration: none; transition: background .15s, color .15s, box-shadow .15s; } .perf-tab .material-symbols-outlined { font-size: 19px; } .perf-tab:hover { color: var(--color-rich-black); background: rgba(255, 255, 255, .7); } .perf-tab.is-active { color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); } .perf-tab-sales.is-active, .perf-tab-sales.is-active:hover { background: var(--color-deep-black, #1e1f21); } .perf-tab-ads.is-active, .perf-tab-ads.is-active:hover { background: var(--perf-ad, #d9480f); } .perf-tab-tiktok.is-active, .perf-tab-tiktok.is-active:hover { background: var(--perf-tiktok, #e11d48); } a.perf-tab.is-active:link, a.perf-tab.is-active:visited { color: #fff; } .perf-tab-gear { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--color-midtone-gray); text-decoration: none; } .perf-tab-gear .material-symbols-outlined { font-size: 22px; } .perf-tab-gear:hover { color: var(--color-rich-black); background: var(--color-ghost-gray, #f3f3f3); } .perf-tab-gear.is-active { color: #fff; background: var(--color-deep-black, #1e1f21); } /* 광고비 화면 — 주황 강조(매출 실적과 구분) */ .perf, .perf-modal { --perf-ad: #d9480f; } .perf-ads .perf-quick .perf-seg.is-active { background: var(--perf-ad); } .perf-ads .perf-chart .bar { fill: var(--perf-ad); } .perf-ads td.is-upload .v-gross { color: var(--perf-ad); } /* 광고 API(구글 광고 등)로 가져온 칸 — 초록 숫자 */ .perf-ads td.is-api .v-gross { color: #1e8e3e; } /* 틱톡 화면 — 광고비 화면 틀에 색만 바꿈 */ .perf, .perf-modal { --perf-tiktok: #e11d48; } .perf-tiktok .perf-quick .perf-seg.is-active { background: var(--perf-tiktok); } .perf-tiktok .perf-chart .bar { fill: var(--perf-tiktok); } .perf-ad-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } /* 광고 API 설정 창 — 서비스 계정 JSON 같은 여러 줄 항목 */ .perf-cred-multi { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12px; resize: vertical; } /* "광고비(ROAS%)" — ROAS 는 작게 옅게 붙인다. 입력 중엔 숫자처럼 자리만 남기고 숨김 */ .perf-roas { margin-left: 2px; font-size: 11px; font-weight: 500; color: var(--color-midtone-gray); } .perf-row-total .perf-roas { color: #bbb; } .perf .perf-main td.is-editing .perf-roas { visibility: hidden; } /* 네이버 머리글 = 일자별 보고서 항목 보기 버튼 */ .perf-detail-btn { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--perf-ad); cursor: pointer; padding: 2px 4px; border-radius: 6px; } .perf-detail-btn .material-symbols-outlined { font-size: 16px; } .perf-detail-btn:hover { background: #fff1ea; text-decoration: underline; } .perf-detail-table th, .perf-detail-table td { white-space: nowrap; } /* 상세보기 [합계 | 계정…] 탭(메타 — 여러 광고 계정) */ .perf-detail-tabs { flex-wrap: wrap; margin-bottom: 10px; } .perf-detail-tabs .perf-seg.is-active { background: var(--perf-ad); } .perf-ad-upload-btn { margin-left: auto; } /* 도구 막대 */ .perf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .perf-quick, .perf-metric { display: inline-flex; border: 1px solid var(--perf-line); border-radius: 10px; padding: 2px; background: #fff; } .perf-seg { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 8px; cursor: pointer; color: var(--color-rich-black); white-space: nowrap; } .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: 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-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 를 날짜칸에서만 푼다 */ .perf .erp-input.perf-date { width: 150px; min-width: 0; flex: 0 0 auto; padding: 5px 8px !important; font-size: 12px !important; } .perf-modal .erp-input.perf-date { width: 150px; min-width: 0; } .perf-filter { position: relative; } .perf-filter > summary { list-style: none; cursor: pointer; } .perf-filter > summary::-webkit-details-marker { display: none; } .perf-filter-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--perf-line); border-radius: 12px; padding: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); display: flex; flex-direction: column; gap: 4px; } .perf-check { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 2px; cursor: pointer; } .perf-filter-act { display: flex; justify-content: space-between; margin-top: 6px; } .perf-update { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; } .perf-update b { color: var(--color-rich-black); font-weight: 600; } /* 알림 */ .perf-notice { font-size: 12.5px; padding: 8px 12px; border-radius: 10px; background: var(--perf-soft); border: 1px solid var(--perf-line); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; } .perf-notice[hidden] { display: none; } .perf-notice.is-warn { background: #fff7f5; border-color: #f3d2ca; } .perf-notice.is-ok { background: #f3fbf5; border-color: #cdeccf; } /* 수동 입력 엑셀 업로드 — 버튼은 표시 기준 버튼 바로 왼쪽, 창 안 파일 칸·오류 목록 */ .perf-manual-upload-btn { margin-left: auto; } /* 엑셀 초록(쿠팡 [엑셀 다운로드] 와 같은 색) — .erp-btn-outline 을 이기도록 .erp-btn 과 함께 */ .erp-btn.perf-manual-upload-btn { background: #217346; border-color: #217346; color: #fff; } .erp-btn.perf-manual-upload-btn:hover { background: #1a5c38; border-color: #1a5c38; color: #fff; } .perf-upload-file { width: 100%; box-sizing: border-box; } .perf-upload-result { margin-top: 10px; } .perf-upload-result .perf-notice { margin: 0; display: block; line-height: 1.6; } .perf-upload-errors { margin: 6px 0 0; padding-left: 18px; max-height: 220px; overflow-y: auto; font-size: 12px; line-height: 1.6; color: #b42318; } .perf-problem { padding: 1px 8px; border-radius: 999px; background: #fbe9e6; color: var(--perf-down); font-weight: 500; } /* KPI */ /* 매출 실적 KPI 한 줄(2026-10-19) — 수수료 차감 매출 금액 + 비교 기간 대비 %, 화면 왼쪽 */ .perf-kpi-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 2px 2px 0; } .perf-kpi-line-value { font-size: 22px; font-weight: 700; letter-spacing: -.5px; color: var(--color-rich-black); white-space: nowrap; } /* 광고비 KPI 한 줄(2026-10-30) — 항목(이름 + 금액 + 대비 %) 여럿을 세로 선으로 나눔, 첫 항목(광고비)만 큰 글자 */ .perf-ads .perf-kpi-line { column-gap: 0; row-gap: 4px; } .perf-kpi-item { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; } .perf-kpi-item + .perf-kpi-item { border-left: 1px solid var(--perf-line); margin-left: 14px; padding-left: 14px; } .perf-kpi-line-value.is-sub { font-size: 17px; } /* 다음 자동 업데이트까지 남은 시간(초 단위) — 숫자 폭이 바뀌어도 흔들리지 않게 */ .perf-next-update b { font-variant-numeric: tabular-nums; } .perf-refresh-note { color: var(--perf-up); font-weight: 600; } /* 자동 업데이트 끝 → 새로 고침 안내 */ .perf-delta { font-weight: 600; } .perf-delta.is-up { color: var(--perf-good); } /* is-up = 좋음(수수료는 줄어야 좋음, invert) */ .perf-delta.is-down { color: var(--perf-down); } .perf-delta.is-flat { color: var(--color-midtone-gray); } /* 카드 */ .perf-card { padding: 12px 14px; } .perf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; } .perf-h { margin: 0; font-size: 14px; font-weight: 600; } .perf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .perf-grid2 > .perf-card-wide { grid-column: 1 / -1; } /* 표가 넓은 카드(매출 대조)는 한 줄 전체 */ .perf-foot { margin: 8px 0 0; line-height: 1.5; } /* 표 */ .perf-table-wrap { overflow-x: auto; } .perf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .perf-table th, .perf-table td { padding: 6px 8px; border-bottom: 1px solid #efefef; white-space: nowrap; } /* 열 제목 — 가운데·굵게·검정(2026-10-12) */ .perf-table thead th { font-size: 12px; font-weight: 700; color: #000; text-align: center; background: var(--perf-soft); border-bottom: 1px solid var(--perf-line); position: sticky; top: 0; } .perf-table thead th.perf-th-label { text-align: center; } .perf-td-label { text-align: left; font-weight: 500; } .perf-num { text-align: right; } .perf-zero { color: #c9c9c9; } .perf-na::before { content: ""; } .perf-th-total, .perf-td-total { background: #f6f6f6; font-weight: 600; } /* 날짜 열 너비 고정(210px) — 공휴일 이름이 날짜 오른쪽에 붙는다 */ .perf-main thead th.perf-th-label, .perf-main .perf-td-label { width: 210px; min-width: 210px; max-width: 210px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; } .perf-row-day.is-sat .perf-td-label { color: var(--perf-sat); } .perf-row-day.is-sun .perf-td-label { color: var(--perf-sun); } .perf-row-day.is-today .perf-td-label::after { content: "오늘"; margin-left: 6px; font-size: 10px; padding: 0 5px; border-radius: 999px; background: var(--color-deep-black); color: #fff; vertical-align: 1px; } .perf-row-day.is-future td, .perf-row-month.is-future td, .perf-year tr.is-future td { color: #c9c9c9; } .perf-hol { display: inline; margin-left: 6px; font-size: 11px; font-weight: 400; } .perf-row-week th, .perf-row-week td { background: #f3f3f3; font-weight: 600; border-bottom: 1px solid var(--perf-line); } .perf-row-week .perf-td-total { background: #e9e9e9; } .perf-row-total th, .perf-row-total td { background: var(--color-deep-black); color: #fff; font-weight: 600; border-bottom: 0; } .perf-row-total .perf-zero { color: #777; } td.is-link { cursor: pointer; } td.is-link:hover { background: #eef2ff; text-decoration: underline; } /* 표시 기준 전환 — 한 칸에 3값, data-metric 으로 하나만 보인다 */ .perf .v { display: none; } /* 수동 입력 칸 — 설정에서 켠 쇼핑몰의 날짜 칸. 파란 숫자 = 수동 입력값, 입력 중엔 숫자 대신 입력칸 */ .perf-manual-mark { font-size: 11px; color: #1a56db; font-weight: 400; } .perf-main td.is-manual-cell { cursor: text; position: relative; } .perf-main td.is-manual-cell:hover { background: #eef3ff; box-shadow: inset 0 0 0 1px #c7d6fb; } .perf-main td.is-manual-cell:focus { outline: 2px solid #1a56db; outline-offset: -2px; } .perf-main td.is-manual .v-gross { color: #1a56db; font-weight: 600; } /* 광고비 탭 직접 입력값은 파랑 보통 굵기(2026-10-21) — 굵게는 계산식 칸만 */ .perf-ads td.is-manual .v-gross { font-weight: 400; } /* 계산식(1000+2000)으로 입력한 칸 — 파랑 굵은 숫자(매출 실적은 보기 기준 금액 모두) */ .perf-main td.is-manual.is-formula .v { color: #1a56db; font-weight: 700; } .perf-main td.is-stale .v-commission, .perf-main td.is-stale .v-net { opacity: .4; } /* 입력칸은 칸 위에 겹쳐 띄운다(표 배치에서 빠짐) — 숫자는 자리만 남기고 숨겨 열 너비가 그대로 */ .perf .perf-main td.is-editing .v { visibility: hidden; } .perf-manual-input { position: absolute; top: 2px; right: 2px; bottom: 2px; left: 2px; width: auto; min-width: 0; height: auto; box-sizing: border-box; margin: 0; padding: 0 6px; border: 1px solid #1a56db; border-radius: 4px; font: inherit; text-align: right; background: #fff; outline: none; } .perf-manual-help { margin: 8px 2px 0; font-size: 12px; } .perf[data-metric="gross"] .v-gross, .perf[data-metric="commission"] .v-commission, .perf[data-metric="net"] .v-net { display: inline; } /* 비중 막대 */ .perf-share { position: relative; min-width: 110px; } .perf-bar { position: absolute; left: 8px; bottom: 3px; height: 3px; width: calc((100% - 16px) * var(--w) / 100); background: #d4d4d4; border-radius: 2px; } /* 연간 요약 */ .perf-year-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; } .perf-year-sum div { background: var(--perf-soft); border: 1px solid #efefef; border-radius: 10px; padding: 8px 10px; } .perf-year-sum span { display: block; font-size: 11.5px; color: var(--color-midtone-gray); } .perf-year-sum b { font-size: 16px; font-weight: 600; } /* 그래프(SVG, performance.js 가 그림) */ .perf-chart { min-height: 220px; } .perf-chart svg { display: block; width: 100%; height: auto; } .perf-chart text { font-size: 10.5px; fill: var(--color-midtone-gray); font-family: var(--font-geist); } .perf-chart .bar { fill: #1f1f1f; } .perf-chart .bar.is-neg { fill: var(--perf-down); } .perf-chart .bar:hover { fill: #555; } .perf-chart .grid { stroke: #efefef; } .perf-chart .axis { stroke: #d4d4d4; } .perf-chart-empty { color: var(--color-midtone-gray); font-size: 12px; padding: 80px 0; text-align: center; } /* 상세(Drill-down) 창 */ .perf-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; padding: 20px; } .perf-modal-card { background: #fff; border-radius: 14px; width: min(1100px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); } .perf-modal-card.is-narrow { width: min(560px, 100%); } .perf-modal-card.is-wide { width: min(1640px, 100%); } /* 주문 내역 — 열이 많아 넓게 */ .perf-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--perf-line); } .perf-modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; } .perf-modal-body { padding: 12px 16px; overflow: auto; } .perf-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--perf-line); flex-wrap: wrap; align-items: center; } .perf-modal-x { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--color-midtone-gray); } .perf-ev-cancel td { color: var(--perf-down); } /* 설정 */ .perf-set-table td, .perf-set-table th { vertical-align: middle; } .perf-set-table thead th { text-align: left; } .perf-set-table thead th:nth-child(2), .perf-set-table thead th:nth-child(3) { text-align: center; } .perf-set-table thead th:nth-child(4) { text-align: right; padding-right: 60px; } .perf-rate-cell { white-space: nowrap; } .perf-rate { display: inline-block; min-width: 56px; text-align: right; font-weight: 600; margin-right: 4px; } .perf-pill { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--color-ghost-gray); color: var(--color-midtone-gray); white-space: nowrap; } .perf-pill.is-ok { background: #e6f8e9; color: #0f8a3a; } .perf-pill.is-bad { background: #fbe9e6; color: var(--perf-down); } .perf-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; } .perf-status i { width: 8px; height: 8px; border-radius: 50%; background: #bdbdbd; display: inline-block; } .perf-status.st-ok i { background: #10b33a; } .perf-status.st-auth_failed i, .perf-status.st-token_expired i, .perf-status.st-api_error i { background: var(--perf-down); } .perf-status.st-not_configured i { background: #e0a526; } .perf-status.st-disabled { color: var(--color-midtone-gray); } .perf-err { font-size: 11px; color: var(--perf-down); max-width: 260px; white-space: normal; line-height: 1.35; margin-top: 2px; } .perf-switch { position: relative; display: inline-block; width: 34px; height: 20px; cursor: pointer; } .perf-switch input { opacity: 0; width: 0; height: 0; position: absolute; } .perf-switch span { position: absolute; inset: 0; background: #d4d4d4; border-radius: 999px; transition: background .15s; } .perf-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform .15s; } .perf-switch input:checked + span { background: var(--color-deep-black); } .perf-switch input:checked + span::after { transform: translateX(14px); } .perf-switch input:focus-visible + span { outline: 2px solid #93c5fd; outline-offset: 2px; } .perf-dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; margin: 0; font-size: 13px; } .perf-dl dt { color: var(--color-midtone-gray); } .perf-dl dd { margin: 0; } .perf-sample-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .perf-form { display: flex; flex-direction: column; gap: 12px; } .perf-form-row { display: flex; flex-direction: column; gap: 4px; } .perf-form-row > label { font-size: 12px; font-weight: 500; } .perf-form-row .erp-input { width: 100%; box-sizing: border-box; } .perf-form-help { font-size: 11.5px; color: var(--color-midtone-gray); } .perf-secret-state { font-size: 11.5px; color: #0f8a3a; } .perf-secret-state.is-empty { color: var(--color-midtone-gray); } .perf-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .perf-test-result { font-size: 12.5px; margin-right: auto; } .perf-test-result.is-ok { color: #0f8a3a; } .perf-test-result.is-bad { color: var(--perf-down); } @media (max-width: 980px) { .perf-grid2 { grid-template-columns: 1fr; } .perf-kpi-item + .perf-kpi-item { border-left: 0; margin-left: 0; padding-left: 0; } /* 좁으면 한 항목씩 줄바꿈 — 구분선 없이 */ .perf-update { margin-left: 0; } } .perf-table tr.perf-row-match > *{background:#e7f6ec;font-weight:600} .perf-paste { width: 100%; min-height: 96px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; white-space: pre; resize: vertical; box-sizing: border-box; } .perf-table tr.perf-row-diff > * { background: #fff7f5; } .perf-diff-bad { color: var(--perf-down); font-weight: 600; } .perf-diff-ok { color: #0f8a3a; } .perf-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline dotted; cursor: pointer; } /* 주문 내역 창 — 열 제목은 가운데·굵게·150%, 창을 스크롤해도 위에 고정 */ .perf-ev-wrap { overflow: visible; } .perf-ev-table thead th, .perf-ev-table thead th.perf-th-label { 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 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; } /* 상품명만 줄바꿈 — 긴 상품명 때문에 표가 창보다 넓어져 가로 스크롤이 생기지 않게(나머지 열은 한 줄) */ .perf-ev-table .perf-ev-name { white-space: normal; min-width: 220px; overflow-wrap: anywhere; } /* ── 매출 업데이트 진행 창 — 쇼핑몰별·전체 진행 막대(runSyncWithProgress) ── */ .perf-prog-card { width: min(640px, 100%); } .perf-prog-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; column-gap: 10px; row-gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--perf-line); } .perf-prog-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .perf-prog-bar { height: 10px; border-radius: 999px; background: #eef0f3; overflow: hidden; } .perf-prog-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--perf-sat); transition: width .5s ease; } .perf-prog-pct { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--color-midtone-gray); } .perf-prog-text { grid-column: 2 / -1; font-size: 12px; color: var(--color-midtone-gray); overflow-wrap: anywhere; } .perf-prog-row.is-done .perf-prog-bar > span { background: var(--perf-up); } .perf-prog-row.is-error .perf-prog-bar > span { background: var(--perf-down); } .perf-prog-row.is-error .perf-prog-text { color: var(--perf-down); } .perf-prog-row.is-skip .perf-prog-bar > span { background: #b8bec7; } /* 진행 중인 막대에 흐르는 빗금 — 멈춘 게 아니라는 표시 */ .perf-prog-row:not(.is-done):not(.is-error):not(.is-skip) .perf-prog-bar > span { background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%, transparent); background-size: 16px 16px; animation: perf-prog-flow 1s linear infinite; } @keyframes perf-prog-flow { from { background-position: 0 0; } to { background-position: 16px 0; } } .perf-prog-row.is-total { border-bottom: none; border-top: 2px solid var(--perf-line); margin-top: 4px; padding-top: 12px; } .perf-prog-row.is-total .perf-prog-name { font-weight: 700; } .perf-prog-row.is-total .perf-prog-bar { height: 14px; } .perf-prog-row.is-total .perf-prog-pct { font-weight: 700; color: inherit; } @media (max-width: 560px) { .perf-prog-row { grid-template-columns: 1fr 44px; } .perf-prog-name { grid-column: 1 / -1; } .perf-prog-text { grid-column: 1 / -1; } } /* [업데이트 취소] — 창 아래 왼쪽, 빨간 글자. 끝나면 숨김 */ /* 쇼핑몰별 [중지] — 이름 옆 작은 버튼(이 쇼핑몰만 멈추고 다음 쇼핑몰로) */ .perf-prog-name { display: flex; align-items: center; gap: 6px; } .perf-prog-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .perf-prog-stop { flex: none; margin-left: auto; padding: 1px 8px; border: 1px solid var(--perf-line); border-radius: 999px; background: #fff; color: var(--perf-down); font-size: 11.5px; font-weight: 600; line-height: 1.6; cursor: pointer; } .perf-prog-stop:hover { border-color: var(--perf-down); background: #fff5f5; } .perf-prog-stop:disabled { opacity: .6; cursor: default; } .perf-prog-cancel { margin-right: auto; color: var(--perf-down); border-color: currentColor; } .perf-prog-cancel[hidden] { display: none; } .perf-prog-cancel:disabled { opacity: .6; cursor: default; } /* ── 매출 칸 아래 광고비(ROAS%) — 광고비 화면 색(--perf-ad), 카페24 는 구글·메타 두 줄(2026-10-19) ── */ .perf-adl { display: block; margin-top: 1px; font-size: 11px; line-height: 1.35; font-weight: 600; color: var(--perf-ad); white-space: nowrap; } .perf-adl i { margin-right: 3px; font-style: normal; font-weight: 500; opacity: .8; } .perf-adl em { margin-left: 1px; font-style: normal; font-weight: 500; opacity: .85; } .perf .perf-main td.is-editing .perf-adl { visibility: hidden; } /* 일 합계 광고비(ROAS%) — ROAS 는 일 합계 금액 ÷ 광고비라 표시 기준(수수료 차감 매출 / 그 밖)에 따라 하나만 */ .perf .perf-adl-tot { display: none; } .perf[data-metric="net"] .perf-adl-tot.for-net, .perf:not([data-metric="net"]) .perf-adl-tot.for-gross { display: block; } .perf-adl-note { display: inline-flex; align-items: center; gap: 5px; color: var(--perf-ad); font-weight: 600; } .perf-adl-key { width: 10px; height: 10px; border-radius: 3px; background: var(--perf-ad); } .perf-unit-note { margin-left: 4px; } .perf-unit-suffix { margin-left: 2px; font-size: .55em; font-weight: 600; color: var(--color-midtone-gray, #777); } /* 보기 설정(매출 단위) */ .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); } .perf-auto-row:first-child { border-top: 0; padding-top: 4px; } .perf-auto-name { display: flex; flex-direction: column; gap: 6px; } .perf-auto-on { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; } .perf-auto-fields { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; } .perf-auto-field { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .perf-auto-row.is-off .perf-auto-fields { opacity: .45; } .perf-auto-days { display: inline-flex; gap: 3px; } .perf-day { position: relative; cursor: pointer; } .perf-day input { position: absolute; opacity: 0; width: 1px; height: 1px; } .perf-day span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--perf-line); background: #fff; font-weight: 600; user-select: none; } .perf-day.is-sat span { color: var(--perf-sat); } .perf-day.is-sun span { color: var(--perf-sun); } .perf-day input:checked + span { background: #111; border-color: #111; color: #fff; } .perf-day input:focus-visible + span { outline: 2px solid var(--perf-good); outline-offset: 1px; } /* 공용 .erp-input 은 min-width 240px — 이 카드는 글자 너비만큼 */ #perf-auto-sync .perf-auto-time { min-width: 0; width: auto; padding-right: 4px; } #perf-auto-sync .perf-auto-interval { min-width: 0; width: calc(3ch + 40px); } /* 시간 오른쪽 아날로그 시계 — 시작 ~ 끝 바늘 사이를 빨갛게(12시간 넘는 부분은 진하게 한 번 더) */ .perf-auto-clock { width: 64px; height: 64px; flex: 0 0 auto; margin-left: 6px; } .perf-auto-clock .c-face { fill: #fff; stroke: #c9c9c9; stroke-width: 1.5; } .perf-auto-clock .c-span { fill: var(--perf-down); fill-opacity: .78; } .perf-auto-clock .c-span2 { fill: #8f1414; fill-opacity: .85; } .perf-auto-clock .c-tick { stroke: #9a9a9a; stroke-width: 1.5; stroke-linecap: round; } .perf-auto-clock .c-tick.is-major { stroke: #333; stroke-width: 2.5; } .perf-auto-clock .c-hand { stroke: #111; stroke-width: 3; stroke-linecap: round; } .perf-auto-clock .c-hand.is-end { stroke-width: 2.2; } .perf-auto-clock .c-pin { fill: #111; } .perf-auto-next { grid-column: 2; } .perf-auto-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; } #perf-auto-msg.is-ok { color: var(--perf-up); } @media (max-width: 720px) { .perf-auto-row { grid-template-columns: 1fr; } .perf-auto-name { flex-direction: row; gap: 12px; } .perf-auto-next { grid-column: 1; } } .perf-head-notes { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; margin-left: 12px; font-size: 12px; } /* 주문 내역 추가 칸(카페24 적립금 · 네이버 배송비·환불금액, 2026-10-19) */ .perf-ev-table .perf-ev-x { white-space: nowrap; color: #6b4e00; } .perf-ev-xsub { font-size: 11px; font-weight: 500; color: var(--color-midtone-gray, #777); } .perf-ev-table tfoot .perf-ev-x, .perf-ev-table tfoot .perf-ev-x b { color: #fff; } /* 검은 합계 줄 — 흰 글자 */ .perf-ev-table tfoot .perf-ev-xsub { color: #c9c9c9; } /* [매출 업데이트] — 업데이트 중이면 "업데이트 중 · 진행 보기"(눌러서 진행 창 다시 열기), 살짝 깜박임 */ #perf-sync-btn.is-running, #perf-ad-sync-btn.is-running { animation: perf-sync-pulse 1.6s ease-in-out infinite; } @keyframes perf-sync-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } } /* 쇼핑몰 그룹(2026-10-22) — 그룹 열 = 하위 쇼핑몰 합계(굵게·옅은 보라), 하위 열은 ▾/▸ 로 접기/펴기 */ .perf-main th.perf-th-group { background: #f1edfb; color: #4c2a9a; white-space: nowrap; } .perf-main .perf-row-day td.perf-td-group, .perf-main .perf-row-month td.perf-td-group { background: #f8f6fd; font-weight: 600; } .perf-main .perf-row-week td.perf-td-group { background: #ebe6f8; } .perf-main th.perf-th-child { color: #5b4a86; font-weight: 500; box-shadow: inset 0 -2px 0 #d9cff3; } .perf-gtoggle { border: 0; background: none; padding: 0 5px 0 0; margin: 0; font: inherit; font-size: 15px; color: inherit; cursor: pointer; line-height: 1; vertical-align: -1px; } .perf-gtoggle:hover { color: #1a56db; } .perf-main .is-gfolded[data-group-child] { display: none; } /* 설정 — 직접 추가·그룹·드래그 순서 */ .perf-drag { display: inline-block; width: 14px; margin-right: 6px; color: #b5b5b5; cursor: grab; user-select: none; touch-action: none; } .perf-drag:hover { color: var(--color-deep-black); } body.perf-dragging, body.perf-dragging * { cursor: grabbing !important; user-select: none; } .perf-set-table .is-dragging > tr > *, .perf-set-table tr.is-dragging > * { background: #eef3ff; } .perf-set-table tbody.perf-sort-block + tbody.perf-sort-block > tr:first-child > * { border-top: 1px solid var(--perf-line); } .perf-group-row > * { background: #f8f6fd; } .perf-group-name { font-weight: 600; color: #4c2a9a; } .perf-child-row .perf-td-label { padding-left: 22px; } .perf-child-mark { color: #b5b5b5; margin-right: 4px; } .perf-group-sel { width: auto; min-width: 110px; height: 28px; padding: 2px 6px; font-size: 12.5px; margin-right: 4px; } .perf-del-btn { color: var(--perf-down); } .perf-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; } /* ── 매출 실적 표(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; } .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; } .perf-main td.perf-td-group { box-shadow: inset 2px 0 0 #8a6fd8; } .perf-main th.perf-th-group.is-gclosed, .perf-main td.perf-td-group.is-gclosed { box-shadow: inset 2px 0 0 #8a6fd8, inset -2px 0 0 #8a6fd8; } .perf-main th.perf-th-child { background: #f6f3fe; color: #5b4a86; font-weight: 600; font-size: 11.5px; box-shadow: inset 0 3px 0 #b9a6ee; } .perf-main th.perf-th-child.is-glast { box-shadow: inset 0 3px 0 #b9a6ee, inset -2px 0 0 #8a6fd8; } .perf-row-day > td[data-group-child], .perf-row-month > td[data-group-child] { background: #fcfbff; } .perf-main td.is-glast { box-shadow: inset -2px 0 0 #8a6fd8; } .perf-gh { display: inline-flex; align-items: center; gap: 6px; } /* 접기/펴기 단추 — 18px 둥근 네모 ⊟(펼침) / ⊞(접힘), 세로 막대가 돌며 바뀐다 */ .perf-main .perf-gtoggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; margin: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; vertical-align: middle; } .perf-main .perf-gtoggle:hover { background: #d9cff6; } .perf-main .perf-gtoggle:focus-visible { outline: 2px solid #6d4fd1; outline-offset: 1px; } .perf-gtoggle .g-box { fill: #fff; stroke: #8a6fd8; stroke-width: 1.4; } .perf-gtoggle .g-h, .perf-gtoggle .g-v { stroke: #4c2a9a; stroke-width: 1.9; stroke-linecap: round; } .perf-gtoggle .g-v { transform-origin: 9px 9px; transition: transform .26s ease; } .perf-gtoggle[aria-expanded="true"] .g-v { transform: rotate(90deg); } /* 펼침 = − (세로 막대가 가로로 겹침) */ /* 하위 열 접기·펴기 애니메이션 — .perf-gc 너비·칸 좌우 여백·투명도 */ .perf-gc { overflow: hidden; } .perf-main .is-ganim, .perf-main .is-ganim .perf-gc { transition: padding .26s ease, max-width .26s ease, opacity .2s ease; } .perf-main .is-gshut { padding-left: 0 !important; padding-right: 0 !important; } .perf-main .is-gshut .perf-gc { opacity: 0; } @media (prefers-reduced-motion: reduce) { .perf-gtoggle .g-v { transition: none; } } /* ── 날짜 칸 메모(2026-10-22, 010) — 메모 있는 칸 = 오른쪽 위 빨간 삼각형(엑셀 메모처럼), 마우스 올리면 노란 메모 상자, 우클릭 메뉴 ── */ .perf-main td.has-memo { position: relative; } .perf-main td.has-memo::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-left: 8px solid transparent; border-top: 8px solid #e03131; pointer-events: none; } .perf-memo-tip { position: absolute; z-index: 2200; max-width: 280px; padding: 8px 10px; background: #fff9db; color: #3d3418; border: 1px solid #f2d36b; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; pointer-events: none; } .perf-ctx { position: absolute; z-index: 2300; min-width: 130px; padding: 4px; background: #fff; border: 1px solid #e2e5e9; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); display: flex; flex-direction: column; } .perf-ctx button { all: unset; box-sizing: border-box; padding: 7px 12px; border-radius: 7px; font-size: 13px; cursor: pointer; color: #1e1f21; } .perf-ctx button:hover, .perf-ctx button:focus-visible { background: #f2f4f6; } .perf-ctx button.is-danger { color: #c22b10; } .perf-memo-input { width: 100%; box-sizing: border-box; min-height: 110px; padding: 10px; border: 1px solid #d8dce2; border-radius: 8px; font: inherit; font-size: 13.5px; line-height: 1.5; resize: vertical; } .perf-memo-input:focus { outline: none; border-color: #1a56db; box-shadow: 0 0 0 3px rgba(26, 86, 219, .12); } /* ── 일자별 표 스크롤 고정(2026-10-26, 10-27 다시): 페이지(.erp-page)를 스크롤해도 제목 행 + 맨 위 기간 합계 행이 화면 위에 ── 표 상자는 가로 스크롤 상자(overflow-x)라 CSS sticky 가 페이지 스크롤에 안 먹는다 → performance.js stickyHead 가 스크롤 때마다 두 줄 칸을 translateY 로 내린다(상자 세로 스크롤 없음 — 예전엔 상자 안에서만 스크롤돼 상자 아래가 화면 밖에 잘리고 휠이 페이지로 안 넘어갔다). 날짜 칸 가로 고정(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, .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) — 표 상자 가로 막대·실적 화면 세로 막대. 손잡이만 옅은 회색 */ .perf-table-wrap, .erp-page:has(> .perf) { scrollbar-color: #c3c6cb transparent; } /* ── 일자별 표 열 너비 수동 조절(2026-10-27, 실적 설정 "보기 설정" 쿠키 perf_colw=manual) ── performance.js initColWidths 가 자동 너비를 잰 뒤 th 너비·표 너비를 px 로 주고 is-colw-fixed(table-layout fixed) — 넘치는 글자는 … 로 자른다. 머리글 오른쪽 경계 .perf-colw-grip 을 끌어 조절(마우스 올리면 선), 그룹 접기 애니메이션 동안 is-colw-anim 으로 열 너비도 함께 움직인다. */ .perf-main.perf-colw-manual.is-colw-fixed { table-layout: fixed; } .perf-main.is-colw-fixed th, .perf-main.is-colw-fixed td { box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; } .perf-main.is-colw-fixed thead th.perf-th-label, .perf-main.is-colw-fixed .perf-td-label { min-width: 0; max-width: none; } .perf-main.is-colw-fixed .perf-adl { overflow: hidden; text-overflow: ellipsis; } .perf-main.is-colw-anim, .perf-main.is-colw-anim thead th { transition: width .26s ease, padding .26s ease; } .perf-main-wrap.is-stuck .perf-main.is-colw-fixed thead th::after { bottom: 0; } /* 칸이 넘침을 자르므로 아래 선을 칸 안에 */ .perf-colw-grip { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 6; touch-action: none; } .perf-colw-grip::after { content: ""; position: absolute; top: 6px; bottom: 6px; right: 1px; width: 2px; border-radius: 1px; background: transparent; } .perf-main thead th:hover > .perf-colw-grip::after { background: #c3c6cb; } .perf-main thead th > .perf-colw-grip:hover::after, .perf-colw-grip.is-active::after { background: #1a56db; } body.perf-colw-dragging, body.perf-colw-dragging * { cursor: col-resize !important; user-select: none; }