Files
dbx-main/app/static/project.css
T
king de9daf7bad style(project): 작업 팝업 협업자 줄을 담당자 칸과 같은 모양으로
- 라벨·간격을 담당자 칸(.pj-meta-cell)과 같게, 그룹 아이콘 제거
- 협업자는 담당자 버튼처럼 "아이콘 + 이름", 빼기(×)는 마우스를 올렸을 때만
- 없으면 점선 원 "협업자 없음"(누르면 추가 메뉴), + 버튼은 한 명 이상일 때만
- 추가 메뉴도 "아이콘 + 이름"
- 정적 파일 버전 20260926d

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 11:44:24 +09:00

1538 lines
97 KiB
CSS

/* 프로젝트 관리(아사나식) 모듈 스타일.
* 기존 erp.css 토큰(폰트 등) 위에 아사나 느낌의 색·카드·그림자를 별도 변수로
* 얹는다 — 다른 모듈(erp.css)은 그대로 두고 이 모듈(.pj- 클래스)에만 적용. */
:root {
--pj-accent: #7b68ee; /* 아사나 특유의 보라 포인트 컬러 */
--pj-accent-dark: #6453d6;
--pj-accent-tint: #f1eeff; /* 선택/호버 배경(연한 보라) */
--pj-ink: #151b26; /* 본문 텍스트(진한 남색 계열, 순검정 대신) */
--pj-ink-soft: #6b6f76; /* 보조 텍스트 */
--pj-border: #e4e4e7;
--pj-card-radius: 12px;
--pj-card-shadow: 0 1px 2px rgba(16,24,40,.04), 0 2px 6px rgba(16,24,40,.06);
--pj-card-shadow-hover: 0 6px 16px rgba(16,24,40,.10), 0 2px 4px rgba(16,24,40,.06);
}
.pj-wrap { padding: 4px 2px 40px; color: var(--pj-ink); }
/* ── 버튼 ── */
.pj-btn {
border: 1px solid #d8dce2; background: #fff; color: var(--pj-ink);
padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
cursor: pointer; transition: background .12s, border-color .12s;
}
.pj-btn:hover { background: #f6f7f8; }
.pj-btn-primary { background: var(--pj-accent); color: #fff; border-color: var(--pj-accent); }
.pj-btn-primary:hover { background: var(--pj-accent-dark); border-color: var(--pj-accent-dark); }
.pj-btn-danger { background: #fff; color: #c22b10; border-color: #e6c4bd; }
.pj-btn-danger:hover { background: #fbecea; }
.pj-icon-btn {
border: none; background: transparent; color: #6b7280; cursor: pointer;
font-size: 16px; line-height: 1; width: 24px; height: 24px; border-radius: 6px;
padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.pj-icon-btn:hover { background: #eceef0; color: #1e1f21; }
.pj-section-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.pj-section-head-done { margin-top: 22px; }
.pj-section-head-done h2 { font-size: 14px; color: #6b7280; }
.pj-section-head h2 { font-size: 16px; font-weight: 700; margin: 0; }
.pj-empty { padding: 28px; text-align: center; color: #6b7280; background: #f7f8f9; border-radius: 12px; }
.pj-empty-sm { padding: 10px 2px; color: #9aa1a9; font-size: 13px; }
.pj-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef0f2; color: #525860; font-size: 11px; font-weight: 600; }
.pj-chip-sm { padding: 1px 6px; font-size: 10px; }
/* 페이지(.erp-page)는 스크롤하지 않고 좌/우 칸이 각자 안에서만 스크롤한다 —
.erp-page 는 flex column 이라 .pj-wrap 을 flex:1 로 늘려 남은 높이를 확보한다. */
.erp-page > .pj-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 8px; }
/* ── 프로젝트 페이지 레이아웃 (좌: 프로젝트 트리 / 가운데: 세션 등 뷰 / 우:
내 업무) — 화면(=.erp-page) 자체는 스크롤하지 않고 3칸이 각자 안에서만
스크롤한다(하나가 길어져도 다른 칸이 같이 스크롤되지 않게). 화면 높이를
그대로 쓰기 위해 휴가/쿠팡 모듈과 같은 패턴으로 .erp-page 의 flex 자식을
늘려 남은 높이를 다 차지하게 하고, 가운데 폭 제한(max-width:1550px)도
이 화면에서만 풀어서 좌/우 칸이 진짜 화면 양 끝에 붙게 한다. */
/* box-sizing:border-box 필수 — .erp-page 는 width:100% + padding 24px 인데
border-box 리셋이 .erp-shell 에만 걸려 있어(content-box) max-width 캡을 풀면
뷰포트보다 48px 넓어진다. 그러면 우측 "내 업무" 패널의 오른쪽 끝(=스크롤
막대 자리)이 화면 밖으로 밀려나 막대가 절대 안 보인다(헤드리스 크롬 좌표
덤프로 확인: 패널 right=1917 > viewport 1911). */
.erp-page:has(> .pj-wrap) { max-width: none; box-sizing: border-box; }
.pj-project-view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pj-project-view .pj-layout { flex: 1 1 auto; min-height: 0; }
/* grid-template-rows: minmax(0,1fr) 이 없으면 암시적 행이 "auto"(내용 크기)로
잡혀서, 자식들의 height:100% 가 기준으로 삼을 "확정된 높이"가 없어진다
(퍼센트 높이는 트랙이 auto면 무시되고 다시 내용 크기로 되돌아간다) —
그래서 내 업무/좌측 목록이 제 안에서 스크롤 못 하고 카드 내용만큼
늘어나 버렸다. 1fr 로 행 자체를 컨테이너 높이만큼 확정 지어야 한다. */
/* 우측에 항상 떠 있던 "내 업무" 칸은 없앴다 — 좌측 사이드바의 접이식
"내 업무" 메뉴(.pj-mytasks-panel)가 그 역할을 대신한다. 그래서 2열. */
.pj-layout {
display: grid; grid-template-columns: 250px 1fr; grid-template-rows: minmax(0, 1fr);
gap: 22px; height: 100%; min-height: 0; align-items: stretch;
}
.pj-side { min-width: 0; min-height: 0; height: 100%; overflow-y: auto; padding-right: 14px; }
.pj-main { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; }
/* ── 자체 스크롤 패널(내 업무/좌측 목록/홈 프로젝트 목록/보드)의 스크롤 막대 ──
윈도우/엣지가 오버레이(자동숨김) 스크롤바를 쓰는 환경에선 네이티브 막대가
마우스를 올리거나 스크롤 중일 때만 잠깐 보이고, ::-webkit-scrollbar /
scrollbar-width 커스텀도 무시된다(DevTools 박스모델에서 두께 0 확인).
그래서 네이티브 막대는 아예 숨기고, JS(attachScrollIndicator)가 패널 안에
스크롤 위치에 맞춰 움직이는 막대를 직접 그려 어떤 환경에서도 항상
보이게 한다. 휠·키보드·드래그 스크롤은 그대로 동작. 막대가 들어갈 자리로
각 패널의 padding-right 를 14px 확보한다. */
.pj-side, .pj-board, .pj-mytasks-pane, .pj-inbox-pane { scrollbar-width: none; }
.pj-side::-webkit-scrollbar, .pj-board::-webkit-scrollbar,
.pj-mytasks-pane::-webkit-scrollbar, .pj-inbox-pane::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* anchor = 스크롤러의 첫 자식(높이 0, sticky) → 화면에 보이는 영역의 맨 위에
항상 붙어 있고, 그 안의 track 이 보이는 높이만큼 오른쪽 padding 자리에 걸린다. */
.pj-vbar-anchor { position: sticky; top: 0; height: 0; z-index: 5; }
.pj-vbar-track { position: absolute; top: 0; right: -11px; width: 8px; border-radius: 999px; background: #e6e8ec; }
.pj-vbar-thumb { position: absolute; left: 0; top: 0; width: 100%; border-radius: 999px; background: #b3b7bf; cursor: grab; }
.pj-vbar-thumb:hover, .pj-vbar-thumb.is-dragging { background: #8f949e; }
.pj-vbar-thumb.is-dragging { cursor: grabbing; }
@media (max-width: 1280px) {
.pj-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 900px) {
.erp-page:has(> .pj-wrap) { max-width: 1550px; }
.erp-page > .pj-wrap.pj-project-view { display: block; }
.pj-layout { display: block; height: auto; }
.pj-side, .pj-main { height: auto; overflow: visible; }
}
.pj-side-block { margin-bottom: 22px; }
.pj-side-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.pj-side-head-done { margin-top: 14px; }
#pj-tree-root-done .pj-tree-avatar,
#pj-tree-root-done .pj-tree-name { opacity: .6; }
/* 굵게 지정해도 연한 회색 + 12px 라서 눈에 잘 안 띄었음 — 텍스트만 진한
잉크색으로 대비를 올린다("+" 버튼은 원래 색 유지). */
.pj-side-head span { color: var(--pj-ink); }
/* ── 아사나식 프로젝트 트리(사이드바) — 프로젝트 이름만 나열, 업무 목록 없음 ── */
.pj-tree { list-style: none; margin: 0; padding: 0; }
.pj-tree-row { display: flex; align-items: center; gap: 2px; border-radius: 8px; padding-right: 2px; position: relative; }
.pj-tree-row:hover { background: #f1f2f4; }
.pj-tree-row.is-active { background: var(--pj-accent-tint); }
.pj-tree-row.is-active .pj-tree-name { font-weight: 700; color: var(--pj-accent-dark); }
.pj-tree-link { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0;
text-decoration: none; color: inherit; padding: 6px 4px; }
/* 프로젝트 색 + 첫 글자 — 아사나의 색 아이콘 자리를 대신한다 */
.pj-tree-avatar {
width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto;
display: inline-flex; align-items: center; justify-content: center;
color: #fff; font-size: 11px; font-weight: 700;
}
.pj-tree-name { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-tree-acts { display: none; gap: 0; flex: 0 0 auto; }
.pj-tree-row:hover .pj-tree-acts { display: inline-flex; }
.pj-tree-acts .pj-icon-btn { width: 22px; height: 22px; font-size: 14px; }
.pj-tree-li[draggable="true"] { cursor: grab; }
.pj-tree-li.is-dragging { opacity: .45; }
/* 드래그 가능 손잡이 — 평소엔 흐리게 숨겨두고 행에 마우스 올리면 보인다 */
.pj-tree-handle { flex: 0 0 auto; width: 14px; text-align: center; color: #c2c6cc; font-size: 12px; cursor: grab; opacity: 0; transition: opacity .12s; }
.pj-tree-row:hover .pj-tree-handle { opacity: 1; }
/* 구글 머티리얼 심볼 아이콘(담당자) */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; line-height: 1; vertical-align: middle; }
.pj-gicon { font-size: 24px; color: #5f6368; flex: 0 0 auto; }
.pj-gicon-sm { font-size: 20px; }
.pj-assignee { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #5f6368; }
/* 구글 프로필 이미지 — 원형 */
.pj-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; vertical-align: middle; background: #e7e9ec; }
.pj-avatar.pj-gicon-sm { width: 18px; height: 18px; }
/* ── 툴바 + 탭 ── */
.pj-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex: none; }
/* 제목 + 멤버 아이콘을 한 덩어리로 묶어 툴바 가운데에 둔다. */
.pj-title-wrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; }
.pj-project-title { min-width: 0; margin: 0; }
/* 프로젝트 멤버 — 아사나처럼 살짝 겹친 아바타. 이름은 마우스를 올렸을 때만
(data-tip → initHoverTips 가 커서 옆에 띄운다). */
.pj-title-members { display: flex; align-items: center; flex: 0 0 auto; }
.pj-tmember {
display: inline-flex; margin-left: -7px; cursor: pointer; border-radius: 50%;
box-shadow: 0 0 0 2px #fff; transition: transform .12s;
}
.pj-tmember:first-child { margin-left: 0; }
.pj-tmember:hover { transform: translateY(-2px); position: relative; z-index: 2; }
.pj-avatar.pj-tmember-av { width: 28px; height: 28px; }
.pj-gicon.pj-tmember-av { width: 28px; height: 28px; font-size: 28px; }
.pj-title-addmember {
flex: 0 0 auto; width: 26px; height: 26px; margin-left: 5px; padding: 0;
border: 1px dashed #c2c6cc; border-radius: 50%; background: transparent;
color: #6b7280; font-size: 15px; line-height: 1; cursor: pointer;
}
.pj-title-addmember:hover { border-style: solid; border-color: var(--pj-accent); color: var(--pj-accent); }
.pj-project-title-pill {
display: inline-block; max-width: 100%; vertical-align: middle;
font-size: 22px; font-weight: 800; color: #fff;
background: var(--pj-color, var(--pj-accent)); border-radius: 14px; padding: 8px 24px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 현재 활성 뷰(보드/리스트/달력/타임라인)가 pj-main 의 남은 세로 공간을
차지 — 뷰 하나만 자체 스크롤(다른 칸과 스크롤이 서로 안 얽히게). 보드는
내부에 pj-board 자체 스크롤 컨테이너가 따로 있어 여기선 넘침을 숨긴다. */
.pj-view { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pj-view[hidden] { display: none; }
.pj-view[data-view="board"]:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; }
.pj-view-tabs { display: inline-flex; position: relative; flex: 0 0 auto; background: #eef0f2; border-radius: 10px; padding: 3px; gap: 2px; }
.pj-tab { position: relative; z-index: 1; border: none; background: transparent; padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #525860; cursor: pointer; white-space: nowrap; }
.pj-tab.is-active { background: transparent; color: #fff; }
/* 뷰 탭이 바뀔 때 배경이 새 탭 위치로 미끄러지는 하이라이트 — is-active 의
단순 배경색 대신 이 절대배치 요소 하나가 실제로 움직인다. */
.pj-tab-highlight {
position: absolute; top: 3px; left: 0; z-index: 0;
background: var(--pj-accent); border-radius: 8px; box-shadow: 0 1px 3px rgba(123,104,238,.35);
transition: transform .22s cubic-bezier(.4,0,.2,1), width .22s cubic-bezier(.4,0,.2,1);
}
.pj-tab-highlight.pj-no-anim { transition: none; }
/* 알림 벨 흔들림(미읽음 있을 때) */
@keyframes pj-bell-ring {
0%, 50%, 100% { transform: rotate(0); }
10%, 30% { transform: rotate(14deg); }
20%, 40% { transform: rotate(-14deg); }
}
.pj-bell.has-unread .material-symbols-outlined {
animation: pj-bell-ring 1.4s ease-in-out infinite;
transform-origin: top center;
}
/* ── 보드(칸반) — 아사나식. 세션은 가로로 한 줄에 나란히 놓이고, 화면을
넘치면 아래로 접히지 않고 보드가 가로로 스크롤된다. "+ 세션 추가" 버튼은
스크롤 영역 밖(pj-board-toolbar)에 있어 항상 보인다. ── */
.pj-board-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; flex: none; }
.pj-board-toolbar .pj-add-stage { width: auto; padding: 8px 18px; }
/* pj-board = 가로 스크롤 뷰포트(남은 세로 공간을 그대로 씀, 부모가 이미
flex 로 높이를 정해준다). pj-board-canvas = 세션을 가로로 늘어놓는 flex
컨테이너 — width:max-content 라서 세션이 늘어나는 만큼 캔버스가 넓어지고
뷰포트(pj-board)만 스크롤한다.
네이티브 스크롤바는 숨기고(위 .pj-vbar-* 와 같은 이유) JS 가 그리는
가로 막대(.pj-hbar / attachHScrollIndicator)를 보드 아래에 둔다. */
.pj-board {
flex: 1 1 auto; min-height: 0; min-width: 0;
overflow-x: auto; overflow-y: hidden;
padding-right: 14px; padding-bottom: 4px;
}
.pj-board-canvas {
display: flex; align-items: flex-start; gap: 16px;
height: 100%; min-height: 0; width: max-content; min-width: 100%;
}
/* 세션(보드 컬럼) — 배경이 페이지와 거의 같으면 구분이 안 되므로(#f6f5fb ≈
흰 배경) 뚜렷한 회색 톤 + 테두리로 아사나처럼 컬럼 경계를 분명히 준다.
너비는 고정(300px), 높이는 내용만큼 — 보드 높이를 넘으면 그 컬럼 안에서
세로 스크롤(.pj-col-body). */
.pj-col {
flex: 0 0 300px; width: 300px; max-height: 100%;
display: flex; flex-direction: column; min-height: 0;
background: #eef0f4; border: 1px solid #e2e4ea; border-radius: 14px;
/* 좌우 여백은 작게(6px) — 카드가 컬럼 폭을 더 쓴다 */
padding: 12px 6px; box-sizing: border-box;
}
.pj-empty { position: static; }
/* 완료로 지정된 세션 — 반투명 + 보드 끝으로(정렬은 JS 쪽 comparator 담당) */
.pj-col.pj-col-done { opacity: .55; }
.pj-col-head {
display: flex; align-items: center; gap: 6px; font-size: 13px;
padding: 2px 6px 12px; margin-bottom: 4px; color: var(--pj-ink);
border-bottom: 1px solid #e2e4ea;
}
/* 세션 제목 — 업무 카드 제목(pj-card-title 13.5px/600)보다 뚜렷하게 크고 굵게 */
.pj-col-name { font-size: 15.5px; font-weight: 800; }
/* 세션 기본 담당자 아이콘 — 이름 옆에 작게 */
.pj-col-assignee { display: inline-flex; align-items: center; flex: 0 0 auto; }
.pj-col-assignee .pj-avatar { width: 20px; height: 20px; box-shadow: 0 0 0 1.5px #fff; }
.pj-col-assignee .pj-gicon { font-size: 20px; color: var(--pj-ink-soft); }
.pj-col-head-colored .pj-col-assignee .pj-gicon { color: #fff; }
.pj-stg-assignee-hint { display: block; margin: 4px 0 0; font-weight: 400; }
/* 세션 기본 담당자 카드 — 고른 사람은 배경 강조 */
.pj-stg-pick { cursor: pointer; }
.pj-stg-pick:has(input:checked) { background: var(--pj-accent-tint); box-shadow: inset 0 0 0 1.5px var(--pj-accent); }
.pj-stg-pick .pj-member-pick-icon.material-symbols-outlined { color: #9aa1a9; }
/* 이름 클릭 → 인라인 이름 변경 */
.pj-col-name.pj-col-name-editable { cursor: text; border-radius: 6px; padding: 1px 4px; margin: -1px -4px; }
.pj-col-name.pj-col-name-editable:hover { background: rgba(0,0,0,.06); }
.pj-col-head-colored .pj-col-name.pj-col-name-editable:hover { background: rgba(255,255,255,.22); }
.pj-col-name-input {
font: inherit; font-size: 15.5px; font-weight: 800; color: var(--pj-ink);
min-width: 0; flex: 1 1 auto; max-width: 70%; padding: 2px 6px;
border: 1px solid var(--pj-accent); border-radius: 6px; background: #fff; outline: none;
}
/* 세션 색상 지정 시 — 점 대신 헤더(윗부분) 전체를 그 색으로 칠한다.
.pj-col 의 padding(위 12px·좌우 6px)만큼 밀어내 컬럼 테두리에 딱 맞춘다. */
.pj-col-head.pj-col-head-colored {
margin: -12px -6px 4px; padding: 10px 14px; border-bottom: none;
border-radius: 13px 13px 0 0;
}
.pj-col-head.pj-col-head-colored .pj-col-name { color: #fff; }
.pj-col-head.pj-col-head-colored .pj-col-count { color: rgba(255,255,255,.85); }
.pj-col-head.pj-col-head-colored .pj-col-actions .pj-icon-btn { color: #fff; }
.pj-col-head.pj-col-head-colored .pj-col-actions .pj-icon-btn:hover { background: rgba(255,255,255,.22); }
.pj-col-head.pj-col-head-colored .pj-chip { background: rgba(255,255,255,.28); color: #fff; }
/* 업무 수 — 아사나처럼 이름 바로 오른쪽에 숫자만(배지 없음) */
.pj-col-count { color: var(--pj-ink-soft); font-weight: 500; font-size: 14px; margin-left: 2px; }
/* 오른쪽 끝 + (업무 추가) / … (세션 메뉴) */
.pj-col-actions { margin-left: auto; display: inline-flex; gap: 2px; flex: 0 0 auto; }
.pj-col-actions .pj-icon-btn { width: 28px; height: 28px; color: var(--pj-ink-soft); }
.pj-col-actions .pj-icon-btn .material-symbols-outlined { font-size: 20px; }
.pj-col-actions .pj-icon-btn:hover { color: var(--pj-ink); background: rgba(0,0,0,.06); }
/* 컬럼 안의 카드가 많아지면 보드 전체가 아니라 이 컬럼만 세로로 스크롤한다
— 그래야 가로로 늘어난 다른 세션들이 화면 밖으로 밀려나지 않는다. */
.pj-col-body {
display: flex; flex-direction: column; gap: 8px; min-height: 40px;
border-radius: 8px; padding-top: 8px;
flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
/* 스크롤바를 카드 오른쪽 회색 여백의 한가운데에 — 컬럼 오른쪽 여백(6px)까지
스크롤 영역을 넓히고, 12px 폭 스크롤바 가운데에 6px 막대를 그린다.
gutter 를 늘 잡아 두어 스크롤이 있든 없든 카드 폭이 모든 컬럼에서 같다. */
margin-right: -6px; scrollbar-gutter: stable;
}
/* 컬럼 세로 스크롤바 — 위아래 화살표 없이 얇은 막대만, 바탕은 투명.
크롬은 scrollbar-width/scrollbar-color 를 주면 아래 ::-webkit-scrollbar 를 무시하고
윈도우 기본(화살표 있는) 막대를 그리므로 표준 속성은 파이어폭스에만 준다. */
.pj-col-body::-webkit-scrollbar { width: 12px; background: transparent; }
.pj-col-body::-webkit-scrollbar-track { background: transparent; }
.pj-col-body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* 투명 테두리 3px + padding-box 배경 → 12px 트랙 가운데 6px 막대 */
.pj-col-body::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, .2); background-clip: padding-box;
border: 3px solid transparent; border-radius: 6px;
}
.pj-col-body::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, .35); }
@supports not selector(::-webkit-scrollbar) {
.pj-col-body { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .25) transparent; }
}
.pj-col-head { flex: none; }
.pj-col-body.is-over { background: var(--pj-accent-tint); outline: 2px dashed var(--pj-accent); }
.pj-card {
background: #fff; border: 1px solid var(--pj-border); border-radius: var(--pj-card-radius);
padding: 12px 14px; cursor: pointer; box-shadow: var(--pj-card-shadow);
transition: box-shadow .12s, transform .08s;
}
.pj-card:hover { box-shadow: var(--pj-card-shadow-hover); transform: translateY(-1px); }
.pj-card.is-dragging { opacity: .5; }
/* 하위 업무 한 줄 드래그 — 끄는 줄은 흐리게, 놓을 수 있는 카드는 보라 테두리 */
.pj-card-sub[draggable="true"] .pj-card-sub-title { cursor: grab; }
.pj-card-sub.is-dragging { opacity: .4; }
.pj-card.is-sub-drop { outline: 2px solid var(--pj-accent); outline-offset: -2px; background: var(--pj-accent-tint); }
.pj-card.is-done .pj-card-title { text-decoration: line-through; color: #9aa1a9; }
.pj-card-title { font-size: 13.5px; font-weight: 600; color: var(--pj-ink); line-height: 1.4; }
.pj-card-meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.pj-card-due { margin-left: auto; font-size: 11px; color: var(--pj-ink-soft); font-weight: 600; }
.pj-pri { padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.pj-pri-high { background: #fbe3df; color: #c22b10; }
.pj-pri-low { background: #e6eef0; color: #4a6066; }
/* ── 리스트 ── */
.pj-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pj-table th { text-align: left; padding: 9px 10px; border-bottom: 2px solid #eef0f2; color: #1e1f21; font-size: 14px; font-weight: 700; position: relative; }
.pj-table td { padding: 10px; border-bottom: 1px solid #f1f2f4; }
.pj-table tr.is-done td { color: #9aa1a9; text-decoration: line-through; }
.pj-table-fixed { table-layout: fixed; }
.pj-table-fixed th, .pj-table-fixed td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 리스트 뷰(이 프로젝트 스코프) — 세션이 컬럼 대신 그룹 구분선이 된다(아사나식) */
.pj-list-group-row { background: #fafafd; }
.pj-list-group-head {
display: flex; align-items: center; gap: 6px; padding: 10px 6px !important;
font-size: 13px; font-weight: 700; color: var(--pj-ink); cursor: pointer;
border-bottom: 1px solid var(--pj-border) !important; white-space: nowrap;
}
.pj-list-group-caret { font-size: 18px; color: var(--pj-ink-soft); }
.pj-list-group-count {
color: var(--pj-ink-soft); font-weight: 700; font-size: 11px; background: #eef0f2;
border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px;
display: inline-flex; align-items: center; justify-content: center;
}
.pj-th-label { cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 4px; }
.pj-th-label:hover { color: #4573d2; }
.pj-th-sort { font-size: 11px; color: #9aa1a9; }
.pj-th-resize { position: absolute; top: 0; right: -3px; width: 8px; height: 100%; cursor: col-resize; z-index: 2; }
.pj-th-resize:hover { background: linear-gradient(90deg, transparent 40%, #c9d4ea 40%, #c9d4ea 60%, transparent 60%); }
/* ── 공용 말풍선(아사나식) — 프로젝트 화면의 모든 말풍선은 이 모양 하나.
data-tip 또는 title 을 단 요소에 마우스를 올리면 initHoverTips 가 커서
바로 위에 띄운다(가로 가운데 = 커서, 아래 꼬리가 커서를 가리킴).
새 기능도 title= / data-tip= 만 달면 된다 — 별도 툴팁 구현 금지. */
.pj-hovertip {
position: fixed; z-index: 3000; pointer-events: none;
background: #1e1f21; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35;
padding: 6px 10px; border-radius: 6px; white-space: nowrap;
box-shadow: 0 2px 8px rgba(0,0,0,.18);
transform: translate(-50%, calc(-100% - 6px));
animation: pj-tip-in .12s ease-out;
}
/* 아래쪽 가운데 꼬리 — 가장자리 보정으로 말풍선이 밀리면 꼬리는 커서 쪽으로 */
.pj-hovertip::after {
content: ""; position: absolute; top: 100%;
left: calc(50% + var(--pj-tip-shift, 0px)); transform: translateX(-50%);
border: 5px solid transparent; border-top-color: #1e1f21;
}
/* 위 공간이 모자라면 커서 아래로 뒤집고 꼬리는 위로 */
.pj-hovertip.is-below { transform: translate(-50%, 0); }
.pj-hovertip.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #1e1f21; }
.pj-hovertip[hidden] { display: none; }
@keyframes pj-tip-in { from { opacity: 0; } to { opacity: 1; } }
/* ── 달력 (휴가 모듈과 동일한 월간 그리드 룩) ── */
.pj-cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pj-cal-title { font-size: 18pt; font-weight: 600; margin: 0; letter-spacing: -0.45px; }
.pj-nav-btn { padding: 2px 12px; font-size: 18pt; line-height: 1; }
.pj-today-btn { margin-left: auto; }
.pj-cal { border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.pj-wd-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #f2f2f2; border-bottom: 1px solid #e5e5e5; }
.pj-wd { text-align: center; padding: 8px 0; font-size: 15px; font-weight: 600; color: #0a0a0a; border-right: 1px solid #e5e5e5; }
.pj-wd:last-child { border-right: none; }
/* 주(week) — 날짜 셀 위에 bar 레이어 오버레이. 6주가 높이 균등 분할. */
.pj-week { position: relative; border-bottom: 1px solid #e5e5e5; flex: 1 1 0; min-height: 134px; display: flex; flex-direction: column; }
.pj-week:last-child { border-bottom: none; }
.pj-week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); flex: 1 1 auto; min-height: 0; }
.pj-day { height: 100%; border-right: 1px solid #e5e5e5; padding: 6px 8px; box-sizing: border-box; }
.pj-day:last-child { border-right: none; }
.pj-day-num { font-size: 20px; font-weight: 600; color: #0a0a0a; }
.pj-out { background: #fafafa; }
.pj-out .pj-day-num { color: #bbb; }
.pj-today { background: #f5f5f5; }
.pj-today .pj-day-num { background: #0a0a0a; color: #fff !important; border-radius: 9999px; padding: 2px 9px; }
.pj-today .pj-day-num.pj-red { background: #c22b10; }
.pj-today .pj-day-num.pj-blue { background: #1d4ed8; }
.pj-red { color: #c22b10 !important; }
.pj-blue { color: #1d4ed8 !important; }
.pj-day-holiday {
display: block; font-size: 10.5px; color: #c22b10; font-weight: 600;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px;
}
/* bar 오버레이 — 날짜 숫자 아래(top)부터 7열 그리드로 겹쳐 그림 */
.pj-week-bars { position: absolute; left: 0; right: 0; top: 34px; bottom: 4px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 22px; row-gap: 2px; pointer-events: none; }
.pj-bar { margin: 0 3px; padding: 0 7px; height: 20px; line-height: 20px; border-radius: 5px; font-size: 12.5px; font-weight: 500; color: #fff; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; align-self: center; pointer-events: auto; cursor: pointer; }
.pj-bar:hover { filter: brightness(.93); }
.pj-bar-label { pointer-events: none; }
/* "+N 더" 칩 — 넘친 업무. 클릭 시 그날 목록 팝오버 */
.pj-bar-more { margin: 0 3px; height: 18px; line-height: 18px; align-self: center; font-size: 11.5px; font-weight: 600; color: #5a6772; cursor: pointer; pointer-events: auto; padding: 0 4px; border-radius: 5px; }
.pj-bar-more:hover { background: #eceef0; color: #1e1f21; }
/* 그날 업무 팝오버 */
.pj-daypop { position: absolute; z-index: 2100; min-width: 200px; max-width: 280px; background: #fff; border: 1px solid #e2e5e9; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 8px; }
.pj-daypop-head { font-size: 12px; font-weight: 700; color: #525860; padding: 4px 6px 8px; }
.pj-daypop-item { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.pj-daypop-item:hover { background: #f2f4f6; }
.pj-daypop-item.is-done .pj-daypop-title { text-decoration: line-through; color: #9aa1a9; }
.pj-daypop-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.pj-daypop-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-bar-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.pj-bar-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.pj-bar-done { opacity: .75; text-decoration: line-through; }
/* 드래그 이동(포인터 기반) — 드래그 중엔 bar 가 이벤트 가로채지 않게(elementFromPoint 가 날짜 셀 반환) */
.pj-cal-dragging { cursor: grabbing; }
.pj-cal-dragging .pj-bar { pointer-events: none; }
.pj-project-view[data-can-manage="true"] .pj-bar { cursor: grab; }
.pj-day.pj-drop-over { background: #e6ecfa; box-shadow: inset 0 0 0 2px #aebfe6; }
/* 드래그 중 따라다니는 고스트 라벨 */
.pj-bar-ghost { position: fixed; z-index: 2000; pointer-events: none; padding: 2px 10px; border-radius: 6px; background: #1e1f21; color: #fff; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.3); white-space: nowrap; }
/* ── 타임라인 컨테이너 ── */
.pj-tl-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
#pj-timeline { background: #fff; border-radius: 12px; padding: 6px; }
/* 아사나 느낌의 둥근 알약형 막대 + 살짝 뜨는 호버. vis 기본 각진 스타일 위에 덮어씀. */
#pj-timeline .vis-item.vis-range {
border-radius: 10px !important; border: none !important;
box-shadow: 0 1px 2px rgba(16,24,40,.12); transition: box-shadow .15s, transform .15s;
}
#pj-timeline .vis-item.vis-point .vis-item-content { border-radius: 10px; }
#pj-timeline .vis-item:hover { box-shadow: 0 3px 10px rgba(16,24,40,.22); transform: translateY(-1px); cursor: grab; }
#pj-timeline .vis-item.vis-dragging { cursor: grabbing; }
#pj-timeline .vis-item .vis-item-content { padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
/* 드래그로 끄는 양 끝 손잡이 — 기본보다 조금 더 잘 보이게 */
#pj-timeline .vis-item .vis-drag-left, #pj-timeline .vis-item .vis-drag-right {
width: 10px; cursor: ew-resize;
}
/* 마우스 오버 시 그 업무 날짜 구간을 전체 높이로 살짝 강조(헤더 날짜 위치를
눈으로 바로 짚을 수 있게) — pointer-events 는 vis 배경 아이템 기본값(none)
그대로라 밑에 깔린 막대의 호버 감지를 방해하지 않는다. */
#pj-timeline .pj-tl-hover-band { background: var(--pj-accent-tint) !important; opacity: .8; }
/* ── 모달 ── */
.pj-modal { position: fixed; inset: 0; background: rgba(20,22,26,.46); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.pj-modal[hidden] { display: none; }
.pj-modal-card { background: #fff; border-radius: 16px; padding: 22px; width: min(480px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: 90vh; overflow-y: auto; }
/* 업무 편집/새 업무 — 아사나처럼 화면 오른쪽에서 슬라이드로 열리는 전체
높이 패널(중앙 카드가 아니다). 오버레이는 옅게 깔고, 패널은 오른쪽에
붙여 연 상태(.pj-panel-open, JS 가 reflow 뒤에 붙인다)에서 transform 이
0 으로 슬라이드된다. 왼쪽 모서리(.pj-task-panel-resizer)를 드래그해
너비를 바꾼다(최소 420px, 최대 화면 절반 — CSS max-width + JS 클램프). */
#pj-modal-task { justify-content: flex-end; align-items: stretch; background: rgba(20,22,26,.32); }
.pj-task-modal-card {
width: 640px; max-width: 50vw; min-width: 420px;
height: 100vh; max-height: 100vh;
border-radius: 0; box-shadow: -14px 0 36px rgba(0,0,0,.2);
display: flex; flex-direction: column; overflow: hidden; position: relative;
transform: translateX(100%);
transition: transform .28s cubic-bezier(.22,.8,.24,1);
}
#pj-modal-task.pj-panel-open .pj-task-modal-card { transform: translateX(0); }
.pj-task-panel-resizer {
position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
cursor: col-resize; z-index: 6; background: transparent;
}
.pj-task-panel-resizer:hover, .pj-task-panel-resizer.is-dragging { background: var(--pj-accent-tint); }
.pj-task-modal-card > .pj-t-title-input { flex: none; }
.pj-task-modal-card .pj-modal-body { flex: 1 1 auto; min-height: 0; }
.pj-task-modal-card .pj-modal-actions { flex: none; }
/* 위에서 아래로 쭉 쌓는 단일 칼럼 — 메타 → 설명 → 하위업무 →
(첨부파일|연결된 프로젝트 2열) → 댓글(팝업 너비 전체) 순서. 각 구간은
.pj-task-extra 의 위쪽 구분선으로 나뉘고, 넘치는 부분은 이 전체가 세로로
스크롤한다. */
.pj-modal-body { display: flex; flex-direction: column; overflow-y: auto; }
.pj-desc-block { min-width: 0; padding-top: 10px; margin-top: 14px; border-top: 1px solid #eef0f2; }
.pj-subtask-full { min-width: 0; }
/* 첨부파일 | 연결된 프로젝트 — 나란히 2열. */
.pj-side-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.pj-side-2col .pj-task-extra { min-width: 0; }
/* 댓글 — 팝업 너비 전체, 목록 자체는 더 이상 안에서 스크롤하지 않고
팝업 전체(.pj-modal-body)와 같이 늘어난다. */
.pj-comment-full .pj-comment-list { max-height: none; overflow-y: visible; }
@media (max-width: 720px) {
.pj-task-modal-card { width: 100vw; max-width: 100vw; min-width: 0; }
.pj-side-2col { display: block; }
}
.pj-modal-card h3 { margin: 0 0 16px; font-size: 17px; }
.pj-modal-hint { margin: -6px 0 14px; font-size: 12px; color: #6b7280; }
/* 업무 편집 팝업 — 아사나식 레이아웃. 버튼 줄 바로 아래 큰 무테 제목
입력칸 하나뿐(작은 안내줄은 없앰). height+line-height 를 맞춰 그 줄
안에서 글자가 세로 가운데에 오도록 한다(한 줄짜리 input 표준 기법). */
.pj-t-title-input {
display: block; width: 100%; border: none !important; background: transparent !important;
height: 40px; line-height: 40px; font-size: 19px !important; font-weight: 700;
padding: 0 4px !important; margin: 4px 0 8px !important;
color: var(--pj-ink); box-sizing: border-box;
}
.pj-t-title-input:focus { outline: none; background: #f6f7f8 !important; border-radius: 8px; }
/* 하위 업무 팝업 — 제목 위 상위 업무 경로(아사나식). 누르면 상위 업무로 */
.pj-task-modal-card > .pj-t-parent { flex: none; }
.pj-t-parent {
display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; max-width: 100%;
margin: 6px 0 -4px; padding: 2px 6px; border: none; background: transparent; border-radius: 6px;
font-size: 12px; color: var(--pj-ink-soft); cursor: pointer;
}
.pj-t-parent[hidden] { display: none; }
.pj-t-parent:hover { background: #f1f2f4; color: var(--pj-ink); }
.pj-t-parent .material-symbols-outlined { font-size: 16px; transform: scaleX(-1); }
.pj-t-parent-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 메타 정보 — 아사나처럼 "라벨(좌, 고정폭) + 아이콘/값(우)" 목록형 한 줄씩. */
.pj-meta-list { display: flex; flex-direction: column; margin-bottom: 4px; }
.pj-meta-row2 {
display: flex; align-items: center; min-height: 40px;
border-bottom: 1px solid #f1f2f4; gap: 12px;
}
.pj-meta-label2 { flex: 0 0 92px; font-size: 13px; font-weight: 600; color: var(--pj-ink-soft); }
.pj-meta-value2 { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.pj-meta-ic { font-size: 18px; color: #9aa1a9; flex: none; }
.pj-meta-value2 select, .pj-meta-value2 input,
.pj-meta-cell select, .pj-meta-cell input {
display: block; width: auto; max-width: 100%; margin: 0 !important; padding: 6px 8px !important;
border: 1px solid transparent !important; border-radius: 6px !important; background: transparent !important;
font-size: 13.5px !important; font-weight: 600; font-family: inherit; color: var(--pj-ink);
box-sizing: border-box; cursor: pointer;
}
.pj-meta-value2 select:hover, .pj-meta-value2 input:hover,
.pj-meta-value2 select:focus, .pj-meta-value2 input:focus,
.pj-meta-cell select:hover, .pj-meta-cell input:hover,
.pj-meta-cell select:focus, .pj-meta-cell input:focus {
border-color: var(--pj-border) !important; background: #f6f7f8 !important; outline: none;
}
/* 담당자 · 세션 · 우선순위 · 마감일 한 줄 — 칸마다 "작은 라벨 + 값", 칸 사이는
얇은 세로선. 담당자는 이름 길이만큼만(최대 150px), 남는 폭은 세션 칸이 쓴다. */
.pj-meta-row-multi { gap: 0; padding: 2px 0; }
.pj-meta-cell { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 36px; }
.pj-meta-cell + .pj-meta-cell { border-left: 1px solid #eef0f2; padding-left: 10px; margin-left: 10px; }
.pj-meta-cell-stage { flex: 1 1 0; }
.pj-meta-cell-assignee { flex: 0 1 auto; }
.pj-meta-cell-priority, .pj-meta-cell-due { flex: 0 0 auto; }
.pj-meta-cell-label { font-size: 13px; font-weight: 600; color: var(--pj-ink-soft); white-space: nowrap; flex: none; }
.pj-meta-cell select { flex: 1 1 auto; min-width: 0; width: 100%; text-overflow: ellipsis; }
.pj-meta-cell-priority select { width: auto; }
.pj-meta-cell-assignee select { width: auto; max-width: 150px; }
/* 마감일 — 달력 아이콘 버튼 하나. 진짜 값은 숨긴 input[type=date] 가 들고 있고,
버튼을 누르면 JS 가 showPicker() 로 브라우저 달력을 띄운다(달력의 "삭제"로 지움). */
.pj-meta-cell-due { position: relative; }
.pj-due-btn {
display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px;
border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer;
color: #6b6f76; font-size: 13.5px; font-weight: 600; font-family: inherit; white-space: nowrap;
}
.pj-due-btn .material-symbols-outlined { font-size: 20px; }
.pj-due-btn:hover { border-color: var(--pj-border); background: #f6f7f8; color: var(--pj-ink); }
.pj-due-btn.has-date { color: var(--pj-ink); }
.pj-due-btn.is-overdue { color: #c22b10; }
.pj-due-text:empty { display: none; }
/* <input type="date"> 대신 쓰는 아사나식 날짜 버튼(enhanceDateInput) — 누르면 날짜 팝업 */
.pj-date-btn {
display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; height: 36px; padding: 0 12px;
border: 1px solid #d8dce2; border-radius: 8px; background: #fff; cursor: pointer;
font-size: 13.5px; font-family: inherit; font-weight: 500; color: var(--pj-ink); white-space: nowrap;
}
.pj-date-btn .material-symbols-outlined { font-size: 19px; color: #6d6e6f; }
.pj-date-btn:hover { background: #f6f7f8; border-color: #c4c9d0; }
.pj-date-btn.is-empty { color: #9aa1a9; }
.pj-date-btn.is-overdue { color: #c22b10; }
/* 하위 작업 추가 줄 안에서는 옆 칸들과 높이를 맞춘다 */
.pj-subtask-form .pj-date-btn { margin-top: 0; height: 32px; padding: 0 10px; font-size: 12.5px; }
/* 화면엔 안 보이지만 달력이 버튼 자리에 뜨도록 렌더는 유지(display:none 이면 showPicker 불가) */
.pj-meta-row-multi .pj-meta-cell-due input.pj-due-native {
position: absolute; left: 60px; bottom: 2px; width: 1px !important; height: 1px;
padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; pointer-events: none;
}
/* 패널이 좁으면(너비 조절/작은 화면) 2×2 로 접는다 — 담당자|세션 / 우선순위|마감일. */
.pj-task-modal-card { container-type: inline-size; container-name: pjpanel; }
@container pjpanel (max-width: 520px) {
.pj-meta-row-multi { display: grid; grid-template-columns: 1fr 1fr; }
.pj-meta-cell:nth-child(3) { border-left: none; padding-left: 0; margin-left: 0; }
}
.pj-extra-label { font-size: 12.5px; font-weight: 700; color: var(--pj-ink-soft); margin-right: auto; }
.pj-modal-card label { display: block; font-size: 12.5px; font-weight: 600; color: #525860; margin-bottom: 12px; }
.pj-modal-card input[type=text], .pj-modal-card input[type=date], .pj-modal-card textarea, .pj-modal-card select {
display: block; width: 100%; margin-top: 5px; padding: 8px 10px; border: 1px solid #d8dce2; border-radius: 8px; font-size: 13.5px; font-family: inherit; box-sizing: border-box;
}
.pj-form-row { display: flex; gap: 12px; }
.pj-form-row label { flex: 1; }
.pj-time-toggle { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #525860; margin-bottom: 12px; cursor: pointer; }
.pj-time-toggle input { width: auto; margin: 0; }
.pj-modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
/* 업무 편집 팝업은 버튼 줄이 맨 위에 고정이다 — 설명/하위업무가 길어도
스크롤하지 않고 저장·취소할 수 있다. 카드(.pj-task-modal-card)는 flex
column 이고 스크롤은 .pj-modal-body 만 하므로 sticky 는 필요 없다.
(예전엔 sticky + margin-top:-22px 이었는데, sticky 는 스크롤 컨테이너의
padding 안쪽에 붙어서 바가 22px 아래로 밀려났다 — 바 위에 빈 공간이
생겨 버튼이 아래로 치우쳐 보이고, 밀려난 바가 제목 윗부분을 덮었다.)
그래서 카드의 padding-top 을 0 으로 두고 바는 좌우 음수 마진만 준다.
(주의: overflow-x 와 overflow-y 를 하나만 auto/hidden 으로 두고 나머지를
visible 로 두면 브라우저가 visible 쪽도 auto 로 취급해 세로 스크롤바가
생긴다 — 그래서 두 축 다 명시한다.) */
.pj-task-modal-card { padding-top: 0; box-sizing: border-box; } /* 100vh 에 padding 포함 — 아래가 화면 밖으로 안 넘친다 */
.pj-modal-actions-top {
flex: none; height: 40px; box-sizing: border-box; align-items: center;
margin: 0 -22px 6px; padding: 0 16px 0 22px;
background: #fff; border-bottom: 1px solid #eef0f2;
flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
}
.pj-modal-actions-top .pj-btn { flex: none; padding: 3px 8px; font-size: 11px; }
.pj-btn-complete { background: #e9f7ef; color: #1e8e5a; border: 1px solid #bfe8d2; font-weight: 700; }
.pj-btn-complete:hover { background: #d9f2e4; }
.pj-btn-complete.is-done { background: #f2f2f4; color: #6b6f76; border-color: var(--pj-border); }
.pj-color-palette, #pj-f-colors { display: flex; gap: 8px; margin-top: 6px; }
.pj-color-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.pj-color-swatch.is-active { border-color: #1e1f21; box-shadow: 0 0 0 2px #fff inset; }
/* ── 알림 벨 ── */
.pj-toolbar-right { display: flex; align-items: center; gap: 12px; }
.pj-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: #525860; text-decoration: none; }
.pj-bell:hover { background: #eceef0; }
.pj-bell-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e8384f; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
/* ── 업무 모달 댓글/첨부 ── */
.pj-task-extra { border-top: 1px solid #eef0f2; margin-top: 14px; padding-top: 12px; }
.pj-extra-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #525860; margin-bottom: 8px; }
.pj-upload-btn { margin-left: auto; font-size: 12px; font-weight: 600; color: #4573d2; cursor: pointer; padding: 3px 8px; border: 1px solid #cdd9f0; border-radius: 7px; }
.pj-upload-btn:hover { background: #eef3fc; }
.pj-attach-list, .pj-comment-list { list-style: none; margin: 0 0 6px; padding: 0; max-height: 160px; overflow-y: auto; }
.pj-attach-item { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 13px; }
.pj-attach-item a { color: #2b4a85; text-decoration: none; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-attach-item a:hover { text-decoration: underline; }
.pj-attach-size { font-size: 11px; color: #9aa1a9; }
.pj-comment-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 2px; }
.pj-comment-main { flex: 1; }
.pj-comment-head { font-size: 12.5px; font-weight: 700; color: #1e1f21; }
.pj-comment-time { font-weight: 400; color: #9aa1a9; font-size: 11px; margin-left: 6px; }
.pj-comment-body { font-size: 13px; color: #333; margin-top: 1px; white-space: pre-wrap; }
/* 댓글 속 웹페이지 주소 — 누르면 새 탭(linkifyToHtml). 긴 주소는 줄바꿈 */
.pj-comment-body a, .pj-chat-bubble a { color: #1a5fd0; text-decoration: underline; word-break: break-all; }
.pj-comment-body a:hover, .pj-chat-bubble a:hover { color: #0b3f99; }
.pj-comment-form { display: flex; align-items: center; gap: 6px; }
.pj-comment-form input { flex: 1; padding: 7px 10px; border: 1px solid #d8dce2; border-radius: 8px; font-size: 13px; font-family: inherit; box-sizing: border-box; }
.pj-comment-acts { display: inline-flex; gap: 1px; flex: 0 0 auto; }
.pj-comment-edit-box { margin-top: 5px; }
.pj-comment-edit-box textarea { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #d8dce2; border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; }
.pj-comment-edit-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.pj-comment-edit-actions .pj-btn { padding: 4px 12px; font-size: 12px; }
/* 보드 카드 — 전체 뷰에서 어느 프로젝트인지 배지 표시 */
.pj-card-proj { font-size: 11px; font-weight: 700; margin-bottom: 3px; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 댓글 말풍선(💬 이모지) 표시 */
.pj-cmt-ic { font-size: 12px; vertical-align: middle; margin-left: 4px; line-height: 1; display: inline-block; }
.pj-cmt-n { font-size: 11px; font-weight: 700; vertical-align: middle; margin-left: 1px; }
.pj-card-cmt { display: inline-flex; align-items: center; color: #6b7280; }
.pj-cmt-badge { display: inline-flex; align-items: center; flex: 0 0 auto; color: #6b7280; cursor: pointer; }
/* 캘린더 막대·목록 행 안의 말풍선 — 색은 그 자리 글자색을 따른다(막대=흰색) */
.pj-cmt-badge.pj-cmt-inline { color: inherit; }
/* 새 댓글이 등록된 뒤 아직 확인 안 한 업무 — 살짝 커지며 반짝임. 확인하면(더블클릭) 원래대로. */
@keyframes pj-cmt-pulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.5); opacity: .55; }
}
.pj-cmt-badge.is-unread .pj-cmt-ic { animation: pj-cmt-pulse 1.1s ease-in-out infinite; }
.pj-cmt-badge.is-unread .pj-cmt-n { color: #e8384f; font-weight: 800; }
/* ── 새 프로젝트 모달 — 멤버 선택 ── */
.pj-modal-card .pj-field-label { display: block; font-size: 12.5px; font-weight: 600; color: #525860; margin-bottom: 12px; }
.pj-member-picker { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; max-height: 140px; overflow-y: auto; padding: 6px 2px; border: 1px solid #eef0f2; border-radius: 8px; }
.pj-member-pick { display: inline-flex !important; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500 !important; color: #333; width: auto !important; margin: 0 !important; }
.pj-member-pick input { width: auto !important; margin: 0 !important; }
/* 멤버 배정 모달의 후보 목록 — 위에서부터 아이콘 → 이름 → 체크박스 세로 배치,
아이콘은 다른 곳(pj-gicon-sm)보다 2배 크게(20px→40px, 아바타 18px→36px). */
.pj-member-pick-stacked {
flex-direction: column !important; gap: 4px !important;
padding: 8px 6px; border-radius: 8px;
}
.pj-member-pick-stacked:hover { background: #f5f6f8; }
.pj-member-pick-avatar { display: flex; }
.pj-member-pick-avatar .pj-member-pick-icon.material-symbols-outlined { font-size: 40px; }
.pj-member-pick-avatar img.pj-member-pick-icon { width: 36px; height: 36px; }
.pj-member-pick-stacked .pj-member-pick-name { font-size: 12.5px; }
/* ── 좌측 사이드바 "전체 멤버" — 4열 그리드, 아이콘 아래 이름(새 프로젝트
모달의 pj-member-pick-stacked 와 같은 아이콘 크기 재사용). ── */
.pj-allmembers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.pj-allmember-item {
display: flex; flex-direction: column; align-items: center; gap: 4px;
padding: 6px 2px; border: none; background: none; border-radius: 8px; cursor: pointer;
font: inherit; width: 100%;
}
.pj-allmember-item:hover { background: #f5f6f8; }
.pj-allmember-item .pj-member-pick-icon.material-symbols-outlined { font-size: 40px; }
.pj-allmember-item img.pj-member-pick-icon { width: 36px; height: 36px; }
.pj-allmember-name { font-size: 11.5px; color: #333; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── 전체 멤버 클릭 팝업 — 담당 업무 목록(프로젝트/세션/제목/마감일) ── */
.pj-mt-card { width: min(600px, 94vw); }
.pj-mt-card h3 { display: flex; align-items: center; gap: 6px; }
.pj-mt-title-avatar { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; vertical-align: middle; }
.pj-mt-head {
display: grid; grid-template-columns: 100px 90px 1fr 80px; gap: 8px;
padding: 6px; border-bottom: 2px solid #eef0f2; margin-bottom: 2px;
}
.pj-mt-h {
text-align: center; font-weight: 700; font-size: 12px; color: #1e1f21;
cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: center; gap: 3px;
}
.pj-mt-h:hover { color: var(--pj-accent); }
.pj-mt-sort-icon { font-size: 10px; color: var(--pj-accent); }
.pj-mt-list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 50vh; overflow-y: auto; }
.pj-mt-row {
display: grid; grid-template-columns: 100px 90px 1fr 80px; gap: 8px; align-items: center;
padding: 8px 6px; border-bottom: 1px solid #f1f2f4; font-size: 12.5px; cursor: pointer;
}
.pj-mt-row:hover { background: #f6f7f8; }
.pj-mt-row.is-done { color: #9aa1a9; text-decoration: line-through; }
.pj-mt-proj { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-mt-stage { color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-mt-title2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-mt-due { text-align: right; color: var(--pj-ink-soft); font-weight: 600; white-space: nowrap; }
/* ── 댓글만 보는 채팅형 팝업(카톡 대화창 느낌) ── */
/* 크기 고정(500x850) — 내용이 많아도 팝업 크기는 그대로, 목록만 스크롤. */
.pj-modal-chat {
width: 500px; height: 850px; max-width: 96vw; max-height: 92vh;
box-sizing: border-box; display: flex; flex-direction: column;
}
.pj-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex: 0 0 auto; }
.pj-chat-head h3 { margin: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-chat-list { list-style: none; margin: 0 0 10px; padding: 4px; flex: 1 1 auto; min-height: 0; overflow-y: auto; background: #eef0f2; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.pj-modal-chat .pj-comment-form { flex: 0 0 auto; }
.pj-chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.pj-chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.pj-chat-name { font-size: 11px; color: #6b7280; margin-bottom: 2px; padding: 0 2px; }
/* 상대방 댓글 — 왼쪽 프로필 아이콘 + (이름/말풍선/시간) 세로 묶음 */
.pj-chat-msg.other { flex-direction: row; align-items: flex-start; gap: 8px; }
.pj-chat-av { flex: 0 0 auto; display: inline-flex; }
.pj-avatar.pj-chat-avatar { width: 34px; height: 34px; }
.pj-gicon.pj-chat-avatar { font-size: 36px; line-height: 1; color: #9aa1a9; }
.pj-chat-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pj-chat-msg.other .pj-chat-name { font-size: 12px; font-weight: 600; color: #4b5563; }
.pj-chat-bubble {
background: #fff; border-radius: 14px 14px 14px 4px; padding: 8px 12px;
font-size: 13.5px; color: #1e1f21; white-space: pre-wrap; word-break: break-word;
box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.pj-chat-msg.mine .pj-chat-bubble { background: #fee500; border-radius: 14px 14px 4px 14px; }
.pj-chat-meta { display: flex; align-items: center; gap: 3px; margin-top: 3px; padding: 0 2px; }
.pj-chat-time { font-size: 10px; color: #9aa1a9; }
/* 본인 댓글만 보이는 삭제 버튼 */
.pj-chat-del { width: 16px; height: 16px; color: #b7bdc5; }
.pj-chat-del .material-symbols-outlined { font-size: 13px; }
.pj-chat-del:hover { color: #c22b10; background: #fbecea; }
/* ── 채팅 첨부(이미지/파일) — 말풍선 아래 붙는다 ── */
.pj-chat-atts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; max-width: 100%; }
.pj-chat-msg.mine .pj-chat-atts { align-items: flex-end; }
.pj-chat-att { position: relative; display: inline-flex; }
.pj-chat-att-img img {
max-width: 220px; max-height: 220px; border-radius: 12px; display: block;
object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.pj-chat-att-file {
display: inline-flex; align-items: center; gap: 4px; background: #fff;
border: 1px solid var(--pj-border); border-radius: 10px; padding: 2px 4px 2px 2px;
}
.pj-chat-att-file a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; color: var(--pj-ink); text-decoration: none; font-size: 12.5px; }
.pj-chat-att-file a:hover { text-decoration: underline; }
.pj-chat-att-icon { font-size: 16px; line-height: 1; }
.pj-chat-att-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-chat-att-del {
width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; align-items: center;
justify-content: center; border-radius: 50%; color: #9aa1a9;
}
.pj-chat-att-del .material-symbols-outlined { font-size: 13px; }
.pj-chat-att-del:hover { color: #c22b10; background: #fbecea; }
.pj-chat-att-img .pj-chat-att-del {
position: absolute; top: 4px; right: 4px; background: rgba(20,22,26,.55); color: #fff;
}
.pj-chat-att-img .pj-chat-att-del:hover { background: rgba(194,43,16,.85); }
/* ── 보내기 전 대기 파일 칩 ── */
.pj-chat-pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 8px; flex: 0 0 auto; }
.pj-chat-pending-chip {
display: inline-flex; align-items: center; gap: 5px; background: #eef0f2;
border-radius: 8px; padding: 4px 8px; font-size: 11.5px; color: #333;
}
.pj-chat-pending-chip button { border: none; background: none; cursor: pointer; color: #6b7280; font-size: 13px; line-height: 1; padding: 0; }
.pj-chat-pending-chip button:hover { color: #c22b10; }
/* ── 첨부 버튼(클립) — 입력창과 높이를 맞추고, 호버 시 회색 네모 안에
아이콘이 가로세로 정가운데 오도록 line-height/box-sizing까지 정리.
.pj-modal-card label { display:block; margin-bottom:12px; font-size:12.5px }
이 이 label을 가로채(클래스+엘리먼트 조합이라 detay:flex 단일 클래스보다
상세도가 높음) display 는 block으로, margin-bottom 12px 까지 먹여서
실제로는 미세하게 위로 밀려 보였다 — .pj-modal-card 를 앞에 붙여 상세도로
이기고, 새는 값들도 전부 명시적으로 되돌린다. ── */
.pj-modal-card .pj-chat-attach-btn {
display: inline-flex; align-items: center; justify-content: center;
width: 34px; height: 34px; box-sizing: border-box; flex: 0 0 auto;
border-radius: 8px; cursor: pointer; color: #5f6368; line-height: 0;
margin-bottom: 0; font-size: 0;
}
.pj-chat-attach-btn:hover { background: #f1f2f4; }
.pj-chat-attach-btn .material-symbols-outlined {
display: block; font-size: 20px; line-height: 1;
}
/* ── 보드 단계 컨트롤 ── */
.pj-col-head { position: relative; }
.pj-col-name { font-weight: 700; }
.pj-icon-btn[disabled] { opacity: .3; cursor: default; }
.pj-add-stage { width: 100%; padding: 10px; border: 1px dashed #c9cdd3; border-radius: 12px; background: #fff; color: #6b7280; font-size: 13px; font-weight: 600; cursor: pointer; }
.pj-add-stage:hover { border-color: #1e1f21; color: #1e1f21; }
/* 세션 맨 아래 "+ 업무 추가" — 카드가 많아 .pj-col-body 가 스크롤돼도
컬럼 바닥에 그대로 남는다(flex: none). */
.pj-col-addtask {
flex: none; width: 100%; margin-top: 8px; padding: 7px 10px;
border: none; border-radius: 8px; background: transparent;
color: var(--pj-ink-soft); font-size: 13px; font-weight: 600;
text-align: left; cursor: pointer;
}
.pj-col-addtask:hover { background: rgba(255,255,255,.75); color: var(--pj-ink); }
/* 세션(컬럼) 드래그 재정렬 */
.pj-col-head[draggable="true"] { cursor: grab; }
.pj-col.is-dragging { opacity: .45; }
.pj-col.pj-col-drop-target { outline: 2px dashed #aebfe6; outline-offset: -2px; border-radius: 12px; }
/* 업무 카드 — 하위 업무 진행 배지("2/5") */
/* ── 카드 하위 업무(아사나처럼) — "N ⤷ ▾" 토글 + 카드 아래로 펼치는 목록 ── */
.pj-card-subtoggle {
display: inline-flex; align-items: center; gap: 1px; flex: 0 0 auto; margin-left: auto;
height: 22px; padding: 0 2px 0 6px; border: 1px solid transparent; border-radius: 6px;
background: transparent; color: var(--pj-ink-soft); font: inherit; font-size: 12px; font-weight: 600;
cursor: pointer;
}
.pj-card-subtoggle:hover { background: #f1f2f4; color: var(--pj-ink); }
.pj-card-subtoggle.is-open { border-color: #4573d2; color: var(--pj-ink); background: #fff; }
.pj-card-subtoggle-ic { display: block; margin-left: 3px; }
.pj-card-subtoggle-caret { font-size: 18px; margin-left: -2px; transition: transform .12s; }
.pj-card-subtoggle.is-open .pj-card-subtoggle-caret { transform: rotate(180deg); }
/* 펼침 애니메이션 — grid 행 0fr→1fr 로 내용 높이만큼 부드럽게(높이 고정값 불필요) */
.pj-card-subs-wrap {
display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0;
transition: grid-template-rows .25s ease, margin-top .25s ease, opacity .2s ease;
}
.pj-card-subs-wrap.is-open { grid-template-rows: 1fr; margin-top: 10px; opacity: 1; }
.pj-card-subs { min-height: 0; overflow: hidden; margin: 0 -4px; border-top: 1px solid #eef0f2; }
@media (prefers-reduced-motion: reduce) { .pj-card-subs-wrap { transition: none; } }
.pj-card-sub {
display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 2px 4px;
border-bottom: 1px solid #eef0f2; font-size: 13px; color: var(--pj-ink);
}
.pj-card-sub:hover { background: #f7f8fa; }
.pj-card-sub-check {
flex: 0 0 auto; display: inline-flex; padding: 0; border: 0; background: none; cursor: pointer;
color: #8b929b; border-radius: 50%;
}
.pj-card-sub-check .material-symbols-outlined { font-size: 19px; }
.pj-card-sub-check:hover { color: #58a182; }
.pj-card-sub.is-done .pj-card-sub-check { color: #58a182; }
.pj-card-sub.is-done .pj-card-sub-check .material-symbols-outlined { font-variation-settings: "FILL" 1; }
.pj-card-sub-title { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-card-sub.is-done .pj-card-sub-title { color: #9aa1a9; }
/* 마감일은 제목이 아무리 길어도 항상 보인다 — 줄어드는 건 제목(말줄임)뿐 */
.pj-card-sub-due { flex: 0 0 auto; white-space: nowrap; font-size: 12px; color: var(--pj-ink-soft); }
.pj-card-sub-due.is-overdue { color: #c22b10; }
.pj-card-sub-due { cursor: pointer; border-radius: 4px; }
.pj-card-sub-due:not(.is-empty):hover { background: #eceef0; }
/* 마감일 없음 — 줄에 마우스를 올릴 때만 점선 원 달력 아이콘(아사나) */
.pj-card-sub-due.is-empty {
display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
border-radius: 50%; color: #6d6e6f; opacity: 0; transition: opacity .12s;
}
.pj-card-sub:hover .pj-card-sub-due.is-empty { opacity: 1; }
.pj-card-sub-due.is-empty:hover { color: #1e1f21; background: #eceef0; }
.pj-card-sub-av { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
/* 담당자 없음 — 줄에 마우스를 올릴 때만 점선 원 아이콘(아사나) */
.pj-card-sub-av.is-empty { color: #6d6e6f; opacity: 0; transition: opacity .12s; }
.pj-card-sub:hover .pj-card-sub-av.is-empty { opacity: 1; }
.pj-card-sub-av.is-empty:hover { color: #1e1f21; background: #eceef0; }
.pj-card-sub-empty { padding: 8px 4px; font-size: 12px; color: #9aa1a9; }
/* 카드 하위 작업 맨 아래 "+ 하위 작업 추가"와 새 줄 입력(아사나) */
.pj-card-subnew {
display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 4px;
border-bottom: 2px solid var(--pj-accent, #4573d2); font-size: 13px; color: var(--pj-ink);
}
.pj-card-sub-check.is-ghost { cursor: default; color: #b8bdc4; }
.pj-card-sub-check.is-ghost:hover { color: #b8bdc4; }
.pj-card-subnew-title {
flex: 1 1 0; min-width: 0; border: none; outline: none; background: transparent;
padding: 4px 0; font-size: 13px; font-family: inherit; color: var(--pj-ink);
}
.pj-card-subnew-title::placeholder { color: #9aa1a9; }
/* 새 줄의 마감일·담당자 아이콘은 늘 보인다(기존 줄은 마우스를 올릴 때만) */
.pj-card-subnew .pj-card-sub-due.is-empty,
.pj-card-subnew .pj-card-sub-av.is-empty { opacity: 1; }
.pj-card-subadd {
display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 2px; padding: 4px 6px;
border: none; background: transparent; border-radius: 6px; cursor: pointer;
font-size: 12.5px; font-weight: 600; color: #6d6e6f; font-family: inherit;
}
.pj-card-subadd .material-symbols-outlined { font-size: 17px; }
.pj-card-subadd:hover { background: #f1f2f4; color: var(--pj-ink); }
/* 프로젝트 스코프 토글(이 프로젝트 / 전체 프로젝트) — 뷰 탭과 같은 모양 재사용 */
#pj-scope-toggle { margin-left: auto; }
/* ── 업무 설명 — contenteditable(이미지 붙여넣기/업로드 삽입) ── */
.pj-desc-toolbar { display: flex; align-items: center; gap: 8px; margin: -6px 0 6px; }
.pj-desc-toolbar .pj-muted-sm { font-size: 11px; color: #9aa1a9; }
/* 간단 워드프로세서 서식 도구 모음 */
.pj-desc-fmtbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-bottom: 6px; }
.pj-desc-fmtbtn {
min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px;
background: transparent; color: #444; font-size: 13px; font-family: inherit; cursor: pointer;
display: inline-flex; align-items: center; justify-content: center;
}
.pj-desc-fmtbtn:hover { background: #f1f2f4; }
.pj-desc-fmtbtn.is-active { background: var(--pj-accent-tint); border-color: var(--pj-accent); color: var(--pj-accent-dark); }
/* 이미지 추가 버튼(label)도 다른 버튼과 같은 높이/굵기로 — material-symbols
기본 24px 아이콘을 그대로 두면 이 버튼만 커 보이고 줄도 어긋난다. */
.pj-desc-fmtbtn .material-symbols-outlined { font-size: 19px; line-height: 1; position: relative; top: 4px; }
label.pj-desc-fmtbtn { line-height: 26px; }
.pj-desc-fmtsep { width: 1px; height: 16px; background: #e2e4ea; margin: 0 4px; }
.pj-desc-editor {
min-height: 80px; max-height: 300px; overflow-y: auto; padding: 8px 10px;
border: 1px solid #d8dce2; border-radius: 8px; font-size: 13.5px; font-family: inherit;
line-height: 1.5; margin-bottom: 12px; background: #fff;
}
.pj-desc-editor:empty::before { content: attr(data-placeholder); color: #b7bdc5; }
.pj-desc-editor img { max-width: 100%; border-radius: 6px; margin: 4px 0; display: block; cursor: pointer; }
.pj-desc-editor img.pj-img-selected { outline: 2px solid var(--pj-accent); outline-offset: 1px; }
.pj-desc-editor blockquote { margin: 6px 0; padding: 2px 12px; border-left: 3px solid var(--pj-border); color: #565c66; }
.pj-desc-editor ul, .pj-desc-editor ol { margin: 4px 0; padding-left: 22px; }
.pj-desc-editor a { color: var(--pj-accent-dark); }
.pj-desc-editor[contenteditable="false"] { background: #f6f7f8; color: #9aa1a9; }
/* 설명란 이미지 선택 시 오버레이(삭제 × / 우하단 크기조절 핸들) — wrap 은
position:relative, tools 는 선택된 img 의 offsetLeft/Top/Width/Height 로
자리를 맞춘다(box 자체는 static 이라 offsetParent 가 wrap 이 된다). */
.pj-desc-wrap { position: relative; }
.pj-img-tools { position: absolute; pointer-events: none; }
.pj-img-del {
position: absolute; top: -9px; right: -9px; pointer-events: auto;
width: 20px; height: 20px; border-radius: 50%; border: none; background: #1e1f21; color: #fff;
font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.pj-img-del:hover { background: #c22b10; }
.pj-img-handle {
position: absolute; bottom: -6px; right: -6px; pointer-events: auto;
width: 13px; height: 13px; border-radius: 3px; background: var(--pj-accent); cursor: nwse-resize;
border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
/* ── 하위 업무(인라인) ── */
.pj-subtask-list { list-style: none; margin: 0 0 8px; padding: 0; }
/* 하위 작업 한 줄(아사나식): ⠿ · ✓ · 제목(글자 폭만큼) · 빈 곳(누르면 열기) · 마감일 · 담당자 · › */
.pj-subtask-row {
display: flex; align-items: center; gap: 4px; padding: 3px 2px; min-height: 36px;
border-bottom: 1px solid #eef0f2; cursor: pointer; border-radius: 4px;
}
.pj-subtask-row:hover { background: #f6f7f8; }
.pj-subtask-row.is-dragging { opacity: .4; }
/* 완료된 하위 작업은 제목을 흐리게 + 취소선(아사나) */
.pj-subtask-row.is-done .pj-subtask-title { text-decoration: line-through; color: #9aa1a9; }
.pj-subtask-handle {
flex: 0 0 auto; display: inline-flex; width: 16px; justify-content: center;
color: #9aa1a9; cursor: grab; opacity: 0; transition: opacity .12s;
}
.pj-subtask-handle .material-symbols-outlined { font-size: 18px; }
.pj-subtask-row:hover .pj-subtask-handle { opacity: 1; }
.pj-subtask-check {
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
width: 26px; height: 26px; padding: 0; border: none; background: transparent; border-radius: 50%;
color: #6d6e6f; cursor: pointer;
}
.pj-subtask-check .material-symbols-outlined { font-size: 21px; }
.pj-subtask-check:hover { color: #3f8f6b; }
.pj-subtask-row.is-done .pj-subtask-check { color: #3f8f6b; }
.pj-subtask-row.is-done .pj-subtask-check .material-symbols-outlined { font-variation-settings: "FILL" 1; }
.pj-subtask-title {
/* 폭은 JS(fitTitle)가 글자 길이만큼 인라인으로 준다. 공용 input[type=text]
규칙의 width:100% 는 인라인 폭이 이긴다. */
flex: 0 1 auto; min-width: 40px; max-width: 100%; cursor: text;
border: 1px solid transparent !important; background: transparent;
padding: 3px 6px !important; font-size: 14px !important; margin: 0 !important;
}
.pj-subtask-title:hover, .pj-subtask-title:focus { border-color: #d8dce2 !important; background: #fff; }
.pj-subtask-fill { flex: 1 1 0; align-self: stretch; min-width: 8px; }
/* 마감일 — 날짜 글자만(아사나). 없으면 줄에 마우스를 올릴 때만 점선 원 달력 아이콘 */
.pj-subtask-due {
flex: 0 0 auto; white-space: nowrap; font-size: 12px; color: var(--pj-ink-soft);
padding: 2px 4px; border-radius: 4px; cursor: pointer;
}
.pj-subtask-due:not(.is-empty):hover { background: #eceef0; }
.pj-subtask-due.is-overdue { color: #c22b10; }
.pj-subtask-due.is-soon { color: #3f8f6b; }
.pj-subtask-due.is-empty {
display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
border-radius: 50%; color: #6d6e6f; opacity: 0; transition: opacity .12s;
}
.pj-subtask-row:hover .pj-subtask-due.is-empty { opacity: 1; }
.pj-subtask-due.is-empty:hover { color: #1e1f21; background: #eceef0; }
/* 담당자 — 아이콘만(아바타 / 없으면 점선 원 사람 아이콘, 줄 hover 때만) */
.pj-subtask-av {
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: #6d6e6f;
}
.pj-subtask-av img.pj-person-ic { width: 22px; height: 22px; border-radius: 50%; }
.pj-subtask-av .pj-gicon { font-size: 22px; }
.pj-subtask-av.is-empty { opacity: 0; transition: opacity .12s; }
.pj-subtask-row:hover .pj-subtask-av.is-empty { opacity: 1; }
.pj-subtask-av.is-empty:hover { color: #1e1f21; background: #eceef0; }
/* 하위 작업 열기(›) — 줄에 마우스를 올리면 진해진다 */
.pj-subtask-open { flex: 0 0 auto; width: 26px; height: 26px; color: #9aa1a9; }
.pj-subtask-row:hover .pj-subtask-open { color: var(--pj-ink); }
.pj-subtask-open .material-symbols-outlined { font-size: 20px; }
.pj-subtask-form { display: flex; gap: 6px; flex-wrap: wrap; }
.pj-subtask-form input[type="text"] {
flex: 1 1 120px; width: auto !important; min-width: 90px; margin: 0 !important;
padding: 7px 10px !important; border: 1px solid #d8dce2 !important; border-radius: 8px; font-size: 13px !important; font-family: inherit;
}
#pj-subtask-add-assignee {
flex: 0 0 auto; width: 96px !important; margin: 0 !important;
padding: 6px 4px !important; border: 1px solid #d8dce2 !important; border-radius: 8px; font-size: 12px !important; font-family: inherit;
}
#pj-subtask-add-due {
flex: 0 0 auto; width: 118px !important; margin: 0 !important;
padding: 6px !important; border: 1px solid #d8dce2 !important; border-radius: 8px; font-size: 12px !important; font-family: inherit;
}
/* ── 연결된 프로젝트(멀티호밍) 칩 ── */
.pj-link-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pj-link-chip {
display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
padding: 3px 6px 3px 10px; border-radius: 999px; background: #eef0f2; color: #333;
}
.pj-link-chip .pj-link-del { border: none; background: transparent; cursor: pointer; color: #9aa1a9; font-size: 13px; line-height: 1; padding: 2px; }
.pj-link-chip .pj-link-del:hover { color: #c22b10; }
/* 세로로 쌓기 — 옆 칼럼이 좁아 가로 배치면 select 글자가 잘린다. */
.pj-link-form { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.pj-link-form select {
width: 100% !important; flex: none; margin: 0 !important;
padding: 6px 8px !important; border: 1px solid #d8dce2 !important; border-radius: 8px;
font-size: 11.5px !important; font-family: inherit; box-sizing: border-box;
}
.pj-link-form .pj-btn { align-self: flex-end; }
/* ── 알림센터 ── */
.pj-inbox { list-style: none; margin: 0; padding: 0; }
.pj-inbox-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px; border: 1px solid #eef0f2; border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.pj-inbox-item:hover { border-color: #d8dce2; }
.pj-inbox-item.is-unread { background: #f4f8ff; border-color: #d6e2fb; }
.pj-inbox-icon { color: #4573d2; font-size: 22px; flex: 0 0 auto; }
.pj-inbox-body { flex: 1; }
.pj-inbox-title { font-size: 14px; font-weight: 600; }
.pj-inbox-item.is-unread .pj-inbox-title::before { content: "●"; color: #4573d2; font-size: 9px; vertical-align: middle; margin-right: 6px; }
.pj-inbox-sub { font-size: 12.5px; color: #525860; margin-top: 2px; }
.pj-inbox-meta { font-size: 11px; color: #9aa1a9; margin-top: 4px; }
.pj-inbox-go { align-self: center; padding: 4px 12px; font-size: 12px; }
/* ── 우클릭 컨텍스트 메뉴 — 클릭 좌표 기준 고정 위치(.pj-daypop 은 앵커
엘리먼트 기준이라 좌표 배치가 다름). z-index 는 .pj-daypop(2100) 보다
위, .erp-dialog(9999) 보다 아래. ── */
.pj-ctxmenu {
position: fixed; z-index: 2200; min-width: 180px;
background: #fff; border: 1px solid var(--pj-border);
border-radius: 10px; box-shadow: var(--pj-card-shadow-hover); padding: 6px;
}
.pj-ctxmenu-item {
display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
border: none; background: transparent; padding: 8px 10px; border-radius: 7px;
font-size: 13px; color: var(--pj-ink); cursor: pointer;
}
.pj-ctxmenu-item:hover { background: var(--pj-accent-tint); }
.pj-ctxmenu-item.is-danger { color: #c22b10; }
.pj-ctxmenu-item.is-danger:hover { background: #fbecea; }
.pj-ctxmenu-sep { height: 1px; background: var(--pj-border); margin: 4px 2px; }
/* 메뉴 항목 아이콘(담당자 아바타 등) + 오른쪽 현재값 ✓ */
.pj-ctxmenu-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.pj-ctxmenu-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-ctxmenu-check { flex: 0 0 auto; font-size: 18px; color: var(--pj-accent); }
.pj-ctxmenu-item.is-checked { font-weight: 600; }
/* ── 담당자 아이콘(메뉴·버튼 공용) — 사진 / 기본 사람 / 미지정 점선 원 ── */
.pj-person-ic { flex: 0 0 auto; }
img.pj-person-ic { width: 22px; height: 22px; }
.pj-gicon.pj-person-ic { font-size: 24px; color: #9aa1a9; }
.pj-person-ic.is-empty { display: inline-flex; color: #6d6e6f; }
/* <select> 대신 보이는 담당자 버튼(enhanceAssigneeSelect) — 아이콘 + 이름 */
.pj-assignee-btn {
display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%;
margin: 0; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px;
background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--pj-ink);
cursor: pointer; text-align: left;
}
.pj-assignee-btn:hover, .pj-assignee-btn:focus-visible { border-color: var(--pj-border); background: #f6f7f8; outline: none; }
.pj-assignee-btn:disabled { cursor: default; opacity: .6; }
.pj-assignee-btn.is-empty { color: var(--pj-ink-soft); font-weight: 500; }
.pj-assignee-btn-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-meta-cell-assignee .pj-assignee-btn { max-width: 150px; }
/* 하위 업무 줄/추가 폼 — 폭 고정, 글자 작게 */
.pj-assignee-btn.pj-subtask-assignee { flex: 0 0 auto; width: 110px; font-size: 12px; font-weight: 500; padding: 2px 6px; }
.pj-assignee-btn[data-for="pj-subtask-add-assignee"] {
flex: 0 0 auto; width: 110px; font-size: 12px; font-weight: 500; padding: 3px 6px;
border-color: #d8dce2; border-radius: 8px; background: #fff;
}
.pj-assignee-btn.pj-subtask-assignee img.pj-person-ic,
.pj-assignee-btn[data-for="pj-subtask-add-assignee"] img.pj-person-ic { width: 18px; height: 18px; }
.pj-assignee-btn.pj-subtask-assignee .pj-person-ic svg,
.pj-assignee-btn[data-for="pj-subtask-add-assignee"] .pj-person-ic svg { width: 18px; height: 18px; }
/* ── 대시보드 — 통계 카드 + 차트(전부 클라이언트 집계/렌더). 카드 자체는
pj-col 과 같은 흰 카드 톤(radius/shadow)을 재사용, 숫자·막대·도넛만
애니메이션(등장 시 0→목표값으로 부드럽게, 아사나 느낌). ── */
.pj-dash { display: flex; flex-direction: column; gap: 20px; padding: 4px 2px 24px; }
.pj-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pj-dash-stat {
background: #fff; border: 1px solid var(--pj-border); border-radius: var(--pj-card-radius);
box-shadow: var(--pj-card-shadow); padding: 18px 20px;
}
.pj-dash-stat-label { font-size: 12.5px; color: var(--pj-ink-soft); font-weight: 600; margin-bottom: 10px; }
.pj-dash-stat-value { font-size: 34px; font-weight: 700; color: var(--pj-ink); line-height: 1; }
.pj-dash-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.pj-dash-card {
background: #fff; border: 1px solid var(--pj-border); border-radius: var(--pj-card-radius);
box-shadow: var(--pj-card-shadow); padding: 18px 20px 20px; min-width: 0;
}
.pj-dash-card-wide { grid-column: 1 / -1; }
.pj-dash-card-title { font-size: 13.5px; font-weight: 700; color: var(--pj-ink); margin-bottom: 18px; }
/* 세로 막대(섹션별/담당자별 공용) */
.pj-dash-bars { display: flex; align-items: flex-end; gap: 18px; overflow-x: auto; padding-bottom: 2px; min-height: 200px; }
.pj-dash-barcol { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; min-width: 52px; cursor: default; border-radius: 8px; outline: none; }
.pj-dash-barcol:focus-visible { box-shadow: 0 0 0 2px var(--pj-accent-tint); }
.pj-dash-barcol-value { font-size: 12.5px; font-weight: 700; color: var(--pj-ink); margin-bottom: 6px; }
.pj-dash-barcol-track {
position: relative; width: 34px; height: 140px; background: var(--pj-accent-tint);
border-radius: 6px 6px 4px 4px; overflow: hidden;
}
.pj-dash-barcol-fill {
position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
background: var(--pj-accent); border-radius: 6px 6px 0 0;
transition: height .7s cubic-bezier(.22,.9,.3,1);
}
.pj-dash-barcol:hover .pj-dash-barcol-fill { background: var(--pj-accent-dark); }
.pj-dash-barcol-label {
margin-top: 8px; font-size: 11.5px; color: var(--pj-ink-soft); text-align: center;
max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 도넛(완료 상태별) */
.pj-dash-donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pj-dash-donut { width: 150px; height: 150px; flex: 0 0 auto; }
.pj-dash-donut-track { fill: none; stroke: var(--pj-border); stroke-width: 14; }
.pj-dash-donut-seg { fill: none; stroke-width: 14; stroke-linecap: butt; transition: stroke-dasharray .8s cubic-bezier(.22,.9,.3,1); }
.pj-dash-donut-center { font-size: 26px; font-weight: 700; fill: var(--pj-ink); }
.pj-dash-legend { display: flex; flex-direction: column; gap: 10px; }
.pj-dash-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pj-ink); }
.pj-dash-legend-item b { margin-left: 2px; }
.pj-dash-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
/* 막대/세그먼트 호버 툴팁 — 값이 크게, 라벨은 보조(값 우선 원칙) */
/* 공용 말풍선(.pj-hovertip)과 같은 모양 — 막대 위에 붙고 아래 꼬리 */
.pj-dash-tooltip {
position: absolute; z-index: 2150; transform: translate(-50%, calc(-100% - 6px));
background: #1e1f21; color: #fff; padding: 6px 10px; border-radius: 6px;
font-size: 12px; white-space: nowrap; pointer-events: none;
box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.pj-dash-tooltip::after {
content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
border: 5px solid transparent; border-top-color: #1e1f21;
}
.pj-dash-tooltip[hidden] { display: none; }
.pj-dash-tooltip b { font-size: 13.5px; margin-right: 6px; }
.pj-dash-tooltip span { color: #cfd3da; }
/* 카드 등장 트랜지션 — 대시보드 탭을 열 때마다 살짝 떠오르며 나타난다. */
.pj-dash-stat, .pj-dash-card { animation: pj-dash-in .35s cubic-bezier(.22,.9,.3,1) both; }
.pj-dash-stats .pj-dash-stat:nth-child(2) { animation-delay: .04s; }
.pj-dash-stats .pj-dash-stat:nth-child(3) { animation-delay: .08s; }
.pj-dash-stats .pj-dash-stat:nth-child(4) { animation-delay: .12s; }
.pj-dash-charts .pj-dash-card:nth-child(2) { animation-delay: .06s; }
.pj-dash-charts .pj-dash-card:nth-child(3) { animation-delay: .12s; }
@keyframes pj-dash-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .pj-dash-stats { grid-template-columns: repeat(2, 1fr); } }
/* ════════════════════════════════════════════════════════════
좌측 사이드바 개인 메뉴 — 수신함 / 내 업무(접이식)
예전에 화면 오른쪽에 항상 떠 있던 "내 업무" 패널을 이 메뉴가 대신한다.
════════════════════════════════════════════════════════════ */
.pj-side-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.pj-side-navlink {
display: flex; align-items: center; gap: 9px; width: 100%;
padding: 7px 8px; border: none; background: transparent; border-radius: 8px;
color: var(--pj-ink); font-size: 13.5px; font-weight: 700; text-decoration: none;
cursor: pointer; text-align: left;
}
.pj-side-navlink:hover { background: #f1f2f4; }
.pj-side-navic { font-size: 20px; color: #5f6368; flex: 0 0 auto; }
.pj-side-navtext { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-side-navbadge {
flex: 0 0 auto; min-width: 18px; padding: 1px 6px; border-radius: 999px;
background: #fbe3df; color: #c22b10; font-size: 11px; font-weight: 700; text-align: center;
}
.pj-side-navbadge-open { background: #dcf1fc; color: #0284c7; }
.pj-side-navbadge[hidden] { display: none; }
.pj-side-navlink.is-active { background: var(--pj-accent-tint); color: var(--pj-accent-dark); }
.pj-side-navlink.is-active .pj-side-navic { color: var(--pj-accent-dark); }
/* ── 보드 가로 스크롤 막대 (세로 막대 .pj-vbar-* 와 같은 이유로 직접 그린다) ── */
.pj-hbar { position: relative; height: 8px; margin: 6px 14px 0 0; border-radius: 999px; background: #e6e8ec; flex: none; }
.pj-hbar[hidden] { display: none; }
.pj-hbar-thumb { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: #b3b7bf; cursor: grab; }
.pj-hbar-thumb:hover, .pj-hbar-thumb.is-dragging { background: #8f949e; }
.pj-hbar-thumb.is-dragging { cursor: grabbing; }
/* ── 보드 카드에서 바로 고치는 담당자/마감일 ──
값이 없을 때도 자리는 남겨 두되(카드에 마우스를 올려야 보인다) 눌러서
바로 지정할 수 있게 한다. */
.pj-card-edit-hit { cursor: pointer; border-radius: 6px; padding: 1px 4px; margin: -1px -4px; }
.pj-card-edit-hit:hover { background: #eef1f6; }
.pj-card-meta .is-empty { opacity: 0; transition: opacity .12s; color: #9aa1a9; }
.pj-card:hover .pj-card-meta .is-empty { opacity: .8; }
/* 카드 담당자·마감일 없음 — 글자 대신 하위 업무 줄과 같은 점선 원 아이콘(아사나) */
.pj-card-assignee.is-empty,
.pj-card-due.is-empty {
display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
padding: 0; margin: -2px 0; border-radius: 50%; color: #6d6e6f;
}
.pj-card:hover .pj-card-meta .pj-card-assignee.is-empty,
.pj-card:hover .pj-card-meta .pj-card-due.is-empty { opacity: 1; }
.pj-card-assignee.is-empty:hover,
.pj-card-due.is-empty:hover { color: #1e1f21; background: #eceef0; }
.pj-card-due.is-overdue { color: #c22b10; }
/* ── 아사나식 날짜 팝업(openDatePopover) — 시작일/마감일 칸 + 월 달력 + 지우기.
앵커 아래(자리 없으면 위)에 뜨고 꼬리가 앵커를 가리킨다(--pj-dp-tail). ── */
.pj-datepop {
position: fixed; z-index: 2300; width: 300px; box-sizing: border-box;
background: #fff; border: 1px solid #e3e5e8; border-radius: 12px;
box-shadow: 0 8px 28px rgba(15,23,42,.16), 0 1px 3px rgba(15,23,42,.08);
padding: 14px 14px 8px; font-size: 13px; color: var(--pj-ink);
animation: pj-dp-in .12s ease-out;
}
@keyframes pj-dp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pj-datepop::before, .pj-datepop::after {
content: ""; position: absolute; left: var(--pj-dp-tail, 50%); transform: translateX(-50%);
border: 8px solid transparent;
}
/* 아래에 뜸 → 위쪽 꼬리 */
.pj-datepop::before { bottom: 100%; border-bottom-color: #e3e5e8; }
.pj-datepop::after { bottom: calc(100% - 1px); border-bottom-color: #fff; }
/* 위에 뜸 → 아래쪽 꼬리 */
.pj-datepop.is-above::before { bottom: auto; top: 100%; border-bottom-color: transparent; border-top-color: #e3e5e8; }
.pj-datepop.is-above::after { bottom: auto; top: calc(100% - 1px); border-bottom-color: transparent; border-top-color: #fff; }
.pj-dp-fields { display: flex; gap: 8px; margin-bottom: 10px; }
.pj-dp-field, .pj-dp-addstart {
flex: 1 1 0; min-width: 0; height: 36px; box-sizing: border-box;
border: 1px solid #d8dce2; border-radius: 8px; padding: 0 10px;
font: inherit; font-size: 13.5px; color: var(--pj-ink); background: #fff;
}
.pj-dp-field:focus, .pj-dp-field.is-active { outline: none; border: 2px solid #4573d2; padding: 0 9px; }
.pj-dp-field::placeholder { color: #9aa1a9; }
.pj-dp-addstart {
border-color: transparent; background: transparent; cursor: pointer; font-weight: 600; color: #525860; text-align: left;
}
.pj-dp-addstart:hover { background: #f1f2f4; }
.pj-dp-nav { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 6px; }
.pj-dp-title { font-size: 14px; font-weight: 500; color: var(--pj-ink); }
.pj-dp-navbtn {
width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
border: 0; background: transparent; border-radius: 6px; color: #525860; cursor: pointer;
}
.pj-dp-navbtn:hover { background: #f1f2f4; color: var(--pj-ink); }
.pj-dp-navbtn .material-symbols-outlined { font-size: 22px; }
.pj-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.pj-dp-wd { text-align: center; font-size: 12px; font-weight: 600; color: #6d6e6f; padding: 4px 0 6px; }
.pj-dp-day {
position: relative; height: 34px; border: 0; background: transparent; cursor: pointer;
font: inherit; font-size: 13.5px; color: var(--pj-ink); display: flex; align-items: center; justify-content: center;
}
.pj-dp-day::before {
content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; z-index: 0;
left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.pj-dp-day { z-index: 0; }
.pj-dp-day > * { position: relative; }
.pj-dp-day:hover::before { background: #f1f2f4; }
.pj-dp-day.is-weekend, .pj-dp-day.is-out { color: #8b929b; }
.pj-dp-day.is-out { color: #b3b8bf; }
/* 오늘 = 파란 테두리 원 + 굵게 */
.pj-dp-day.is-today { font-weight: 800; }
.pj-dp-day.is-today::before { border: 1.5px solid #4573d2; }
/* 선택 = 파란 원 + 흰 글자 (숫자가 원 위에 보이도록 글자는 z 위로) */
.pj-dp-day.is-selected { color: #fff; font-weight: 600; }
.pj-dp-day.is-selected::before { background: #4573d2; border: 0; }
.pj-dp-day.is-inrange { background: #e8effb; }
.pj-dp-day { isolation: isolate; }
.pj-dp-day::before { z-index: -1; }
.pj-dp-foot {
display: flex; justify-content: space-between; align-items: center;
margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef0f2;
}
.pj-dp-link {
border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
color: #525860; padding: 6px 8px; border-radius: 6px;
}
.pj-dp-link:hover { background: #f1f2f4; color: var(--pj-ink); }
/* 마감일 표기 색 — 오늘·내일 초록, 어제·지남 빨강(아사나) */
.pj-card-due.is-soon, .pj-card-sub-due.is-soon, .pj-due-label.is-soon, .pj-due-btn.is-soon { color: #3f8f6b; }
.pj-card-due.is-overdue, .pj-card-sub-due.is-overdue, .pj-due-label.is-overdue { color: #c22b10; }
/* ── 멘션(@태그) ── */
.pj-mention {
display: inline-block; padding: 0 5px; border-radius: 5px;
background: var(--pj-accent-tint, #e8eefb); color: var(--pj-accent-dark, #2f5bb7);
font-weight: 600; white-space: nowrap;
}
.pj-mention-menu {
position: absolute; z-index: 1300; min-width: 200px; max-height: 260px; overflow-y: auto;
background: #fff; border: 1px solid #d8dce2; border-radius: 10px;
box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 4px;
}
.pj-mention-menu[hidden] { display: none; }
.pj-mention-opt {
display: flex; align-items: center; gap: 8px; width: 100%;
padding: 7px 8px; border: none; background: transparent; border-radius: 7px;
font-size: 13px; color: var(--pj-ink); cursor: pointer; text-align: left;
}
.pj-mention-opt:hover, .pj-mention-opt.is-active { background: var(--pj-accent-tint, #e8eefb); }
.pj-mention-opt .pj-avatar, .pj-mention-opt .pj-gicon { flex: 0 0 auto; }
.pj-mention-empty { padding: 8px; font-size: 12.5px; color: #9aa1a9; }
/* 설명란 링크 — 클릭하면 새 탭으로 열린다(JS 가 처리). */
.pj-desc-editor a { color: var(--pj-accent-dark, #2f5bb7); text-decoration: underline; cursor: pointer; }
/* ── 수신함 섹션 (알림 / 나를 태그한 업무) ── */
.pj-inbox-section { margin-bottom: 26px; }
.pj-inbox-h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #6b7280; margin: 0 0 10px; }
.pj-inbox-count { padding: 1px 7px; border-radius: 999px; background: #fbe3df; color: #c22b10; font-size: 11px; font-weight: 700; }
.pj-inbox-count[hidden] { display: none; }
.pj-inbox-title.is-done { text-decoration: line-through; color: #9aa1a9; }
.pj-inbox-proj { font-weight: 600; }
/* ════════════════════════════════════════════════════════════
내 업무 화면 (/project/) — 프로젝트 모듈의 첫 화면.
내가 담당자인 업무를 한 표에 모은다. 행 클릭 = 그 프로젝트로 이동하며
업무 편집 팝업(?task=), 체크박스 = 완료 토글, 우클릭 = 메뉴.
════════════════════════════════════════════════════════════ */
.pj-mytasks-view .pj-layout { flex: 1 1 auto; min-height: 0; }
.pj-mytasks-pane { overflow-y: auto; padding-right: 14px; }
.pj-mytasks-summary { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.pj-mtk-stat { font-size: 12.5px; color: var(--pj-ink-soft); }
.pj-mtk-stat b { font-size: 14px; color: var(--pj-ink); margin-left: 3px; }
.pj-mtk-stat.is-overdue b { color: #c22b10; }
.pj-mytasks-table { width: 100%; }
.pj-mytasks-table th { white-space: nowrap; }
.pj-mtk-row { cursor: pointer; }
.pj-mtk-row:hover td { background: #f6f7f8; }
.pj-mtk-row.is-done { opacity: .5; }
.pj-mtk-row.is-done .pj-mtk-name { text-decoration: line-through; }
.pj-mytasks-table td { vertical-align: middle; }
.pj-mtk-check { width: 34px; text-align: center; }
.pj-mtk-check input[type="checkbox"] { width: auto; margin: 0; cursor: pointer; }
.pj-mtk-name { font-weight: 600; }
.pj-mtk-proj, .pj-mtk-stage { width: 160px; color: var(--pj-ink-soft); font-size: 12.5px; }
.pj-mtk-pri { width: 88px; }
.pj-mtk-date { width: 108px; font-size: 12.5px; color: var(--pj-ink-soft); }
.pj-mtk-overdue { color: #c22b10; font-weight: 700; }
.pj-muted { color: #b7bdc5; }
@media (max-width: 980px) {
.pj-mtk-proj, .pj-mtk-stage, .pj-mtk-pri { display: none; }
}
/* 내 업무 중 하위 업무 — 부모 업무(또는 안내 행) 바로 아래, 폴더 트리처럼
접속선(├/└)으로 이어 보여준다. */
.pj-mtk-row.pj-mtk-subrow td { background: #fafbfc; }
.pj-mtk-row.pj-mtk-subrow:hover td { background: #f1f2f4; }
.pj-mtk-row.pj-mtk-subrow .pj-mtk-title { display: flex; align-items: center; }
.pj-mtk-row.pj-mtk-subrow .pj-mtk-name { font-weight: 500; }
.pj-mtk-tree-branch {
position: relative; display: inline-block; flex: 0 0 20px; width: 20px;
align-self: stretch; margin-right: 2px;
}
.pj-mtk-tree-branch::before {
content: ""; position: absolute; left: 9px; top: -10px; height: calc(50% + 10px); width: 10px;
border-left: 1.5px solid #c7cbd1; border-bottom: 1.5px solid #c7cbd1; border-bottom-left-radius: 6px;
}
.pj-mtk-tree-branch::after {
content: ""; position: absolute; left: 9px; top: calc(50% - 10px); bottom: -10px;
border-left: 1.5px solid #c7cbd1;
}
.pj-mtk-tree-branch.is-last::after { display: none; }
/* 하위 업무의 상위 업무가 목록에 직접 없을 때(다른 담당자, 또는 탭 필터에
안 맞음) 보여주는 안내 행 — 폴더 아이콘 + 이름만, 체크박스 없음. */
.pj-mtk-row.pj-mtk-parent-group td { background: #f6f7f8; color: var(--pj-ink-soft); }
.pj-mtk-row.pj-mtk-parent-group:hover td { background: #eef0f2; }
.pj-mtk-parent-ic { font-size: 16px; vertical-align: -3px; color: #b7bdc5; }
.pj-mtk-parent-name { font-weight: 600; margin-left: 2px; }
.pj-mtk-parent-hint { font-size: 11px; color: #9aa1a9; margin-left: 8px; }
.pj-mtk-row.pj-mtk-parent-group.is-done .pj-mtk-parent-name { text-decoration: line-through; }
/* ── 수신함 (/project/inbox) — 내 업무와 같은 2단 레이아웃 ── */
.pj-inbox-view .pj-layout { flex: 1 1 auto; min-height: 0; }
.pj-inbox-pane { overflow-y: auto; padding-right: 14px; }
.pj-inbox-view .pj-section-head { flex: none; }
/* 내 업무·수신함은 표/목록이라 화면 끝까지 늘어나면 눈이 따라가기 힘들다 —
읽기 좋은 폭으로 제한한다(보드/달력 등 프로젝트 뷰는 종전대로 전체 폭). */
.pj-mytasks-view .pj-main, .pj-inbox-view .pj-main { max-width: 1180px; }
/* 업무 팝업의 "공유" 버튼 — 아이콘 + 글자를 한 줄로. */
.pj-btn-share { display: inline-flex; align-items: center; gap: 5px; }
.pj-btn-share .material-symbols-outlined { font-size: 14px; }
.pj-btn-share[hidden] { display: none; }
/* ── 좌측 사이드바 전체 검색 ── */
.pj-side-search { position: relative; display: flex; align-items: center; margin-bottom: 10px; }
.pj-side-search-ic { position: absolute; left: 9px; font-size: 18px; color: #8a9099; pointer-events: none; }
.pj-side-search input {
width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px 0 32px;
border: 1px solid var(--pj-border); border-radius: 8px; background: #f7f8f9;
font-size: 13px; font-family: inherit; color: var(--pj-ink);
}
.pj-side-search input:focus { outline: none; background: #fff; border-color: var(--pj-accent); box-shadow: 0 0 0 3px var(--pj-accent-tint); }
.pj-search-results {
position: fixed; z-index: 1200; overflow-y: auto; background: #fff;
border: 1px solid var(--pj-border); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.16);
padding: 4px;
}
.pj-search-results[hidden] { display: none; }
.pj-sr-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pj-sr-item:hover, .pj-sr-item.is-active { background: var(--pj-accent-tint); }
.pj-sr-title { font-size: 13.5px; font-weight: 700; color: var(--pj-ink); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pj-sr-item.is-done .pj-sr-title { color: var(--pj-ink-soft); }
.pj-sr-check { font-size: 16px; color: #1e8e5a; }
.pj-sr-parent { font-weight: 500; color: var(--pj-ink-soft); }
.pj-sr-meta { margin-top: 2px; font-size: 12px; color: var(--pj-ink-soft); }
.pj-sr-snippet { margin-top: 3px; font-size: 12px; color: #525860; line-height: 1.45; }
.pj-sr-where { display: inline-block; padding: 0 5px; margin-right: 2px; border-radius: 4px; background: #eef0f2; font-size: 11px; font-weight: 700; color: #6b6f76; }
.pj-search-results mark { background: #fff3b0; color: inherit; border-radius: 2px; padding: 0 1px; }
.pj-sr-empty { padding: 14px 12px; font-size: 13px; color: var(--pj-ink-soft); }
/* ── 필터 바 (프로젝트 화면 / 내 업무) ── */
.pj-filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: none; margin: -6px 0 14px; }
.pj-fb-search {
display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
border: 1px solid var(--pj-border); border-radius: 8px; background: #fff; flex: 0 1 280px; min-width: 180px;
}
.pj-fb-search .material-symbols-outlined { font-size: 18px; color: #8a9099; }
.pj-fb-search input { border: none; outline: none; background: transparent; font-size: 13px; font-family: inherit; width: 100%; color: var(--pj-ink); }
.pj-fb-search.is-set { border-color: var(--pj-accent); background: var(--pj-accent-tint); }
.pj-fb-search:focus-within { border-color: var(--pj-accent); }
.pj-fb-select {
height: 32px; padding: 0 8px; border: 1px solid var(--pj-border); border-radius: 8px; background: #fff;
font-size: 12.5px; font-weight: 600; font-family: inherit; color: #525860; cursor: pointer;
}
.pj-fb-select:hover { background: #f6f7f8; }
.pj-fb-select.is-set { border-color: var(--pj-accent); background: var(--pj-accent-tint); color: var(--pj-accent-dark); }
.pj-fb-count { font-size: 12.5px; font-weight: 700; color: var(--pj-accent-dark); }
.pj-fb-count[hidden], .pj-fb-reset[hidden] { display: none; }
.pj-fb-reset { border: none; background: transparent; color: var(--pj-ink-soft); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0 4px; }
.pj-fb-reset:hover { color: var(--pj-ink); }
/* ── 업무 팝업 — 팔로워 ── */
/* 담당자 칸과 같은 모양 — 라벨(.pj-meta-cell-label) 바로 뒤에 "아이콘 + 이름"들 */
.pj-followers-row { gap: 10px; padding: 3px 0; }
.pj-meta-cell-followers { flex: 1 1 auto; flex-wrap: wrap; row-gap: 4px; }
.pj-follower-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.pj-follower-chip { cursor: default; }
.pj-follower-chip:hover { border-color: transparent; background: #f6f7f8; }
/* 빼기(×) — 마우스를 올린 사람에게만 */
.pj-follower-x {
border: none; background: transparent; color: #8a9099; cursor: pointer; font-size: 14px; line-height: 1;
width: 18px; height: 18px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center;
visibility: hidden;
}
.pj-follower-chip:hover .pj-follower-x { visibility: visible; }
.pj-follower-x:hover { background: #dfe2e6; color: #1e1f21; }
.pj-follower-add {
width: 24px; height: 24px; border-radius: 50%; border: 1px dashed #b8bec6; background: #fff;
color: #6b6f76; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.pj-follower-add[hidden] { display: none; }
.pj-follower-add:hover { border-color: var(--pj-accent); color: var(--pj-accent); }
.pj-follow-toggle {
margin-left: auto; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--pj-border);
background: #fff; font-size: 12px; font-weight: 700; color: #525860; cursor: pointer;
}
.pj-follow-toggle:hover { background: #f6f7f8; }
.pj-follow-toggle.is-on { background: var(--pj-accent-tint); border-color: var(--pj-accent); color: var(--pj-accent-dark); }
/* ── 휴지통(관리자 전용, /project/trash) ── */
.pj-trash-note { font-size: 12.5px; color: var(--pj-ink-soft); }
.pj-trash-table { width: 100%; }
.pj-trash-table th, .pj-trash-table td { white-space: nowrap; }
.pj-trash-table td.pj-trash-title { white-space: normal; font-weight: 600; color: var(--pj-ink); min-width: 220px; }
.pj-trash-meta { color: var(--pj-ink-soft); font-size: 12.5px; }
.pj-trash-act { text-align: right; }
.pj-trash-table tr.is-restored td { opacity: .55; }
.pj-trash-table tr.is-restored td.pj-trash-act { opacity: 1; }