/* Форма добавления файлов в диалогах */

#attachment-form {
    display: none;
}

#attachment-form td {
    padding: 0 15px;
}

#attachment-form .docs-item.file {
    float: none;
}

#attachment-form .attach {
    margin-right: 0;
}

#attachment-form .attach img {
    max-height: 100px;
}

#attachment-form .attach .name {
    float: none;
}


/* Форма добавления файлов в ленте активности */

#docs-form a.button {
    padding: 4px 8px;
    background: #ededed;
    color: #545557;
    font-size: 12px;
    display: inline-block;
    margin-top: 12px;
    float: left;
}

#docs-form a.button:hover {
    background: #414141;
}

#docs-form a.button i {
    color: #AAA;
}

#docs-form .drop-box {
    margin-bottom: 0;
    display: none;
}

.hidn {
    display: none ! important;
}

.attach img {
    max-width: 100%;
}

/* Прикрепленные файлы в ленте активности и документах */

.dialogues-page .attach,
.activity-inner .attach,
.docs-form .attach {
    border: 1px dashed #ccc;
    display: block;
    padding: 5px 10px;
    margin-top: 1rem;
    margin-right: 20px;
    overflow-wrap: break-word;
}

.docs-form .attach {
    margin-right: 0;
}

.dialogues-page .attach .icon, 
.activity-inner .attach .icon,
.docs-form .attach .icon {
    /*padding: 5px 8px;*/
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 5px 0;
    background-color: #0185B5;
    color: #eee;
    float: left;
    width: 28px;
    text-align: center;
}

.activity-inner .attach .folder .name {
    font-weight: bold;
}

.dialogues-page .attach .name,
.activity-inner .attach .name,
.docs-form .attach .name {
    /*float: left;*/
    margin-left: 35px;
    display: block;
}


/* Страница статистики системы документов */

.docs-page .stat .two {
    margin-right: 0.5rem;
    background-color: #999;
    padding: 1px 6px;
    border-radius: 2px;
    color: #fff;
}



/* Мета-информация папки */

.folder_meta_info {
    margin-top: 1rem;
}

.folder_meta_info img {
    display: block;
}

.folder_meta_info .one {
    float: left;
    margin-right: 0.5rem;
}

/* Статусная строка папки */

.docs-page .statusbar,
.docs-page-doc .statusbar {
    border: 1px solid #E3E4E5;
    background-color: #f8f8f8;
    padding: 0.5rem;
    margin-top: 1rem;
    font-size: 12px;
}

.docs-page .statusbar .info .two,
.docs-page-doc .statusbar .info .two {
    margin-right: 0.5rem;
    background-color: #999;
    padding: 2px 6px;
    border-radius: 2px;
    color: #fff;
}

.docs-page .statusbar .tools,
.docs-page-doc .statusbar .tools {
    float: right;
}

.docs-page .statusbar .tools .item,
.docs-page-doc .statusbar .tools .item {
    margin-left: 0.25rem;
}

.docs-page .statusbar .tools .one,
.docs-page-doc .statusbar .tools .one {
    vertical-align: middle;
    margin-right: 0.25rem;
}

.docs-page .statusbar .tools .two,
.docs-page-doc .statusbar .tools .two {
    cursor: pointer;
    background-color: #999;
    padding: 4px 8px;
    border-radius: 2px;
    color: #fff;
    transition-duration: .12s;
    transition-timing-function: ease-out;
}

.docs-page .statusbar .tools .two:hover,
.docs-page-doc .statusbar .tools .two:hover {
    background-color: #414141;
}

.docs-page .statusbar .tools .two a,
.docs-page-doc .statusbar .tools .two a {
    color: #fff;
    outline: none;
}

.docs-page .access_mode {
    margin-top: 1rem;
}

.docs-page .access_mode .one {
    font-weight: bold;
}

/* Страница документа */

.docs-page-doc .content {
    width: 75%;
    float: left;
    box-sizing: border-box;
    padding-right: 1.5rem;
    /*padding-bottom: 1.5rem;*/
}

.docs-page-doc .meta {
    width: 25%;
    float: left;
}

/*.docs-page-doc h2 {
    margin: 0 0 2rem 0;
}*/

.docs-page-doc .content img {
    max-width: 100%;
}

.docs-page-doc .content .doc {
    /*margin: 0 1.5rem 1.5rem 0;*/
    min-height: 15rem;
}

.docs-page-doc .content .doc .file {
    float: left;
    margin: 0 1.5rem 0 0;
}

.docs-page-doc .content .doc .image {
    margin: 0 0 1.5rem 0;
}

.docs-page-doc .content .doc .item {
    border: 1px solid #aaa;
    background-color: #f2f2f2;
    width: 5rem;
    height: 5rem;
    text-align: center;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.docs-page-doc .content .doc .name {
    font-weight: bold;
    margin-bottom: 1rem;
}

.docs-page-doc .content .doc .item i {
    line-height: 5rem;
}

.docs-page-doc .content .doc .mobile {
    display: none;
}

.docs-page-doc .content .name {
    /*font-weight: bold;*/
    /*margin-bottom: 1rem;*/
}


/*.docs-page-doc .content .doc .logo {
    width: 150px;
    height: 150px;
    text-align: center;
    display: block;
}

.docs-page-doc .content .doc .logo i {
    line-height: 150px;
}*/


.docs-page-doc .meta div {
    margin-bottom: 1rem;
}

.docs-page-doc .meta .name,
.docs-page-doc .meta .folder,
.docs-page-doc .meta .group {
    font-weight: bold;
}

.docs-page-doc .meta .date {
    padding: 0.5rem 1rem;
    font-size: 90%;
    background-color: #f2f2f2;
    border-radius: 2px;
    color: #474747;
    display: inline-block;
}

.docs-page-doc .meta .owner .one {
    float: left;
    margin-right: 0.5rem;
}

.docs-page-doc .meta .owner img.avatar {
    border: 1px solid #E7E7E7;
    padding: 3px;
    display: block;
}

.docs-page-doc .meta .prev,
.docs-page-doc .meta .next {
    float: left;
    font-weight: bold;
    margin-right: 1rem;
    margin-top: 1rem;
}




/* Форма загрузки документов */

.drop-box {
    clear: both;
    /*padding: 1em;*/
    margin: 1rem 0;
    border: 3px dashed #eaeaea;
    /*height: 5rem;*/
    /*width: 100%;*/
    transition-duration: .12s;
    transition-timing-function: ease-out;
}

.drop-box.active {
    border: 3px dashed #0185B5;
}

.drop-box p {
    padding-left: 20px;
    line-height: 80px;
    margin: 0;
}

.drop-box input[type="file"] {
    width: 100%;
    height: 5rem;
    /*position: relative;*/
    float: left;
    margin-top: -80px;
    opacity: 0;
    cursor: pointer;
}

.upload-form input[type="text"] {
    width: 80%;
}

.upload-form .button {
    margin-top: 1rem;
    text-align: center;
    /*z-index: 0;*/
}

.link-box {
    display: none;
}

/*.show-link-box {
    border-bottom: 1px dotted;
}*/

.show-link-box:focus {
    outline: none;
}

/* Параметры документа */

.doc-settings {
    padding: 0px 20px;
}

.doc-settings input[type="text"],
.doc-settings textarea {
    width: 100%;
}

.doc-settings textarea {
    min-height: 6rem;
}

/* Создание и настройка папок */

.folder-settings {
    border: 1px solid #E3E4E5;
    padding: 10px 20px;
}

.folder-settings input[type="text"],
.folder-settings textarea {
    width: 80%;
}

.folder-settings textarea {
    min-height: 6rem;
}

.remove-box {
    display: none;
}

/*.folder-settings .trash input[type="text"],
.folder-settings .trash textarea {
    width: 80%;
}
*/


/* Документы */

.docs-page .file {
    float: left;
    width: 8rem;
    height: 8rem;
    border: 1px solid #aaa;
    margin: .5rem 1rem .5rem 0;
    position: relative;
    background-color: #f2f2f2;
    overflow: hidden;
    box-sizing: border-box;
}

.docs-page .file .name {
    display: inline-block;
    background-color: rgba(255,255,255,0.75);
    width: 100%;
    /* max-height: 5.5rem; */
    max-height: 3.2rem;
    text-align: center;
    font-size: 90%;
    position: absolute;
    bottom: 0;
    overflow: hidden;
    word-wrap: break-word;
    line-height: normal;
    color: #545557;
    transition-duration: .12s;
    transition-timing-function: ease-out;
    padding: 0 0.25rem;
    box-sizing: border-box;
}

.docs-page .file:hover .name {
    padding-bottom: 0.5rem;
    max-height: 6rem;
}

.docs-page .file.folder .name {
    font-weight: bold;
}

.docs-page .file .left {
    left: 0;
}

.docs-page .file .right {
    right: 0;
}

.docs-page .file .button.doc-download i.fa-arrow-up {
    transform: rotate(45deg);
}

.docs-page .file .button,
.docs-page .file .count,
.docs-page .file .reorder-loading {
    background-color: inherit;
    color: #828282;
    padding: 4px 8px;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    position: absolute;
    transition-duration: .12s;
    transition-timing-function: ease-out;
    opacity: 0;
}

.docs-page .file:hover .button {
    opacity: 1;
}

.docs-page .file .button:hover {
    /*background-color: #e0e0e0;*/
    background-color: rgba(255,255,255,0.75);    
    color: #545557;
}

.docs-page .file .logo {
    position: absolute;
    width: 100%;
    line-height: 8rem;
    text-align: center;
    color: #0185B5;
    /*color: #aaa;*/
}

.docs-page .file .count {
    background: #fff;
    font-weight: bold;
    opacity: 1;
    line-height: 18px;
    min-width: 9px;
    text-align: center;
}

.docs-page .file .reorder-loading {
    /*display: none;*/
    opacity: 0;
}

.docs-page .file.reorder-processing .reorder-loading {
    opacity: 1;
}

.docs-page .file.reorder-processing .count,
.docs-page .file.reorder-processing .button {
    opacity: 0;
    /*display: none;*/
}

.docs-page .file.trash {
    background-color: #FFFFBF;
}

.docs-page .file.private {
    background-color: #D0FFD0;
}

.docs-page .file.error {
    background-color: rgba(255,0,0,0.25);
}

.docs-page .file.error .logo .fa {
    color: #f00;
    animation: none;
}

.docs-page .file.loading .logo {
    z-index: 9999;
}

.docs-page .file.highlight {
    background-color: rgba(255,255,0,0.15);
    border: 2px dotted rgba(0,0,0,0.25);
}

.template {
    display: none;
}


.collection .more {
    text-align: center;
    height: 5rem;
    clear: both;
}

.collection .more button {
    margin-top: 1.5rem;
    display: inline-block;
}

.collection .more i {
    margin-top: 1.5rem;
    display: none;
}

.collection .more.processing button {
    margin-top: 1rem;
    display: none;
}

.collection .more.processing i {
    margin-top: 1rem;
    display: inline-block;
}

.folder-description {
    margin-bottom: 1rem;
}


/* Оформление документов */

.logo .fa-file-word-o {
    color: #295598;	
}

.logo .fa-file-excel-o {
    color: #1E6E42;
}

.logo .fa-file-powerpoint-o {
    color: #D04626;
}

.logo .fa-file-pdf-o {
    color: #BB0706;
}

.logo .fa-globe {
    color: #0078D7;
}

.logo .fa-file-archive-o {
    color: #EA9F27;
}

.logo .fa-file-image-o {
    color: #0078D7;
}

.logo .fa-file-text-o {
    color: #0078D7;
}

/* Обложка */

.docs-page .file.cover {
    background-size: cover!important;
    background-position-x: center!important;
    background-position-y: center!important;
}

.docs-page .file.cover .logo i {
    opacity: 0;
}

.docs-page .file.cover .count {
    opacity: 0.75;
    color: #444;
}

.docs-page .file.folder.cover .name {
    color: #444;
}

/* Сообщение, что кто-то пишет письмо */

.messages-wrap .writing {
    margin-left: 20px;
    color: #ccc;
    display: none;
}

.messages-wrap .writing.show {
    display: block;
}

.messages-wrap .writing span {
    width: 4px;
    height: 4px;
    display: inline-block;
    background-color: #f8f8f8;
    border-radius: 2px;
    margin: 2px 4px 2px 0;
    animation-name: blink;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.messages-wrap .writing span.s1 {
     animation-delay: 0;
}

.messages-wrap .writing span.s2 {
     animation-delay: 0.33s;
}

.messages-wrap .writing span.s3 {
     animation-delay: 0.66s;
}


@keyframes blink {
    from { background-color: #aaa; }
    to { background-color: #f8f8f8; }
}

/* Список пользователей для нового сообщения */

.thread-wrap .member-item {
    padding: 10px;
    border-bottom: 1px solid #E3E4E5;
    transition-duration: .12s;
    transition-timing-function: ease-out;
    cursor: pointer;
}

.thread-wrap .member-item:hover {
    background-color: #f8f8f8;
}

.thread-wrap .member-item.loader {
    text-align: center;
    padding-top: 20px;
    border-bottom: 0;
}

.thread-wrap .member-item.loader:hover {
    background-color: inherit;
}

.thread-wrap .member-item span.avatar {
    float: left;
    margin-right: 10px;
}

.thread-wrap .member-item span.name {
    width: 200px;
    display: inline-block;
}

.thread-wrap .member-item span.name a {
    outline: none;
}

.thread-wrap .member-item span.avatar img {
    display: block;
}

.thread-wrap .member-item:after {
    content: ''; 
    clear: both;
    display: block;
}

.thread-wrap .member-item .add {
    float: right;
}

.thread-wrap .member-item .add a.button {
    color: #828282;
    background-color: inherit;
    opacity: 0;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.thread-wrap .member-item:hover .add a.button {
    opacity: 1;
}

.thread-wrap .member-item .add a.button:hover {
    background-color: #eee;
    color: #828282;
}

.thread-wrap .member-item .m-check {
    float: right;
    line-height: 33px;
    margin-right: 10px;
}

.thread-wrap .member-item .m-check.checked,
.thread-wrap .member-item.checked .m-check.unchecked {
    display: none;
}

.thread-wrap .member-item.checked .m-check.checked,
.thread-wrap .member-item .m-check.unchecked {
    display: block;
}

.thread-wrap .member-item.checked {
    background-color: #f8f8f8;
}

.thread-wrap .member-item.checked .m-check a {
    color: #e55005;
}

.thread-wrap .member-item .m-check a {
    background-color: inherit;
    color: #828282;
    opacity: 0;    
    outline: none;
}

.thread-wrap .member-item:hover .m-check a,
.thread-wrap .member-item.checked .m-check a {
    opacity: 1;
}

.thread-wrap .member-item .m-remove {
    display: none;
}

.messages-wrap .recipients .member-item .m-remove {
    display: inline-block;
}

.messages-wrap .recipients .member-item .add,
.messages-wrap .recipients .member-item .m-check {
    display: none;
}

.messages-wrap .recipients .member-item {
    margin: 2px;
    background: #f2f2f2;
    display: inline-block;
    vertical-align: middle;
}

.messages-wrap .recipients .member-item span {
    float: left;
}

.messages-wrap .recipients .member-item span.avatar {
    margin-right: 5px;
}

.messages-wrap .recipients .member-item span.avatar img {
    display: block;
}


.messages-wrap .recipients .member-item span.name {
    line-height: 33px;
}

.messages-wrap .recipients .member-item .m-remove div {
    margin: 4px 4px 0 4px;
}

.messages-wrap .recipients .member-item .m-remove a {
    background-color: #f2f2f2;
    color: #828282;
}

.messages-wrap .recipients .member-item .m-remove a:hover {
    background: #414141;
    color: #fff;
}




/* Форма нового сообщения */

.compose-wrap {
    margin: 20px;
}

.compose-wrap div {
    margin-top: 10px;
}

.compose-wrap .recipients {
    min-height: 40px;
    margin-bottom: 20px;
}

.compose-wrap .recipients.warning {
    border-left: 5px solid #ff3333;
    background-color: #f2f2f2;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.compose-wrap .textarea textarea {
    width: 100%;
    height: 12rem;
    font: inherit;
}

.compose-wrap .subject {
    display: none;
}

.compose-wrap .subject input[type='text'],
.compose-wrap .subject input[type='text']:focus {
    border: 1px solid #D6D6D6;
    width: 100%;
}

.compose-wrap .textarea.warning textarea {
    border: 3px solid #ff3333;
}

.dialogues-page.compose {
    height: auto;
    min-height: 100vh;
    /*margin-bottom: 0;*/
}

.dialogues-page.compose .messages-wrap {
    min-height: 100vh;
    height: auto;
}


/* Диалоги */

.dialogues-page .members {
    /*background-color: yellow;*/
    width: 300px;
    float: left;
}

.dialogues-page .members .thread-item {
    /*padding: 10px 5px;*/
    border-bottom: 1px solid #E3E4E5;
    /*background-color: #f2f2f2;*/
    transition-duration: .12s;
    transition-timing-function: ease-out;    
    cursor: pointer;
}

.dialogues-page .members .thread-item>div {
    border-left: 5px solid transparent;
    overflow: auto;
    padding: 10px 5px;
}

.dialogues-page .members .thread-item.current>div {
    /*background-color: #0185B5;*/
    border-left: 5px solid #0185B5;
    /*background-color: #f2f2f2;*/
    background-color: #f8f8f8;
}

/*.dialogues-page .members .thread-item.current .unread_count {
    opacity: 0;
    transition-delay: .25s;
    transition-duration: .25s;
    transition-timing-function: ease-out;    
}*/

.dialogues-page .members .thread-item:hover {
    /*background-color: #f2f2f2;*/
    background-color: #f8f8f8;
}

.dialogues-page .members .thread-item:after {
    content: ''; 
    clear: both;
    display: block;
}

.dialogues-page .members .thread-item .title {
    color: #0086b3;
    clear: both;
}

.dialogues-page .members .thread-item .unread_count {
    float: right;
    padding: 2px 10px;
    background-color: #e55005;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    border-radius: 10px;
    /*color: #0086b3;*/
    /*clear: both;*/
}

/*.dialogues-page .members .thread-item.current .title {
    color: #f2f2f2;
}*/

.dialogues-page .members .thread-item .time-since {
    clear: both;
}

.dialogues-page .members .thread-item .content {
    margin-left: 10px;
    width: 215px;
    float: left;
    overflow: hidden;
}

.dialogues-page .members .thread-item .avatar {
    float: left;
}

.dialogues-page .members .thread-item.loader {
    text-align: center;
    padding-top: 20px;
    border-bottom: 0;
}

.dialogues-page .members span.title {
    font-size: 13px;
    line-height: normal;
}

.dialogues-page span.time-since {
    display: inline-block;
    background: #F2F2F2;
    font-size: 11px;
    color: #828282;
    padding: 1px 6px;
    text-decoration: none;
    border-radius: 2px;
}

.dialogues-page .members span.message-excerpt {
    font-size: 13px;
    line-height: normal;
    color:#828282;
}

/*.dialogues-page .members .thread-item.current span.message-excerpt {
    color:#eee;
}*/

.dialogues-page .members .thread-wrap {
    height: 100vh;
    box-sizing: border-box;
    padding: 130px 0 50px 0;
    margin-top: -130px;
}

.dialogues-page {
    height: 100vh;
    margin-bottom: -50px;
}


/*.dialogues .members span {
    float: left;
}*/


.dialogues-page .dialogues-header {
    padding-top: 30px;
    height: 80px;
    box-sizing: border-box;
}

.dialogues-page .dialogues-header .custom-button a,
.dialogues-page .dialogues-page .custom-button a {
    padding: 8px 12px;
    bottom: 0;
}

.dialogues-page .custom-button .dialogues-fix {
    float: right;
}


.dialogues-page .messages {
    /*background-color: red;*/
    border-left: 1px solid #E3E4E5;
    margin-left: 300px;
}


@media only screen and (max-width: 768px) {

    .dialogues-page .members {
        width: auto;
        float: none;
    }
    
}

/*.fix {
    position: fixed;
    top: 0;
}*/

.messages.buddypress .fix {
    overflow: hidden;
}


.dialogues-page .search,
.dialogues-page .messages-header {
    border-top: 1px solid #E3E4E5;
    border-bottom: 1px solid #E3E4E5;
    padding: 4px 0;
    background-color: #f8f8f8;
    /*height: 50px;*/
    box-sizing: border-box;
}

.dialogues-page .messages-header {
    /*border-left: 1px solid #E3E4E5;*/
    height: 50px;
    padding: 0 10px 0 20px;
}

.dialogues-page .messages-header .custom-button {
    float: right;
    margin-top: 10px;
}

.dialogues-page .messages-header-content {
    /*height: 50px;
    display: table-cell;
    vertical-align: middle;*/
}

.dialogues-page .messages-header-content .title {
    font-weight: bold;
    line-height: 50px;
}

.dialogues-page .messages-header-content .time-since {
    background: #ededed;
    color: #666;
}

.dialogues-page input[type='text'], 
.dialogues-page input[type='text']:focus  {
    box-shadow: none;
    border: 0;
    border-radius: 0;
    /*background: #fff;*/
    height: 40px;
    padding: 5px 10px; 
    box-sizing: border-box;
    background-color: #f8f8f8;
}

.dialogues-page input[type="text"]::-webkit-input-placeholder {
    color: #ccc;
} 

.dialogues-page input[type="text"]::-moz-placeholder {
    color: #ccc;
} 
    
.dialogues-page .members input[type='text']  {
    width: 250px;
    font: inherit;
}

.dialogues-page .messages-wrap {
    height: 100vh;
    box-sizing: border-box;
    padding: 130px 0 130px 0;
    margin-top: -130px;
}

.dialogues-page .messages-wrap .messages-items {
    height: 100%;
    /*overflow: auto;*/
    /*border-left: 1px solid #E3E4E5;*/
}


.dialogues-page .messages-form {
    margin-top: -100px;
    margin-bottom: 50px; 
    background-color: #f8f8f8;
    border-top: 1px solid #E3E4E5;
    border-bottom: 1px solid #E3E4E5;
}

.dialogues-page .messages-form span {
    float: left;
}

.dialogues-page .messages-form textarea,
.dialogues-page .messages-form textarea:focus {
    box-shadow: none;
    border: 1px solid #D6D6D6;
    width: 100%;
    border-radius: 0;
    /*line-height: 18px;*/
    background-color: #fff;
    padding: 10px;
    /*line-height: 1.55em;*/
    /*height: 40px;*/
    resize: none;
    font: inherit;
}

.dialogues-page .messages-form textarea::-webkit-input-placeholder {
    color: #ccc;
} 

.dialogues-page .messages-form table {
    width: 100%;
    border: 0;
    margin-bottom: 0;
}

.dialogues-page .messages-form td.clip,
.dialogues-page .messages-form td.send {
    padding: 14px 0;
    width: 60px;
    text-align: center;
    border: 0;
}

.dialogues-page .messages-form td.clip {
    vertical-align: top;
}

.dialogues-page .messages-form td.send {
    vertical-align: bottom;
}

.dialogues-page .messages-form td.message {
    padding: 14px 0;
    vertical-align: bottom;
    border: 0;
}

.dialogues-page .messages-form a.clip {
    color: #777;
    padding: 5px 0;
    display: inline-block;
    outline: none;
}

.dialogues-page .messages-form a.button {
    padding: 8px 12px;
    margin: 4px;
}

.dialogues-page .messages-form .form-empty {
    height: 48px;
}




.dialogues-page .messages-wrap .messages-empty {
    height: 100%;
    display: flex;
}

.dialogues-page .messages-wrap .messages-empty div {
    margin: auto;
    text-align: center;
}

.dialogues-page .messages-wrap .messages-empty div i,
.dialogues-page .messages-wrap .remove-window i,
.dialogues-page .messages-wrap .success-send i {
    color: #d6d6d6;
}

.dialogues-page .messages-wrap .remove-window,
.dialogues-page .messages-wrap .success-send {
    padding: 4rem;
    text-align: center;
}

.dialogues-page .messages-wrap .message-item {
    padding: 15px 0 10px 15px;
    overflow: hidden;
    border-left: 5px solid transparent;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.dialogues-page .messages-wrap .message-item.alone {
    border-top: 2px solid #eee;
    border-left: 0;
    text-align: center;
    margin: 20px 20px 0 20px;
    overflow: visible;
    padding: 0;
}

.dialogues-page .messages-wrap .message-item.loader {
    text-align: center;
}

.dialogues-page .messages-wrap .message-item.loader:hover {
    background-color: inherit;
}

.dialogues-page .messages-wrap .message-item.alone span {
    padding: 3px 20px;
    background-color: #fff;
    top: -12px;
    position: relative;
    font-weight: bold;
}

/*.dialogues-page .messages-wrap .message-item.new {
    background-color: #f8f8f8;
    border-left: 5px solid #e55005;
}*/

/*.dialogues-page .messages-wrap .message-item.new .title a {
    font-weight: bold;
}*/

/*.dialogues-page .messages-wrap .message-item.loader {
    height: 50vh;
}*/

.dialogues-page .messages-wrap .message-item div.avatar {
    float: left;
}

/*.dialogues-page .messages-wrap .message-item div.remove {
    float: right;
    margin-right: 15px;
    opacity: 0;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}*/

.dialogues-page div.remove {
    float: right;
    margin-right: 15px;
    opacity: 0;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.dialogues-page .thread-item.unread:hover div.remove {
    opacity: 0;
}

.dialogues-page .message-item:hover div.remove,
.dialogues-page .thread-item:hover div.remove {
    opacity: 1;
}

.dialogues-page .thread-item div.remove {
    margin-right: 0;
}

.dialogues-page div.remove .custom-button a.button {
    background-color: inherit;
    color: #828282;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.dialogues-page div.remove .custom-button a.button:hover {
    background-color: #eee;
    color: #828282;
}

.dialogues-page .messages-wrap .message-item:hover {
    background-color: #f8f8f8;
}

/*.dialogues-page .messages-wrap .message-item:hover div.remove {
    opacity: 1;
}*/

/*.dialogues-page .messages-wrap .message-item div.remove .custom-button a.button {
    background-color: inherit;
    color: #828282;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.dialogues-page .messages-wrap .message-item div.remove .custom-button a.button:hover {
    background-color: #eee;
    color: #828282;
}*/

.dialogues-page .messages-wrap .message-item div.content {
    margin-left: 60px;
}

.dialogues-page .messages-wrap .message-item div.content p.sended i.fa {
    width: 24px;
    margin-left: -24px;
    color: #828282;
    opacity: 0;
}

.dialogues-page .messages-wrap .message-item div.content p.sended.clock i.fa {
    opacity: 1;
    transition-duration: .2s;
    transition-delay: .5s;
}

.dialogues-page .messages-wrap .message-item div.time-since {
    clear: both;
}

.dialogues-page .messages-wrap .message-item span.message {
    margin-top: 5px;
    margin-right: 20px;
    word-wrap: break-word;
    display: block;
}



/* Скроллер */

.scroller-wrap {
	position: relative;
	overflow: hidden;
	/*width: 300px;*/
	height: 100%;
	/*margin: 1px auto;
	background: #fff;
	border: 1px solid #fc9;*/
}
.scroller {
	height: 100%;
	overflow-y: scroll;
}
.scroller::-webkit-scrollbar {
    width: 0;
}
.scroller__bar {
	position: absolute;
    z-index: 1;
    right: 4px;
    /*display: none;*/
    width: 8px;
    min-height: 50px;
    border-radius: 3px;
    background: #AAA;
    /*opacity: .6;*/
    opacity: 0;
    transition: width .2s linear;
    cursor: pointer;
}
.scroller__bar:hover,
.scroller.scrolling .scroller__bar {
	opacity: .8;
    transition-duration: .2s;
    transition-delay: .2s;

}
.scroller__bar_state_on {
	display: block;
}

.scroller .scroller-container {
	overflow: hidden;
}



/* Всплывающие уведомления */

.float-notification {
    z-index: 9999;
    position: fixed;
    bottom: 2em;
    right: 2em;
}

.float-notification>div {
    margin-top: 5px;
    position: relative;
}

.float-notification>div img {
    display: block;
    opacity: 0.75;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.float-notification>div:hover img {
    opacity: 1;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.float-notification>div span.hint {
    position: absolute;
    right: 45px;
    font-size: 12px;
    line-height: 16px;
    width: 170px;
    /*background-color: rgba(0,0,0,0.3);*/
    opacity: 0; 
    visibility: hidden;
    color: rgba(255,255,255,0.85);
    padding-right: 10px;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.float-notification>div:hover span.hint {
    opacity: 0.85; 
    visibility: visible;
    
    /*transition-duration: .12s;
    transition-timing-function: ease-out;    */
}

.float-notification span.hint a {
    background-color: #333;
    color: rgba(255,255,255,0.75);
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
}

.float-notification span.hint a:hover {
    color: #fff;
}

.float-notification>div span.hint::after {
    content: ''; 
    position: absolute;
    top: 16px;
    right: -5px;
    border: 8px solid transparent;
    border-left: 8px solid #333;
}

.float-notification>div span.type {
    background-color: #fff;
    padding: 3px;
    border-radius: 12px;
    color: #e55005;
    font-size: 12px;
    line-height: 14px;
    width: 14px;
    text-align: center;
    position: absolute;
    z-index: 10000;
    bottom: -4px;
    right: -4px;
}

.float-notification>div span.close {
    background-color: #fff;
    padding: 2px;
    border-radius: 12px;
    color: #e55005;
    font-size: 12px;
    line-height: 12px;
    position: absolute;
    z-index: 10000;
    right: -2px;
    top: -2px;
    opacity: 0;
    visibility: hidden;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.float-notification>div:hover span.close {
    opacity: 1;
    visibility: visible;
}




/* Уведомления */

.custom-button a.button {
    padding: 4px 8px;
    margin: 0;
    background: #ededed;
    color: #545557;
    font-size: 12px;
    display: inline-block;
}

.custom-button a.notification-to-not-new {
    color: #e55005;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.custom-button a.notification-to-new {
    color: #545557;
    transition-duration: .12s;
    transition-timing-function: ease-out;    
}

.custom-notifications tr.new .custom-button a.notification-to-not-new { display: block; }
.custom-notifications .custom-button a.notification-to-not-new { display: none; }
.custom-notifications tr.new .custom-button a.notification-to-new { display: none; }
.custom-notifications .custom-button a.notification-to-new { display: none; }
.custom-notifications tr:hover .custom-button a.notification-to-new { display: block; }
.custom-notifications tr.new:hover .custom-button a.notification-to-new { display: none; }


.custom-notifications span.time-since {
	/*float:right;*/
	background:#F2F2F2;
	font-size: 85%;
	color:#828282;
	padding: 3px 10px;
	display: inline-block;
	text-decoration: none;
	border-radius: 2px;
    white-space: nowrap;
}

.custom-notifications {
    border-bottom: 0;
}

.custom-notifications tr.new td.cn-description {
    font-weight: bold;
}

.custom-notifications td {
    padding: 8px;
}

.custom-notifications td.cn-check,
.custom-notifications td.cn-avatar,
.custom-notifications td.cn-delete {
    width: 1px;
}

.custom-notifications td.cn-is-new {
    width: 12px;
}

.custom-notifications td.cn-is-new {
    padding: 8px 0 8px 16px;
}

.custom-notifications td.cn-actions div {
    float: right;
    margin-left: 10px;
}

.custom-notifications td img.avatar {
    display: block;
}

.custom-notifications thead tr,
.custom-notifications tbody tr:hover {
    background-color: #f8f8f8;
}

.custom-notifications tbody tr.load-more,
.custom-notifications tbody tr.load-more:hover {
    background-color: inherit;
}

.custom-notifications tbody tr.load-more td {
    /*padding-top: 30px;*/
    height: 50px;
    text-align: center;
}
 
.custom-notifications tbody tr.load-more td div {
    margin: 20px 0 -20px 0;
}

.custom-notifications tbody tr.load-more .loader {
    display: none;
}

.custom-notifications tbody tr.load-more.loading div {
    display: none;
}

.custom-notifications tbody tr.load-more.loading div.loader {
    display: block;
}



/* Приватность страниц */

.profile-hidden #item-meta {
    display: none;
}


/* Стили для репоста */

body.repost-activity-form #whats-new-submit {
    display: none;
}

#repost-submit-wrap {
    float: right;
    margin-top: 12px;
}

/*.repost-activity {
    margin-top: 40px;
    margin-left: -21px;
}*/

/*.repost-activity .activity-inner {
    margin-left: 0px;
}*/


/* Кнопки "Нравится", "Избранное" и др. */

.activity-meta div.like,
.activity-meta div.favorite,
.activity-meta div.repost,
.activity-meta div.remove {
	position: relative;
    display: inline-block;
}

.activity-meta div.remove {
    float: right;
}

div a.bp-primary-action i {
	color: #AAA;
    transition-duration: 100ms;
}

div.active a.bp-primary-action i {
	color: #FA0;
    transition-duration: 100ms;
}



/* Уточнение всплывающих меню для кнопки "Нравится" */

div.like .mif-bpc-hint {
    right: auto;
}

div.like .mif-bpc-hint:before, 
div.like .mif-bpc-hint:after {
	left: 10px;
    border-top: 8px solid #E3E4E5;
}

div.like .mif-bpc-hint:after {
	left: 11px;
    border-top: 7px solid #F2F2F2;
}

div.like .mif-bpc-hint img.avatar {
    margin: 0;
    float: none;
    vertical-align: top;
}

div.like .mif-bpc-hint div {
    padding: 10px 5px;
    background: #F2F2F2;
    overflow: hidden;
}

div.like .mif-bpc-hint span.avatar, 
div.like .mif-bpc-hint span.more {
    margin: 3px;
}

div.like .mif-bpc-hint span.more i {
    display: inline-block;
    line-height: 20px;
    padding: 5px;
    background: #fff;
}

div.like .mif-bpc-hint span.more a {
    background-color: inherit;
}

div.like .mif-bpc-hint span.more span.wrap {
    display: inline-block;
    padding: 3px;
    border: 1px solid #e7e7e7;
}

div.like .mif-bpc-hint span.avatar a {
    padding: 0;
    display: inline;
}

div.like .mif-bpc-hint span.current_user {
    /*display: none;*/
    margin-left: -41px;
    opacity: 0;
    transition: opacity 100ms ease, margin 100ms ease-out;
}

div.like.active .mif-bpc-hint span.current_user {
    /*display: inline;*/
    margin-left: 3px;
    opacity: 1;
    transition: opacity 100ms ease 100ms, margin 100ms ease-out;
}

div.like .mif-bpc-hint span.n4 {
    /*display: inline;*/
    margin-right: 3px;
    transition: margin 100ms ease-out;
}

div.like.active .mif-bpc-hint span.n4 {
    /*display: none;*/
    margin-right: -44px;
    transition: margin 100ms ease-out;
}



/* Уточнение всплывающих меню для профиля пользователя */

#item-buttons .mif-bpc-hint {
    bottom: 30px;
}

i.banned-users.icon {
    float: right;
    margin: 17px 8px 0 0;
    color: #eaeaea;
}

i.banned-users.icon.none, 
.acomment-reply.none, 
.friendship-button.none,
.activity-meta div.repost.none,
.activity-meta div.like.none
{
    display: none;
}



/* Настройка всплывающих меню для ленты активности */

.mif-bpc-hint {
    position: absolute;
    margin: 0;
    padding: 0 0 15px 0;
    bottom: 20px;
    right: 0px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 100ms linear, visibility 100ms linear;
}

.mif-bpc-hint div {
    padding: 3px 0;
    background-color: #fff;
    border: 1px solid #E3E4E5; 
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

div:hover > .mif-bpc-hint, a:hover > .mif-bpc-hint, .mif-bpc-hint:hover {
    transition: opacity 100ms linear, visibility 100ms linear;
    visibility: visible;
    opacity: 1;
}

.mif-bpc-hint:before, .mif-bpc-hint:after {
	position: absolute;
	content: "";
	width: 0; 
    bottom: 7.5px;
	right: 10px;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
    border-top: 8px solid #E3E4E5;
}

.mif-bpc-hint:after {
    bottom: 9px;
	right: 11px;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
    border-top: 7px solid #fff;
}

div.activity-meta .mif-bpc-hint a, #item-buttons .mif-bpc-hint a, .mif-bpc-hint a {
    color: #0086b3;
    padding: 4px 15px;
    display: block;
    background-color: #fff;
    border-radius: 0px;
    text-align: left;
    white-space: nowrap;
}

div.activity-meta .mif-bpc-hint a:hover, #item-buttons .mif-bpc-hint a:hover, .mif-bpc-hint a:hover {
    color: #222;
    display: block;
    background-color: #ededed;
}


/* Настройка кнопки на странице профиля пользователя */

div#item-header div.right, div#item-header div.generic-button.right {
    float: right;
}

div#item-header div.generic-button a.gray {
    background: #eaeaea;
    color: #828282;
}

div#item-header div.generic-button a.gray:hover {
    background: #414141;
    color: #fff;
}

.relative {
    position: relative;
}

/* Настройка кнопок в ленте активности */

div.activity-meta div.right {
    float: right;
}

div.activity-meta a.disable-activity-type {
    color: #828282;
}

div.activity-meta a.disable-activity-type:hover {
    color: #fff;
}

/* Настройка окна добавления пользователей */

.members-page .add-member {
    clear: both;
    padding: 1em;
    margin: 1em 0;
    border: 3px dashed #eaeaea;
}

.members-page .add-btn, .members-page .submit-btn {
    display: block;
    margin: 1.5em 0;
    text-align: center;
}

.members-page .add-form, .members-page .response-box {
    display: none;
}

.members-page .add-form div {
    overflow: hidden;
}

.members-page .add-form textarea {
    width: 100%;
    height: 6em;
}




/* Настройка форм настроек в профиле */

.nav-settings-form h4 {
    display: block;
    padding: 0 0 10px;
    margin: 2em 0 1em;
    border-bottom: 1px solid #E3E4E5;
}

.nav-settings-form label {
    display: block;
    margin: 0 0 0.5em;
}

.nav-settings-form label input {
    margin: 0 0 0 1em;
}


/* Настройка виджетов пользователей и групп */

.members_widget span.avatar, .groups_widget span.avatar {
    display: inline-block;
    margin: 0 4px 8px 4px;
}

.members_widget span.avatar img, .groups_widget span.avatar img {
    /*border: 3px solid #fff;*/
    float: left;
}




/* Настройка редактирования адреса группы */

.slug-edit {
    margin: 3em 0 0 0;
}

.slug-edit div {
    float: left;
    background-color: #E2E2E2;
    font-family: sans-serif;
    padding: 11px 12px;
    line-height: normal;
    border-radius: 2px;
}



/* Настройка загрузки фонового изображения */

.custom-background-image img {
    max-width: 640px;
}

.custom-background-wrapper h4 {
    border-bottom: 1px solid #E3E4E5;
    margin: 30px 0 20px;
    padding: 0 0 10px;
}



/* Настройка страницы настройки */


.settings_page_mif-bp-customizer table td.one {
    width: 20%;
}

.settings_page_mif-bp-customizer table td, .settings_page_mif-bp-customizer table th {
    vertical-align: top;
    padding: 8px 8px 24px 0px;
}

.settings_page_mif-bp-customizer table td label {
    vertical-align: top;
}

.settings_page_mif-bp-customizer table td h2 {
    margin-bottom: 0;
}


/* Диалоговые окна и другое */

div.message {
    background: #f8f8f8;
    padding: 0.25rem 1rem;
    margin-bottom: 1rem;
}

div.message.warning {
    background: rgba(255,255,0,0.25);
    border-left: 4px solid #F48625;
}

.dotted {
    border-bottom: 1px dotted;
}

