/*
==========================================================================
    Chimps global Layout Css
==========================================================================
*/
.topHead {
    min-height: 30px;
    background: $c-lgreen2;
    padding: 0 10px;
    &:after {
        content: '';
        display: table;
        clear: both;
    }
    margin-bottom: 10px;
    .topHeadLeft {
        float: left;
        padding: 5px 0 5px 0;
        @media (max-width: 640px) { float: none;  }
        span {
            display: block;
            margin-right: 20px;
            float: left;
            strong {
                font-family: $base-font-semibold;
                font-weight: normal;
            }
        }
    }
    .topHeadRight {
        float: right;
        @media (max-width: 640px) { clear: both; float: none; padding: 5px 0; overflow: hidden; }
        .btn-summary {
            float: left;
            background: none;
        }
    }
    .gotoselectarea {
        .form-control { display: none; }
        .btn-group, .open {
            .multiselect {
                font-size: 14px;
                font-family: $base-font;
            }
        }
        .multiselect-native-select .multiselect-container li { font-family: $base-font; a,.active { background-color: $c-white !important; } }
    }
}

/* fiscal range  */
.fiscal-range {
    margin-top: 4px;
    &:first-child { margin-top: 0; }
    .fiscal-range__row {
        position: relative;
        &.is-group-title {
            display: -ms-grid;
            display: grid;
            -ms-grid-template-columns: 160px auto;
            grid-template-columns: 160px auto;
            grid-column-gap:1px;
        }
        &.is-summary {
            // display: -ms-grid;
            // display: grid;
            -ms-grid-template-columns: 164px auto;
            grid-template-columns: 164px auto;
            // grid-column-gap:1px;
            .fiscal-range__cell {
                width: 164px;
                &.fiscal-range__tilte { width: 164px; }
            }
        }
    }
    .fiscal-range__group {
        @include flexbox();
        flex-flow: row wrap;
        margin: 0 -4px 0 0;
    }
    .fiscal-range__cell {
        width: 164px;
        padding: 3px 10px;
        margin: 0 1px 1px 0;
        height: 26px;
        text-align: center;
        //background-color: color('polo-blue');
        background-color: #98bad6;
        cursor: pointer;
        &.fiscal-range__tilte { width: 160px; }
        &.active { background-color: #cce5ff; }
        i { margin-right: 5px; }
    }
    &.fiscal-range-startview {
        .fiscal-range__row {
            margin-top: 6px;
            &.fiscal-range__row:first-child { margin-top: 0; }
            .fiscal-range__column {
                width: 300px;
                margin: 0 4px 0 0;
                .fiscal-range__cell {
                    width: 100%;
                    @include flexbox();
                    margin: 0 0 4px 0;
                    background-color: color('white-smoke');
                    &.fiscal-range__tilte {
                        justify-content: center;
                        background-color: color('pattens-blue-2');
                    }
                }
            }
        }
    }

    .fiscal-range__group.is-ellipsis {
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        .fiscal-range__column {
            @media (max-width: 700px) {
                width: 16%;
                margin-right: .666%;
            }
        }

        .fiscal-range__column .fiscal-range__cell {
            display: block;
            @include text-with-ellipsis();
            i {
                display: block;
                float: left;
                @media (max-width: 700px) {
                    margin-right: 2px;
                }
            }
        }
    }
}

/* Title Bar */
.new-title-bar {
    color: $c-blue3;
    padding: 0 10px 0 10px;
    @include linear-gradient(#dde0ec, #9da8ce);
    h2 {
        font-family: $base-font-semibold;
        font-size: $medium;
        line-height: inherit !important;
        margin: 0;
        padding: 5px 0;
        @include text-with-ellipsis();
    }
    &.blue-gradient {
        @include linear-gradient(#b7deff, #99bbd7);
    }
}

/* criteria report */
#report.commonDisplayCriteria,
.commonDisplayCriteria {
    /* structure */
    font-family: $base-font !important; /* app.scss #report.newreport { font-family: 'Source Sans Pro', sans-serif; } */
    font-size: 14px;
    width: 100%;
    max-width: calc(100% - 30px);
    position: absolute;
    left: 15px;
    z-index: 900;
    margin: 0;
    display: none;
    background: color('white');
    &.active { display: block; }
    .btn-reportclose {
        width: 28px;
        height: 28px;
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        margin-right: 10px;
    }
    .btn-reportenter {
        display: block;
        float: left;
    }
    .report-title { h2 { padding: 3px 0; } }
    .report-content {
        padding-top: 4px;
        position: relative;
        border: unset; /* style.css border: 1px solid #8faadc; */
    }
    .report-row {
        margin-top: 4px;
        &:first-child { margin-top: 0; }
        display: -ms-grid;
        display: grid;
        grid-template-columns: 155px auto;
        grid-column-gap: 4px;
        min-height: 30px;
    }
    .reportrowcontentarea {
        display: -ms-grid;
        display: grid;
        grid-row-gap: 4px;
    }
    .reportrowcontent {
        padding: 2px 0;
        &:first-child { margin-top: 0; }
        background-color: color('white-smoke');
        margin-left: unset; /* style.css margin-left: 160px; */
    }
    .reportrowtitle {
        font-size: 14px; /* style.css font-size: 15px; */
        background: color('pattens-blue-2');
        padding: 4px 10px;
        width: unset;
        align-self: stretch;
        span {
            display: block;
            height: unset; /* style.css  height: 26px; */
            line-height: unset; /* style.css line-height: 26px; */
            margin-right: unset; /* style.css margin-right: 10px; */
        }
    }

    /* using component */
    .mars-radio {
        float: left;
        min-width: 120px;
        label {
            display: block;
            cursor: pointer;
            margin-bottom: 0;
            padding: 3px 5px;
        }
    }
    .checkbox-wrap {
        div {
            float: left;
            padding: 0 5px;
            .mars-checkbox {
                position: relative;
                margin-bottom: 0;
                padding-top: 3px;
                padding-bottom: 3px;
                font-family: $base-font;
                input:checked~.checkmark:after { display: block !important; }
                .checkmark {
                    position: absolute;
                    top: 50% !important;
                }
            }
        }
    }
    .form-group {
        margin-bottom: 0;
        label { font-weight: normal; }
    }
    .mars-select {
        float: left;
        .multiselect-container {
            width: 100%; // style.css
            background: #fff;
            li {
                width: 100% !important;
                height: auto !important;
                line-height: unset !important;
                label,
                label.checkbox,
                label.radio {
                    width: unset !important;
                    min-width: unset !important;
                    float: unset;
                    height: auto !important;
                    line-height: unset !important;
                }
                label.radio { margin-right: unset !important; /* style.css */ }
            }
            li.active label,
            li.active label.checkbox,
            li.active label.radio {
                background: #fff url(../images/chi-tic.svg) no-repeat 100% center !important;
                -webkit-background-size: 12px auto !important;
                background-size: 12px auto !important;
            }
        }
    }

    .no-padding { padding: 0 !important; }
    .is-item-display,
    .is-checkbox-display {
        display: none;
        &.active { display: block; }
    }

    .rangesliderbox {
        padding: 0 10px !important;
        width: 266px;
        float: left;
        margin-left: 10px;
        @include flexbox();
        label {
            width: 58px;
            padding: 3px 0 !important;
            line-height: inherit; // geting "line-height" from rangesliderbox roomforcasting.scss
        }
        .rangesliderwrap { width: 100%; padding: 0; }
        .irs-hidden-input { display: none !important; }
    }

    .form-group-calendar {
        .timeselect {
            width: 200px;
            p { margin-bottom: 0; }
            .icon-medium {
                height: 24px;
                width: 30px;
            }
        }
        .reportpopup {
            width: 460px;
            height: 252px;
            z-index: 200; // style from style.css
            margin: auto !important;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
    }
    .single-calendar {
        width: auto;
        float: left;
        .col-item {
            float: left;
            width: 200px;
        }
        input[type="text"] {
            background-color: transparent;
            background: url(../images/chi-calendar.svg) no-repeat 1px 0 !important;
            -webkit-background-size: 24px 24px !important;
            background-size: 24px 24px !important;
            padding: 0 4px 0 30px;
            width: 175px;
            height: 26px;
            color: color("black2");
            border: none;
            -webkit-box-shadow: none;
            box-shadow: none;
            cursor: pointer;
        }
        .input-group-addon { display: none; }
        .datepicker { top: 26px !important; }
    }

    .mars-select.filterDropdown .multiselect-native-select .multiselect {
        width: 170px ;
        margin-right: 10px;
    }
}

/* select & dropdown arrow */
.caret {
    right: 5px;
    border-top: 6px solid color('black');
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
}

/* fillgap */
.fillgap { flex-grow: 1; &.bg-gray { background-color: color('white-smoke'); } }

/* top-action-area */
.top-action-area {
    margin-bottom: 10px;
    @include flexbox();
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    &:after { content: ''; display: table; clear: both; }
    .btn-action {
        height: $icon-large;
        background: color('white-smoke-2');
        padding: 4px 40px 0 10px;
        margin-right: 10px;
        color: $c-black2;
        position: relative;
        -webkit-box-shadow: none;
        box-shadow: none;
        line-height: unset;
        @include border-radius(0);
        i {
            position: absolute;
            right: 5px !important;
            top: 3px;
        }
        &.active {
            background-color: color('very-light-grey');
            color: color('night-rider') !important;
        }
    }
    .btn-export {
        background: color('white') !important;
        padding: 5px 10px 5px 38px;
        margin-left: 10px;
        height: $icon-large;
        text-decoration: none;
        width: 82px;
        i { left: 0; right: initial; }
    }
    .options-area,
    .checkbox-area {
        margin-right: 10px;
        background-color: color('white-smoke');
    }
    .options-area .mars-radio { float: left; }
    .checkbox-area {
        div {
            float: left;
            padding: 0 5px;
            .mars-checkbox {
                position: relative;
                margin-bottom: 0;
                input:checked~.checkmark:after {
                    display: block !important;
                }
                .checkmark {
                    position: absolute;
                    top: 50% !important;
                }
            }
        }
    }
}