Files
tk-factory-services/system1-factory/web/css/daily-work-report.css
Hyungi Ahn 4388628788 refactor: TBM/작업보고 코드 통합 및 API 쿼리 버그 수정
- 공통 유틸리티 추출 (common/utils.js, common/base-state.js)
- TBM 모바일 인라인 JS/CSS 외부 파일로 분리 (tbm-mobile.js, tbm-mobile.css)
- 미사용 코드 삭제 (index.js, work-report-*.js 등 5개 파일)
- TBM/작업보고 state.js, utils.js를 공통 모듈 기반으로 전환
- 작업보고서 SSO 인증 호환 수정 (token/user 함수)
- tbmModel.js: incomplete-reports 쿼리에서 users→sso_users 조인 수정, leader_name 조인 추가
- docker-compose.yml: system1-web 볼륨 마운트 추가
- 모바일 인계(handover) 기능 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 07:51:24 +09:00

2390 lines
44 KiB
CSS

/* daily-work-report.css - 일일 작업보고서 스타일 */
/* 탭 메뉴 스타일 */
.tab-menu {
display: flex;
gap: 0.5rem;
border-bottom: 2px solid var(--border-color, #e5e7eb);
margin-bottom: 1.5rem;
}
/* 날짜 그룹 스타일 (접기/펼치기) */
.date-group {
margin-bottom: 1.5rem;
border: 1px solid #e5e7eb;
border-radius: 12px;
overflow: hidden;
background: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.date-group-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.25rem;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-bottom: 1px solid #e5e7eb;
cursor: pointer;
transition: background-color 0.2s;
user-select: none;
}
.date-group-header:hover {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.date-group-header.has-issues {
background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
border-bottom-color: #fde047;
}
.date-group-header.has-issues:hover {
background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
}
.date-header-left {
display: flex;
align-items: center;
gap: 0.75rem;
}
.date-toggle-icon {
font-size: 0.75rem;
color: #64748b;
width: 1rem;
text-align: center;
}
.date-title {
font-weight: 600;
font-size: 1.1rem;
color: #1e293b;
}
.today-badge {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
padding: 0.2rem 0.6rem;
border-radius: 10px;
font-size: 0.7rem;
font-weight: 600;
}
.date-header-center {
display: flex;
gap: 1rem;
}
.date-stat {
font-size: 0.85rem;
color: #64748b;
}
.date-header-right {
display: flex;
align-items: center;
gap: 0.5rem;
}
.date-issue-summary {
display: flex;
gap: 0.5rem;
}
.issue-badge {
padding: 0.25rem 0.6rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
}
.issue-badge.nonconformity {
background: #fef2f2;
color: #dc2626;
border: 1px solid #fecaca;
}
.issue-badge.safety {
background: #fefce8;
color: #ca8a04;
border: 1px solid #fde047;
}
.no-issues {
font-size: 0.8rem;
color: #94a3b8;
}
.date-group-content {
padding: 1rem;
background: #fafafa;
}
.date-group.collapsed .date-group-content {
display: none;
}
/* 부적합 버튼 강조 (관련 이슈 있을 때) */
.btn-defect-toggle.has-related-issue {
background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
border-color: #f87171;
color: #dc2626;
animation: pulse-attention 2s infinite;
}
.btn-defect-toggle.has-related-issue:hover {
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}
@keyframes pulse-attention {
0%, 100% {
box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4);
}
50% {
box-shadow: 0 0 0 4px rgba(248, 113, 113, 0);
}
}
/* TBM 세션 그룹 스타일 */
.tbm-session-group {
margin-bottom: 2rem;
}
.tbm-session-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 0.75rem 1.5rem;
border-radius: 8px 8px 0 0;
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.875rem;
}
.tbm-session-badge {
background-color: rgba(255, 255, 255, 0.3);
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-weight: 600;
font-size: 0.75rem;
}
.tbm-session-date {
font-weight: 600;
font-size: 1rem;
}
.tbm-session-creator {
font-size: 0.8rem;
opacity: 0.9;
}
.tbm-session-count {
background-color: rgba(255, 255, 255, 0.2);
padding: 0.25rem 0.625rem;
border-radius: 12px;
font-weight: 600;
margin-left: auto;
}
.tbm-session-info {
opacity: 0.95;
font-size: 0.875rem;
}
/* 당일 신고 리마인더 스타일 */
.issue-reminder-section {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
border: 1px solid #f59e0b;
border-top: none;
padding: 1rem 1.5rem;
}
.issue-reminder-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.issue-reminder-icon {
font-size: 1.25rem;
}
.issue-reminder-title {
font-weight: 600;
color: #92400e;
font-size: 0.9375rem;
}
.issue-reminder-count {
background: #f59e0b;
color: white;
padding: 0.125rem 0.5rem;
border-radius: 10px;
font-size: 0.75rem;
font-weight: 600;
}
.issue-reminder-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.issue-reminder-item {
display: flex;
align-items: center;
gap: 0.75rem;
background: white;
padding: 0.5rem 0.75rem;
border-radius: 6px;
font-size: 0.8125rem;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.issue-reminder-item.nonconformity {
border-left: 3px solid #f59e0b;
}
.issue-reminder-item.safety {
border-left: 3px solid #ef4444;
}
.issue-type-badge {
padding: 0.125rem 0.5rem;
border-radius: 4px;
font-size: 0.6875rem;
font-weight: 600;
flex-shrink: 0;
}
.issue-reminder-item.nonconformity .issue-type-badge {
background: #fef3c7;
color: #92400e;
}
.issue-reminder-item.safety .issue-type-badge {
background: #fee2e2;
color: #b91c1c;
}
.issue-category {
color: #6b7280;
font-size: 0.75rem;
flex-shrink: 0;
}
.issue-item {
flex: 1;
color: #374151;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.issue-location {
color: #6b7280;
font-size: 0.75rem;
flex-shrink: 0;
}
.issue-status {
padding: 0.125rem 0.375rem;
border-radius: 4px;
font-size: 0.6875rem;
font-weight: 500;
flex-shrink: 0;
}
.issue-status.status-reported {
background: #dbeafe;
color: #1d4ed8;
}
.issue-status.status-received {
background: #fed7aa;
color: #c2410c;
}
.issue-status.status-in_progress {
background: #e9d5ff;
color: #7c3aed;
}
.issue-status.status-completed {
background: #d1fae5;
color: #047857;
}
.issue-status.status-closed {
background: #f3f4f6;
color: #4b5563;
}
.issue-reminder-more {
text-align: center;
color: #92400e;
font-size: 0.75rem;
font-style: italic;
}
.issue-reminder-hint {
background: rgba(255, 255, 255, 0.7);
padding: 0.5rem 0.75rem;
border-radius: 6px;
font-size: 0.8125rem;
color: #78350f;
}
/* TBM 작업 테이블 스타일 */
.tbm-table-container {
overflow-x: auto;
border: 1px solid var(--border-color, #e5e7eb);
border-radius: 0 0 8px 8px;
background: white;
}
.tbm-work-table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
.tbm-work-table thead {
background-color: #f9fafb;
border-bottom: 2px solid var(--border-color, #e5e7eb);
}
.tbm-work-table th {
padding: 0.75rem 0.5rem;
text-align: left;
font-weight: 600;
color: var(--text-secondary, #6b7280);
border-bottom: 2px solid var(--border-color, #e5e7eb);
white-space: nowrap;
font-size: 0.8rem;
}
.tbm-work-table td {
padding: 0.75rem 0.5rem;
border-bottom: 1px solid var(--border-light, #f3f4f6);
vertical-align: middle;
}
.tbm-work-table tbody tr:hover {
background-color: #f9fafb;
}
.tbm-work-table tbody tr:last-child td {
border-bottom: none;
}
.worker-cell {
min-width: 100px;
}
.worker-cell strong {
display: block;
color: var(--text-primary, #111827);
margin-bottom: 0.25rem;
}
.worker-job-type {
font-size: 0.75rem;
color: var(--text-secondary, #6b7280);
background-color: #f3f4f6;
padding: 0.125rem 0.5rem;
border-radius: 4px;
display: inline-block;
}
.workplace-cell div {
font-size: 0.8rem;
}
.workplace-cell div:first-child {
color: var(--text-secondary, #6b7280);
font-size: 0.75rem;
}
.form-input-compact {
width: 70px;
padding: 0.375rem 0.5rem;
border: 1px solid var(--border-color, #d1d5db);
border-radius: 4px;
font-size: 0.875rem;
text-align: center;
}
.form-input-compact:focus {
outline: none;
border-color: var(--primary, #3b82f6);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.form-input-compact[type="number"] {
-moz-appearance: textfield;
}
.form-input-compact[type="number"]::-webkit-outer-spin-button,
.form-input-compact[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.btn-submit-compact {
padding: 0.5rem 1rem;
background-color: var(--primary, #3b82f6);
color: white;
border: none;
border-radius: 4px;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
white-space: nowrap;
}
.btn-submit-compact:hover {
background-color: var(--primary-dark, #2563eb);
}
.btn-submit-compact:active {
transform: scale(0.98);
}
.btn-add-work {
padding: 0.625rem 1.25rem;
background-color: #10b981;
color: white;
border: none;
border-radius: 6px;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-add-work:hover {
background-color: #059669;
}
.btn-delete-compact {
padding: 0.375rem 0.625rem;
background-color: #ef4444;
color: white;
border: none;
border-radius: 4px;
font-size: 0.875rem;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-delete-compact:hover {
background-color: #dc2626;
}
.btn-map-select {
padding: 0.5rem 0.875rem;
background-color: #8b5cf6;
color: white;
border: none;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
white-space: nowrap;
}
.btn-map-select:hover {
background-color: #7c3aed;
}
/* 작업장소 선택 박스 hover 효과 */
.workplace-select-box {
transition: all 0.2s ease;
}
.workplace-select-box:hover {
background-color: #f3f4f6 !important;
border-color: #8b5cf6 !important;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}
.workplace-category-btn,
.workplace-btn {
padding: 0.75rem 1rem;
background-color: #f3f4f6;
border: 2px solid #e5e7eb;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
font-size: 0.875rem;
font-weight: 500;
text-align: center;
}
.workplace-category-btn:hover,
.workplace-btn:hover {
background-color: #e0e7ff;
border-color: #818cf8;
color: #4338ca;
}
.workplace-category-btn:active,
.workplace-btn:active {
transform: scale(0.98);
}
/* 작업장소 선택 모달 */
#workplaceModal.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
}
#workplaceModal .modal-content {
background-color: white;
margin: auto;
padding: 0;
border-radius: 8px;
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow: hidden;
display: flex;
flex-direction: column;
}
#workplaceModal .modal-header {
padding: 1.5rem;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
}
#workplaceModal .modal-header h3 {
margin: 0;
font-size: 1.25rem;
color: #111827;
}
#workplaceModal .modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #6b7280;
padding: 0;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
}
#workplaceModal .modal-close:hover {
background-color: #f3f4f6;
color: #111827;
}
#workplaceModal .modal-body {
padding: 1.5rem;
overflow-y: auto;
}
.tab-btn {
padding: 0.75rem 1.5rem;
background: none;
border: none;
border-bottom: 3px solid transparent;
cursor: pointer;
font-weight: 500;
color: var(--text-secondary, #6b7280);
transition: all 0.2s;
}
.tab-btn:hover {
color: var(--primary, #3b82f6);
}
.tab-btn.active {
color: var(--primary, #3b82f6);
border-bottom-color: var(--primary, #3b82f6);
}
/* TBM 작업 카드 스타일 */
.tbm-work-card {
background: white;
border: 1px solid var(--border-color, #e5e7eb);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.tbm-work-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 2px solid var(--border-color, #e5e7eb);
}
.tbm-work-header h4 {
margin: 0;
font-size: 1.125rem;
color: var(--text-primary, #111827);
}
.tbm-work-date {
font-size: 0.875rem;
color: var(--text-secondary, #6b7280);
background: var(--bg-secondary, #f3f4f6);
padding: 0.25rem 0.75rem;
border-radius: 4px;
}
.tbm-work-info {
margin-bottom: 1.5rem;
}
.info-row {
display: flex;
padding: 0.5rem 0;
border-bottom: 1px solid var(--border-light, #f3f4f6);
}
.info-row:last-child {
border-bottom: none;
}
.info-row .label {
font-weight: 600;
color: var(--text-secondary, #6b7280);
min-width: 100px;
font-size: 0.875rem;
}
.info-row .value {
color: var(--text-primary, #111827);
flex: 1;
}
.tbm-work-input {
background: var(--bg-secondary, #f9fafb);
padding: 1.5rem;
border-radius: 6px;
margin-bottom: 1rem;
}
.tbm-work-input .form-group {
margin-bottom: 1rem;
}
.tbm-work-input .form-group:last-child {
margin-bottom: 0;
}
.tbm-work-input label {
display: block;
font-weight: 500;
font-size: 0.875rem;
color: var(--text-secondary, #6b7280);
margin-bottom: 0.5rem;
}
.tbm-work-input .form-input {
width: 100%;
padding: 0.625rem;
border: 1px solid var(--border-color, #d1d5db);
border-radius: 4px;
font-size: 1rem;
}
.tbm-work-input .form-input:focus {
outline: none;
border-color: var(--primary, #3b82f6);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.tbm-work-input .form-input[readonly] {
background-color: #f3f4f6;
cursor: not-allowed;
}
/* 버튼 스타일 */
.btn-block {
width: 100%;
padding: 0.875rem;
font-size: 1rem;
font-weight: 500;
}
.btn-primary {
background-color: var(--primary, #3b82f6);
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-primary:hover {
background-color: var(--primary-dark, #2563eb);
}
.btn-primary:disabled {
background-color: #9ca3af;
cursor: not-allowed;
}
/* 메시지 스타일 */
.message {
padding: 1rem;
border-radius: 6px;
margin-bottom: 1rem;
font-size: 0.875rem;
}
.message.error {
background-color: #fee2e2;
color: #991b1b;
border-left: 4px solid #dc2626;
}
.message.success {
background-color: #dcfce7;
color: #166534;
border-left: 4px solid #16a34a;
}
.message.info {
background-color: #dbeafe;
color: #1e40af;
border-left: 4px solid #3b82f6;
}
/* 완료된 보고서 카드 스타일 */
.completed-report-card {
background: white;
border: 1px solid var(--border-color, #e5e7eb);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.completed-report-card .report-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 2px solid var(--border-color, #e5e7eb);
}
.completed-report-card .report-header h4 {
margin: 0 0.5rem 0 0;
font-size: 1.125rem;
color: var(--text-primary, #111827);
display: inline-block;
}
.completed-report-card .report-date {
font-size: 0.875rem;
color: var(--text-secondary, #6b7280);
background: var(--bg-secondary, #f3f4f6);
padding: 0.25rem 0.75rem;
border-radius: 4px;
}
.completed-report-card .report-info {
margin-top: 1rem;
}
.tbm-badge {
display: inline-block;
background-color: #dbeafe;
color: #1e40af;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
margin-left: 0.5rem;
}
.manual-badge {
display: inline-block;
background-color: #f3f4f6;
color: #6b7280;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
margin-left: 0.5rem;
}
.form-group {
margin-bottom: 1rem;
}
.form-label {
display: block;
font-weight: 500;
font-size: 0.875rem;
color: var(--text-secondary, #6b7280);
margin-bottom: 0.5rem;
}
.form-input {
width: 100%;
padding: 0.625rem;
border: 1px solid var(--border-color, #d1d5db);
border-radius: 4px;
font-size: 1rem;
}
.form-input:focus {
outline: none;
border-color: var(--primary, #3b82f6);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* 시간 입력 트리거 (클릭 가능한 영역) */
.time-input-trigger {
padding: 0.5rem 0.75rem;
background: #f9fafb;
border: 2px solid #e5e7eb;
border-radius: 6px;
cursor: pointer;
text-align: center;
font-weight: 600;
color: #374151;
min-height: 44px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
user-select: none;
}
.time-input-trigger:hover {
background: #f3f4f6;
border-color: #3b82f6;
color: #3b82f6;
}
.time-input-trigger.has-value {
background: #eff6ff;
border-color: #3b82f6;
color: #1e40af;
}
.time-input-trigger.placeholder {
color: #9ca3af;
font-style: italic;
font-weight: 400;
}
/* 시간 선택 팝오버 */
.time-picker-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.time-picker-popup {
background: white;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
padding: 1.5rem;
max-width: 400px;
width: 100%;
animation: popupSlideIn 0.3s ease-out;
}
@keyframes popupSlideIn {
from {
opacity: 0;
transform: translateY(20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.time-picker-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.25rem;
}
.time-picker-header h3 {
margin: 0;
font-size: 1.125rem;
font-weight: 700;
color: #111827;
}
.time-picker-close {
background: none;
border: none;
font-size: 1.75rem;
color: #6b7280;
cursor: pointer;
padding: 0;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.time-picker-close:hover {
background: #f3f4f6;
color: #111827;
}
/* 퀵 선택 버튼 그리드 */
.quick-time-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 0.5rem;
margin-bottom: 1.25rem;
}
.time-btn {
padding: 1rem 0.5rem;
background: #3b82f6;
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
font-weight: 700;
font-size: 0.875rem;
min-height: 64px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}
.time-btn:hover {
background: #2563eb;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}
.time-btn:active {
transform: translateY(0) scale(0.98);
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}
.time-btn .time-value {
font-size: 0.95rem;
}
/* 미세 조정 영역 */
.time-adjust-area {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 1rem;
margin-bottom: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.current-time-label {
font-size: 0.875rem;
color: #6b7280;
font-weight: 500;
}
.current-time-value {
font-size: 1.5rem;
color: #111827;
font-weight: 700;
display: block;
margin-bottom: 0.5rem;
}
.adjust-buttons {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}
.adjust-btn {
padding: 0.875rem 1rem;
background: #6b7280;
color: white;
border: none;
border-radius: 8px;
font-weight: 700;
font-size: 0.875rem;
cursor: pointer;
min-height: 48px;
transition: all 0.2s ease;
}
.adjust-btn:hover {
background: #4b5563;
transform: translateY(-1px);
}
.adjust-btn:active {
transform: translateY(0) scale(0.98);
}
/* 확인 버튼 */
.confirm-btn {
width: 100%;
padding: 1rem;
background: #10b981;
color: white;
border: none;
border-radius: 10px;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
min-height: 52px;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}
.confirm-btn:hover {
background: #059669;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}
.confirm-btn:active {
transform: translateY(0) scale(0.98);
}
/* ================================================
저장 결과 모달 스타일
================================================ */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 1rem;
}
.modal-container.result-modal {
background: white;
border-radius: 12px;
max-width: 500px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
padding: 1.5rem;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
}
.modal-close-btn {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #6b7280;
padding: 0;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background 0.2s;
}
.modal-close-btn:hover {
background: #f3f4f6;
}
.modal-body {
padding: 2rem 1.5rem;
}
.result-icon {
text-align: center;
font-size: 3rem;
margin-bottom: 1rem;
}
.result-title {
text-align: center;
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.result-title.success {
color: #10b981;
}
.result-title.error {
color: #ef4444;
}
.result-title.warning {
color: #f59e0b;
}
.result-message {
text-align: center;
color: #6b7280;
margin-bottom: 1rem;
}
.result-details {
margin-top: 1.5rem;
padding: 1rem;
background: #f9fafb;
border-radius: 8px;
}
.result-details h4 {
margin: 0 0 0.5rem 0;
font-size: 0.875rem;
font-weight: 600;
color: #374151;
}
.result-details ul {
margin: 0;
padding-left: 1.5rem;
}
.result-details li {
margin-bottom: 0.25rem;
color: #6b7280;
}
.result-details p {
margin: 0;
color: #6b7280;
}
.modal-footer {
padding: 1rem 1.5rem;
border-top: 1px solid #e5e7eb;
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
/* =================================================================
일괄제출 버튼 스타일
================================================================= */
.batch-submit-container {
padding: 1rem;
background: #f9fafb;
border-top: 2px solid #e5e7eb;
display: flex;
justify-content: center;
align-items: center;
}
.btn-batch-submit {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
border: none;
padding: 0.875rem 2rem;
font-size: 1rem;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
min-width: 280px;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.btn-batch-submit:hover {
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
transform: translateY(-2px);
}
.btn-batch-submit:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}
.btn-batch-submit:disabled {
background: #9ca3af;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
/* 수동입력 섹션 강조 */
.manual-input-section {
border: 2px solid #f59e0b;
border-radius: 8px;
margin-bottom: 2rem;
box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}
.manual-input-section .tbm-session-header {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
/* TBM 세션 그룹 간격 조정 */
.tbm-session-group:not(.manual-input-section) {
margin-bottom: 1.5rem;
}
/* 부적합 원인 관리 버튼 */
.btn-defect-manage {
background: #f3f4f6;
border: 1px solid #d1d5db;
border-radius: 6px;
padding: 0.5rem 0.75rem;
cursor: pointer;
font-size: 0.875rem;
min-width: 80px;
text-align: center;
transition: all 0.2s ease;
}
.btn-defect-manage:hover {
background: #e5e7eb;
border-color: #9ca3af;
}
.btn-defect-manage span {
color: #9ca3af;
}
.btn-defect-manage span[style*="color: #dc2626"] {
font-weight: 500;
}
/* 부적합 토글 버튼 (인라인 방식) */
.btn-defect-toggle {
background: #f9fafb;
border: 2px solid #e5e7eb;
border-radius: 6px;
padding: 0.5rem 0.75rem;
cursor: pointer;
font-size: 0.875rem;
min-width: 70px;
text-align: center;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
min-height: 44px;
}
.btn-defect-toggle:hover {
background: #f3f4f6;
border-color: #d97706;
}
.btn-defect-toggle.has-defect {
background: #fef3c7;
border-color: #f59e0b;
}
.btn-defect-toggle span {
color: #6b7280;
font-weight: 500;
}
.btn-defect-toggle.has-defect span {
color: #dc2626;
font-weight: 600;
}
/* 부적합 인라인 영역 */
.defect-row td {
border-bottom: 1px solid #fcd34d !important;
}
.defect-inline-area {
padding: 0.75rem 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.defect-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.defect-inline-item {
display: flex;
align-items: center;
gap: 0.5rem;
background: white;
padding: 0.5rem;
border-radius: 6px;
border: 1px solid #e5e7eb;
}
.defect-select {
flex: 1;
min-width: 120px;
max-width: 200px;
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 0.875rem;
background: white;
}
.defect-select:focus {
outline: none;
border-color: #f59e0b;
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}
.defect-time-input {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.5rem 0.75rem;
background: #f9fafb;
border: 2px solid #e5e7eb;
border-radius: 6px;
cursor: pointer;
min-width: 80px;
justify-content: center;
transition: all 0.2s ease;
}
.defect-time-input:hover {
background: #f3f4f6;
border-color: #f59e0b;
}
.defect-time-value {
font-weight: 600;
color: #374151;
font-size: 0.875rem;
}
.defect-time-unit {
font-size: 0.75rem;
color: #6b7280;
}
.btn-remove-defect {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: #fee2e2;
color: #dc2626;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 1.25rem;
font-weight: bold;
transition: all 0.2s ease;
}
.btn-remove-defect:hover {
background: #fecaca;
}
.btn-add-defect-inline {
align-self: flex-start;
padding: 0.5rem 1rem;
background: #f59e0b;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease;
}
.btn-add-defect-inline:hover {
background: #d97706;
}
/* =================================================================
이슈 기반 부적합 선택 UI
================================================================= */
/* 이슈 섹션 전체 */
.defect-issue-section {
margin-bottom: 0.75rem;
}
.defect-issue-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 0.75rem;
background: #fef3c7;
border-radius: 6px 6px 0 0;
border: 1px solid #fcd34d;
border-bottom: none;
}
.defect-issue-title {
font-weight: 600;
color: #92400e;
font-size: 0.8125rem;
}
.defect-issue-count {
background: #f59e0b;
color: white;
padding: 0.125rem 0.375rem;
border-radius: 8px;
font-size: 0.6875rem;
font-weight: 600;
}
/* 이슈 목록 */
.defect-issue-list {
border: 1px solid #e5e7eb;
border-top: none;
border-radius: 0 0 6px 6px;
overflow: hidden;
}
/* 개별 이슈 아이템 - 가벼운 인라인 스타일 */
.defect-issue-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
background: white;
border-bottom: 1px solid #f3f4f6;
transition: all 0.2s ease;
font-size: 0.8125rem;
}
.defect-issue-item:last-child {
border-bottom: none;
}
.defect-issue-item:hover {
background: #f9fafb;
}
.defect-issue-item.selected {
background: #fef2f2;
border-left: 3px solid #ef4444;
}
/* 체크박스 영역 */
.defect-issue-checkbox {
flex-shrink: 0;
}
.defect-issue-checkbox input[type="checkbox"] {
width: 16px;
height: 16px;
cursor: pointer;
accent-color: #ef4444;
}
/* 이슈 정보 영역 - 인라인 */
.defect-issue-info {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.defect-issue-category {
font-size: 0.75rem;
color: #6b7280;
flex-shrink: 0;
}
.defect-issue-item-name {
font-weight: 500;
color: #374151;
font-size: 0.8125rem;
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.defect-issue-location {
font-size: 0.75rem;
color: #9ca3af;
flex-shrink: 0;
}
/* 시간 입력 영역 */
.defect-issue-time {
flex-shrink: 0;
}
.defect-issue-time .defect-time-input {
background: #f3f4f6;
opacity: 0.5;
cursor: not-allowed;
padding: 0.375rem 0.625rem;
font-size: 0.75rem;
}
.defect-issue-time.active .defect-time-input {
background: #fee2e2;
opacity: 1;
cursor: pointer;
border-color: #ef4444;
}
.defect-issue-time.active .defect-time-input:hover {
background: #fecaca;
}
/* 레거시 부적합 섹션 */
.defect-legacy-section {
margin-top: 1rem;
}
.btn-add-legacy-defect {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.5rem 0.875rem;
background: #f3f4f6;
color: #374151;
border: 1px dashed #d1d5db;
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
font-weight: 500;
transition: all 0.2s ease;
margin-bottom: 0.5rem;
}
.btn-add-legacy-defect:hover {
background: #e5e7eb;
border-color: #9ca3af;
}
.defect-legacy-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
/* =================================================================
순차 입력 부적합 UI (대분류 → 소분류 → 추가내용)
================================================================= */
.defect-cascading-item {
background: #fefce8;
border: 1px solid #fde047;
border-radius: 8px;
padding: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.defect-cascading-row {
display: flex;
align-items: flex-end;
gap: 0.5rem;
flex-wrap: wrap;
}
.defect-field {
display: flex;
flex-direction: column;
gap: 0.25rem;
min-width: 100px;
}
.defect-field-label {
font-size: 0.7rem;
font-weight: 600;
color: #92400e;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.defect-select-wrapper {
position: relative;
}
.defect-category-select,
.defect-item-select {
width: 100%;
min-width: 120px;
max-width: none;
padding: 0.5rem 0.75rem;
border: 1px solid #fde047;
border-radius: 6px;
font-size: 0.8125rem;
background: white;
cursor: pointer;
}
.defect-category-select:focus,
.defect-item-select:focus {
outline: none;
border-color: #f59e0b;
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.defect-category-select:disabled,
.defect-item-select:disabled {
background: #f3f4f6;
color: #9ca3af;
cursor: not-allowed;
}
.defect-field-time {
min-width: 70px;
flex-shrink: 0;
}
.defect-field-time .defect-time-input {
background: white;
border-color: #fde047;
}
.defect-note-row {
display: flex;
gap: 0.5rem;
}
.defect-note-input {
flex: 1;
padding: 0.5rem 0.75rem;
border: 1px solid #e5e7eb;
border-radius: 6px;
font-size: 0.8125rem;
background: white;
}
.defect-note-input:focus {
outline: none;
border-color: #f59e0b;
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}
.defect-note-input::placeholder {
color: #9ca3af;
}
.defect-preview {
padding: 0.375rem 0.625rem;
background: rgba(245, 158, 11, 0.1);
border-radius: 4px;
}
.defect-preview-text {
font-size: 0.75rem;
color: #92400e;
font-weight: 500;
}
/* 부적합 액션 버튼 영역 */
.defect-action-buttons {
display: flex;
gap: 0.5rem;
margin-top: 0.75rem;
align-items: center;
}
.btn-save-defects {
padding: 0.5rem 1.25rem;
background: #16a34a;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 600;
transition: all 0.2s ease;
}
.btn-save-defects:hover {
background: #15803d;
}
.btn-save-defects.saved {
background: #22c55e;
cursor: default;
}
.btn-save-defects:disabled {
opacity: 0.8;
}
/* 저장 완료 메시지 */
.defect-save-message {
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: 0.5rem;
padding: 0.5rem 0.75rem;
background: #dcfce7;
border: 1px solid #86efac;
border-radius: 6px;
animation: fadeIn 0.3s ease;
}
.save-message-text {
font-size: 0.8125rem;
color: #166534;
font-weight: 500;
}
.save-message-text::before {
content: '✓ ';
}
/* 저장 하이라이트 애니메이션 */
.defect-legacy-list.saved-highlight .defect-cascading-item {
animation: highlightPulse 0.5s ease;
}
@keyframes highlightPulse {
0% { background-color: #fefce8; }
50% { background-color: #dcfce7; }
100% { background-color: #fefce8; }
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-5px); }
to { opacity: 1; transform: translateY(0); }
}
/* =================================================================
저장된 부적합 섹션
================================================================= */
.defect-saved-section {
background: #f0fdf4;
border: 1px solid #86efac;
border-radius: 8px;
margin-bottom: 1rem;
overflow: hidden;
}
.defect-saved-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.625rem 1rem;
background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
border-bottom: 1px solid #86efac;
}
.defect-saved-title {
font-size: 0.8125rem;
font-weight: 600;
color: #166534;
}
.defect-saved-count {
font-size: 0.75rem;
font-weight: 600;
color: white;
background: #16a34a;
padding: 0.125rem 0.5rem;
border-radius: 10px;
}
.defect-saved-list {
padding: 0.5rem;
}
.defect-saved-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.625rem 0.75rem;
background: white;
border: 1px solid #d1fae5;
border-radius: 6px;
margin-bottom: 0.375rem;
gap: 0.75rem;
}
.defect-saved-item:last-child {
margin-bottom: 0;
}
.defect-saved-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.125rem;
}
.defect-saved-category {
font-size: 0.75rem;
font-weight: 600;
color: #16a34a;
}
.defect-saved-detail {
font-size: 0.8125rem;
color: #374151;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.defect-saved-actions {
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.defect-saved-hours {
font-size: 0.8125rem;
font-weight: 600;
color: #dc2626;
background: #fee2e2;
padding: 0.25rem 0.625rem;
border-radius: 4px;
white-space: nowrap;
}
.btn-edit-defect {
padding: 0.25rem 0.625rem;
background: #3b82f6;
color: white;
border: none;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
}
.btn-edit-defect:hover {
background: #2563eb;
}
.btn-delete-defect {
padding: 0.25rem 0.625rem;
background: #ef4444;
color: white;
border: none;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
}
.btn-delete-defect:hover {
background: #dc2626;
}
/* 입력 중 섹션 */
.defect-editing-section {
margin-top: 0.5rem;
}
/* 반응형 - 저장된 부적합 */
@media (max-width: 640px) {
.defect-saved-item {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.defect-saved-actions {
width: 100%;
justify-content: flex-end;
}
}
/* 반응형 - 모바일 */
@media (max-width: 640px) {
.defect-cascading-row {
flex-direction: column;
align-items: stretch;
}
.defect-field {
width: 100%;
max-width: none;
}
.defect-category-select,
.defect-item-select {
max-width: none;
}
.defect-field-time {
flex-direction: row;
align-items: center;
gap: 0.5rem;
}
.defect-field-time .defect-field-label {
min-width: 40px;
}
.btn-remove-defect {
align-self: flex-end;
margin-top: 0.5rem;
}
}
/* 이슈 없음 상태 */
.defect-no-issues {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
background: #f9fafb;
border: 1px dashed #d1d5db;
border-radius: 8px;
margin-bottom: 0.5rem;
}
.no-issues-text {
color: #6b7280;
font-size: 0.875rem;
}
/* ================================================
모바일 카드 레이아웃 + 터치 최적화
================================================ */
/* 전역 터치 최적화 - 더블탭 줌 방지 */
* {
touch-action: manipulation;
}
/* 로딩 상태 버튼 */
.btn-submit-compact.is-loading,
.btn-batch-submit.is-loading {
pointer-events: none;
opacity: 0.7;
position: relative;
}
.btn-submit-compact.is-loading::after,
.btn-batch-submit.is-loading::after {
content: '';
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.6s linear infinite;
margin-left: 6px;
vertical-align: middle;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ========== 모바일 768px 이하 ========== */
@media (max-width: 768px) {
/* --- 날짜 그룹 헤더 모바일 --- */
.date-group-header {
flex-wrap: wrap;
padding: 0.75rem 1rem;
gap: 0.25rem;
}
.date-header-left {
width: 100%;
}
.date-header-center {
gap: 0.5rem;
font-size: 0.8rem;
}
.date-header-right {
margin-left: auto;
}
/* --- TBM 세션 헤더 모바일 --- */
.tbm-session-header {
flex-wrap: wrap;
padding: 0.625rem 1rem;
gap: 0.375rem;
font-size: 0.8rem;
}
.tbm-session-count {
margin-left: 0;
}
/* --- 테이블 → 카드 전환 --- */
.tbm-table-container {
overflow-x: visible;
border: none;
border-radius: 0;
background: transparent;
}
.tbm-work-table {
display: block;
}
.tbm-work-table thead {
display: none;
}
.tbm-work-table tbody {
display: flex;
flex-direction: column;
gap: 0.75rem;
padding: 0.75rem;
}
.tbm-work-table tbody tr[data-type] {
display: flex;
flex-wrap: wrap;
background: white;
border: 1px solid #e5e7eb;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
padding: 0;
overflow: hidden;
}
.tbm-work-table tbody tr[data-type] td {
border-bottom: none;
padding: 0;
}
/* 작업자 이름 (카드 상단 헤더) */
.tbm-work-table tbody tr[data-type] td:nth-child(1) {
width: 100%;
background: linear-gradient(135deg, #f8fafc, #f1f5f9);
padding: 0.625rem 0.875rem;
border-bottom: 1px solid #e5e7eb;
}
.tbm-work-table tbody tr[data-type] td:nth-child(1) .worker-cell {
display: flex;
align-items: center;
gap: 0.5rem;
min-width: 0;
}
.tbm-work-table tbody tr[data-type] td:nth-child(1) .worker-cell strong {
margin-bottom: 0;
font-size: 0.95rem;
}
/* 프로젝트/공정/작업/작업장소 → 2열 그리드 */
.tbm-work-table tbody tr[data-type] td:nth-child(2),
.tbm-work-table tbody tr[data-type] td:nth-child(3),
.tbm-work-table tbody tr[data-type] td:nth-child(4),
.tbm-work-table tbody tr[data-type] td:nth-child(5) {
width: 50%;
padding: 0.5rem 0.875rem;
font-size: 0.8rem;
box-sizing: border-box;
}
.tbm-work-table tbody tr[data-type] td:nth-child(2)::before,
.tbm-work-table tbody tr[data-type] td:nth-child(3)::before,
.tbm-work-table tbody tr[data-type] td:nth-child(4)::before,
.tbm-work-table tbody tr[data-type] td:nth-child(5)::before {
content: attr(data-label);
display: block;
font-size: 0.7rem;
font-weight: 600;
color: #6b7280;
margin-bottom: 0.125rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}
/* 작업시간 + 부적합 + 제출 → 하단 풀 영역 */
.tbm-work-table tbody tr[data-type] td:nth-child(6),
.tbm-work-table tbody tr[data-type] td:nth-child(7),
.tbm-work-table tbody tr[data-type] td:nth-child(8) {
padding: 0.5rem 0.875rem;
box-sizing: border-box;
}
/* 작업시간 */
.tbm-work-table tbody tr[data-type] td:nth-child(6) {
width: 40%;
border-top: 1px solid #f3f4f6;
}
.tbm-work-table tbody tr[data-type] td:nth-child(6)::before {
content: '작업시간';
display: block;
font-size: 0.7rem;
font-weight: 600;
color: #6b7280;
margin-bottom: 0.25rem;
}
/* 부적합 */
.tbm-work-table tbody tr[data-type] td:nth-child(7) {
width: 30%;
border-top: 1px solid #f3f4f6;
}
/* 제출 */
.tbm-work-table tbody tr[data-type] td:nth-child(8) {
width: 30%;
border-top: 1px solid #f3f4f6;
display: flex;
align-items: center;
justify-content: flex-end;
}
/* 수동 입력의 날짜 컬럼 처리 (9개 컬럼) */
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(2) {
width: 50%;
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(2)::before {
content: '날짜';
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(3) {
width: 50%;
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(3)::before {
content: '프로젝트';
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(4)::before {
content: '공정';
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(5)::before {
content: '작업';
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(6) {
width: 50%;
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(6)::before {
content: '작업장소';
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(7) {
width: 50%;
border-top: 1px solid #f3f4f6;
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(7)::before {
content: '작업시간';
display: block;
font-size: 0.7rem;
font-weight: 600;
color: #6b7280;
margin-bottom: 0.25rem;
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(8) {
width: 25%;
border-top: 1px solid #f3f4f6;
}
.manual-input-section .tbm-work-table tbody tr[data-type] td:nth-child(9) {
width: 25%;
border-top: 1px solid #f3f4f6;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0.5rem 0.875rem;
}
/* 수동 입력 select/input 모바일 크기 조정 */
.manual-input-section .form-input-compact {
width: 100% !important;
min-width: 0;
font-size: 0.8rem;
}
/* 부적합 행 (defect-row) 카드 모바일 */
.tbm-work-table tbody tr.defect-row {
display: block;
margin-top: -0.75rem;
border: 1px solid #fde68a;
border-top: none;
border-radius: 0 0 10px 10px;
background: #fef3c7;
padding: 0;
}
.tbm-work-table tbody tr.defect-row td {
display: block;
width: 100%;
padding: 0.75rem;
}
.tbm-work-table tbody tr.defect-row td[colspan] {
padding: 0.75rem;
}
/* 시간 입력 트리거 모바일 확대 */
.time-input-trigger {
min-height: 44px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.95rem;
padding: 0.5rem 0.75rem;
}
/* 제출 버튼 터치 타겟 확대 */
.btn-submit-compact {
min-height: 44px;
min-width: 60px;
padding: 0.625rem 1rem;
font-size: 0.875rem;
}
/* 부적합 버튼 터치 타겟 확대 */
.btn-defect-toggle {
min-height: 44px;
min-width: 60px;
padding: 0.5rem 0.625rem;
font-size: 0.8rem;
}
/* 일괄제출 버튼 모바일 full-width */
.batch-submit-container {
padding: 0.75rem;
}
.btn-batch-submit {
width: 100%;
min-height: 48px;
font-size: 0.95rem;
padding: 0.75rem 1rem;
border-radius: 8px;
}
/* --- 시간 선택 피커 모바일 --- */
.time-picker-popup {
max-width: 340px;
padding: 1.25rem;
}
.quick-time-grid {
grid-template-columns: repeat(3, 1fr);
gap: 0.625rem;
}
.time-btn {
min-height: 56px;
padding: 0.75rem 0.375rem;
font-size: 0.95rem;
border-radius: 8px;
}
.time-btn .time-value {
font-size: 1rem;
}
.adjust-btn {
min-height: 48px;
font-size: 0.95rem;
}
.confirm-btn {
min-height: 52px;
font-size: 1rem;
}
/* --- 작업장소 모달 모바일 --- */
#workplaceModal .modal-container {
width: 95% !important;
max-width: none !important;
}
/* --- 신고 리마인더 모바일 --- */
.issue-reminder-section {
margin: 0 0 0.75rem 0;
border-radius: 8px;
}
.issue-reminder-item {
flex-wrap: wrap;
gap: 0.25rem;
}
/* --- 작업 추가 버튼 모바일 --- */
.btn-add-work {
min-height: 44px;
padding: 0.625rem 1rem;
}
/* --- 삭제 버튼 모바일 --- */
.btn-delete-compact {
min-height: 44px;
min-width: 44px;
}
}