@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";html{font-size:62.5%;scroll-behavior:smooth}body{font-family:Roboto,Varela,sans-serif;line-height:1;font-weight:500;color:#212529}.stage-info{cursor:pointer;border-radius:6px;padding:8px 12px}.stage-access-management{padding:24px;background:#f8fafc;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.stage-access-header{margin-bottom:24px}.stage-access-container{max-width:1400px;margin:0 auto;padding:0}.header-content{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.header-left h1{font-size:28px;font-weight:600;color:#1f2937;margin:0;display:flex;align-items:center;gap:12px}.line-selection-section{background:#fff;padding:20px;border-radius:12px;box-shadow:0 1px 3px #0000001a;margin-bottom:24px;border:1px solid #e5e7eb}.line-selector-wrapper{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.line-selector-wrapper label{font-size:14px;font-weight:500;color:#374151;white-space:nowrap;display:flex;align-items:center;gap:8px}.line-selector-icon{width:16px;height:16px;color:#6b7280}.line-dropdown{min-width:350px;padding:10px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff;cursor:pointer;transition:all .2s ease}.line-dropdown:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:16px;text-align:center;transition:all .2s ease;position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#3b82f6,#8b5cf6)}.stat-card:hover{border-color:#cbd5e1;box-shadow:0 2px 8px #0000001a;transform:translateY(-1px)}.stat-number{font-size:1.75rem;font-weight:700;color:#1f2937;margin-bottom:4px;display:flex;align-items:center;justify-content:center;gap:6px}.stat-number-icon{width:20px;height:20px;color:#3b82f6}.stat-label{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.05em;font-weight:500;display:flex;align-items:center;justify-content:center;gap:3px}.stat-label-icon{width:12px;height:12px}.matrix-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.matrix-card-header{padding:20px 24px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#f9fafb,#fff)}.matrix-card-title{font-size:18px;font-weight:600;color:#1f2937;margin:0 0 6px;display:flex;align-items:center;gap:8px}.matrix-card-title-icon{width:20px;height:20px;color:#3b82f6}.matrix-card-description{color:#64748b;font-size:14px;margin:0;display:flex;align-items:center;gap:6px}.matrix-card-description-icon{width:14px;height:14px;color:#9ca3af}.matrix-controls{padding:16px 24px;border-bottom:1px solid #e2e8f0;background:#f9fafb;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.control-group{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.control-btn{padding:8px 14px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;border:1px solid;display:flex;align-items:center;gap:6px;min-width:110px;justify-content:center}.control-btn:disabled{opacity:.5;cursor:not-allowed}.control-btn-icon{width:14px;height:14px}.btn-success{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border-color:#10b981}.btn-success:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);border-color:#059669;transform:translateY(-1px);box-shadow:0 3px 6px #10b9814d}.btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border-color:#ef4444}.btn-danger:hover:not(:disabled){background:linear-gradient(135deg,#dc2626,#b91c1c);border-color:#dc2626;transform:translateY(-1px);box-shadow:0 3px 6px #ef44444d}.btn-primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border-color:#3b82f6}.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#2563eb;transform:translateY(-1px);box-shadow:0 3px 6px #3b82f64d}.btn-secondary{background:#fff;color:#64748b;border-color:#d1d5db}.btn-secondary:hover:not(:disabled){background:#f9fafb;border-color:#9ca3af;transform:translateY(-1px)}.matrix-table-wrapper{overflow:auto;max-height:70vh;border-radius:0 0 12px 12px}.matrix-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:auto}.matrix-table th{background:#f9fafb;color:#374151;font-weight:600;padding:16px 12px;text-align:center;border-bottom:1px solid #e2e8f0;border-right:1px solid #f1f5f9;position:static;vertical-align:middle}.matrix-table th:first-child{position:static;background:#f9fafb;width:280px;min-width:280px;max-width:280px;border-right:1px solid #e2e8f0;text-align:left;padding:16px 20px}.stage-header-cell{width:140px;min-width:140px;max-width:140px;text-align:center;padding:12px 8px;vertical-align:middle}.stage-header-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%}.stage-name{font-weight:600;color:#1f2937;text-align:center;line-height:1.2;display:flex;align-items:center;justify-content:center;gap:4px;font-size:13px;margin:0;word-wrap:break-word;max-width:100%}.stage-name-icon{width:14px;height:14px;color:#6b7280;flex-shrink:0}.stage-actions{display:flex;gap:4px;justify-content:center;align-items:center}.stage-bulk-btn{padding:4px 8px;font-size:11px;border-radius:4px;border:1px solid #d1d5db;background:#fff;color:#64748b;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:2px;font-weight:500;min-height:24px}.stage-bulk-btn:hover{background:#f9fafb;transform:translateY(-1px)}.stage-bulk-btn-icon{width:10px;height:10px}.stage-bulk-btn.grant{color:#10b981;border-color:#10b981}.stage-bulk-btn.grant:hover{background:#ecfdf5;border-color:#059669}.stage-bulk-btn.revoke{color:#ef4444;border-color:#ef4444}.stage-bulk-btn.revoke:hover{background:#fef2f2;border-color:#dc2626}.matrix-table td{padding:8px;border-bottom:1px solid #f1f5f9;border-right:1px solid #f8fafc;text-align:center;vertical-align:middle;height:60px}.matrix-table tbody tr{transition:background-color .2s}.matrix-table tbody tr:hover{background:#f8fafc}.user-cell{text-align:left!important;width:280px;min-width:280px;max-width:280px;position:static;background:#fff;border-right:1px solid #e2e8f0!important;padding:12px 20px!important}.matrix-table tbody tr:hover .user-cell{background:#f8fafc}.user-row{display:flex;align-items:center;gap:12px;width:100%}.user-avatar{width:36px;height:36px;border-radius:8px;background:linear-gradient(135deg,#3b82f6,#8b5cf6);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:14px;flex-shrink:0;border:2px solid white;box-shadow:0 2px 4px #3b82f64d}.user-info{flex:1;min-width:0;overflow:hidden}.user-name{font-weight:500;color:#1f2937;margin:0 0 4px;font-size:15px;display:flex;align-items:center;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-name-icon{width:14px;height:14px;color:#6b7280;flex-shrink:0}.user-username{color:#64748b;font-size:13px;margin:0 0 8px;display:flex;align-items:center;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-username-icon{width:12px;height:12px;flex-shrink:0}.user-bulk-actions{display:flex;gap:4px;flex-wrap:wrap}.user-bulk-btn{padding:3px 6px;font-size:10px;border-radius:4px;border:1px solid #d1d5db;background:#fff;color:#64748b;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:2px;font-weight:500;min-height:20px}.user-bulk-btn:hover{background:#f9fafb;transform:translateY(-1px)}.user-bulk-btn-icon{width:8px;height:8px}.user-bulk-btn.grant{color:#10b981;border-color:#10b981}.user-bulk-btn.grant:hover{background:#ecfdf5;border-color:#059669}.user-bulk-btn.revoke{color:#ef4444;border-color:#ef4444}.user-bulk-btn.revoke:hover{background:#fef2f2;border-color:#dc2626}.access-toggle{width:calc(100% - 12px);height:calc(100% - 12px);border-radius:8px;border:none;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;margin:6px;box-shadow:0 1px 3px #0000001a;position:relative}.access-toggle:hover{transform:translateY(-1px);box-shadow:0 2px 6px #00000026}.access-toggle-icon{width:20px;height:20px;position:relative;z-index:1}.access-toggle.granted{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.access-toggle.granted:hover{background:linear-gradient(135deg,#059669,#047857);box-shadow:0 3px 8px #10b9814d}.access-toggle.denied{background:#f8fafc;color:#6b7280;border:1px solid #e5e7eb}.access-toggle.denied:hover{background:#f1f5f9;border-color:#d1d5db;color:#374151}.empty-state{text-align:center;padding:50px 24px;color:#64748b;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px}.empty-state-icon{width:48px;height:48px;color:#9ca3af;margin:0 auto 16px}.empty-state h3{font-size:18px;font-weight:500;color:#374151;margin:0 0 8px}.empty-state p{font-size:14px;margin:0;line-height:1.5;max-width:400px}.loading-state{display:flex;align-items:center;justify-content:center;padding:50px 24px;color:#64748b;gap:12px}.spinner{width:20px;height:20px;border:2px solid #e2e8f0;border-top:2px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}.success-alert{background:linear-gradient(135deg,#ecfdf5,#f0fdf4);border:1px solid #10b981;color:#065f46;padding:12px 16px;border-radius:8px;margin-bottom:16px;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}.success-alert-icon{width:16px;height:16px;color:#10b981;flex-shrink:0}@media(max-width:1200px){.stage-access-management{padding:16px}.matrix-table th:first-child,.user-cell{width:240px;min-width:240px;max-width:240px}.stage-header-cell{width:120px;min-width:120px;max-width:120px}}@media(max-width:768px){.header-content{flex-direction:column;gap:16px;align-items:stretch}.line-selector-wrapper{flex-direction:column;align-items:stretch;gap:12px}.line-dropdown{min-width:auto}.stats-grid{grid-template-columns:repeat(2,1fr);gap:12px}.matrix-controls{flex-direction:column;align-items:stretch;gap:10px}.control-group{justify-content:center;flex-wrap:wrap}.matrix-table th:first-child,.user-cell{width:200px;min-width:200px;max-width:200px}.stage-header-cell{width:100px;min-width:100px;max-width:100px}.user-avatar{width:32px;height:32px;font-size:12px}.user-name{font-size:14px}.user-username{font-size:12px}}@media(max-width:640px){.matrix-card-header{padding:16px}.matrix-controls{padding:12px 16px}.control-btn{min-width:auto;flex:1;font-size:12px;padding:6px 10px}.stats-grid{grid-template-columns:1fr}.matrix-table th:first-child,.user-cell{width:180px;min-width:180px;max-width:180px}.stage-header-cell{width:80px;min-width:80px;max-width:80px}}.content-area-center{background:#fff;border-radius:8px;border:1px solid #eaecf0;box-shadow:0 1px 2px #1018280d;min-height:500px;overflow:hidden;align-items:center;justify-content:center}.matrix-card.centered{display:flex;align-items:center;justify-content:center;min-height:400px}.user-stage-dashboard{height:80vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,sans-serif;color:#333}.dashboard-header{background:#f3f4f6;border-bottom:1px solid #e0e0e0;padding:10px 24px}.offline-alert{margin:8px auto 0;max-width:1600px;background:#e12b2b;color:#fff;border:1px solid #ffecb5;border-radius:6px;padding:10px 14px;font-size:16px;text-align:center}.dashboard-header-content{max-width:1600px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.stage-info{flex:1}.stage-title{font-size:24px;font-weight:700;color:#000;margin:0 0 8px;text-transform:uppercase;letter-spacing:.5px}.operator-info{display:flex;align-items:center;gap:8px;color:#666;font-size:14px}.operator-info svg{width:16px;height:16px}.line-selection-wrapper{display:flex;align-items:center;gap:16px}.line-selection-group{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.line-select{min-width:300px;padding:10px 12px;border:2px solid #e0e0e0;border-radius:4px;font-size:16px;background:#fff;color:#333;cursor:pointer;outline:none}.detail-view-btn{background:#28a745;color:#fff;border:none;padding:12px 16px;border-radius:4px;font-size:16px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background-color .2s}.detail-view-btn:hover{background:#218838}.dashboard-main{max-width:1600px;margin:0 auto;padding:0}.stage-navigation-container{display:grid;border:1px solid #e0e0e0;grid-template-columns:44px 1fr 44px;gap:8px;align-items:center;padding:10px 6px;background:#f3f4f6;border-radius:10px;box-shadow:0 1px 2px #0c161c08;margin-top:12px}.scroll-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:45px;border-radius:8px;background:#e5e7eb;border:1px solid rgba(12,22,28,.05);cursor:pointer;transition:transform .12s ease,background-color .12s ease}.scroll-btn:hover:not(.disabled){transform:translateY(-1px)}.scroll-btn.disabled{opacity:.45;cursor:not-allowed}.scroll-btn svg{stroke:#073145}.stage-navigation{overflow:hidden}.stage-tabs{display:flex;gap:12px;padding:8px;overflow-x:auto;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;align-items:stretch;scrollbar-width:none;-ms-overflow-style:none}.stage-tabs::-webkit-scrollbar{display:none}.stage-tab{min-width:220px;max-width:340px;background:#e5e7eb;border-radius:10px;padding:12px 14px;border:1px solid rgba(7,49,66,.04);cursor:pointer;display:flex;flex-direction:column;gap:10px;scroll-snap-align:center;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.stage-tab:hover{transform:translateY(-4px)}.stage-tab.has-access{background:#57bf7c2e}.stage-tab.active{background:#218e46;color:#e6f6fb;border:1px solid rgba(0,188,212,.14);box-shadow:0 8px 24px #0319251f}.stage-tab-header{text-align:center}.stage-name-dashboard{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.6px}.badges-row{margin-top:5px;display:flex;justify-content:space-between}.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:600;background:#eff1f4e6;border:1px solid rgba(12,22,28,.04);cursor:pointer}.badge svg{opacity:.95}.badge.access.edit,.badge.access.view,.badge.input{background:#0a161e0a;border-color:#0731420a}.badge-text{line-height:1}@media(max-width:880px){.stage-tab{min-width:200px}}.content-area{min-height:600px;padding:0}.loading-container{display:flex;align-items:center;justify-content:center;padding:60px;color:#666;gap:16px;background:#fff}.empty-state{text-align:center;padding:60px 24px;color:#666;background:#fff}.empty-state-icon{width:64px;height:64px;color:#ccc;margin:0 auto 20px}.empty-state h3{font-size:18px;font-weight:600;color:#333;margin:0 0 12px}.empty-state p{font-size:14px;margin:0;line-height:1.5}.stage-dashboard-redesigned{background:#f5f5f5;padding:20px;display:flex;flex-direction:column;gap:16px;max-width:1600px;margin:0 auto}.metric-card-small{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:16px;display:flex;align-items:center;gap:12px;min-height:80px}.part-selector-row{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px}.part-selector-container{display:grid;grid-template-columns:auto 1fr auto auto;gap:20px;align-items:center}.part-selector-label{font-size:14px;font-weight:600;color:#333}.part-selector-input{flex:1}.input-type-display{display:flex;flex-direction:column;align-items:center;gap:8px}.input-label{font-size:12px;font-weight:600;color:#666;text-transform:uppercase}.input-buttons{display:flex;gap:8px}.input-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:4px;font-size:12px;font-weight:500;text-transform:uppercase}.input-btn.physical-btn{background:#ffc107;color:#000}.input-btn.scanner-btn{background:#17a2b8;color:#fff}.input-btn.manual-btn{background:#6c757d;color:#fff}.wi-display{display:flex;align-items:center}.wi-view-btn{background:#007bff;color:#fff;border:none;padding:14px 16px;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background-color .2s}.wi-view-btn:hover:not(:disabled){background:#0056b3}.wi-view-btn:disabled{background:#6c757d;cursor:not-allowed}.dropdown-content{position:absolute;top:100%;left:0;right:0;background:#fff;border:2px solid #007bff;border-top:none;border-radius:0 0 4px 4px;box-shadow:0 4px 6px #0000001a;max-height:300px;overflow:hidden;z-index:50}.start-btn:hover:not(:disabled){background:#218838;transform:translateY(-1px)}.start-btn.active{background:#155724;box-shadow:0 0 0 4px #28a7454d}.stop-btn:hover:not(:disabled){background:#c82333;transform:translateY(-1px)}.report-btn:hover:not(:disabled){background:#e0a800;transform:translateY(-1px)}.status-row{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center}.status-label,.cycle-label{font-weight:600;color:#333}.status-value{padding:4px 12px;border-radius:4px;font-weight:500;font-size:14px}.status-value.waiting{background:#f8f9fa;color:#6c757d}.cycle-value{font-weight:600;color:#007bff}@media(max-width:1200px){.metrics-row{grid-template-columns:repeat(2,1fr)}.large-cards-row{grid-template-columns:repeat(3,1fr)}.control-buttons-row{grid-template-columns:1fr}}@media(max-width:768px){.dashboard-header-content{flex-direction:column;gap:16px;align-items:stretch}.line-selection-wrapper{flex-direction:column;gap:12px}.line-selection-group{align-items:stretch}.line-select{min-width:auto}.stage-dashboard-redesigned{padding:16px}.metrics-row,.large-cards-row{grid-template-columns:1fr}.large-card{padding:24px;min-height:160px}.large-card-number{font-size:36px}.stage-tab{min-width:160px}.status-row{flex-direction:column;gap:12px;align-items:stretch}}@media(max-width:480px){.stage-dashboard-redesigned{padding:12px;gap:12px}.large-card{padding:20px;min-height:140px}.large-card-number{font-size:28px}.part-selector-container{gap:12px}}.stage-auth-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#101828b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:overlayFadeIn .2s ease-out}.stage-auth-modal{background-color:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #10182840;width:100%;max-width:420px;overflow:hidden;animation:modalSlideIn .3s ease-out;border:1px solid #eaecf0}.stage-auth-header{padding:24px 24px 16px;text-align:center;border-bottom:1px solid #eaecf0;background:#fafbfc}.auth-icon{width:56px;height:56px;background:linear-gradient(135deg,#6366f1,#4338ca);border-radius:12px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:24px;color:#fff;box-shadow:0 4px 12px #6366f140}.stage-auth-title{font-size:18px;font-weight:600;color:#101828;margin:0 0 8px}.stage-auth-subtitle{font-size:14px;color:#667085;margin:0;line-height:1.5}.stage-name-highlight{font-weight:600;color:#6366f1}.stage-auth-body{padding:24px}.auth-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column}.form-label{font-size:14px;font-weight:500;color:#344054;margin-bottom:6px}.form-input{padding:12px 14px;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;transition:all .2s ease;background:#fff;color:#101828}.form-input:focus{outline:none;border-color:#6366f1;background:#fff;box-shadow:0 0 0 4px #6366f11f}.form-input:disabled{background-color:#f9fafb;color:#667085;cursor:not-allowed;border-color:#eaecf0}.form-input.error{border-color:#ef4444;background:#fef2f2}.form-input.error:focus{box-shadow:0 0 0 4px #ef44441f}.error-message{color:#ef4444;font-size:12px;margin-top:6px;font-weight:500;display:flex;align-items:center;gap:4px}.auth-buttons{display:flex;gap:12px;margin-top:24px}.auth-button{flex:1;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;border:1px solid;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px}.auth-button:disabled{opacity:.6;cursor:not-allowed}.auth-button-primary{background:#6366f1;color:#fff;border-color:#6366f1}.auth-button-primary:hover:not(:disabled){background:#4338ca;border-color:#4338ca;transform:translateY(-1px);box-shadow:0 4px 12px #6366f166}.auth-button-secondary{background:#fff;color:#344054;border-color:#d0d5dd}.auth-button-secondary:hover:not(:disabled){background:#f9fafb;border-color:#9ca3af}.loading-spinner{width:16px;height:16px;border:2px solid transparent;border-top:2px solid currentColor;border-radius:50%;animation:spin 1s linear infinite}.security-notice{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:12px;margin-bottom:20px;font-size:12px;color:#0369a1;display:flex;align-items:center;gap:8px;line-height:1.4}@media(max-width:480px){.stage-auth-modal{margin:12px;max-width:none}.stage-auth-header,.stage-auth-body{padding:20px}.auth-buttons{flex-direction:column;gap:8px}.auth-button{width:100%}}.stage-dashboard-redesigned{background:#fff;padding:0;display:flex;flex-direction:column;gap:12px;margin:12px auto 0;max-width:1600px}.metrics-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metric-card-small{background:#f3f4f6;border:1px solid #e0e0e0;border-radius:8px;padding:16px;display:flex;align-items:center;gap:12px;min-height:80px;transition:transform .2s ease}.metric-card-small:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.metric-card-small.runtime{border-left:4px solid #6c757d}.metric-card-small.produced{border-left:4px solid #28a745}@keyframes stageBlinkPulse{0%{box-shadow:inset 0 0 #28a74500;background-color:inherit}20%{box-shadow:inset 0 0 0 9999px #0e6422d7;background-color:#15602d}90%{box-shadow:inset 0 0 0 9999px #0e6422d7;background-color:#15602d}to{box-shadow:inset 0 0 #28a74500;background-color:inherit}}.blink-stage-dashboard{animation:stageBlinkPulse 1.2s ease-out}.metric-card-small.rejected{border-left:4px solid #dc3545}.metric-card-small.target{border-left:4px solid #17a2b8}.metric-card-small .metric-icon{width:40px;height:40px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.metric-card-small.runtime .metric-icon{background:#6c757d}.metric-card-small.produced .metric-icon{background:#28a745}.metric-card-small.rejected .metric-icon{background:#dc3545}.metric-card-small.target .metric-icon{background:#17a2b8}.metric-card-small .metric-content{flex:1}.metric-card-small .metric-label{font-size:12px;font-weight:600;color:#666;text-transform:uppercase;margin:0 0 4px}.metric-card-small .metric-value{font-size:18px;font-weight:700;color:#333;margin:0}.large-cards-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.large-card{border-radius:12px;padding:20px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:200px;position:relative;overflow:hidden;transition:transform .2s ease;background-color:#f3f4f6;color:#333}.large-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.large-card.produced-card{background:#28a745;color:#fff}.large-card.rejected-card{background:#dc3545;color:#fff}.large-card.target-card{background:#6c757d;color:#fff}.large-card-icon{margin-bottom:16px;opacity:.9}.large-card-content{display:flex;flex-direction:column;align-items:center;width:100%}.large-card-number{font-size:48px;font-weight:800;line-height:1;margin-bottom:8px}.large-card-label{font-size:16px;font-weight:500;opacity:.9}.progress-bar{width:100%;height:6px;background:#ffffff4d;border-radius:3px;margin-top:16px;overflow:hidden}.progress-fill{height:100%;background:#333;border-radius:3px;transition:width .6s ease}.target-card .progress-fill{background:#fff}.part-selector-row{background:#f3f4f6;border-radius:10px;border:1px solid #e0e0e0;padding:20px}.part-selector-container{display:flex;align-items:center;gap:20px;width:100%}.part-selector-input{flex:1;min-width:300px}.action-buttons-group{display:flex;gap:12px;align-items:center;flex-shrink:0}.action-btn{display:flex;align-items:center;gap:8px;padding:12px 16px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap}.edit-wi-btn{background:#6c757d;color:#fff}.edit-wi-btn:hover:not(:disabled){background:#5a6268;transform:translateY(-1px)}.increment-btn{background:#28a745;color:#fff}.increment-btn:hover:not(:disabled){background:#218838;transform:translateY(-1px)}.wi-view-btn{background:#007bff;color:#fff}.wi-view-btn:hover:not(:disabled){background:#0056b3;transform:translateY(-1px)}.action-btn:disabled{background:#6c757d;color:#adb5bd;cursor:not-allowed;opacity:.6;transform:none}.part-selector{position:relative;width:100%}.custom-dropdown{position:relative}.dropdown-button{width:100%;padding:12px 16px;border:2px solid #e0e0e0;border-radius:6px;background:#fff;cursor:pointer;text-align:left;font-size:16px;display:flex;align-items:center;justify-content:space-between;transition:border-color .2s;min-height:48px;outline:none}.placeholder{color:#999}.dropdown-arrow{transition:transform .3s ease;font-size:12px;color:#666}.dropdown-arrow.open{transform:rotate(180deg)}.dropdown-content{position:absolute;top:100%;left:0;right:0;background:#fff;border:2px solid #e0e0e0;border-top:none;border-radius:0 0 6px 6px;box-shadow:0 4px 6px #0000001a;max-height:300px;overflow:hidden;z-index:50}.search-container{padding:12px;border-bottom:1px solid #e0e0e0;background:#f8f9fa}.search-input{width:100%;padding:8px 12px;border:1px solid #e0e0e0;border-radius:4px;font-size:16px;outline:none}.parts-list{max-height:200px;overflow-y:auto}.part-option{font-size:15px;padding:12px 16px;cursor:pointer;border-bottom:1px solid #f8f9fa;display:flex;justify-content:space-between;align-items:center;transition:background-color .2s}.part-option:hover{background:#f8f9fa}.part-option.selected{background:#e3f2fd;color:#1976d2}.part-name{font-weight:500}.part-number{color:#666;font-size:12px}.no-results{padding:24px;text-align:center;color:#666;font-style:italic}.control-buttons-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.control-btn-dashboard{padding:20px;border:none;border-radius:8px;font-size:16px;font-weight:600;text-transform:uppercase;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;transition:all .2s ease;min-height:80px}.start-btn{background:#28a745;color:#fff}.start-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 8px #28a7454d}.start-btn.active{background:#6c757d;box-shadow:0 0 0 4px #28a7454d;animation:pulse 2s infinite}@keyframes pulse{0%{box-shadow:0 0 0 4px #28a7454d}50%{box-shadow:0 0 0 4px #28a7451a}to{box-shadow:0 0 0 4px #28a7454d}}.stop-btn{background:#dc3545;color:#fff}.stop-btn:hover:not(:disabled){background:#c82333;transform:translateY(-1px);box-shadow:0 4px 8px #dc35454d}.stop-btn.disabled{background:#6c757d;cursor:not-allowed;opacity:.6}.report-btn{background:#ffc107;color:#000}.report-btn:hover:not(:disabled){background:#e0a800;transform:translateY(-1px);box-shadow:0 4px 8px #ffc1074d}.control-btn-dashboard:disabled{background:#6c757d;color:#fff;cursor:not-allowed;opacity:.6;transform:none}.status-row{background:#f3f4f6;border:1px solid #e0e0e0;border-radius:8px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center}.status-info,.cycle-time-info{display:flex;align-items:center;gap:8px}.status-value{padding:4px 12px;border-radius:4px;font-weight:500;font-size:16px}.status-value.waiting{background:#acb8c4;color:#155724}.status-value.success{background:#d4edda;color:#155724}.status-value.error{background:#f8d7da;color:#721c24}.status-value.active{background:#d1ecf1;color:#0c5460}.cycle-value{font-size:16px;font-weight:600;background:#d1ecf1;padding:5px;border-radius:4px;color:#0c5460}.loading-state{display:flex;align-items:center;justify-content:center;padding:60px;color:#666;gap:16px;background:#fff;border-radius:8px;margin:20px}.spinner{width:24px;height:24px;border:3px solid #f3f3f3;border-top:3px solid #007bff;border-radius:50%;animation:spin 1s linear infinite}@media(max-width:1200px){.metrics-row{grid-template-columns:repeat(2,1fr)}.large-cards-row{grid-template-columns:repeat(3,1fr)}.control-buttons-row{grid-template-columns:1fr}.part-selector-container,.action-buttons-group{flex-wrap:wrap}}@media(max-width:768px){.stage-dashboard-redesigned{padding:16px}.metrics-row,.large-cards-row{grid-template-columns:1fr}.large-card{padding:24px;min-height:160px;background-color:#6c757d}.large-card-number{font-size:36px}.status-row{flex-direction:column;gap:12px;align-items:stretch}.part-selector-container{flex-direction:column;gap:16px;align-items:stretch}.action-buttons-group{justify-content:center;flex-wrap:wrap}.part-selector-input{min-width:unset}}@media(max-width:480px){.stage-dashboard-redesigned{padding:12px;gap:12px}.large-card{padding:20px;min-height:140px}.large-card-number{font-size:28px}.control-btn-dashboard{padding:16px;min-height:60px;font-size:14px}.part-selector-container{gap:12px}.metric-card-small{padding:12px;min-height:70px}.metric-card-small .metric-value{font-size:16px}.action-btn{padding:10px 12px;font-size:12px}}.wi-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#101828cc;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1100;padding:20px;animation:overlayFadeIn .2s ease-out}@keyframes overlayFadeIn{0%{opacity:0}to{opacity:1}}.wi-modal-container{background-color:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #10182840;width:100%;max-width:1200px;max-height:90vh;overflow:hidden;animation:modalSlideIn .3s ease-out;border:1px solid #eaecf0;display:flex;flex-direction:column}@keyframes modalSlideIn{0%{opacity:0;transform:scale(.95) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.wi-modal-header{padding:24px 24px 16px;border-bottom:1px solid #eaecf0;background:linear-gradient(135deg,#f9fafb,#fff);display:flex;align-items:center;justify-content:space-between}.wi-modal-title{font-size:20px;font-weight:600;color:#101828;margin:0;display:flex;align-items:center;gap:12px}.wi-modal-title-icon{width:24px;height:24px;color:#6366f1}.wi-modal-close-button{background:none;border:none;cursor:pointer;padding:8px;border-radius:8px;transition:all .2s;color:#667085}.wi-modal-close-button:hover{background-color:#f3f4f6;color:#374151}.wi-modal-close-icon{width:20px;height:20px}.wi-modal-body{flex:1;padding:24px;overflow-y:auto}.wi-part-info{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:16px;margin-bottom:24px}.wi-part-info h3{margin:0;color:#0369a1;font-size:16px;font-weight:600}.wi-upload-section{background:#f9fafb;border:2px dashed #d0d5dd;border-radius:12px;padding:24px;text-align:center;margin-bottom:24px;transition:all .2s}.wi-upload-section:hover{border-color:#6366f1;background:#f8faff}.wi-file-input{display:none}.wi-upload-button{background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;gap:8px;margin-bottom:8px}.wi-upload-button:hover:not(:disabled){background:linear-gradient(135deg,#4338ca,#3730a3);transform:translateY(-1px);box-shadow:0 4px 12px #6366f166}.wi-upload-button:disabled{opacity:.6;cursor:not-allowed}.wi-upload-icon{width:16px;height:16px}.wi-upload-icon.spinning{animation:spin 1s linear infinite}.wi-upload-hint{color:#667085;font-size:12px;margin:0}.wi-message{padding:12px 16px;border-radius:8px;margin-bottom:16px;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}.wi-message.wi-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.wi-message.wi-success{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}.wi-message-icon{width:16px;height:16px;flex-shrink:0}.wi-images-container{min-height:300px}.wi-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px;color:#667085;gap:12px}.wi-loading-spinner{width:24px;height:24px;animation:spin 1s linear infinite}.wi-empty-state{text-align:center;padding:48px 24px;color:#667085}.wi-empty-icon{width:48px;height:48px;color:#9ca3af;margin:0 auto 16px}.wi-empty-state h3{font-size:18px;font-weight:500;color:#374151;margin:0 0 8px}.wi-empty-state p{font-size:14px;margin:0}.wi-images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.wi-image-item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;transition:all .2s;cursor:move}.wi-image-item:hover{border-color:#6366f1;box-shadow:0 4px 12px #6366f126;transform:translateY(-2px)}.wi-image-item.dragging{opacity:.5;transform:rotate(5deg)}.wi-image-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#f9fafb;border-bottom:1px solid #e5e7eb}.wi-drag-handle{width:16px;height:16px;color:#9ca3af;cursor:move}.wi-image-order{font-size:12px;font-weight:600;color:#6366f1;background:#f0f9ff;padding:2px 8px;border-radius:4px;border:1px solid #bae6fd}.wi-delete-button{background:none;border:1px solid #e5e7eb;border-radius:6px;padding:6px;cursor:pointer;transition:all .2s;color:#667085}.wi-delete-button:hover{background:#fef2f2;border-color:#ef4444;color:#ef4444}.wi-delete-icon{width:14px;height:14px}.wi-image-wrapper{position:relative;width:100%;height:200px;overflow:hidden}.wi-image{width:100%;height:100%;object-fit:cover;transition:transform .2s}.wi-image-item:hover .wi-image{transform:scale(1.05)}.wi-file-preview{display:flex;align-items:center;justify-content:center;background:#f8fafc;border:2px dashed #e2e8f0}.wi-file-icon-container{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px}.wi-file-icon{color:#64748b}.wi-file-type-label{font-size:12px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.05em;background:#e2e8f0;padding:4px 8px;border-radius:4px}.wi-image-info{padding:12px 16px}.wi-image-filename{font-size:14px;font-weight:500;color:#374151;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wi-image-uploader{font-size:12px;color:#9ca3af;margin:0}.wi-modal-footer{padding:16px 24px;border-top:1px solid #e5e7eb;background:#f9fafb}.wi-instructions{color:#667085;font-size:12px;margin:0;text-align:center;font-style:italic}@media(max-width:768px){.wi-modal-container{margin:12px;max-width:none;max-height:95vh}.wi-modal-header,.wi-modal-body,.wi-modal-footer{padding:16px}.wi-images-grid{grid-template-columns:1fr;gap:16px}.wi-image-wrapper{height:180px}}.defect-images-container{position:fixed;background:#fff;border:2px solid #ef4444;border-radius:8px;box-shadow:0 10px 25px #ef44444d;z-index:1400;display:flex;flex-direction:column;overflow:hidden;min-width:250px;min-height:300px;-webkit-user-select:none;user-select:none}.defect-images-container.resizing{z-index:1500}.defect-resize-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1450;pointer-events:auto;background:transparent;display:none}.defect-resize-overlay.active{display:block}.defect-title-bar{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;cursor:move;flex-shrink:0;min-height:36px}.defect-title-content{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.defect-title-icon{width:14px;height:14px;flex-shrink:0}.defect-close-button{background:#fff3;border:1px solid rgba(255,255,255,.3);border-radius:4px;color:#fff;cursor:pointer;padding:4px;transition:all .2s;display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.defect-close-button:hover{background:#ffffff4d;border-color:#ffffff80}.defect-progress-container{height:3px;background:#f1f5f9;flex-shrink:0}.defect-progress-bar{height:100%;background:linear-gradient(90deg,#ef4444,#f97316);transition:width .1s ease-out}.defect-image-display{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f8fafc;position:relative;min-height:200px}.defect-image{max-width:100%;max-height:100%;object-fit:contain;transition:opacity .3s ease}.defect-footer{padding:8px 12px;background:#f9fafb;border-top:1px solid #e5e7eb;flex-shrink:0}.defect-image-info{display:flex;flex-direction:column;gap:2px;font-size:10px}.defect-counter{font-weight:600;color:#ef4444;background:#fef2f2;padding:2px 6px;border-radius:4px;border:1px solid #fecaca;align-self:flex-start}.defect-complaint-type{color:#374151;font-weight:500}.defect-date{color:#6b7280;font-weight:400}.defect-resize-handle{position:absolute;bottom:0;right:0;width:20px;height:20px;background:#ef4444;cursor:nw-resize;display:flex;align-items:center;justify-content:center;color:#fff;border-top-left-radius:4px;z-index:10}.defect-resize-handle:hover{background:#dc2626;width:22px;height:22px}.defect-resize-handle:active{background:#b91c1c}@media(max-width:768px){.defect-images-container{min-width:200px;min-height:250px;max-width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.defect-title-bar{padding:6px 10px;min-height:32px}.defect-title-content{font-size:11px}.defect-title-icon{width:12px;height:12px}.defect-close-button{width:20px;height:20px;padding:3px}.defect-footer{padding:6px 10px}.defect-image-info{font-size:9px}.defect-resize-handle{width:16px;height:16px}.defect-resize-handle:hover{width:18px;height:18px}}@media(max-width:480px){.defect-images-container{min-width:180px;min-height:220px}.defect-title-content span{display:none}.defect-title-content:after{content:"Defects"}}.wi-expanded-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1200;display:flex;align-items:center;justify-content:center;padding:0}.wi-expanded-container{background:#fff;width:100%;height:100%;max-width:100vw;max-height:100vh;display:flex;flex-direction:column;overflow:hidden}.wi-offline-alert{background:#e12b2b;color:#fff;border:1px solid #ffecb5;border-left:0;border-right:0;padding:10px 16px;font-size:16px;text-align:center}.wi-expanded-header{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border-bottom:1px solid #e5e7eb;padding:12px 20px;height:80px;box-sizing:border-box}@keyframes wiBlinkPulse{0%{box-shadow:inset 0 0 #28a74500;background-color:#f8fafc}20%{box-shadow:inset 0 0 0 9999px #28a74559;background-color:#c8f1da}90%{box-shadow:inset 0 0 0 9999px #28a74559;background-color:#c8f1da}to{box-shadow:inset 0 0 #28a74500;background-color:#f8fafc}}.wi-expanded-header.blink,.wi-expanded-footer.blink{animation:wiBlinkPulse 1.2s ease-out}.wi-expanded-header.blink .wi-download-button,.wi-expanded-header.blink .wi-expanded-close,.wi-expanded-footer.blink .wi-nav-button,.wi-expanded-footer.blink .wi-show-defects-button{animation:none!important}.wi-header-left{display:flex;align-items:center;gap:14px}.wi-back-arrow{font-size:22px;font-weight:600;cursor:pointer;color:#111827}.wi-header-identity{display:flex;flex-direction:column;line-height:1.4}.wi-stage-title{font-size:18px;font-weight:700;color:#0f172a}.wi-stage-subtitle{font-size:14px;color:#64748b}.wi-header-status{display:flex;align-items:center;gap:12px}.wi-status-badge{font-size:14px;font-weight:600;padding:8px 14px;border:1px solid #d1d5db;border-radius:6px;background:#f1f5f9;color:#111827;display:flex;align-items:center;gap:6px;text-transform:uppercase}.wi-status-badge b{font-size:18px;font-weight:700}.wi-status-badge.produced{background:#28a745;color:#fff;border:none}.wi-status-badge.rejected{background:#dc3545;color:#fff;border:none}.wi-header-actions{display:flex;align-items:center;gap:10px}.wi-download-button{background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;border:none;padding:8px 12px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;height:45px;width:45px}.wi-download-button:hover{transform:translateY(-1px);box-shadow:0 6px 16px #4338ca1f}.wi-expanded-close{background:#fff;border:1px solid #d0d5dd;border-radius:6px;padding:8px;cursor:pointer;color:#374151;height:45px;width:45px;display:flex;align-items:center;justify-content:center}.wi-expanded-close:hover{background:#f3f4f6;border-color:#9ca3af}.wi-expanded-content{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f8fafc}.wi-image-viewer-container{flex:1;display:flex;align-items:center;justify-content:center;height:100%;width:100%;padding:12px}.wi-responsive-image{max-width:100%;max-height:100%;object-fit:contain}.wi-file-viewer-container{flex:1;display:flex;flex-direction:column;height:100%}.wi-file-viewer{flex:1;width:100%;height:100%;border:none;background:#fff}.wi-expanded-footer{padding:10px 16px;border-top:1px solid #e5e7eb;background:#f9fafb;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.wi-footer-left{display:flex;gap:8px;align-items:center}.wi-footer-center{font-size:14px;text-transform:uppercase;font-weight:600;color:#000}.wi-footer-right{display:flex;justify-content:flex-end;align-items:center}.wi-nav-button{background:#fff;border:1px solid #d0d5dd;border-radius:4px;padding:4px;cursor:pointer;color:#374151;width:45px;height:45px;display:flex;align-items:center;justify-content:center}.wi-nav-button:hover{background:#f3f4f6;border-color:#6366f1;color:#6366f1}.wi-expanded-counter{font-size:12px;color:#667085;font-weight:500;background:#f3f4f6;padding:12px 6px;border-radius:4px;border:1px solid #e5e7eb}.wi-show-defects-button{background:#fff;border:1px solid #ef4444;border-radius:4px;padding:6px 10px;cursor:pointer;color:#ef4444;font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px}.wi-show-defects-button.active{background:#ef4444;color:#fff}@keyframes blinkFade{0%{background-color:#4caf50;color:#fff}50%{background-color:#fff;color:#4caf50}to{background-color:#4caf50;color:#fff}}.wi-status-badge.produced.blink{animation:blinkFade 1s ease-in-out}@media(max-width:900px){.wi-header-status{flex-wrap:wrap;gap:8px}.wi-status-badge{min-width:100px;justify-content:center}}@media(max-width:600px){.wi-stage-title{font-size:16px}.wi-stage-subtitle{font-size:12px}.wi-status-badge{font-size:12px;padding:6px 10px}.wi-status-badge b{font-size:14px}}.defect-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;display:flex;align-items:center;justify-content:center;z-index:9999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.defect-modal{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:600px;max-height:90vh;overflow:hidden;position:relative;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.defect-modal-header{padding:24px 24px 16px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:flex-start;background:linear-gradient(135deg,#f8fafc,#f1f5f9)}.modal-title-section{display:flex;align-items:flex-start;gap:16px}.modal-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;flex-shrink:0}.defect-modal-title{font-size:24px;font-weight:700;color:#111827;margin:0 0 4px;line-height:1.2}.defect-modal-subtitle{font-size:14px;color:#6b7280;margin:0;line-height:1.4}.modal-close-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:#f3f4f6;border-radius:8px;color:#6b7280;cursor:pointer;transition:all .2s ease;flex-shrink:0}.modal-close-button:hover:not(:disabled){background:#e5e7eb;color:#374151}.defect-modal-body{padding:24px;max-height:calc(90vh - 140px);overflow-y:auto}.defect-form{display:flex;flex-direction:column;gap:24px}.form-group{display:flex;flex-direction:column;gap:8px}.form-label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#374151;margin-bottom:4px}.form-label-icon{width:16px;height:16px;color:#6b7280}.selected-defects-container{min-height:80px;border:2px solid #e5e7eb;border-radius:8px;padding:12px;background:#f9fafb;transition:border-color .2s ease}.selected-defects-container:focus-within{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.empty-selection{display:flex;align-items:center;justify-content:center;gap:8px;color:#6b7280;font-size:14px;height:56px;text-align:center}.selected-defects-list{display:flex;flex-wrap:wrap;gap:8px}.selected-defect-tag{display:flex;align-items:center;gap:6px;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;padding:6px 8px 6px 12px;border-radius:6px;font-size:13px;font-weight:500;animation:slideIn .2s ease-out}@keyframes slideIn{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.defect-name{line-height:1}.remove-defect-button{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:#fff3;border-radius:4px;color:#fff;cursor:pointer;transition:background-color .2s ease;flex-shrink:0}.remove-defect-button:hover{background:#ffffff4d}.autocomplete-container{position:relative}.autocomplete-input{width:100%;padding:12px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:14px;color:#111827;background:#fff;transition:all .2s ease;outline:none}.autocomplete-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.autocomplete-input:disabled{background:#f9fafb;color:#6b7280;cursor:not-allowed}.autocomplete-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 10px 25px #0000001a;z-index:1000;max-height:200px;overflow-y:auto;margin-top:4px;animation:dropdownSlideDown .2s ease-out}@keyframes dropdownSlideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.autocomplete-option{display:flex;align-items:center;gap:8px;padding:12px 16px;cursor:pointer;font-size:14px;color:#374151;border-bottom:1px solid #f3f4f6;transition:background-color .15s ease}.autocomplete-option:last-child{border-bottom:none}.autocomplete-option:hover{background:#f8fafc;color:#111827}.autocomplete-no-results{padding:12px 16px;font-size:14px;color:#6b7280;text-align:center;font-style:italic}.form-error{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#dc2626;font-size:14px;font-weight:500}.defect-form-actions{display:flex;gap:12px;justify-content:flex-end;padding-top:8px;border-top:1px solid #e5e7eb}.defect-button{display:flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;outline:none;position:relative;min-width:120px;justify-content:center}.defect-button-secondary{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}.defect-button-secondary:hover:not(:disabled){background:#e5e7eb;color:#111827}.defect-button-primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 2px 4px #3b82f633}.defect-button-primary:hover:not(:disabled){background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 4px 8px #3b82f64d;transform:translateY(-1px)}.defect-button:disabled{opacity:.6;cursor:not-allowed;transform:none!important;box-shadow:none!important}.loading-spinner{animation:spin 1s linear infinite}.loading-spinner.large{width:24px;height:24px}.modal-loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:#ffffffe6;display:flex;align-items:center;justify-content:center;z-index:1001}.modal-loading-content{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px;color:#374151;font-size:14px;font-weight:500}@media(max-width:640px){.defect-modal{margin:16px;max-width:calc(100vw - 32px)}.defect-modal-header{padding:20px 16px 12px}.defect-modal-body{padding:16px}.modal-title-section{gap:12px}.modal-icon{width:40px;height:40px}.defect-modal-title{font-size:20px}.selected-defects-list{gap:6px}.selected-defect-tag{padding:4px 6px 4px 8px;font-size:12px}.defect-form-actions{flex-direction:column}.defect-button{width:100%}}@media(prefers-color-scheme:dark){.defect-modal{background:#1f2937;color:#f9fafb}.defect-modal-header{background:linear-gradient(135deg,#374151,#1f2937);border-bottom-color:#374151}.defect-modal-title{color:#f9fafb}.defect-modal-subtitle{color:#9ca3af}.modal-close-button{background:#374151;color:#9ca3af}.modal-close-button:hover:not(:disabled){background:#4b5563;color:#f3f4f6}.selected-defects-container{background:#374151;border-color:#4b5563}.empty-selection{color:#9ca3af}.autocomplete-input{background:#374151;border-color:#4b5563;color:#f9fafb}.autocomplete-input:focus{border-color:#3b82f6}.autocomplete-dropdown{background:#1f2937;border-color:#374151}.autocomplete-option{color:#f3f4f6;border-bottom-color:#374151}.autocomplete-option:hover{background:#374151;color:#f9fafb}.autocomplete-no-results{color:#9ca3af}.form-error{background:#450a0a;border-color:#dc2626;color:#fca5a5}.defect-button-secondary{background:#374151;color:#f3f4f6;border-color:#4b5563}.defect-button-secondary:hover:not(:disabled){background:#4b5563;color:#f9fafb}.modal-loading-overlay{background:#000c}.modal-loading-content{color:#f3f4f6}}.historical-data-page{background:#f8fafc;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,sans-serif}.historical-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:24px 0}.historical-container{max-width:1400px;margin:0 auto;padding:0 24px}.header-content{margin-bottom:24px}.header-left h1{font-size:28px;font-weight:600;color:#1f2937;margin:0 0 8px;display:flex;align-items:center;gap:12px}.header-title-icon{width:32px;height:32px;color:#3b82f6}.header-left p{color:#6b7280;font-size:16px;margin:0}.controls-section{display:flex;gap:24px;align-items:end;flex-wrap:wrap}.control-group{display:flex;flex-direction:column;gap:8px}.control-group label{font-size:14px;font-weight:500;color:#374151;display:flex;align-items:center;gap:6px}.control-icon{width:16px;height:16px;color:#6b7280}.control-select,.control-input{padding:10px 14px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff;min-width:200px;transition:all .2s ease}.control-select:focus,.control-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.historical-main{padding:24px 0}.loading-state,.error-state,.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;text-align:center;color:#6b7280}.empty-state-icon,.error-icon{width:64px;height:64px;color:#9ca3af;margin-bottom:16px}.empty-state h3,.error-state h3{font-size:20px;font-weight:500;color:#1f2937;margin:0 0 8px}.empty-state p,.error-state p{font-size:16px;margin:0}.spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top:3px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}.overview-content{display:flex;flex-direction:column;gap:32px}.date-info-card{background:#fff;padding:24px;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb}.date-info-card h2{font-size:24px;font-weight:600;color:#1f2937;margin:0 0 8px;display:flex;align-items:center;gap:12px}.date-info-card p{color:#6b7280;font-size:16px;margin:0}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}.summary-card{background:#fff;padding:24px;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;display:flex;align-items:center;gap:16px;transition:transform .2s ease}.summary-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.summary-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff}.summary-icon.total{background:linear-gradient(135deg,#3b82f6,#2563eb)}.summary-icon.runtime{background:linear-gradient(135deg,#10b981,#059669)}.summary-icon.performance{background:linear-gradient(135deg,#f59e0b,#d97706)}.summary-icon.availability{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}.summary-content{flex:1}.summary-value{font-size:24px;font-weight:700;color:#1f2937;margin-bottom:4px}.summary-label{font-size:14px;color:#6b7280;font-weight:500}.chart-section{background:#fff;padding:24px;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb}.section-header{margin-bottom:24px}.section-header h3{font-size:20px;font-weight:600;color:#1f2937;margin:0 0 8px;display:flex;align-items:center;gap:10px}.section-icon{width:20px;height:20px;color:#3b82f6}.section-header p{color:#6b7280;font-size:14px;margin:0}.chart-container{width:100%;margin-top:16px}.timeline-chart{background:#f9fafb;border-radius:8px;padding:16px}.custom-tooltip{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:12px;box-shadow:0 4px 12px #00000026}.tooltip-label{font-weight:600;color:#1f2937;margin:0 0 8px}.stage-details-section{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;overflow:hidden}.stage-details-section .section-header{padding:24px 24px 0;margin-bottom:16px}.stage-details-table{overflow-x:auto}.stage-details-table table{width:100%;border-collapse:collapse}.stage-details-table th,.stage-details-table td{padding:16px;text-align:left;border-bottom:1px solid #f3f4f6}.stage-details-table th{background:#f9fafb;font-weight:600;color:#374151;font-size:14px;text-transform:uppercase;letter-spacing:.05em}.stage-details-table td{font-size:14px;color:#1f2937}.stage-details-table tbody tr:hover{background:#f9fafb}.stage-name-cell{display:flex;align-items:center;gap:8px}.stage-order{background:#3b82f6;color:#fff;padding:2px 6px;border-radius:4px;font-size:11px;font-weight:600}.metric-value{font-weight:600;padding:4px 8px;border-radius:4px;font-size:13px}.metric-value.produced{background:#dbeafe;color:#1e40af}.metric-value.runtime{background:#d1fae5;color:#166534}.metric-value.target{background:#fef3c7;color:#92400e}.metric-value.time-per-part{background:#e0e7ff;color:#3730a3}.metric-value.excellent{background:#d1fae5;color:#166534}.metric-value.good{background:#fef3c7;color:#92400e}.metric-value.poor{background:#fee2e2;color:#991b1b}.view-timeline-btn{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;padding:6px 8px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;min-width:32px;height:32px}.view-timeline-btn:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-1px);box-shadow:0 4px 8px #3b82f64d}.timeline-content{display:flex;flex-direction:column;gap:24px}.timeline-header{background:#fff;padding:24px;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;display:flex;align-items:center;gap:24px}.back-button{background:#f3f4f6;color:#374151;border:1px solid #d1d5db;padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px}.back-button:hover{background:#e5e7eb;border-color:#9ca3af}.timeline-title{flex:1}.timeline-title h2{font-size:24px;font-weight:600;color:#1f2937;margin:0 0 8px;display:flex;align-items:center;gap:12px}.timeline-title p{color:#6b7280;font-size:16px;margin:0}.timeline-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}.timeline-stat{background:#fff;padding:20px;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;display:flex;align-items:center;gap:16px}.stat-icon{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;display:flex;align-items:center;justify-content:center}.stat-content{flex:1}.stat-value{font-size:20px;font-weight:700;color:#1f2937;margin-bottom:4px}.stat-label{font-size:14px;color:#6b7280;font-weight:500}.hourly-breakdown-section{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;overflow:hidden}.hourly-breakdown-section .section-header{padding:24px 24px 0;margin-bottom:16px}.hourly-table-container{overflow-x:auto}.hourly-table{width:100%;border-collapse:collapse}.hourly-table th,.hourly-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #f3f4f6}.hourly-table th{background:#f9fafb;font-weight:600;color:#374151;font-size:13px;text-transform:uppercase;letter-spacing:.05em}.hourly-table td{font-size:14px;color:#1f2937;vertical-align:middle}.hourly-table tbody tr:hover{background:#f9fafb}.hour-label{font-weight:600;color:#3b82f6;background:#f0f9ff;padding:4px 8px;border-radius:4px;font-size:12px}.produced-count{font-weight:600;background:#dbeafe;color:#1e40af;padding:4px 8px;border-radius:4px;font-size:13px}.input-count{font-weight:600;background:#f3f4f6;color:#374151;padding:4px 8px;border-radius:4px;font-size:13px}.part-info{display:flex;flex-direction:column;gap:2px}.part-name{font-weight:500;color:#1f2937}.part-number{font-size:12px;color:#6b7280}.input-type-badge{padding:3px 8px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.input-type-badge.manual{background:#dbeafe;color:#1e40af}.input-type-badge.scanner{background:#d1fae5;color:#166534}.input-type-badge.physical_button{background:#fef3c7;color:#92400e}.input-value{font-family:monospace;font-size:12px;color:#374151;background:#f3f4f6;padding:2px 6px;border-radius:4px}@media(max-width:1024px){.historical-container{padding:0 16px}.controls-section{flex-direction:column;align-items:stretch;gap:16px}.control-select,.control-input{min-width:auto}.summary-cards{grid-template-columns:repeat(2,1fr)}.timeline-header{flex-direction:column;align-items:stretch;gap:16px}.timeline-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:768px){.historical-header{padding:16px 0}.historical-container{padding:0 12px}.header-left h1{font-size:24px}.header-left p{font-size:14px}.historical-main{padding:16px 0}.overview-content{gap:24px}.date-info-card{padding:20px}.date-info-card h2{font-size:20px}.summary-cards{grid-template-columns:1fr}.summary-card{padding:20px}.summary-value{font-size:20px}.chart-section{padding:20px}.section-header h3{font-size:18px}.stage-details-table th,.stage-details-table td{padding:12px;font-size:13px}.timeline-summary{grid-template-columns:1fr}.timeline-stat{padding:16px}.stat-value{font-size:18px}.hourly-table th,.hourly-table td{padding:10px 12px;font-size:13px}.part-breakdown{flex-direction:column;gap:4px}}@media(max-width:480px){.controls-section{gap:12px}.summary-icon{width:40px;height:40px}.summary-value{font-size:18px}.chart-container{margin-left:-12px;margin-right:-12px}.timeline-chart{padding:12px}.stage-details-table,.hourly-table-container{margin:0 -20px}.back-button{padding:8px 12px;font-size:13px}.timeline-title h2{font-size:20px}.timeline-title p{font-size:14px}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-container{background-color:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;width:100%;max-width:900px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;border:1px solid #e5e7eb}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 16px;border-bottom:1px solid #e5e7eb;margin-bottom:0;background:linear-gradient(135deg,#f9fafb,#fff)}.modal-title{font-size:20px;font-weight:600;color:#1f2937;margin:0;display:flex;align-items:center;gap:10px}.modal-title-icon{width:24px;height:24px;color:#3b82f6}.modal-close-button{background:none;border:none;font-size:24px;color:#6b7280;cursor:pointer;padding:4px;border-radius:6px;transition:all .2s;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.modal-close-button:hover:not(:disabled){background-color:#f3f4f6;color:#374151}.modal-close-button:disabled{opacity:.5;cursor:not-allowed}.modal-close-icon{width:20px;height:20px}.modal-form{display:flex;flex-direction:column;height:100%}.modal-body{flex:1;overflow-y:auto;padding:16px 24px 24px;max-height:calc(90vh - 140px)}.form-section{margin-bottom:32px;background:#f9fafb;padding:20px;border-radius:8px;border:1px solid #e5e7eb}.form-section:last-child{margin-bottom:0}.section-title{font-size:18px;font-weight:600;color:#1f2937;margin:0 0 16px;padding-bottom:8px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:8px}.section-title-icon{width:20px;height:20px;color:#3b82f6}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}@media(max-width:768px){.form-row{grid-template-columns:1fr}}.form-group{display:flex;flex-direction:column;margin-bottom:16px}.form-label{font-size:14px;font-weight:500;color:#374151;margin-bottom:6px;display:flex;align-items:center;gap:6px}.form-label-icon{width:14px;height:14px;color:#6b7280}.form-input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;background-color:#fff}.form-input.error{border-color:#ef4444;box-shadow:0 0 0 3px #ef44441a}.error-message{color:#ef4444;font-size:12px;margin-top:4px;font-weight:500;display:flex;align-items:center;gap:4px}.error-icon{width:12px;height:12px}select.form-input{cursor:pointer}select.form-input:disabled{cursor:not-allowed}.modal-footer{padding:16px 24px 24px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:12px;background:linear-gradient(135deg,#f9fafb,#fff)}.button{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border:1px solid;min-width:100px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.button:disabled{opacity:.6;cursor:not-allowed}.button-icon{width:16px;height:16px}.button-primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border-color:#3b82f6}.button-primary:hover:not(:disabled){background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#2563eb;transform:translateY(-1px);box-shadow:0 4px 8px #3b82f64d}.button-primary:focus{outline:none;box-shadow:0 0 0 3px #3b82f633}.button-secondary{background-color:#fff;color:#374151;border-color:#d1d5db}.button-secondary:hover:not(:disabled){background-color:#f3f4f6;border-color:#9ca3af;transform:translateY(-1px)}.button-secondary:focus{outline:none;box-shadow:0 0 0 3px #9ca3af33}@media(max-width:768px){.modal-overlay{padding:10px}.modal-container{max-width:none;width:100%;max-height:95vh}.modal-header,.modal-body,.modal-footer{padding-left:16px;padding-right:16px}.modal-footer{flex-direction:column-reverse}.button{width:100%}}.line-management{padding:24px;background-color:#f8fafc;min-height:100vh}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.header-content{flex:1}.page-title{font-size:28px;font-weight:600;color:#1f2937;margin:0;display:flex;align-items:center;gap:12px}.page-title-icon{width:32px;height:32px;color:#3b82f6}.create-button{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;box-shadow:0 2px 4px #3b82f633;display:flex;align-items:center;gap:8px}.create-button:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-1px);box-shadow:0 4px 8px #3b82f64d}.create-button-icon{width:16px;height:16px}.filters-section{background-color:#fff;padding:20px;border-radius:12px;box-shadow:0 1px 3px #0000001a;margin-bottom:24px;display:flex;flex-direction:column;gap:16px;border:1px solid #e5e7eb}@media(min-width:768px){.filters-section{flex-direction:row;align-items:center;justify-content:space-between}}.search-filter{flex:1;max-width:400px;position:relative}.search-input-container{position:relative}.search-input{width:100%;padding:10px 16px 10px 40px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;outline:none}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#9ca3af}.filter-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.filter-select{padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background-color:#fff;cursor:pointer;transition:border-color .2s,box-shadow .2s;min-width:150px}.filter-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.clear-button{background-color:#fff;color:#6b7280;border:1px solid #d1d5db;padding:8px 16px;border-radius:8px;font-size:14px;cursor:pointer;transition:background-color .2s,border-color .2s;display:flex;align-items:center;gap:6px}.clear-button:hover{background-color:#f3f4f6;border-color:#9ca3af}.clear-icon{width:14px;height:14px}.table-container{background-color:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden;margin-bottom:24px;border:1px solid #e5e7eb}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:16px;text-align:left;border-bottom:1px solid #e5e7eb;vertical-align:middle;height:60px}.data-table th{background-color:#f9fafb;font-weight:600;color:#374151;font-size:14px;text-transform:uppercase;letter-spacing:.05em;height:auto}.data-table td{color:#1f2937;font-size:14px}.data-table tbody tr{transition:background-color .2s}.data-table tbody tr:hover{background-color:#f9fafb}.line-name-cell{font-weight:500}.line-name{color:#1f2937;display:flex;align-items:center;gap:8px}.line-icon{width:16px;height:16px;color:#3b82f6;flex-shrink:0}.stage-count-badge{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:4px;border:1px solid #93c5fd;min-width:fit-content}.stage-count-icon{width:12px;height:12px;flex-shrink:0}.date-cell{color:#6b7280;font-size:13px}.date-icon{width:14px;height:14px;color:#9ca3af;display:inline-block;vertical-align:middle;margin-right:6px}.action-buttons{display:flex;gap:8px}.action-button{background-color:#fff;border:1px solid #d1d5db;border-radius:6px;padding:8px 10px;cursor:pointer;font-size:14px;transition:all .2s;display:flex;align-items:center;justify-content:center;min-width:36px;height:36px}.action-button:hover{background-color:#f3f4f6;border-color:#9ca3af;transform:translateY(-1px)}.edit-action:hover{background-color:#dbeafe;border-color:#3b82f6}.edit-action:hover .action-button-icon{color:#3b82f6}.delete-action:hover{background-color:#fee2e2;border-color:#ef4444}.delete-action:hover .action-button-icon{color:#ef4444}.loading-cell,.no-data-cell{text-align:center;color:#6b7280;font-style:italic;padding:40px 16px}.loading-cell{display:flex;align-items:center;justify-content:center;gap:8px}.no-data-icon{width:24px;height:24px;color:#9ca3af;margin:0 auto 8px}.pagination-section{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:16px 20px;border-radius:12px;box-shadow:0 1px 3px #0000001a;flex-wrap:wrap;gap:16px;border:1px solid #e5e7eb}.pagination-info{color:#6b7280;font-size:14px;display:flex;align-items:center;gap:6px}.pagination-info-icon{width:14px;height:14px}.pagination-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.per-page-select{padding:6px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;background-color:#fff;cursor:pointer}.page-buttons{display:flex;align-items:center;gap:12px}.page-info{color:#6b7280;font-size:14px;white-space:nowrap;display:flex;align-items:center;gap:6px}.page-info-icon{width:14px;height:14px}.page-button{background-color:#fff;color:#374151;border:1px solid #d1d5db;padding:8px 16px;border-radius:8px;font-size:14px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:6px}.page-button:hover:not(:disabled){background-color:#f3f4f6;border-color:#9ca3af;transform:translateY(-1px)}.page-button:disabled{opacity:.5;cursor:not-allowed}.page-button-icon{width:14px;height:14px}@media(max-width:768px){.line-management{padding:16px}.page-header{flex-direction:column;gap:16px;align-items:stretch}.create-button{width:100%;text-align:center;justify-content:center}.table-container{overflow-x:auto}.data-table{min-width:600px}.pagination-section{flex-direction:column;align-items:stretch;text-align:center}.pagination-controls{justify-content:center}}.stage-management{margin-top:0}.stage-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid #e5e7eb}.stage-title{font-size:18px;font-weight:600;color:#1f2937;margin:0;display:flex;align-items:center;gap:8px}.stage-title-icon{width:20px;height:20px;color:#3b82f6}.stage-count{font-size:14px;color:#6b7280;display:flex;align-items:center;gap:4px;background:#f3f4f6;padding:4px 8px;border-radius:6px;border:1px solid #d1d5db}.stage-count-icon{width:14px;height:14px}.add-stage-form{background:#fff;padding:24px;border-radius:12px;border:1px solid #e5e7eb;margin-bottom:24px;box-shadow:0 1px 3px #0000001a}.add-stage-title{font-size:16px;font-weight:600;color:#1f2937;margin:0 0 16px;display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid #e5e7eb}.add-stage-title-icon{width:18px;height:18px;color:#3b82f6}.add-stage-inputs{display:grid;grid-template-columns:2fr 1fr 1.5fr auto;gap:16px;align-items:end}@media(max-width:768px){.add-stage-inputs{grid-template-columns:1fr;gap:12px}}.input-group{display:flex;flex-direction:column}.input-label{font-size:14px;font-weight:500;color:#374151;margin-bottom:6px;display:flex;align-items:center;gap:6px}.input-label-icon{width:14px;height:14px;color:#6b7280}.form-input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:all .2s;box-sizing:border-box;background:#fff}.form-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-input:disabled{background-color:#f3f4f6;color:#9ca3af;cursor:not-allowed}.add-button-container{display:flex;align-items:end}.add-stage-button{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;padding:11px 20px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap;display:flex;align-items:center;gap:8px;box-shadow:0 2px 4px #3b82f633}.add-stage-button:hover:not(:disabled){background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-1px);box-shadow:0 4px 8px #3b82f64d}.add-stage-button:disabled{background:#d1d5db;cursor:not-allowed;transform:none;box-shadow:none}.add-stage-icon{width:16px;height:16px}.stages-list{margin-top:24px}.stages-list-header{background:#fff;padding:20px;border-radius:12px 12px 0 0;border:1px solid #e5e7eb;border-bottom:none}.stages-list-title{font-size:16px;font-weight:600;color:#1f2937;margin:0 0 8px;display:flex;align-items:center;gap:8px}.stages-list-title-icon{width:18px;height:18px;color:#3b82f6}.stages-list-description{font-size:14px;color:#6b7280;margin:0;display:flex;align-items:center;gap:6px}.stages-list-description-icon{width:14px;height:14px;color:#9ca3af}.stages-container{background:#fff;border:1px solid #e5e7eb;border-top:none;border-radius:0 0 12px 12px;max-height:none;overflow:visible}.stages-container-inner{padding:16px;max-height:400px;overflow-y:auto;background:#f9fafb}.stage-item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:12px;box-shadow:0 1px 3px #0000001a;transition:all .2s;overflow:hidden}.stage-item:last-child{margin-bottom:0}.stage-item:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px);border-color:#cbd5e1}.stage-content{display:flex;align-items:center;padding:20px;gap:16px}.stage-order{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex-shrink:0;border:3px solid white;box-shadow:0 4px 8px #3b82f64d}.stage-details{flex:1;min-width:0}.stage-edit-form{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:12px;align-items:center;width:100%}@media(max-width:768px){.stage-edit-form{grid-template-columns:1fr;gap:8px}}.stage-name-input,.stage-time-input,.stage-input-type{padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;transition:all .2s}.stage-name-input:focus,.stage-time-input:focus,.stage-input-type:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.stage-info{cursor:pointer;transition:all .2s;border-radius:6px;padding:8px 12px}.stage-info:hover{background:#f3f4f6;transform:translate(4px)}.stage-name{font-weight:600;color:#1f2937;font-size:16px;margin-bottom:6px;display:flex;align-items:center;gap:8px}.stage-name-icon{width:16px;height:16px;color:#6b7280}.stage-details-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.stage-time{color:#6b7280;font-size:14px;display:flex;align-items:center;gap:4px;background:#f3f4f6;padding:4px 8px;border-radius:6px;border:1px solid #e5e7eb}.stage-time-icon{width:14px;height:14px}.stage-input-method{color:#6b7280;font-size:14px;display:flex;align-items:center;gap:4px;background:#f3f4f6;padding:4px 8px;border-radius:6px;border:1px solid #e5e7eb}.stage-input-icon{width:14px;height:14px}.stage-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.action-button{background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;cursor:pointer;font-size:14px;transition:all .2s;display:flex;align-items:center;justify-content:center;min-width:36px;height:36px}.action-button:hover:not(:disabled){background:#f3f4f6;border-color:#9ca3af;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.action-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.action-button-icon{width:16px;height:16px}.edit-button:hover:not(:disabled){background:#dbeafe;border-color:#3b82f6}.edit-button:hover:not(:disabled) .action-button-icon{color:#3b82f6}.save-button{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border-color:#10b981}.save-button:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);box-shadow:0 4px 8px #10b9814d}.move-buttons{display:flex;flex-direction:column;gap:4px}.move-button{padding:4px 6px;min-width:28px;height:24px;font-size:12px}.move-button:hover:not(:disabled){background:#dbeafe;border-color:#3b82f6}.move-button:hover:not(:disabled) .action-button-icon{color:#3b82f6}.delete-button:hover:not(:disabled){background:#fee2e2;border-color:#ef4444}.delete-button:hover:not(:disabled) .action-button-icon{color:#ef4444}.stages-empty-state{text-align:center;padding:40px 20px;color:#6b7280;background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-top:16px}.stages-empty-state-icon{width:48px;height:48px;color:#9ca3af;margin:0 auto 16px}.stages-empty-state h4{font-size:16px;font-weight:500;color:#374151;margin:0 0 8px}.stages-empty-state p{font-size:14px;margin:0}.loading-spinner{width:16px;height:16px;border:2px solid #e5e7eb;border-top:2px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:768px){.stage-content{flex-direction:column;align-items:stretch;gap:16px;padding:16px}.stage-order{align-self:flex-start;width:36px;height:36px;font-size:14px}.stage-actions{justify-content:center;flex-wrap:wrap;gap:6px}.stages-container-inner{padding:12px}.stage-details-row{flex-direction:column;align-items:flex-start;gap:8px}.move-buttons{flex-direction:row;gap:4px}}@media(max-width:480px){.add-stage-inputs{grid-template-columns:1fr}.add-stage-button{width:100%;justify-content:center}.stage-item{margin-bottom:8px}.stage-content{padding:12px}}
