body {
    background-color: #f8f9fa!important;
    overflow: hidden;
    /* font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji; */
}

.header {
    z-index: 9999 !important;
}

.header .header__menu--buttons {
    display: none;
}

.footer {
    display: none;
}

.center-block {
    margin: 0;
    max-width: 100% !important;
    padding: 1rem 26px !important;
}

.b24-widget-button-wrapper {
    display: none !important;
}

:root {
    --highlight-button-hover: #d8dadc;
    --main-color: rgb(0, 86, 255);
}

.dashed {
    border-bottom: 1px dotted;
    position: relative;
}

.comment-click-event {
    cursor: pointer;
    background: #fef2cd;
}

.comm-active {
    background: #fcbc03;
}

a:hover {
    text-decoration: none;
}

button.fr-active i{
    color: #0098f7;
    /* transition: all 500ms ease; */
}

button.active i{
    color: #0098f7;
    /* transition: all 500ms ease; */
}

/* NAVBAR START*/
.navbar {
    width: 100%;
    height: 60px;
    background: #efefef;
    position: relative;
    z-index: 999;
    border-bottom: 1px solid #dee2e6!important;
    padding: 0px;
    display: block;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.navbar-item:last-child {
    padding-right: 10px;
    padding-left: 0.5rem!important;
}


.navbar-item__back {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 90px;
    cursor: pointer;
    transition: background 300ms ease;
    border-right: 1px solid #dee2e6;
    text-decoration: none;
}

.navbar-back__btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 2rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
    outline: none;
}

.mobile-navbar {
    display: none;
}

.navbar-item__menu {
    max-width: 188px;
    border-right: 1px solid #dee2e6;
    height: 100%;
    /* padding: 0.5rem 1rem; */
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    transition: background 500ms ease;
    position: relative;
    
}
.navbar-menu__btn {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
    color: #6c757d;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.9rem 0.8rem;
    font-size: 14px;
    line-height: 1.5;
    /* border-radius: 2rem; */
    position: relative;
    transition: background 500ms ease;
    /* transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; */
}

.navbar-menu__btn span {
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}



.navbar-menu__arrow {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 500ms ease;
}

.navbar-item__menu.active .navbar-menu__arrow {
    transform: rotateX(180deg); 
}


/* NAVBAR END */


/* ASIDE START */
.aside {
    height: calc(100% - 60px);
    width: 70px;
    background: white;
    position: fixed;
    left: 0;
    border-right: 1px solid #dee2e6!important;
    z-index: 99;
}


.aside-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    width: 100%;
}

.aside-item {
    width: 100%;
    padding-top: 1rem;
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
    justify-content: center;
    transition: background 500ms ease;
    cursor: pointer;
}

.aside-item.no-border {
    border: none;
}

.aside-item__btn {
    height: 32px;
    width: 32px;
    background: #dadada;
    color: white;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.25rem;
    transition: background 300ms ease;
    cursor: pointer;
}

.aside-item__btn:hover {
    background: #b3b3b3;
}

.aside-item.active .aside-item__btn {
    /* background: #febd35; */
    background: rgb(6, 102, 235);
}

.aside-item.active .aside-item__btn:hover {
    /* background: rgba(222,137,7,.98); */
    background: rgb(4, 75, 170);
}

.aside-text {
    font-size: 10px;
    padding-bottom: 0.25rem;
}

.aside-review {
    width: 100%;
    /* margin-top: auto; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    /* position: absolute;
    bottom: 0; */
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    transition: background 300ms ease;

}

.aside-review__btn {
    height: 32px;
    width: 32px;
    margin-right: auto;
    margin-left: auto;
    cursor: pointer;
    padding: 0.25rem;
    color: #fff;
    background-color: #0078dc;
    border-color: #0078dc;
    border-radius: 50%;
    transition: background 300ms ease, border 300ms ease;
}

.aside-review__btn:hover {
    background-color: #0063b6;
    border-color: #005ca9;
}

.aside-block__wrapper {
    width: 100%;
}

.aside-block__wrapper:last-child {
    margin-top: auto;
}

.aside-doc__info {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* LAWYER START */
.lawyer-img {
    width: 42px;
    height: 42px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
}
.lawyer-name {
    font-size: 80%;
    font-weight: 400;
    text-align: center;
}

.lawyer-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #191C1F;
    text-decoration: none;
}
.lawyer-block:hover {
    color: #191C1F;
    text-decoration: none;
}
/* LAWYER END */

/* ASIDE END */


.aside-item:hover,
.aside-review:hover {
    background: #ebebeb;
}
.aside-item.no-hover {
    background: none;
    cursor: auto;
}

.navbar-item__back:hover {
    text-decoration: none;
}


.navbar-back__btn .icon-arrow , 
.small-text,
.doc-name,
.doc-date {    
    color: #6c757d;
}

.doc-name {
    margin-right: 1rem;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 14px;
    white-space: nowrap;
}
.doc-date {
    font-size: 13px;
}

.header__signup {
    color: rgb(255, 255, 255);
    background: rgb(25, 28, 31);
}

.log_btn:hover {
    color: rgb(255, 255, 255);
    background: #007BFF;
}
.log_btn {
    --button-shadow-focus: 0 0 0 2px #fff,0 0 0 4px #82b2f5;
    box-sizing: border-box;
    border: none;
    text-decoration: none;
    outline: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 10px;
    font-family: var(--primary-ff);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.00625em;
    transition: all 0.3s ease;
    text-align: center;
}  


.questionnaire,
.doc-content,
.doc-info  {
    max-width: 525px;
    width: 0%;
    /* box-shadow: 4px 0 25px rgba(0,0,0,.28074); */
    /* box-shadow: 1px 0 1px rgba(0,0,0,.28074); */
    /* height: calc(100vh - 60px); */
    height: calc(100vh - 83px);
    /* height: calc(100vh - 35px); */
    position: absolute;
    /* position: relative; */
    z-index: 4;
    background: white;
    /* z-index: 99; */
    /* top: 0; */
    right: 0;
    bottom: 0;
    /* left: 70px; */
    box-shadow: rgba(47, 43, 61, 0.14) 0px 2px 6px, transparent 0px 0px, transparent 0px 0px;
    display: none;
}

.questionnaire {
    display: none;
    transition: transform 0.5s ease, right 0.5s ease;
    transform: translateX(100%);
    min-width: 320px;
}

.questionnaire.active {
    transform: translateX(0);
}


@media (min-width: 767px) {
    .doc-content,
    .doc-info  {
    min-width: 320px;
}
}
@media(max-width: 1400px){
    .questionnaire  {
        min-width: 260px;
        max-width: 360px;
    }
}

/* .questionnaire.active, */
.doc-content.active,
.doc-info.active {
    display: block;
    transition: all 0.5s ease;
    overflow: hidden;
}

.retractable__blocks-content {
    height: calc(100% - 55px);
}

.retractable__blocks-content label {
    margin-bottom: 0px;
}

.retractable__blocks-content .card:last-child .card-body{
    padding-bottom: 0px;
}
.retractable__blocks-content .card:last-child .card-body .form-group:last-child{
    /* margin-bottom: 0px; */
    margin-bottom: 61px;
}

.popup-block__header {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    /* margin-bottom: 1.5rem; */
    padding: 0 25px;
}

.popup-header__title {
    color: #6c757d;
    margin-left: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.popup-block__main {
    /* padding: 20px 25px; */
}


.popup-block__main-wrapper {
    height: calc(100% - (73px + 1.5rem));
    padding: 0px 5px;
}




.popup-back__btn {
    background-color: rgba(98,114,136,.1);
    width: 30px;
    height: 30px;
    padding: 0.25rem 0.65rem;
    margin-right: 0.5rem;
    cursor: pointer;
    margin-left: auto!important;
    box-shadow: none;
    border-radius: 50%;
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-back__btn .back-icon {
    color: #627282;
}


/* REVIEW START */

.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    z-index: 999999;
    display: none;
}

.modal-dialog__bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: .5;
    display: none;
}

.modal-dialog.active  ,
.modal-dialog__bg.active  {
    display: block;
}


.review-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
    min-height: 260px;
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    /* border-bottom: 1px solid #dee2e6; */
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.review-header__back {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
    cursor: pointer;
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

.review-main {
    padding: 0 2rem;
    position: relative;
    flex: 1 1 auto;
}


.review-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    /* border-top: 1px solid #dee2e6; */
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}


/* REVIEW END */



/* EDIT DOCUMENT START */

.edit-document__btn-wrapper {
    position: absolute;
    right: 50px;
    bottom: 60px;
    display: flex;
    align-items: flex-end;
    /* justify-content: center; */
    transition: all 500ms ease;
}


.edit-document__btn {
    /* padding: 1rem 2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 2rem;
    color: #fff;
    background-color: #0078dc;
    border-color: #0078dc;
    background: rgb(25, 28, 31);
    border-color:rgb(25, 28, 31); */
    transition: all 500ms ease;
}

.edit-document__btn:hover {
    box-shadow: 0 3px 9px rgba(47, 43, 61,.15),0 0 transparent,0 0 transparent;
}

.edit-document__btn.red {
    background-color: #990000;
    /* background-color: #CC0000;
    border-color: #CC0000; */
}

.edit-document__btn {
    /* background: #0062ff; */
    position: relative;
    z-index: 999;
    line-height: 1.5;
    /* background: linear-gradient(72.47deg,rgb(0,86,255) 22.16%,rgba(0,86,255,.7) 76.47%); */
    background-color: rgb( 0,86,255);
    color: white;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    outline: none;
    border: none;
    cursor: pointer;
}


.documents-list__wrapper {
    display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    z-index: 1;
    border-top: 1px solid #dee2e6!important;
    height: 100px;
}



/* EDIT DOCUMENT END */


/* Document info START */

.docinfo__main-lawyer {
    display: flex;
    gap: 20px;
}

.docinfo__main-title {
    font-size: 0.90667em;
    color: #999999;
    line-height: calc(1em + 7px);
}

.docinfo__main-label  {
    font-size: 0.86667em;
    line-height: calc(1em + 7px);
    color: #999999;
}
.docinfo-properties__block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 65%;
}

.docinfo__main-values {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.docinfo__main-link {
    text-decoration: none;
    color: #333;
}

.docinfo__main-link:hover {
    text-decoration: none;
}

.docinfo-lawyer__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    max-height: 160px;
}

.docinfo-lawyer__img {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* height: 100%;
    width: 100%; */
    height: 160px;
    max-width: 160px;
    /* flex-shrink: 0; */
    width: 100%;
}
/* Document info END */


.navbar-menu__btn:hover,
.navbar-item__back:hover,
.window-button:hover {
    background: var(--highlight-button-hover);
    cursor: pointer;
}

.window-button:hover  {
    color: #6c757d;
}



.document-main__wrapper {
    height: calc(100vh - 70px) !important;
    /* height: calc(100vh - 35px) !important; */
    position: relative;
}


.window-buttons {
    display: flex;
    height: 100%;
}

.window-button {
    color: #6c757d;
    font-size: 14px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 135px;
    /* max-width: 135px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    height: 100%;
    border-right: 1px solid #dee2e6;
    border-bottom: 0px;
    transition: all 500ms ease;
}
.window-button:first-child {
    border-left: 1px solid #cbcbcb;
}
.window-button:last-child {
    border-left: 0px;
}

.window-button.active {
 color: black;    
 background-color: white;
}

.navbar {
    height: 40px;
    border-bottom:none !important;
}

.navbar-item__back {
    flex-direction: row;
}


.login-btn {
    display: flex;
    background-color: hsla(0,0%,100%,.15);
    padding: 6px 5px 7px 7px;
    border-radius: 4px;
    align-items: center;
    transition: background-color .3s;
    cursor: pointer;
    background: var(--main-color);
}

.login-btn .login-btn__text {
    color: white;
    margin-right: 5px;
    letter-spacing: -.02em;
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
}

.main__document-element  {
    display: flex;
    height: 100%;
    background: rgb(246,247,248) !important;
}

.fr-toolbar {
    /* background: var(--main-color); */
    z-index: 10;
    box-shadow: 0 2px 6px rgba(47, 43, 61,.14), 0 0 transparent, 0 0 transparent;
}

.fr-element {
    box-shadow: 0 2px 6px rgba(47, 43, 61,.14), 0 0 transparent, 0 0 transparent;
    border-radius: 6px !important;
}

.fr-wrapper {
    background: rgb(246,247,248) !important;
    width: 100%;
    left: auto !important;
}

.fr-wrapper::-webkit-scrollbar {
    width: 0px !important;
}

.fr-separator.fr-hs {
    height: 0px !important;
}

/* Комментарии документа старт */

    .document__comments {
        position: absolute;
        z-index: 2;
        /* right: -400px; */
        top: 52px;
        /* padding-right: 25px; */
        padding-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        transition: all 500ms ease;
        display: none;
    }

    .document__comments.active {
        display: flex;
    }

    .document__comment {
        max-width: 330px;
        width: 100%;
        background: white;
        padding: 12px 12px 10px;
        border-radius: 6px;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(47, 43, 61,.14), 0 0 transparent, 0 0 transparent;
        font-family: Google Sans,Roboto,sans-serif;
        transition: all 500ms ease;
    }

    .document__comment-info {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        color: white;
    }

    .document__comment-logo__icon {
        width: 34px;
        display: flex;
        height: 34px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 14px;
    }

    .document__comment.active {
        /* box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 8px 3px rgba(0,0,0,.15); */
        transform: translate(-30px, 15px);
        margin-bottom: 20px;
    }

    .document__comment-name {
        font-size: 14px;
        font-weight: 500;
        letter-spacing:0.25px;
        line-height: 20px;
        color: rgb(0,86,255);
    }

    .document__comment-date {
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        color: rgb(68, 71, 70);
        opacity: .4;
    }

    .document__comment-main {
        padding: 3px 21px 3px 5px;
    }

    .documment__comment-text {
        font-size: 14px;
        white-space: normal;
        margin: 0;
        letter-spacing: 0.25px;
        overflow-wrap: break-word;
    }

    .document-control-buttons {
        display: flex;
        flex-direction: column;
        position: absolute;
        bottom: 25px;
        left: 35px;
        z-index: 5;
        gap: 15px;
        transition: background 500ms ease, bottom 500ms ease;
    }

    .document-control-btn {
        /* position: absolute;
        left: 0;
        z-index: 2;
        top: 82px;
        left: 25px; */
        transition: all 500ms ease;
    }

    .document-control-buttons .document-control-btn {
        position: relative;
    }

    .document-comments-btn.hidden {
        left: -50px;
    }

    .document-control-btn {
        display: flex;
        background: #dfe5eb;
        border-radius: 6px;
        align-items: center;
        justify-content: center;
        padding-right: 15px;
        cursor: pointer;
    }

    .document-control-btn:hover {
        background: #dadada;
    }

    .document-control-btn-icon {
        /* background: #dfe5eb; */
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 500ms ease;
    }
/* 
    div[data-button="need_auth"]:hover+.document-control-btn-popup-block   {
        opacity: 1;
    }
    
    
    .document-control-btn-popup-block {
        position: absolute;
        top: -130%;
        left: 100%;
        width: 150px;
        background: rgba(47, 43, 61, 0.68);
        color: white;
        padding: 6px;
        border-radius: 9px;
        opacity: 0;
        transition: all 300ms ease;
        font-weight: 500;
        line-height: 18px;
    } */

    /* .document-control-btn-icon:hover {
        background: #dadada;
    } */


    .document__popup-comment {
        position: absolute;
        z-index: 9999;
        background: white;
        border-radius: 6px;
        box-shadow: 0 10px 16px 4px rgba(0,0,0,.2);
        display: none;
    }

    .document__popup-comment__content {
        overflow-y: auto;
        padding: 5px 10px;
        max-width: 250px;
        max-height: 90px;
    }

    .document__popup-comment.active {
        display: block;
    }

    .document__popup-comment::before {
        content: "";
        display: block;
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border: 5px solid transparent;
        border-top-color: #fff;
    }
    
    .document__popup-comment__name {
        font-size: 13px;
        font-weight: 500;
        line-height: 20px;
        
    }
    
    .document__popup-comment__text {
        font-size: 13px;
        margin-bottom: 0px;
    }
/* Комментарии документа конец */



@media screen and (min-width: 768px) {
    .login-btn {
        padding: 2px 8px 3px 10px;
    }
}

.docs-form-list-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8ebee;
    position: absolute;
    right: 30px;
    z-index: 4;
    top: 69px;
    cursor: pointer;
    padding: 11px;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.docs-form-list-button-icon {
    width: 100%;
    height: 100%;
}

#document {
    background: rgb(246,247,248);
}


#document {
    background: rgb(246,247,248);
}


.questionnaire,
.doc-content,
.doc-info  {
    height: calc(100vh - 120px) !important;
	/* top: calc(69px + 39px + 40px); */
}

.content {
	height: calc(100vh - 69px - 100px);
}

/* #document .fr-wrapper {
	height: calc(100% - 50px - 70px) !important;
} */


/* MEDIA START */

@media(max-width:992px){
    .fr-wrapper {
        padding: 15px 15px 30px !important;
    }
}

@media(max-width:930px){
    .doc-content, .doc-info {
        position: fixed;
        z-index: 9998;
        min-width: 320px;
    }
    .edit-document__btn-wrapper{
        z-index: 1;
    }
}

@media(max-width: 840px){
    .modal-dialog {
        padding: 25px;
    }
}

@media(max-width: 768px){
    .questionnaire {
        max-width: 100%;
        width: 100% !important;
        position: fixed;
        height: 210px !important;
        transform: translateY(100%);
        box-shadow: 0 -1px 3px rgba(47, 43, 61, 0.14), 0 0 transparent, 0 0 transparent;
    }

    .questionnaire.active {
        transform: translateY(0);
    }

    .document-control-buttons {
        bottom: calc(210px + 30px);
        /* bottom: 240px; */
        left: 25px;
    }

    .document__comments {
        display: none !important;
    }

    .questionnaire.active ~ .document-main__wrapper .fr-wrapper {
        height: calc(100% - 50px - 200px) !important;
    }

    .questionnaire.active ~ .document-main__wrapper.fr-fullscreen-wrapper .fr-wrapper{
        height: calc(100% - 50px) !important;
    }
    
    .dashed {
        display: inline-block;
    }

}


@media(max-width: 576px){
    .navbar {
        display: none;
    }
    .aside {
        display: none;
    }
    .mobile-navbar {
        display: block;
    }
    .aside-item {
        text-align: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0px;
        border-bottom: none;
        height: 100%;
    }
    .aside-review {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0px;
        border-bottom: none;
    }

    .doc-content,
    .doc-info {
        max-width: 460px;
        left: 0px;
    } 

    .modal-dialog {
        padding: 20px;
        max-width: 500px;
        width: 100%;
    }
}



@media(max-width:440px){
    .navbar-item:nth-child(3) {
        display: none;
    }
}

/* MEDIA END */

#accordion::-webkit-scrollbar {
    width: 5px !important;
    height: 8px !important;
    background: white;
    border-radius: 50% !important;
}

#accordion::-webkit-scrollbar-thumb {
    background-color: red;
    border-radius: 10px;
}

@media(max-width: 1280px){
    .document-main__wrapper {
        position: relative;
    }
    .wrapper {
        /* overflow-x: scroll; */
        overflow-x: hidden;
        overflow-y: hidden;
    }
}


@media(max-width:755px){
    .popup-block__header {
        align-items: center;
    }
}

.popup-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-tabs__row {
    display: flex;
    gap: 10px;
}

.popup-tab {
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 400;
    background: rgb(246,247,248);
    height: 38px;
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    /* transition: all 500ms ease; */
}

.popup-tab.active {
    background: linear-gradient(72.47deg,rgb(0,86,255) 22.16%,rgba(0,86,255,.7) 76.47%);
    color: white;
}

.popup-tab__wrapper {
    width: 100%;
    position: relative;
}

.popup-tab__dropdown {
    list-style: none;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(47, 43, 61,.14), 0 0 transparent, 0 0 transparent;
    /* margin-block-start: 1.0625rem!important; */
    position: absolute;
    width: 100%;
    z-index: -999;
    padding: 5px 0;
    opacity: 0;
    transition: opacity 300ms ease, z-index 0ms ;
}

.popup-tab__dropdown-link {
    border-radius: 0.375rem;
    margin-block: 0.25rem;
    margin-inline: 0.5rem;
    padding-block: 0.485rem;
    padding-inline: 0.7rem;
    color: inherit;
    transition: all 500ms ease;
    display: block;
}


.popup-tab__dropdown-link:hover {
    background-color: rgb(246,247,248)!important;
}

.popup-tab__dropdown-link.active {
    color: #0056b3;
    background-color: rgb(246,247,248);
}

.documents-tab-list:hover>.popup-tab__dropdown{
    opacity: 1;
    z-index: 99;
}
.popup-tab__dropdown:hover {
    opacity: 1;
    z-index: 99;
}

.retractable-content {
    display: none;
}

.retractable-content.active {
    display: block;
}

.edit-document__btn-wrapper {
    display: none;
}

/* Document modal tabs start */

    .document__modal-tabs {
        display: flex;
        flex-direction: column;
        position: absolute;
        bottom: 50px;
        left: 0;
        z-index: 3;
        gap: 15px;
    }
    
    .document__modal-tab {
        outline: none;
        border: none;
        background: none;
        width: 200px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* position: fixed;
        right: -135px;
        bottom: 55%; */
        /* background: rgb(0,86,255); */
        background: linear-gradient(72.47deg,rgb(0,86,255) 22.16%,rgba(0,86,255,.7) 76.47%);
        color: #fff;
        /* border-top-right-radius: 20px; */
        /* border-bottom-right-radius: 20px; */
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
        /* padding-left: 70px; */
        font-size: 18px;
        transition: all 0.5s ease-in-out;
        /* box-shadow: 0 0 8px rgba(0,0,0,0.6); */
        padding-right: 15px;
        padding-left: 10px;
        gap: 13px;
        position: relative;
        left: -155px;
        transition: all 350ms ease;
    }

    .document__modal-tab:hover {
        left: 0px;
    }

    .document__modal-tab__text {
        width: 100%;
    }

/* Document modal tabs end */

/* Document loader start */

    .document-loader__block {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        justify-content: center;
        align-items: center;
        background: white;
        z-index: 9999;
        display: none;
    }

    .document-loader__block.active {
        display: flex;
    }

    .document-loader {
        position: relative;
        width: 55px;
        height: 55px;
        display: block;
        border-radius: 50%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        border: 3px solid transparent;
        z-index: 9999;
    }

    .document-loader .effects {
        -webkit-transition: all .3s ease;
        transition: all .3s ease;
    }

    .document-loader .effect-1 {
        position: absolute;
        width: 100%;
        height: 100%;
        border: 3px solid transparent;
        border-left: 3px solid rgba(31,116,255,1);
        border-radius: 50%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-animation: rotate 1s ease infinite;
        animation: rotate 1s ease infinite;
    }

    .document-loader .effect-2 {
        position: absolute;
        width: 100%;
        height: 100%;
        border: 3px solid transparent;
        border-left: 3px solid rgba(31,116,255,1);
        border-radius: 50%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-animation: rotateOpacity 1s ease infinite .1s;
        animation: rotateOpacity 1s ease infinite .1s;
    }

    .document-loader .effect-3 {
        position: absolute;
        width: 100%;
        height: 100%;
        border: 3px solid transparent;
        border-left: 3px solid rgba(31,116,255,1);
        -webkit-animation: rotateOpacity 1s ease infinite .2s;
        animation: rotateOpacity 1s ease infinite .2s;
        border-radius: 50%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }


    @keyframes rotateOpacity {
        0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
            opacity: .1;
        }
        100% {
            -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
            opacity: 1;
        }
    }

    @keyframes rotate {
        0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
        }
        100% {
            -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
        }
    }

/* Document loader end */


/* Froala styles */

/* .document-main__wrapper.fr-fullscreen-wrapper .fr-wrapper{
    width: 100% !important;
} */

.blocks.fr-fullscreen-wrapper .questionnaire {
    z-index: 2147483641 !important;
    height: calc(100vh - 120px + 70px) !important;
}

.document-main__wrapper.fr-fullscreen-wrapper .document__comments{
    z-index: 2147483641 !important;
    top: 13px !important; 
    padding-top: 0px !important;
}

.document-main__wrapper.fr-fullscreen-wrapper .document-control-buttons {
    z-index: 2147483641 !important;
}

.fr-element {
    background: white !important;
}

.fr-element span {
    font-size: 12pt !important;
}

.fr-element p {
    line-height: 1.3 !important;
}

.fr-toolbar {
    border-radius: 0px !important;
}

.fr-toolbar .fr-newline {
    height: 0px !important;
}

.fr-box.fr-basic .fr-element {
    overflow: hidden !important;
}

.fr-box .fr-element table{
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.fr-toolbar .fr-btn-grp {
    margin: 0 !important;
}
.fr-btn-grp.fr-float-left:first-child {
    margin-left: 12px !important;
}

.fr-btn-grp.fr-float-right {
    margin-right: 17px !important;
}

.fr-more-toolbar.position-relative{
    position: absolute !important;
}


button[data-cmd="comments_btn"],
button[data-cmd="list"] {
    transition: all 0ms !important;
    -webkit-transition: all 0ms !important;
}

button[data-cmd="comments_btn"]:disabled i,
button[data-cmd="list"]:disabled i {
    color: #c1c1c1 !important;
}
/* 
.fr-element ol>li:before { 
    content: counters(item, ".") ". "; 
    counter-increment: item;
} */


button[data-cmd="mode_btn"]:hover {
    background: inherit !important;
}

.mode_btn {
    padding: 0 20px;
    width: 100%;
    height: calc(100% - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    position: relative;
    border: 1px solid rgb(0,86,255);
    color: rgb(0,86,255);
    transition: all 500ms ease;
}

.mode_btn.active {
    background-color: rgb(0,86,255);
    color: white;
    border: none;
}

.v-btn__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    background-color: #000;
    border-radius: inherit;
    opacity: 0;

}
.v-btn__content {
    grid-area: content;
    justify-content: center;
    white-space: nowrap;
    align-items: center;
    display: flex;
    transition: transform,opacity .2s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}

button[data-cmd="mode_btn"]:hover {
    cursor: auto !important;
}

.need-auth-modal-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -9999;
}

.need-auth-modal-window.active {
    z-index: 9999;
}

.need-auth-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    /* background-color: #000; */
    background: #0000008a;
    opacity: 0;
    transition: all 300ms ease;
}

.need-auth-modal-bg.active {
    opacity: 1;
}


.need-auth__block {
    position: relative;
    opacity: 0;
    transition: all 300ms ease;
    background: white; 
    border-radius: 6px;  
}

.need-auth__block-wrapper {
    padding: 1rem;
    max-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
}

.need-auth__block-btn {
    background: none;
    outline: none;
    border: none;
    background: linear-gradient(72.47deg, rgb(0,86,255) 22.16%, rgba(0,86,255, 0.7) 76.47%) !important;
    color: white;
    border-radius: 9px;
    padding: 0.7rem;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 500ms ease;
}

.need-auth__block-btn:hover {
    color: white;
}

.need-auth__block-title {
    color: #1a1d21;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    font-size: 32px;
    text-align: center;
}

.need-auth__block-description {
    font-size: 17px;
    line-height: 28px;
    font-weight: 500;
    text-align: center;
}



/* .document-control-btn-popup-block::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; 
    width: 0;
    height: 0;
    border-right: 10px solid transparent; 
    border-top: 10px solid transparent; 
    border-left: 10px solid rgba(47, 43, 61, 0.68); 
  }
   */

.document-control-btn-text {
    margin: 0px;
    text-align: center;
    font-size: 14px;
}


.d-block {
    display: block;
}

.questionnaire.active.d-block{
	top:28%;
}
.header-directions-menu.flexible-menu{
	
}