//Template
@import "../template/smartadmin/css/vendors.bundle.css";
@import "../template/smartadmin/css/app.bundle.css";

//Packages
@import "~toastr/build/toastr.min.css";
@import "../template/smartadmin/css/datagrid/datatables/datatables.bundle.css";
@import "../template/smartadmin/css/formplugins/select2/select2.bundle.css";
@import "../template/smartadmin/css/formplugins/bootstrap-daterangepicker/bootstrap-daterangepicker.css";

//Styles
@import "./components/table";

@import "./components/checkbox_toggle";
@import "./components/upload_file";
@import "./components/upload_gallery";

// ::-webkit-scrollbar {
//     -webkit-appearance: none;
//     background-color: #ebebeb;
//     width: 10px;
//     height: 10px;
// }
// ::-webkit-scrollbar-thumb {
//     border: 1px solid #ebebeb;
//     background-color: var(--theme-primary);
//     border-radius: 4px;
// }

.form__option{float: left;text-align: center;padding-right: 10%;}

.page-logo {
    img {
        max-width: 270px;
        max-height: 50px;
        width: 100%;
        height: 100%;
    }
    .page-logo-link {
        justify-content: center;
    }
}

.page-wrapper{
    overflow: hidden;
}

.custom-bg-light {
    background-color: #f8f9fa!important;
}

label{
    font-weight: 700;
}

.trienio-select{
    width: 150px;
}

.perfil-select{
    z-index: 9;
    width: 100%;
}

.template-edit-inputs{
    margin-top: -3px;
}

.template-input .input-header{
    h4 i{
        transition: transform .3s;
    }

    &.opened{
        h4 i{
            transform: rotateX(180deg);
        }
    }
}

.open-infos{
    width: 20px;
    height: 20px;
    padding: 0px;
    margin-bottom: 5px;
}

.container-loader{
    min-height: 300px;
    position: relative;

    &.loading{
        &:before, &:after{
            opacity: 1;
            pointer-events: all;
        }
    }

    &:after{
        content: '';
        width: 100%;
        height: 100%;
        z-index: 100;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #FFF;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
    }

    &:before{
        content: '';
        height: 20px;
        width: 20px;
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 101;
        transform: translate(-50%, -50%);
        animation: spin 0.5s infinite linear;
        border: 2px solid var(--theme-primary);
        border-right-color: transparent;
        border-radius: 50%;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
    }
}

.has-loader{
    position: relative;

    &.loading{
        &:after{
            opacity: 1;
            pointer-events: all;
        }
    }

    &:after{
        content: '';
        height: 20px;
        width: 20px;
        position: absolute;
        right: 20px;
        top: 35px;
        z-index: 101;
        transform: translate(-50%, -50%);
        animation: spin 0.5s infinite linear;
        border: 2px solid var(--theme-primary);
        border-right-color: transparent;
        background-color: #FFF;
        border-radius: 50%;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
    }
}

.nav-menu li.open a.current {
    color: white;
}

table{
    &.dataTable.dtr-inline {
        > tbody {
            > tr{
                > td.control:first-child:before, > th:first-child:before{
                    content: "\f0da";
                    font-family: 'Font Awesome 5 Pro';
                    font-size: 1rem;
                    font-weight: 300;
                    width: 15px;
                    color: #1dc9b7;
                    display: inline-block;
                }
            }
            > tr.parent{
                > td.control:first-child:before, > th:first-child:before{
                    content: "\f0d7";
                    font-family: 'Font Awesome 5 Pro';
                    font-size: 1rem;
                    font-weight: 300;
                    width: 15px;
                    color: #1dc9b7;
                    display: inline-block;
                }
            }
        }
    }
}

.dataTables_wrapper .projetos_table {
    tr.child{
        td.child{
            .dtr-details{
                padding: 0 !important;
            }

            .dtr-title {
                display: none;
            }
        }
    }
}

#order {
    li {
        user-select: none;
        cursor: move;
    }
}

#load-overlay{
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    position: fixed;
    z-index: 9999;
}

.daterangepicker{
    .in-range.available {
        background-color: rgba(136, 106, 181, 0.301);
    }
    td.available:hover, .daterangepicker th.available:hover {
        background-color: rgba(136, 106, 181);
        color: #ffffff;
    }
    .off.ends.in-range.available{
        background-color: rgba(255, 255, 255, 0);
    }
}

.select2-results__option[aria-selected=true] {
    display: none;
}

.pickr .pcr-button {
    border: thin solid #ffffff;
    outline: rgba(136, 106, 181) solid 2px;
}

.modal-dialog.form-condicoes{
    max-width: 850px;
    top: 50%;
    transform: translateY(-50%)!important;
    margin: auto;
}

.select2-dropdown {
    z-index: 9999;
}

.page-logo img{
    width: 100px;
    filter: brightness(0) invert(1);
}
