/* Product Selection Dialog - Desktop-Optimized Layout */

.product-selection-dialog .filter-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Ensure dropdown inputs don't expand beyond their containers */
.product-selection-dialog .e-dropdownlist,
.product-selection-dialog .e-input-group {
    max-width: 100%;
}

/* Prevent dropdown popups from being constrained by parent width */
.product-selection-dialog .e-ddl.e-popup {
    min-width: 250px !important;
    max-width: 500px !important;
}

/* Category dropdown popup - allow wider display for hierarchical paths */
.product-selection-dialog .e-ddl.e-popup .e-list-item {
    white-space: normal;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
}

/* Compact filter layout on desktop */
@media (min-width: 1024px) {
    .product-selection-dialog .filter-section .flex {
        justify-content: flex-start;
    }
    
    /* Prevent filters from spanning full width on large screens */
    .product-selection-dialog .filter-section > .flex > div {
        flex-shrink: 0;
    }
}

/* Mobile: Stack filters vertically */
@media (max-width: 640px) {
    .product-selection-dialog .filter-section .flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .product-selection-dialog .filter-section > .flex > div {
        width: 100% !important;
    }
}

/* Results info positioning */
.product-selection-dialog .results-info {
    white-space: nowrap;
}

/* Grid styling improvements */
.product-selection-dialog .product-selection-grid {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Selected product summary styling */
.product-selection-dialog .selected-product-summary {
    border: 2px solid #2C5F2D;
    background: #f0f9f0;
}

.product-selection-dialog .selected-product-summary h6 {
    color: #2C5F2D;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
