/*
 * Copyright (C) 2013 salesforce.com, inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
.THIS {

}
.THIS *, .THIS *:before, .THIS *:after {
  box-sizing: border-box;
}


.THIS .menu{
    font-weight: 300;
    background: #344A5F;
    padding: 0.3em 1em;
    color: #fff;
    font-size: 18px;
}

.THIS .menu .search-wrapper {
    overflow:hidden;
}

.THIS .menu .option-wrapper {
    margin-top:5px;
    overflow:hidden;
}


.THIS .menu input.search, .THIS .menu select.search-ops, .THIS button{
    border: 1px solid transparent;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    padding:  5px;
    font-size: 15px;
    margin-right:10px;
}

.THIS .menu input.search {    
    width: calc(100% - 250px);
    margin: 0 20px 0 10px;
}


.THIS .menu select.search-ops{
}

.THIS .menu .search-case-sensitive{
    color:black;
}

.THIS input[type=checkbox] {
    cursor:pointer;
}

.THIS button {
    color: #FFF;
    line-height: 20px;
}

.THIS button > label {
    font-weight: 300;
    padding: 0 5px;
    cursor:pointer;
}

.THIS button.run {
    background: #CF5C60;
    float:right;
    cursor:pointer;
    padding: 5px;
    font-size:20px;
    text-transform: uppercase;
}

.THIS button.toggle_select_all {
    background: #F3AE4E;
    margin-right: 10px;
}

.THIS button.toggle_test_type{
    background: #717ECD;
    margin-right:10px;   
}



/*container header row*/
.THIS .container_header_row{
    height:30px;
    background-color: tomato;
    color:white;
    font-weight:bold;
    overflow:hidden;
}

.THIS .container_header_row div{
    height:30px;
    vertical-align:middle;
    padding-top:5px;
    padding-bottom:5px;
    float:left;
}

.THIS .container_header_row .chk{
    width:40px;
    text-align:center;
}

.THIS .container_header_row .test_name{

}

/*test row*/
.THIS .test-container {
    background-color:white;
    height: calc( 100% - 105px );
    width:100%;
    overflow-x: hidden;
    overflow-y: scroll;
    position:absolute;
    z-index:1;
}

.THIS ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.THIS ul li{
    overflow:hidden;
    border-bottom: 1px solid #ddd;
    padding-top:0.5em;
    padding-bottom:0.5em;
}

.THIS .list-test-item:hover{
    background-color:#eee;
}

.THIS li[data-visible="hidden"] {
    display: none;
}

.THIS li .parts {
    overflow:hidden;
}

.THIS li .parts > *{
    float:left;
}

.THIS li .icon {
    padding: 0 5px;
}

.THIS li:not([data-jsc]) .jsConsole {
    vibility: hidden;
}

.THIS li .parts > .test{
    width:calc(100% - 235px);
}

.THIS li .parts > .status{
    width: 60px;
}

.THIS li .parts > .jsConsole{
    width: 30px;
}

.THIS li .parts > .jsConsole {
    /*float:right;*/
}

.THIS li[data-integ] .testResult {
    content: "";
    border-style: solid;
    border-width: 0 15px 15px 0;
    width: 15px;
    height: 15px;
    border-color: rgba(0, 0, 0, 0) #717ECD rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
}

.THIS .list.only-failed li:not([data-state="failed"]) {
    display: none;
}

.THIS .list.not-integ li[data-integ] {
    display: none;
}

.THIS li[data-state="enqueued"], 
.THIS li[data-state="running"] {
    background: #F3AE4E;
    border-bottom: 1px solid #555;
}

.THIS li[data-state="enqueued"] .status-icon:before,
.THIS li[data-state="running"] .status-icon:before {
    content: "\e600";
}

.THIS li[data-state="failed"] {
    background: #CF5C60;
}
.THIS li[data-state="failed"] .status-icon:before {
    content: "\e602";
}
.THIS li[data-state="failed"] .results:before {
    content: "\e604";
}


.THIS li[data-state="passed"] {
    background: #4AB471;    
}
.THIS li[data-state="passed"] .status-icon:before {
    content: "\e605";
    color: #FFF500;
}
.THIS li[data-state="passed"] .results:before {
    content: "\e604";
}

.THIS li:not([data-state="failed"]) .exception {
    display: none;
}

.THIS li[data-state="failed"] .exception {
    display: block;
    padding: 10px;
    font-size: 13px;
    overflow: hidden;
}


.THIS li .checkbox {
    width: 40px;
    text-align: center;
}

.THIS li .ns {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}



/*MISC CSS*/
.THIS button.toggle_failed {
    background: #339933;
    margin-right: 10px;
}

.THIS button.toggle_failed[data-selected="true"] {
    
}

.THIS button.toggle-headless {
    background: #337c99;
    margin-right: 10px;
}

.THIS .hl-row{
    background-color:#ace;
}

.THIS .move_sel_top{
    background-color:#000;
    float:right;
    color:white;
    cursor:pointer;
}


.THIS .container_header_row .test_type, .THIS li .test-type{
    width:90px;
    text-align:center;
}

.THIS li .test-type{
    text-shadow: 1px 1px 1px #999;
}



.THIS li[test-type='unit'] .test-type{
    color:#EEBA4C;
}

.THIS li[test-type='jstest'] .test-type{
    color:#666;
}

.THIS li[test-type='webdriver'] .test-type{
    color:tomato;
}

.THIS li[test-type='unit'] .test-type{
    color:purple;
}

.THIS li[test-type='integration'] .test-type{
    color:blue;
}


.THIS li[test-type='perfsuite'] .test-type{
    color:blue;
}


.THIS li[test-type='perfcmp'] .test-type{
    color:#666;
}

