@font-face {
    font-family: Caveat;
    src: url(../fonts/Caveat-Bold.ttf);
}

html, body {
    font-size: 12px;
}

body {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

h1 {
    font-size: 150%;
    margin: 15px 5px 5px;
}

h2 {
    font-size: 140%;
    margin: 12px 5px 5px;
}

h3 {
    font-size: 120%;
    margin: 10px 5px 5px;
}

h4 {
    font-size: 100%;
    margin: 10px 5px 5px;
    padding: 5px;
}

th, td {
    border: 1px solid #777777;
    padding: 2px;
    /*font-size: 16px;*/
}

input[type="checkbox"] {
    vertical-align: middle;
}

summary {
    cursor: pointer;
}

#auth-wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    font-size: 120%;
}

#auth {
    margin-top: 100px;
}

#auth input {
    margin: 10px;
}

#header1 {
    display: flex;
    align-items: center;
    padding: 0;
    /*text-align: center;*/
    border-bottom: #00000082 2px solid;
    /*background-color: #fbae0012;*/
    background: #cedbe9;
    background: -moz-linear-gradient(45deg, #cedbe9 0%, #aac5de 15%, #6199c7 35%, #3a84c3 50%, #419ad6 61%, #4bb8f0 71%, #3a8bc2 84%, #26558b 100%);
    background: -webkit-linear-gradient(45deg, #cedbe9 0%, #aac5de 15%, #6199c7 35%, #3a84c3 50%, #419ad6 61%, #4bb8f0 71%, #3a8bc2 84%, #26558b 100%);
    background: linear-gradient(45deg, #cedbe9 12%, #aac5de 15%, #6199c7 35%, #3a84c3 50%, #419ad6 61%, #4bb8f0 71%, #3a8bc2 84%, #26558b 100%);
}

#logo {
    display: inline-block;
    padding: 5px;
    font-size: 20px;
    font-style: italic;
    /*font-size: 30px;*/
    /*font-family: 'Caveat', cursive;*/
    line-height: 80%;
    color: #357fb6;
    text-shadow: 1px 1px 1px #070d5e;

}

#hdr_logout {
    display: inline-block;
    float: right;
    border-radius: 5px;
    background-color: #fff;
    padding: 3px;
    border: 1px solid #000000a3;
    margin-left: auto;
    margin-right: 5px;
}

/* menu */
.nav-main {
    display: inline-block;
    margin-left: 1%;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-main a {
    text-decoration: none;
    color: #000;
}

.nav-main-punkt:hover, .butt:hover, .butt_ico:hover {
    /*color: #f00;*/
    background-color: #d5ecff;
    cursor: pointer;
}

.nav-main-punkt, .butt {
    display: inline-block;
    background-color: #fff;
    padding: 4px 5px;
    margin: 3px;
    border-radius: 5px;
    border: 1px solid #000000a3;
}

.butt_dis {
    background-color: #ececec;
    color: #8b8b8b;
}

.butt_dis:hover {
    background-color: #ececec;
    cursor: default;
}

.nav-main-sel {
    font-weight: bold;
    background-color: #a9e5fb;
    border-radius: 5px;
}

.menu2 {
    border-bottom: solid 1px #c3c3c3;
}

.butt_ico, .ind_wait {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    margin: 3px;
    margin-bottom: -8px; /* компенсация странного смещения вверх. из-за размера исходного рисунка? */
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #000000a3;
    background-repeat: no-repeat;
    background-position: center center;
    background-clip: content-box;
    background-size: 80%;
}

.ctrl_text {
    display: inline-block;
    font-size: 0.9em;
    padding: 0 3px;
    vertical-align: super;
}

.ind_wait {
    float: right;
    border-color: #c8000b;
    display: none;
}

#ind_proc {
    float: right;
    background-color: #ff9686;
    display: none;
    position: relative;
    height: 22px;
    margin: 3px;
    margin-bottom: -8px; /* компенсация странного смещения вверх. из-за размера исходного рисунка? */
    border-radius: 5px;
    border: 1px solid #000000a3;
    font-weight: bold;
    padding: 2px 2px 0 2px;
}

#main-content {
    padding: 0;
    height: calc(100% - 37px);
    overflow: auto;
}

#table_catalog_container {
    padding-left: 7px;
    overflow: auto;
}

#for_tik {
    margin-left: 25px;
}

.control_box {
    position: relative;
    border-bottom: 1px solid #cccccc;
    padding: 2px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.control_box_fix {
    position: absolute;
    top: 1px;
    left: 1px;
    right: 0;
    background-color: white;
    border-bottom: 1px solid #cccccc;
    padding: 2px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.control_box select {
    height: 24px;
    margin: 3px;
}

.ctrl_elem {
    position: relative;
    display: inline-block;
    margin: 0 2px 0 2px;
}

.ctrl_info {
    display: inline-block;
    border: 1px solid #ccc;
    padding: 4px;
    font-weight: bold;
    background-color: #c0e7ff;
}

.ctrl_info span {
    /*padding: 0 5px 0 3px;*/
}

.warning {
    margin: 5px;
    padding: 5px;
    background-color: #f3665a;
}

.warn_0 {
    background-color: #ffffff;
}

.warn_1 {
    background-color: #fffda0;
}

.warn_2 {
    background-color: #fffc03;
}

.warn_3 {
    background-color: #ff9f97;
}

.warn_4 {
    background-color: #ff0000;
}

.row_data:hover {
    cursor: pointer;
    background-color: #b7dcff;
}

.row_select {
    background-color: #2aadff;
}

.row_bold {
    font-weight: bold;
}

#for_graph {
    height: 400px;
    width: 95%;
    margin: 0 5px 5px;
}

.hidden_rows {
    display: none;
}

.editable_row:hover {
    cursor: pointer;
    background-color: #dddddd;
}

.editable_cell:hover, .password_cell:hover, .cell_show_data:hover {
    cursor: pointer;
    background-color: #cacadd;
}

.cell_edit, .cell_select {
    height: 100%;
    width: 96%;
}

.scrolling_box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
}

/* фиксируем заголовок таблицы */
.data_tbl thead th {
    position: sticky;
    top: 0;
}

.data_tbl th {
    font-weight: bold;
    cursor: default;
    background-color: #e6e6e6;
    vertical-align: bottom;
    text-align: center;
}

.data_tbl th, .data_tbl td {
    padding: 4px;
    border: none;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}

/*
.data_tbl td {
    white-space: nowrap;
    overflow-x: hidden;
}
*/


.changed_el {
    background-color: #eee803;
}

.good_el {
    background-color: #93ee67;
}

.bad_el {
    background-color: #ff7777;
}

.del_mark {
    text-decoration: line-through;
    text-decoration-style: double;
    text-decoration-color: #0000ff;
}

.del_butt {
    font-weight: bold;
    text-align: center;
}

.del_butt:hover {
    background-color: #ff777e;
    cursor: pointer;
}

.footnote {
    margin: 5px;
    padding: 5px;
    font-size: small;
    color: #777;
}

.footnote p {
    margin: 3px;
}

.footnote span {
    font-weight: bold;
    margin: 0 10px 0 10px;
}

.align_c {
    text-align: center;
}

.align_r {
    text-align: right;
}

.align_l {
    text-align: left;
}

.clr_gray {
    background-color: #ddd;
}

.clr_grn {
    background-color: #6fc172 !important;
}

.clr_blu {
    background-color: #05b2bf;
}

.clr_red {
    background-color: #ff9686 !important;
}

.clr_yel {
    background-color: #fdfa50;
}

/*____________________________*/
.td_permit_node:hover {
    background-color: #a0c2f6;
    cursor: pointer;
}

.bordered {
    border-radius: 3px;
    border: 1px solid #777;
}

.check_unit {
    margin: 10px;
    border-top: 1px solid #777;
}

#modal_wrapper, #popup_wrapper {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(214, 214, 214, 0.36);
    z-index: 99;
    display: none;

    justify-content: center; /*Центрирование по горизонтали*/
    align-items: center; /*Центрирование по вертикали */
}

#popup_window {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: fit-content;
    max-width: 90%;
    max-height: 90%;
}

#popup_header {
    text-align: center;
    font-weight: bold;
}

#popup_body {
    border-top: solid 1px #cccccc;
    border-bottom: solid 1px #cccccc;
    margin: 5px 0 5px 0;
    padding: 5px 0 5px 0;
    overflow: auto;
}

#popup_control {
    text-align: right;
}

#popup_footer {
    text-align: center;
    font-size: 70%;
    /*   position: absolute;
       bottom: 0;
       width: 90%;
       border-top: solid 1px #cccccc;*/
}

.popup_wind_block {
    padding: 4px;
}

.popup_wind_block span {
    font-weight: bold;
}

.modal_window {
    display: inline-block;
    background-color: white;
    border: 1px solid #dfdfdf;
    padding: 10px;
    box-shadow: 2px 2px 2px #a8a7a2;
}

#control_print {
    position: absolute;
    top: 0;
    left: 0;
    right: 5em;
}

.right_butt {
    float: right;
}

.sort_able::after {
    content: '•';
    margin-left: 5px;
}

.sort_asc::after {
    content: '▲';
    margin-left: 5px;
}

.sort_desc::after {
    content: '▼';
    margin-left: 5px;
}

.setTblWrap {
    overflow: auto;
    max-width: 800px;
}

.setTblRow {
    width: max-content;
    text-align: center;
}

.setTblSrt {
    display: inline-block;
    width: 150px;
    background-color: #ccc;
    border: 1px solid #aaa;
    cursor: pointer;
}

.setTblSrtVal {
    display: block;
    width: 100%;
    margin: 0;
    border: none;
    text-align: center;
}

.hdr_rep {
    font-weight: bold;
    font-size: 1.5em;
    padding: 5px 0 15px 0;
}

.rep_tbl th, .rep_tbl td {
    border: 1px solid #777;
}

.rep_row_indent td {
    border: none;
    height: 1em;
}

.td_blank {
    border: none !important;
}

.tbl_blank td, .tbl_blank th {
    border: none;
}

.tbl_middle td, .tbl_middle th {
    vertical-align: middle;
}

.hr_bottom {
    border-bottom: 1px solid #cccccc;
}

.reduce_font {
    font-size: 0.8em;
}

#test {
    border-left: #999 1px solid;
    border-right: #999 1px solid;
    font-size: smaller;
    visibility: hidden;
    /* visibility: visible; */
    color: #3a84c3;
    width: 100%;
}

.only_for_print {
    display: none;
}

/* ------------------------------------------ */
@media print {
    body {
        overflow: initial;
    }

    #main-content {
        display: none;
    }

    .only_for_print {
        display: block;
    }

    .not_print {
        display: none;
    }

    .pb_after {
        page-break-after: always;
    }

    .pb_before {
        page-break-before: always;
        break-before: page;
    }
}

@media screen and (max-width: 1080px) {
    html, body {
        font-size: 16px;
    }
}

@media screen and (max-width: 800px) {
    html, body {
        font-size: 15px;
    }
}

@media screen and (max-width: 640px) {
    html, body {
        font-size: 14px;
    }
}

.nav-main-punkt a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-main-icon,
.hdr-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.nav-main-icon svg,
.hdr-logout-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#hdr_logout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hdr-logout-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    border: 1px solid #000000a3;
    border-radius: 5px;
    background: #fff;
    color: inherit;
    cursor: pointer;
}