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