/**
Cтили обвязки страницы
*/

:root {
    --view-panel-width: calc(100vw - var(--view-left-offset));
    --view-left-offset: var(--view-left-offset-real);
    --view-left-offset-real: 40px;
    --view-left-menu: 30px;
}

.topmenu-context {
    background-color: #f2f2f2 /*DBEAF9*/;
    margin-top: 20px;
}

.topmenu-context > .context-menu-item {
    background-color: #f2f2f2 /*DBEAF9*/;
}

.topmenu2 {
    margin-left: -20px;
}

.no-full-screen > .topmenu2 > .context-menu-item:first-child {
    display: none;
}

#main_content {
    background-color: #FFFFFF;
    display: inline-block;
    margin: 0;
    padding: 15px;
    border: #999999 solid 1px;
    width: auto;
    transition: margin ease-out 0.5s 0s;
    position: relative;
    box-shadow: 0 0 2px #888;
    line-height: 0;
}

#main_content:before {
    transition: background 0.5s ease-in 0.2s;
    background: rgba(0, 0, 0, 0);
    content: "";
}

#main_content.disabled:before {
    display: block;
    background: rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
}

#main_content > * {
    line-height: 21px;
}

#main_content_wrapper {
    right: 0;
    margin-left: 39px;
    text-align: center;
    max-width: calc(var(--view-panel-width) - 10px);
}

#left_toolbar {
    position: fixed;
    width: 32px;
    z-index: 501;
    top: 32px;
    height: 100%;
    box-shadow: #333 0 3px 3px;
    background-color: #f2f2f2 /*DBEAF9*/;
    border-right: #999999 solid 1px;
    margin: 0;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
}

#left_toolbar > .home {
    min-width: 120px;
    height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 6px;
}

#left_toolbar .group > div {
    margin-bottom: 6px;
}

#left_toolbar div {
    white-space: nowrap;
}

#left_toolbar .left-menu-link {
    margin-left: 6px;
}

#left_toolbar.wide {
    width: auto;
}

#left_toolbar .fav {
    margin-bottom: 15px;
}

#top-dyn,
#top-dyn-bulk {
    margin-top: -6px;
    padding: 6px 0 6px;
}

#top-dyn > :not(.hid):first-of-type,
#top-dyn-bulk > :not(.hid):first-of-type {
    margin-left: 4px;
}

#top-dyn > :not(.hid):last-of-type,
#top-dyn-bulk > :not(.hid):last-of-type {
    margin-right: 4px;
}

#top-dyn {
    background-color: #DBEAF9;
}

#top-dyn-bulk {
    background-color: #ffc;
}

.top_href_bulk_group_action:after,
.top_href_group_action:after {
    border: 3.5px solid transparent;
    border-top: 3.5px solid black;
    content: "";
    display: inline-block;
    height: 0;
    width: 0;
    margin-left: -13px;
    margin-top: 19px;
    position: absolute;
}

.top_href_self {
    box-shadow: 0 2px 0 #b4d0ee;
}

.top_href_blank:before {
    border: 1px solid #a4c0de;
    background-color: #fff;
    content: "";
    display: inline-block;
    height: 4px;
    width: 4px;
    border-radius: 2px;
    margin-top: 14px;
    position: absolute;
}

/* Context Menu */
#context-menu-layer, .context-menu-root {
    z-index: 10000 !important;
}

#context-menu-layer {
    position: fixed !important;
}

.context-menu-list a.context-menu-item.icon {
    background-position: 4px 4px;
}

.context-menu-list a.context-menu-item {
    border: 1px solid #F2F2F2;
    padding: 4px 2px 4px 24px;
}

.context-menu-list a.context-menu-item.context-menu-submenu {
    padding-right: 16px;
}

.context-menu-list a.context-menu-item:hover,
.context-menu-list a.context-menu-item:active,
.context-menu-list a.context-menu-item:focus {
    background-color: #91C9F7;
}

.context-menu-list {
    background-color: #F2F2F2;
    border: 1px solid #cccccc;
}

.context_menu_self > span,
.context_menu_blank > span {
    border-bottom: 1px solid #b4d0ee;
}

.context_menu_self:hover > span,
.context_menu_blank:hover > span {
    border-bottom: 1px solid #94b0ce;
}

.context_menu_blank:before {
    border: 1px solid #a4c0de;
    background-color: #fff;
    content: "";
    display: inline-block;
    height: 4px;
    width: 4px;
    border-radius: 2px;
    margin-top: 14px;
    margin-left: -22px;
    position: absolute;
}

.context-menu-submenu::after {
    border: 4px solid transparent;
    border-left: 4px solid black;
    content: "";
    height: 0;
    width: 0;
    margin-top: 7px;
}

/*/ Context Menu */
.top_login {
    font-size: 12px;
    vertical-align: 5%;
    padding-top: 5px;
    color: #000;
}

.top1 {
    width: 100%;
    height: 39px;
}

.top2 {
    width: 100%;
    height: 20px;
    position: fixed;
    z-index: 500;
    background-color: #f2f2f2 /*DBEAF9*/;
    box-shadow: #333 0 0 3px;
    border-bottom: #999999 solid 1px;
    margin: 0;
    padding: 6px 4px 6px 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.top2::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.top4 {
    top: 31px;
    position: fixed;
    z-index: 10000000;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFD000;
    border: #999999 solid 1px;
    padding: 0 4px;
}

.top3 {
    z-index: 1501;
    margin: 0;
}

.top-left {
    margin-left: 6px;
    white-space: nowrap;
}

.top-right {
    padding-right: 5px;
    margin-left: auto;
    white-space: nowrap;
}

.top-center {
    padding-left: 20px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    flex: 0 1 40%;
}

.top-buttons-wrapper > * {
    margin-left: 6px;
}

.top-buttons-wrapper > *:first-child {
    margin-left: 0;
}

.top-buttons-wrapper {
    display: inline-flex;
    max-height: 20px;
}

.head-name {
    position: sticky;
    left: var(--view-left-offset);
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    max-width: var(--view-panel-width);
    margin: 6px 0 22px;
    z-index: 3;
}

.subhead-sticky {
    position: sticky;
    left: var(--view-left-offset);
    max-width: var(--view-panel-width);
    z-index: 4;
}

.error {
    text-align: center;
    color: red;
    font-weight: bold;
}

/* Табы */
.breadcrumbs {
    margin-left: 34px;
}

.tabs {
    right: 1px;
}

.tabs._hidden:not(:hover),
.breadcrumbs._hidden:not(:hover) {
    transform: translate3d(0, calc(-100% + 10px), 0);
    padding-bottom: 6px;
    transition: opacity 0.5s ease-in-out, transform 0.3s;
    z-index: 10;
}

.tabs, .breadcrumbs {
    position: fixed;
    top: 32px;
    z-index: 501;
    transition: opacity 0.5s ease-in-out, transform 0.3s, z-index 0s 0.25s;
}

.tabs:hover, .tabs:focus,
.breadcrumbs:hover, .breadcrumbs:focus {
    opacity: 1 !important;
}

.breadcrumbs a.no-arrow::after {
    display: none;
}

.breadcrumbs a.no-arrow {
    border-right: 1px solid #999999 !important;
    margin-right: 0;
}

a.unactivetab, a.activetab {
    display: inline-block;
    box-sizing: border-box;
    overflow: hidden;
    height: 26px;
    line-height: 23px;
	padding: 1px 6px 2px;
    text-decoration: none;
    margin-left: 2px;
    vertical-align: bottom;
    max-width: 150px;
    white-space: nowrap;
    position: relative;
    border-style: solid !important;
    transition: border-color ease 0.3s 0s, box-shadow ease 0.3s 0s;
    border-radius: 0 0 8px 8px;
}

.breadcrumbs-mobile, .tabs-mobile {
    display: none;
}

@media only screen and (max-width: 1000px) {
    a.unactivetab:not(._not-hide) {
        display: none;
    }

    .breadcrumbs-mobile {
        margin-left: 32px;
    }

    .tabs-mobile {
        right: 1px;
    }

    .breadcrumbs._has {
        margin-left: 59px;
    }

    .tabs._has {
        right: 32px;
    }

    .breadcrumbs-mobile._has, .tabs-mobile._has {
        display: block;
        position: fixed;
        top: 32px;
        z-index: 501;
    }

}

.tabs a::before, .breadcrumbs a::before {
    background: linear-gradient(to right, rgba(242, 242, 242, 0) 0%, rgba(242, 242, 242, 0.8) 50%, rgba(242, 242, 242, 1) 100%);
    content: "";
    height: 20px;
    left: 130px;
    position: absolute;
    width: 18px;
}

.tabs a.activetab::before, .breadcrumbs a.activetab::before {
    background: linear-gradient(to right, rgba(242, 242, 242, 0) 0%, rgba(242, 242, 242, 0.8) 50%, rgba(242, 242, 242, 1) 100%);
}

.tabs a:hover::before, .breadcrumbs a:hover::before,
.tabs a:focus::before, .breadcrumbs a:focus::before {
    background: linear-gradient(135deg, rgba(245, 247, 251, 0) 0%, rgba(245, 247, 251, 0) 30%, rgba(232, 237, 245, 0.8) 60%, rgba(218, 227, 238, 1) 100%);
}

.tabs a:active::before, .breadcrumbs a:active::before {
    background: linear-gradient(135deg, rgba(244, 247, 252, 0) 0%, rgba(244, 247, 252, 0) 30%, rgba(244, 247, 252, 0.8) 60%, rgba(244, 247, 252, 1) 100%);
}

.tabs a > div, .breadcrumbs a > div {
    display: inline-block;
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
}

.tabs.tabs > a:hover,
.tabs.tabs > a:focus,
.tabs.tabs > a:active,
.breadcrumbs.breadcrumbs > a:hover,
.breadcrumbs.breadcrumbs > a:focus,
.breadcrumbs.breadcrumbs > a:active {
    text-decoration: none;
    border-top: 1px solid #f2f2f2 /*DBEAF9*/;
    border-right: 1px solid #999999;
    border-left: 1px solid #999999;
    background: linear-gradient(to bottom, #f2f2f2, #D7E1ED) no-repeat;
    box-shadow: #333 0 4px 3px -3px;
}

.tabs.tabs > a:active,
.breadcrumbs.breadcrumbs > a:active {
    background: linear-gradient(to bottom, #f2f2f2, #F9FAFD);
}

.breadcrumbs > a:hover, .breadcrumbs > a:focus, .breadcrumbs > a:active {
    border-right: none;
}

a.unactivetab {
    border: 1px solid #999999;
    background-color: #f2f2f2 /*DBEAF9*/;
    box-shadow: #333 0 3px 2px -3px;
}

a.activetab {
    background: white linear-gradient(to bottom, #f2f2f2 /*DBEAF9*/, #ffffff);
    border-top: 1px solid #f2f2f2 /*DBEAF9*/;
    border-right: 1px solid #999999;
    border-left: 1px solid #999999;
    border-bottom: 3px solid #0A84FF;
    box-shadow: #333 0 4px 3px -3px;
}

.breadcrumbs > a {
    border-right: none !important;
    margin-right: 12px;
    position: relative;
}

.breadcrumbs > a:last-child {
    border-right: 1px solid #999999 !important;
}

.breadcrumbs > a:last-child:after {
    display: none;
}

/*noinspection CssFloatPxLength*/
.breadcrumbs > a:after {
    content: "";
    background-color: #f2f2f2 /*DBEAF9*/;
    border: 1px solid transparent;
    border-right-color: #999999;
    border-top-color: #999999;
    margin: 1px -18px 0 -4px;
    position: fixed;
    height: 17.8px;
    transform: rotate(45deg);
    width: 17.8px;
    z-index: -1;
}

.breadcrumbs > a:not(:last-child):not(.no-arrow) {
    border-radius: 0 0 0 8px;
}

.breadcrumbs > a:hover:after, .breadcrumbs a:focus:after {
    background: linear-gradient(135deg, #f2f2f2, #D7E1ED);
}

.breadcrumbs > a:active:after {
    background: #F1F5FB linear-gradient(135deg, #f2f2f2, #F9FAFD);
}

.breadcrumbs > a:last-child:after {
    content: "";
    margin: 0;
}

/*/ Табы */