Files
TK-FB-Project/web-ui/css/my-attendance.css
Hyungi Ahn 4ac0605887 refactor: 네비게이션 헤더 최신 디자인으로 전면 개편 및 로그인 버그 수정
- fix: 로그인 API에서 user.role_name 필드 올바르게 사용 (auth.service.js)
- refactor: navbar 컴포넌트를 최신 dashboard-header 스타일로 전환
- refactor: 구버전 work-report-header 제거 (6개 페이지)
- refactor: load-navbar.js를 최신 헤더 구조에 맞게 업데이트
- style: 파란색 그라데이션 헤더, 실시간 시계, 향상된 프로필 메뉴
- docs: 2026-01-20 개발 로그 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 08:40:19 +09:00

584 lines
8.7 KiB
CSS

/**
* 나의 출근 현황 페이지 스타일
*/
/* 페이지 헤더 */
.page-header {
margin-bottom: 24px;
}
.page-title {
font-size: 28px;
font-weight: 700;
color: #1a1a1a;
margin: 0 0 8px 0;
display: flex;
align-items: center;
gap: 12px;
}
.title-icon {
font-size: 32px;
}
.page-description {
font-size: 14px;
color: #666;
margin: 0;
}
/* 통계 카드 섹션 */
.stats-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.stat-card {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
align-items: center;
gap: 16px;
transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.stat-icon {
font-size: 36px;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
background: #f8f9fa;
border-radius: 12px;
}
.stat-info {
flex: 1;
}
.stat-value {
font-size: 24px;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 4px;
}
.stat-label {
font-size: 13px;
color: #666;
font-weight: 500;
}
/* 탭 컨테이너 */
.tab-container {
display: flex;
gap: 8px;
margin-bottom: 20px;
border-bottom: 2px solid #e9ecef;
}
.tab-btn {
background: none;
border: none;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
color: #6c757d;
cursor: pointer;
border-bottom: 3px solid transparent;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 8px;
}
.tab-btn:hover {
color: #495057;
background: #f8f9fa;
}
.tab-btn.active {
color: #007bff;
border-bottom-color: #007bff;
}
.tab-icon {
font-size: 16px;
}
/* 탭 컨텐츠 */
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* 테이블 스타일 */
#attendanceTable {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
#attendanceTable thead {
background: #f8f9fa;
}
#attendanceTable th {
padding: 16px 12px;
font-weight: 600;
color: #495057;
text-align: center;
border-bottom: 2px solid #dee2e6;
}
#attendanceTable td {
padding: 14px 12px;
text-align: center;
border-bottom: 1px solid #f1f3f5;
}
#attendanceTable tbody tr {
transition: background-color 0.2s;
cursor: pointer;
}
#attendanceTable tbody tr:hover {
background-color: #f8f9fa;
}
.loading-cell,
.empty-cell,
.error-cell {
text-align: center;
padding: 40px 20px;
color: #6c757d;
font-size: 14px;
}
.error-cell {
color: #dc3545;
}
.notes-cell {
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
color: #6c757d;
font-size: 13px;
}
/* 상태 배지 */
.status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
text-transform: capitalize;
}
.status-badge.normal {
background: #d4edda;
color: #155724;
}
.status-badge.late {
background: #fff3cd;
color: #856404;
}
.status-badge.early {
background: #ffe5b5;
color: #a56200;
}
.status-badge.absent {
background: #f8d7da;
color: #721c24;
}
.status-badge.vacation {
background: #cce5ff;
color: #004085;
}
/* 달력 스타일 */
#calendarContainer {
background: white;
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.calendar-header h3 {
font-size: 20px;
font-weight: 700;
color: #1a1a1a;
margin: 0;
}
.calendar-nav-btn {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
width: 40px;
height: 40px;
font-size: 18px;
cursor: pointer;
transition: all 0.2s;
}
.calendar-nav-btn:hover {
background: #e9ecef;
border-color: #adb5bd;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 8px;
}
.calendar-day-header {
text-align: center;
font-weight: 600;
font-size: 13px;
color: #495057;
padding: 12px 8px;
background: #f8f9fa;
border-radius: 4px;
}
.calendar-day {
aspect-ratio: 1;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 8px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.2s;
background: white;
}
.calendar-day.empty {
background: #f8f9fa;
border-color: #f1f3f5;
}
.calendar-day.has-record {
cursor: pointer;
font-weight: 600;
}
.calendar-day.has-record:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
/* 달력 날짜 상태별 색상 */
.calendar-day.normal {
background: #d4edda;
border-color: #c3e6cb;
color: #155724;
}
.calendar-day.late {
background: #fff3cd;
border-color: #ffeaa7;
color: #856404;
}
.calendar-day.early {
background: #ffe5b5;
border-color: #ffd98a;
color: #a56200;
}
.calendar-day.absent {
background: #f8d7da;
border-color: #f5c6cb;
color: #721c24;
}
.calendar-day.vacation {
background: #cce5ff;
border-color: #b8daff;
color: #004085;
}
.calendar-day-number {
font-size: 14px;
margin-bottom: 4px;
}
.calendar-day-status {
font-size: 16px;
}
/* 달력 범례 */
.calendar-legend {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
margin-top: 24px;
padding-top: 20px;
border-top: 1px solid #e9ecef;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #495057;
}
.legend-dot {
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid #dee2e6;
}
.legend-dot.normal {
background: #d4edda;
border-color: #c3e6cb;
}
.legend-dot.late {
background: #fff3cd;
border-color: #ffeaa7;
}
.legend-dot.early {
background: #ffe5b5;
border-color: #ffd98a;
}
.legend-dot.absent {
background: #f8d7da;
border-color: #f5c6cb;
}
.legend-dot.vacation {
background: #cce5ff;
border-color: #b8daff;
}
/* 모달 스타일 */
.modal {
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background-color: white;
border-radius: 12px;
width: 90%;
max-width: 500px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.modal-header {
padding: 20px 24px;
border-bottom: 1px solid #e9ecef;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h2 {
margin: 0;
font-size: 20px;
font-weight: 700;
color: #1a1a1a;
}
.modal-close-btn {
background: none;
border: none;
font-size: 28px;
color: #6c757d;
cursor: pointer;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.modal-close-btn:hover {
background: #f8f9fa;
color: #343a40;
}
.modal-body {
padding: 24px;
}
.modal-footer {
padding: 16px 24px;
border-top: 1px solid #e9ecef;
display: flex;
justify-content: flex-end;
gap: 12px;
}
/* 상세 정보 그리드 */
.detail-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.detail-item {
display: flex;
flex-direction: column;
gap: 8px;
}
.detail-item.full-width {
grid-column: 1 / -1;
}
.detail-item label {
font-size: 13px;
font-weight: 600;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.detail-item div {
font-size: 15px;
color: #1a1a1a;
}
/* 버튼 스타일 */
.btn-primary {
background-color: #007bff;
color: white;
border: none;
padding: 8px 16px;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-primary:hover {
background-color: #0056b3;
}
.btn-secondary {
background-color: #6c757d;
color: white;
border: none;
padding: 8px 16px;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-secondary:hover {
background-color: #5a6268;
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.stats-section {
grid-template-columns: 1fr;
}
.stat-card {
padding: 16px;
}
.stat-icon {
width: 48px;
height: 48px;
font-size: 28px;
}
.stat-value {
font-size: 20px;
}
.tab-btn {
padding: 10px 16px;
font-size: 13px;
}
.calendar-grid {
gap: 4px;
}
.calendar-day {
padding: 4px;
}
.calendar-day-number {
font-size: 12px;
}
.calendar-day-status {
font-size: 14px;
}
.detail-grid {
grid-template-columns: 1fr;
}
#attendanceTable {
font-size: 12px;
}
#attendanceTable th,
#attendanceTable td {
padding: 10px 8px;
}
.notes-cell {
max-width: 120px;
}
}