/* 아사나식 날짜 팝업 · 날짜 버튼 — 공용(2026-10-27, erp-datepop.js). 프로젝트 모듈 project.css 의 .pj-date-btn · .pj-datepop · .pj-dp-* 규칙을 그대로 옮긴 것(같은 모양) — 프로젝트 화면은 아직 project.css 쪽을 쓴다(둘을 한 화면에 같이 싣지 않음). 모양을 바꾸면 두 곳 모두 고칠 것. 아이콘은 Material Symbols(/static/vendor/material-symbols/material-symbols.css)를 화면에서 함께 싣는다. */ .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: var(--pj-text-size, 14px); font-family: inherit; font-weight: 500; color: var(--pj-ink, #050505); white-space: nowrap; line-height: var(--pj-text-leading, 1.4); } .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-date-btn.is-icon-only { width: 32px; height: 32px; padding: 0; justify-content: center; border: none; border-radius: 50%; background: transparent; color: #6d6e6f; } .pj-date-btn.is-icon-only:hover { background: #eceef0; color: #1e1f21; } /* ── 아사나식 날짜 팝업(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, #050505); 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, #050505); 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, #050505); } .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, #050505); } .pj-dp-navbtn .material-symbols-outlined { font-size: 22px; } .pj-dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 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; padding: 0; background: transparent; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--pj-ink, #050505); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-width: 0; } /* 원(오늘·선택·마우스)은 숫자 자리(위 34px)의 가운데 — 공휴일 이름 줄이 붙어도 그대로 */ .pj-dp-day::before { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; z-index: 0; left: 50%; top: 17px; transform: translate(-50%, -50%); } .pj-dp-num { height: 34px; display: flex; align-items: center; justify-content: center; flex: none; } /* 공휴일 이름 — 숫자 밑 작은 글씨. 이 칸이 있는 주만 줄이 높아진다(다른 칸은 34px 그대로 위에 붙음). */ .pj-dp-day.has-hol { height: 46px; } .pj-dp-hol { max-width: 100%; margin-top: -3px; padding: 0 1px; box-sizing: border-box; font-size: 9px; line-height: 1.1; letter-spacing: -.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d93025; } .pj-dp-day.is-out .pj-dp-hol { color: #efaaa3; } .pj-dp-day { z-index: 0; } .pj-dp-day > * { position: relative; } .pj-dp-day:hover::before { background: #f1f2f4; } .pj-dp-day.is-out { color: #b3b8bf; } /* 일요일·공휴일(국경일·대체공휴일) 빨강, 토요일 파랑 — 다른 달 날짜는 옅게 */ .pj-dp-day.is-sun, .pj-dp-wd.is-sun { color: #d93025; } .pj-dp-day.is-sat, .pj-dp-wd.is-sat { color: #1a73e8; } .pj-dp-day.is-out.is-sun { color: #efaaa3; } .pj-dp-day.is-out.is-sat { color: #a8c6f3; } /* 오늘 = 파란 테두리 원 + 굵게 */ .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, .pj-dp-day.is-selected.is-sun, .pj-dp-day.is-selected.is-sat { 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.is-selected .pj-dp-hol { color: #d93025; font-weight: 600; } .pj-dp-day { isolation: isolate; } .pj-dp-day::before { z-index: -1; } /* 붙박이 기간 달력(mountRange) — 시작~종료 둥근 막대, 양 끝은 선택 원. 줄이 바뀌는 곳도 둥글게 */ .pj-dp-day.is-band::after { content: ""; position: absolute; top: 2px; height: 30px; left: 0; right: 0; z-index: -2; background: #dbe6fb; } .pj-dp-day.is-band-start::after { left: 50%; } .pj-dp-day.is-band-end::after { right: 50%; } .pj-dp-day.is-row-first::after { left: 4px; border-radius: 15px 0 0 15px; } .pj-dp-day.is-row-last::after { right: 4px; border-radius: 0 15px 15px 0; } .pj-dp-day.is-band-start.is-row-last::after, .pj-dp-day.is-band-end.is-row-first::after { display: none; } .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, #050505); }