Files
dbx-main/app/static/outreach.css
T
king 48cd7f0878 feat(안내문 발송): DM 수동 보내기 — 이름 지우기·본문 편집·저장한 본문 목록
- 이름 목록: × 한 명씩 빼기·[전체 삭제], 이름 넣기는 목록에 더함
- 본문: 바로 고침(plaintext-only), {이름} 자리 = 분홍 칩, 이름 누르면 고친 글 + 이름 복사
- 저장한 본문(본문 오른쪽): 설정 DM 문구 + 저장한 것, 고르기·[저장]·[새 본문으로 저장]·× 지우기
- outreach_db 마이그레이션 002 outreach_dm_bodies + POST/PUT/DELETE /outreach/api/dm-bodies
  (002 미적용이면 목록 안내만, API 503)
- 캐시 버전 20261030c, 단위·API·실제 PG·브라우저 테스트

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 16:51:10 +09:00

159 lines
13 KiB
CSS

/* 안내문 발송(2026-10-27) — 리스트·보내기·설정 */
.erp-page:has(> .otr) { box-sizing: border-box; } /* 셸 .erp-page width:100% + 여백 → 오른쪽 넘침 방지(실적·휴가와 같음) */
.otr { display: flex; flex-direction: column; gap: 14px; }
.otr > * { flex-shrink: 0; }
.otr-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.otr-top .otr-gmail { margin-left: auto; }
/* 탭(2026-10-30) — [발송 리스트] [DM 수동 보내기] 알약 탭 + 맨 오른쪽 설정 톱니(실적 .perf-tabs 와 같은 모양) */
.otr-tabs { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #e3e5e8; }
.otr-tabs-main { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--color-ghost-gray, #f3f3f3); }
.otr-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, #6d6e6f); text-decoration: none; transition: background .15s, color .15s; }
.otr-tab .material-symbols-outlined { font-size: 19px; }
.otr-tab:hover { color: var(--color-rich-black, #1e1f21); background: rgba(255, 255, 255, .7); }
.otr-tab.is-active, .otr-tab.is-active:hover { color: #fff; background: var(--color-deep-black, #1e1f21); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.otr-tabs .otr-gear { margin-left: auto; }
.otr-gear { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
color: var(--color-midtone-gray, #6d6e6f); text-decoration: none; flex: none; }
.otr-gear .material-symbols-outlined { font-size: 22px; }
.otr-gear:hover { color: var(--color-rich-black, #1e1f21); background: var(--color-ghost-gray, #f3f3f3); }
.otr-top-main { display: flex; gap: 8px; }
.otr-gmail { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.otr-gmail form { margin: 0; }
.otr-gmail-on { color: #0f8a3a; }
.otr-gmail-off { color: #8a5a00; }
.otr-msg { margin: 0; padding: 8px 12px; border-radius: 8px; background: #eef6ff; color: #1a4fa0; font-size: 13px; }
.otr .erp-card { padding: 14px 16px; }
.otr .erp-card[hidden] { display: none; } /* 공용 .erp-card display:flex 가 hidden 을 덮어 [리스트 추가]·DM 수동 창이 늘 열려 있었다 */
.otr-tpl-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 14px; flex-wrap: wrap; }
.otr-tpl-head .erp-muted { font-size: 12px; }
.otr-tpl-subject { font-weight: 700; font-size: 15px; }
.otr-tpl-body { margin-top: 4px; color: #444; font-size: 13px; white-space: pre-wrap; }
.otr-tpl-meta { margin-top: 6px; font-size: 12px; }
.otr-add-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: 13px; }
.otr-add-text { width: 100%; min-width: 0; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 13px; resize: vertical; }
.otr-add-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.otr-add-preview { margin-top: 10px; max-height: 320px; overflow: auto; }
.otr-filter { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.otr-seg { border: 1px solid #d8dce2; background: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.otr-seg.is-active { background: #111; border-color: #111; color: #fff; }
.otr-cnt { opacity: .7; font-size: 12px; margin-left: 2px; }
.otr-table td { vertical-align: middle; }
.otr-c-check { width: 32px; text-align: center; }
.otr-c-acts { white-space: nowrap; text-align: right; }
.otr-c-acts .erp-btn + .erp-btn { margin-left: 4px; }
.otr-kind { display: inline-block; min-width: 38px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.otr-kind.is-email { background: #e8effb; color: #1a56db; }
.otr-kind.is-instagram { background: #fbe8f3; color: #c1358a; }
.otr-kind.is-bad { background: #fdecec; color: #c22b10; }
.otr-name { width: 100%; min-width: 120px; box-sizing: border-box; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; font: inherit; background: transparent; }
.otr-name:hover, .otr-name:focus { border-color: #d8dce2; background: #fff; outline: none; }
.otr-row.is-noname .otr-name { border-color: #f0b4a8; background: #fff7f5; }
.otr-addr { font-size: 13px; word-break: break-all; }
.otr-addr a { color: #c1358a; text-decoration: none; }
.otr-st { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.otr-st.is-wait { background: #f1f2f4; color: #555; }
.otr-st.is-busy { background: #fff4d6; color: #8a5a00; }
.otr-st.is-done { background: #e6f4ea; color: #0f8a3a; }
.otr-st.is-fail { background: #fdecec; color: #c22b10; }
.otr-st-err { margin-top: 2px; font-size: 11.5px; color: #c22b10; max-width: 280px; }
.otr-when { white-space: nowrap; font-size: 12.5px; color: #666; font-variant-numeric: tabular-nums; }
.otr-empty { margin: 12px 0 0; }
.otr-send-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; font-size: 13px; }
.otr-send-note { flex-basis: 100%; font-size: 12px; }
.otr-danger { color: #c22b10; }
.otr-err { color: #c22b10; }
.otr-warn { color: #8a5a00; }
.otr-logs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; max-height: 260px; overflow: auto; }
.otr-logs li.is-fail b { color: #c22b10; }
.otr-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .4); display: flex; align-items: center; justify-content: center; }
.otr-modal[hidden] { display: none; }
.otr-modal-card { width: min(760px, 94vw); height: min(86vh, 900px); background: #fff; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.otr-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.otr-pv-subject { font-weight: 700; font-size: 14px; }
.otr-pv-frame { flex: 1; width: 100%; border: 1px solid #e3e5e8; border-radius: 8px; background: #fff; }
.otr-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2100; max-width: min(640px, 92vw);
padding: 10px 16px; border-radius: 10px; background: #111; color: #fff; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.otr-toast.is-bad { background: #c22b10; }
.otr-toast[hidden] { display: none; }
/* 설정 */
.otr-set-card { display: flex; flex-direction: column; gap: 10px; }
.otr-field { display: flex; flex-direction: column; gap: 4px; }
.otr-field .erp-input { width: 100%; min-width: 0; box-sizing: border-box; }
.otr-count { font-size: 12px; }
.otr-count.is-over { color: #c22b10; font-weight: 700; }
.otr-check { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
/* 설정 — 위 저장 막대(스크롤해도 보임) + 세로 2단(왼쪽 메일 | 오른쪽 DM), 좁으면 위아래 */
.otr-set-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0;
padding: 10px 14px; background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.otr-set-saved { font-size: 12px; }
.otr-set-bar-gap { flex: 1; }
.otr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.otr-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.otr-col-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid #eef0f2; }
.otr-col-head .erp-muted { font-size: 12px; }
.otr-dm-card { position: sticky; top: 72px; }
.otr-note { margin: 0; font-size: 12.5px; line-height: 1.6; }
.otr-dm-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.otr-tag { color: #e11d48; font-weight: 700; }
@media (max-width: 1100px) {
.otr-split { grid-template-columns: minmax(0, 1fr); }
.otr-dm-card { position: static; }
}
/* 편집기(Quill snow) — 메일과 같은 글꼴·크기·줄 간격, {이름} 빨강 굵게(화면에서만) */
.otr-settings .ql-toolbar.ql-snow { border-color: #d8dce2; border-radius: 8px 8px 0 0; background: #fafbfc; font-family: inherit; }
.otr-settings .ql-toolbar.ql-snow .ql-formats { margin-right: 8px; }
.otr-editor.ql-container.ql-snow { border-color: #d8dce2; border-radius: 0 0 8px 8px; font-family: Pretendard, 'Malgun Gothic', sans-serif; font-size: 14px; }
.otr-editor-plain.ql-container.ql-snow { border-top: 1px solid #d8dce2; border-radius: 8px; }
.otr-editor .ql-editor { min-height: 420px; max-height: 68vh; overflow-y: auto; line-height: 1.7; color: #111; }
.otr-editor-plain .ql-editor { min-height: 320px; }
.otr-editor .ql-editor.ql-blank::before { font-style: normal; color: #9aa1aa; }
.otr-editor .otr-nametag-on { color: #e11d48 !important; font-weight: 700 !important; }
.otr-settings .ql-snow .ql-picker.ql-size { width: 76px; }
.otr-settings .ql-snow .ql-picker.ql-size .ql-picker-label::before,
.otr-settings .ql-snow .ql-picker.ql-size .ql-picker-item::before { content: "기본"; }
.otr-settings .ql-snow .ql-picker.ql-size .ql-picker-label[data-value]::before,
.otr-settings .ql-snow .ql-picker.ql-size .ql-picker-item[data-value]::before { content: attr(data-value); }
.otr-settings .ql-toolbar .ql-undo, .otr-settings .ql-toolbar .ql-redo { font-size: 17px; line-height: 1; color: #444; }
.otr-settings .ql-snow .ql-tooltip { z-index: 5; }
.otr-settings .ql-snow .ql-tooltip::before { content: "링크:"; }
.otr-settings .ql-snow .ql-tooltip[data-mode=link]::before { content: "링크 주소:"; }
.otr-settings .ql-snow .ql-tooltip a.ql-action::after { content: "고치기"; }
.otr-settings .ql-snow .ql-tooltip a.ql-remove::before { content: "빼기"; }
.otr-settings .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "저장"; }
.otr-images { display: flex; gap: 12px; flex-wrap: wrap; }
.otr-image { margin: 0; width: 200px; border: 1px solid #e3e5e8; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.otr-image img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; background: #f6f7f9; }
.otr-image figcaption { font-size: 12px; color: #555; word-break: break-all; }
.otr-image-acts { display: flex; gap: 4px; }
.otr-image-acts form { margin: 0; }
.otr-upload { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.otr .erp-btn:disabled { opacity: .45; cursor: default; }
/* DM 수동 보내기 탭(2026-10-30) — 왼쪽 이름(넣기 + 목록) | 가운데 본문(바로 고침, {이름} = 분홍 칩) | 오른쪽 저장한 본문 */
.otr-dm-file { cursor: pointer; }
.otr-dm-split { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(200px, 260px); gap: 14px; align-items: start; }
.otr .otr-dm-split .erp-card { min-height: 0; }
.otr-dm-listhead { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.otr-dm-names { list-style: none; margin: 8px 0 0; padding: 4px; border: 1px solid #e3e5e8; border-radius: 8px;
max-height: calc(100vh - 420px); min-height: 120px; overflow: auto; }
.otr-dm-bodies { max-height: calc(100vh - 260px); margin-top: 0; }
.otr-dm-item { display: flex; align-items: center; gap: 2px; }
.otr-dm-name { flex: 1; min-width: 0; text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px;
padding: 7px 10px; border-radius: 6px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otr-dm-name:hover { background: #f3f4f6; }
.otr-dm-name.is-active { background: #111; color: #fff; }
.otr-dm-sub { opacity: .65; font-size: 12px; }
.otr-dm-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: #9a9ca1; font-size: 17px;
line-height: 1; cursor: pointer; }
.otr-dm-x:hover { background: #fdecec; color: #c22b10; }
.otr-dm-empty { padding: 8px 10px; font-size: 13px; }
.otr-dm-cur { font-weight: 400; color: #6d6e6f; font-size: 13px; }
.otr-dm-actions { margin: 0 0 8px; }
.otr-dm-body { border: 1px solid #d8dce2; border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.7; min-height: 240px;
white-space: pre-wrap; word-break: break-word; max-height: calc(100vh - 300px); overflow: auto; background: #fff; outline: none; }
.otr-dm-body:focus { border-color: #8aa4d6; box-shadow: 0 0 0 3px rgba(69, 115, 210, .12); }
.otr-dm-tag { color: #c1358a; font-weight: 700; background: #fbe8f3; border-radius: 4px; padding: 0 2px; }
@media (max-width: 1180px) { .otr-dm-split { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); } .otr-dm-saved { grid-column: 1 / -1; } }
@media (max-width: 760px) { .otr-dm-split { grid-template-columns: 1fr; } }