*:focus,
*:active {
    box-shadow: none !important;
    outline: none;
}
.custom-background {
    display: block;
    opacity: 0.7;
    background-size: cover;
    background-attachment: fixed;
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
}
.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.navbar-light .navbar-nav .nav-link {
    padding-left: 10px;
}

.navbar-light .navbar-nav .nav-link:not(.text-danger) {
    color: #8d6e63;
}

.navbar-light .navbar-nav .nav-link.active {
    color: #000000;
}

nav.navbar ul.nav a.btn.btn-danger:hover {
    color: #000 !important;
}

nav.navbar button.navbar-toggler {
    outline: 0;
    border: 0;
}

ul {
    list-style: none;
}

.c {
    display: block !important;
}

.c:after {
    content: '';
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
    color: transparent;
    font-size: 0;
}

body>.progress {
    display: none;
    position: fixed;
    top: 0;
    z-index: 10001;
    width: 100%;
}

.progress .progress-bar {
    transition: all 500ms ease;
}

label {
    margin-bottom: 0;
}

.alerts {
    position: fixed;
    top: 42px;
    right: 0;
    left: 0;
    transition: all 300ms ease;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    z-index: -1;
}

.alerts.show {
    z-index: 10001;
    visibility: visible;
    opacity: 1;
}

.alerts>* {
    display: inline-block;
    vertical-align: middle;
    max-width: 60%;
    margin: 10px;
}

.boxshadow-warning {
    box-shadow: 0px 4px 10px #856404;
}

.boxshadow-info {
    box-shadow: 0px 4px 10px #0c5460;
}

.boxshadow-danger {
    box-shadow: 0px 4px 10px #721c24;
}

.boxshadow-success {
    box-shadow: 0px 4px 10px #155724;
}

.bg-danger-soft {
    background: #f8d7da;
}

.filter-inline.form-control {
    width: auto;
    display: inline-block;
}

.disabled:hover {
    cursor: not-allowed;
}

.form {
    box-shadow: #ccc 0px 0px 10px;
    padding: 20px;
}

/* table-like spans START */
.table-table {
    display: block;
}

.table-table .table-row {
    display: block;
}

.table-table .table-cell {
    display: inline-block;
}

.table-table .table-cell.block {
    display: block;
}

/* table-like spans END */


.loader,
.alternative-loader {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.alternative-loader {
    display: block;
}

.loader img,
.alternative-loader img,
.loader svg,
.alternative-loader svg {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -32px;
}

.loader p,
.alternative-loader p {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    right: 0;
    text-align: center;
    margin-top: 32px;
}

.badge {
	text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

header {
    position: relative;
}

header .nav-item.home img {
    display: block;
    height: 24px;
}

.nav-tabs .nav-item {
    margin-bottom: 0px;
}

.nav-tabs {
    border-bottom: none;
}

.list-group-item label {
    margin: 0;
    display: block;
}

.icon {
    display: block;
    text-align: center;
    font-size: 18px;
}

.form-signin {
    max-width: 500px;
    padding: 15px;
    margin: 0 auto;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}

.form-signin .checkbox {
    font-weight: normal;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.modal.modalwidth .modal-dialog {
    max-width: 85%;
}

.modal.fullscreen .modal-dialog {
    max-width: 100%;
    min-height: 100%;
    margin: 0;
}

.modal.fullscreen .modal-content {
    height: 100vh;
    overflow-y: auto;
}

.modal.fullscreen .modal-body {
    padding: 0;
}


/* custom tooltip START */
.tooltip-holder {
    position: relative;
    width: auto;
}

.tooltip-button {
    background-color: transparent;
    color: #0090ff;
    text-align: center;
    width: 50%;
    transition: all 0.5s;
    cursor: pointer;
    margin: 20px auto;
}

.tooltip-button {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.tooltip-button:after {
    content: '';
    position: absolute;
    opacity: 0;
    top: 5px;
    right: 0px;
    transition: 0.5s;
}

/* .tooltip-button:hover{ padding-right: 24px; padding-left:8px;} */
.tooltip-button:hover+.tooltip-content {
    display: block;
}

.tooltip-button:hover:after {
    opacity: 1;
    right: 10px;
}

.tooltip-content {
    display: none;
    position: absolute;
    font-weight: bold;
    top: 30px;
    right: 0;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    padding: 10px;
    border-radius: 5px;
    z-index: 1;
    text-align: center;
    vertical-align: middle;
    width: auto;
}

tr:nth-child(n+8) .tooltip-content {
    top: auto;
    bottom: 100%;
}

.tooltip-content li {
    text-align: left;
    white-space: pre;
}

/* .tooltip-content:before { content: ''; position: absolute; border-top: 10px solid transparent; border-left: 10px solid transparent; border-bottom: 10px solid #0090ff; border-right: 10px solid transparent; top: -20px; left: 10px;} */
/* custom tooltip END */

/* custom alert START */
.alertoverlay {
    position: fixed;
    z-index: 1051;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.alert-content {
    position: relative;
}

.alert-header {
    text-align: center;
}

#customalert {
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.alert-button1 {
    float: left;
    width: 25%;
}

.alert-button2 {
    float: right;
    width: 25%;
}

.close-alert {
    position: absolute;
    right: 5px;
    font-size: 23px;
    top: 5px;
    color: #505356;
}

.close-alert:hover,
.close-alert:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.alerticon {
    font-size: 100px;
    width: 100%;
    text-align: center;
}

/* custom alert END */

/* custom radio START */
[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

[type="radio"]:checked+label,
[type="radio"]:not(:checked)+label {
    margin-bottom: 20px;
    position: relative;
    display: block;
    padding: 0 0 0 28px;
    cursor: pointer;
    line-height: 20px;
}

[type="radio"]:disabled+label {
    cursor: default !important;
}

[type="radio"]:checked+label:before,
[type="radio"]:not(:checked)+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #d2d2d2;
    border-radius: 100%;
    background: #fff;
}

[type="radio"]:checked+label:after,
[type="radio"]:not(:checked)+label:after {
    content: '';
    width: 12px;
    height: 12px;
    background: #8d6e63;
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

[type="radio"]:not(:checked)+label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

[type="radio"]:checked+label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

[type="radio"]:checked+label.test-answer:after,
[type="radio"]:not(:checked)+label.test-answer:after {
    top: 13px;
}

/* custom radio END */

/* custom checkbox START */
input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]+label {
    line-height: 20px;
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input[type="checkbox"]:disabled+label {
    cursor: default;
}

input[type="checkbox"]+label:last-child {
    margin-bottom: 0;
}

input[type="checkbox"]+label:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #8d6e63;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -10px;
    -webkit-transition: all .12s, border-color .08s;
    transition: all .12s, border-color .08s;
}

input[type="checkbox"]:checked+label:before {
    width: 10px;
    left: 5px;
    border-radius: 0;
    border: 2px solid #0053ad;
    opacity: 1;
    border-top-color: transparent;
    border-left-color: transparent;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* custom checkbox END */


/* floating label with input START */
.float-label {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control-placeholder {
    position: absolute;
    top: 0;
    padding: 7px 0 0 13px;
    transition: all 200ms;
    opacity: 0.8;
    cursor: inherit;
}

select+.form-control-placeholder {
    cursor: default;
    pointer-events: none;
}

.form-control:focus+.form-control-placeholder,
.form-control:not([value=""])+.form-control-placeholder,
.float-label.filled .form-control-placeholder {
    font-size: 75%;
    transform: translate3d(0, -100%, 0);
    opacity: 1;
}

input:required:not(:valid)+.form-control-placeholder,
select:required:not(:valid)+.form-control-placeholder,
textarea:required:not(:valid)+.form-control-placeholder {
    color: #dc3545;
}

input:required:valid+.form-control-placeholder,
select:required:valid+.form-control-placeholder,
textarea:required:valid+.form-control-placeholder {
    color: #28a745;
}

input[type="checkbox"]:required:not(:valid)+label {
    color: #dc3545
}

input[type="checkbox"]:required:valid+label:before {
    border-color: #28a745
}

/* floating label with input END */

.card .card-link .fa {
    font-size: 1.3rem;
}

.card .actions a .fa-times {
    font-size: 18px;
}

.content:not(.trainings-student) .card {
    height: 100%;
}

.btn {
    cursor: pointer;
}

.true {
    font-weight: bold;
}

.custom-file-label::after {
    content: 'Файл...';
}

.custom-file {
    cursor: pointer;
}

label.custom-file-label {
    padding-right: 80px;
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.add_question_to_test {
    writing-mode: vertical-lr;
    text-orientation: upright;
    transition: ease-in 0.3s;
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 100%;
    width: 80px;
    text-align: center;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.add_question_to_test:hover {
    padding: 0 0 0px 20px;
}

.test-answers-action-btns {
    position: absolute;
    right: 0;
    padding: 5px;
    top: 0;
    font-size: 19px;
}

.openanswer_text {
    border: 1px solid #ccc;
    padding: 35px;
    width: 100%;
}

.openanswer_text:before {
    content: "...";
}

.test_form,
.test_preview:not(.see-questions) {
    opacity: 0.6;
    transition: opacity 300ms ease;
}

#add-test-questions {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #EEE;
    border-radius: .3rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid;
}

.test_form:hover,
.test_preview:hover {
    opacity: 1;
}

.test_preview {
    max-height: 646px;
    overflow-y: scroll;
}

.theor_resources {
    position: relative;
    transition: height 300ms ease;
    overflow: hidden;
}

.theor_resources .form-group {
    margin-bottom: 0;
}

.theor_resources .transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.train-add {
    height: 65vh;
}

.train-add .list-group {
    max-height: 45vh;
}

.train-add input[type="checkbox"]+label {
    margin-bottom: 0;
}

.modal-open .modal {
    background: rgba(0, 0, 0, 0.5);
}

.fullWidthFrame {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1920px;
    height: 100%;
    max-height: 1080px;
    min-width: 800px;
    min-height: 600px;
    overflow: hidden;
}

.fullWidthFrame > * {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 110%;
    height: 100%;
    left: -5%;
}
.fullWidthFrame.material-type-video > * { left: 0; width: 100%; }

.datetimepicker td,
.datetimepicker th {
    width: 40px;
    height: 30px;
}

.datetimepicker .datetimepicker-hours td,
.datetimepicker .datetimepicker-minutes td {
    width: 280px;
}

.content.fixedPages {
    padding-bottom: 40px;
}

.content.fixedPages .pages {
    position: fixed;
    bottom: 2%;
    right: 2%;
    border-radius: .25rem;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
    box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
}

.content.fixedPages .pages ul {
    margin-bottom: 0;
}

.trainings-student .nav-tabs .nav-item.show .nav-link,
.trainings-student .nav-tabs .nav-link.active,
.trainings-student .nav-tabs {
    border: none;
}

.bg-danger-light {
    background-color: #f8d7da;
}

.bg-warning-light {
    background-color: #fff3cd;
}

.bg-success-light {
    background-color: #d4edda;
}

.bg-info-light {
    background-color: #d1ecf1;
}

/* CHAT */
.inbox_materials {
    border-top: 2px solid #c4c4c4;
    padding: 15px 0 0px 0;
    height: 45vh;
    overflow-y: scroll;
}


.inbox_msg {
    border: 1px solid #c4c4c4;
    clear: both;
    overflow: hidden;
    width: 100%;
}


.chat_people {
    overflow: hidden;
    clear: both;
}

.chat_list:not(:last-child) {
    border-bottom: 1px solid #c4c4c4;
}

.inbox_chat {
    padding: 15px 0 0px 0;
    height: 33.2vh;
    overflow-y: scroll;
}

.incoming_msg_msg {
    vertical-align: top;
    width: 100%;
}

.time_date {
    color: #747474;
    display: block;
    font-size: 12px;
}

.mesgs {
    border: 3px solid #fff;
}


.input_msg_write {
    position: relative;
}

.msg_send_btn {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
}

.msg_history {
    height: 70vh;
    padding: 20px;
    overflow-y: auto;
}

a.viewAllFiles {
    transition: all 0.4s;
    position: relative;
}

.inbox_materials a.viewAllFiles:after {
    content: '»';
    position: absolute;
    opacity: 0;
    top: 0px;
    right: -20px;
    transition: 0.5s;
}

.inbox_materials a.viewAllFiles:hover {
    padding-right: 24px;
    padding-left: 8px;
}

.inbox_materials a.viewAllFiles:hover:after {
    opacity: 1;
    right: 10px;
}

/* NOTICES */
.notice {
    border-left: 6px solid #7f7f84;
}

.notice-sm {
    padding: 10px;
    font-size: 80%;
}

.notice-lg {
    padding: 35px;
    font-size: large;
}

.notice-success {
    border-left-color: #28a745;
}

.notice-success>strong {
    color: #28a745;
}

.notice-info {
    border-left-color: #117a8b;
}

.notice-info>strong {
    color: #117a8b;
}

.notice-warning {
    border-left-color: #ffc107;
}

.notice-warning>strong {
    color: #ffc107;
}

.notice-danger {
    border-left-color: #bd2130;
}

.notice-danger>strong {
    color: #bd2130;
}

.trainings-student .accordion .card {
    background-color: #F6F6F6;
    position: relative;
}

.trainings-student .accordion .card i {
    width: 30px;
    text-align: center;
}

.train-period {
    display: none;
    white-space: nowrap;
    position: absolute;
    top: 100%;
}

.trainings-student .status:hover+.train-period {
    display: block;
}

.modal.modalwidth-70 .modal-dialog {
    max-width: 70%;
}
.modal.modalwidth-100 .modal-dialog {
    max-width: 100%;
}

.modal .modal-dialog {
    padding-bottom: 10vh;
}

.train-add [type="radio"]:checked+label,
[type="radio"]:not(:checked)+label,
.theor-add [type="radio"]:checked+label,
[type="radio"]:not(:checked)+label {
    margin-bottom: 0;
}

.trainings-student .accordion .card i {
    margin-bottom: 0;
}

.trainings-student .accordion .card button i {
    transition: all 300ms ease;
}

.trainings-student .accordion .card button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.consultations .clone-me>div {
    width: 100%;
}

.add-consultation,
.remove-consultation {
    cursor: pointer;
}

.add-practice,
.remove-practice {
    cursor: pointer;
}

body {
    min-height: 100vh;
}

header {
    background: #FFF;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
    box-shadow: 0px 0px 5px 0px rgba(50, 50, 50, 0.75);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

body>header {
    z-index: 10;
}

body>header+main {
    padding-top: 45px;
}

.nav-tabs .nav-link.active {
    border-bottom: 0;
}


h1 {
    color: #F7F7F7;
    text-shadow: -1px 0 #8d6e63, 0 1px #8d6e63, 1px 0 #8d6e63, 0 -1px #8d6e63;
}

.media-object {
    margin: 0 2rem 0 0rem;
    height: auto;
    width: 180px;
}

.archived_filter {
    cursor: pointer;
    color: #8d6e63;
    background-color: #ffffff;
    border-color: #ffffff;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.archived_filter:hover {
    color: white;
    background-color: #8d6e63;
}

.accordion.one-child>.card {
    border-radius: .25rem !important;
}

.trainings-print > .print-content { display: block !important; }

.modal-body .card-body {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    padding: 1.25rem;
}

.modal-body .card-body p {
    margin: 0;
}

.modal-body .card-body:last-of-type {
    border-bottom: 0;
}

@media print {

    header,
    .ref-test-resolved-icon,
    .ref-cont .filters,
    .tooltip-holder,
    nav.pages,
    main>*:not(.ref-cont) {
        display: none !important;
    }

    body html * {
        display: none !important;
    }

    body.ref-tests-resolved {
        margin-left: 5rem;
        margin-right: 5rem;
    }

    .ref-communicate-classroom .removeAfterPrint {
        width: 100% !important;
    }
    .ref-communicate-classroom .msg_history {
        overflow-y: unset;
    }

    body:not(.trainings-student, .ref-trainings, .ref-tests-resolved) {
        margin-left: 5rem;
        top: 1.5in;
        left: -1in;
    }

    body.ref-communicate-classroom .msg_history {
        height: auto !important;
    }

    html,
    body {
        height: 99%;
    }
    .print-content {
        display: block !important;
    }

    body.print-tests main { display: none !important; }
	html, body { height: 99%; }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .modal.modalwidth .modal-dialog {
        max-width: 100%;
    }
    .add_question_to_test {
        left: 0;
        right: 0;
        width: 100%;
        position: relative;
        bottom: 0;
        writing-mode: unset;
        top: 100%;
    }
    .fas.fa-arrow-circle-right.h2 {
        transform: rotate(90deg);
    }
    .form-control-placeholder {
        font-size: 14px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    
}