:root {
    --checkmark-svg: url(../../images/spherica-icons/checkmark-spherica.svg);
    --collapse-svg: url(../../images/spherica-icons/collapse-spherica.svg);
}

.multiselect-base {
    position: relative;
    font-family: 'BentonBook', sans-serif;
    font-size: 15.008px;
    font-style: normal;
    font-weight: 350;
    line-height: 24px;
}

/* Div Search */
.multiselect-search-div {
    background: var(--bbva-grey-200);
    border: 2px solid var(--bbva-grey-600);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.multiselect-search-div-input {
    width: 100%;
}

/* FIN Div Search */

/* Multiselect Search input */
.multiselect-search-input {
    background-color: var(--bbva-grey-200);
    border: 0;
    flex-grow: 2;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 52px;
    min-height: unset !important;
}

.multiselect-search-input:focus {
    cursor: default;
    border: 0;
    box-shadow: none !important;
    background-color: var(--bbva-grey-200)
}

/* FIN Multiselect Search input */

/* Multiselect Counter */
.multiselect-icon-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.multiselect-counter {
    transform: translateY(28%);
    color: var(--bbva-grey-600);
    visibility: hidden;
}

.multiselect-counter.show {
    visibility: visible;
}
/* FIN Multiselect Counter */

/* Icons */
/* Rotar flecha */
i.icon-rotation {
    transform: rotate(0deg);
    transition: transform 0.18s linear;
}

i.icon-rotation.open {
    transform: rotate(180deg);
    transition: transform transform 0.18s linear;
}

/* Se bajan un poco los iconos */
[id^="multi-select-arrow-icon"] {
    transform: translateY(10%);
}

[id^="multi-select-close-icon"] {
    transform: translateY(10%);
}
/* Fin Icons */



/* Multiselect Div de Opciones/Select-All/Btn-Filter  */
.multiselect-options-div {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    border-top: none;
    background-color: var(--bbva-grey-200);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    visibility: hidden;
    max-height: 0;
    transition: visibility 0s 0.2s, max-height 0.2s ease-in-out;
    z-index: 1000;
    border-radius: 16px;
}

.multiselect-options-div.open {
    visibility: visible;
    transition: visibility 0s 0s, max-height 0.2s ease-in-out;
    max-height: 900px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* FIN Multiselect Div de Opciones/Select-All/Btn-Filter  */

/* Listado con scroll - Sin Select-All / Btn-Filter */
.multiselect-list-options {
    background: var(--bbva-grey-200);
    /*border: 1px solid #ced4da;*/
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
}

/* FIN Listado con scroll - Sin Select-All / Btn-Filter */

/* Opcion unitaria listado */
.multiselect-option-card {
    background: var(--bbva-white-100);
    color: var(--bbva-midnight-blue);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.multiselect-option-null {
    background: var(--bbva-white-100);
    color: var(--bbva-midnight-blue);
    border: 0;
    display: none;
}

.multiselect-option-card.selected {
    background: var(--bbva-electric-blue);
    color: var(--bbva-white-100);
}

.check-icon {
    display: none;
    color: var(--bbva-white-100);
}

.multiselect-option-card.selected .check-icon {
    display: inline-block;
    /* Muestra el ticket ✔ cuando se selecciona */
}

/* Fin Opcion unitaria listado */

/* Boton Filtrar */
.multiselect-card-btn {
    border-radius: 16px;
    background: var(--bbva-grey-200);
    color: var(--bbva-midnight-blue);
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

/* FIN Boton Filtrar */



/* Checkbox Select all - Se cambia el ticket normal por el de spherica */
.multiselect-checkbox-selectall {
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bbva-grey-600);    
}

.multiselect-checkbox-selectall:checked {
    background-image: var(--checkmark-svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    background-color: var(--bbva-white-100);
    color: var(--bbva-white-100);
}
.multiselect-checkbox-selectall.atleastone {
    background-image: var(--collapse-svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    background-color: var(--bbva-white-100);
    color: var(--bbva-white-100);
}

.multiselect-card-selectall {
    background: var(--bbva-grey-200);
    border: 0;
}

/* Label del input - Le quita el borde al texto flotante */
.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after {
    background-color: var(--bbva-grey-200) !important;
    color: var(--bbva-grey-600);
}

.form-floating>.form-control~label{
    color: var(--bbva-grey-600);
}