Files
tk-factory-services/system1-factory/web/css/daily-work-report-mobile.css
Hyungi Ahn 7637be33f3 feat: TBM 모바일 시스템 + 작업 분할/이동 + 권한 통합
TBM 시스템:
- 4단계 워크플로우 (draft→세부편집→완료→작업보고)
- 모바일 전용 TBM 페이지 (tbm-mobile.html) + 3단계 생성 위자드
- 작업자 작업 분할 (work_hours + split_seq)
- 작업자 이동 보내기/빼오기 (tbm_transfers 테이블)
- 생성 시 중복 배정 방지 (당일 배정 현황 조회)
- 데스크탑 TBM 페이지 세부편집 기능 추가

작업보고서:
- 모바일 전용 작업보고서 페이지 (report-create-mobile.html)
- TBM에서 사전 등록된 work_hours 자동 반영

권한 시스템:
- tkuser user_page_permissions 테이블과 system1 페이지 접근 연동
- pageAccessRoutes를 userRoutes보다 먼저 등록 (라우트 우선순위 수정)
- TKUSER_DEFAULT_ACCESS 폴백 추가 (개인→부서→기본값 3단계)
- 권한 캐시키 갱신 (userPageAccess_v2)

기타:
- app-init.js 캐시 버스팅 (v=5)
- iOS Safari touch-action: manipulation 적용
- KST 타임존 날짜 버그 수정 (toISOString UTC 이슈)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 07:46:21 +09:00

1319 lines
22 KiB
CSS

/* ===================================
Daily Work Report - Mobile CSS
모바일 전용 작업보고서 스타일
=================================== */
/* 기본 레이아웃 */
.m-container {
max-width: 480px;
margin: 0 auto;
min-height: 100vh;
background: #f9fafb;
padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
/* Sticky 헤더 */
.m-header {
position: sticky;
top: 0;
z-index: 100;
background: #fff;
padding: 0.75rem 1rem;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
}
.m-header-title {
font-size: 1.125rem;
font-weight: 700;
color: #111827;
margin: 0;
}
.m-header-action {
display: flex;
gap: 0.5rem;
}
.m-btn-add {
background: #3b82f6;
color: #fff;
border: none;
border-radius: 8px;
padding: 0.4rem 0.75rem;
font-size: 0.8125rem;
font-weight: 600;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.m-btn-add:active {
background: #2563eb;
}
/* 탭바 */
.m-tab-bar {
display: flex;
background: #fff;
border-bottom: 1px solid #e5e7eb;
position: sticky;
top: 52px;
z-index: 99;
}
.m-tab-btn {
flex: 1;
padding: 0.75rem 0.5rem;
border: none;
background: none;
font-size: 0.8125rem;
font-weight: 500;
color: #6b7280;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: color 0.15s, border-color 0.15s;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
white-space: nowrap;
}
.m-tab-btn.active {
color: #3b82f6;
font-weight: 700;
border-bottom-color: #3b82f6;
}
.m-tab-btn:active {
background: #f3f4f6;
}
.m-tab-count {
display: inline-block;
background: #e5e7eb;
color: #374151;
border-radius: 10px;
padding: 0.05rem 0.4rem;
font-size: 0.6875rem;
font-weight: 600;
margin-left: 0.25rem;
min-width: 1.25rem;
text-align: center;
}
.m-tab-btn.active .m-tab-count {
background: #dbeafe;
color: #2563eb;
}
/* 탭 콘텐츠 */
.m-tab-content {
display: none;
padding: 0.75rem;
}
.m-tab-content.active {
display: block;
}
/* 메시지 영역 */
.m-message {
margin: 0.5rem 0.75rem;
padding: 0.625rem 0.75rem;
border-radius: 8px;
font-size: 0.8125rem;
display: none;
}
.m-message.show {
display: block;
}
.m-message.info {
background: #dbeafe;
color: #1e40af;
}
.m-message.success {
background: #dcfce7;
color: #166534;
}
.m-message.error {
background: #fee2e2;
color: #991b1b;
}
.m-message.loading {
background: #fef3c7;
color: #92400e;
}
/* 날짜 그룹 */
.m-date-group {
margin-bottom: 0.75rem;
}
.m-date-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.625rem 0.75rem;
background: #fff;
border-radius: 10px;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.m-date-header:active {
background: #f3f4f6;
}
.m-date-left {
display: flex;
align-items: center;
gap: 0.5rem;
}
.m-date-toggle {
font-size: 0.625rem;
color: #9ca3af;
transition: transform 0.2s;
}
.m-date-group.expanded .m-date-toggle {
transform: rotate(90deg);
}
.m-date-title {
font-size: 0.875rem;
font-weight: 600;
color: #111827;
}
.m-today-badge {
background: #dbeafe;
color: #2563eb;
font-size: 0.6875rem;
font-weight: 700;
padding: 0.1rem 0.4rem;
border-radius: 4px;
}
.m-date-right {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.75rem;
color: #6b7280;
}
.m-date-content {
overflow: hidden;
transition: max-height 0.3s ease;
}
.m-date-group:not(.expanded) .m-date-content {
display: none;
}
/* 이슈 리마인더 */
.m-issue-reminder {
margin: 0.5rem 0;
padding: 0.625rem 0.75rem;
background: #fffbeb;
border: 1px solid #fde68a;
border-radius: 10px;
}
.m-issue-reminder-header {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.8125rem;
font-weight: 600;
color: #92400e;
margin-bottom: 0.375rem;
}
.m-issue-reminder-item {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.75rem;
padding: 0.25rem 0;
color: #78350f;
}
.m-issue-type-badge {
display: inline-block;
padding: 0.05rem 0.375rem;
border-radius: 4px;
font-size: 0.625rem;
font-weight: 600;
flex-shrink: 0;
}
.m-issue-type-badge.nonconformity {
background: #fee2e2;
color: #dc2626;
}
.m-issue-type-badge.safety {
background: #fef3c7;
color: #d97706;
}
/* 세션 헤더 */
.m-session-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0;
margin-top: 0.5rem;
}
.m-session-badge {
background: #3b82f6;
color: #fff;
font-size: 0.625rem;
font-weight: 700;
padding: 0.15rem 0.4rem;
border-radius: 4px;
}
.m-session-info {
font-size: 0.75rem;
color: #6b7280;
}
/* 작업자 카드 */
.m-worker-card {
background: #fff;
border-radius: 12px;
padding: 0.875rem;
margin-bottom: 0.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
border: 1px solid #f3f4f6;
}
.m-worker-card.submitted {
opacity: 0.5;
pointer-events: none;
}
.m-card-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.5rem;
}
.m-worker-name {
font-size: 0.9375rem;
font-weight: 700;
color: #111827;
}
.m-worker-job {
font-size: 0.75rem;
color: #6b7280;
margin-top: 0.1rem;
}
.m-card-status {
font-size: 0.6875rem;
padding: 0.15rem 0.4rem;
border-radius: 4px;
font-weight: 600;
}
.m-card-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
margin-bottom: 0.625rem;
}
.m-info-row {
display: flex;
font-size: 0.8125rem;
}
.m-info-label {
color: #9ca3af;
width: 4.5rem;
flex-shrink: 0;
}
.m-info-value {
color: #374151;
flex: 1;
}
/* 카드 하단 버튼 영역 */
.m-card-actions {
display: flex;
gap: 0.5rem;
margin-top: 0.625rem;
}
.m-action-btn {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0.5rem;
border-radius: 8px;
border: 1.5px solid #e5e7eb;
background: #f9fafb;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
min-height: 44px;
transition: border-color 0.15s, background 0.15s;
}
.m-action-btn:active {
background: #f3f4f6;
}
.m-action-btn.has-value {
border-color: #3b82f6;
background: #eff6ff;
}
.m-action-btn.has-related-issue {
border-color: #f59e0b;
background: #fffbeb;
}
.m-action-label {
font-size: 0.6875rem;
color: #9ca3af;
margin-bottom: 0.15rem;
}
.m-action-value {
font-size: 0.8125rem;
font-weight: 600;
color: #374151;
}
.m-action-btn.has-value .m-action-value {
color: #2563eb;
}
/* 제출 버튼 */
.m-submit-btn {
width: 100%;
min-height: 44px;
border: none;
border-radius: 10px;
font-size: 0.875rem;
font-weight: 700;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
margin-top: 0.625rem;
transition: background 0.15s;
}
.m-submit-btn.primary {
background: #3b82f6;
color: #fff;
}
.m-submit-btn.primary:active {
background: #2563eb;
}
.m-submit-btn.primary:disabled {
background: #93c5fd;
cursor: not-allowed;
}
/* 일괄 제출 버튼 */
.m-batch-btn {
width: 100%;
min-height: 48px;
border: none;
border-radius: 10px;
font-size: 0.875rem;
font-weight: 700;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
margin: 0.5rem 0 0.75rem;
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: #fff;
box-shadow: 0 2px 6px rgba(59,130,246,0.3);
}
.m-batch-btn:active {
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.m-batch-btn:disabled {
background: #93c5fd;
box-shadow: none;
cursor: not-allowed;
}
/* 수동 입력 카드 */
.m-manual-card {
background: #fff;
border-radius: 12px;
padding: 0.875rem;
margin-bottom: 0.75rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
border: 2px solid #fde68a;
}
.m-manual-card .m-form-group {
margin-bottom: 0.625rem;
}
.m-form-label {
display: block;
font-size: 0.75rem;
font-weight: 600;
color: #6b7280;
margin-bottom: 0.25rem;
}
.m-form-select,
.m-form-input {
width: 100%;
padding: 0.5rem 0.625rem;
border: 1.5px solid #e5e7eb;
border-radius: 8px;
font-size: 16px; /* iOS 줌 방지 */
color: #111827;
background: #fff;
-webkit-appearance: none;
appearance: none;
}
.m-form-select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.25rem;
padding-right: 2rem;
}
.m-form-select:focus,
.m-form-input:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.m-form-row {
display: flex;
gap: 0.5rem;
}
.m-form-row > .m-form-group {
flex: 1;
}
.m-manual-delete {
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: none;
border: none;
color: #9ca3af;
font-size: 1.25rem;
cursor: pointer;
padding: 0.25rem;
line-height: 1;
}
/* 작업장소 선택 박스 */
.m-workplace-box {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.625rem;
border: 1.5px solid #e5e7eb;
border-radius: 8px;
background: #f9fafb;
cursor: pointer;
min-height: 42px;
-webkit-tap-highlight-color: transparent;
}
.m-workplace-box.selected {
border-color: #10b981;
background: #ecfdf5;
}
.m-workplace-box .m-wp-icon {
font-size: 1rem;
flex-shrink: 0;
}
.m-workplace-box .m-wp-text {
font-size: 0.8125rem;
color: #9ca3af;
}
.m-workplace-box.selected .m-wp-text {
color: #065f46;
font-weight: 500;
}
/* 바텀시트 */
.m-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.4);
z-index: 1001;
opacity: 0;
visibility: hidden;
transition: opacity 0.25s, visibility 0.25s;
}
.m-overlay.show {
opacity: 1;
visibility: visible;
}
.m-bottom-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #fff;
border-radius: 16px 16px 0 0;
z-index: 1002;
max-height: 85vh;
overflow-y: auto;
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
padding-bottom: env(safe-area-inset-bottom);
-webkit-overflow-scrolling: touch;
}
.m-bottom-sheet.show {
transform: translateY(0);
}
.m-sheet-handle {
width: 36px;
height: 4px;
background: #d1d5db;
border-radius: 2px;
margin: 8px auto 0;
}
.m-sheet-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
border-bottom: 1px solid #f3f4f6;
}
.m-sheet-title {
font-size: 1rem;
font-weight: 700;
color: #111827;
margin: 0;
}
.m-sheet-close {
background: none;
border: none;
font-size: 1.5rem;
color: #9ca3af;
cursor: pointer;
padding: 0.25rem;
line-height: 1;
-webkit-tap-highlight-color: transparent;
}
.m-sheet-body {
padding: 0.75rem 1rem;
}
.m-sheet-footer {
padding: 0.75rem 1rem;
border-top: 1px solid #f3f4f6;
}
/* 부적합 바텀시트 */
.m-defect-issue-item {
display: flex;
align-items: flex-start;
gap: 0.625rem;
padding: 0.625rem;
border: 1.5px solid #e5e7eb;
border-radius: 10px;
margin-bottom: 0.5rem;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
transition: border-color 0.15s, background 0.15s;
}
.m-defect-issue-item:active {
background: #f9fafb;
}
.m-defect-issue-item.selected {
border-color: #3b82f6;
background: #eff6ff;
}
.m-defect-checkbox {
width: 20px;
height: 20px;
border-radius: 4px;
border: 2px solid #d1d5db;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
margin-top: 2px;
transition: all 0.15s;
}
.m-defect-issue-item.selected .m-defect-checkbox {
background: #3b82f6;
border-color: #3b82f6;
}
.m-defect-issue-item.selected .m-defect-checkbox::after {
content: '';
width: 6px;
height: 10px;
border: solid #fff;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
margin-top: -2px;
}
.m-defect-issue-info {
flex: 1;
}
.m-defect-issue-name {
font-size: 0.8125rem;
font-weight: 600;
color: #111827;
margin-bottom: 0.15rem;
}
.m-defect-issue-detail {
font-size: 0.75rem;
color: #6b7280;
}
.m-defect-time-input {
display: flex;
align-items: center;
gap: 0.375rem;
margin-top: 0.375rem;
}
.m-defect-time-input label {
font-size: 0.75rem;
color: #6b7280;
}
.m-defect-manual-section {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid #e5e7eb;
}
.m-defect-manual-title {
font-size: 0.8125rem;
font-weight: 600;
color: #374151;
margin-bottom: 0.5rem;
}
/* 시간 선택 오버레이 */
.m-time-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.4);
z-index: 1003;
display: none;
align-items: center;
justify-content: center;
}
.m-time-overlay.show {
display: flex;
}
.m-time-popup {
background: #fff;
border-radius: 16px;
padding: 1.25rem;
width: calc(100% - 2rem);
max-width: 340px;
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.m-time-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.m-time-title {
font-size: 1rem;
font-weight: 700;
color: #111827;
margin: 0;
}
.m-time-close {
background: none;
border: none;
font-size: 1.5rem;
color: #9ca3af;
cursor: pointer;
padding: 0.25rem;
line-height: 1;
}
.m-quick-time-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
margin-bottom: 1rem;
}
.m-time-btn {
padding: 0.625rem 0;
border: 1.5px solid #e5e7eb;
border-radius: 10px;
background: #fff;
font-size: 0.875rem;
font-weight: 600;
color: #374151;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
transition: all 0.15s;
}
.m-time-btn:active {
background: #f3f4f6;
}
.m-time-btn.selected {
border-color: #3b82f6;
background: #eff6ff;
color: #2563eb;
}
.m-time-adjust {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
margin-bottom: 1rem;
padding: 0.625rem;
background: #f9fafb;
border-radius: 10px;
}
.m-time-current {
font-size: 1.25rem;
font-weight: 700;
color: #111827;
min-width: 5rem;
text-align: center;
}
.m-time-adjust-btn {
width: 40px;
height: 40px;
border-radius: 50%;
border: 1.5px solid #e5e7eb;
background: #fff;
font-size: 0.875rem;
font-weight: 600;
color: #374151;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.m-time-adjust-btn:active {
background: #f3f4f6;
}
.m-time-confirm {
width: 100%;
padding: 0.75rem;
border: none;
border-radius: 10px;
background: #3b82f6;
color: #fff;
font-size: 0.9375rem;
font-weight: 700;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
min-height: 44px;
}
.m-time-confirm:active {
background: #2563eb;
}
/* 작업장소 바텀시트 */
.m-wp-category-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.m-wp-category-btn {
padding: 0.75rem;
border: 1.5px solid #e5e7eb;
border-radius: 10px;
background: #fff;
font-size: 0.875rem;
font-weight: 500;
color: #374151;
cursor: pointer;
text-align: left;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
transition: all 0.15s;
}
.m-wp-category-btn:active {
background: #f3f4f6;
}
.m-wp-category-btn.selected {
border-color: #3b82f6;
background: #eff6ff;
color: #2563eb;
font-weight: 600;
}
.m-wp-list {
max-height: 50vh;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.m-wp-item {
display: flex;
align-items: center;
gap: 0.625rem;
padding: 0.75rem;
border-bottom: 1px solid #f3f4f6;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.m-wp-item:active {
background: #f9fafb;
}
.m-wp-item.selected {
background: #eff6ff;
}
.m-wp-item-icon {
font-size: 1.125rem;
}
.m-wp-item-name {
font-size: 0.875rem;
color: #111827;
font-weight: 500;
}
.m-wp-item.selected .m-wp-item-name {
color: #2563eb;
font-weight: 600;
}
/* 완료 보고서 */
.m-completed-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.m-date-input {
flex: 1;
padding: 0.5rem 0.625rem;
border: 1.5px solid #e5e7eb;
border-radius: 8px;
font-size: 16px;
color: #111827;
}
.m-completed-card {
background: #fff;
border-radius: 12px;
padding: 0.875rem;
margin-bottom: 0.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
border: 1px solid #f3f4f6;
}
.m-completed-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.5rem;
}
.m-completed-worker {
font-size: 0.9375rem;
font-weight: 700;
color: #111827;
}
.m-completed-badge {
font-size: 0.625rem;
font-weight: 700;
padding: 0.1rem 0.375rem;
border-radius: 4px;
}
.m-completed-badge.tbm {
background: #dbeafe;
color: #2563eb;
}
.m-completed-badge.manual {
background: #fef3c7;
color: #d97706;
}
.m-completed-info {
display: flex;
flex-direction: column;
gap: 0.2rem;
margin-bottom: 0.5rem;
}
.m-completed-actions {
display: flex;
gap: 0.5rem;
padding-top: 0.5rem;
border-top: 1px solid #f3f4f6;
}
.m-completed-actions button {
flex: 1;
padding: 0.4rem 0;
border-radius: 8px;
font-size: 0.8125rem;
font-weight: 600;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
min-height: 36px;
border: 1px solid;
}
.m-btn-edit {
background: #f9fafb;
color: #374151;
border-color: #e5e7eb !important;
}
.m-btn-edit:active {
background: #f3f4f6;
}
.m-btn-delete {
background: #fee2e2;
color: #dc2626;
border-color: #fecaca !important;
}
.m-btn-delete:active {
background: #fecdd3;
}
/* 비어있는 상태 */
.m-empty {
text-align: center;
padding: 2rem 1rem;
color: #9ca3af;
font-size: 0.875rem;
}
.m-empty-icon {
font-size: 2rem;
margin-bottom: 0.5rem;
}
/* 로딩 스피너 */
.m-loading {
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}
.m-loading::after {
content: '';
width: 24px;
height: 24px;
border: 3px solid #e5e7eb;
border-top-color: #3b82f6;
border-radius: 50%;
animation: m-spin 0.6s linear infinite;
}
@keyframes m-spin {
to { transform: rotate(360deg); }
}
/* 토스트 */
.m-toast {
position: fixed;
bottom: calc(80px + env(safe-area-inset-bottom));
left: 50%;
transform: translateX(-50%) translateY(100px);
background: #1f2937;
color: #fff;
padding: 0.625rem 1.25rem;
border-radius: 10px;
font-size: 0.8125rem;
font-weight: 500;
z-index: 2000;
opacity: 0;
transition: transform 0.3s, opacity 0.3s;
max-width: calc(100% - 2rem);
text-align: center;
}
.m-toast.show {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
.m-toast.success {
background: #059669;
}
.m-toast.error {
background: #dc2626;
}
/* 수정 바텀시트 폼 */
.m-edit-form .m-form-group {
margin-bottom: 0.75rem;
}
/* 부적합 요약 뱃지 */
.m-defect-summary {
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.m-defect-count {
background: #fee2e2;
color: #dc2626;
font-size: 0.625rem;
font-weight: 700;
padding: 0.1rem 0.3rem;
border-radius: 4px;
}
/* 부적합 저장된 항목 */
.m-saved-defects {
margin-top: 0.375rem;
padding: 0.375rem 0.5rem;
background: #ecfdf5;
border-radius: 6px;
}
.m-saved-defect-item {
font-size: 0.6875rem;
color: #065f46;
padding: 0.1rem 0;
}
/* iOS 안전 영역 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
.m-bottom-sheet {
padding-bottom: env(safe-area-inset-bottom);
}
}
/* 스크롤바 숨기기 (모바일) */
.m-bottom-sheet::-webkit-scrollbar,
.m-wp-list::-webkit-scrollbar {
display: none;
}
/* 확인 다이얼로그 */
.m-confirm-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 2001;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.m-confirm-box {
background: #fff;
border-radius: 14px;
padding: 1.25rem;
max-width: 300px;
width: 100%;
text-align: center;
}
.m-confirm-message {
font-size: 0.9375rem;
color: #111827;
margin-bottom: 1rem;
line-height: 1.5;
}
.m-confirm-actions {
display: flex;
gap: 0.5rem;
}
.m-confirm-actions button {
flex: 1;
padding: 0.625rem;
border-radius: 10px;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
border: none;
min-height: 44px;
-webkit-tap-highlight-color: transparent;
}
.m-confirm-cancel {
background: #f3f4f6;
color: #374151;
}
.m-confirm-ok {
background: #3b82f6;
color: #fff;
}
.m-confirm-ok.danger {
background: #dc2626;
}
/* 결과 모달 */
.m-result-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 2002;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
}
.m-result-overlay.show {
display: flex;
}
.m-result-box {
background: #fff;
border-radius: 14px;
padding: 1.5rem;
max-width: 320px;
width: 100%;
text-align: center;
}
.m-result-icon {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
.m-result-title {
font-size: 1rem;
font-weight: 700;
color: #111827;
margin-bottom: 0.375rem;
}
.m-result-message {
font-size: 0.8125rem;
color: #6b7280;
margin-bottom: 0.75rem;
line-height: 1.4;
}
.m-result-details {
text-align: left;
background: #f9fafb;
border-radius: 8px;
padding: 0.625rem;
margin-bottom: 0.75rem;
font-size: 0.75rem;
color: #374151;
max-height: 200px;
overflow-y: auto;
}
.m-result-details li {
padding: 0.15rem 0;
}
.m-result-close {
width: 100%;
padding: 0.625rem;
border: none;
border-radius: 10px;
background: #3b82f6;
color: #fff;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
min-height: 44px;
}