/**
 * CSS pour la page des groupes de produits
 * Module CRM
 * 
 * Note: Les styles des boutons et modales sont hérités de kanban_prospects.css
 */

/* Toggle icône */
.toggle-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #666;
    padding: 5px;
}

.toggle-icon.open {
    transform: rotate(90deg);
}

.toggle-icon:hover {
    color: #333;
}

/* Ligne des produits */
.product-list-cell {
    padding: 0 !important;
    background-color: #f9f9f9;
}

.product-sublist {
    padding: 10px 20px 10px 50px;
}

.product-sublist table {
    margin: 0;
    width: 100%;
}

.product-sublist table tr:last-child td {
    border-bottom: none;
}

/* Footer modale - style Kanban */
.modal-footer-nouvelle-proposition {
    padding: 15px 25px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Bouton Annuler */
.butAction.Cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.butAction.Cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}

/* Formulaire dans modale */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

/* Résultats recherche produits */
.product-search-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #fafafa;
}

.product-search-item {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-search-item:hover {
    background-color: #e8f4fc;
}

.product-search-item .product-ref {
    font-weight: bold;
    color: #0066cc;
}

.product-search-item .product-label {
    color: #666;
    font-size: 0.9em;
}

.product-search-item .product-price {
    color: #333;
    font-weight: 500;
}

.product-search-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #eee;
}

/* Produits sélectionnés */
.selected-products {
    min-height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #f0fff0;
}

.selected-product-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 3px;
}

.selected-product-ref {
    font-weight: 600;
    color: #155724;
}

.selected-product-qty {
    width: 50px;
    padding: 2px 5px;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    text-align: center;
    font-size: 13px;
}

.selected-product-qty:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.selected-product-item .remove-product {
    cursor: pointer;
    color: #c00;
    font-weight: bold;
}

.selected-product-item .remove-product:hover {
    color: #f00;
}

.no-selection {
    margin: 0;
    text-align: center;
    padding: 10px;
}
