/* 생산팀 대시보드 — Sprint 003 */ .pd-main { max-width: 640px; margin: 0 auto; padding: 16px 16px 80px; } /* 프로필 카드 */ .pd-profile-card { background: linear-gradient(135deg, #9a3412, #ea580c); color: white; border-radius: 16px; padding: 20px; margin-bottom: 16px; position: relative; } .pd-logout-btn { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.2); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); font-size: 14px; cursor: pointer; transition: background 0.15s; } .pd-logout-btn:hover { background: rgba(255,255,255,0.3); color: white; } .pd-profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; } .pd-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; } .pd-profile-name { font-size: 18px; font-weight: 700; } .pd-profile-sub { font-size: 13px; opacity: 0.8; margin-top: 2px; } /* 통합 정보 리스트 */ .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-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 { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; padding-left: 2px; } /* 아이콘 그리드 */ .pd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .pd-grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; } .pd-grid-item:active .pd-grid-icon { transform: scale(0.93); } .pd-grid-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; transition: transform 0.15s; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .pd-grid-label { font-size: 11px; text-align: center; color: #374151; line-height: 1.3; max-width: 64px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } /* 스켈레톤 */ .pd-skeleton { background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%); background-size: 200% 100%; animation: pd-shimmer 1.5s infinite; border-radius: 8px; } @keyframes pd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* 에러 */ .pd-error { text-align: center; padding: 40px 20px; color: #6b7280; } .pd-error i { font-size: 40px; margin-bottom: 12px; color: #d1d5db; } .pd-error-btn { margin-top: 12px; padding: 8px 20px; background: #2563eb; color: white; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; } /* 반응형 */ @media (min-width: 640px) { .pd-grid { grid-template-columns: repeat(6, 1fr); } } @media (min-width: 1024px) { .pd-main { max-width: 800px; } .pd-grid { grid-template-columns: repeat(8, 1fr); } }