/* Dropdown de recherche produits */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown input {
    width: 100%;
    padding-right: 30px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #1e293b;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
}

.dropdown-list.hidden {
    display: none;
}

.dropdown-item {
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--color-text-main);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-fast);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Liste des produits sélectionnés */
.selected-products-list {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selected-product-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.selected-product-row:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.selected-product-row .sp-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.selected-product-row .sp-name i {
    color: var(--color-success);
}

.selected-product-row .sp-name .specific-price {
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-style: italic;
}

.selected-product-row .sp-qty {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.selected-product-row .sp-qty label {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.sp-qty-input {
    width: 60px;
    padding: 4px;
    font-size: 0.9rem;
}

.sp-price-input {
    width: 80px;
    padding: 4px;
    font-size: 0.9rem;
    text-align: right;
    color: var(--color-text-main);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.sp-price-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
    outline: none;
}

.sp-remove-btn {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.sp-remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
