- 모델: getDailyStatus에 vacation_type 쿼리 추가 - 프론트: 연차(ANNUAL_FULL) 카드 비활성화 + 선택/일괄설정/저장에서 제외 - 반차/반반차/조퇴: 뱃지 표시 + 근무시간 자동 조정 (4h/6h/2h) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
244 lines
7.1 KiB
CSS
244 lines
7.1 KiB
CSS
/* proxy-input.css — 대리입력 페이지 */
|
|
|
|
/* Header */
|
|
.pi-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;
|
|
}
|
|
.pi-header-row { display: flex; align-items: center; gap: 12px; }
|
|
.pi-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;
|
|
}
|
|
.pi-header h1 { font-size: 1.05rem; font-weight: 700; flex: 1; }
|
|
.pi-header-date { font-size: 0.75rem; opacity: 0.8; }
|
|
|
|
/* Date Bar */
|
|
.pi-date-bar {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 10px 12px;
|
|
background: white;
|
|
border-radius: 10px;
|
|
margin: 12px 0 8px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
|
|
}
|
|
.pi-date-info { display: flex; align-items: center; gap: 8px; }
|
|
.pi-date-input {
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
padding: 4px 8px;
|
|
font-size: 0.8rem;
|
|
color: #374151;
|
|
}
|
|
.pi-refresh-btn {
|
|
width: 28px; height: 28px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: #f3f4f6; border: none; border-radius: 6px;
|
|
color: #6b7280; cursor: pointer; font-size: 0.75rem;
|
|
}
|
|
.pi-status-badge {
|
|
display: flex; align-items: center; gap: 4px;
|
|
font-size: 0.8rem; color: #374151;
|
|
}
|
|
|
|
/* Bulk Actions Bar */
|
|
.pi-bulk {
|
|
background: #eff6ff;
|
|
border: 1px solid #bfdbfe;
|
|
border-radius: 10px;
|
|
padding: 8px 12px;
|
|
margin-bottom: 8px;
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
flex-wrap: wrap; gap: 6px;
|
|
}
|
|
.pi-bulk-label { font-size: 0.75rem; font-weight: 600; color: #1d4ed8; }
|
|
.pi-bulk-actions { display: flex; gap: 4px; }
|
|
.pi-bulk-btn {
|
|
padding: 4px 10px;
|
|
font-size: 0.7rem; font-weight: 600;
|
|
background: white; color: #2563eb;
|
|
border: 1px solid #bfdbfe;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
.pi-bulk-btn:active { background: #dbeafe; }
|
|
|
|
/* Worker Cards */
|
|
.pi-cards { padding-bottom: 100px; }
|
|
|
|
.pi-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
margin-bottom: 8px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
|
|
overflow: hidden;
|
|
border: 2px solid transparent;
|
|
transition: border-color 0.15s;
|
|
}
|
|
.pi-card.selected { border-color: #2563eb; }
|
|
|
|
.pi-card-header {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 12px;
|
|
cursor: pointer;
|
|
}
|
|
.pi-card-check {
|
|
width: 22px; height: 22px;
|
|
border: 2px solid #d1d5db;
|
|
border-radius: 6px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: all 0.15s;
|
|
}
|
|
.pi-card.selected .pi-card-check {
|
|
background: #2563eb; border-color: #2563eb; color: white;
|
|
}
|
|
.pi-card-name { font-size: 0.875rem; font-weight: 600; color: #1f2937; }
|
|
.pi-card-meta { font-size: 0.7rem; color: #9ca3af; }
|
|
.pi-card-status {
|
|
margin-left: auto;
|
|
font-size: 0.65rem;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
.pi-card-status.both_missing { background: #fef2f2; color: #dc2626; }
|
|
.pi-card-status.tbm_only { background: #fefce8; color: #ca8a04; }
|
|
.pi-card-status.report_only { background: #fefce8; color: #ca8a04; }
|
|
|
|
/* Expanded Form */
|
|
.pi-card-form {
|
|
display: none;
|
|
padding: 0 12px 12px;
|
|
border-top: 1px solid #f3f4f6;
|
|
}
|
|
.pi-card.selected .pi-card-form { display: block; }
|
|
|
|
.pi-field { margin-top: 8px; }
|
|
.pi-field label {
|
|
display: block;
|
|
font-size: 0.7rem; font-weight: 600;
|
|
color: #6b7280;
|
|
margin-bottom: 3px;
|
|
}
|
|
.pi-field select, .pi-field input, .pi-field textarea {
|
|
width: 100%;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
padding: 6px 8px;
|
|
font-size: 0.8rem;
|
|
color: #374151;
|
|
background: white;
|
|
}
|
|
.pi-field textarea { resize: none; height: 48px; }
|
|
.pi-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
.pi-field-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
|
|
|
|
/* Bottom Save */
|
|
.pi-bottom {
|
|
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;
|
|
}
|
|
.pi-save-btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: #2563eb;
|
|
color: white;
|
|
font-size: 0.875rem;
|
|
font-weight: 700;
|
|
border: none;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
.pi-save-btn:hover { background: #1d4ed8; }
|
|
.pi-save-btn:disabled { background: #d1d5db; cursor: not-allowed; }
|
|
.pi-save-btn .fa-spinner { display: none; }
|
|
.pi-save-btn.loading .fa-spinner { display: inline; }
|
|
.pi-save-btn.loading .fa-save { display: none; }
|
|
|
|
/* Empty */
|
|
.pi-empty {
|
|
display: flex; flex-direction: column; align-items: center;
|
|
gap: 8px; padding: 48px 16px; color: #9ca3af; font-size: 0.875rem;
|
|
}
|
|
|
|
/* Modal */
|
|
.pi-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;
|
|
}
|
|
.pi-modal {
|
|
background: white;
|
|
border-radius: 12px;
|
|
width: 100%; max-width: 360px;
|
|
overflow: hidden;
|
|
}
|
|
.pi-modal-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
font-weight: 700; font-size: 0.9rem;
|
|
}
|
|
.pi-modal-header button { background: none; border: none; color: #9ca3af; cursor: pointer; }
|
|
.pi-modal-body { padding: 16px; }
|
|
.pi-modal-body select, .pi-modal-body input {
|
|
width: 100%; border: 1px solid #e5e7eb; border-radius: 8px;
|
|
padding: 8px 10px; font-size: 0.85rem;
|
|
}
|
|
.pi-modal-footer {
|
|
display: flex; gap: 8px; padding: 12px 16px;
|
|
border-top: 1px solid #f3f4f6;
|
|
}
|
|
.pi-modal-cancel {
|
|
flex: 1; padding: 8px; border: 1px solid #e5e7eb;
|
|
border-radius: 8px; background: white; font-size: 0.8rem; cursor: pointer;
|
|
}
|
|
.pi-modal-confirm {
|
|
flex: 1; padding: 8px; background: #2563eb; color: white;
|
|
border: none; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
|
|
}
|
|
|
|
/* 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; } }
|
|
|
|
/* 연차 비활성화 */
|
|
.pi-card.vacation-disabled { opacity: 0.5; }
|
|
.pi-card.vacation-disabled .pi-card-form { pointer-events: none; }
|
|
.pi-card.vacation-disabled .pi-card-header { cursor: default; }
|
|
.pi-vac-badge {
|
|
font-size: 0.65rem; font-weight: 600;
|
|
padding: 2px 6px; border-radius: 4px;
|
|
background: #dcfce7; color: #166534;
|
|
margin-left: 4px;
|
|
}
|
|
.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; }
|
|
|
|
@media (max-width: 480px) { body { max-width: 480px; margin: 0 auto; } }
|