* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Inter', sans-serif; background-color: #F0F2F5; font-size: 14px; }
        
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: #E8EAED; }
        ::-webkit-scrollbar-thumb { background: #B0B8C1; border-radius: 3px; }
        
        .sfi-code { 
            font-family: 'SF Mono', monospace;
            color: #8E96A3; 
            font-size: 0.75rem;
            min-width: 50px;
            display: inline-block;
        }
        
        .sfi-code-bold {
            font-family: 'SF Mono', monospace;
            background: #E8EAED;
            color: #2C3E50;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .part-number {
            font-family: 'SF Mono', monospace;
            background: #F5F7FA;
            border: 1px solid #E0E4E8;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.8rem;
            color: #2C3E50;
        }
        
        .tree-indent { border-left: 1px solid #D0D5DD; margin-left: 8px; padding-left: 16px; }
        
        /* Type Badges */
        .type-asm { 
            background: #5A6A7A; 
            color: white; 
            padding: 1px 6px; 
            border-radius: 3px; 
            font-size: 0.7rem; 
            font-weight: 600; 
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        
        .type-part { 
            background: #8E96A3; 
            color: white; 
            padding: 1px 6px; 
            border-radius: 3px; 
            font-size: 0.7rem; 
            font-weight: 600; 
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .type-ref { 
            background: #4A90E2; 
            color: white; 
            padding: 1px 6px; 
            border-radius: 3px; 
            font-size: 0.7rem; 
            font-weight: 600; 
            text-transform: uppercase;
            letter-spacing: 0.3px;
            border: 1px solid #2C3E50;
            box-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }
        
        .data-table th {
            background: #F5F7FA;
            color: #2C3E50;
            font-weight: 600;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 10px 12px;
            border-bottom: 2px solid #E0E4E8;
            text-align: left;
        }
        
        .data-table td {
            padding: 10px 12px;
            border-bottom: 1px solid #E8EAED;
            color: #2C3E50;
            font-size: 0.85rem;
        }
        
        .data-table tr:hover td { background: #FAFBFC; }
        
        .panel {
            background: white;
            border-radius: 6px;
            border: 1px solid #E0E4E8;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        
        .sfi-node {
            padding: 6px 8px;
            cursor: pointer;
            border-radius: 4px;
            display: flex;
            align-items: baseline;
            gap: 8px;
            transition: all 0.15s;
            line-height: 1.4;
        }
        
        .sfi-node:hover { background: #F5F7FA; }
        .sfi-node.active { background: #E3F2FD; }
        .sfi-node.active .sfi-code { color: #4A90E2; font-weight: 600; }
        
        .btn-primary {
            background: #4A90E2;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: background 0.15s;
        }
        
        .btn-primary:hover { background: #357ABD; }
        
        .btn-secondary {
            background: white;
            color: #2C3E50;
            border: 1px solid #E0E4E8;
            padding: 6px 12px;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            font-size: 0.85rem;
        }
        
        .btn-secondary:hover { background: #F5F7FA; }
        
        .job-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            background: #FFF3E0;
            color: #E65100;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            border: 1px solid #FFE0B2;
        }
        
        .instruction-ref {
            font-family: 'SF Mono', monospace;
            color: #5A6A7A;
            font-size: 0.8rem;
        }
        
        .expand-icon {
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: #8E96A3;
            cursor: pointer;
            flex-shrink: 0;
        }
        
        .catalog-item-card {
            border: 1px solid #E0E4E8;
            border-radius: 6px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.15s;
            background: white;
        }
        
        .catalog-item-card:hover {
            border-color: #4A90E2;
            box-shadow: 0 2px 8px rgba(74,144,226,0.08);
        }
        
        .catalog-item-card.active {
            border-color: #4A90E2;
            background: #FAFBFC;
        }
        
        .tabs {
            display: flex;
            border-bottom: 1px solid #E0E4E8;
            gap: 4px;
        }
        
        .tab {
            padding: 10px 16px;
            cursor: pointer;
            color: #5A6A7A;
            font-weight: 500;
            font-size: 0.9rem;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .tab:hover { color: #2C3E50; }
        .tab.active { 
            color: #4A90E2; 
            border-bottom-color: #4A90E2;
            font-weight: 600;
        }
        
        .job-card {
            border-left: 3px solid #4A90E2;
            background: white;
            padding: 12px;
            border-radius: 0 4px 4px 0;
            margin-bottom: 8px;
            border-top: 1px solid #E0E4E8;
            border-right: 1px solid #E0E4E8;
            border-bottom: 1px solid #E0E4E8;
        }
        
        .job-card:hover {
            border-left-color: #2C3E50;
            background: #FAFBFC;
        }
        
        .interval-type-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-right: 8px;
        }
        
        .type-running { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }
        .type-calendar { background: #F3E5F5; color: #7B1FA2; border: 1px solid #E1BEE7; }
        .type-usage { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
        
        .interval-value {
            font-family: 'SF Mono', monospace;
            font-weight: 600;
            color: #2C3E50;
        }

        .reference-text {
            color: #4A90E2;
            font-weight: 500;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        /* ===== JOB CARD STYLES ===== */
        .job-card {
            border-left: 3px solid #4A90E2;
            background: white;
            padding: 12px;
            border-radius: 0 4px 4px 0;
            margin-bottom: 8px;
            border-top: 1px solid #E0E4E8;
            border-right: 1px solid #E0E4E8;
            border-bottom: 1px solid #E0E4E8;
            transition: all 0.15s;
        }

        .job-card:hover {
            border-left-color: #2C3E50;
            background: #FAFBFC;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        /* Interval Type Badges */
        .interval-type-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-right: 8px;
        }

        .type-running { 
            background: #E3F2FD; 
            color: #1565C0; 
            border: 1px solid #BBDEFB; 
        }

        .type-calendar { 
            background: #F3E5F5; 
            color: #7B1FA2; 
            border: 1px solid #E1BEE7; 
        }

        .type-usage { 
            background: #E8F5E9; 
            color: #2E7D32; 
            border: 1px solid #C8E6C9; 
        }

        /* Interval Value */
        .interval-value {
            font-family: 'SF Mono', monospace;
            font-weight: 600;
            color: #2C3E50;
        }

        /* Instruction Reference */
        .instruction-ref {
            font-family: 'SF Mono', monospace;
            color: #5A6A7A;
            font-size: 0.8rem;
        }

        /* Job Badge (for components table) */
        .job-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            background: #FFF3E0;
            color: #E65100;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            border: 1px solid #FFE0B2;
        }
        /* Contractor/Supplier Cards */
        .contractor-card {
            cursor: pointer;
            transition: all 0.2s;
        }

        .contractor-card:hover {
            border-color: #4A90E2;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .contact-info {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            border-top: 1px solid #E0E4E8;
            padding-top: 12px;
            margin-top: 8px;
        }

        .contact-item {
            font-size: 0.8rem;
            color: #5A6A7A;
        }

        /* Supplier Detail View */
        .supplier-header {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 24px;
        }

        .supplier-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #E8F5E9;
            color: #2E7D32;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 2rem;
        }

        .supplier-contact-box {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px;
            background-color: #F5F7FA;
            border-radius: 4px;
        }

        /* Convention Cards */
        .convention-card {
            padding: 16px;
            border: 1px solid #E0E4E8;
            border-radius: 4px;
            background-color: #FAFBFC;
        }

        .convention-title {
            font-weight: 600;
            color: #2C3E50;
            font-size: 1rem;
            margin-bottom: 4px;
        }

        .convention-description {
            color: #5A6A7A;
            font-size: 0.85rem;
            margin-bottom: 12px;
        }

        .job-item {
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #E0E4E8;
            margin-bottom: 8px;
        }

        .job-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 4px;
        }

        .job-name {
            font-weight: 500;
            color: #2C3E50;
            font-size: 0.9rem;
        }

        .job-description {
            color: #5A6A7A;
            font-size: 0.8rem;
            margin-bottom: 8px;
        }

        .job-meta {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .job-meta-item {
            font-size: 0.75rem;
            color: #5A6A7A;
        }
        