/*
==========================================================================
    Chimps global Css
==========================================================================
*/

/* font-face */
@font-face {
    font-family: 'SourceSansProLight';
    src: url('../fonts/SourceSansProLight.eot');
    src: url('../fonts/SourceSansProLight.eot') format('embedded-opentype'),
    url('../fonts/SourceSansProLight.woff2') format('woff2'),
    url('../fonts/SourceSansProLight.woff') format('woff'),
    url('../fonts/SourceSansProLight.ttf') format('truetype'),
    url('../fonts/SourceSansProLight.svg#SourceSansProLight') format('svg');
}
@font-face {
    font-family: 'SourceSansProRegular';
    src: url('../fonts/SourceSansProRegular.eot');
    src: url('../fonts/SourceSansProRegular.eot') format('embedded-opentype'),
    url('../fonts/SourceSansProRegular.woff2') format('woff2'),
    url('../fonts/SourceSansProRegular.woff') format('woff'),
    url('../fonts/SourceSansProRegular.ttf') format('truetype'),
    url('../fonts/SourceSansProRegular.svg#SourceSansProRegular') format('svg');
}
@font-face {
    font-family: 'SourceSansProSemiBold';
    src: url('../fonts/SourceSansProSemiBold.eot');
    src: url('../fonts/SourceSansProSemiBold.eot') format('embedded-opentype'),
    url('../fonts/SourceSansProSemiBold.woff2') format('woff2'),
    url('../fonts/SourceSansProSemiBold.woff') format('woff'),
    url('../fonts/SourceSansProSemiBold.ttf') format('truetype'),
    url('../fonts/SourceSansProSemiBold.svg#SourceSansProSemiBold') format('svg');
}
@font-face {
    font-family: 'SourceSansProBold';
    src: url('../fonts/SourceSansProBold.eot');
    src: url('../fonts/SourceSansProBold.eot') format('embedded-opentype'),
    url('../fonts/SourceSansProBold.woff2') format('woff2'),
    url('../fonts/SourceSansProBold.woff') format('woff'),
    url('../fonts/SourceSansProBold.ttf') format('truetype'),
    url('../fonts/SourceSansProBold.svg#SourceSansProBold') format('svg');
}
body {
    font-family: $base-font;
    font-weight: normal;
    overflow-x: hidden;
}
.header-info ul {
    padding: 0;
    margin: 0;
}
.header-info ul li {
    padding-top: 0;
    padding-bottom: 0;
    height: 20px;
    line-height: 20px;
}
#main-menu > li > a {
    font-family: $base-font;
    font-weight: normal;
    font-size: $large;
}
#main-menu > li.list-home a,
#main-menu > li.list-home a:hover {
    width: inherit !important;
    height: 30px;
    background: #fff url(../images/chi-house.svg) no-repeat center center !important;
    background-size: 30px 30px !important;
}

#main-menu > li.adjust-large4 { min-width: 150px; }
#main-menu > li.adjust-large5 { min-width:174px; }

/* plain select */
.plain-select  {
    display: block;
    width: 100%;
    vertical-align:middle;
    position:relative;
    padding: 0 !important;
    margin-left: 0;
    background: $c-white;
}
.plain-select .form-control {
    height:23px;
    -webkit-appearance: caret;
    -moz-appearance: caret;
    -ms-appearance: caret;
    appearance: caret;
    display:block;
    width:100%;
    border:none;
    color:$c-black2;
    padding:0;
    margin:0;
    line-height:normal;
}
.plain-select .form-control:focus {
    background:green;
    outline:none;
    box-shadow:none;
    border: none;
    border-style: none;
}
.plain-select ::-ms-expand { display:none; }
.plain-select:after{
    content:"";
    position:absolute;
    z-index:2;
    right:8px;
    top:50%;
    margin-top:-3px;
    height:0;
    width:0;
    border-top:6px solid #000;
    border-left:3px solid transparent;
    border-right:3px solid transparent;
    pointer-events:none;
}

/* basepopup */
.ui-dialog,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
    font-family: $base-font;
    font-size: $medium;
    font-weight: normal;
}
.ui-dialog {
    padding: 0;
    border: none !important;
    width: 404px;
    background: $c-white3;
    @include border-radius(0px);
    &.dialog-refresh {
        .ui-dialog-titlebar-close { display: none; }
    }
    .ui-dialog-titlebar {
        padding: 6px 10px;
        margin: 0;
        border: none;
        color: $c-black2;
        font-family: $base-font-semibold;
        font-weight: normal;
        @include border-radius(0px);
        @include linear-gradient(#e1e2e7, #9ea3b5);
        .ui-dialog-titlebar-close {
            @include border-radius(0px);
            background: none;
            border: none;
            width: 30px !important;
            height: 30px !important;
            right: 10px;
            top: 0;
            margin: 0;
            padding: 0;
            display: block;
            .ui-icon-closethick {
                background: url(../images/chi-multiply.svg) center center no-repeat;
                -webkit-background-size: 30px 30px !important;
                background-size: 30px 30px !important;
                width: 100% !important;
                height: 100% !important; 
            }
        }
        .btn-edit,
        .btn-save {
            display: block;
            width: 30px;
            height: 30px;
            position: absolute;
            right: 40px;
            top: 2px;
            i {
                width: 100%;
                height: 100%;
            }
        }
    }
    .ui-dialog-content {
        padding: 20px 10px 10px 10px;
        background: $c-white3;
        p {
            line-height: 26px;
            color: $c-black2;
            text-align: center;
        }
    }
    .ui-dialog-buttonpane {
        background: $c-white3;
        @include border-radius(0px);
        border: 1px solid $c-blue2;
        border-width: 1px 0 0 0;
        .ui-dialog-buttonset {
            float: none;
            @include flex-center(center, center);
            padding: 6px 0 5px 0;
            .ui-button {
                height: 32px;
                line-height: 30px;
                padding: 0 10px;
                margin: 0 5px;
                color: $c-black2;
                text-align: center;
                background: $c-white5;
                border: 1px solid $c-gray;
                min-width: 70px;
                @include border-radius(8px);
                &:hover {
                    background: $c-purple;
                    border: 1px solid $c-purple;
                    color: $c-white;
                }
                @include transition(all 0.4s ease-in-out);
            }
        }
    }
}
.ui-widget-overlay {
    background-color: rgba(0, 0, 0, .3);
    opacity: 1;
    filter: Alpha(Opacity=100);
}

/* check common use */
.checksection {
    height: 100%;
    width: 100%;
    position: relative;
    -webkit-display: flex;
    -moz-display: flex;
    -ms-display: flex;
    -o-display: flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    -o-align-items: center;
    align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    -o-justify-content: center;
    justify-content: center;
}
.checksection .ncheck {
    padding: 0;
    margin: 0;
    width: 20px;
    cursor: pointer;
    display: block;
    font-family: $base-font;
    font-size: $medium;
    font-weight: normal;
    position: relative;
}
.checksection .ncheck input { position: absolute; opacity: 0; }
.checksection .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 18px !important;
    width: 18px;
    line-height: 18px !important;
    display: block;
    border: 1px solid #4ca354;
    background-color: #fff;
}
.checksection .ncheck:hover input ~ .checkmark { background-color: #fff; }
.checksection .ncheck input:checked ~ .checkmark { background-color: #fff; }
.checksection .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checksection .ncheck input:checked ~ .checkmark:after { display: block; }
.checksection .ncheck .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #4ca354;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.checkoption .grayncheck .checkmark,
.checkoption .grayncheck:hover input~.checkmark,
.checkoption .grayncheck input:checked~.checkmark {
    background-color: #e4e4e4;
}

/* radio common use */
.common-row .radio {
    float: left;
    margin: 0;
    padding: 0;
}
.common-row .radio.active,
.common-row .radio:hover {
    background: -moz-linear-gradient(top, #ebebeb 0%,  #d1d1d1 100%) !important;
    background: -webkit-linear-gradient(top, #ebebeb 0%, #d1d1d1 100%) !important;
    background: linear-gradient(to bottom, #ebebeb 0%, #d1d1d1 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebebeb', endColorstr='#d1d1d1',GradientType=0 ) !important;
}

/* Select common use */
.commonselect .form-control {
    height: 26px;
    border-radius: 0;
    border: none;
    background: #fff;
    cursor: pointer;
}
.commonselect span.multiselect-native-select {
    position: relative;
    display: block !important;
    margin: 0 !important;
    background: none !important;
}
.commonselect .multiselect,
.commonselect .dropdown-toggle,
.commonselect .btn,
.commonselect .btn-default,
.commonselect .multiselect-native-select,
.commonselect .multiselect-native-select .multiselect {
    width: 100% !important;
    display: block;
    border: none;
    border-radius: 0;
    height: 26px;
    line-height: 26px;
    padding: 0 10px;
    text-align: left;
    font-family: $base-font;
    font-size: $medium;
    font-weight: normal;
    color: $c-black2;
    background: #fff;
    cursor: pointer;
}
.commonselect .multiselect-native-select { width: 100% !important; padding: 0; }
.commonselect .multiselect-native-select .btn-group { display: block; margin-bottom: 0; }
.commonselect .btn-group.open .dropdown-toggle { background: #f5f5f5; }
.commonselect .multiselect-container { top: 26px; }
.commonselect .multiselect-container,
.commonselect .multiselect-container li {
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
    border-radius: 0;
}
.commonselect .multiselect-container li a,
.commonselect .multiselect-container li.active a { background: none; }
.commonselect .multiselect-container li.active label  {
    height: 26px;
    line-height: 26px;
    display: block;
    color: #131111;
}
.commonselect .multiselect-container li.active label  {
    background:  url(../images/chi-tic.svg) no-repeat 98% center !important;
    -webkit-background-size: 14px auto !important;
    background-size: 14px auto !important;
}
.commonselect .multiselect-container li label { margin-right: 0; }
.commonselect .report-row .radio:hover { background: none; }
.commonselect .multiselect-container>li>a>label.radio>input[type=radio] { display: none !important; }
.commonselect .multiselect-container>li>a>label>input[type=checkbox] { display: none !important; }
.commonselect .multiselect-container>li>a>label {
    height: 26px;
    line-height: 26px;
    padding: 0 10px;
}
.commonselect .multiselect-native-select .multiselect .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0;
    vertical-align: middle;
    border-top: 6px solid #000 !important;
    border-right: 3px solid transparent !important;
    border-left: 3px solid transparent !important;
    top: 10px;
    right: 5px;
}
.commonselect .multiselect-native-select .multiselect-selected-text {
    text-align: left;
    display: block;
    float: none;
}


/*  report */
#report .report-row .radio {
    width: 120px;
    background: none !important;
}
#report .report-row .common-row .radio.active,
#report .report-row .common-row .radio:hover {
    @include linear-gradient ( #ebebeb,  #d1d1d1);
}
#report .report-row .col-item .table-condensed th,
#report .report-row .col-item .table-condensed td {
    font-family: $base-font;
    font-weight: normal;
    font-size: $medium;
}
#report .report-row .col-item .table-condensed td {
    padding: 0;
    margin: 0;
}
#report .datepicker .prev:before {
    content: '';
    background:url(../images/chi-arrowleft4.svg) no-repeat center center;
    background-size: 16px 16px !important;
}
#report .datepicker .next:before {
    content: '';
    background:url(../images/chi-arrowright4.svg) no-repeat center center;
    background-size: 16px 16px !important;
}

.datepicker table tr td.new,
.datepicker table tr td.old, {
    pointer-events: none;
}









/* new code 4-11-2018 */

/* radio button color */
.cr.color1 { background: #37c5ab; }
.cr.color2 { background: #5c6bc0; }
.cr.color3 { background: #ffd600; }
.cr.color4 { background: #ba68c8; }
.cr.color5 { background: #ef5350; }
.cr.color6 { background: #26c6da; }
.cr.color7 { background: #78909c; }
.cr.color8 { background: #fc91ad; }
.cr.color9 { background: #fb8c00; }
.cr.color10 { background: #80cbc4; }
.cr.color11 { background: #c0ca33; }
.cr.color12 { background: #ff7043; }
.cr.color13 { background: #3d5afe; }
.cr.color14 { background: #ff66cc}

/* background color */
.bg-purple { background: $c-purple; }
.bg-dark-gray { background: $c-grayblue; }
.bg-gray { background: $c-white4;
    color: #000000 !important; }
.bg-blue { background: $c-blue6;
    color: #000000 !important;}

    .head-label {
    padding: 5px 10px;
    color: $c-white;
    @include border-radius(5px);
    float: left;
    display: inline-block;
}
//to fix global issue with date picker where the dates do not get displayed until hover.
.datepicker {
    transform: translateZ(0);
}
/* FB */
.commonselect {
    .multiselect-native-select {
        .dropdown-menu,
        .multiselect-container {
            li {
                a,.active { background-color: $c-white !important; text-decoration: none; text-decoration: none !important; }
                &.multiselect-all label,
                &.multiselect-group label { font-weight: normal; font-family: $base-font-semibold; }
            }
        }
    }
}

/* old code not update dev files */
.datepicker .prev:before {
    content: '';
    background:url(../images/chi-arrowleft4.svg) no-repeat center center;
    background-size: 16px 16px !important;
}
.datepicker .next:before {
    content: '';
    background:url(../images/chi-arrowright4.svg) no-repeat center center;
    background-size: 16px 16px !important;
}
.datepicker table tr td span,
.datepicker table tr td span {
    height: 46px;
    line-height: 46px;
}

/*.daterange-row {
    position: relative;
    min-height: 218px;
    margin-top: 4px;
}*/
.datepicker .table-condensed>thead>tr>th,
.datepicker .table-condensed>thead>tr>th.ui-dialog-switch,
.datepicker .table-condensed>thead>tr>th.dow,
.datepicker .table-condensed>tbody>tr>td{
    font-family: $base-font;
    font-weight: normal;
}
.datepicker .table-condensed>tbody>tr>th,
.datepicker .table-condensed>tbody>tr>td{
    text-align: center;
    font-size: 14px !important;
    line-height: inherit !important;
    padding: 0 !important;
}


/* responsive fix datepicker */
.autoadjust-daterange,
.comparerangepopup {
    @media (max-width: 640px) {
        max-width: 95% !important;
        width: 460px;
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        right: 0;
        -webkit-transform:translate(-50%,-50%)!important;
        transform:translate(-50%,-50%)!important;
        margin: 0 !important;
    }
    @media (max-width: 479px){
        .daterange-row {
            min-height: 185px !important;
            .datepicker .table-condensed th,
            .datepicker .table-condensed th.dow,
            .datepicker .table-condensed td {
                font-size: 11px !important;
                height: 16px !important;
                padding: 0 !important;
            }
            .datepicker .prev:before,
            .datepicker .next:before {
                background-size: 12px 12px !important;
            }
            .datepicker.dropdown-menu {
                min-width: 134px;
                width: 48%;
            }
        }
    }
}


/* new add keyframes */
@-webkit-keyframes slidein {
    0% {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}
@keyframes slidein {
    0% {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}
@-webkit-keyframes slideout {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-110%);
        transform: translateX(-110%);
    }
}
@keyframes slideout {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-110%);
        transform: translateX(-110%);
    }
}

/* Global CSS for application */
.pointerCursor {
    cursor: pointer;
}

//allows select of text on click
.copy-all{
    user-select: all;
    -ms-user-select: all;
    -webkit-user-selectect: all;
    -moz-user-select: all;
}