/*======================================
  Selectric v1.11.1
======================================*/

.selectric-wrapper {
    position: relative;
    cursor: pointer;
    /*padding-top: 3px;*/
}

.selectric-responsive {
    width: 100%;
}

.selectric {
    border: 1.5px solid var(--field-bd);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}
    .selectric .label {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0 34px 0 10px;
        line-height: 38px;
        font-size: 15px;
        color: #444;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .selectric .button {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        width: 38px;
        height: 38px;
        line-height: 38px;
        color: #a2a2a2;
        text-align: center;
        font: 0/0 a;
        *font: 20px/38px Lucida Sans Unicode, Arial Unicode MS, Arial;
    }

        .selectric .button:after {
            content: " ";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin: auto;
            width: 0;
            height: 0;
            border: 4px solid transparent;
            border-top-color: #888;
            border-bottom: none;
        }

.selectric-focus .selectric {
    border-color: #aaaaaa;
}

.selectric-hover .selectric {
    border-color: #c4c4c4;
}

    .selectric-hover .selectric .button {
        color: #a2a2a2;
    }

        .selectric-hover .selectric .button:after {
            border-top-color: #a2a2a2;
        }

.selectric-open {
    z-index: 9999;
}

    .selectric-open .selectric {
        border-color: #c4c4c4;
    }

    .selectric-open .selectric-items {
        display: block;
    }

.selectric-disabled {
    filter: alpha(opacity=50);
    opacity: 0.6;
    /*cursor: not-allowed;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.selectric-hide-select {
    position: relative;
    overflow: hidden;
    width: 0;
    height: 0;
}

    .selectric-hide-select select {
        position: absolute;
        left: -100%;
    }

    .selectric-hide-select.selectric-is-native {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 10;
    }

        .selectric-hide-select.selectric-is-native select {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            width: 100%;
            border: none;
            z-index: 1;
            box-sizing: border-box;
            opacity: 0;
        }

.selectric-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 1px !important;
    height: 1px !important;
    outline: none !important;
    border: none !important;
    *font: 0/0 a !important;
    background: none !important;
}

.selectric-temp-show {
    position: absolute !important;
    visibility: hidden !important;
    display: block !important;
}

/* Items box */
.selectric-items {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #c4c4c4;
    z-index: -1;
    box-shadow: 0 0 10px -6px;
}

    .selectric-items .selectric-scroll {
        height: 100%;
        overflow: auto;
    }

.selectric-above .selectric-items {
    top: auto;
    bottom: 100%;
}

.selectric-items ul, .selectric-items li {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 15px;
    min-height: 15px;
}

.select_center li {
    text-align: center
}

.selectric-items li {
    display: block;
    padding: 15px 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 15px;
}

    .selectric-items li.selected {
        background: #efefef;
        color: #444;
    }

    .selectric-items li.highlighted {
        background: #efefef;
        color: #444;
    }

        .selectric-items li.highlighted:last-child {
            border-radius: 0 0 10px 10px;
        }

    .selectric-items li:hover {
        background: #efefef;
        color: #444;
    }

    .selectric-items li:last-child:hover {
        border-radius: 0 0 10px 10px;
    }

.selectric-items .disabled {
    filter: alpha(opacity=50);
    opacity: 0.5;
    cursor: default !important;
    background: none !important;
    color: #666 !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.selectric-items .selectric-group .selectric-group-label {
    font-weight: bold;
    padding-left: 10px;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: none;
    color: #444;
}

.selectric-items .selectric-group.disabled li {
    filter: alpha(opacity=100);
    opacity: 1;
}

.selectric-items .selectric-group li {
    padding-left: 25px;
}


/* Mie personalizzazioni */
.select2-search--dropdown .select2-search__field {
    color: #444;
    font-size: 14px;
    border-radius: 3px;
    padding: 8px 4px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--sidebar-hover-bg);
    color: #444;
    font-size: 15px;
    height: auto;
}

    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable:first-of-type {
    }

    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable:last-child {
        border-radius: 0 0 10px 10px;
    }

.select2-container--default .select2-results__option--selected {
    background-color: white;
}

    .select2-container--default .select2-results__option--selected:last-child {
        border-radius: 0 0 10px 10px;
    }

.select2-results__option--selectable {
    font-size: 15px;
    min-height: 40px;
    padding: 10px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px;
    line-height: 35px;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 300px;
}

.select2-container--default .select2-selection--single {
    border: 1.5px solid var(--field-bd);
    border-radius: 10px;
    height: 40px;
    font-size: 15px;
    color: #444;
}

.select2-container--default .select2-selection--multiple {
    border: 1.5px solid var(--field-bd);
    border-radius: 10px;
    min-height: 40px;
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    padding: 4px 6px;
}

    .select2-container--default .select2-selection--multiple .select2-selection__rendered {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        width: 100%;
        padding: 0;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 3px 8px 3px 10px;
        max-width: 100%;
        background-color: var(--color-primary-light);
        border: 1px solid transparent;
        border-radius: var(--radius-pill);
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
        display: flex;
        align-items: center;
        padding: 0;
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
        order: 2;
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, .08);
        color: #666;
        font-size: 12px;
        line-height: 1;
        cursor: pointer;
    }

        .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
        .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
            background: var(--error-bg);
            color: var(--error-text);
            outline: none;
        }

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--ring);
}
