97f4a904cd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
322 lines
18 KiB
CSS
322 lines
18 KiB
CSS
/* 휴가 관리(vacation) 모듈 스타일.
|
|
DESIGN.md 토큰 준수 — 모노크롬, 10/14px radius, 카드 padding 16px.
|
|
캐시 버전: ?v=20260530a (변경 시 템플릿 head_extra 의 ?v= 도 함께 올린다) */
|
|
|
|
:root {
|
|
--vac-ash: #e5e5e5;
|
|
--vac-ghost: #f2f2f2;
|
|
--vac-muted: #737373;
|
|
--vac-black: #0a0a0a;
|
|
--vac-red: #c22b10;
|
|
--vac-blue: #1d4ed8;
|
|
--vac-green: #10733a;
|
|
}
|
|
|
|
.vac { display: flex; flex-direction: column; gap: 16px; }
|
|
/* 셸 .erp-page 는 width:100% + 좌우 여백이라 오른쪽이 48px 넘쳐 잘린다 — 실적처럼 border-box(2026-10-27) */
|
|
.erp-page:has(> .vac) { box-sizing: border-box; }
|
|
|
|
/* 검정 배경 버튼 글자 흰색 강제 */
|
|
.vac .erp-btn-primary { color: #fff !important; }
|
|
|
|
/* ── 페이지 액션 + 잔여 요약 ── */
|
|
.vac-actions {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
gap: 12px; flex-wrap: wrap; flex-shrink: 0;
|
|
}
|
|
.vac-actions-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.vac-mini { margin-left: 4px; }
|
|
.vac-balance {
|
|
display: flex; align-items: baseline; gap: 8px;
|
|
font-size: 14px; color: var(--vac-black);
|
|
}
|
|
.vac-balance strong { font-weight: 600; }
|
|
.vac-bal-sep { color: var(--vac-ash); }
|
|
.vac-bal-remain strong { color: var(--vac-green); }
|
|
.vac-bal-year { margin-left: 6px; font-size: 12px; }
|
|
|
|
/* ── 레이아웃: 달력 좌 / 리스트 우 ── */
|
|
.vac-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 340px;
|
|
gap: 16px;
|
|
align-items: stretch;
|
|
flex: 1 1 auto; min-height: 0; /* 남은 높이 채움 → 문서 스크롤 방지 */
|
|
}
|
|
@media (max-width: 1100px) {
|
|
.vac-layout { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ── 달력 카드 ── */
|
|
.vac-cal-card {
|
|
padding: 16px;
|
|
display: flex; flex-direction: column; min-height: 0; overflow: hidden;
|
|
}
|
|
.vac-cal-head {
|
|
display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
.vac-cal-title { font-size: 18pt; font-weight: 600; margin: 0; letter-spacing: -0.45px; }
|
|
.vac-nav-btn { padding: 4px 12px; font-size: 18pt; line-height: 1; }
|
|
.vac-today-btn { margin-left: auto; }
|
|
|
|
.vac-cal {
|
|
border: 1px solid var(--vac-ash); border-radius: 10px; overflow: hidden;
|
|
flex: 1 1 auto; min-height: 0;
|
|
display: flex; flex-direction: column;
|
|
}
|
|
|
|
.vac-wd-row {
|
|
display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
background: var(--vac-ghost); border-bottom: 1px solid var(--vac-ash);
|
|
flex-shrink: 0;
|
|
}
|
|
.vac-wd {
|
|
text-align: center; padding: 8px 0; font-size: 15px; font-weight: 600;
|
|
color: var(--vac-black);
|
|
border-right: 1px solid var(--vac-ash);
|
|
}
|
|
.vac-wd:last-child { border-right: none; }
|
|
|
|
/* 주(week) — 날짜 셀 위에 bar 레이어를 오버레이. 6주가 높이를 균등 분할(유동). */
|
|
.vac-week {
|
|
position: relative; border-bottom: 1px solid var(--vac-ash);
|
|
flex: 1 1 0; min-height: 88px;
|
|
display: flex; flex-direction: column;
|
|
}
|
|
.vac-week:last-child { border-bottom: none; }
|
|
|
|
.vac-week-days {
|
|
display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
flex: 1 1 auto; min-height: 0;
|
|
}
|
|
.vac-day {
|
|
height: 100%;
|
|
border-right: 1px solid var(--vac-ash);
|
|
padding: 6px 8px; text-decoration: none;
|
|
display: block; box-sizing: border-box;
|
|
}
|
|
.vac-day:last-child { border-right: none; }
|
|
.vac-day-num { font-size: 20px; font-weight: 600; color: var(--vac-black); }
|
|
.vac-out { background: #fafafa; }
|
|
.vac-out .vac-day-num { color: #bbb; }
|
|
.vac-today { background: #f5f5f5; }
|
|
.vac-today .vac-day-num {
|
|
background: var(--vac-black);
|
|
color: #fff !important; /* vac-red/vac-blue 글자색(!important) 이김 */
|
|
border-radius: 9999px; padding: 2px 9px;
|
|
}
|
|
/* 오늘이 일/공휴일=빨강배경, 토요일=파랑배경, 평일=검정배경 (모두 흰글씨) */
|
|
.vac-today .vac-day-num.vac-red { background: var(--vac-red); }
|
|
.vac-today .vac-day-num.vac-blue { background: var(--vac-blue); }
|
|
.vac-selected { box-shadow: inset 0 0 0 2px var(--vac-black); }
|
|
.vac-red { color: var(--vac-red) !important; }
|
|
.vac-blue { color: var(--vac-blue) !important; }
|
|
|
|
/* bar 오버레이 — 날짜 숫자 아래(top)부터 7열 그리드로 겹쳐 그림 */
|
|
.vac-week-bars {
|
|
position: absolute; left: 0; right: 0; top: 38px; bottom: 4px;
|
|
display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
grid-auto-rows: 22px; row-gap: 3px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ── 휴가 bar (구글 달력 스타일) ── */
|
|
.vac-bar {
|
|
margin: 0 3px; padding: 0 8px; height: 20px; line-height: 20px;
|
|
border-radius: 6px; font-size: 13px; text-decoration: none;
|
|
overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
|
align-self: center; pointer-events: auto;
|
|
}
|
|
.vac-bar-label { pointer-events: none; }
|
|
.vac-bar-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
|
|
.vac-bar-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
|
|
|
|
.vac-bar-draft { background: #fff; border: 1px dashed var(--vac-muted); color: var(--vac-muted); }
|
|
.vac-bar-submit { background: var(--vac-ghost); border: 1px solid var(--vac-muted); color: var(--vac-black); }
|
|
.vac-bar-approve, a.vac-bar-approve:link, a.vac-bar-approve:visited { background: var(--vac-black); color: #fff; }
|
|
.vac-bar-reject { background: #fff; border: 1px solid var(--vac-red); color: var(--vac-red); text-decoration: line-through; }
|
|
.vac-bar-cancel { background: #fff; border: 1px dashed var(--vac-ash); color: #bbb; opacity: 0.7; }
|
|
|
|
/* 범례 */
|
|
.vac-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; flex-shrink: 0; }
|
|
.vac-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--vac-muted); }
|
|
.vac-dot { width: 14px; height: 12px; border-radius: 4px; display: inline-block; }
|
|
|
|
/* ── 선택일 리스트 ── */
|
|
.vac-list-card {
|
|
padding: 16px; min-height: 0; overflow-y: auto; /* 긴 목록은 패널 내부 스크롤 */
|
|
}
|
|
.vac-list-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
|
|
.vac-list-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
|
|
.vac-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
.vac-list-link {
|
|
display: block; text-decoration: none; color: var(--vac-black);
|
|
border: 1px solid var(--vac-ash); border-radius: 10px; padding: 10px 12px;
|
|
}
|
|
.vac-list-link:hover { background: var(--vac-ghost); }
|
|
.vac-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
.vac-list-meta { font-size: 12px; margin-top: 4px; }
|
|
.vac-list-reason { font-size: 12px; margin-top: 4px; }
|
|
.vac-empty { padding: 12px 0; }
|
|
|
|
/* ── 신청 폼(2026-11-02) — 위 휴가 종류 · 왼쪽 달력 · 오른쪽 날짜·사유 · 아래 결재 라인 ── */
|
|
.vac [hidden] { display: none !important; }
|
|
.vac-form-card { padding: 20px; max-width: 1000px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
|
|
.vac-types { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
|
|
.vac-types legend { float: left; margin-right: 12px; padding: 0; font-size: 14px; font-weight: 600; line-height: 34px; }
|
|
.vac-type { display: inline-flex; cursor: pointer; }
|
|
.vac-type input { position: absolute; opacity: 0; width: 0; height: 0; }
|
|
.vac-type span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; box-sizing: border-box;
|
|
border: 1px solid var(--vac-ash); border-radius: 9999px; font-size: 14px; color: var(--vac-black); background: #fff; }
|
|
.vac-type span::before { content: ""; width: 12px; height: 12px; box-sizing: border-box; border: 1.5px solid #a3a3a3; border-radius: 50%; }
|
|
.vac-type:hover span { background: var(--vac-ghost); }
|
|
.vac-type input:checked + span { background: #000; border-color: #000; color: #fff; font-weight: 700; }
|
|
.vac-type input:checked + span::before { border: 4px solid #fff; background: #000; }
|
|
.vac-type input:focus-visible + span { outline: 2px solid var(--vac-black); outline-offset: 2px; }
|
|
|
|
.vac-form-main { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
|
|
@media (max-width: 760px) { .vac-form-main { grid-template-columns: minmax(0, 1fr); } }
|
|
.vac-range-cal { border: 1px solid var(--vac-ash); border-radius: 12px; padding: 12px; font-size: 13px; }
|
|
.vac-form-side { display: flex; flex-direction: column; min-width: 0; }
|
|
.vac-form-grid {
|
|
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px; margin-bottom: 12px;
|
|
}
|
|
.vac-form-side .erp-input, .vac-form-side .erp-select { min-width: 0; width: 100%; box-sizing: border-box; }
|
|
.vac-form-side input[readonly] { background: var(--vac-ghost); cursor: default; }
|
|
.vac-reason textarea { resize: vertical; }
|
|
.vac-days-preview { margin: 0 0 12px; font-size: 14px; }
|
|
.vac-days-preview strong { font-size: 16px; font-weight: 600; }
|
|
.vac-form-err { margin: 0; color: var(--vac-red); font-size: 13px; font-weight: 600; }
|
|
.vac-form-actions { display: flex; gap: 8px; }
|
|
|
|
/* 결재 라인 — 신청 화면·상세 공용 */
|
|
.vac-line { border-top: 1px solid var(--vac-ash); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
|
|
.vac-line h3 { margin: 0; font-size: 15px; font-weight: 600; }
|
|
.vac-line-row { display: flex; align-items: center; gap: 12px; }
|
|
.vac-line-label { flex: none; width: 56px; font-size: 13px; font-weight: 600; }
|
|
.vac-line-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; font-size: 14px; }
|
|
.vac-line-sub { margin: 0; font-size: 13px; font-weight: 600; }
|
|
.vac-line-progress { margin: 0; }
|
|
.vac-person { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
|
|
.vac-pick { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px;
|
|
max-height: 260px; overflow-y: auto; border: 1px solid var(--vac-ash); border-radius: 10px; }
|
|
.vac-consult-box { display: flex; flex-direction: column; gap: 8px; }
|
|
.vac-consult-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 28px; gap: 8px; align-items: center; }
|
|
.vac-consult-row .erp-input { min-width: 0; width: 100%; box-sizing: border-box; resize: vertical; }
|
|
.vac-consult-x { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--vac-muted); cursor: pointer; }
|
|
.vac-consult-x:hover { background: var(--vac-ghost); color: var(--vac-red); }
|
|
.vac-line-consult { padding: 8px 12px; border-radius: 10px; background: var(--vac-ghost); font-size: 14px; }
|
|
.vac-line-consult p { margin: 4px 0 0; white-space: pre-wrap; }
|
|
.vac-line-comment { color: var(--vac-red); }
|
|
.vac-consult-brief { font-size: 12.5px; white-space: pre-wrap; }
|
|
|
|
/* 협의·결재 진행 상황 */
|
|
.vac-steps { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
|
|
.vac-step { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 9999px; background: var(--vac-ghost);
|
|
font-size: 12.5px; white-space: nowrap; }
|
|
.vac-step b { font-weight: 700; }
|
|
.vac-step.is-ok b { color: var(--vac-green); }
|
|
.vac-step.is-no b { color: var(--vac-red); }
|
|
.vac-step.is-wait b { color: #b45309; }
|
|
.vac-step .vac-opt-face { width: 18px; height: 18px; font-size: 10px; }
|
|
.vac-step-arrow { color: var(--vac-muted); }
|
|
|
|
/* ── 상세 ── */
|
|
.vac-detail-card { padding: 16px; max-width: 760px; }
|
|
.vac-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
.vac-detail-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
|
|
.vac-detail-grid {
|
|
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px 24px; margin: 16px 0;
|
|
}
|
|
.vac-detail-grid dt { font-size: 12px; color: var(--vac-muted); margin-bottom: 2px; }
|
|
.vac-detail-grid dd { margin: 0; font-size: 14px; }
|
|
.vac-detail-block { margin: 12px 0; }
|
|
.vac-detail-label { font-size: 12px; color: var(--vac-muted); margin-bottom: 4px; }
|
|
.vac-reject-block p { color: var(--vac-red); }
|
|
.vac-approve-box {
|
|
display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
|
|
background: var(--vac-ghost); border-radius: 10px; padding: 12px; margin: 12px 0;
|
|
}
|
|
.vac-reject-form { display: flex; gap: 6px; align-items: center; }
|
|
.vac-inline-form { display: inline; }
|
|
.vac-detail-actions { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
|
|
.vac-push-right { margin-left: auto; }
|
|
|
|
/* ── 승인 대기 ── */
|
|
.vac-pending-table .vac-act-col { width: 280px; }
|
|
.vac-pending-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
|
.vac-reason-cell { max-width: 260px; }
|
|
.erp-btn-sm { padding: 2px 10px; font-size: 12px; }
|
|
.erp-input-sm { padding: 2px 8px; font-size: 12px; min-width: 140px; }
|
|
|
|
/* ── 카드 머리(옵션 등) — 예전 설정 화면 규칙은 2026-10-27 화면과 함께 삭제 ── */
|
|
.vac-card-head h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
|
|
.vac-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
|
|
|
|
/* ── 휴가 옵션(2026-10-27) — 승인자·승인 통보자 · 메일 ── */
|
|
.vac-opt-msg { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: #eef6ff; color: #1a4fa0; font-size: 13px; }
|
|
.vac-opt-msg.is-warn { background: #fff7e6; color: #8a5a00; }
|
|
.vac-opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
|
|
.vac-opt-card { padding: 16px; }
|
|
/* .erp-page > .vac 는 화면 높이 flex 라 카드가 줄어 내용이 잘렸다(잔여 연차 줄·메일 글) — 옵션 화면은 줄이지 않고 페이지 스크롤 */
|
|
.vac-options > * { flex-shrink: 0; }
|
|
.vac-opt-count { font-size: 12px; font-weight: 500; margin-left: 4px; }
|
|
.vac-opt-hint { margin: 4px 0 10px; font-size: 12px; line-height: 1.5; }
|
|
.vac-opt-now { margin: 0 0 10px; font-size: 12px; color: var(--vac-muted); }
|
|
.vac-opt-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow-y: auto; }
|
|
.vac-opt-person { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
|
|
.vac-opt-person:hover { background: #f6f7f9; }
|
|
.vac-opt-person.is-on, .vac-opt-person:has(input:checked) { border-color: #c7d2fe; background: #f0f3ff; }
|
|
.vac-opt-person input:disabled + * { opacity: 1; }
|
|
.vac-opt-face { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
|
|
.vac-opt-face.is-ini { display: inline-flex; align-items: center; justify-content: center; background: #e5e7eb; color: #374151; font-size: 12px; font-weight: 700; }
|
|
.vac-opt-name { font-weight: 600; }
|
|
.vac-opt-mail { font-size: 12px; margin-left: auto; }
|
|
.vac-opt-save { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
|
|
.vac-opt-mailcard { margin-top: 16px; }
|
|
.vac-opt-rules { margin: 4px 0 12px; padding-left: 18px; font-size: 13px; line-height: 1.7; }
|
|
.vac-opt-gmail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.vac-opt-gmail-state { font-weight: 600; color: var(--vac-muted); }
|
|
.vac-opt-gmail-state.is-on { color: #0f8a3a; }
|
|
@media (max-width: 900px) { .vac-opt-grid { grid-template-columns: 1fr; } }
|
|
/* 상세 — 휴가 메일 기록 */
|
|
.vac-mail-log ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
|
|
.vac-mail-log li.is-fail b { color: #c22b10; }
|
|
.vac-mail-when { color: var(--vac-muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
|
|
.vac-mail-err { display: block; margin-left: 2px; color: #c22b10; font-size: 12px; }
|
|
|
|
/* 달력 — 공휴일 이름(국경일·대체공휴일·회사 휴일) 날짜 아래(2026-10-27) */
|
|
.vac-hol-name { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--vac-red);
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.vac-out .vac-hol-name { color: #f0a9a9; }
|
|
/* 공휴일이 있는 주 — 이름 줄만큼 휴가 막대를 내린다(막대 top 38px → 54px) */
|
|
.vac-week.has-hol { min-height: 104px; }
|
|
.vac-week.has-hol .vac-week-bars { top: 54px; }
|
|
/* 옵션 — 잔여 연차 표(설정에서 옮김) */
|
|
.vac-opt-balcard { margin-top: 16px; }
|
|
.vac-bal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
|
|
.vac-bal-years { display: inline-flex; gap: 6px; }
|
|
.vac-bal-table td { vertical-align: middle; }
|
|
.vac-bal-person { display: flex; align-items: center; gap: 8px; min-width: 260px; }
|
|
.vac-bal-person .vac-opt-mail { margin-left: 4px; }
|
|
.vac-bal-input { width: 88px; min-width: 0; text-align: right; } /* erp-input 의 min-width 240px 끔 */
|
|
.vac-bal-memo { width: 100%; min-width: 160px; max-width: 360px; box-sizing: border-box; }
|
|
.vac-bal-num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
.vac-bal-num.is-minus { color: var(--vac-red); font-weight: 700; }
|
|
.vac-bal-table tr.is-inactive td { color: var(--vac-muted); }
|
|
/* 잔여 연차 — 이름 옆 입사일 날짜 버튼(2026-10-27) */
|
|
.vac-bal-who { display: inline-flex; flex-direction: column; line-height: 1.25; min-width: 0; }
|
|
.vac-bal-who .vac-opt-mail { margin-left: 0; font-size: 11.5px; }
|
|
.vac-bal-person .vac-hire-btn { margin: 0 0 0 auto; height: 30px; padding: 0 10px; font-size: 12.5px; }
|
|
.vac-bal-person .vac-hire-btn .material-symbols-outlined { font-size: 16px; }
|
|
.vac-bal-legal { color: #1a56db; font-weight: 600; }
|
|
.vac-bal-years-cell { color: var(--vac-muted); }
|
|
/* 잔여 연차 — 입사일 기준(2026-10-27): 연차 기간·먼저 소멸, 바꾼 줄은 저장 전 옅게 */
|
|
.vac-bal-period, .vac-bal-expire { white-space: nowrap; font-size: 12.5px; color: var(--vac-muted); font-variant-numeric: tabular-nums; }
|
|
.vac-bal-legal small { font-weight: 500; color: var(--vac-muted); }
|
|
.vac-bal-table tr.is-stale .vac-bal-remain, .vac-bal-table tr.is-stale .vac-bal-expire { color: #b45309; font-weight: 600; }
|
|
.vac-bal-remain.is-minus { color: var(--vac-red); font-weight: 700; }
|