/* my-monthly-confirm.css — 작업자 월간 확인 (모바일 캘린더) */ body { max-width: 480px; margin: 0 auto; } /* 월 네비게이션 */ .mmc-month-nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; position: relative; } .mmc-month-nav button { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #6b7280; background: #f3f4f6; border: none; cursor: pointer; } .mmc-month-nav button:hover { background: #e5e7eb; } .mmc-month-nav > span { font-size: 1rem; font-weight: 700; color: #1f2937; } .mmc-status-badge { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 12px; } .mmc-status-badge.pending { background: #f3f4f6; color: #6b7280; } .mmc-status-badge.review_sent { background: #dbeafe; color: #1e40af; } .mmc-status-badge.confirmed { background: #dcfce7; color: #166534; } .mmc-status-badge.change_request { background: #fef3c7; color: #92400e; } .mmc-status-badge.rejected { background: #fef2f2; color: #991b1b; } /* 사용자 정보 */ .mmc-user-info { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 8px; font-size: 0.95rem; font-weight: 700; color: #1f2937; } .mmc-user-dept { font-size: 0.8rem; font-weight: 400; color: #6b7280; } /* ===== 캘린더 그리드 ===== */ .cal-grid { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 10px; } .cal-header { display: grid; grid-template-columns: repeat(7, 1fr); background: #f9fafb; border-bottom: 1px solid #e5e7eb; } .cal-dow { text-align: center; padding: 8px 0; font-size: 0.7rem; font-weight: 600; color: #6b7280; } .cal-dow.sun { color: #ef4444; } .cal-dow.sat { color: #3b82f6; } .cal-body { display: grid; grid-template-columns: repeat(7, 1fr); } .cal-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 2px; min-height: 54px; border-bottom: 1px solid #f3f4f6; border-right: 1px solid #f3f4f6; cursor: pointer; transition: background 0.15s; } .cal-cell:nth-child(7n) { border-right: none; } .cal-cell:active { background: #eff6ff; } .cal-cell.selected { background: #dbeafe; } .cal-cell.empty { background: #fafafa; cursor: default; } .cal-day { font-size: 0.7rem; font-weight: 600; color: #374151; margin-bottom: 2px; } .cal-cell.sun .cal-day { color: #ef4444; } .cal-cell.sat .cal-day { color: #3b82f6; } .cal-val { font-size: 0.65rem; font-weight: 700; line-height: 1.2; text-align: center; } /* 셀 상태별 색상 — 정시=흰색, 연차=노랑, 연장=연보라, 휴무=회색 */ .cal-cell.normal { background: white; } .cal-cell.normal .cal-val { color: #1f2937; } .cal-cell.vac { background: #fefce8; } .cal-cell.vac .cal-val { color: #92400e; font-weight: 700; } .cal-cell.off { background: #f3f4f6; } .cal-cell.off .cal-val { color: #9ca3af; font-weight: 500; } .cal-cell.overtime { background: #f5f3ff; } .cal-cell.overtime .cal-val { color: #7c3aed; } .cal-cell.special { background: #fff7ed; } .cal-cell.special .cal-val { color: #b45309; } .cal-cell.partial .cal-val { color: #6b7280; } .cal-cell.none .cal-val { color: #d1d5db; } /* 상세 표시 */ .cal-detail { display: none; margin-bottom: 10px; } .cal-detail-inner { background: white; border-radius: 10px; padding: 10px 14px; font-size: 0.8rem; color: #374151; box-shadow: 0 1px 3px rgba(0,0,0,0.06); } /* ===== 요약 카드 ===== */ .mmc-sum-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .mmc-sum-card { background: white; border-radius: 10px; padding: 10px 6px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06); } .mmc-sum-num { font-size: 1.1rem; font-weight: 800; color: #1f2937; } .mmc-sum-num.ot { color: #f59e0b; } .mmc-sum-num.vac { color: #059669; } .mmc-sum-label { font-size: 0.65rem; color: #6b7280; margin-top: 2px; } /* 연차 현황 */ .mmc-vac-title { font-size: 0.8rem; font-weight: 600; color: #6b7280; margin-bottom: 6px; padding: 0 4px; } .mmc-vac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 160px; } .mmc-vac-card { background: white; border-radius: 10px; padding: 12px 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06); } .mmc-vac-num { font-size: 1.25rem; font-weight: 800; color: #1f2937; } .mmc-vac-num.used { color: #f59e0b; } .mmc-vac-num.remain { color: #059669; } .mmc-vac-label { font-size: 0.7rem; color: #6b7280; margin-top: 2px; } /* 확인 상태 */ .mmc-confirmed-status { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 16px; font-size: 0.85rem; color: #059669; font-weight: 600; margin-bottom: 80px; } /* 하단 버튼 */ .mmc-bottom-actions { position: fixed; bottom: 68px; left: 0; right: 0; display: flex; gap: 8px; padding: 10px 16px; background: white; border-top: 1px solid #e5e7eb; z-index: 30; max-width: 480px; margin: 0 auto; } .mmc-confirm-btn { flex: 1; padding: 14px; background: #10b981; color: white; font-size: 0.9rem; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; } .mmc-confirm-btn:hover { background: #059669; } .mmc-reject-btn { flex: 1; padding: 14px; background: white; color: #ef4444; font-size: 0.9rem; font-weight: 700; border: 2px solid #fecaca; border-radius: 12px; cursor: pointer; } .mmc-reject-btn:hover { background: #fef2f2; } /* 모달 */ .mmc-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; } .mmc-modal { background: white; border-radius: 12px; width: 100%; max-width: 400px; overflow: hidden; } .mmc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #f3f4f6; font-weight: 700; font-size: 0.9rem; } .mmc-modal-header button { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 1.1rem; } .mmc-modal-body { padding: 16px; } .mmc-modal-desc { font-size: 0.85rem; color: #374151; margin-bottom: 8px; } .mmc-textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; font-size: 0.85rem; resize: none; } .mmc-modal-note { font-size: 0.75rem; color: #6b7280; margin-top: 8px; } .mmc-modal-footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #f3f4f6; } .mmc-modal-cancel { flex: 1; padding: 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: white; cursor: pointer; font-size: 0.8rem; } .mmc-modal-submit { flex: 1; padding: 10px; background: #ef4444; color: white; border: none; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; } /* 빈 상태 / 스켈레톤 */ .mmc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; color: #9ca3af; font-size: 0.875rem; } .mmc-skeleton { height: 40px; background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%); background-size: 200% 100%; animation: mmc-shimmer 1.5s infinite; border-radius: 8px; margin-bottom: 4px; } @keyframes mmc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }