﻿/*
 >  Modern Strategy ©
 >  https://modernstrategy.ir
 >  Software Engineering, Interactive Agency
 
 >> version 1.0
 >> date: 2016-09-13

*/

.rHead,
.rRow,
.rTable {
    width: 100%;
}

.rTableInnerWrap {
    overflow-y: hidden;
    overflow-x: auto;
    padding: 2px;
}

/*.rBody {
    min-height: 370px;
}*/

.rCol {
    position: relative;
}

/*.rHead {
    cursor: pointer;
}*/

.rHead .rCol {
    padding: 7px 0;
    position: relative;
    -webkit-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    -o-transition: background-color 0.3s;
    transition: background-color 0.3s;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

    .rHead .rCol.ascend,
    .rHead .rCol.descend {
        background-color: rgba(255, 255, 255, 0.11);
    }

    .rHead .rCol:not(.ascend):not(.descend):hover {
        background-color: rgba(255, 255, 255, 0.06);
    }

    .rHead .rCol .selectInput {
        font-weight: normal;
    }

    .rHead .rCol .selectInput,
    .rHead .rCol .textInput {
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
        width: 70%;
        min-width: 20%;
        padding: 5px;
        margin: 3px;
        box-shadow: 0 0 8px -6px #000;
    }

        .rHead .rCol.filteredCol .selectInput,
        .rHead .rCol .selectInput:focus,
        .rHead .rCol.filteredCol .textInput,
        .rHead .rCol .textInput:focus {
            width: 100%;
        }

    .rHead .rCol:not(.rNoSort) {
        cursor: pointer;
    }

    .rHead .rCol .rHeadText {
        position: relative;
        min-height: 18px;
        white-space: nowrap;
    }

    .rHead .rCol:not(.rNoSort) .rHeadText:after {
        content: ' ';
        position: relative;
        display: inline-block;
        vertical-align: middle;
        margin-right: 2px;
        width: 18px;
        height: 18px;
        opacity: 0;
        background: transparent url('/Assets/image/i-tasc-alt.png') no-repeat scroll top left;
        -webkit-background-size: 100% auto;
        -moz-background-size: 100% auto;
        -o-background-size: 100% auto;
        background-size: 100% auto;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
    }

    .rHead .rCol.descend .rHeadText:after {
        background-image: url('/Assets/image/i-tdesc-alt.png');
    }

    .rHead .rCol:hover .rHeadText:after,
    .rHead .rCol.ascend .rHeadText:after,
    .rHead .rCol.descend .rHeadText:after {
        opacity: 1;
    }

.rHeadText {
    display: block;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}


.rBody .rRow.notInPage,
.rBody .rRow.notMatched {
    display: none;
}

.rtHidden {
    display: none;
}

.rtInvisible {
    visibility: hidden;
    width: 0;
    height: 0;
    position: absolute;
}

.rBody .rCol {
    line-height: 20px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-transition: all 0.25s ease-in-out 0s;
    -moz-transition: all 0.25s ease-in-out 0s;
    -o-transition: all 0.25s ease-in-out 0s;
    transition: all 0.25s ease-in-out 0s;
}

.rTable .generalgridview {
    min-width: 100%;
}

    .rTable .generalgridview > tbody > tr > td {
        background-color: #e0e0e0 !important;
    }

    .rTable .generalgridview > tbody > tr:nth-of-type(2n+1) > td {
        background-color: #cbcbcb !important;
    }

.rTable .headergridview,
.rTable .itemgridview {
    padding: 5px 3px;
}

.rTable .headergridview {
    padding: 0px 5px;
    color: #ededed;
    background-color: #4d4d4d;
}

.rTable .generalgridview > tbody > tr.rSelectedRow:first-of-type > td:first-of-type:before,
.generalgridview > tbody > tr.rSelectedRow:not(:first-of-type) > td:first-of-type:before {
    width: 6px;
    opacity: 0.9;
}

.generalgridview > tbody > tr.rSelectedRow {
    color: #555;
}

/*.rTable .generalgridview > tbody > tr:first-child > td {
    background-color: #bbb;
}*/


/*.rBody .rRow:not(.openRow) .rCols:hover .rCol {
    background-color: #444;
}*/


.rItemPerPage {
    width: 60px;
    min-width: 60px;
    margin: 5px 5px 5px 20px;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

    .rItemPerPage option {
        text-align: center;
    }

.rPerPageLabel {
    display: inline-block;
    vertical-align: middle;
    margin: 0 3px;
}

.rPager {
    padding: 0 5px;
}

.rPageBtn {
    float: left;
    height: 30px;
    width: 30px;
    margin: 2px 0px;
    padding: 2px;
    text-align: center;
    line-height: 24px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.wrapLtr .rPager {
    text-align: right;
}

    .wrapLtr .rPager .rRow {
        display: inline-block;
        width: auto;
    }

.rPageBtn > span {
    display: block;
    height: 100%;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 1px;
    background-color: #fcfcfc;
    color: #44ABEC;
    text-align: center;
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
    cursor: pointer;
}

.wrapLtr .rPageBtn > span {
    padding-top: 2px;
}

.rPageBtn > span:hover {
    background-color: #e9e9e9;
}

.rPageBtn.rCurPage > span {
    background-color: #fcfcfc;
    border-color: #c3c3c3;
    cursor: default;
}

.rPageBtn.rDisabledPage > span {
    border-color: #c3c3c3;
}

.rRowDetailsWrap {
    position: relative;
}

table .rRowDetailsWrap {
    display: table-row;
}


.rRowDetails {
    display: none;
}

.rRowDetailsCol {
    position: relative;
}

    .rRowDetailsCol:before {
        position: absolute;
        content: ' ';
        height: 100%;
        top: 0;
        bottom: 0;
        width: 4px;
        left: auto;
        right: -2px;
        opacity: 0;
        -webkit-transition: opacity 0.15s ease;
        -moz-transition: opacity 0.15s ease;
        -o-transition: opacity 0.15s ease;
        transition: opacity 0.15s ease;
        z-index: 1;
    }

    .rRowDetailsCol:hover:before {
        opacity: 1;
    }

.rRowDetailsCloseIcon {
    position: absolute;
    display: inline-block;
    top: 5px;
    left: 10px;
    right: auto;
    bottom: auto;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent url('/Assets/image/rRowDetailsClose.png') scroll no-repeat center center;
    -webkit-background-size: 90% auto;
    -moz-background-size: 90% auto;
    -o-background-size: 90% auto;
    background-size: 90% auto;
    cursor: pointer;
    z-index: 50;
    border-radius: 2px;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    -o-transition: background 0.3s;
    transition: background 0.3s;
}

    .rRowDetailsCloseIcon:hover {
        background-color: rgba(33, 33, 33, 0.09);
    }

    .rRowDetailsCloseIcon:active {
        box-shadow: 0 1px 2px #555 inset;
    }

@media(max-width:600px) {
    .mainTitle {
        line-height: 26px;
        font-size: 18px;
    }


    .rHead {
        font-size: 16px;
    }

        .rHead .rCol {
            padding: 7px 10px 11px;
        }

    .rDetails {
        padding: 0;
    }

    .rDetail {
        padding: 15px;
        /*padding-bottom: 0;*/
    }

    .rContent {
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 0;
    }

    .rDetail.rAssets {
        padding-bottom: 5px;
    }

    .raList {
        padding: 0 15px;
    }

    .rHeadText {
        display: inline-block;
    }

    .yearSelect, .rHead .rCol .textInput {
        width: 98%;
        top: 0;
        margin: 3px 0 0;
        bottom: auto;
    }
}
