﻿
@import "functions.less";
@import "defines.less";

html {
    overflow: auto;
}

body {
    color: @fontColorDefault;
    font-family: @fontFamilyDefault;
    font-size: @fontSizeDefault;
    background-color: @backgroundColor1;
}

input, button, select, textarea {
    color: @fontColorDefault;
    font-family: @fontFamilyDefault;
}

a {
    color: @linkColor;
    
    &:visited {
        color: @linkColor;
    }
}

#header {
    width: 100%;
    height: 106px;
    overflow: hidden;
	background: @backgroundColor1 url(/images/dpi_header.jpg) right top no-repeat;
}

#search {
    @image: '/Images/search.gif';
    
    position: relative;
    float: left;
    padding: 10px 20px;
    
    #input_search {
        padding: 3px;
        float: left;
        font-size: 0.9em;
        width: 210px;
        height: 16px;
        border: 0;
        outline: 0;
        background: @backgroundColor1 url(@image) 0 -22px repeat-x;
    }
    
    &.empty {
        #input_search {
            color: lighten(@fontColorDefault, 50%);
        }
    }

    span {
        float: left;
        width: 9px;
        height: 21px;
        background-image: url(@image);
        background-repeat: no-repeat;
        
        &.left {
            background-position: 0px 0px;
            width: 19px;
        }
        
        &.right {
            background-position: 100% -62px;
        }
    }
    
    a#search_reset_button {
        display: none;
        top: 13px;
        text-indent: -10000px;
        background: transparent url(@image) 100% -45px no-repeat;
        width: 16px;
        height: 16px;
        
        &.active {
            display: block;
        }
    }
}

#loadingOverlay {
    z-index:100000; 
    position: absolute; 
    height: 100%;
    width: 100%;

    #stateInfo {
        font-weight: bold;
        color: white; 
        text-shadow: black 0.1em 0.1em 0.2em;
        position: absolute;
        text-align: center;
        left: 50%; 
        top: 50%;
        margin-left: -230px;
        margin-top: -72px;
        height: 30px;
        width: 460px;	
        background: url(/Images/Loading/loading-bg.png);
        background-repeat: no-repeat;
        padding-top: 1px;
    }

    #loadImage {
        background: url(/Images/Loading/loading.gif) center no-repeat;
        position: absolute;
        left: 50%; 
        top: 50%;
        margin-left: -155px;
        margin-top: -50px;
        height: 23px;
        width: 309px;	
    }

    #bg {
        .opacity(60);
        width:100%; 
        height:100%; 
        background-color: #A4A4A4;
    }
}

#developerWarning {
    float: left;
    border: 1px solid black;
    background-color: @backgroundColor2;
    padding: 10px 20px;
    margin-top: 7px;
    
    .message {
        font-weight: bold;
        font-size: 20px;
        color: #D60000;
        position: relative;
    }
}

@mtColor: #cccccc;
@mtAltColor: #efefef;

.miniTable {
    .mtDescription {
        padding-bottom: 5px;
    }

    .mtContent {
        height: 250px;
        max-height: 250px;
        overflow: auto;
        border: 1px solid @mtColor;
        
        table {
            text-align: left;
            
            thead, tfoot {
                background-color: @mtColor;
            }
            
            th, td {
                padding: 3px;
                
                &.nowrap {
                    white-space: nowrap;
                }
            }
            
            .alt {
                background-color: @mtAltColor;
            }
        }
    }
}

.opacity_0 {
    .opacity(0);
}


.tableToggler .collapsed:before {
    content: "+";
}

.tableToggler .expanded:before {
    content: "-";
}
