.nectar-feed-visualization {
    max-width: 1200px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nectar-feed-visualization h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.nectar-feed-visualization h4 {
    color: #34495e;
    margin: 20px 0 15px 0;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.flow-stage {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    min-width: 150px;
}

.supplier-stage {
    border-color: #28a745;
    background: #d4edda;
}

.pim-stage {
    border-color: #007bff;
    background: #d1ecf1;
}

.trading-partner-stage {
    border-color: #dc3545;
    background: #f8d7da;
}

.flow-arrow {
    font-size: 24px;
    font-weight: bold;
    color: #6c757d;
    margin: 0 20px;
}

.nectar-mapping-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.nectar-mapping-table th {
    background: #343a40;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.nectar-mapping-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.nectar-mapping-table tr:hover {
    background: #f8f9fa;
}

.nectar-mapping-table tr:last-child td {
    border-bottom: none;
}

.source-field strong {
    color: #28a745;
}

.dest-field strong {
    color: #dc3545;
}

.owner {
    font-weight: 600;
    color: #6f42c1;
}

.format {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.required {
    text-align: center;
    font-weight: 600;
}

.inbound-flow {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #28a745;
    border-radius: 8px;
    background: #f8fff9;
}

.outbound-flow {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #dc3545;
    border-radius: 8px;
    background: #fff8f8;
}

.mapping-table {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .nectar-mapping-table {
        font-size: 0.9em;
    }
    
    .nectar-mapping-table th,
    .nectar-mapping-table td {
        padding: 8px;
    }
}

/* Complete Flow Styles */
.nectar-complete-flow {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.complete-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.complete-flow-diagram .flow-stage {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    min-height: 200px;
}

.complete-flow-diagram .supplier-stage {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.complete-flow-diagram .pim-stage {
    background: #f3e5f5;
    border: 2px solid #9c27b0;
}

.complete-flow-diagram .trading-partner-stage {
    background: #e8f5e8;
    border: 2px solid #4caf50;
}

.complete-flow-diagram .flow-arrow {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    margin: 0 15px;
}

.complete-flow-diagram .field-list {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 10px;
}

.complete-flow-diagram .field-item {
    background: rgba(255,255,255,0.8);
    margin: 5px 0;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(0,0,0,0.1);
}

.complete-flow-diagram .field-item.pim-field {
    font-weight: bold;
    background: rgba(156, 39, 176, 0.1);
}

.complete-flow-table {
    margin-top: 20px;
}

.complete-flow-table .pim-field {
    background: #f3e5f5;
    font-weight: bold;
}

.status-complete {
    color: #28a745;
    font-weight: bold;
}

.status-inbound {
    color: #007bff;
    font-weight: bold;
}

.status-outbound {
    color: #ffc107;
    font-weight: bold;
    color: #856404;
}

.status-unmapped {
    color: #dc3545;
    font-weight: bold;
}

@media (max-width: 768px) {
    .complete-flow-diagram {
        flex-direction: column;
    }
    
    .complete-flow-diagram .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .complete-flow-diagram .flow-stage {
        width: 100%;
        margin: 10px 0;
    }
}
/* Complete Flow Row Highlighting */
.complete-flow-table .complete-flow-row {
    border: 2px solid #ff6b35;
    background-color: #fff8f5;
}

.complete-flow-table .complete-flow-row:hover {
    background-color: #ffede5;
}

.complete-flow-table .complete-flow-row td {
    border-top: 2px solid #ff6b35;
    border-bottom: 2px solid #ff6b35;
}

.complete-flow-table .complete-flow-row td:first-child {
    border-left: 2px solid #ff6b35;
}

.complete-flow-table .complete-flow-row td:last-child {
    border-right: 2px solid #ff6b35;
}
/* Complete Flow Controls */
.flow-controls {
    margin: 15px 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.flow-controls input[type="text"],
.flow-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.flow-controls input[type="text"] {
    flex: 1;
    max-width: 300px;
}

.flow-controls select {
    min-width: 150px;
}