관리자가 개인 작업자 detail 페이지에서 수정요청(change_request) 내역을 확인하고 승인/거부할 수 있도록 UI 추가. admin 리스트에도 수정 내역 요약 표시. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
382 lines
13 KiB
CSS
382 lines
13 KiB
CSS
/* monthly-comparison.css — 월간 비교·확인·정산 */
|
|
|
|
/* Header */
|
|
.mc-header {
|
|
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
|
|
color: white;
|
|
padding: 14px 16px;
|
|
border-radius: 0 0 16px 16px;
|
|
margin: -16px -16px 0;
|
|
position: sticky;
|
|
top: 56px;
|
|
z-index: 20;
|
|
}
|
|
.mc-header-row { display: flex; align-items: center; gap: 12px; }
|
|
.mc-back-btn {
|
|
width: 32px; height: 32px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: rgba(255,255,255,0.15);
|
|
border-radius: 8px;
|
|
border: none; color: white; cursor: pointer;
|
|
}
|
|
.mc-header h1 { font-size: 1.05rem; font-weight: 700; flex: 1; }
|
|
.mc-view-toggle {
|
|
width: 32px; height: 32px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: rgba(255,255,255,0.15);
|
|
border-radius: 8px;
|
|
border: none; color: white; cursor: pointer;
|
|
}
|
|
|
|
/* Month Navigation */
|
|
.mc-month-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 12px 0;
|
|
position: relative;
|
|
}
|
|
.mc-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;
|
|
}
|
|
.mc-month-nav button:hover { background: #e5e7eb; }
|
|
.mc-month-nav span { font-size: 1rem; font-weight: 700; color: #1f2937; }
|
|
.mc-status-badge {
|
|
position: absolute; right: 0; top: 50%; transform: translateY(-50%);
|
|
font-size: 0.7rem; font-weight: 600;
|
|
padding: 3px 8px; border-radius: 12px;
|
|
}
|
|
.mc-status-badge.pending { background: #fef3c7; color: #92400e; }
|
|
.mc-status-badge.confirmed { background: #dcfce7; color: #166534; }
|
|
.mc-status-badge.rejected { background: #fef2f2; color: #991b1b; }
|
|
.mc-status-badge.change_request { background: #fff7ed; color: #c2410c; }
|
|
.mc-status-badge.review_sent { background: #dbeafe; color: #1e40af; }
|
|
.mc-status-badge.admin_checked { background: #dcfce7; color: #166534; }
|
|
|
|
/* Summary Cards */
|
|
.mc-summary-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
@media (min-width: 640px) {
|
|
.mc-summary-cards { grid-template-columns: repeat(4, 1fr); }
|
|
}
|
|
.mc-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
padding: 12px 8px;
|
|
text-align: center;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
|
|
}
|
|
.mc-card-value { font-size: 1.25rem; font-weight: 800; color: #1f2937; }
|
|
.mc-card-label { font-size: 0.7rem; color: #6b7280; margin-top: 2px; }
|
|
|
|
/* Mismatch Alert */
|
|
.mc-mismatch-alert {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 10px 12px;
|
|
background: #fffbeb; border: 1px solid #fde68a;
|
|
border-radius: 8px;
|
|
margin-bottom: 12px;
|
|
font-size: 0.8rem; color: #92400e;
|
|
}
|
|
|
|
/* Daily List */
|
|
.mc-daily-list { padding-bottom: 100px; }
|
|
.mc-daily-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
margin-bottom: 6px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
|
|
border-left: 3px solid transparent;
|
|
}
|
|
.mc-daily-card.match { border-left-color: #10b981; }
|
|
.mc-daily-card.mismatch { background: #fffbeb; border-left-color: #f59e0b; }
|
|
.mc-daily-card.report_only { background: #eff6ff; border-left-color: #3b82f6; }
|
|
.mc-daily-card.attend_only { background: #f5f3ff; border-left-color: #8b5cf6; }
|
|
.mc-daily-card.vacation { background: #f0fdf4; border-left-color: #34d399; }
|
|
.mc-daily-card.holiday { background: #f9fafb; border-left-color: #9ca3af; }
|
|
.mc-daily-card.none { background: #fef2f2; border-left-color: #ef4444; }
|
|
|
|
.mc-daily-header {
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
.mc-daily-date { font-size: 0.85rem; font-weight: 600; color: #1f2937; }
|
|
.mc-daily-status { font-size: 0.7rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
|
|
.mc-daily-row { font-size: 0.8rem; color: #374151; margin: 2px 0; }
|
|
.mc-daily-row span { color: #6b7280; }
|
|
.mc-daily-diff {
|
|
font-size: 0.75rem; font-weight: 600; color: #f59e0b;
|
|
margin-top: 4px;
|
|
display: flex; align-items: center; gap: 4px;
|
|
}
|
|
|
|
/* Bottom Actions */
|
|
.mc-bottom-actions {
|
|
position: fixed;
|
|
bottom: 0; left: 0; right: 0;
|
|
display: flex; gap: 8px;
|
|
padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
|
|
background: white;
|
|
border-top: 1px solid #e5e7eb;
|
|
z-index: 30;
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
}
|
|
.mc-confirm-btn {
|
|
flex: 1; padding: 12px;
|
|
background: #10b981; color: white;
|
|
font-size: 0.85rem; font-weight: 700;
|
|
border: none; border-radius: 10px; cursor: pointer;
|
|
}
|
|
.mc-confirm-btn:hover { background: #059669; }
|
|
.mc-reject-btn {
|
|
flex: 1; padding: 12px;
|
|
background: white; color: #ef4444;
|
|
font-size: 0.85rem; font-weight: 700;
|
|
border: 2px solid #fecaca; border-radius: 10px; cursor: pointer;
|
|
}
|
|
.mc-reject-btn:hover { background: #fef2f2; }
|
|
|
|
.mc-confirmed-status {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 16px;
|
|
text-align: center;
|
|
justify-content: center;
|
|
font-size: 0.85rem; color: #059669; font-weight: 600;
|
|
margin-bottom: 80px;
|
|
}
|
|
|
|
/* Admin View */
|
|
.mc-admin-summary {
|
|
background: white; border-radius: 10px;
|
|
padding: 16px; margin-bottom: 12px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
|
|
}
|
|
.mc-progress-bar {
|
|
height: 8px; background: #e5e7eb; border-radius: 4px;
|
|
overflow: hidden; margin-bottom: 8px;
|
|
}
|
|
.mc-progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #f59e0b, #10b981);
|
|
border-radius: 4px;
|
|
transition: width 0.3s;
|
|
}
|
|
.mc-progress-text { font-size: 0.8rem; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
|
|
.mc-status-counts { font-size: 0.75rem; color: #6b7280; display: flex; gap: 12px; }
|
|
|
|
/* Filter Tabs */
|
|
.mc-filter-tabs {
|
|
display: flex; gap: 4px;
|
|
padding: 4px; background: #f3f4f6;
|
|
border-radius: 10px; margin-bottom: 12px;
|
|
}
|
|
.mc-tab {
|
|
flex: 1; padding: 8px 4px;
|
|
font-size: 0.75rem; font-weight: 600;
|
|
color: #6b7280; background: transparent;
|
|
border: none; border-radius: 8px; cursor: pointer;
|
|
text-align: center;
|
|
}
|
|
.mc-tab.active { background: white; color: #2563eb; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
|
|
|
|
/* Worker List (admin) */
|
|
.mc-worker-list { padding-bottom: 100px; }
|
|
.mc-worker-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
margin-bottom: 6px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
.mc-worker-card:active { background: #f9fafb; }
|
|
.mc-worker-name { font-size: 0.875rem; font-weight: 600; color: #1f2937; }
|
|
.mc-worker-dept { font-size: 0.7rem; color: #9ca3af; }
|
|
.mc-worker-stats { font-size: 0.75rem; color: #6b7280; margin: 4px 0; }
|
|
.mc-worker-status {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
}
|
|
.mc-worker-status-badge {
|
|
font-size: 0.65rem; font-weight: 600;
|
|
padding: 2px 8px; border-radius: 10px;
|
|
}
|
|
.mc-worker-status-badge.confirmed { background: #166534; color: white; }
|
|
.mc-worker-status-badge.admin_checked { background: #dcfce7; color: #166534; }
|
|
.mc-worker-status-badge.pending { background: #fef3c7; color: #92400e; }
|
|
.mc-worker-status-badge.review_sent { background: #dbeafe; color: #1e40af; }
|
|
.mc-worker-status-badge.change_request { background: #fff7ed; color: #c2410c; }
|
|
.mc-worker-status-badge.rejected { background: #fef2f2; color: #991b1b; }
|
|
.mc-worker-reject-reason {
|
|
font-size: 0.7rem; color: #991b1b;
|
|
margin-top: 4px; padding-left: 8px;
|
|
border-left: 2px solid #fecaca;
|
|
}
|
|
.mc-worker-mismatch {
|
|
font-size: 0.65rem; font-weight: 600;
|
|
color: #f59e0b; background: #fffbeb;
|
|
padding: 1px 6px; border-radius: 4px;
|
|
}
|
|
|
|
/* Bottom Export */
|
|
.mc-bottom-export {
|
|
position: fixed;
|
|
bottom: 0; left: 0; right: 0;
|
|
padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
|
|
background: white;
|
|
border-top: 1px solid #e5e7eb;
|
|
z-index: 30;
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
.mc-export-btn {
|
|
width: 100%; padding: 12px;
|
|
background: #059669; color: white;
|
|
font-size: 0.85rem; font-weight: 700;
|
|
border: none; border-radius: 10px; cursor: pointer;
|
|
}
|
|
.mc-export-btn:disabled { background: #d1d5db; cursor: not-allowed; }
|
|
.mc-export-note { font-size: 0.7rem; color: #9ca3af; margin-top: 4px; }
|
|
|
|
/* Modal */
|
|
.mc-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;
|
|
}
|
|
.mc-modal {
|
|
background: white; border-radius: 12px;
|
|
width: 100%; max-width: 400px; overflow: hidden;
|
|
}
|
|
.mc-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;
|
|
}
|
|
.mc-modal-header button { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 1.1rem; }
|
|
.mc-modal-body { padding: 16px; }
|
|
.mc-modal-desc { font-size: 0.85rem; color: #374151; margin-bottom: 8px; }
|
|
.mc-textarea {
|
|
width: 100%; border: 1px solid #e5e7eb; border-radius: 8px;
|
|
padding: 10px; font-size: 0.85rem; resize: none;
|
|
}
|
|
.mc-modal-note { font-size: 0.75rem; color: #6b7280; margin-top: 8px; }
|
|
.mc-modal-footer {
|
|
display: flex; gap: 8px; padding: 12px 16px;
|
|
border-top: 1px solid #f3f4f6;
|
|
}
|
|
.mc-modal-cancel {
|
|
flex: 1; padding: 10px; border: 1px solid #e5e7eb;
|
|
border-radius: 8px; background: white; cursor: pointer; font-size: 0.8rem;
|
|
}
|
|
.mc-modal-submit {
|
|
flex: 1; padding: 10px; background: #ef4444; color: white;
|
|
border: none; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
|
|
}
|
|
|
|
/* Empty / No Permission */
|
|
.mc-empty {
|
|
display: flex; flex-direction: column; align-items: center;
|
|
gap: 8px; padding: 48px 16px; color: #9ca3af; font-size: 0.875rem;
|
|
}
|
|
|
|
/* Skeleton (reuse) */
|
|
.ds-skeleton {
|
|
height: 56px;
|
|
background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
|
|
background-size: 200% 100%;
|
|
animation: ds-shimmer 1.5s infinite;
|
|
border-radius: 10px;
|
|
margin-bottom: 6px;
|
|
}
|
|
@keyframes ds-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
|
|
.ds-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; color: #9ca3af; font-size: 0.875rem; }
|
|
.ds-link { color: #2563eb; font-size: 0.8rem; text-decoration: underline; }
|
|
|
|
/* Change Request Panel (detail mode) */
|
|
.mc-change-panel {
|
|
background: #fff7ed;
|
|
border: 1px solid #fed7aa;
|
|
border-radius: 10px;
|
|
padding: 14px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.mc-change-header {
|
|
font-size: 0.85rem; font-weight: 700; color: #c2410c;
|
|
margin-bottom: 8px;
|
|
display: flex; align-items: center; gap: 6px;
|
|
}
|
|
.mc-change-list { margin-bottom: 10px; }
|
|
.mc-change-item {
|
|
font-size: 0.8rem; color: #374151;
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid #fde6d0;
|
|
}
|
|
.mc-change-item:last-child { border-bottom: none; }
|
|
.mc-change-from { color: #9ca3af; text-decoration: line-through; }
|
|
.mc-change-to { color: #c2410c; font-weight: 600; }
|
|
.mc-change-desc {
|
|
font-size: 0.8rem; color: #374151;
|
|
margin-bottom: 10px;
|
|
white-space: pre-wrap;
|
|
}
|
|
.mc-change-actions {
|
|
display: flex; gap: 8px;
|
|
}
|
|
.mc-change-approve {
|
|
flex: 1; padding: 10px;
|
|
background: #2563eb; color: white;
|
|
font-size: 0.8rem; font-weight: 600;
|
|
border: none; border-radius: 8px; cursor: pointer;
|
|
}
|
|
.mc-change-approve:hover { background: #1d4ed8; }
|
|
.mc-change-reject {
|
|
flex: 1; padding: 10px;
|
|
background: white; color: #ef4444;
|
|
font-size: 0.8rem; font-weight: 600;
|
|
border: 2px solid #fecaca; border-radius: 8px; cursor: pointer;
|
|
}
|
|
.mc-change-reject:hover { background: #fef2f2; }
|
|
|
|
/* Worker card change summary */
|
|
.mc-worker-change-summary {
|
|
font-size: 0.7rem; color: #c2410c;
|
|
margin-top: 4px; padding-left: 8px;
|
|
border-left: 2px solid #fed7aa;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (max-width: 480px) { body { max-width: 480px; margin: 0 auto; } }
|
|
|
|
/* Inline Edit */
|
|
.mc-edit-btn { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 12px; padding: 2px 6px; margin-left: auto; }
|
|
.mc-edit-btn:hover { color: #2563eb; }
|
|
.mc-attend-row { display: flex; align-items: center; }
|
|
.mc-edit-form { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
|
|
.mc-edit-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
|
|
.mc-edit-row label { width: 36px; font-weight: 600; color: #6b7280; font-size: 12px; }
|
|
.mc-edit-input { width: 60px; padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; text-align: center; }
|
|
.mc-edit-select { padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; flex: 1; }
|
|
.mc-edit-actions { display: flex; gap: 6px; margin-top: 2px; }
|
|
.mc-edit-save { padding: 4px 12px; background: #10b981; color: white; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; }
|
|
.mc-edit-save:hover { background: #059669; }
|
|
.mc-edit-cancel { padding: 4px 12px; background: #e5e7eb; color: #374151; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; }
|
|
.mc-edit-cancel:hover { background: #d1d5db; }
|