/* Supply Chain Risk Management Styles */

.supply-chain-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    box-sizing: border-box;
    width: 100%;
}

/* Header Section */
.supply-chain-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.header-info h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.header-info p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.risk-status {
    text-align: right;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.status-indicator.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-indicator.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-indicator.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.low .pulse {
    background: #10b981;
}

.status-indicator.medium .pulse {
    background: #f59e0b;
}

.status-indicator.high .pulse {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.last-scan {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Risk Dashboard */
.risk-dashboard {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.dashboard-header h2 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.risk-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-card.critical {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left: 4px solid #ef4444;
}

.metric-card.warning {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-left: 4px solid #f59e0b;
}

.metric-card.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-left: 4px solid #10b981;
}

.metric-card.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid #3b82f6;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-card.critical .metric-icon {
    background: #ef4444;
}

.metric-card.warning .metric-icon {
    background: #f59e0b;
}

.metric-card.success .metric-icon {
    background: #10b981;
}

.metric-card.info .metric-icon {
    background: #3b82f6;
}

.metric-info {
    flex: 1;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.metric-trend {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

/* Control Panel */
.control-panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.panel-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.tab-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Tab Content */
.tab-content {
    margin-top: 20px;
    width: 100%;
}

.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

/* Monitoring Grid */
.monitoring-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
}

/* Risk Map */
.risk-map-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.map-header h3 {
    margin: 0;
    color: #2c3e50;
}

.map-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.risk-map {
    height: 400px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    border-radius: 10px;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.risk-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.risk-map svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.risk-zone {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    border: 2px solid rgba(255,255,255,0.3);
}

.risk-zone:hover {
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.critical {
    background: #ef4444;
}

.legend-color.warning {
    background: #f59e0b;
}

.legend-color.low {
    background: #10b981;
}

.legend-color.safe {
    background: #6b7280;
}

/* Alerts Panel */
.alerts-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.alerts-header h3 {
    margin: 0;
    color: #2c3e50;
}

.alerts-filter {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.alerts-list {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

/* Assessment Grid */
.assessment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
}

.assessment-form {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.assessment-history {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Response Grid */
.response-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
}

.response-plans {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.active-incidents {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Analytics Dashboard */
.analytics-dashboard {
    display: grid;
    gap: 30px;
    width: 100%;
}

.risk-trends {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.risk-distribution {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.performance-metrics {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.predictive-analysis {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Form Controls */
.form-control {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button Styles */
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #6c757d;
    color: #495057;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb .separator {
    color: #adb5bd;
    margin: 0 10px;
}

.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}

/* Additional Layout Fixes */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
}

.risk-factors {
    width: 100%;
}

.factor-category {
    margin-bottom: 25px;
    width: 100%;
}

.factor-items {
    display: grid;
    gap: 15px;
    width: 100%;
}

.factor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.distribution-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.prediction-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
}

.prediction-chart {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.prediction-insights {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.response-timeline {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .monitoring-grid,
    .assessment-grid,
    .response-grid {
        grid-template-columns: 1fr;
    }
    
    .distribution-charts,
    .prediction-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .supply-chain-container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .panel-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        flex-direction: column;
        gap: 5px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .risk-metrics {
        grid-template-columns: 1fr;
    }
    
    .dashboard-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .alerts-filter {
        flex-wrap: wrap;
    }
    
    .wizard-steps {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .supply-chain-header {
        padding: 20px;
    }
    
    .header-info h1 {
        font-size: 2rem;
    }
    
    .metric-card {
        padding: 15px;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .dashboard-controls,
    .map-controls,
    .alerts-filter {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Component Styles */

/* Supplier Cards */
.supplier-status {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.status-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.supplier-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.supplier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.supplier-card.supplier-normal {
    border-left-color: #10b981;
}

.supplier-card.supplier-warning {
    border-left-color: #f59e0b;
}

.supplier-card.supplier-critical {
    border-left-color: #ef4444;
}

.supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.supplier-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.normal {
    background: #d1fae5;
    color: #059669;
}

.status-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.critical {
    background: #fee2e2;
    color: #dc2626;
}

.supplier-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    width: 100%;
}

.detail-item span:first-child {
    color: #6c757d;
}

.detail-item span:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.risk-level.low {
    color: #059669;
}

.risk-level.medium {
    color: #d97706;
}

.risk-level.high {
    color: #dc2626;
}

/* Assessment Items */
.assessment-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.assessment-item:hover {
    background: #f1f3f4;
    transform: translateX(5px);
}

.assessment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.assessment-id {
    font-weight: 700;
    color: #2c3e50;
}

.assessment-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.assessment-status.completed {
    background: #d1fae5;
    color: #059669;
}

.assessment-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.assessment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    width: 100%;
}

.detail-row span:first-child {
    color: #6c757d;
}

.detail-row span:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.risk-score {
    color: #667eea !important;
    font-weight: 700 !important;
}

/* Response Plans */
.response-plan-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.response-plan-item:hover {
    background: #f1f3f4;
    transform: translateY(-2px);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.plan-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
}

.plan-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.plan-status.active {
    background: #d1fae5;
    color: #059669;
}

.plan-status.draft {
    background: #f1f3f4;
    color: #6c757d;
}

.plan-details {
    margin-bottom: 15px;
}

.priority.high {
    color: #dc2626;
}

.priority.medium {
    color: #d97706;
}

.plan-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Incidents */
.incident-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.incident-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.incident-item.incident-critical {
    border-left-color: #ef4444;
}

.incident-item.incident-warning {
    border-left-color: #f59e0b;
}

.incident-item.incident-info {
    border-left-color: #3b82f6;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.incident-id {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.incident-time {
    font-size: 0.8rem;
    color: #adb5bd;
}

.incident-title {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 10px;
}

.incident-actions {
    display: flex;
    gap: 8px;
}

/* Timeline */
.timeline-content {
    position: relative;
    width: 100%;
}

.timeline-event {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.timeline-event.timeline-warning {
    border-left-color: #f59e0b;
}

.timeline-event.timeline-info {
    border-left-color: #3b82f6;
}

.timeline-event.timeline-success {
    border-left-color: #10b981;
}

.timeline-event.timeline-critical {
    border-left-color: #ef4444;
}

.event-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    min-width: 60px;
}

.event-content {
    color: #2c3e50;
    font-size: 0.9rem;
    flex: 1;
}

/* Form Elements */
.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assessment-wizard {
    width: 100%;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

.step.active .step-title {
    color: #2c3e50;
    font-weight: 500;
}

.wizard-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.wizard-step {
    display: none;
    width: 100%;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.wizard-step h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* History Controls */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.history-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-filters {
    display: flex;
    gap: 10px;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

/* Incidents Stats */
.incidents-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat.critical {
    background: #fee2e2;
    color: #dc2626;
}

.stat.warning {
    background: #fef3c7;
    color: #d97706;
}

.stat.info {
    background: #dbeafe;
    color: #2563eb;
}

/* Timeline Controls */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.timeline-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-controls {
    display: flex;
    gap: 10px;
}

.timeline-controls button {
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.timeline-controls button.active,
.timeline-controls button:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .supplier-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-steps {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .step {
        min-width: 80px;
    }
    
    .incidents-stats {
        justify-content: center;
    }
    
    .timeline-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .status-actions,
    .plan-actions,
    .incident-actions {
        flex-direction: column;
        gap: 8px;
    }
} 