body {
    margin: 0;
}

body * {
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

/* --------------------------------------- */
.header {
    padding: 0 10px;
    background-color: #222;
    margin-bottom: 10px;
}

.header:after {
    content: '';
    clear: both;
    display: block;
}

.header_element {
    float: left;
    color: #9d9d9d;
    font-size: 14px;
    padding: 5px 2px 5px 2px;
    line-height: 17px;
    text-decoration: none;
}

.header_element:hover {
    color: #fff;
    text-decoration: none;
}

.header_element > a {
    text-decoration: none;
}

/* --------------------------------------- */
.document {
    font-size: medium;
    line-height: 1.6;
    word-wrap: break-word;
}

.document img {
    max-width: 99%;
    max-width: calc(100% - 10px);
    height: auto;
    margin: 5px;
}

.document figure img {
    max-width: 95%;
    max-width: calc(100% - 10px);
    height: auto;
    margin: 5px;
}

.document figure {
    text-align: center;
    border: solid 1px #ccc;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin: 10px;
    display: inline-block;
}

.document figure > figcaption {
    text-align: center;
    display: block; /* For IE8 */
}

.document blockquote {
    font-style: italic;
    font-family: Georgia, Times, "Times New Roman", serif;
    font-size: inherit;
    padding: 13px 8px 13px 20px;
    border: 0 solid #ccc;
    border-left-width: 5px;
    display: block;
    margin: 1em 40px 1em 40px;
}

.document hr {
    display: block;
    margin: 0.5em auto 0.5em auto;
    overflow: hidden;
    border: 0;
    border-top: 1px solid #ccc;
}

.document table td {
    padding: 0 5px;
}

/* --------------------------------------- */
.diff-html-changed, .diff-html-added, .diff-html-removed, del, ins {
    padding: 2px;
    margin: 2px;
    display: inline-block;
}

.diff-html-changed:before, .diff-html-added:before, .diff-html-removed:before, del:before, ins:before {
    font-size: 10px;
    font-style: normal;
    font-weight: normal;
}

.diff-html-changed:before {
    content: '[~] ';
    color: #C09853;
}

.diff-html-removed:before, del:before {
    content: '[-] ';
    color: #B94A48;
}

.diff-html-added:before, ins:before {
    content: '[+] ';
    color: #468847;
}

.diff-html-changed {
    background-color: #FCF8E3;
    border: 1px solid #FBEED5;
}

.diff-html-added, ins {
    background-color: #DFF0D8;
    border: 1px solid #D6E9C6;
    text-decoration: none;
}

.diff-html-removed, del {
    background-color: #F2DEDE;
    border: 1px solid #EED3D7;
}

/* --------------------------------------- */

.va-top {
    vertical-align: top !important;
}

.va-bottom {
    vertical-align: bottom !important;
}

.va-middle {
    vertical-align: middle !important;
}

.select2-hide_selected .select2-results__option[aria-selected="true"] {
    display: none;
}

.raters-group-btn {
    padding: 10px;
    width: 100%;
    border: 1px solid #666;
}

.raters-group-body {
    padding: 2px;
    border: 1px solid #666;
    margin-bottom: 3px;
}

.raters-badge {
    position: absolute;
    right: 5px;
    top: 5px;
}

a.rt-del {
    line-height: 30px;
}

.tt-menu {
    max-height: 400px;
    overflow-y: auto;
}

@media screen and (max-width: 480px) {
    #act_form .nav {
        padding-left: 2px;
        padding-right: 2px;
    }

    #act_form .nav li {
        display: block !important;
        width: 100%;
        margin: 0px;
    }

    #act_form .nav li.active {
        border-bottom: 1px solid #ddd !important;
        margin: 0px;
    }
}

.tt-sn-menu {
    width: auto;
}

div.music-player {
    position: fixed;
    z-index: 16;
    background-color: #000000;
    font-size: 14pt;
    cursor: pointer;
    opacity: 0.7;
    margin: 5px;
    display: none;
    right: 20px;
    bottom: 0;
    border-radius: 3px 3px 3px 3px;
    -moz-user-select: none;
    -webkit-user-select: none;
}

div.music-player .music-player-close {
    color: grey;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    margin-right: 3px;
    vertical-align: top;
}

/* --------------------------------------- */

.list_tree {
    padding-right: 20px;
}

.list_tree, .list_tree ul, .list_tree li {
    position: relative;
}

.list_tree ul {
    list-style: none;
    padding-left: 23px;
    margin-bottom: 0;
}

.list_tree.list_tree-h2 ul {
    padding-left: 33px;
}


.list_tree li {
    padding-top: 5px;
    /*padding-bottom: 5px;*/
    list-style: none;
}

.list_tree li::before, .list_tree li::after {
    content: "";
    position: absolute;
    left: -15px; /*смещение от элемента*/
}

.list_tree.list_tree-h2 li::before, .list_tree.list_tree-h2 li::after {
    content: "";
    position: absolute;
    left: -25px; /*смещение от элемента*/
}

.list_tree li::before {
    border-top: 1px solid #acacac;
    top: 17px; /*смещение горизонтальной черты выше ниже*/
    width: 11px; /*ширина горизонтальной полоски*/
    height: 0;
}

.list_tree.list_tree-dot-dash li::before {
    border-top-style: dashed;
}


.list_tree.list_tree-h2 li::before {
    width: 24px; /*ширина горизонтальной полоски*/
}

.list_tree.list_tree-h2 li::before {
    top: 30px; /*смещение горизонтальной черты выше ниже*/
}

.list_tree li::after {
    border-left: 1px solid #acacac;
    height: 100%;
    width: 0;
    top: 0;
}

.list_tree.list_tree-dot-dash li::after {
    border-left-style: dashed;
}

.list_tree ul > li:last-child::after {
    height: 17px; /*смещение вертикальной черты вверх вниз*/
}

.list_tree.list_tree-h2 ul > li:last-child::after {
    height: 30px; /*смещение вертикальной черты вверх вниз*/
}

/* --------------------------------------- */
.drop-zone {
    background: linear-gradient(
            45deg,
            rgba(0, 0, 255, 0.2) 25%,
            rgba(255, 255, 255, 0.2) 25%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(0, 0, 255, 0.2) 50%,
            rgba(0, 0, 255, 0.2) 75%,
            rgba(255, 255, 255, 0.2) 75%,
            rgba(255, 255, 255, 0.2) 100%
    );
    background-size: 40px 40px;
    border: 2px dashed rgba(0, 0, 255, 0.5) !important;
}

/* --------------------------------------- */


.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: 0.5;
}

.hr-text:before {
    content: '';
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}

.hr-text:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;

    padding: 0 0.5em;
    line-height: 1.5em;
    color: #818078;
    background-color: #fcfcfa;
}

/* --------------------------------------- */
.text-overflow-ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

/* --------------------------------------- */
.card-tools {
    max-width: 100%;
}

/* --------------------------------------- */
.card-shell {
    display: flex;
}

.card-shell > .card {
    flex: 1;
}

.card-shell-state {
    background-color: #dddddd;
    color: #ffffff;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-radius: 7px 0 0 7px;
    padding: 5px 2px 5px 3px;

}

.card-shell-state::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f128";
}

.card-shell-state-line {
    background-color: #dddddd;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 7px 0 0 7px;
    padding: 5px 2px 5px 3px;
}

.card-shell-state-line::before {
    content: "";
}


.card-shell-state-accept {
    background-color: #96d990;
    color: #ffffff;
}

.card-shell-state-accept::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f00c";
}

.card-shell-state-decline {
    background-color: #ff8e8e;
    color: #ffffff;
}

.card-shell-state-decline::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f05e";
}

.card-shell-state-auto-step {
    background-color: #35e7ff;
    color: #ffffff;
}

.card-shell-state-auto-step::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0d0";
}

.card-shell-state-decline-step {
    background-color: #ed7474;
    color: #ffffff;
}

.card-shell-state-decline-step::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f714";
}


.card-accept {
    border: 2px solid #96d990 !important;
    border-top: 10px solid #96d990 !important;;
}

.card-decline {
    border: 2px solid #ff8e8e !important;;
    border-top: 10px solid #ff8e8e !important;;
}

.card-border-inform {
    border: 2px solid #ffd68b !important;
    border-top: 10px solid #ffd68b !important;;
}

.card-border-primary {
    border: 2px solid #8ba2ff !important;
    border-top: 10px solid #8ba2ff !important;;
}

.card-border-turquoise {
    border: 2px solid #0efff5 !important;
    border-top: 10px solid #0efff5 !important;;
}

.card-border-success {
    border: 2px solid #42cb4e !important;
    border-top: 10px solid #42cb4e !important;;
}

.card-border-silent {
    border: 2px solid #d3d3d3 !important;
    border-top: 10px solid #d3d3d3 !important;;
}


.badge-my-inform {
    color: #565656;
    background-color: #ffd68b;
}

.badge-my-primary {
    color: #ffffff;
    background-color: #8ba2ff;
}

.badge-my-turquoise {
    color: #565656;
    background-color: #0efff5;
}

.badge-my-silent {
    color: #565656;
    background-color: #d3d3d3;
}

.badge.badge-font-btn-xs {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    white-space: normal;
}

/* ------------ меню ---------------- */

.cmenu-treeview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 4px 4px 4px 4px;
    border-left: 3px solid rgba(0, 123, 255, 0.5);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.nav-sidebar .nav-treeview.cmenu-treeview {
    padding-top: 4px;
    padding-bottom: 4px;
}

.nav-link.cmenu-link {
    display: flex;
    align-items: center;
}

.nav-link.cmenu-link > p {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.nav-link.cmenu-link > .badge {
    flex-shrink: 0;
    margin-left: 5px;
}

.nav-sidebar .nav-link.cmenu-link > i.right {
    position: static;
    flex-shrink: 0;
    margin-left: 5px;
}

.cmenu-treeview > .nav-item > .nav-link {
    border-left: none !important;
}

.cmenu-treeview > .nav-item > .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

.cmenu-treeview .cmenu-treeview {
    margin: 4px 4px 2px 4px;
    border-left-color: rgba(0, 123, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

