@bgcolor: #2E3092; // violet
@header-height: 50px; 
@buttons-height: 50px;

* { border:0; margin:0; padding:0; box-sizing: border-box; }

body {
    font-family: Arial;
    font-size: 16px;
}

.clear {
    clear: both;
}
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
.left {
    float: left;
}
.right {
    float: right;
}
.hidden {
    display: none;
}
.narrow {
   font-family: Arial Narrow; 
}

#dialog-login {
    input.text { margin-bottom:12px; width:95%; padding: .4em; }
    fieldset { padding:0; border:0; margin-top:25px; }
}

.button-12d2ecdm- {
    color: white !important;
}

.header {
    width: 100%;
    height: @header-height;
    background: @bgcolor;
    color: white;
    
    .title {
        float: left;  
        height: @header-height;
        font-size: 30px;
        line-height: @header-height;  
        padding-left: 10px;    
    }
    
    .welcome {
        float: right;
        text-align: right;
        padding-right: 10px;
        height: @header-height;
        line-height: @header-height;
    }
    
    .link {
        float: right;
        padding-right: 10px;
        text-decoration: underline;
        height: @header-height;
        line-height: @header-height;
        cursor: pointer;
        
    }
}

.notloggedin {
    width: 100%;
    padding: 10px;
    display: none;
}

.content {
    width: 100%; 
    height: calc(100% - @header-height);
//    overflow: hidden;  
    
    .filter {
        float: left;
        width: 50%;
        height: 50px;
        
        padding: 10px 10px 10px 10px;
        .item1 { 
            float: left;           
        }
        .item2 {
            text-align: right;
            float: right;
        }
        .item3 {
            text-align: right;
            float: right;
            margin-right: 10px;
        }
        #filterText {            
            border-bottom: 1px solid black;
            outline: 0;
            font-size: 16px;
            width: 300px;
        }
    }
    
    .list {    
        padding-top: 30px;   
        float: left;
        clear: left;
        width: calc(50% - 20px);
        height: calc(100% - 50px);
        overflow: auto;
        margin: 0 10px;
        
        .line {            
            width: 100%;
            
            &:nth-child(even) {
                background-color: #eeeeee;                
            }
            &:hover:not(.head), &.selected {
                cursor: pointer;
                background: @bgcolor;
                color: white;
            }

            &.head {
                margin-top: -30px;
                height: 30px;
                line-height: 30px;
                text-align: center;
                position: fixed;
                background: white;
                width: calc(50% - 20px);
                cursor: pointer;
            }

            .num {
                width: 20%;
                float: left;
            }
            .company {
                width: 60%;
                float: left;
            }
            .date {                
                width: 20%;
                float: left;
            }           
        }       
    }
    
    .buttons {
        width: 50%;
        height: @buttons-height;
        float: right;
        padding-left: 10px;
        
        .button {
            float: left;
            color: white;
            background: @bgcolor;
            border-radius: 5px;
            font-size: 16px;
            padding: 0 5px;
            height: 30px;
            line-height: 30px;
            cursor: pointer;
            margin: 10px 10px 0 0;    
            
            &.disabled {
                background: #d1d1d1;
                cursor: not-allowed;
            }
        }
    }
    
    .preview {
        
        float: left;
        width: 50%;
        height: calc(100% - 50px);
        clear: right;
        position: relative;
        background: #d1d1d1;
        
        iframe {
            width: 100%;
            height: 100%;   
        }
        
        .loading {
            width: 100%;
            background: url(/client/loading.gif) no-repeat center top; 
            position: absolute;
            height: 100%; 
            display: none;           
        }
    }
}

.simple {
    .welcome, .list, .filter {
        display: none;
    }
    .preview, .buttons {
        width: 100%;
    }
    .button.close {
        display: block !important;
    }
}

// signature buttonpane
.ui-dialog-buttonpane {
    
    .buttonpane-input-label {
        float: left;
        margin: .5em .4em .5em 0;
        padding: .4em 0;
    }
    .buttonpane-input {
        display: block;
        overflow: hidden;
        padding: 0 2em 0 0;
        margin: .5em .4em .5em 0;
        
        input {
            width: 100%;
            font-size: 1em;
            padding: .4em .4em;
            border: 1px solid rgb(197, 197, 197);
            outline: 0;
        }
    }
}