feat(dashboard): 연차/연장근로 통합 + 연차 상세 모달

- 백엔드: type_code ANNUAL 매칭 실패 → 전체 합산으로 수정
  details에 balance_type, expires_at 포함
- 프론트: 2열 카드 → 통합 리스트 (연차 탭 + 연장근로 행)
- 연차 행 클릭 → 상세 모달 (이월/정기/장기/경조사 breakdown)
  이월 소진/만료 isExpired() 적용
- 내 메뉴에서 "내 연차 정보" 자동 제거

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-31 10:26:54 +09:00
parent 408bf1af62
commit f58dd115c9
4 changed files with 160 additions and 43 deletions

View File

@@ -24,21 +24,53 @@
.pd-profile-name { font-size: 18px; font-weight: 700; }
.pd-profile-sub { font-size: 13px; opacity: 0.8; margin-top: 2px; }
/* 현황 카드 */
.pd-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-stat-card {
background: rgba(255,255,255,0.15); border-radius: 12px; padding: 14px;
backdrop-filter: blur(4px);
/* 통합 정보 리스트 */
.pd-info-list { display: flex; flex-direction: column; gap: 2px; }
.pd-info-row {
display: flex; justify-content: space-between; align-items: center;
background: rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 12px;
cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pd-stat-label { font-size: 11px; opacity: 0.8; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.pd-stat-value { font-size: 22px; font-weight: 800; }
.pd-stat-sub { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.pd-progress-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.2); margin-top: 8px; overflow: hidden; }
.pd-progress-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.pd-info-row:active { background: rgba(255,255,255,0.18); }
.pd-info-left { display: flex; align-items: center; gap: 8px; }
.pd-info-icon { font-size: 14px; opacity: 0.8; width: 18px; text-align: center; }
.pd-info-label { font-size: 12px; font-weight: 600; opacity: 0.9; }
.pd-info-right { display: flex; align-items: center; gap: 6px; }
.pd-info-value { font-size: 14px; font-weight: 700; }
.pd-info-sub { font-size: 11px; opacity: 0.6; }
.pd-info-arrow { font-size: 10px; opacity: 0.5; margin-left: 2px; }
.pd-progress-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.2); overflow: hidden; }
.pd-progress-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.pd-progress-green { background: #4ade80; }
.pd-progress-yellow { background: #fbbf24; }
.pd-progress-red { background: #f87171; }
/* 연차 상세 모달 */
.pd-detail-modal {
position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.pd-detail-modal.active { opacity: 1; pointer-events: auto; }
.pd-detail-sheet {
background: linear-gradient(135deg, #9a3412, #ea580c); color: white;
border-radius: 16px 16px 0 0; width: 100%; max-width: 640px; padding: 20px;
transform: translateY(100%); transition: transform 0.3s ease;
}
.pd-detail-modal.active .pd-detail-sheet { transform: translateY(0); }
.pd-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pd-detail-title { font-size: 16px; font-weight: 700; }
.pd-detail-close { background: none; border: none; color: white; opacity: 0.7; font-size: 18px; cursor: pointer; }
.pd-detail-row {
display: flex; justify-content: space-between; align-items: center;
padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 13px;
}
.pd-detail-label { font-weight: 600; opacity: 0.9; }
.pd-detail-value { text-align: right; opacity: 0.85; }
.pd-detail-total {
display: flex; justify-content: space-between; align-items: center;
padding: 12px 0 0; font-size: 14px; font-weight: 700; margin-top: 4px;
}
/* 섹션 */
.pd-section { margin-bottom: 20px; }
.pd-section-title {