
/* 
    Created on : 28 oct. 2025, 09:56:56
    Author     : mehrez
*/

/* pour mettre responsive les profils strategique avec chiffres*/
div.custom-select div.select-header span{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
  
.hidden-item{
    display:none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none; /* Empêche les clics */
}
.shown-item{
    display: initial;
    visibility:  initial;
    opacity: 1;
    transition: opacity 300ms ease;
}

/*modal elite proposition */
div#ModalElite{
    position: fixed !important;
}


/* PERSONALISATION DE LA LISTE DEROULANTE */
.custom-select {
    /* position: relative;
    width: 100%; */

    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem .375rem .90rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    /* background-image: none;
   appearance: auto;
   -webkit-appearance: auto;
   -moz-appearance: auto;  */
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s
        ease-in-out, box-shadow .15s
        ease-in-out;
}

.select-header {
    /* background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 20px; */
}

.select-header:hover {
    border-color: #003366;
}

.select-header::after {
    /* content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #003366;
    font-size: 12px;
    transition: transform 0.3s ease; */
}

.select-header.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.select-dropdown.active {
    display: block;
}

.option-category {
    padding: 12px 15px;
    font-weight: 600;
    color: #003366;
    background: #f8f9ff;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.option-item {
    padding: 10px 15px 10px 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid transparent;
}

.option-item:hover {
    background: #f0f4ff;
    border-left-color: #003366;
    padding-left: 43px;
}

.option-item.selected {
    background: #e0e7ff;
    color: #003366;
    font-weight: 500;
}

.option-icon {
    font-size: 12px;
    opacity: 0.6;
}

.selected-value {
    color: #333;
}
/* Style de la scrollbar */
.select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 8px;
}

.select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}


/* POUR FORCER width pour profil et le reste des liste deroulante */
form div.col-lg-5{
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%
}


div#select2 div.select-header span.placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.select-header .logo {
    background-image: url(https://www.fusacq.com/FUSACQ2020/images/fusacq_elite.gif);
    background-repeat: no-repeat;
    /* background-position: 8px center; */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


.reset-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #dc3545;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    background-color: #fff8f8;
}

.reset-option:hover {
    background: #ffe5e5;
}
