/* Eric Meyer's CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    /*vertical-align: baseline;*/
}

#loader {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #00000020;
    background-image: url("../images/loader.gif");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    z-index: 9999;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* End of Eric Meyer's CSS Reset */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

body {
    font: 12px/18px Arial, sans-serif;
}

.wrapper {
    width: 100%;
    min-width: 1000px;
}

#header {
    position: sticky;
    width: 100%;
    height: 80px;
    z-index: 4;
    top: 0;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #ddd;
    -webkit-box-shadow: 0 5px 22px 2px rgb(0 0 0 / 30%);
    -moz-box-shadow: 0 5px 22px 2px rgb(0 0 0 / 30%);
    box-shadow: 0 5px 22px 2px rgb(0 0 0 / 30%);
}

.left-header {
    padding: 10px 30px;
    background-color: #004c40;
}

.left-header img {
    height: 60px;
}

.right-header {
    width: 100%;
}

#headerBlock {
    min-height: 30px;
    color: rgb(49, 51, 51);
    background-color: #d7d7d7;
    padding: 5px 15px;
    display: flex;
    flex-flow: row wrap;
    font-size: 14px;
    line-height: 30px;
}

#header_title {
    color: #fff;
    line-height: 30px;
    font-size: 20px;
    float: left;
    margin-left: 5px;
}

#header_storage {
    color: white;
    line-height: 30px;
    font-size: 16px;
    float: left;
    margin-left: 20px;
    width: 300px;
}

#header_greeting {
    line-height: 30px;
    font-size: 16px;
    float: left;
    margin-left: 40px;
    width: 300px;
}

#version-block {
    line-height: 30px;
    padding: 0 10px;
}

#ticket_block {
    margin-left: auto !important;
    width: 150px;
    order: 998;
}

#header_logout {
    float: right;
    line-height: 30px;
    order: 9999;
    margin-left: auto;
}



#header_logout button#logout {
    height: 30px;
    width: 75px;
    line-height: 21px;
    font-size: 14px;
}

#errorBlock {
    color: red;
    text-align: center;
}

#home-page-block {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    background-image: url('../images/homepage-bg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
    font-size: 34px;
    text-align: center;
    line-height: 1.5;
    font-family: Arial, Helvetice;
    text-shadow: 1px 1px rgb(49 51 49);
}


.attrs-table tbody tr td div,
.attrs-table tbody tr td input {
    height: 30px !important;
    padding: 5px !important;
    text-align: left;
}

.attrs-save-btn {
    margin: 10px !important;
}

.storages-block,
.interfaces-block {
    display: flex;
    margin-left: 20px;
}

.hidden {
    display: none;
}

.storages-block select,
.interfaces-block select {
    background-color: #d7d7d7;
    color: rgb(49, 51, 51);
    border-radius: 5px;
    border: 1px solid #b5b5b5;
    margin-left: 5px;
}

.info-block {
    display: inline-block;
    padding-left: 10px;
    width: 500px;
    color: #036958;
}

@media only screen and (max-width: 900px) {

    html,
    body {
        width: 100% !important;
    }

    #header {
        flex-direction: column;
    }

    #headerBlock {
        height: auto;
    }

    #header_title {
        display: none;
    }

    header {
        height: auto !important;
        position: relative !important;
    }

    .storages-block select,
    .interfaces-block select {
        width: 130px;
    }

    .svb_object .container-attribute label {
        width: auto !important;
        padding-right: 5px;
    }

    .svb_object_instance_content_footerbar {
        display: flex !important;
        flex-flow: column !important;
    }

    .svb_object_instance_content_footerbar * {
        margin-bottom: 5px !important;
    }

    .svb_object_instance_header {
        position: relative !important;
    }

    .svb_object {
        min-width: calc(100% - 10px) !important;
        width: calc(100% - 10px) !important;
    }

    #modalv {
        min-width: 100% !important;
        width: 100% !important;
    }
}

.signatures-full-view {
    display: none;
    position: absolute;
    top: 30px;
    left: 15px;
    width: 285px;
    background-color: #fff;
    border: 1px solid #ddd;
    z-index: 999;
    overflow: visible !important;
}

td[data-name="signatures"] {
    overflow: visible !important;
    position: relative;
}

td[data-name="signatures"]:hover .signatures-full-view {
    display: block;
}

td.employees-select-td {
    overflow: visible !important;
    position: relative;
}

td.employees-select-td .employees-select {
    display: none;
    padding-right: 0;
    position: absolute;
    top: 30px;
    left: 0;
    max-height: 200px;
    background-color: #fff;
    border: 1px solid #ddd;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
}

td.employees-select-td .employees-select li {
    padding: 2px;
}

td.employees-select-td .employees-select li:hover {
    background-color: #035C4D;
    color: #fff;
}

td.employees-select-td .search-input,
td.employees-select-td .search-input:focus {
    padding-right: 0px;
    border: none;
}


td.employees-select-td .employees-close {
    display: none;
    position: absolute;
    height: 26px;
    width: 26px;
    cursor: pointer;
    padding: 0;
    top: 0;
    text-align: center;
    right: 0;
}

.filter-btns-block button {
    width: 100%;
    margin-bottom: 5px;
}

.svb_object .svb_object_divFilterCatalog {
    width: calc(100% - 50px) !important;
}