/*
 * custom css for data table
*/
@import url(https://fonts.googleapis.com/css?family=Lato);

.ts_header, .back-to-top{
    color: white!important;
    font-size: 22px!important;
    background-color: #4c4c4c;
    padding: 10px 0 10px 10px;
    width:100%;
    margin:0 auto;
}

.select-investment{
    display:none;
    color: #4c4c4c!important;
    font-size: 22px!important;
    background-color: white;
    margin:1px 0px 1px 1px;
    padding:10px 0 10px 10px;
    border: solid 1px #2d6387;;
}
.updated{
    background-color: #4c4c4c;
    color:white;
    text-align:right;
    width:100%;
    padding: 10px 20px;
}
.back-to-top{
    display:none;
    cursor:pointer;
}
.ts_subhead{
    text-align:left;
    font-family: "Univers CondensedBold";
    text-transform: uppercase;
    line-height:1em;
    border-bottom: 1px solid #2d6387;
    padding: 5px 0 5px 10px;
    color: #2d6387;
    background-color: #fff;
    border-right: solid 1px #ccc;
}

.ts_subhead:hover{
    background-color:#2d6387;
    color:#fff;
}

#tstable td {
    font-size: 13px;
    line-height: 14px;
}

#tstable th {
    font-size: 15px;
    line-height: 16px;
    letter-spacing: 1px;
}
#tstable th, #tstable td {
    text-align: center;
    padding-top: 20px;
    padding-right: 17px;
    padding-bottom: 20px;
}

.sorting_1 {
    font-weight: bold;
}

.odd{
    background: #fff!important;
}
.even{
    background: #f4f4f4!important;
}

.odd,.even{
    padding:5px 20px 5px 10px;
    border-bottom: 1px solid #2d6387;
    font-family: "Lato";
    font-size: 14px;
}

.odd:hover, .even:hover{
    background:#7f7f7f;
    color:  #2d6387;
}

.dataTables_info{
    background-color: #4c4c4c;
    color: #fff!important;
    width:100%;
    margin:0 auto;
    padding-left: 20px;
    padding-bottom: 7px;
}

#tstable{
    background-color: #fff;
    border: solid 1px #ccc;
    padding: 0px;
    box-shadow: 0px 0px 5px #ccc;
    width:100%!important;
}

.ts-group{
    width: 100%;
    border-top: 1px solid #2d6387;
}

.ts-group:hover{
    background:#7f7f7f;
}

.ts-group td {
    text-align: left !important;
    font-size: 15px !important;
    padding-left: 25px !important;
    color:  #2d6387;
}

.close_port{
    float:right;
    padding-right:10px;
    color:white!important;
    text-decoration: none;
}

.printbtn{
    margin-left: 20px;
    color: white;
}

.portpopup tr.sub-trades{
    display: none;
}

.sub-toggle {
    float: left;
    cursor: pointer;
    font-size: 15px;
    padding-left: 10px;
}

.subtrade td{
    font-size: 12px!important;
}


@media print {
    #body_wrapper, .close_port, .printbtn {
       display:none;
    }
    .portpopup {
        position: absolute;
        width:99%!important;
        left: 0!important;
        top: 0!important;
        -webkit-box-shadow: none!important;
        -moz-box-shadow: none!important;
        box-shadow: none!important;
    }
    .portpopup:after{
        page-break-after: always;
    }
}

@media only screen and (max-width: 800px) {
    .sub-toggle, .subtrade{
        display: none!important;
    }
    .ts-group{
        display: none!important;
    }
    .portpopup{
        top: 0!important;
        left: 0!important;
        width:100%!important;
        min-width: 100%!important;
    }
    .portpopup table{
        margin-top: 42px;
        margin-bottom: 46px;
        display:block;
    }
    /* Force table to not be like tables anymore */
    .portpopup thead,
    .portpopup tbody,
    .portpopup th,
    .portpopup td,
    .portpopup tr {
        display: block; }
    .portpopup tr.sub-trades{
        display: none;
    }
    .portpopup {
        /*
          Label the data
          */ }
    .portpopup thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .portpopup tr {
        border: 1px solid #2d6387;
        margin:5px;}
    .portpopup td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word; }
    .portpopup td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        font-weight: bold;
        white-space: nowrap; }
    .portpopup td:before {
        content: attr(data-title);
        color: #2d6387;
        margin-top:15px;
    }
    .ts_header{
        position:fixed;
        top: 0;
        width: 100%;
        z-index: 9999;
    }
    #tstable td {
        padding-left: 75px;
    }
    .back-to-top{
        display:block;
        position:fixed;
        bottom: 0;
        width: 100%;
        z-index: 9999;
    }
    .updated{
        display:block;
        position:fixed;
        bottom: 51px;
        width: 99%;
        z-index: 9999;
        color: #4c4c4c!important;
        background-color: white;
        margin:1px 0px 1px 1px;
        padding:10px;
        border: solid 1px #2d6387;;
    }
    .dataTables_info{
        display: none;
    }

    table.dataTable.no-footer{
        border:none;
    }
}
.ts-spinner{
    font-size: 50px;
    text-align: center;
    color: #2d6387;
}
.portpopup{
    top: 100px;
    left: 11%;
    position: absolute;
    width:80%;
    min-width: 830px;
    min-height: 20px;
    z-index: 19;
    border: 1px solid #666;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    background-color: #fff;
    -webkit-box-shadow: 9px 10px 15px 0px rgba(0,0,0,0.37);
    -moz-box-shadow: 9px 10px 15px 0px rgba(0,0,0,0.37);
    box-shadow: 9px 10px 15px 0px rgba(0,0,0,0.37);
}

@media only screen and (min-width: 801px) and ( max-width: 950px) {
    .portpopup{
        width:96%!important;
        min-width: 96%!important;
        left: 2%!important;
    }
    .portpopup th{
        padding-right: 0!important;
    }
}
