html, body { height: 100%; }

body {
    background-color: #EFEEEA;
    font-family: Verdana,Helvetica,Sans-Serif;
    font-size: 10pt;
    padding: 0;
    margin: 0;
    color: #222;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #F8F8F8;
    padding: 4px 7px;
}

.header > .site_title {
    display: inline-block;
    font-weight: bold;
    font-size: 20px;
}

.header > .menu {
    display: inline-block;
    margin-left: 20px;
    line-height: 28px;
    vertical-align: top;
}

.header > .menu > a {
    display: inline-block;
    font-family: Arial;
    font-size: 18px;
    text-transform: lowercase;
    font-variant: small-caps;
    font-weight: normal;
    line-height: 24px;
    text-decoration: none;
    color: #666666;
    padding: 0 7px;
}

.header > .menu > a:hover {
    background-color: #EFEEEA;
    border-bottom: none;
}

.header > .menu > a.current, .header > .menu > a.hover {
    background-color: #F5F4F0;
    cursor: default;
}

.wrapper {
    padding: 10px;
    flex: 1 0 auto;
}

.footer {
    font-size: 11px;
    padding: 0px 10px 5px 0;
    text-align: right;
    color: #444;
    flex: 0 0 auto;
}

a, a:visited {
    color: #5a4530;
    text-decoration: none;
}

a:hover {
    color: #32261a;
    border-bottom: 1px dotted;    
}

label > input[type="checkbox"] {
    position: relative;
    top: 2px;        
}

h1.page_title {
    font-size: 23px;
    font-weight: normal;
    margin: 0px 0px 10px;
}

h3.block_title {
    font-size: 18px;
    font-weight: normal;
    margin: 15px 0px 5px;
}

.login_label {
    color: #777;
    font-size: 11px;
}

.login_input {
    width: 200px;
}

.login_error {
    border: 1px solid #C00;
    background-color: #FED7D7;
    padding: 5px;
    font-size: 11px;
    color: #D00;
    margin-bottom: 8px;
    width: 195px;
}

.wrapper_centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sel_tabs {
    padding: 2px 6px;
    margin-right: 10px;
    border-radius: 3px;
    border-bottom: none !important;
    color: #444 !important;
    opacity: 0.6;
}

.sel_tabs:hover { opacity: 1; }
.sel_tabs.current { opacity: 0.98 !important; }

.data_table {
    border-collapse: collapse;
    margin: 15px 0;
}

.data_table.w100p {
    width: 100%;
}

.data_table th {
    background-color: #F8F8F8;
    font-weight: normal;
    font-size: 13px;
    padding: 3px 8px;
    text-align: left;
}

.data_table td {
    padding: 3px 8px;
    text-align: left;
}

.data_table td.c, .data_table th.c {
    text-align: center;
}

.data_table td.r, .data_table th.r {
    text-align: right;
}

.data_table tr td {
    background-color: #FEFEFE;
    border-bottom: 1px solid #EEE;
}

.data_table tr:hover td {
    background-color: #FCFCFC;
}

.nw {
    white-space: nowrap;
}

.client_photo {
    width: 100px;
    height: 100px;
    border-radius: 300px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.photo_empty {
    display: block;
    background-color: #CCC;
    text-align: center;
    font-size: 40px;
    font-family: Arial;
}

.photo_empty > b {
    position: relative;
    top: 21px;
    vertical-align: middle;
}

a > .client_photo, a:visited > .client_photo {
    border: 1px solid #d5d5d5;
}

a:hover > .client_photo {
    border: 1px solid #AAA;
}

.user_photo {
    width: 100px;
    height: 100px;
    border-radius: 50px;
}

a > .user_photo, a:visited > .user_photo {
    border: 1px solid #d5d5d5;
}

a:hover > .user_photo {
    border: 1px solid #AAA;
}

.menu_imaged {
    display: inline-block;
    height: 45px;
    background-repeat: no-repeat;
    background-size: 50px;
    background-position: 10px 5px;
    font-size: 22px;
    border: 1px solid #F5F4F0 !important;
    border-radius: 8px;
    margin-right: 15px;
    background-color: #F8F8F8;
    padding: 15px 10px 0 73px;
}

.menu_imaged:hover {
    background-color: #dbdbdb;
    border: 1px solid #c2c2c2 !important;
}

.button {
    font:normal 13px Verdana, Geneva, sans-serif;
    font-style:normal;
    color:#666 !important;
    background:#F8F8F8;
    border:0px solid #000 !important;
    box-shadow: 2px 2px 6px #F5F4F0;
    -moz-box-shadow: 2px 2px 6px #F5F4F0;
    -webkit-box-shadow: 2px 2px 6px #F5F4F0;
    border-radius: 10px;
    padding: 3px 16px;
    cursor:pointer;
    margin:0 auto;
    cursor:pointer;
    position:relative;
    top:2px;
}

.button:hover {
    background-color: #F5F4F0 !important;
    box-shadow: 2px 2px 6px #EFEEEA;
    -moz-box-shadow: 2px 2px 6px #EFEEEA;
    -webkit-box-shadow: 2px 2px 6px #EFEEEA;
}

.editable_data {
    border-bottom: 1px dotted #666;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.editable_data > i {
    color: #777;
}

.message {
    margin-bottom: 5px;
    background-color: #F5F4F0;
}

.message_head {
    float: right;
    background-color: #F8F8F8;
    padding: 4px 8px;
    width: 250px;
}

.message_head .user_photo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    float: left;
}

.message_head .message_date {
    display: block;
    float: right;
    margin-top: 5px;
    margin-left: 130px;
    font-size: 9px;
}

.message_head .user_name {
    display: block;
    white-space: nowrap;
    font-weight: bold;
    margin-top: 2px;
}

.message_head .user_info {
    color: #777;
    font-size: 10px;
    margin-top: -1px;
    display: block;
    white-space: nowrap;
    padding-left: 40px;
}

.message_text {
    padding: 10px;
    margin-right: 250px;
}

/*.form_block {
    background-color: #F5F4F0;
    float: left;
    padding: 7px 10px;
}*/

input.dotted {
    border: none;
    background: none;
    border-bottom: 1px dotted;
}

.selected_client {
    display: none;
}

.selected_client > .client_name, .selected_client > .discnt > span,
.selected_client > .client_name input, .selected_client > .discnt > span input {
    font-weight: bold !important;
}

.selected_client > .phone, .selected_client > .addr, .selected_client > .discnt,
.selected_client > .phone input, .selected_client > .addr input, .selected_client > .discnt input {
    font-style: italic !important;
}

.f {
    border: 1px solid;
    border-radius: 6px;
}

a:hover .f {
    border: 1px dotted;
}

.photo_ajax {
    white-space: nowrap;
    overflow-x: auto;
}

.photo_file {
    display: inline-block;
    margin-right: 15px;
    padding: 1px;
    border: 1px solid #CCC;
    height: 100px;
    border-radius: 3px;
}

.photo_file > div {
    display: none;
    position: relative;
    z-index: 2;
}

.selected > div {
    display: block;
}

.photo_file > div > div {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100px;
    background-color: #CCC;
    opacity: 0.5;
    text-align: center;
    font-weight: bold;
    font-size: 50px;
}

.photo_file > div > div > span {
    color: #050;
    top: 10px;
    position: relative;
}

.photo_file > span {
    position: absolute;
}

.photo_file > span > span {
    position: relative;
    left: 0px;
    top: 2px;
    background-color: #FFF;
    padding: 5px;
    padding-top: 2px;
    opacity: 0.5;
}

.photo_file img {
    height: 100px;
    border-radius: 3px;
}

.user_td .user_name, .user_td .user_info {
    display: block;
}

.user_td .user_name {
    font-weight: bold;
}

.user_td .user_info {
    color: #777;
    font-size: 10px;
    margin-top: -1px;
}

.log_auto {
    font-size: 10px;
    color: #777;
}

.mt0 { margin-top: 0 !important; }

.add_phone {
    font-size: 10px;
}


.menu {
  position: relative;
}
.list {
  position: absolute;
  right: 0;
  background-color: #F8F8F8;
  padding: 0;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  z-index: 2;
  top: -1px;
}
.list a {
  display: block;
  padding: 7px 10px;
  border-bottom: 1px dotted #E0E0E0;
}
.list a:last-child {
  border-bottom: none;
}
.list a:hover {
  background-color: #E0E0E0;
}

.date_sel {
    width: 80px;
    text-align: center;
    font-weight: bold;
}

.sm {
    font-size: 11px;
}

.sp, .sp2 {
    padding: 1px 5px;
}

.sp2 {
    opacity: 0.5;
}

.ds1 { background-color: #EEEEEE; }
.ds2 { background-color: #E9B883; }
.ds3 { background-color: #F0E68C; }
.ds4 { background-color: #FFAAAA; }
.ds5 { background-color: #B0DFB0; }

.stat_label {
    padding: 2px 10px;
    border-radius: 7px;
    display: inline-block;
}

.grey {
    color: #777;
}

#alerts {
    position: fixed;
    bottom: 10px;
    right: 20px;
}

#alerts .alert {
    margin-top: 10px;
    border: 1px solid #CCC;
    padding: 5px 10px;
    border-radius: 5px;
    background: #EEE;
    max-width: 250px;
}

.inp_suggest {
  position: absolute;
  border: 1px solid #CCC;
  margin-top: -1px;
  margin-left: 110px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #EEE;
  font-size: 11px;
}