Files
TK-FB-Project/web-ui/css/work-review.css

839 lines
13 KiB
CSS

/* work-review.css - 작업 검토 페이지 전용 스타일 (개선된 버전) */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f5f7fa;
color: #333;
line-height: 1.4;
}
.main-layout-with-navbar {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.content-wrapper {
flex: 1;
padding: 20px;
}
.review-container {
max-width: 1400px;
margin: 0 auto;
}
/* 페이지 헤더 */
.page-header {
text-align: center;
margin-bottom: 2rem;
padding: 2rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 16px;
box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.page-header h1 {
font-size: 2.2rem;
margin-bottom: 0.5rem;
font-weight: 700;
}
.subtitle {
font-size: 1rem;
opacity: 0.9;
}
/* 뒤로가기 버튼 */
.back-btn {
background: rgba(255,255,255,0.95);
color: #667eea;
border: 3px solid #667eea;
padding: 12px 24px;
border-radius: 12px;
text-decoration: none;
font-weight: 700;
font-size: 16px;
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
transition: all 0.3s ease;
}
.back-btn:hover {
background: #667eea;
color: white;
transform: translateY(-2px);
}
/* 컨트롤 패널 */
.control-panel {
background: white;
border-radius: 16px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.month-navigation {
display: flex;
align-items: center;
gap: 1rem;
}
.nav-btn, .today-btn {
background: #007bff;
color: white;
border: none;
border-radius: 8px;
padding: 12px 16px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s;
font-size: 16px;
}
.nav-btn:hover, .today-btn:hover {
background: #0056b3;
transform: translateY(-2px);
}
.today-btn {
background: #28a745;
}
.today-btn:hover {
background: #1e7e34;
}
.current-month {
font-size: 1.5rem;
font-weight: 700;
color: #333;
min-width: 200px;
text-align: center;
}
.control-actions {
display: flex;
gap: 12px;
}
/* 사용법 안내 */
.usage-guide {
background: white;
border-radius: 16px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.usage-guide h3 {
margin-bottom: 1.5rem;
color: #333;
font-size: 1.3rem;
text-align: center;
}
.guide-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}
.guide-item {
display: flex;
align-items: center;
gap: 15px;
padding: 1rem;
border-radius: 12px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border: 2px solid #dee2e6;
transition: all 0.3s ease;
}
.guide-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.guide-icon {
font-size: 2rem;
width: 50px;
text-align: center;
}
.guide-text {
flex: 1;
}
.guide-text strong {
color: #007bff;
font-size: 1.1rem;
}
/* 캘린더 */
.calendar-container {
background: white;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
margin-bottom: 2rem;
}
.calendar-container h3 {
color: #333;
font-size: 1.3rem;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
border: 3px solid #dee2e6;
border-radius: 12px;
overflow: hidden;
}
.day-header {
background: #343a40;
color: white;
padding: 15px;
text-align: center;
font-weight: 700;
font-size: 1.1rem;
}
.day-cell {
background: white;
border: 1px solid #dee2e6;
min-height: 80px;
padding: 8px;
position: relative;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}
.day-cell:hover {
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 10;
}
.day-cell.other-month {
background: #f8f9fa;
color: #6c757d;
cursor: not-allowed;
}
.day-cell.today {
border: 3px solid #007bff;
background: #e7f3ff;
}
.day-cell.selected {
background: #d4edda;
border: 3px solid #28a745;
transform: scale(1.02);
}
.day-cell.selected .day-number {
color: #155724;
font-weight: 800;
}
.day-number {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 5px;
}
/* 선택된 날짜 정보 패널 */
.day-info-panel {
background: white;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
margin-bottom: 2rem;
}
.day-info-placeholder {
text-align: center;
padding: 3rem;
color: #6c757d;
}
.day-info-placeholder h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #495057;
}
.day-info-content {
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.day-info-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 3px solid #dee2e6;
}
.day-info-header h3 {
color: #333;
font-size: 1.5rem;
margin: 0;
}
.day-info-actions {
display: flex;
gap: 12px;
}
.review-toggle, .refresh-day-btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s;
font-size: 14px;
}
.review-toggle {
background: #007bff;
color: white;
}
.review-toggle.reviewed {
background: #28a745;
}
.review-toggle:hover {
transform: translateY(-2px);
}
.refresh-day-btn {
background: #6c757d;
color: white;
}
.refresh-day-btn:hover {
background: #545b62;
transform: translateY(-2px);
}
/* 일별 요약 정보 */
.day-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
padding: 1.5rem;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 12px;
border: 2px solid #dee2e6;
}
.summary-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.summary-label {
font-weight: 600;
color: #6c757d;
font-size: 0.9rem;
}
.summary-value {
font-size: 1.3rem;
font-weight: 700;
color: #333;
}
.summary-value.normal-work {
color: #28a745;
}
.summary-value.overtime {
color: #6f42c1;
}
.summary-value.vacation {
color: #ffc107;
}
.summary-value.reviewed {
color: #28a745;
}
.summary-value.unreviewed {
color: #fd7e14;
}
/* 작업자별 상세 섹션 */
.workers-detail-container h4 {
margin-bottom: 1rem;
color: #333;
font-size: 1.2rem;
}
.worker-detail-section {
border: 2px solid #dee2e6;
border-radius: 12px;
margin-bottom: 1rem;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.worker-header-detail {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.delete-worker-btn {
background: rgba(220, 53, 69, 0.9);
color: white;
border: none;
border-radius: 6px;
padding: 8px 16px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.3s;
}
.delete-worker-btn:hover {
background: #c82333;
transform: translateY(-1px);
}
.worker-work-items {
padding: 1rem;
background: white;
}
.work-item-detail {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
margin-bottom: 0.5rem;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #007bff;
transition: all 0.3s ease;
}
.work-item-detail:hover {
background: #e9ecef;
transform: translateX(5px);
}
.work-item-info {
flex: 1;
}
.work-item-actions {
display: flex;
gap: 8px;
}
.edit-work-btn, .delete-work-btn {
padding: 8px 16px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.3s;
white-space: nowrap;
}
.edit-work-btn {
background: #007bff;
color: white;
}
.edit-work-btn:hover {
background: #0056b3;
transform: translateY(-1px);
}
.delete-work-btn {
background: #dc3545;
color: white;
}
.delete-work-btn:hover {
background: #c82333;
transform: translateY(-1px);
}
/* 메시지 */
.message {
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 20px;
font-weight: 600;
animation: slideInDown 0.3s ease;
}
@keyframes slideInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message.loading {
background: #cce5ff;
color: #0066cc;
border: 2px solid #99d6ff;
}
.message.success {
background: #d4edda;
color: #155724;
border: 2px solid #c3e6cb;
}
.message.error {
background: #f8d7da;
color: #721c24;
border: 2px solid #f5c6cb;
}
.message.warning {
background: #fff3cd;
color: #856404;
border: 2px solid #ffeaa7;
}
/* 수정 모달 스타일 */
.edit-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 1001;
animation: fadeIn 0.3s ease;
}
.edit-modal-content {
background: white;
border-radius: 16px;
width: 90%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
animation: slideInUp 0.3s ease;
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(50px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.edit-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px;
border-bottom: 2px solid #f0f0f0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 16px 16px 0 0;
}
.edit-modal-header h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
}
.close-modal-btn {
background: rgba(255,255,255,0.2);
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
cursor: pointer;
font-size: 16px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
}
.close-modal-btn:hover {
background: rgba(255,255,255,0.3);
transform: rotate(90deg);
}
.edit-modal-body {
padding: 24px;
}
.edit-form-group {
margin-bottom: 20px;
}
.edit-form-group label {
display: block;
margin-bottom: 8px;
font-weight: 700;
color: #555;
font-size: 14px;
}
.edit-select, .edit-input {
width: 100%;
padding: 12px 16px;
border: 2px solid #e1e5e9;
border-radius: 8px;
font-size: 14px;
background: white;
transition: border-color 0.3s;
}
.edit-select:focus, .edit-input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.edit-modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 24px;
border-top: 2px solid #f0f0f0;
background: #f8f9fa;
border-radius: 0 0 16px 16px;
}
/* 확인 모달 */
.confirm-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1002;
animation: fadeIn 0.3s ease;
}
.confirm-modal-content {
background: white;
border-radius: 16px;
width: 90%;
max-width: 400px;
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
animation: slideInUp 0.3s ease;
}
.confirm-modal-header {
padding: 24px 24px 16px;
border-bottom: 2px solid #f0f0f0;
}
.confirm-modal-header h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: #dc3545;
}
.confirm-modal-body {
padding: 16px 24px;
}
.confirm-modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px 24px;
border-top: 2px solid #f0f0f0;
background: #f8f9fa;
border-radius: 0 0 16px 16px;
}
/* 버튼 스타일 */
.btn {
padding: 10px 20px;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s;
font-size: 14px;
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #545b62;
transform: translateY(-1px);
}
.btn-success {
background: #28a745;
color: white;
}
.btn-success:hover {
background: #1e7e34;
transform: translateY(-1px);
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-danger:hover {
background: #c82333;
transform: translateY(-1px);
}
/* 반응형 */
@media (max-width: 768px) {
.content-wrapper {
padding: 10px;
}
.control-panel {
flex-direction: column;
text-align: center;
}
.month-navigation {
flex-direction: column;
gap: 0.5rem;
}
.guide-grid {
grid-template-columns: 1fr;
}
.guide-item {
flex-direction: column;
text-align: center;
}
.day-cell {
min-height: 60px;
padding: 5px;
}
.day-number {
font-size: 1rem;
}
.day-summary {
grid-template-columns: 1fr 1fr;
}
.day-info-header {
flex-direction: column;
gap: 15px;
text-align: center;
}
.day-info-actions {
flex-direction: column;
width: 100%;
}
.review-toggle, .refresh-day-btn {
width: 100%;
}
.work-item-detail {
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.work-item-actions {
justify-content: center;
}
.worker-header-detail {
flex-direction: column;
gap: 10px;
text-align: center;
}
.edit-modal-content {
width: 95%;
margin: 20px;
}
.edit-modal-footer, .confirm-modal-footer {
flex-direction: column;
}
.edit-work-btn, .delete-work-btn {
flex: 1;
padding: 12px;
font-size: 14px;
}
}