/* BatchOperationResultsDialog styles */

.results-dialog .k-window-content {
    padding: 0;
}

.modern-alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.summary-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-weight: bold;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    min-width: 2rem;
}

.stat-value.total {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.stat-value.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-value.failure {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.stat-value.skipped {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.section-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.failures-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.modern-grid {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-id-cell {
    display: flex;
    align-items: center;
}

.product-code {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.error-message-cell {
    display: flex;
    align-items: center;
}

.error-text {
    line-height: 1.4;
}

.close-button {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        flex-direction: row;
        justify-content: space-between;
    }

    .product-id-cell,
    .error-message-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
