.dialog{
    text-align:left;
    margin:0;
    max-width:600px;
}

.body{
    display:inline-block;
    text-align:left;
    padding:0;
    margin-bottom:10px;
    overflow: auto;
    max-height: calc(100vh - 140px);
}

.body h4{
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 5px;
}

.body p{
    line-height: 17px;
}

.labels{
    margin-top: 20px;
    margin-bottom: 10px;
}

.labelcontainer{
    margin-bottom: 5px;
}

label{
    min-width: 70px;
    margin-right: 6px;
}

input{
    display: inline-block;
    width:320px;
    margin-left:0;
    margin-bottom:0px;
    height: 24px;
    padding: 0 5px;
}

@media (max-width:500px) {
    input {
        width: 187px;
    }
}

.form-control::-webkit-input-placeholder{
    text-align: right;
}

.form-control:-moz-placeholder{
    text-align: right;
}

.form-control::-moz-placeholder{
    text-align: right;
}

.form-control:-ms-input-placeholder{
    text-align: right;
}

.buttons{
    width:100%;
    padding:0;
}

.cancel-button{
    clear:both;
    margin-bottom:0;
}

.cancel-button:hover, .cancel-button:focus {
    background:#e6e6e6;
}

.disabled, .disabled:hover{
    background:#eeeeee;
}

.body > div{
    display: table;
    width: 99.99%;      /*Fix for chrome. Sometimes horizontal scrollbar appears*/
}

.body > div > div{
    display: table-row;
}

.body > div > div > div{
    display: table-cell;
    vertical-align: top;
}

.body > div > div > div > img{
    width: 150px;
    margin-right: 10px;
}

@media (max-width:600px){
    .body > div > div > div:first-child{
        display: none;
    }
}