.traceability{background-color:#0f172a;color:#f1f5f9;padding:1.5rem;min-height:100vh}.trace-page-header{text-align:center;margin-bottom:2rem}.trace-page-header h1{font-size:2rem;color:#f1f5f9;margin:0}.search-section{background:#1e293b;border-radius:12px;padding:1.5rem;margin-bottom:2rem}.search-bar{display:flex;gap:1rem;margin-bottom:1rem}.search-input{flex:1;padding:.75rem 1rem;font-size:1rem;border:2px solid #334155;border-radius:8px;background:#0f172a;color:#f1f5f9}.search-input:focus{outline:none;border-color:#3b82f6}.search-type-select{padding:.75rem 1rem;font-size:1rem;border:2px solid #334155;border-radius:8px;background:#0f172a;color:#f1f5f9;cursor:pointer;min-width:150px}.search-button{padding:.75rem 2rem;font-size:1rem;font-weight:600;background:#3b82f6;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:background .2s}.search-button:hover:not(:disabled){background:#2563eb}.search-button:disabled{background:#475569;cursor:not-allowed}.search-tips{display:flex;align-items:center;gap:.5rem;color:#94a3b8;font-size:.9rem}.tip-button{padding:.25rem .75rem;background:#334155;color:#94a3b8;border:none;border-radius:4px;cursor:pointer;font-size:.85rem;transition:all .2s}.tip-button:hover{background:#475569;color:#f1f5f9}.error-banner{background:#991b1b;color:#fecaca;padding:1rem;border-radius:8px;margin-bottom:2rem;text-align:center;font-weight:500}.empty-state{text-align:center;padding:4rem 2rem;color:#64748b}.empty-icon{font-size:4rem;margin-bottom:1rem}.empty-state h3{color:#94a3b8;margin-bottom:.5rem}.empty-state p{color:#64748b}.results-section{background:#1e293b;border-radius:12px;padding:1.5rem}.result-tabs{display:flex;gap:.5rem;margin-bottom:2rem;border-bottom:2px solid #334155;padding-bottom:.5rem}.tab-button{padding:.5rem 1.5rem;background:transparent;color:#94a3b8;border:none;border-bottom:3px solid transparent;cursor:pointer;font-size:1rem;font-weight:500;transition:all .2s}.tab-button:hover{color:#f1f5f9}.tab-button.active{color:#3b82f6;border-bottom-color:#3b82f6}.result-content{display:none}.result-content.active{display:block}.trace-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;background:#0f172a;border-radius:8px;margin-bottom:2rem}.trace-header-left h2{color:#f1f5f9;margin:0 0 .5rem;font-size:1.75rem}.trace-id{font-family:Courier New,monospace;color:#94a3b8;font-size:.9rem}.trace-header-right{display:flex;gap:.75rem;align-items:center}.status-badge{padding:.5rem 1rem;border-radius:6px;font-size:.9rem;font-weight:600}.status-badge.status-assembly{background:#1e40af;color:#dbeafe}.status-badge.status-pending{background:#f59e0b;color:#fef3c7}.status-badge.status-pass{background:#059669;color:#d1fae5}.status-badge.status-fail{background:#dc2626;color:#fecaca}.status-badge.status-rework{background:#9333ea;color:#f3e8ff}.status-badge.status-shipped{background:#0891b2;color:#cffafe}.qa-badge{padding:.5rem 1rem;border-radius:6px;font-size:.9rem;font-weight:600}.qa-badge.qa-pass{background:#059669;color:#d1fae5}.qa-badge.qa-fail{background:#dc2626;color:#fecaca}.qa-badge.qa-conditional{background:#f59e0b;color:#fef3c7}.qa-badge.qa-pending{background:#64748b;color:#e2e8f0}.lock-badge{padding:.5rem 1rem;background:#475569;color:#f1f5f9;border-radius:6px;font-size:.9rem;font-weight:600}.role-badge{padding:.5rem 1rem;background:#3b82f6;color:#fff;border-radius:6px;font-size:.9rem;font-weight:600}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem}.info-card{background:#0f172a;border-radius:8px;padding:1.5rem}.info-card h4{color:#94a3b8;margin:0 0 1rem;font-size:.9rem;text-transform:uppercase;letter-spacing:.05em}.info-row{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid #1e293b}.info-row:last-child{border-bottom:none}.info-row .label{color:#94a3b8;font-size:.9rem}.info-row .value{color:#f1f5f9;font-weight:500}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#0f172a;border-radius:8px;padding:1.5rem;text-align:center}.stat-value{font-size:2.5rem;font-weight:700;color:#3b82f6;margin-bottom:.5rem}.stat-label{color:#94a3b8;font-size:.9rem;text-transform:uppercase;letter-spacing:.05em}.timeline-section{margin-bottom:2rem}.timeline-section h3{color:#f1f5f9;margin:0 0 1.5rem;font-size:1.25rem}.timeline{position:relative;padding-left:3rem}.timeline:before{content:"";position:absolute;left:1rem;top:0;bottom:0;width:3px;background:linear-gradient(to bottom,#3b82f6,#8b5cf6)}.timeline-item{position:relative;margin-bottom:2rem}.timeline-marker{position:absolute;left:-2.5rem;top:0;width:2rem;height:2rem;background:#1e293b;border:3px solid #3b82f6;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.9rem;z-index:1}.timeline-item.timeline-birth .timeline-marker{border-color:#10b981;font-size:1.1rem}.timeline-item.timeline-qa-pass .timeline-marker{border-color:#059669}.timeline-item.timeline-qa-fail .timeline-marker{border-color:#dc2626}.timeline-item.timeline-rework .timeline-marker{border-color:#9333ea}.timeline-item.timeline-shipped .timeline-marker{border-color:#0891b2}.timeline-content{background:#0f172a;border-radius:8px;padding:1rem 1.5rem;border-left:3px solid #3b82f6}.timeline-item.timeline-birth .timeline-content{border-left-color:#10b981}.timeline-item.timeline-qa-pass .timeline-content{border-left-color:#059669}.timeline-item.timeline-qa-fail .timeline-content{border-left-color:#dc2626}.timeline-item.timeline-rework .timeline-content{border-left-color:#9333ea}.timeline-item.timeline-shipped .timeline-content{border-left-color:#0891b2}.timeline-title{font-size:1.1rem;font-weight:600;color:#f1f5f9;margin-bottom:.25rem}.timeline-time{color:#64748b;font-size:.85rem;margin-bottom:.75rem}.timeline-details{color:#94a3b8;font-size:.9rem;line-height:1.6}.timeline-details>div{margin-bottom:.25rem}.subassemblies-list{margin-top:.75rem;padding:.75rem;background:#1e293b;border-radius:6px}.subassembly-item{color:#94a3b8;margin:.25rem 0}.defects-section{margin-top:.75rem;padding:.75rem;background:#1e293b;border-radius:6px}.defects-section strong{color:#f1f5f9;display:block;margin-bottom:.5rem}.defect-item{margin:.25rem 0;padding:.25rem .5rem;border-radius:4px}.defect-item.severity-critical{color:#fecaca;background:#dc262633}.defect-item.severity-major{color:#fed7aa;background:#f59e0b33}.defect-item.severity-minor{color:#fef9c3;background:#eab30833}.inspector-notes{margin-top:.75rem;padding:.75rem;background:#1e293b;border-radius:6px;color:#94a3b8}.inspector-notes strong{color:#f1f5f9}.rework-flag{margin-top:.75rem;padding:.5rem;background:#9333ea33;border-radius:6px;color:#e9d5ff;font-weight:500}.rework-completed{margin-top:.5rem;color:#86efac}.data-section{margin-bottom:2rem}.data-section h3{color:#f1f5f9;margin:0 0 1rem;font-size:1.25rem}.data-table{overflow-x:auto}.data-table table{width:100%;border-collapse:collapse;background:#0f172a;border-radius:8px;overflow:hidden}.data-table thead{background:#334155}.data-table th{padding:1rem;text-align:left;color:#f1f5f9;font-weight:600;font-size:.9rem;text-transform:uppercase;letter-spacing:.05em}.data-table td{padding:1rem;color:#94a3b8;border-top:1px solid #1e293b}.data-table tbody tr:hover{background:#1e293b}.tree-id-cell{font-family:Courier New,monospace;color:#60a5fa;font-size:.85rem}@media (max-width: 768px){.traceability{padding:1rem}.search-bar{flex-direction:column}.search-type-select{width:100%}.trace-header{flex-direction:column;align-items:flex-start;gap:1rem}.trace-header-right{flex-wrap:wrap}.info-grid,.stats-grid{grid-template-columns:1fr}.timeline{padding-left:2.5rem}.timeline:before{left:.75rem}.timeline-marker{left:-2rem;width:1.5rem;height:1.5rem;font-size:.75rem}.result-tabs{overflow-x:auto;flex-wrap:nowrap}}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;min-height:100vh}#root{min-height:100vh}.ant-input::placeholder,.ant-input-password input::placeholder{color:#fff9!important}.ant-input,.ant-input-password input{color:#fff!important}
