body {
    font-size: 100%;
    font-family: 'PT Sans', sans-serif, serif;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-y: scroll;
    min-width: 1004px;
    background: url("/system/common/imgs/app-bg.jpg?v=4") no-repeat top -80px center;
}
header{
    height: 200px;
    padding: 2rem;
    box-sizing: border-box;
}
header .block-header{
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;

}
header div{
    color: #607d8b;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif, Serif;
    font-size: 18px;
    margin: 0;
    line-height: 1;
}
header .block-header > div:first-child > div:last-child{
    text-transform: lowercase;
    font-weight: normal;
    font-size: 16px;
    font-family: 'PT Sans', sans-serif, serif;
    font-style: italic;
}
header .block-header > div:last-child .profile{
    background: rgba(255,255,255,.2) url("/system/common/imgs/logo4.png?v=3") no-repeat center;
    height: 50px;
    width: 50px;
    border-radius: 50%;
}
main{
    min-height: 500px;
    background: white;
    border-radius: 15px 15px 0 0;
    padding: 2rem;
    box-sizing: border-box;
    box-shadow: 0 -10px 10px rgba(0,0,0,.1);
    position: relative;
}
button {
    /*padding: .5rem 1.2rem;
    font-family: 'Fira Sans Condensed',sans-serif,serif;
    font-size: .9rem;
    border: 1px solid #00a43c;
    background: #00a43c;
    color: white;
    cursor: pointer;
    outline: 0;
    position: relative;
    transition: .2s;
    border-radius: 2px;
    margin-right: .5rem;
    line-height: 1.1;*/

    /*padding: .6rem 1.2rem;
    font-size: .8rem;
    border: 1px solid #bbb;
    background: #eee;
    box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 white, 0 1px 2px -1px rgba(0,0,0,0.3);
    color: #777;
    cursor: pointer;
    outline: 0;
    position: relative;
    transition: .2s;
    border-radius: 2px;
    line-height: 1.2;
    font-weight: normal;
    text-shadow: none;
    margin: 0 .5rem 0 0;
    white-space: nowrap;
    font-family: 'PT Sans', sans-serif, Serif;*/

    padding: 1rem 1.2rem;
    /*font-family: 'Fira Sans Condensed',sans-serif,serif;*/
    font-family: 'Open Sans', sans-serif, serif;
    font-size: 11px;
    border: 1px solid #00a43c;
    background: #00a43c;
    color: white;
    cursor: pointer;
    outline: 0;
    position: relative;
    transition: .2s;
    border-radius: 2px;
    margin-right: .5rem;
    line-height: 1.1;
    font-weight: bold;

}

button:last-child {
    margin-right: 0;
}
.back-btn{
    position: absolute;
    top: -23px;
    height: 46px;
    width: 46px;
    border-radius: 50%;
    padding: 0;
    left: calc(50% - 90px);
    border: none;
    font-size: 14px;
    background: #607d8b url("/system/common/imgs/arrow-back-4.png?v=2") no-repeat center;
    box-shadow: 0 4px 10px -5px rgba(0,0,0,0.5);
}
.circle-btn-edit{
    position: absolute;
    top: -30px;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    padding: 0;
    left: calc(50% - 30px);
    border: none;
    font-size: 18px;
    background: #009688 url("/system/common/imgs/edit-3.png") no-repeat center;
    box-shadow: 0 4px 10px -5px rgba(0,0,0,0.5);
}
.circle-btn-delete{
    position: absolute;
    top: -23px;
    height: 46px;
    width: 46px;
    border-radius: 50%;
    padding: 0;
    left: calc(50% - -46px);
    border: none;
    font-size: 14px;
    background: #E53935 url("/system/common/imgs/delete-2.png") no-repeat center;
    box-shadow: 0 4px 10px -5px rgba(0,0,0,0.5);
}
button:hover {
    /*background: linear-gradient(to top, #f1f1f1 0%, #f1f1f1 100%);*/
    /*background: #f1f1f1;*/
    /*border-color: #21B9FF;*/
    /*background: #00be3a;*/
    /*border-color: #31b0fd;*/
    border-color: #93b74c;
}

button.pressed {
    /*box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 white, 0 1px 2px -1px rgba(0, 0, 0, 0.2);*/
    /*cursor: default;*/
    /*color: #00a43c;*/
    /*animation: animate-stripes 3s linear infinite;*/
    /*background: rgba(0, 164, 60, 0.3) linear-gradient(135deg, rgba(255, 255, 255, 0.35) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.35) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));*/
    /*background-size: 32px 32px;*/
    /*border-color: #00a43c;*/


    /*cursor: default;*/
    /*color: rgb(255, 255, 255);*/
    /*animation: animate-stripes 1s linear infinite;*/
    /*background: #00be3a linear-gradient(135deg,rgba(255,255,255,0.15) 25%,rgba(0,0,0,0) 25%,rgba(0,0,0,0) 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,rgba(0,0,0,0) 75%,rgba(0,0,0,0));*/
    /*background-size: 32px 32px;*/
    /*border-color: transparent;*/

    /*box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 white, 0 1px 2px -1px rgba(0,0,0,0.2);*/
    /*cursor: default;*/
    /*color: #31b0fd;*/
    /*animation: animate-stripes 3s linear infinite;*/
    /*background: rgba(49, 176, 253, 0.35) linear-gradient(135deg,rgba(255,255,255,0.35) 25%,rgba(0,0,0,0) 25%,rgba(0,0,0,0) 50%,rgba(255,255,255,0.35) 50%,rgba(255,255,255,0.35) 75%,rgba(0,0,0,0) 75%,rgba(0,0,0,0));*/
    /*background-size: 32px 32px;*/
    /*position: relative;*/
    /*border-color: #31b0fd;*/

    /*box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 white, 0 1px 2px -1px rgba(0,0,0,0.2);
    cursor: default;
    color: #93b74c;
    animation: animate-stripes 3s linear infinite;
    background: rgba(147,183,76,0.35) linear-gradient(135deg,rgba(255,255,255,0.35) 25%,rgba(0,0,0,0) 25%,rgba(0,0,0,0) 50%,rgba(255,255,255,0.35) 50%,rgba(255,255,255,0.35) 75%,rgba(0,0,0,0) 75%,rgba(0,0,0,0));
    background-size: 32px 32px;
    position: relative;
    border-color: #93b74c;*/

    cursor: default;
    color: #fff;
    animation: animate-stripes 1s linear infinite;
    background: #00be3a linear-gradient(135deg,rgba(255,255,255,0.15) 25%,rgba(0,0,0,0) 25%,rgba(0,0,0,0) 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,rgba(0,0,0,0) 75%,rgba(0,0,0,0));
    background-size: 32px 32px;
    border-color: transparent;

}

button:disabled,
button:disabled:hover {
    /*background: #eee;*/
    /*background: linear-gradient(to top, #eee 0%, rgba(238, 238, 238, 0.5) 100%);*/
    /*border-color: #dddddd;*/
    /*border-color: #EEEEEE;*/
    /*box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 white, 0 1px 2px -1px rgba(0, 0, 0, 0.2);*/
    /*cursor: default;*/
    /*color: #cccccc;*/


    background: #eee;
    border-color: #ddd;
    box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 white, 0 1px 2px -1px rgba(0,0,0,0.2);
    cursor: default;
    color: #ccc;
    text-shadow: 0 1px 0 white;
}
button.icon{
    width: 32px;
    height: 32px;
    padding: 0;
}
button.icon.pressed{
    animation: none;
}
button.icon.edit-event,
button.icon.edit-event.pressed,
button.icon.edit-album,
button.icon.edit-album.pressed{
    background: #eeeeee url("/system/common/imgs/edit.png") no-repeat center;
}
button.icon.delete-event,
button.icon.delete-event.pressed,
button.icon.delete-album,
button.icon.delete-album.pressed{
    background: #eeeeee url("/system/common/imgs/delete.png") no-repeat center;
}
.bottom-btns{
    /*display: none;*/
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: white;
    padding: 2rem;
    z-index: 100;
    border-top: 1px solid #ddd;
    box-shadow: -10px 0 10px rgba(0,0,0,.2);
    transition: .5s ease-in-out;
}
.bottom-btns.show{
    bottom: 0;
}
input {
    display: block;
    padding: .5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    width: 50%;
    min-width: 500px;
    box-sizing: border-box;
    margin: .5rem 0;
    outline: none;
    transition: .3s;
    font-family: 'PT Sans', sans-serif, serif;
    /*font-family: 'Fira Sans Condensed', sans-serif, serif;*/
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-progress-appearance: unset;
    position: relative;
    font-size: .85em;
}
select {
    display: block;
    padding: .5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    width: 50%;
    min-width: 500px;
    box-sizing: border-box;
    margin: .5em 0;
    outline: none;
    transition: border-color .3s;
    font-family: 'PT Sans', sans-serif, serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-progress-appearance: unset;
    color: #a9a9a9;
    background: url("/system/common/imgs/arrows.png?v=1.3") no-repeat right .4rem center;
}
textarea{
    display: block;
    padding: .5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 2px;
    width: 50%;
    min-width: 500px;
    box-sizing: border-box;
    margin: .42rem 0;
    outline: none;
    transition: border .3s;
    font-family: 'PT Sans', sans-serif, serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-progress-appearance: unset;
    position: relative;
    font-size: .85em;
    resize: vertical;
    min-height: 150px;
}
select.selected {
    color: black;
}

select option:disabled {
    color: #cccccc;
}

select option {
    color: black;
}
select.for-switch{
    border-radius: 0 0 2px 2px;
    position: relative;
    border-color: #dfc50d;
}
input:focus,
select:focus,
textarea:focus{
    /*border-color: #cccccc;*/
    border-color: #31B0FD;
}
select.for-switch:focus{
    border-color: #dfc50d;
}
input.error,
select.error,
textarea.error{
    border-color: #e43b3b;
}

input:disabled,
select:disabled {
    background: none;
    color: black;
    text-shadow: 0 1px 0 white;
}
form .wrap-input,
form .wrap-textarea{
    position: relative;
    margin-bottom: 1rem;
}
form div.flex,
form div.switch{
    /*display: flex;*/
    margin: .42rem 0;
    position: relative;
}

form div.flex:after,
form div.switch:after{
    /*content: attr(data-hint);
    position: absolute;
    left: calc(100% - -1rem);
    background: #fefcee;
    border-left: 1px solid #dfc50d;
    font-size: .7em;
    color: #b25900;
    padding: .4em 1rem;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
    top: 0;
    display: flex;
    bottom: 0;
    align-items: center;
    border-radius: 0 3px 3px 0;*/

    opacity: 0;
    content: attr(data-hint);
    position: absolute;
    /*noinspection CssInvalidPropertyValue*/
    left: calc(100% - -1rem);
    background: #fefcee;
    border-left: 1px solid #dfc50d;
    font-size: .7em;
    /*color: #999;*/
    color: #b25900;
    padding: .71rem 1rem;
    box-sizing: border-box;
    top: 0;
    display: flex;
    align-items: center;
    border-radius: 0 2px 2px 0;
    transition: .3s;
    min-width: 50%;
    line-height: 1.2;
}

form div.flex:before,
form div.switch:before{
    opacity: 0;
    content: "";
    position: absolute;
    /*noinspection CssInvalidPropertyValue*/
    left: calc(100% - -1rem - 4px);
    /*top: calc(50% - 3px);*/
    top: 13px;
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 3px 4px 3px 0;
    border-color: transparent #dfc50d transparent transparent;
    transition: .3s;
}

form div.flex.focus:after,
form div.flex.focus:before,
form div.switch.focus:after,
form div.switch.focus:before{
    opacity: 1;
}

form > div.connect {
    display: none;
}
form > div.connect.show{
    display: block;
}
form .errors {
    display: none;
    padding: .5em 1rem;
    margin: .5em 0;
    color: white;
    font-size: .9em;
    border-radius: 2px;
    background: #e43b3b;
    line-height: 1;
    position: relative;
}

form .errors:after {
    position: absolute;
    /*content: "";*/
    bottom: -4px;
    left: 20px;
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 4px 0 4px;
    border-color: #e43b3b transparent transparent transparent;
}

form > div.flex input,
form > div.flex select {
    margin: 0;
}

form span.placeholder{
    position: absolute;
    /*width: 100%;*/
    left: 1rem;
    z-index: 1;
    color: #999;
    font-size: .85em;
    font-family: 'Exo 2',sans-serif,serif;
    top: calc(50% - 8px);
    transition: .3s ease;
    display: flex;
    text-transform: uppercase;
}
form label.placeholder{
    position: absolute;
    left: 1rem;
    z-index: 1;
    top: calc(50% - 10px);
    padding: 0;
    transition: .3s ease;
    font-size: 16px;
}
form .wrap-textarea label.placeholder{
    top: 1rem;
}
form .wrap-input input{
    min-width: auto;
    width: 100%;
    margin: 1rem 0 0;
}
form .wrap-textarea textarea{
    margin: 1rem 0 0;
}
form .wrap-input input.filled + span.placeholder,
form .wrap-input input:focus + span.placeholder{
    font-size: 12px;
    top: -7px;
    background: white;
    left: calc(1rem - 5px);
}
form .wrap-input input:focus + label.placeholder,
form .wrap-input input.filled + label.placeholder{
    font-size: 12px;
    top: .5rem;
    background: white;
    left: 1rem;
    font-weight: bold;
    color: rgba(0, 105, 92, .6);
}
form .wrap-textarea textarea.filled + label.placeholder,
form .wrap-textarea textarea:focus + label.placeholder{
    font-size: 12px;
    top: .5rem;
    background: white;
    left: 1rem;
    font-weight: bold;
    color: rgba(0, 105, 92, .6);
}
form .wrap-input input + span.placeholder:after,
form .wrap-input input + span.placeholder:before{
    content: "";
    width: 5px;
    background: white;
    transition: .3s ease;
}
form .wrap-textarea textarea + span.placeholder:after,
form .wrap-textarea textarea + span.placeholder:before{
    content: "";
    width: 5px;
    background: white;
    transition: .3s ease;
}
form .wrap-input input.filled + span.placeholder:after,
form .wrap-input input.filled + span.placeholder:before,
form .wrap-input input:focus + span.placeholder:after,
form .wrap-input input:focus + span.placeholder:before,
form .wrap-textarea textarea.filled + span.placeholder:after,
form .wrap-textarea textarea.filled + span.placeholder:before,
form .wrap-textarea textarea:focus + span.placeholder:after,
form .wrap-textarea textarea:focus + span.placeholder:before{
    width: 5px;
}
form .wrap-textarea textarea{
    width: 100%;
    min-width: auto;
}
form .wrap-input span.unit{
    position: absolute;
    background: rgba(255,207,91,.1);
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 .5rem;
}
form .buttons {
    margin-top: 1em;
}
div.switch,
div.radio{
    display: flex;
}
form div.switch{
    /*noinspection CssInvalidPropertyValue*/
    margin-bottom:calc(-0.42rem - 1px);
}
form#treatment .wrap-input.small{
    width: 250px;
}
form#treatment .title{
    padding-bottom: .5rem;
    margin: 1rem 0;
    /*border-bottom: 3px double #02519e;*/
    /*border-left: none;*/
    /*border-right: none;*/
    color: #02519e;
    font-size: 11px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
}
form#treatment .title span{
    background: white;
    padding: 0 .5rem;
    position: relative;
    z-index: 1;
}
form#treatment .title:after{
    position: absolute;
    height: 1px;
    background: #eeeeee;
    content: "";
    left: 0;
    right: 0;
    top: calc(50% - 4px);
}
/*form button[data-action='delete-treatment'],*/
/*form button[data-action='delete-blood-test'],*/
/*form button[data-action='delete-pressure-control']{*/
/*    border: 2px solid #F44336;*/
/*    color: #F44336;*/
/*    margin-top: 2rem;*/
/*    width: 100%;*/
/*    background: none;*/
/*}*/
form button[data-action='cancel'],
form button[data-action='logout']{
    background: none;
    color: #607d8b;
    width: 100%;
    border: 2px solid #607d8b;
    margin-top: .5rem;
}
.switch a,
.radio a{
    padding: .5rem 1em;
    text-decoration: none;
    font-size: .85em;
    color: #555;
    border: 1px solid #dddddd;
    margin-right: -1px;
    transition: background .2s;
    outline: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    line-height: normal;
}
.switch a:last-child,
.radio a:last-child{
    margin-right: 0;
}
.switch a:first-child{
    border-radius: 2px 0 0 0;
}
.switch a:last-child{
    border-radius: 0 2px 0 0;
}
.radio a:first-child{
    border-radius: 2px 0 0 2px;
}
.radio a:last-child{
    border-radius: 0 2px 2px 0;
}
.switch a.active,
.switch a.active:hover,
.radio a.active,
.radio a.active:hover{
    background: #fbf4c0;
    border: 1px solid #dfc50d;
    position: relative;
    cursor: default;
    z-index: 2;
}
.radio a.active,
.radio a.active:hover{
    background: #d7f1fa;
    border-color: #3bbae4;
}
.switch a:hover,
.switch a:focus,
.radio a:hover,
.radio a:focus{
    border-color: #dfc50d;
    position: relative;
    z-index: 3;
}
.radio a:hover,
.radio a:focus{
    border-color: #3bbae4;
}
.warning {
    background: #fefcee;
    border-left: 1px solid #dfc50d;
    padding: 1rem;
    /*color: #b25900;*/
    color: #555;
    font-size: .9em;
}

.hide{
    display: none;
}
.warning strong {
    color: #333;
    font-weight: bold;
}

#top-menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    background: #00a43c;
}

#top-menu > li#logo {
    /*background: rgba(255,255,255,.1);*/
    padding: 0;
}

#top-menu > li#logo a {
    background: url("/system/common/imgs/logo.svg") no-repeat center;
    background-size: 36px 36px;
    /*background: rgba(255, 255, 255, .1);*/
    /*background: #19ad4f;*/
    /*background: linear-gradient(to left,#19ad4f 80%, transparent 100%);*/
    display: block;
    text-decoration: none;
    position: relative;
    color: transparent;
    padding: 1.2rem 2rem;
    min-width: 46px;
    text-shadow: none;
    margin-left: 1rem;
}

#top-menu > li#logo a:after {
    position: absolute;
    content: '';
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(255, 255, 255, .1) linear-gradient(135deg,rgba(255,255,255,0.35) 25%,rgba(0,0,0,0) 25%,rgba(0,0,0,0) 50%,rgba(255,255,255,0.35) 50%,rgba(255,255,255,0.35) 75%,rgba(0,0,0,0) 75%,rgba(0,0,0,0));
    background-size: 4px 4px;
    opacity: .3;
}

#top-menu li {
    padding: 1.2rem 1.5rem;
    color: white;
    font-size: .95em;
    position: relative;
}

#top-menu > li {
    display: inline-block;
    transition: .2s;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    /*font-family: 'PT Sans Narrow', sans-serif, serif;*/
    /*font-family: 'Fira Sans Condensed', sans-serif, serif;*/
    font-family: 'Fira Sans Extra Condensed', sans-serif, serif;
    /*text-shadow: 0 1px 0 #058233;*/
    text-shadow: 0 1px 0 #0a3a1b;
    padding: 0;
}
#top-menu > li > a,
#top-menu > li > span{
    color: white;
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    display: block;
    cursor: default;
}
#top-menu > li > a{
    cursor: pointer;
}
#top-menu > li:hover {
    background: #058233;
    cursor: default;
}

#top-menu > li#logo:hover{
    background: none;
}

#top-menu > li:last-child,
#top-menu > li:last-child:hover{
    float: right;
    padding: 0;
    /*padding-right: 1rem;*/
    margin-right: 1rem;
    display: flex;
    align-items: center;
    cursor: default;
    /*background: rgba(255, 255, 255, .1);*/
    background: none;
}

#top-menu > li:last-child span {
    padding: 1.2rem 1rem;
}

#top-menu > li:last-child button:last-child {
    /*background: url("/system/common/imgs/logout.png") no-repeat center;*/
    /*background: none;*/
    background: url("/system/common/imgs/exit.svg?v=2") no-repeat center;
    background-size: 40px 40px;
    transform: scale(-1, 1);
    border: none;
    box-shadow: none;
    opacity: 1;
    padding: 1rem;
    border-radius: 2px;
}

#top-menu > li:last-child button:last-child:hover,
#top-menu > li:last-child button:last-child.pressed,
#top-menu > li:last-child button:last-child.pressed:hover {
    background-size: auto;
    /*background: url("/system/common/imgs/logout.png") no-repeat center;*/
    background: #19ad4f url("/system/common/imgs/exit.png") no-repeat center;
    /*opacity: .9;*/
    animation: none;
}
#top-menu > li:last-child button.profile{
    background: url("/system/common/imgs/settings9.png") no-repeat center;
    border: none;
    box-shadow: none;
    opacity: 1;
    padding: 1rem;
    border-radius: 2px;
}
#top-menu > li:last-child button.profile:hover,
#top-menu > li:last-child button.profile.pressed,
#top-menu > li:last-child button.profile.pressed:hover {
    background-size: auto;
    /*background: url("/system/common/imgs/logout.png") no-repeat center;*/
    background: #19ad4f url("/system/common/imgs/settings9.png") no-repeat center;
    /*opacity: .9;*/
    animation: none;
}
/*#top-menu > li:last-child a{
    opacity: .3;
    width: 18px;
    padding: 0 .75rem;
    transition: .3s;
    cursor: pointer;
}
#top-menu > li:last-child a#events{
    background: url("/system/common/imgs/events.png") no-repeat center;
}
#top-menu > li:last-child a#logout{
    background: url("/system/common/imgs/logout.png") no-repeat center;
    padding-right: 0;
}
#top-menu > li:last-child a:hover{
    opacity: .9;
}*/
#top-menu ul {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 0;
    min-width: 300px;
    z-index: 10;
    border: 1px solid white;
    border-radius: 0 0 2px 2px;
    box-sizing: border-box;
    box-shadow: 1px 1px 5px -2px rgba(0, 0, 0, .4), 2px 2px 10px -2px rgba(0, 0, 0, 0.1);
}
#top-menu ul.right{
    left: auto;
    right: 1rem;
}
#top-menu ul li {
    display: block;
    color: #0078CC;
    border-bottom: 1px solid #eee;
    padding: 0;
    text-shadow: none;
    font-family: 'Fira Sans Extra Condensed', sans-serif, serif;
}

#top-menu ul li:last-child {
    border-bottom: none;
}

#top-menu ul li a {
    display: block;
    /*color: #A44C00;*/
    color: #b55606;
    /*color: #006AA4;*/
    font-weight: 400;
    font-size: .9rem;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: .2s;
}

#top-menu ul li a:hover {
    /*background: #f3f9fd;*/
    background: #fefcee;
}

#top-menu ul li a div {
    /*color: #555;*/
    color: #777;
    font-size: .7rem;
    margin-top: .6rem;
    font-family: 'PT Sans',sans-serif,serif;
    /*font-family: 'Roboto Condensed', sans-serif, serif;*/
    line-height: 1.2;
}

#top-menu ul li.off a {
    color: #cccccc;
    cursor: default;
}

#top-menu ul li.off a:hover {
    background: none;
}

#top-menu ul li.off a div {
    color: #dddddd;
}

#top-menu > li:hover ul {
    display: block;
}

#top-msg {
    font-size: .7em;
    background: rgb(157, 206, 175);
    color: #5f8fcb;
    font-weight: bold;
    height: 3px;
    margin-top: 1px;
}

.wrap {
    width: 100%;
    padding: 1em;
    box-sizing: border-box;
    display: flex;
}

.wrap > .block,
.wrap > .block.w-200,
.wrap > .block.w-250,
.wrap > .block.w-300,
.wrap > .block.w-400{
    padding: 0;
    box-sizing: border-box;
}

.wrap > .block {
    width: 100%;
}

.wrap > .block.w-200{
    width: 200px;
    min-width: 200px;
    margin-right: 1rem;
}
.wrap > .block.w-250{
    width: 250px;
    min-width: 250px;
    margin-right: 1rem;
}

.wrap > .block.w-300{
    width: 300px;
    min-width: 300px;
    margin-right: 1rem;
}

.wrap > .block.w-400{
    width: 400px;
    min-width: 400px;
    margin-right: 1em;
}
.block .block-body,
.block .block-foot{
    padding: 1rem;
    background: white;
}
.block .block-head,
.block .block-body.round-top{
    border-radius: 2px 2px 0 0;
}
.block .block-foot,
.block .block-body.round-bottom{
    border-radius: 0 0 2px 2px;
    /*box-shadow: 0 1px 2px -1px rgba(0,0,0,.4);*/
}
.block .block-body.round-top.round-bottom{
    border-radius: 2px;
}
.block .block-head .block-title,
.block .block-head .block-toolbar,
.block .block-head .block-tabs{
    margin-bottom: 1px;
    padding: 1rem;
    background: white;
    display: flex;
}
.block .block-head .block-title{
    /*font-family: 'PT Sans Narrow',sans-serif,serif;*/
    font-weight: 400;
    /*font-size: 1rem;*/
    font-size: .92rem;
    color: #555;
    line-height: 1;
    display: inline-block;
    padding: .6rem 1rem;
    border-radius: 2px 2px 0 0;
    margin-right: 1px;
    opacity: .5;
    /*color: #b55606;*/
    font-family: 'Fira Sans Extra Condensed',sans-serif,serif;
}
.block .block-head .block-title:last-child{
    margin-right: 0;
    opacity: 1;
}
.block .block-head .block-tabs{
    padding: 0;
    margin-bottom: 0;
    background: none;
}
.block .block-head .block-tabs a{
    padding: .5rem 1rem;
    font-size: .8rem;
    color: #888;
    cursor: pointer;
    transition: .3s;
}
.block .block-head .block-tabs a:hover{
    color: black;
}
.block .block-head .block-tabs a.active{
    color: #0798da;
}
.block .block-body{
    min-height: 50px;
}
.block .block-foot{
    margin-top: 1px;
    display: flex;
}

.help {
    color: #999;
    background: #fefcee;
    background: linear-gradient(to bottom, #fefcee 0, white 100%);
}
.info{
    font-size: 13px;
    background: #FFF8E1;
    padding: 1rem 2rem;
    border-radius: 4px;
}
#menu-list {
    /*list-style-type: none;
    margin: 0;
    min-height: 300px;
    border-right: 1px solid #eeeeee;
    padding: 0 .5em 0 0;*/

    /*list-style-type: none;
    margin: 0;
    height: 100%;
    min-height: 100px;
    padding: 1rem;
    background: linear-gradient(to bottom, #f7f7f7 0%, white 100%);
    box-sizing: border-box;*/

    list-style-type: none;
    margin: 0;
    height: 100%;
    min-height: 100px;
    padding: 0;
    box-sizing: border-box;
}

#menu-list li {
    font-size: .85em;
}

#menu-list li a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: .3rem .6rem;
    border-radius: 2px;
    line-height: 1;
    background: none;
    cursor: pointer;
}

#menu-list li a.active {
    /*color: #e43b3b;*/
    color: #0798da;
    background: none;
}

#menu-list li a.hovered {
    background: #fdebeb;
    /*background: rgba(59, 186, 228, 0.3);*/
    background: rgba(59, 186, 228, 0.2);
    cursor: pointer;
    /*color: #e43b3b;*/
    color: #0798da;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -webkit-touch-callout: none /*only to disable context menu on long press*/
}

#menu-list li a.loading,
#menu-list li a.hovered.loading {
    /*color: #e43b3b;*/
    color: #0798da;
    animation: animate-stripes 3s linear infinite;
    /*background: #fdebeb linear-gradient(135deg, rgba(255, 255, 255, 0.35) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.35) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));*/
    background: rgba(59, 186, 228, 0.2) linear-gradient(135deg, rgba(255, 255, 255, 0.35) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.35) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
    background-size: 30px 30px;
    text-shadow: 0 1px 0 white;
    box-sizing: border-box;
}

#user-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.wrap .tab-header.fixed {
    position: fixed;
    top: 0;
    background: white;
    z-index: 1000;
    right: 1.5rem;
    /*noinspection CssInvalidPropertyValue*/
    left: calc(200px - -2.5rem);
    padding-top: 1em;
}

.wrap .tab-header label {
    /*display: inline-block;
    color: #555;
    padding-bottom: .5em;
    border-radius: 3px 3px 0 0;
    box-sizing: border-box;
    font-family: 'PT Sans Narrow', sans-serif, serif;
    font-size: 1.2em;
    line-height: 1;*/

    display: inline-block;
    border-radius: 3px 3px 0 0;
    box-sizing: border-box;
    font-family: 'PT Sans Narrow', sans-serif, serif;
    font-size: 1em;
    line-height: 1;
    width: auto;
    min-width: inherit;
    padding: .4rem 1rem;
    background: #fbf4c0;
    color: #555;
}

.wrap .tab-header span.border {
    display: block;
    height: 1px;
    /*background: #e20202;*/
    background: #dfc50d;
    position: relative;
    /*top: -1px;*/
}

.wrap .tab-header span.hint {
    /*background: #fdebeb;*/
    background: #fefcee;
    display: block;
    margin-top: 0;
    /*color: #e29696;*/
    color: #b25900;
    font-size: .7em;
    padding: .4em 1rem;
    font-weight: bold;
    /*border-radius: 0 0 3px 3px;*/
}

.wrap .tab-header span.hint span:empty {
    height: 11px;
    display: inline-block;
}

.wrap .tab-header span.hint a {
    /*color: #e29696;*/
    /*color: #0798da;*/
    /*color: #b25900;*/
    color: #999999;
    text-decoration: none;
}
.wrap .tab-title{
    padding: 1rem;
    background: white;
    border-radius: 2px 2px 0 0;
    font-family: 'PT Sans Narrow', sans-serif, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0078cc;
    line-height: 1;
}
.wrap .toolbar {
    padding: 1rem;
    background: white;
    margin-top: 1px;
}

.wrap .toolbar.fixed {
    position: fixed;
    background: white;
    z-index: 1000;
    right: 1.5rem;
    /*noinspection CssInvalidPropertyValue*/
    left: calc(200px - -2.5rem);
    /*noinspection CssInvalidPropertyValue*/
    top: calc(53px - -1em);
    padding-bottom: 1em;
}

.wrap .toolbar button {
    margin-right: .5em;
}

.wrap .toolbar button:last-child {
    margin-right: 0;
}
.wrap .body{
    min-height: 300px;
    background: white;
    margin-top: 1px;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 1px 2px -1px rgba(0,0,0,.4);
    padding: 1rem;
    box-sizing: border-box;
}
.wrap .body.only{
    border-radius: 2px;
    margin-top: 0;
}
h1 {
    margin: 0 0 1em;
    font-size: 1.5em;
}
h3{
    margin: 0 0 2rem;
}
strong {
    font-weight: normal;
    color: black;
}
#pagination{
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    margin-top: 1rem;
    font-size: .75em;
}
#pagination a,
#pagination span{
    padding: .3rem .5rem;
    text-decoration: none;
    margin-right: -1px;
    border: 1px solid transparent;
    color: #555;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
#pagination span{
    color: #CCCCCC;
}
#pagination a{
    border-color: #dddddd;
}
#pagination a.active,
#pagination a.active:hover{
    background: #fefcee;
    border-color: #dfc50d;
    position: relative;
}
#pagination a:hover{
    border-color: #dfc50d;
    position: relative;
}
#pagination a:first-child{
    border-radius: 2px 0 0 2px;
}
#pagination a:last-child{
    border-radius: 0 2px 2px 0;
}
#pagination .last-page{
    /*margin-left: 1em;*/
}
#pagination .first-page{
    /*margin-right: 1em;*/
}
table.list {
    width: 100%;
    border-collapse: collapse;
}

table.list.fixed {
    margin-top: 115px;
}

table.list th {
    text-align: left;
    font-size: .75em;
    /*color: #e29696;*/
    color: #999999;
    /*background: #fdebeb;*/
    background: #eeeeee;
    padding: .35rem .6rem;
    border-right: 1px solid white;
    position: relative;
    cursor: pointer;
}
table.list th:after{
    position: absolute;
    right: .5rem;
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 4px 0 4px;
    border-color: #aaaaaa transparent transparent transparent;
    top: calc(50% - 2px);
    /*background: url("/system/common/imgs/ud-all.png") no-repeat left center;
    width: 6px;
    height: 10px;*/
}
table.list th.up:after{
    content: "";
    border-width: 0 4px 4px 4px;
    border-color: transparent transparent #aaaaaa transparent;
}
table.list th.down:after{
    content: "";
}
table.list th:before {
    content: "";
    position: absolute;
    right: 1px;
    width: 1px;
    top: 0;
    bottom: 0;
    /*background: #f6bebe;*/
    background: #dddddd;
}

table.list tr th:first-child {
    border-radius: 2px 0 0 0;
}

table.list tr th:last-child {
    border: none;
    border-radius: 0 2px 0 0;
}

table.list tr th:last-child:before {
    content: none;
}

table.list td {
    /*font-size: .8em;*/
    font-size: .75em;
    color: #555;
    padding: .35rem .6rem;
    border-right: 1px solid transparent;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}
table.list tr td:last-child {
    border-right: none;
}

table.list tr:nth-child(odd) td {
    /*background: #fdebeb;*/
    background: #f7f7f7;
}

table.list tr.selected td,
table.list tr.selected:hover td {
    /*background: #a6e3ff;*/
    background: #c0e9cf;
    color: #00772c;
}

table.list tr:hover td {
    /*background: #d2f1ff;*/
    background: #d9f1e2;
}
table.list tr td strong{
    font-weight: bold;
}
#droparea {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    transition: background .3s;
    border: 1px dashed #ddd;
    border-radius: 3px;
}
#droparea.disabled{
    border: 1px dashed #eee;
}
form #droparea{
    font-size: .9em;
}
#droparea.over {
    background: #f5f5f5
}

#droparea p {
    margin: 0;
    text-align: center;
}
#droparea.disabled p,
#droparea.disabled p span,
#droparea.disabled p strong,
#droparea.disabled p a{
    color: #dddddd;
    cursor: default;
}
#droparea.dropped p {
    display: none
}

#droparea p a {
    cursor: pointer;
    color: #0798da;
}
#droparea p input[type='file']{
    display: none;
}
#droparea p span {
    display: block;
    font-size: .85em;
    color: #999;
    margin-top: .1em;
}
#droparea p strong{
    color: #999;
    font-weight: bold;
}
.upload:after {
    content: "";
    position: relative;
    top: 134px
}

#droparea .progress-bar {
    display: none;
    width: 100%;
    height: 30px;
    background: #eeeeee;
    position: relative;
    border-radius: 3px;
    margin: 0 2rem;
}

#droparea.dropped .progress-bar {
    display: block
}

#droparea .progress-bar div {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    transition: .5s;
    /*background: rgba(0, 164, 60, 0.3) linear-gradient(135deg,rgba(255,255,255,0.35) 25%,rgba(0,0,0,0) 25%,rgba(0,0,0,0) 50%,rgba(255,255,255,0.35) 50%,rgba(255,255,255,0.35) 75%,rgba(0,0,0,0) 75%,rgba(0,0,0,0));*/
    background: #8bd6ef linear-gradient(135deg,rgba(255,255,255,0.35) 25%,rgba(0,0,0,0) 25%,rgba(0,0,0,0) 50%,rgba(255,255,255,0.35) 50%,rgba(255,255,255,0.35) 75%,rgba(0,0,0,0) 75%,rgba(0,0,0,0));
    animation: animate-stripes 3s linear infinite;
    background-size: 32px 32px;
    border-radius: 3px;
}
#wrap-tpl-data,
#wrap-stuff-pharmacy{
    border: 2px solid #3bbae4;
    height: 300px;
    width: 100%;
    overflow: auto;
    resize: vertical;
    position: relative;
    background: #fefcee;
    box-sizing: border-box;
    /*margin: 1rem 0;*/
    margin: 0 0 1rem;
}
#wrap-stuff-pharmacy{
    /*margin-top: 1rem;*/
}
#tpl-data{
    /*border-collapse: collapse;*/
    width: 100%;
}
#tpl-data td{
    border: 1px solid #dddddd;
    padding: .3rem .6rem;
    background: white;
    font-size: .75rem;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -webkit-touch-callout: none
}
#tpl-data td.red{
    border-color: #e29696;
    background: #fdebeb;
}
#tpl-data td.orange{
    border-color: orange;
    background: #ffedcc;
}
#tpl-data td.green{
    border-color: #8BC34A;
    background: #e8f3db;
}
#tpl-data td.selected{
    border-color: #5CC6E9;
    /*position: relative;*/
    background: #def4fb;
    box-shadow: inset 1px 1px 0 0 #5cc6e9,inset -1px -1px 0 0 #5cc6e9;
}
#tpl-data td.light{
    border: 1px solid #d1c35b;
    background: #fefcee;
}
#stuff-pharmacy{
    width: 100%;
}
#stuff-pharmacy th,
#stuff-pharmacy td{
    border: 1px solid #dddddd;
    padding: .3rem .6rem;
    background: white;
    font-size: .75rem;
    cursor: default;
    white-space: nowrap;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -webkit-touch-callout: none
}
#stuff-pharmacy tr.light td,
#stuff-pharmacy tr td.light,
#stuff-pharmacy tr th.light{
    border-color: #d1c35b;
}

#stuff-pharmacy th{
    /*color: #b25900;*/
    color: #555555;
}
#stuff-pharmacy td{
    text-align: center;
    outline: none;
}
#stuff-pharmacy td:before{
    /*content: "1";*/
    color: transparent;
}
#stuff-pharmacy td:not(:empty){
    border-color: #8bc34a !important;
    background: #e8f3db;
}
#stuff-pharmacy td.selected{
    border: 1px solid #5CC6E9 !important;
    box-shadow: inset 1px 1px 0 0 #5cc6e9,inset -1px -1px 0 0 #5cc6e9;
    /*position: relative;*/
    background: #def4fb;
    position: relative;
}
#stuff-pharmacy td.selected > span.helper{
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 6px;
    height: 6px;
    background: #2d96b9;
    border: 1px solid white;
    box-sizing: border-box;
    cursor: move;
}
#stuff-pharmacy td.selected span:hover{
    /*cursor: move;*/
}
#stuff-pharmacy td > div{
    outline: none;
}
#stuff-pharmacy td > span.select-area{
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    right: -1px;
    border: 2px dashed #333;
    cursor: move;
}
#stuff-pharmacy td.in-selection{
    border: 1px solid #5CC6E9;
    box-shadow: inset 1px 1px 0 0 #5cc6e9,inset -1px -1px 0 0 #5cc6e9;
    /*position: relative;*/
    background: #def4fb;
}
form label{
    padding: .5rem 1rem 0;
    font-size: 13px;
    white-space: nowrap;
    background: white;
    color: #999999;
    display: block;
}
form div.wrap-input{
    border: 1px solid #CFD8DC;
    border-radius: 3px;
}
form div.wrap-textarea{
    border: 1px solid #dddddd;
    border-radius: 3px;
}
form input{
    margin-top:0;
    font-size: 16px;
    border: none;
}
form textarea{
    margin-top:0;
    font-size: 16px;
    border: none;
}
    /* Высплывающие окна */
#light {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 10000;
}

#popup {
    display: none;
    width: 500px;
    background: rgba(255, 255, 255, .1);
    padding: 1em;
    border-radius: 4px;
    position: absolute;
    top: 1rem;
    left: calc(50% - 250px);
    box-sizing: border-box;
    z-index: 10001;
}
#popup.full-screen{
    width: auto;
    left:1rem;
    right: 1rem;
}
#popup.w800{
    width: 800px;
    left: calc(50% - 400px);
}
#popup.loading:before {
    content: "";
    position: absolute;
    top: calc(50% - 7px);
    left: calc(50% - 100px);
    width: 200px;
    height: 14px;
    background: rgba(59, 186, 228, 0.6) linear-gradient(135deg, rgba(255, 255, 255, 0.35) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.35) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0));
    animation: animate-stripes 3s linear infinite;
    background-size: 32px 32px;
    border-radius: 3px;
}

#popup > #wrap {
    background: white;
    min-height: 100px;
    border-radius: 2px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
#popup.full-screen > #wrap{
    /*min-width: 400px;*/
    overflow: auto;
}
#popup > #wrap .title {
    /*margin: 0;
    line-height: 1.1;
    padding: .8rem 1rem;
    font-weight: 500;
    color: #fff;
    font-size: 1rem;
    background: rgba(255, 94, 0, 0.5);
    text-shadow: 0 1px 0 rgba(255, 94, 0, 0.6);
    border-bottom: 1px solid rgba(255, 94, 0, 0.2);
    font-family: 'Fira Sans Extra Condensed', sans-serif, serif;*/

    margin: 0;
    line-height: 1.1;
    font-weight: 400;
    color: #fff;
    font-size: .9rem;
    background: #00A43C;
    text-shadow: 0 1px 0 #036d2a;
    font-family: 'Fira Sans Condensed',sans-serif,serif;
    padding: 1rem;
    box-shadow: 0 2px 0 0 #9dceaf;
    border-bottom: 1px solid white;
}

#popup > #wrap .title span {
    display: none;
    float: right;
    width: 16px;
    height: 16px;
    /*margin-right: .5rem;*/
    background: #ff8d4c url("/system/common/imgs/close.png") no-repeat center;
    opacity: .5;
    cursor: pointer;
    transition: .3s;
    padding: 0;
    border-radius: 2px;
}

#popup > #wrap .title span:hover {
    opacity: 1;
}

#popup > #wrap .body {
    color: #555555;
    font-size: .9rem;
    padding: 1rem;
    font-family: 'Fira Sans Condensed', sans-serif, serif;
}
#popup > #wrap .body .tab-header label{
    background: #c4eaf7;
}
#popup > #wrap .body .tab-header .hint,
#popup > #wrap .body .tab-header .border{
    display: none;
}

#popup > #wrap .footer {
    padding: 1rem;
    background: #f7f7f7;
    display: flex;
}

.debug {
    font-size: .9em;
    background: #eee;
    padding: 1em;
    border-radius: 2px;
}

.debug label {
    font-weight: bold;
    display: block;
    margin-bottom: .5em;
}
.switch{
    width: 32px;
    height: 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    position: relative;
    border-radius: 2px;
    background: #ccc;
}
.switch:before{
    content: "";
    position: absolute;
    background: white;
    top: 0;
    bottom: 0;
    width: 16px;
    transition: .3s;
    left: 0;
}
.switch.on{
    background: #93b74c;
    border-color: #93b74c;
}
.switch.on:before{
    left: calc(100% - 16px);
}

/* animations */
@-webkit-keyframes animate-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 64px 0;
    }
}

@-moz-keyframes animate-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 64px 0;
    }
}

@keyframes animate-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 64px 0;
    }
}