/**
 * Styles pour les sections d'autocomplétion Company
 */

/* Styles pour les headers de section de l'autocomplétion Company */
.typeahead__item .company-autocompletion-section {
    cursor: pointer !important; 
    pointer-events: auto !important;
    user-select: none !important;
    margin: 0 !important;
    padding: 8px 15px !important;
}

/* Icône de collapse/expand */
.typeahead__item .company-autocompletion-section::before {
    content: '▼' !important;
    font-size: 12px !important;
    margin-right: 8px !important;
    transition: transform 0.2s ease !important;
    display: inline-block !important;
}

/* Icône quand la section est repliée */
.typeahead__item .company-autocompletion-section.collapsed::before {
    transform: rotate(-90deg) !important;
}

/* Styles pour les éléments li contenant les headers de section */
.typeahead__item:has(.company-autocompletion-section) {
    cursor: pointer !important;
    pointer-events: auto !important;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Hover sur les éléments de section */
.typeahead__item:has(.company-autocompletion-section):hover {
    background-color: #e9ecef !important;
}

/* Styles pour les liens à l'intérieur des sections */
.typeahead__item:has(.company-autocompletion-section) a {
    cursor: pointer !important;
    pointer-events: auto !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hover sur les liens des sections */
.typeahead__item:has(.company-autocompletion-section) a:hover {
    background-color: transparent !important;
}

/* Styles pour les items d'une section */
.typeahead__item[data-section-item] {
    overflow: hidden !important;
}

/* Items cachés quand la section est repliée */
.typeahead__item[data-section-item].hidden {
    display: none !important;
}
