/* new code 26-9-2018 */
.roomstrend {
    .btn-criteria { 
        padding: 0 6px 0 33px !important;
        background: $c-white;
        max-width: 100%;
        position: relative;
        float: left;
        i { 
            background: $c-white; 
            position: absolute; 
            left: 0; 
            top: 0;
            background: #e0e0e0 url(../images/chi-tool.svg) no-repeat center center;
            -webkit-background-size: 24px auto !important;
            background-size: 24px auto !important; 
        }
    }
    .btn-edit {
        display: block;
        height: 20px;
        width: 64px;
        margin-top:1px;
        line-height: 20px;
        text-decoration: none;
        background: #894f77;
        color: $c-white;
        float: left;
        text-align: left;
        position: relative;
        margin-left: 10px;
        i { 
            position: absolute;
            right: 5px;
            top: 0;
        }
    }
    .roomspace-head { 
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        position: relative;
        height: auto;
        z-index: 100;
        @media (max-width: 1340px) { margin-bottom: 10px; display: block; }
        .btn-graphs {
            position: relative;
            right: inherit;
            top: inherit;
            float: left;
            padding: 0 10px 0 0;
            margin-right: 5px;
            background: $c-white; 
            i { float: left; }
            @media (max-width: 1300px) { margin: 5px 5px 0 0; }
        }
        .btn-export {
            display: block;
            line-height: 30px;
            float: left;
            background: #e3f1fa;
            text-decoration: none;
            width: 88px;
            @media (max-width: 1300px) { margin: 5px 0 0 0; }
        }
        .btn-quickview {
            float: left;
            display: block;
            height: 30px;
            line-height: 30px;
            background: $c-grayblue;
            color: $c-white;
            &:hover { background: $c-grayblue; }
        }
    }
    .roomstrend-content {
        font-size: 14px;
        width: 100%;
        max-width: inherit !important;
        margin: 6px 0 0 0 !important;
        padding: 4px 15px !important;
        .checkoptionarea { 
            margin-right: 5px;
            @media (max-width: 1300px) {
                display: block;
                float: none;
                margin-top: 5px;
                margin-left: 0;
                background: none !important;
                .checkoption{
                    margin: 0 5px 0 0;
                    &:first-child {
                        margin: 0 5px 0 0;
                    }
                    @media (max-width: 1300px) {
                        overflow: hidden;
                        margin: 0 5px 0 0;
                        &:first-child {
                            margin: 0 5px 0 5px;
                        } 
                    }
                    @media (max-width: 799px) {
                        margin:5px 5px 0 0;
                        &:first-child {
                            margin:0 0 0 175px;
                            float: none;
                        }
                    }
                    @include linear-gradient(#eee, #c5c5c5);
                }
            }
            @media (max-width: 639px) {
                position: relative;
                clear: both;
                float: none;
                overflow: hidden;
                height: auto;
                .checkoption{
                    margin: 5px 5px 0 0;
                    padding-left: 0;
                    &:first-child {
                        margin: 5px 0 0 0;
                    }
                }
            }
        }
        .selectcontent {
            position: relative;
            width: 370px;
            float: left;
            margin: 0 0 0 0;
            @media (max-width: 1340px) { width: 340px; } 
            @media (max-width: 1300px) { margin: 5px 0 0 0; }
            .dropdown {
                width: 180px;
                @media (max-width: 1340px) {
                    width: 160px;
                }
                position: relative;
                float: left;
                margin-right: 5px;
                button {
                    width: 100%;
                    height: 30px;
                    padding: 0 15px 0 10px;
                    margin: 0;
                    text-align-last: left;
                    border-radius: 0;
                    position: relative;
                    font-size: 14px;
                    color: $c-black2;
                    border: none;
                    border: none !important;
                    @include text-with-ellipsis();
                    &:hover { @include linear-gradient(#ddd, #bbb); }
                    @include linear-gradient(#ddd, #bbb);
                    &:before {
                        content: '';
                        position: absolute;
                        z-index: 100;
                        top: 50%;
                        -webkit-transform: translateY(-50%);
                        transform: translateY(-50%);
                        right: 5px;
                        width: 0;
                        height: 0;
                        border-top: 6px solid $c-black !important;
                        border-right: 3px solid transparent !important;
                        border-left: 3px solid transparent !important;
                    }
                }
                .dropdown-menu,
                .category,
                .sub-category {
                    padding: 0; 
                    margin: 0; 
                }
                .dropdown-menu {
                    position: absolute;
                    left: 0;
                    padding: 2px 0 5px 0;
                    margin: 0;
                    border-radius: 0;
                    overflow: auto;
                    max-height: 160px;
                    width: 100%;
                    li { 
                        a {
                            padding: 0 18px 0 10px;
                            text-decoration: none;
                            display: block;
                            color: #000;
                            font-family: $base-font;
                            @include text-with-ellipsis();
                            &:hover { text-decoration: none; background: $c-white; color: #000; }
                        }
                        &.categoryactive > a,
                        &.subactive > a,
                        &.active > a {
                            background: url(../images/chi-tic.svg) no-repeat 98% center !important;
                            -webkit-background-size: 14px auto !important;
                            background-size: 14px auto !important; 
                        }
                    }
                    &.category-menu {
                        li {
                            font-weight: normal;
                            a {
                                &:hover { color: #002060; background: none; }
                                color: #002060;
                                font-family: $base-font-semibold;
                                padding: 0 18px 0 10px;
                                background: none;
                            }
                            li {
                                a {
                                    &:hover { color: #5c6bc0 !important; } 
                                    color: #5c6bc0 !important; 
                                    font-family: $base-font-semibold;
                                    padding: 0 18px 0 20px;
                                }
                                li { 
                                    a {
                                        &:hover { color: #000 !important; }
                                        color: #000 !important;
                                        font-family: $base-font;
                                        padding: 0 18px 0 30px; 
                                    } 
                                }
                            } 
                        }
                    }
                }
            }
        }
        .table.table-roomspace tr th, 
        .table.table-roomspace tr td {
            font-family: $base-font;
            font-size: 13px;
        }
        .table.table-roomspace tr.gradient td.fixscrollcell2 {
            font-family: $base-font-semibold;
        }
        .table.table-roomspace tr th.fixscrollcell > div.top {
            left: 10px;
            background: #ccecff !important;
            height: 22px;
            line-height: 22px;
            padding: 0 !important;
            span {
                display: block;
                padding: 3px 10px 0 10px !important;
                margin: 0 !important;
                height: 21px;
                line-height: auto;
                text-align: left;
            }
        } 
        .table.table-roomspace tr th.fixscrollcell > div.forecastmethod {
            top: 22px;
            height: 23px;
            line-height: 22px;
            padding: 0 0 !important;
            background: #ccecff !important;
            border-top: 1px solid $c-white;
        }
        #fixcolspan,
        #fixcolspan td { 
            height: 0 !important; 
            min-height: 0 !important; 
            margin: 0 !important; 
            padding: 0 !important; 
            border: none !important;
        }
        /* Webkit (Chrome, Safari) */
        @media screen and (-webkit-min-device-pixel-ratio:0) { 
            #fixcolspan{ display: none; }
        }
        /* Firefox */
        @-moz-document url-prefix() {
            #fixcolspan{ display: none; }
        }
        /* Microsoft Edge */
        @supports (-ms-ime-align:auto) {
            #fixcolspan{ display: none !important; }
        }

        min-height: 200px;
    }
}