@import "helpers/helpers";
@import "helpers/colors";
@import "partials/sidebar";
@import "partials/_header";
@import "partials/_utenti";
@import "partials/_utenti_profile";
@import "partials/_gruppi";
@import "partials/_gruppi-profile";
@import "partials/_euroBonus";
@import "partials/_euroBonus-profile";
@import "partials/_promos";
@import "partials/_catalog";
@import "partials/_services";

@import "partials/_modals";

@import "~sweetalert2/src/sweetalert2";

* {
    font-family: "Istok Web", sans-serif;
    font-size: 10px;
    -webkit-transition: right 0.5s ease;
    -moz-transition: right 0.5s ease;
    -ms-transition: right 0.5s ease;
    -o-transition: right 0.5s ease;
    transition: right 0.5s ease;
}

.tooltip-inner {
    background: $green;
    font-size: 1.5rem;
    @include boldFont();
    border-radius: 10px;
}

.bs-tooltip-auto[x-placement^="top"] .arrow::before,
.bs-tooltip-top .arrow::before {
    border-top-color: $green;
}

i {
    color: $green;
}
.ci.ci-close-white {
    &:hover {
        cursor: pointer;
        opacity: 0.8;
    }
}
.bold {
    @include boldFont();
}

.clear {
    padding-left: 0;
    padding-right: 0;
}

a {
    &:hover {
        text-decoration: none;
    }
}

.do-status {
    color: #fff;
    font-size: 1.8rem;
    @include boldFont();
    background: $green;
    border-radius: 20px;
    padding: 5px 0;
    width: 100px;
    text-align: center;
    margin: 0 auto;
}

.loader {
    margin: 50px auto;
    border: 8px solid $lightGray;
    /* Light grey */
    border-top: 8px solid $green;
    /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

:focus {
    outline: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ci-btn {
    &.btn-green {
        background: $green;
        border: 1px solid $green;
    }
}

// Orders table animation bug
.collapsing {
    -webkit-transition: none;
    transition: none;
    display: none;
}

// Order list-item (Product list)
.list-group-item {
    &.active {
        background: $green;
        border: 1px solid $green;
    }
}

.table {
    td {
        &.inline {
            width: 1%;
            white-space: nowrap;
        }
    }
}

.btn {
    &-optovista {
        background: $green;
        border-radius: 20px;
        text-transform: uppercase;
        color: white;
        font-size: 14px;

        i {
            color: white;
            font-size: 14px;
        }

        &:hover {
            color: white;
            background: lighten($color: $green, $amount: 10);
        }
    }
}
.modal-content {
    @include borderRadius(20px);
    padding: 2rem 1rem;
    .modal-header {
        color: $green;
        h3 {
            @include boldFont();
        }
        button.close {
            opacity: 1;
            span {
                font-size: 2rem;
                text-transform: uppercase;
                color: #2b2b2b;
                opacity: 1;
                position: relative;
                padding-right: 0;
                img {
                    width: 18px;
                    height: 18px;
                }
                span.close {
                    /* font-size: 3.5rem; */
                    opacity: 1;
                    position: absolute;
                    top: 4px;
                    right: -30px;
                    /* transform: translate(0,-50%); */
                    padding: 0;
                    width: 18px;
                    height: 18px;
                    margin: 0;
                    img {
                        width: 100%;
                    }
                }
            }
        }
    }
}

.crud-form-wrapper {
    #nation_id::-ms-expand {
        background: none;
        border: none;
    }
    #nation_id::-ms-expand {
        display: none;
    }
    #nation_id {
        position: relative;

        &::before {
            content: " ";
            position: absolute;
            width: 5px;
            height: 5px;
            background: $lightGreen;
        }
    }
    .select2-container--default .select2-selection--multiple {
        @include borderRadius(20px);
        font-size: 1.6rem;
        padding: 0;
        background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTYgOSI+DQogIDxwYXRoIGlkPSJQb2x5Z29uXzYiIGRhdGEtbmFtZT0iUG9seWdvbiA2IiBkPSJNOCwwbDgsOUgwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTYgOSkgcm90YXRlKDE4MCkiIGZpbGw9IiM2Y2FhYTgiLz4NCjwvc3ZnPg0K)
            no-repeat 98% 50%;
        -moz-appearance: none;
        -webkit-appearance: none;
        appearance: none;
    }
    .select2-container--default .select2-search--inline .select2-search__field {
        font-size: 1.6rem;
    }
    .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
        -webkit-transform: translateX(1.25rem);
        transform: translateX(1.25rem);
    }
    .custom-control-input:checked ~ .custom-control-label::before {
        background-color: $lightGreen;
        border-color: $lightGreen;
    }
    .custom-switch .custom-control-label::before {
        left: -2.25rem;
        width: 2rem;
        transform: scale(1.5);
        pointer-events: all;
        border-radius: 0.5rem;
        top: 5px;
        cursor: pointer;
    }
    .custom-switch .custom-control-label::after {
        top: calc(0.25rem + 4px);
    }
    form {
        input,
        select,
        textarea {
            font-size: 16px;
            // padding: 10px;
            @include borderRadius(20px);
        }
        select {
            background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTYgOSI+DQogIDxwYXRoIGlkPSJQb2x5Z29uXzYiIGRhdGEtbmFtZT0iUG9seWdvbiA2IiBkPSJNOCwwbDgsOUgwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTYgOSkgcm90YXRlKDE4MCkiIGZpbGw9IiM2Y2FhYTgiLz4NCjwvc3ZnPg0K)
                no-repeat 98% 50%;
            -moz-appearance: none;
            -webkit-appearance: none;
            appearance: none;
        }
    }
    label {
        font-size: 1.6rem;
        cursor: pointer;
    }
    legend {
        color: $green;
        font-size: 1.8rem !important;
        @include boldFont();
        padding: 15px 0 15px 0 !important;
    }
}
.customSelectArrow {
    input {
        background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTYgOSI+DQogIDxwYXRoIGlkPSJQb2x5Z29uXzYiIGRhdGEtbmFtZT0iUG9seWdvbiA2IiBkPSJNOCwwbDgsOUgwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTYgOSkgcm90YXRlKDE4MCkiIGZpbGw9IiM2Y2FhYTgiLz4NCjwvc3ZnPg0K)
            no-repeat 98% 50%;
        -moz-appearance: none;
        -webkit-appearance: none;
        appearance: none;
    }
}

.dropdown-toggle {
    -webkit-appearance: none;
}
.avatar-wrapper {
    position: relative;
    width: 128px;
    height: 128px;
    margin: auto;

    .reset {
        width: 100%;
        position: absolute;
        bottom: 0;
        border-bottom-left-radius: 50%;
        border-bottom-right-radius: 50%;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 10px 0 10px 0;

        i {
            font-size: 14px;
        }

        &:hover {
            i {
                color: $lightGreen;
            }
        }
    }
}

.avatar {
    border-radius: 50%;
    &-128 {
        width: 128px;
        height: 128px;
    }
}

#avatar-dropzone,
#company-dropzone {
    width: 100%;
    height: 128px;
    border: 2px dashed grey;
    min-height: unset;
    @include borderRadius(20px);
}
.dropzone {
    display: flex;
    justify-content: center;
    align-items: center;
    button {
        font-size: 18px !important;
    }
}

[data-toggle="collapse"] {
    cursor: pointer;
}
.filterForm {
    .select2-container--default .select2-selection--single {
        @include borderRadius(20px);
        font-size: 1.6rem;
        padding: 0;
        background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTYgOSI+DQogIDxwYXRoIGlkPSJQb2x5Z29uXzYiIGRhdGEtbmFtZT0iUG9seWdvbiA2IiBkPSJNOCwwbDgsOUgwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTYgOSkgcm90YXRlKDE4MCkiIGZpbGw9IiM2Y2FhYTgiLz4NCjwvc3ZnPg0K)
            no-repeat 98% 50%;
        -moz-appearance: none;
        -webkit-appearance: none;
        appearance: none;
        height: calc(1.5em + 0.75rem + 2px);
        border-color: #ced4da;
    }
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 1.6rem;
        line-height: calc(1.5em + 0.75rem + 2px);
    }
    .select2-selection__arrow {
        display: none;
    }
    .select2-selection__rendered {
        .select2-selection__placeholder {
            line-height: calc(1.5em + 0.75rem + 2px);
            font-size: 1.6rem;
        }
    }
}

.do-user-registered{
    width: 100%;
    color: white !important;
    font-size: 14px !important;
    margin: 0 auto !important;
}