﻿/* Custom CSS HTML control 
-------------------------------------------------- */

/* Password Icon css */
input.G-form-control-pass {
    padding-right: 35px;
}

span.G-form-control-pass-show {
    float: right;
    margin: -23px 10px auto;
    position: relative;
    z-index: 2;
    color: gray;
    pointer-events: auto;
    cursor: pointer;
}

/* Icon Delete for text-box css */
input.G-form-control-text {
    padding-right: 30px;
}

input.G-form-control-text-sm {
    padding-right: 30px;
}

span.G-form-control-text-clear {
    float: right;
    margin: -23px 10px auto;
    position: relative;
    z-index: 2;
    color: gray;
    pointer-events: auto;
    cursor: pointer;
}

span.G-form-control-text-clear-sm {
    float: right;
    margin: -20px 10px auto;
    position: relative;
    z-index: 2;
    color: gray;
    pointer-events: auto;
    cursor: pointer;
}

span.G-textarea {
    margin: -22px 3px auto;
}

.G-InputIcon-Position {
    float: right;
    margin-top: -27px;
    /*margin: -28px 10px auto;*/
    margin-right: 10px;
    position: relative;
    z-index: 2;
    color: gray;
    pointer-events: auto;
    cursor: pointer;
}


/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@ switch controls @@@@@@@@@@@@@@@@@@@@@@@*/
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

/*-----------------YES/NO SWITCH---------------------------*/
.G-YNswitch {
    position: relative;
    width: 60px; /*75px;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.G-YNswitch-checkbox {
    display: none;
}

.G-YNswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #999999;
    border-radius: 20px;
}

.G-YNswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

    .G-YNswitch-inner:before, .G-YNswitch-inner:after {
        display: block;
        float: left;
        width: 50%;
        height: 25px;
        padding: 0;
        line-height: 25px;
        font-size: 14px;
        color: white;
        font-family: Trebuchet, Arial, sans-serif;
        font-weight: bold;
        box-sizing: border-box;
    }

    .G-YNswitch-inner:before {
        content: "Yes";
        padding-left: 5px; /*10px;*/
        background-color: #2BE63B;
        color: #FFFFFF;
    }

    .G-YNswitch-inner:after {
        content: "No";
        padding-right: 6px; /*10px;*/
        /*background-color: #F50A0A; color: #FAFAFA;*/
        background-color: #EEEEEE;
        color: #999999;
        text-align: right;
    }

.G-YNswitch-switch {
    display: block;
    width: 20px;
    margin: 5px;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    /*right: 46px;*/
    right: 31px;
    border: 2px solid #999999;
    border-radius: 20px;
    transition: all 0.3s ease-in 0s;
}

.G-YNswitch-checkbox:checked + .G-YNswitch-label .G-YNswitch-inner {
    margin-left: 0;
}

.G-YNswitch-checkbox:checked + .G-YNswitch-label .G-YNswitch-switch {
    right: 0px;
}

.G-YNswitch-checkbox:disabled + .G-YNswitch-label .G-YNswitch-switch {
    cursor: not-allowed;
}

/*-----------------ON/OFF SWITCH-------------------------*/

.G-onoffswitch {
    position: relative;
    width: 60px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.G-onoffswitch-checkbox {
    display: none;
}

.G-onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #999999;
    border-radius: 20px;
}

.G-onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

    .G-onoffswitch-inner:before, .G-onoffswitch-inner:after {
        display: block;
        float: left;
        width: 50%;
        height: 25px;
        padding: 0;
        line-height: 25px;
        font-size: 14px;
        color: white;
        font-family: Trebuchet, Arial, sans-serif;
        font-weight: bold;
        box-sizing: border-box;
    }

    .G-onoffswitch-inner:before {
        content: "On";
        padding-left: 6px;
        background-color: #095CBA /*#28A745*/;
        color: #FFFFFF;
    }

    .G-onoffswitch-inner:after {
        content: "Off";
        padding-right: 6px;
        background-color: #DA1103 /*#EEEEEE*/;
        color: #999999;
        text-align: right;
    }

.G-onoffswitch-switch {
    display: block;
    width: 20px;
    margin: 5px; /*37px 5px 5px;*/
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 31px;
    border: 2px solid #999999;
    border-radius: 20px;
    transition: all 0.3s ease-in 0s;
}
/*right: 46px;*/
/*display: block; width: 18px; margin: 3.5px;*/


.G-onoffswitch-checkbox:checked + .G-onoffswitch-label .G-onoffswitch-inner {
    margin-left: 0;
}

.G-onoffswitch-checkbox:checked + .G-onoffswitch-label .G-onoffswitch-switch {
    right: 0px;
}

.G-onoffswitch-checkbox:disabled + .G-onoffswitch-label .G-onoffswitch-switch {
    cursor: not-allowed;
}




/*  Checkboc switch  bootstrap 4.6 extention */
/* just add the bootstrap custom-switch and add the size custom-switch-sm... etc */
/* for sm */

.custom-switch.custom-switch-sm .custom-control-label {
    padding-left: 1rem;
    padding-bottom: 1rem;
}

    .custom-switch.custom-switch-sm .custom-control-label::before {
        height: 1rem;
        width: calc(1rem + 0.75rem);
        border-radius: 2rem;
    }

    .custom-switch.custom-switch-sm .custom-control-label::after {
        width: calc(1rem - 4px);
        height: calc(1rem - 4px);
        border-radius: calc(1rem - (1rem / 2));
    }

.custom-switch.custom-switch-sm .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(1rem - 0.25rem));
}

/* for md */

.custom-switch.custom-switch-md .custom-control-label {
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

    .custom-switch.custom-switch-md .custom-control-label::before {
        height: 1.5rem;
        width: calc(2rem + 0.75rem);
        border-radius: 3rem;
    }

    .custom-switch.custom-switch-md .custom-control-label::after {
        width: calc(1.5rem - 4px);
        height: calc(1.5rem - 4px);
        border-radius: calc(2rem - (1.5rem / 2));
    }

.custom-switch.custom-switch-md .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(1.5rem - 0.25rem));
}

/* for lg */

.custom-switch.custom-switch-lg .custom-control-label {
    padding-left: 3rem;
    padding-bottom: 2rem;
}

    .custom-switch.custom-switch-lg .custom-control-label::before {
        height: 2rem;
        width: calc(3rem + 0.75rem);
        border-radius: 4rem;
    }

    .custom-switch.custom-switch-lg .custom-control-label::after {
        width: calc(2rem - 4px);
        height: calc(2rem - 4px);
        border-radius: calc(3rem - (2rem / 2));
    }

.custom-switch.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(2rem - 0.25rem));
}

/* for xl */

.custom-switch.custom-switch-xl .custom-control-label {
    padding-left: 4rem;
    padding-bottom: 2.5rem;
}

    .custom-switch.custom-switch-xl .custom-control-label::before {
        height: 2.5rem;
        width: calc(4rem + 0.75rem);
        border-radius: 5rem;
    }

    .custom-switch.custom-switch-xl .custom-control-label::after {
        width: calc(2.5rem - 4px);
        height: calc(2.5rem - 4px);
        border-radius: calc(4rem - (2.5rem / 2));
    }

.custom-switch.custom-switch-xl .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(2.5rem - 0.25rem));
}



/* #########################################  New switch  ####################################*/
/* Small Switch Ver 1 */

.sm-SW1 input[type=checkbox] {
    position: relative;
    width: 34px;
    height: 15px;
    -webkit-appearance: none;
    -webkit-appearance: none;
    background: #ff0000;
    outline: none;
    cursor: pointer;
    border: solid 1px #6c6767;
    border-radius: 15px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background 300ms linear;
}

    .sm-SW1 input[type=checkbox]::before {
        position: absolute;
        content: "";
        width: 15px;
        height: 15px;
        top: -1px;
        left: -1px;
        border: solid 1px #6c6767;
        border-radius: 20px;
        background-color: #fff;
        transform: scale(1.1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: left 300ms linear;
    }

    .sm-SW1 input[type=checkbox]:checked {
        background: #9dff00;
    }

        .sm-SW1 input[type=checkbox]:checked::before {
            left: 18px;
            background-color: #fff;
        }

    .sm-SW1 input[type=checkbox]:disabled {
        cursor: not-allowed;
    }






/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

/*  Forms top right X close Button  */
.myX {
    float: right;
    text-decoration: none;
    padding-right: 13px !important;
    padding-top: 7px !important;
}

a.myX:hover {
    text-decoration: none;
    color: tomato !important;
    border: 1px solid #000000;
    border-radius: 100px;
    padding: 6px 12px 6px 12px !important;
}


/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

/*  Forms GridView CSS Template  */
.myGV_Grid tr.rowHover:hover { /*#GV_LicenceItem_View*/
    background-color: #fffff0;
}

.myTBLheader {
    background-color: #2999cc;
    color: #ffffff;
}

    .myTBLheader a {
        color: #ffffff;
    }
.myGV_Grid{
    background-color: #ffffff;
}




/******************Switch Ver 1*****************/

.SW1 input[type=checkbox] {
    position: relative;
    width: 40px;
    height: 20px;
    -webkit-appearance: none;
    -webkit-appearance: none;
    background: #ff0000;
    outline: none;
    cursor: pointer;
    border: solid 1px var(--main-color);
    border-radius: 20px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background 300ms linear;
}

    .SW1 input[type=checkbox]::before {
        position: absolute;
        content: "";
        width: 20px;
        height: 20px;
        top: -1px;
        left: 0px;
        border: solid 1px var(--main-color);
        border-radius: 20px;
        background-color: #fff;
        transform: scale(1.1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: left 300ms linear;
    }

    .SW1 input[type=checkbox]:checked {
        background: #9dff00;
    }

        .SW1 input[type=checkbox]:checked::before {
            left: 18px;
            background-color: #fff;
        }


.SW1-SM input[type=checkbox] {
    position: relative;
    width: 40px;
    height: 15px;
    -webkit-appearance: none;
    -webkit-appearance: none;
    background: #ff0000;
    outline: none;
    cursor: pointer;
    border: solid 1px var(--main-color);
    border-radius: 20px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background 300ms linear;
}

    .SW1-SM input[type=checkbox]::before {
        position: absolute;
        content: "";
        width: 17px;
        height: 17px;
        top: -1px;
        left: 0px;
        border: solid 1px #5621a5;/*var(--main-color) */
        border-radius: 20px;
        background-color: #fff;
        transform: scale(1.1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: left 300ms linear;
    }

    .SW1-SM input[type=checkbox]:checked {
        background: #9dff00;
    }

        .SW1-SM input[type=checkbox]:checked::before {
            left: 25px;
            background-color: #fff;
        }
.SW1-SM input[type=checkbox][disabled="disabled"] {
    background: Gray !important;
}


