body {
    padding:0;
    margin:0;
    color: #333;
    background: transparent url(../images/main_bg.jpg) 0 0 repeat;
}

* {
    font-family:'Helvetica Neue', 'Segoe UI', Helvetica, Verdana, sans-serif;
    font-size:14px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    font-size: large;
    color: #585858;
}

#header_outer {
    width:100%;
    height: 80px;
    margin:0px auto;
    z-index:0;
}
#header {
    padding:5px;
    width:100%;
    height: 80px;
    background: #f7f7f7;
    border-bottom:1px solid #ccc;
    /*position: fixed;
    */
    z-index: 9999;
}
#header .sep{
    height:1px;
    background:#ccc;
    margin:10px 0;
    max-width:550px;
}
.main{
    padding:5px;
}
.timetable{
    border-collapse:collapse;
    width:100%;
    border:2px solid #333;
}
.timetable tr.dashed{
    border-bottom:2px dashed #333;
}
.timetable tr.solid{
    border-bottom:2px solid #333;
}
.timetable td{
    padding:3px;
    background:#ffffff;
    border:1px solid #333;
    text-align:center;
    min-width:20px;
    height: 24px;
}
.timetable td.weekend{
    background:#92D050;
}
.timetable td select{
    border:0;
    width:100%;
}
.timetable_short{
    width:auto;
}



.editable__ {
    padding:5px;
    border:1px solid #ccc;
    margin-top:30px;
    display:inline-block;
}
.editable input[type="text"]{
    border:0;
    max-width:15px;
}
.editable input[type="submit"]{
    position:absolute;
    margin-top:25px;
    margin-left:-10px;
}
.speed{
    color:#aaa;
    font-size:11px;
}
.preloader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999;
    display: none;
    background: #000;
    opacity:0.7;
}
.page-loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    border: 2px solid;
    border-top-color: rgba(34, 34, 34, 1);
    border-bottom-color: rgba(0, 0, 0, 0.15);
    border-left-color: rgba(34, 34, 34, 1);
    border-right-color: rgba(0, 0, 0, 0.15);
    -webkit-animation: page-loader-circle 0.8s linear infinite;
    animation: page-loader-circle 0.8s linear infinite;
}
@keyframes page-loader-circle {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@-webkit-keyframes page-loader-circle {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
/*Header*/
.main-header {
    padding: 8px;
    text-align: justify;
    display: flex;
}
.logo {
    margin: auto 0;
}
.user-info {
    text-align: right;
    float: right;
    margin: auto 0;
}
a.log-out {
    color: #808080;
    text-decoration: none;
}
a.log-out:hover {
    color: #808080;
    text-decoration: dashed;
}
/*Menu (old)*/
nav.menu {
    display: block;
    margin: auto;
}
.menu ul {
    list-style: none;
    margin: 0 auto;
}
.menu ul {
    overflow: hidden;
    padding: 0;
}
.menu li {
    float: left;
}
.menu .menu-item-first {
    border-left: 1px solid #c0c1c1;
}
.menu a {
    display: block;
    padding: 1em;
    border-right: 1px solid #c0c1c1;
    border-top: 1px solid #c0c1c1;
    border-bottom: 1px solid #c0c1c1;
    background: rgba(169, 169, 169, 0.3);
    color: #737373;
    text-decoration: none;
}
.menu a:hover {
    background: #c1c1c1
}

/*Menu (dx)*/
.dx-menu {
    color: #333;
    text-align: justify;
    margin: auto;
}

/*.dx-menu-item-wrapper{
    display: block;
    padding: 1em;
    border-right: 1px solid #c0c1c1;
    border-top: 1px solid #c0c1c1;
    border-bottom: 1px solid #c0c1c1;
    background: rgba(169, 169, 169, 0.3);
    color: #737373;
    text-decoration: none;
}*/

.q3w-item-menu{
    padding: 1em !important;
    border-right: 1px solid #c0c1c1;
    border-top: 1px solid #c0c1c1;
    border-bottom: 1px solid #c0c1c1;
    background: rgba(169, 169, 169, 0.3);
    color: #737373;
    text-decoration: none;
    min-width: 120px;
    text-align: center;
}

.q3w-menu-item-first {
    border-left: 1px solid #c0c1c1;
}

.dx-menu-item.dx-state-hover {
    background-color: #c1c1c1
}

.randomize-password {
    position: absolute;
    text-align: right;
    width: 370px;
    top: 80px;
}

/*Toolbar*/
.dx-toolbar {
    padding: 8px;
    background: none;
    border-top: #d6d7d8 1px solid;
    border-bottom: #d6d7d8 1px solid;
}

/*Login page*/
.auth-container {
    margin: 80px auto;
    width: 640px;
}
.login-div {
    position: relative;
    margin: 150px auto 0 auto;
    padding: 20px 20px 20px;
    width: 310px;
    background: white;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 200px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 200px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.login-div:before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    z-index: -1;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}
.login-div h1 {
    margin: -20px -20px 21px;
    line-height: 40px;
    font-size: 15px;
    font-weight: bold;
    color: #555;
    text-align: center;
    text-shadow: 0 1px white;
    background: #f3f3f3;
    border-bottom: 1px solid #cfcfcf;
    border-radius: 3px 3px 0 0;
    background-image: -webkit-linear-gradient(top, whiteffd, #eef2f5);
    background-image: -moz-linear-gradient(top, whiteffd, #eef2f5);
    background-image: -o-linear-gradient(top, whiteffd, #eef2f5);
    background-image: linear-gradient(to bottom, whiteffd, #eef2f5);
    -webkit-box-shadow: 0 1px whitesmoke;
    box-shadow: 0 1px whitesmoke;
}
.login-form {
    margin: 8px;
}
.login-caption {
    font-weight: bold;
}
.login-div input[type=text], .login-div input[type=password], .login-div select {
    margin: 5px;
    padding: 0 10px;
    width: 100%;
    height: 34px;
    color: #404040;
    background: white;
    border: 1px solid;
    border-color: #c4c4c4 #d1d1d1 #d4d4d4;
    border-radius: 2px;
    outline: 5px solid #eff4f7;
    -moz-outline-radius: 3px;
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}
.login-div input[type=text]:focus, .login-div input[type=password]:focus, .login-div select:focus{
    border-color: #7dc9e2;
    outline-color: #dceefc;
    outline-offset: 0;
}
.login-div input[type=submit] {
    padding: 0 18px;
    height: 29px;
    font-size: 12px;
    font-weight: bold;
    color: #527881;
    text-shadow: 0 1px #e3f1f1;
    background: #cde5ef;
    border: 1px solid;
    border-color: #b4ccce #b3c0c8 #9eb9c2;
    border-radius: 4px;
    outline: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    background-image: -webkit-linear-gradient(top, #edf5f8, #cde5ef);
    background-image: -moz-linear-gradient(top, #edf5f8, #cde5ef);
    background-image: -o-linear-gradient(top, #edf5f8, #cde5ef);
    background-image: linear-gradient(to bottom, #edf5f8, #cde5ef);
    -webkit-box-shadow: inset 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.15);
}
.login-div input[type=submit]:active {
    background: #cde5ef;
    border-color: #9eb9c2 #b3c0c8 #b4ccce;
    -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}
.login-logo {
    margin-top: 12px;
}
.login-error-message p{
    color: #da2929;
    font-weight: bold;
}
/*editForm*/
.edit-form-field {
    margin: 30px 0;
}
.edit-form-field:first-child {
    margin-top: 10px;
}
.edit-form-field input[type="text"], .edit-form-field select {
    width: 250px;
    float: right;
}
.edit-form-field password {
    width: 230px;
    float: right;
}
.randomize-password {
}
.edit-form-field button {
    display: block;
    width: 100px;
    margin: 0 auto;
}
label.error{
    float: right;
    margin-left: 100px;
    font-size: .8em;
    color: #ff6666;
}
input.error, select.error {
    border: 1px solid #ff9999;
    background: #ffeeee;
}
/*Timesheet*/
#timesheet-header {
    margin: 8px;
}
.timesheet {
    margin: 8px;
}
.save-timesheet-button {
    float: right;
    margin-right: 8px;
}
.summary-timesheet-for-employee {
    border-collapse: collapse;
    border: 2px solid #333;
}
.summary-timesheet-for-employee td {
    padding: 3px;
    background: #ffffff;
    border: 1px solid #333;
    text-align: center;
    min-width: 20px;
}

.timesheet-summary {
     margin: 8px;
     display: flex;
     flex-direction: row;
     flex-wrap: nowrap;
     justify-content: flex-start;
     align-items: flex-start;
}

.timesheet-summary > div{
    margin-right: 8px;
}

.editable {
    height: 24px;
}
.edited {
    border: 2px solid #333 !important;
}

.employee-header-cell {
    font-size: medium;
    font-weight: bold;
    height: 36px;
    background: #e4e4e4;
}

.hour-header-cell {
    font-weight: bold;
    background: #e4e4e4 !important;
}
.deal-header-cell{
    font-weight: bold;
    background: #e4e4e4 !important;
}
.building-object-header-cell{
    font-weight: bold;
    background: #e4e4e4 !important;
}
.ktu-header-cell{
    font-weight: bold;
    background: #e4e4e4 !important;
}
.bonus-header-cell{
    font-weight: bold;
    background: #e4e4e4 !important;
}

.timesheet-closed {
    background: #b2d68b;
}

.deal-class-8 {
    background-color: #ff6666 !important;
}
.deal-class-9 {
    background-color: #E6B9B8 !important;
}
.deal-class-10 {
    background-color: #0070C0 !important;
}
.deal-class-11 {
    background-color: #8DB4E3 !important;
}
.deal-class-12 {
    background: #ffa0a0 !important;
}
td.readonly {
    background-color: #ced6da;
}
td.weekend.readonly {
    background: #a7bf8e;
}
.ktu-input-value{
    max-width: 50px;
}
.bonus-input-Value{
    max-width: 50px;
}
#ktu{
    width: 100%;
}
.bonus-input{
    width: 100%;
}
#edited-user {
    margin: 8px;
}
/*Summary timesheet*/
.summary-timesheet-export {
    margin: 8px;
}
.summary-timesheet {
    border-collapse: collapse;
    width: 100%;
    position: relative;
}
.summary-timesheet td{
    padding: 3px;
    background: #ffffff;
    border: 1px solid #333;
    text-align: center;
    min-width: 20px;
}

div.summary-timesheet{
    padding: 8px;
    width: 100%;
}
.summary-timesheet-head {
    background: #ffffff;
    text-align: center;
    min-width: 20px;
}
.summary-timesheet-head th {
    padding: 3px;
    background: #ffffff;
    border: 1px solid #333;
    text-align: center;
    min-width: 20px;
}
.summary-timesheet tr.scroll {
    display: table;
    width: 100%;
    position: absolute;
}

.buildings-objects-summary-export {
    padding-left: 8px;
}

/*Employee Selectbox custom items*/

.employee-custom-item-name{
    padding-left: 4px;
}

.timesheet-closed-selectbox-item{
    color: rgba(0, 97, 0, 1) !important;
    background: rgba(198, 239, 206, 0.5) !important;
}

/*Timesheet (dxDataGrid)*/
.day-off {
    background: #adb9da;
    color: #234194;
}

.readonly .day-off{
    background: #b3b8c3;
}

.dx-datagrid-rowsview .dx-data-row .dx-cell-modified .dx-highlight-outline::after{
    border-color: #5cb85c;
}

.tariff-type-container {
    margin: auto;
    border: #dddddd 1px solid;
}

.timesheet-header-cell{
    font-weight: bold;
}

.tariff-type-header-name{
    background-color: #eaeaea;
    text-align: center;
    color: #585858;
    font-size: medium;
    font-weight: bold;
}

.add-new-tariff-row {
    text-align: center;
    background: white;
    padding: 8px;
}

.buildings-objects-header-name {
    background-color: #eaeaea;
    text-align: center;
    color: #585858;
    font-size: medium;
    font-weight: bold;
}

.employee-info {
    display: inline-grid;
}

.employee-info-name {
    font-size: large;
    color: #585858;
    font-weight: bold;
}

.employee-info-post-and-subdivision {
    font-style: italic;
    color: #585858;
}

.employee-timesheet-info {
    padding: 8px;
    overflow: hidden;
}

.employee-timesheet-info.timehseet-closed{
    background-color: #a6f1b466;
}

.employee-bonuses-and-penalties {
    float: right;
    text-align: right;
    font-style: italic;
    color: #585858;
    display: inline-grid;
}

.post-not-found {
    text-align: center;
    color: #e63636;
    font-size: 32px;
    font-weight: bold;
    padding: 15px;
}

/*Summary employee salary report*/
.chart-container{
    background: white;
    border-color: #c1c1c1;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    margin-right: 8px;
}

.chart-header {
    margin-left: 8px;
    padding-bottom: 2px;
    color: gray;
    font-weight: 400;
    display: inline-block;
    font-size: 18px;
}

.info-parameter-group{
    margin-left: 8px;
    float: left;
    font-size: 16px;
    padding-right: 25px;
    padding-top: 5px;
    padding-bottom: 1px;
    color: gray;
}

.info-parameter{
    color: #252525;
}

.salary-info {
    padding: 8px;
    margin-bottom: 8px;
}

.hours-info {
    float: left;
    width: calc(100% / 2 - 9px);
    padding: 8px;
}

.deals-info {
    float: left;
    width: calc(100% / 2 - 9px);
    position: absolute;
    right: 0;
    padding: 8px;
}

.wrapper {
    position:relative;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.deals-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.deals-details-element {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    margin: 25px;
}

.deals-details-element-caption {
    font-weight: bold;
    font-size: larger;
}