

.switch, .switchV2 {
    position: relative;
    display: inline-block;
    width: 50px!important;
    height: 21px;
    margin: 5px 15px;

    input {
        display:none;
    }

    .value_switch {
        position: absolute;
        left: 140%;
        top: 10%;
        white-space: nowrap;
    }
}

$slider-padding: 3px;
$slider-bip-size: 15px;
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;

    &:before {
        position: absolute;
        content: "";
        height: $slider-bip-size;
        width: $slider-bip-size;
        left: $slider-padding;
        bottom: $slider-padding;
        background-color: white;
        transition: .4s left;

        input:checked + & {
            left: calc(100% - 15px - #{$slider-padding});
        }
    }

    input:checked + & {
        background-color: var(--main-color-blue);
    }
    
    input:disabled +  & {
		opacity: 0.4;
		cursor: not-allowed;
	}

    &.round {
        border-radius: 34px;
        &:before {
            border-radius: 50%;
          }
    }
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

// Remove "eye" icon on password input for Edge
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.input-wrapper {
    @extend .bs-row;
    @extend .flex-x-btw;

    &:not(.input-textarea) {
        @extend .flex-y-start;
    }

    .input-group-addon {
        background-color: transparent;
        border: none;
        position: absolute;
        right: 33px;
        top: 12%;
        color: #ddd;
    }

    > label:first-of-type {
        padding-top: 9px;
    }

}


input[type="radio"]:not(.d-none) {
	display: inline-block;
}

input.numeric {
	text-align: right;
}

.wrapper-radio-inline {
    display: flex;

    .radio-inline {
        border-left-width: 0;
        border-right-width: 0;
    }
    .radio-inline:first-of-type {
        border-left-width: 1px;
        border-bottom-left-radius: 4px;
        border-top-left-radius: 4px;
    }
    .radio-inline:last-of-type {
        border-right-width: 1px;
        border-bottom-right-radius: 4px;
        border-top-right-radius: 4px;
    }
}

.radio-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    
    background-color: #f6f6f6;
    
    border: 1px solid var(--main-color-grey2);

    transition: 0.25s background-color;
    
    .icosq-checkmark {
        font-size: 1.666rem; // 20px
        @extend .icosq-radio-checkmark-inactive;
    }

	input:checked + & {
        border-color: var(--main-color-client1);
		background-color: var(--main-color-client1);
		color: #fff !important;

        .icosq-checkmark {
            @extend .icosq-radio-checkmark-active;
        }
	}
}

.input-zoom-adv {
    // Hide loupe when disabled
    input:read-only:not(.zoom-desactiveSaisie)+.btn-zoom-open,
    input:disabled+.btn-zoom-open {
        display:none;
    }
}

.zoom-desactiveSaisie {
    background-color: white !important;
}

.ibanInput {
    width: 4rem;
}

.input-table {
    > tbody > tr > td:not(.input-table-td-action) {
        vertical-align: top !important;
    }
}

_boxAutoComplete {
    position: absolute;
    padding: 5px;
    padding: 5px !important; // Counter ul {padding: 0}
    top: 100%;
    z-index: 10;
    overflow: auto;
    max-height: 20em;

    cursor: pointer;
    
    background: white;
    border: 1px solid #d9e2ea;
    border-radius: 5px;

    > li {
        padding: 5px;

        &:hover {
            background-color: var(--color-menuprofile-hover);
        }
    }
    &:empty {
        display: none;
    }
}

.input-pillable {
    .pillable-item {
        padding: 3px 5px;
        border-radius: 5px;
        background: rgb(216, 216, 216);
        margin: 1px 2px;
    }
    .pillable-front-input {
        width: 100%;
        min-width: 20em;
        padding: 0;
        border: none;
        outline: none;
    }
    .pillable-autocomplete {
        @extend _boxAutoComplete;
    }
    .pillable-btn-reset {
        @extend _base-icosq;
        @extend .icosq-btn-close;

        position: absolute;
        top: calc(50% - 0.5em/* half of self height*/);
        right: 0;
    }
}


.input-text, .input-zoom-adv {
    .input-text-autocomplete {
        @extend _boxAutoComplete;
    }
}

.treeview {
    .node-selected {
        color: #FFFFFF;
        background-color: #428bca !important;
    }
}

