모바일 전용 하단 네비가 데스크톱에서 본문과 겹치는 문제. 768px 이상에서 display:none, 480-767px에서 max-width 제한. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
858 lines
28 KiB
HTML
858 lines
28 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>TBM 등록 - TK 공장관리</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<link rel="stylesheet" href="/static/css/tkfb.css?v=2026040103">
|
|
<style>
|
|
* { box-sizing: border-box; }
|
|
button, .worker-card, .list-item, .list-item-skip, .pill-btn, .pill-btn-add,
|
|
.nav-btn, .select-all-btn, [onclick] {
|
|
touch-action: manipulation;
|
|
}
|
|
@media (min-width: 480px) {
|
|
.tbm-create-wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; }
|
|
}
|
|
|
|
/* Fixed header */
|
|
.wizard-header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
height: 52px;
|
|
background: linear-gradient(135deg, #2563eb, #1d4ed8);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 1rem;
|
|
gap: 0.75rem;
|
|
}
|
|
@media (min-width: 480px) {
|
|
.wizard-header { max-width: 480px; margin: 0 auto; }
|
|
}
|
|
.wizard-header .back-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
border: none;
|
|
background: rgba(255,255,255,0.15);
|
|
color: white;
|
|
border-radius: 50%;
|
|
font-size: 1.25rem;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
-webkit-tap-highlight-color: transparent;
|
|
flex-shrink: 0;
|
|
}
|
|
.wizard-header .back-btn:active { background: rgba(255,255,255,0.25); }
|
|
.wizard-header h1 {
|
|
margin: 0;
|
|
font-size: 1.0625rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Step indicator */
|
|
.step-indicator {
|
|
position: sticky;
|
|
top: 52px;
|
|
z-index: 90;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0.625rem 0.5rem;
|
|
gap: 0;
|
|
background: white;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
.step {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.125rem;
|
|
font-size: 0.5625rem;
|
|
color: #9ca3af;
|
|
}
|
|
.step .step-dot {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.625rem;
|
|
font-weight: 700;
|
|
background: #e5e7eb;
|
|
color: #9ca3af;
|
|
flex-shrink: 0;
|
|
}
|
|
.step.active .step-dot { background: #2563eb; color: white; }
|
|
.step.active { color: #2563eb; font-weight: 600; }
|
|
.step.completed .step-dot { background: #10b981; color: white; }
|
|
.step.completed { color: #10b981; }
|
|
.step-line {
|
|
width: 10px;
|
|
height: 2px;
|
|
background: #e5e7eb;
|
|
margin: 0 0.0625rem;
|
|
flex-shrink: 0;
|
|
}
|
|
.step.completed + .step-line { background: #10b981; }
|
|
|
|
/* Step content area */
|
|
.step-content {
|
|
padding: 52px 0 76px 0; /* header + bottom nav */
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Sections */
|
|
.wizard-section {
|
|
margin: 0.75rem;
|
|
background: white;
|
|
border-radius: 0.75rem;
|
|
padding: 1.25rem;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
|
|
}
|
|
.section-title {
|
|
font-size: 0.9375rem;
|
|
font-weight: 700;
|
|
color: #1f2937;
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
.section-title .sn {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: #2563eb;
|
|
color: white;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Info row */
|
|
.info-row {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
}
|
|
.info-row:last-child { border-bottom: none; }
|
|
.info-label {
|
|
font-size: 0.8125rem;
|
|
color: #6b7280;
|
|
width: 70px;
|
|
flex-shrink: 0;
|
|
}
|
|
.info-value {
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
flex: 1;
|
|
}
|
|
|
|
/* Worker grid */
|
|
.worker-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
.worker-card {
|
|
padding: 0.75rem;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 0.75rem;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
transition: all 0.12s;
|
|
min-height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
.worker-card:active { transform: scale(0.97); }
|
|
.worker-card.selected {
|
|
border-color: #2563eb;
|
|
background: #eff6ff;
|
|
}
|
|
.worker-card .worker-check {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 4px;
|
|
border: 2px solid #d1d5db;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.75rem;
|
|
flex-shrink: 0;
|
|
color: transparent;
|
|
}
|
|
.worker-card.selected .worker-check {
|
|
border-color: #2563eb;
|
|
background: #2563eb;
|
|
color: white;
|
|
}
|
|
.worker-card .worker-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.worker-card .worker-name {
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.worker-card .worker-type {
|
|
font-size: 0.6875rem;
|
|
color: #6b7280;
|
|
}
|
|
.select-all-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.625rem 0;
|
|
margin-bottom: 0.5rem;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
}
|
|
.select-all-bar .count {
|
|
font-size: 0.8125rem;
|
|
color: #2563eb;
|
|
font-weight: 600;
|
|
}
|
|
.select-all-btn {
|
|
padding: 0.375rem 0.75rem;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 0.5rem;
|
|
background: white;
|
|
font-size: 0.75rem;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.select-all-btn:active { background: #f3f4f6; }
|
|
|
|
/* Project / list items */
|
|
.list-item {
|
|
padding: 0.875rem 1rem;
|
|
border: 1.5px solid #e5e7eb;
|
|
border-radius: 0.75rem;
|
|
margin-bottom: 0.5rem;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
transition: all 0.12s;
|
|
}
|
|
.list-item:active { transform: scale(0.98); }
|
|
.list-item.selected {
|
|
border-color: #2563eb;
|
|
background: #eff6ff;
|
|
}
|
|
.list-item .item-title {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
}
|
|
.list-item .item-desc {
|
|
font-size: 0.75rem;
|
|
color: #6b7280;
|
|
margin-top: 0.125rem;
|
|
}
|
|
.list-item-skip {
|
|
padding: 0.875rem 1rem;
|
|
border: 1.5px dashed #d1d5db;
|
|
border-radius: 0.75rem;
|
|
text-align: center;
|
|
font-size: 0.8125rem;
|
|
color: #6b7280;
|
|
cursor: pointer;
|
|
margin-bottom: 0.5rem;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.list-item-skip:active { background: #f9fafb; }
|
|
.list-item-skip.selected {
|
|
border-color: #6b7280;
|
|
border-style: solid;
|
|
background: #f9fafb;
|
|
color: #374151;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Pill buttons */
|
|
.pill-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
.pill-btn {
|
|
padding: 0.5rem 0.875rem;
|
|
border: 1.5px solid #d1d5db;
|
|
border-radius: 2rem;
|
|
background: white;
|
|
font-size: 0.8125rem;
|
|
cursor: pointer;
|
|
transition: all 0.12s;
|
|
-webkit-tap-highlight-color: transparent;
|
|
white-space: nowrap;
|
|
}
|
|
.pill-btn:active { transform: scale(0.97); }
|
|
.pill-btn.selected {
|
|
border-color: #2563eb;
|
|
background: #eff6ff;
|
|
color: #1d4ed8;
|
|
font-weight: 600;
|
|
}
|
|
.sub-section {
|
|
margin-top: 1rem;
|
|
padding-top: 0.875rem;
|
|
border-top: 1px solid #f3f4f6;
|
|
}
|
|
.sub-section-title {
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: #6b7280;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* Map button */
|
|
.map-open-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 0.875rem 1rem;
|
|
background: linear-gradient(135deg, #0d9488, #0f766e);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 0.75rem;
|
|
cursor: pointer;
|
|
margin-bottom: 0.75rem;
|
|
-webkit-tap-highlight-color: transparent;
|
|
gap: 0.75rem;
|
|
}
|
|
.map-open-btn:active { opacity: 0.85; transform: scale(0.98); }
|
|
.map-open-icon { font-size: 1.5rem; flex-shrink: 0; }
|
|
.map-open-text { font-size: 0.9375rem; font-weight: 700; flex: 1; text-align: left; }
|
|
.map-open-arrow { font-size: 1.125rem; opacity: 0.7; flex-shrink: 0; }
|
|
|
|
.location-info {
|
|
padding: 0.75rem;
|
|
background: #f0fdf4;
|
|
border: 1px solid #bbf7d0;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.8125rem;
|
|
color: #166534;
|
|
margin-bottom: 0.75rem;
|
|
line-height: 1.5;
|
|
}
|
|
.location-info.empty {
|
|
background: #f9fafb;
|
|
border-color: #e5e7eb;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
/* Summary card (Step 6) */
|
|
.summary-card {
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 0.75rem;
|
|
padding: 1rem;
|
|
margin-bottom: 0.75rem;
|
|
background: #f9fafb;
|
|
}
|
|
.summary-row {
|
|
display: flex;
|
|
padding: 0.375rem 0;
|
|
}
|
|
.summary-label {
|
|
font-size: 0.75rem;
|
|
color: #6b7280;
|
|
width: 70px;
|
|
flex-shrink: 0;
|
|
}
|
|
.summary-value {
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
flex: 1;
|
|
}
|
|
|
|
/* Worker accordion (Step 6) */
|
|
.worker-accordion {
|
|
border: 1.5px solid #e5e7eb;
|
|
border-radius: 0.75rem;
|
|
margin-bottom: 0.5rem;
|
|
overflow: hidden;
|
|
}
|
|
.worker-accordion.overridden {
|
|
border-color: #f97316;
|
|
}
|
|
.worker-accordion-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.75rem 1rem;
|
|
background: #f9fafb;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
user-select: none;
|
|
}
|
|
.worker-accordion-header:active { background: #f3f4f6; }
|
|
.worker-accordion .acc-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
.worker-accordion .acc-name {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
}
|
|
.worker-accordion .acc-badge {
|
|
font-size: 0.625rem;
|
|
padding: 0.125rem 0.375rem;
|
|
border-radius: 9999px;
|
|
font-weight: 600;
|
|
}
|
|
.badge-default {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
}
|
|
.badge-override {
|
|
background: #ffedd5;
|
|
color: #c2410c;
|
|
}
|
|
.worker-accordion .acc-arrow {
|
|
font-size: 0.75rem;
|
|
color: #9ca3af;
|
|
transition: transform 0.2s;
|
|
}
|
|
.worker-accordion.open .acc-arrow { transform: rotate(180deg); }
|
|
.worker-accordion-body {
|
|
display: none;
|
|
border-top: 1px solid #e5e7eb;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
.worker-accordion.open .worker-accordion-body { display: block; }
|
|
.override-row {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
.override-label {
|
|
font-size: 0.75rem;
|
|
color: #6b7280;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
.override-select {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.8125rem;
|
|
background: white;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.75rem center;
|
|
padding-right: 2rem;
|
|
}
|
|
.override-select:focus {
|
|
outline: none;
|
|
border-color: #2563eb;
|
|
box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
|
|
}
|
|
.reset-btn {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
border: 1px dashed #d1d5db;
|
|
border-radius: 0.5rem;
|
|
background: white;
|
|
font-size: 0.75rem;
|
|
color: #6b7280;
|
|
cursor: pointer;
|
|
margin-top: 0.25rem;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.reset-btn:active { background: #f3f4f6; }
|
|
|
|
/* Empty state */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 2rem 1rem;
|
|
color: #9ca3af;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Fixed bottom nav */
|
|
.wizard-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
height: 68px;
|
|
background: white;
|
|
border-top: 1px solid #e5e7eb;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 1rem;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
@media (min-width: 480px) {
|
|
.wizard-nav { max-width: 480px; margin: 0 auto; }
|
|
}
|
|
.nav-btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 0.75rem;
|
|
font-size: 0.9375rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
touch-action: manipulation;
|
|
transition: all 0.15s;
|
|
}
|
|
.nav-btn:active { transform: scale(0.97); }
|
|
.nav-btn-prev {
|
|
background: #f3f4f6;
|
|
color: #374151;
|
|
}
|
|
.nav-btn-next {
|
|
background: #2563eb;
|
|
color: white;
|
|
}
|
|
.nav-btn-next:disabled {
|
|
background: #d1d5db;
|
|
cursor: not-allowed;
|
|
}
|
|
.nav-btn-next:not(:disabled):active { background: #1d4ed8; }
|
|
.nav-btn-save {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
.nav-btn-save:disabled {
|
|
background: #d1d5db;
|
|
cursor: not-allowed;
|
|
}
|
|
.nav-btn-save:not(:disabled):active { background: #059669; }
|
|
|
|
/* Landscape map overlay */
|
|
.landscape-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10000;
|
|
background: rgba(0, 0, 0, 0.95);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.landscape-inner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #111;
|
|
overflow: hidden;
|
|
}
|
|
.landscape-inner.rotated {
|
|
width: 100vh;
|
|
height: 100vw;
|
|
transform: translate(-50%, -50%) rotate(90deg);
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
}
|
|
.landscape-inner.no-rotate {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
.landscape-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 1rem;
|
|
background: linear-gradient(135deg, #2563eb, #1d4ed8);
|
|
color: white;
|
|
flex-shrink: 0;
|
|
min-height: 44px;
|
|
}
|
|
.landscape-header h3 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
.landscape-header .ls-selected {
|
|
font-size: 0.8125rem;
|
|
font-weight: 400;
|
|
opacity: 0.9;
|
|
margin-left: 0.5rem;
|
|
}
|
|
.landscape-close-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.landscape-canvas-wrap {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
background: #111;
|
|
padding: 8px;
|
|
}
|
|
.landscape-canvas-wrap canvas {
|
|
touch-action: none;
|
|
}
|
|
|
|
/* Loading overlay */
|
|
.loading-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
background: rgba(255,255,255,0.8);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
}
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 4px solid #e5e7eb;
|
|
border-top-color: #2563eb;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.loading-text {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
/* Toast */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 60px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 10001;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
pointer-events: none;
|
|
}
|
|
@keyframes slideIn {
|
|
from { opacity: 0; transform: translateY(-10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
@keyframes slideOut {
|
|
from { opacity: 1; transform: translateY(0); }
|
|
to { opacity: 0; transform: translateY(-10px); }
|
|
}
|
|
|
|
/* Bulk edit */
|
|
.bulk-bar { display:flex; align-items:center; justify-content:space-between; padding:0.625rem 0; border-bottom:1px solid #f3f4f6; margin-bottom:0.5rem; }
|
|
.bulk-bar .bulk-left { display:flex; align-items:center; gap:0.5rem; }
|
|
.bulk-bar .bulk-count { font-size:0.8125rem; color:#2563eb; font-weight:600; }
|
|
.bulk-edit-btn { padding:0.375rem 0.75rem; background:#2563eb; color:#fff; border:none; border-radius:0.5rem; font-size:0.75rem; font-weight:600; cursor:pointer; -webkit-tap-highlight-color:transparent; }
|
|
.bulk-edit-btn:disabled { background:#d1d5db; cursor:not-allowed; }
|
|
.bulk-edit-btn:not(:disabled):active { background:#1d4ed8; }
|
|
.bulk-form { background:#f0f9ff; border:1.5px solid #93c5fd; border-radius:0.75rem; padding:1rem; margin-bottom:0.75rem; }
|
|
.bulk-form .override-row { margin-bottom:0.75rem; }
|
|
.bulk-form .bulk-apply-btn { width:100%; padding:0.625rem; background:#2563eb; color:#fff; border:none; border-radius:0.5rem; font-size:0.875rem; font-weight:700; margin-top:0.5rem; cursor:pointer; -webkit-tap-highlight-color:transparent; }
|
|
.bulk-form .bulk-apply-btn:active { background:#1d4ed8; }
|
|
.bulk-form .bulk-cancel-btn { width:100%; padding:0.5rem; background:none; border:1px solid #d1d5db; border-radius:0.5rem; font-size:0.75rem; color:#6b7280; margin-top:0.375rem; cursor:pointer; -webkit-tap-highlight-color:transparent; }
|
|
.bulk-form .bulk-cancel-btn:active { background:#f3f4f6; }
|
|
.acc-check { width:20px; height:20px; accent-color:#2563eb; flex-shrink:0; margin:0; }
|
|
|
|
/* Inline add: dashed pill for "+" */
|
|
.pill-btn-add {
|
|
padding: 0.5rem 0.875rem;
|
|
border: 1.5px dashed #93c5fd;
|
|
border-radius: 2rem;
|
|
background: white;
|
|
font-size: 0.8125rem;
|
|
color: #2563eb;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
white-space: nowrap;
|
|
transition: all 0.12s;
|
|
}
|
|
.pill-btn-add:active { background: #eff6ff; transform: scale(0.97); }
|
|
|
|
/* Inline add: dashed list-item for new task */
|
|
.list-item-add {
|
|
padding: 0.875rem 1rem;
|
|
border: 1.5px dashed #93c5fd;
|
|
border-radius: 0.75rem;
|
|
margin-bottom: 0.5rem;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
text-align: center;
|
|
font-size: 0.8125rem;
|
|
color: #2563eb;
|
|
transition: all 0.12s;
|
|
}
|
|
.list-item-add:active { background: #eff6ff; transform: scale(0.98); }
|
|
|
|
/* Inline add form */
|
|
.inline-add-form {
|
|
background: #f0f9ff;
|
|
border: 1.5px solid #93c5fd;
|
|
border-radius: 0.75rem;
|
|
padding: 0.75rem;
|
|
margin-top: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
animation: fadeSlideIn 150ms ease-out;
|
|
}
|
|
.inline-add-form input[type="text"] {
|
|
width: 100%;
|
|
padding: 0.625rem 0.75rem;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.875rem;
|
|
background: white;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.inline-add-form input[type="text"]:focus {
|
|
outline: none;
|
|
border-color: #2563eb;
|
|
box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
|
|
}
|
|
.inline-add-form .inline-add-btns {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
.inline-add-form .inline-add-btns button {
|
|
flex: 1;
|
|
padding: 0.5rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.inline-add-form .btn-cancel {
|
|
background: white;
|
|
border: 1px solid #d1d5db;
|
|
color: #6b7280;
|
|
}
|
|
.inline-add-form .btn-cancel:active { background: #f3f4f6; }
|
|
.inline-add-form .btn-save {
|
|
background: #2563eb;
|
|
border: none;
|
|
color: white;
|
|
}
|
|
.inline-add-form .btn-save:active { background: #1d4ed8; }
|
|
.inline-add-form .btn-save:disabled {
|
|
background: #93c5fd;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
@keyframes fadeSlideIn {
|
|
from { opacity: 0; transform: translateY(-6px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body class="bg-gray-50">
|
|
<header class="bg-orange-700 text-white sticky top-0 z-50">
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div class="flex justify-between items-center h-14">
|
|
<div class="flex items-center gap-3">
|
|
<button id="mobileMenuBtn" class="lg:hidden text-orange-200 hover:text-white">
|
|
<i class="fas fa-bars text-xl"></i>
|
|
</button>
|
|
<i class="fas fa-industry text-xl text-orange-200"></i>
|
|
<h1 class="text-lg font-semibold">TK 공장관리</h1>
|
|
</div>
|
|
<div class="flex items-center gap-4">
|
|
<span id="headerUserName" class="text-sm hidden sm:block">-</span>
|
|
<div id="headerUserAvatar" class="w-8 h-8 bg-orange-600 rounded-full flex items-center justify-center text-sm font-bold">-</div>
|
|
<button onclick="doLogout()" class="text-orange-200 hover:text-white" title="로그아웃">
|
|
<i class="fas fa-sign-out-alt"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div id="mobileOverlay" class="hidden fixed inset-0 bg-black/50 z-30 lg:hidden"></div>
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 fade-in">
|
|
<div class="flex gap-6">
|
|
<nav id="sideNav" class="hidden lg:flex flex-col gap-1 w-52 flex-shrink-0 pt-2 fixed lg:static z-40 bg-white lg:bg-transparent p-4 lg:p-0 rounded-lg lg:rounded-none shadow-lg lg:shadow-none top-14 left-0 bottom-0 overflow-y-auto"></nav>
|
|
<div class="flex-1 min-w-0">
|
|
|
|
<div class="tbm-create-wrap">
|
|
<!-- Fixed Header -->
|
|
<div class="wizard-header">
|
|
<button type="button" class="back-btn" onclick="goBack()">←</button>
|
|
<h1>TBM 시작</h1>
|
|
</div>
|
|
|
|
<!-- Step Indicator -->
|
|
<div class="step-indicator" id="stepIndicator">
|
|
<div class="step active"><span class="step-dot">1</span><span>작업자</span></div>
|
|
<div class="step-line"></div>
|
|
<div class="step"><span class="step-dot">2</span><span>프로젝트+공정</span></div>
|
|
<div class="step-line"></div>
|
|
<div class="step"><span class="step-dot">3</span><span>확인</span></div>
|
|
</div>
|
|
|
|
<!-- Step Content -->
|
|
<div class="step-content" id="stepContainer">
|
|
<!-- Dynamically rendered by tbm-create.js -->
|
|
</div>
|
|
|
|
<!-- Fixed Bottom Nav -->
|
|
<div class="wizard-nav" id="wizardNav">
|
|
<button type="button" class="nav-btn nav-btn-prev" id="prevBtn" style="visibility:hidden;">← 이전</button>
|
|
<button type="button" class="nav-btn nav-btn-next" id="nextBtn">다음 →</button>
|
|
</div>
|
|
|
|
<!-- Landscape Map Overlay removed - workplace selection moved to detail edit stage -->
|
|
|
|
<!-- Loading Overlay -->
|
|
<div id="loadingOverlay" class="loading-overlay">
|
|
<div class="loading-spinner"></div>
|
|
<div class="loading-text" id="loadingText">데이터를 불러오는 중...</div>
|
|
</div>
|
|
|
|
<!-- Toast Container -->
|
|
<div id="toastContainer" class="toast-container"></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Scripts -->
|
|
<script src="/static/js/tkfb-core.js?v=2026040103"></script>
|
|
<script src="/js/api-base.js?v=2026040101"></script>
|
|
<!-- 공통 모듈 -->
|
|
<script src="/js/common/utils.js?v=2026040101"></script>
|
|
<script src="/js/common/base-state.js?v=2026040101"></script>
|
|
<script src="/js/tbm/state.js?v=2026040101"></script>
|
|
<script src="/js/tbm/utils.js?v=2026040101"></script>
|
|
<script src="/js/tbm/api.js?v=2026040101"></script>
|
|
<script src="/js/tbm-create.js?v=2026040101"></script>
|
|
<script>initAuth();</script>
|
|
</body>
|
|
</html>
|