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

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

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

.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-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;;
}
