* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', 'Malgun Gothic', sans-serif; height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: #f0f2f5; } #header { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #fff; border-bottom: 1px solid #e0e0e0; box-shadow: 0 1px 3px rgba(0,0,0,0.08); z-index: 1000; min-height: 56px; gap: 12px; flex-wrap: wrap; } .header-left { display: flex; align-items: center; gap: 12px; } .header-left h1 { font-size: 20px; color: #1a73e8; display: flex; align-items: center; gap: 8px; } .header-subtitle { color: #666; font-size: 13px; } .header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; white-space: nowrap; } .btn-primary { background: #1a73e8; color: #fff; } .btn-primary:hover { background: #1557b0; } .btn-success { background: #10b981; color: #fff; } .btn-success:hover { background: #059669; } .btn-danger { background: #ef4444; color: #fff; } .btn-danger:hover { background: #dc2626; } .btn-small { padding: 4px 10px; font-size: 11px; border: none; border-radius: 4px; cursor: pointer; margin-top: 4px; } .status-badge { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; background: #e5e7eb; color: #6b7280; min-width: 80px; text-align: center; } .status-badge.partial { background: #fef3c7; color: #d97706; } .status-badge.complete { background: #d1fae5; color: #059669; } #tabBar { display: flex; align-items: center; background: #e8eaed; padding: 0 12px; border-bottom: 1px solid #d0d0d0; min-height: 40px; gap: 2px; z-index: 999; flex-shrink: 0; } .tab-list { display: flex; align-items: stretch; flex: 1; overflow-x: auto; gap: 2px; } .tab-list::-webkit-scrollbar { height: 3px; } .tab-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; } .tab-item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #dde0e3; border-radius: 6px 6px 0 0; cursor: pointer; font-size: 13px; color: #555; white-space: nowrap; user-select: none; transition: all 0.15s; min-width: 0; } .tab-item:hover { background: #d0d3d6; } .tab-item.active { background: #fff; color: #1a73e8; font-weight: 600; box-shadow: 0 -1px 2px rgba(0,0,0,0.06); } .tab-name { flex: 1; min-width: 30px; } .tab-name:hover { text-decoration: underline; } .tab-badge { font-size: 10px; color: #888; background: #f0f0f0; padding: 1px 6px; border-radius: 8px; } .tab-item.active .tab-badge { background: #e8f0fe; color: #1a73e8; } .tab-del { font-size: 16px; color: #999; line-height: 1; padding: 0 2px; } .tab-del:hover { color: #ef4444; } .tab-add { flex-shrink: 0; width: 30px; height: 30px; border: none; background: transparent; border-radius: 6px; cursor: pointer; color: #666; font-size: 16px; display: flex; align-items: center; justify-content: center; margin-left: 4px; } .tab-add:hover { background: #d0d3d6; color: #1a73e8; } .empty-state { display: flex; align-items: center; justify-content: center; height: 100%; color: #9ca3af; font-size: 14px; text-align: center; padding: 40px; } #main { display: flex; flex: 1; overflow: hidden; } #sidebar { width: 340px; min-width: 340px; background: #fff; border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; overflow: hidden; } .sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e0e0e0; } .sidebar-header h2 { font-size: 15px; display: flex; align-items: center; gap: 6px; color: #333; } .count-badge { background: #1a73e8; color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; } .worker-list { flex: 1; overflow-y: auto; padding: 8px; } .worker-card { display: flex; gap: 10px; padding: 10px 12px; margin-bottom: 6px; background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; cursor: grab; transition: all 0.2s; user-select: none; } .worker-card:hover { border-color: #1a73e8; box-shadow: 0 2px 8px rgba(26,115,232,0.12); } .worker-card:active { cursor: grabbing; } .worker-card.dragging { opacity: 0.4; } .worker-card.assigned { background: #ecfdf5; border-color: #10b981; } .worker-card-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; color: #6b7280; flex-shrink: 0; font-size: 16px; } .worker-card-avatar.assigned { background: #d1fae5; color: #059669; } .worker-card-info { flex: 1; min-width: 0; } .worker-card-name { font-weight: 600; font-size: 14px; color: #111; } .worker-card-detail { font-size: 12px; color: #6b7280; margin-top: 1px; } .worker-card-address { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; } .worker-card-hope { font-size: 11px; color: #d97706; margin-top: 2px; display: flex; align-items: center; gap: 3px; } .worker-card-assignment { margin-top: 4px; } .tag-assigned { font-size: 11px; color: #059669; font-weight: 500; display: flex; align-items: center; gap: 3px; } .tag-unassigned { font-size: 11px; color: #9ca3af; } #mapContainer { flex: 1; position: relative; overflow: hidden; } #map { width: 100%; height: 100%; } #dropOverlay { position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border: 3px dashed #1a73e8; border-radius: 12px; background: rgba(26,115,232,0.06); display: none; align-items: center; justify-content: center; font-size: 18px; color: #1a73e8; font-weight: 600; pointer-events: none; z-index: 500; } #dropOverlay.active { display: flex; } #dropOverlay::before { content: '\f279'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 8px; } .marker-icon { display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.2); border: 2px solid #fff; } .worker-marker { background: #f59e0b; color: #fff; font-size: 14px; } .worker-assigned-marker { background: #10b981; color: #fff; font-size: 14px; } .workplace-marker { background: #1a73e8; color: #fff; font-size: 18px; border-radius: 8px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; } .marker-badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; background: #ef4444; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); } .sidebar-tabs { display: flex; background: #f0f2f5; border-bottom: 1px solid #e0e0e0; } .sidebar-tab { flex: 1; padding: 10px 8px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 500; color: #6b7280; transition: all 0.2s; } .sidebar-tab:hover { color: #1a73e8; } .sidebar-tab.active { color: #1a73e8; background: #fff; border-bottom: 2px solid #1a73e8; } .sidebar-tab .count { margin-left: 4px; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #e5e7eb; } .sidebar-tab.active .count { background: #e8f0fe; } .workplace-list { flex: 1; overflow-y: auto; padding: 8px; display: none; } .workplace-list.active { display: block; } .worker-list.hidden { display: none; } .workplace-card { display: flex; gap: 10px; padding: 10px 12px; margin-bottom: 6px; background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; transition: all 0.2s; cursor: pointer; } .workplace-card:hover { border-color: #1a73e8; box-shadow: 0 2px 8px rgba(26,115,232,0.12); } .workplace-card-avatar { width: 40px; height: 40px; border-radius: 8px; background: #dbeafe; display: flex; align-items: center; justify-content: center; color: #1a73e8; flex-shrink: 0; font-size: 16px; } .workplace-card-info { flex: 1; min-width: 0; } .workplace-card-name { font-weight: 600; font-size: 14px; color: #111; } .workplace-card-address { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; } .workplace-card-assignment { margin-top: 4px; font-size: 12px; color: #1a73e8; font-weight: 500; } .popup-content { font-size: 13px; line-height: 1.5; min-width: 150px; } .wp-assignees { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; } .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; z-index: 9999; transition: all 0.3s; opacity: 1; box-shadow: 0 4px 12px rgba(0,0,0,0.15); white-space: nowrap; } .toast.hidden { opacity: 0; transform: translateX(-50%) translateY(10px); pointer-events: none; } .toast.success { background: #10b981; } .toast.error { background: #ef4444; } .toast.info { background: #1a73e8; } .toast.warning { background: #f59e0b; color: #333; } .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: 9999; } .modal-overlay.hidden { display: none; } .modal-content { background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); min-width: 400px; max-width: 500px; } .modal-header { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; } .modal-header h3 { font-size: 16px; color: #1f2937; margin: 0; display: flex; align-items: center; gap: 8px; } .modal-body { padding: 24px 20px; text-align: center; } .loading-spinner { font-size: 48px; color: #1a73e8; margin-bottom: 16px; } .loading-message { font-size: 14px; color: #374151; margin-bottom: 16px; font-weight: 500; } .loading-progress { margin-bottom: 12px; } .loading-progress.hidden { display: none; } .progress-bar { width: 100%; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: #1a73e8; transition: width 0.2s; } .progress-text { font-size: 12px; color: #6b7280; margin-top: 4px; } .loading-log { max-height: 150px; overflow-y: auto; text-align: left; background: #f9fafb; border-radius: 6px; padding: 8px 12px; font-size: 11px; color: #6b7280; line-height: 1.5; } .loading-log:empty { display: none; }