:root {
    --chat_image: url("../../img/fon_tg.jpg")
}

[data-theme="dark"] {
    --chat_image: url("../../img/fon_tg_black.jpg")
}

.pagination {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

a.block_link {
    display: block;
    text-decoration: none !important;
    border-radius: 4px;
}

a.block_link:hover {
    text-decoration: none !important;
    background-color: #f5f7f8;
}

#dialogs {

    background-image: var(--chat_image);
}



.chat-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    overflow-y: auto;
    height: 300px;
    background-color: green;
    position: relative;
    padding-bottom: 12%;
}

.chat-message {
    max-width: 50%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #fff;
}

.msg-title {
    color: #CC90E2;
    font-weight: bolder;
}

.own {
    justify-content: end;
    align-self: flex-end;
}

.online {
    border-radius: 10px;
    width: 10px;
    height: 10px;
    text-align: center;
}

.new_messages {
    border-radius: 50%;
    padding-top: 5%;

    text-align: center;
}

#my_sms {
    /* background-color: white; */
    float: left;
    width: auto;
    max-width: 60%;
    border-radius: 10px;
    padding: 10px;
}

.sms_user {
    position: absolute;
    right: 1%;
}

.sms_user .sms_body {
    float: left;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    padding: 10px;
}

.sms {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
}

.foot-input {
    position: absolute;
    bottom: 0;
    left: 0;
}

.chat_block {
    max-height: 1000px;
    overflow-y: auto;
}

.img_small {
    border-radius: 100%;
    margin: 0px 10px 0px 0px;
    height: 40px;
    width: 40px;
}

.img_p {
    border-radius: 100%;
    margin: 0px 10px 0px 0px;
    height: 60px;
}

.none_foto {
    background-color: #FBA76F;
    height: 60px;
    width: 60px;
    margin: 0px 10px 0px 0px;
    border-radius: 100%;
    text-align: center;
    color: white;
    line-height: 2.6em;
    padding-top: 8px;
}

.forvard {
    padding: 5px 5px 0px 5px;
    border-left: solid 2px #7EAAD1;
}

.color_1 {
    color: #CC90E2;
}

.color_2 {
    color: #FBA76F;
}

.color_3 {
    color: rgb(134, 136, 158);
}

.time_sms {
    float: right;
    color: #ADADAD;
    font-size: 0.9em;
    margin-left: 10px;
    margin-top: 1px;
}

.document {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    align-items: self-end;

}

.sms_body>img:first-child {
    width: 300px;
}

.sub_img {
    flex: 1 1 auto;
    max-width: 300px;
}

.sub_img img {
    width: 150px;
}


.sms_body img:not(:first) {
    width: 25%;
    flex: 1;
    flex-wrap: wrap;
}

.textmessage {
    font-size: 1.1em;
    vertical-align: super;
}

/* .sms_body img:nth-of-type(1) {
    width: 50%;
} */


.textdate {
    vertical-align: bottom;
    font-size: smaller;
    align-self: self-end;

}

.name {
    font-size: 1.1em;

}

.date_dv {
    text-align: center;
    margin: 15px;
}

.date_txt {
    background-color: rgb(190, 192, 206);
    color: white;
    padding: 5px;
    padding-top: 6px;
    border-radius: 10px;
}

.selected {
    background-color: #a2acb6;
    padding: 12px;
    border-radius: 10px;
}