/* Style the messages of contacts list */
.AppMessagesContacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    width: 100%;
    height: 100%;

    padding-left: var(--size-17);
    padding-right: var(--size-17);
    margin-bottom: var(--size-17);
}

@media screen and (max-width: 900px){
    .AppMessagesContacts {
        padding-left: var(--size-07);
        padding-right: var(--size-07);
        margin-bottom: var(--size-07);
    }
}

    .AppMessagesContacts__Header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        width: 100%;

        margin-bottom: var(--size-04);
    }

        .AppMessagesContactsHeader__Icon {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;

            margin-right: var(--size-04);
        }

            .AppMessagesContactsHeader__Icon > img {
                width: 100%;
                height: auto;
                max-width: var(--icon-button-size);

                opacity: 0.7;
                transition: 0.4s;
            }

                .AppMessagesContacts:hover .AppMessagesContactsHeader__Icon > img {
                    transition: 0.2s;
                    opacity: 1.0;
                }

        .AppMessagesContactsHeader__Title {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;

            width: 100%;
        }

    .AppMessagesContacts__Navigation {
        display: none;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        background: rgb(255, 255, 255);

        width: 100%;
        height: auto;

        z-index: 10;

        padding-top: var(--size-17);
        padding-bottom: var(--size-17);

        transition: 0.4s;
    }

    @media screen and (max-width: 900px){
        .AppMessagesContacts__Navigation {
            border-bottom-left-radius: var(--size-07);
            border-bottom-right-radius: var(--size-07);

            padding: 1.7vw;
        }
    }

        .AppMessagesContacts__Navigation > button,
        .AppMessagesContacts__Navigation > a {
            padding: var(--size-04);
            margin-right: var(--size-04);

            box-sizing: content-box;
        }

        @media screen and (max-width: 900px){
            .AppMessagesContacts__Navigation > button,
            .AppMessagesContacts__Navigation > a {
                padding: var(--size-02);
            }
        }

        .AppMessagesContactsNavigation__Header {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;

            width: 100%;
        }

        @media screen and (max-width: 900px){
            .AppMessagesContactsNavigation__Header {
                border: unset;
                border-radius: unset;

                padding: unset;
            }
        }

            .AppMessagesContactsNavigationHeader__Title {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;

                text-align: left;
                white-space: normal;

                width: 100%;
            }

            @media screen and (max-width: 900px){
                .AppMessagesContactsNavigationHeader__Title > h6 {
                    font-size: var(--font-size);
                }
            }

                @media screen and (max-width: 650px){
                    .AppMessagesContactsNavigationHeader__Title > h6 {
                        font-size: var(--font-size-context);
                    }
                }

            .AppMessagesContactsNavigationHeader__Icon {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;

                margin-right: var(--size-04);
            }

                .AppMessagesContactsNavigationHeader__Icon > img {
                    width: var(--icon-button-size-options);
                    height: auto;
                    max-width: var(--icon-button-size-options);
                }

        .AppMessagesContacts__Navigation > .AppPatternsTools {
            display: none;
        }

            .AppMessagesContacts__Navigation > .AppPatternsTools > button {
                padding: var(--size-07);
            }

            @media screen and (max-width: 900px){
                .AppMessagesContacts__Navigation > .AppPatternsTools > button {
                    padding: var(--size-05);
                }
            }

                .AppMessagesContacts__Navigation > .AppPatternsTools > .AppPatternsTools__Links {
                    top: calc( var(--size-17) * 1.65 );
                }

                @media screen and (max-width: 900px){
                    .AppMessagesContacts__Navigation > .AppPatternsTools > .AppPatternsTools__Links {
                        top: calc( var(--size-17) * 1.4 );
                    }
                }

    .AppMessagesContacts__Block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        background: rgb(255, 255, 255);
        border: 1px solid rgb(237, 237, 237);
        border-radius: var(--size-07);
        
        width: 100%;
        height: 100%;

        padding: var(--size-07);
    }

        .AppMessagesContactsBlock__Search {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;

            width: 100%;
        }

            .AppMessagesContactsBlock__Search > button {
                width: 100%;
            }

        .AppMessagesContactsBlock__Links {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;

            width: 100%;

            padding-top: var(--size-07);
            padding-bottom: var(--size-17);
        }
        
        .AppMessagesContactsBlock__Links::-webkit-scrollbar { width: 0px; height: 0px; }

        @media screen and (max-width: 900px){
            .AppMessagesContactsBlock__Links {
                border-bottom: 1px solid rgb(237, 237, 237);

                overflow-x: scroll;
                overflow-y: hidden;
                padding-bottom: var(--size-07);
            }

        }

            .AppMessagesContactsBlock__Links > button {
                margin-right: var(--size-04);
            }

        .AppMessagesContactsBlock__List {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;

            width: 100%;
            height: 100%;
        }

        .AppMessagesContactsBlock__List::-webkit-scrollbar { width: 0px; height: 0px; }

        @media screen and (max-width: 900px){
            .AppMessagesContactsBlock__List {
                overflow-y: auto;
                padding-top: var(--size-07);
            }
        }

            .AppMessagesContactsBlock__Item {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;

                background: rgb(255, 255, 255);
                border: 1px solid rgb(237, 237, 237);
                border-radius: var(--size-07);

                position: relative;
                z-index: 1;

                width: 100%;

                padding: var(--size-04);
                margin-top: var(--size-07);

                transition: 0.4s;
            }

                .AppMessagesContactsBlock__Item:hover {
                    transition: 0.2s;
                    background: rgb(250, 250, 250);
                }

                .AppMessagesContactsBlock__Item:nth-of-type(1) {
                    margin-top: unset;
                }

                .AppMessagesContactsBlockItem__Loading {
                    display: none;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;

                    background: rgba(255, 255, 255, 0.9);
                    border-radius: var(--size-07);

                    position: absolute;
                    top: 0px;
                    left: 0px;
                    z-index: 2;

                    width: 100%;
                    height: 100%;

                    padding: var(--size-07);
                }

                    .AppMessagesContactsBlockItem__Loading > img {
                        width: 100%;
                        height: auto;
                        max-width: calc( var(--icon-loading-size) / 2 );
                    }

                .AppMessagesContactsBlockItem__Header {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-items: flex-start;

                    width: 100%;

                    margin-right: var(--size-07);
                }

                    .AppMessagesContactsBlockItemHeader__Photo {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        justify-content: center;

                        border: 1px solid rgb(237, 237, 237);
                        border-radius: 100%;

                        width: var(--size-27);
                        height: var(--size-27);
                        min-width: var(--size-27);
                        min-height: var(--size-27);

                        margin-right: var(--size-04);
                    }

                    .AppMessagesContactsBlockItemHeader__Data {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-start;
                        justify-content: center;

                        width: 100%;
                    }

                        .AppMessagesContactsBlockItemHeaderData__Title {
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            justify-content: flex-start;

                            width: 100%;
                        }

                        .AppMessagesContactsBlockItemHeaderData__Type {
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            justify-content: flex-start;

                            font-size: var(--font-size-context);

                            width: 100%;
                        }

                .AppMessagesContactsBlockItem__Functions {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: flex-end;

                    border: 1px solid rgb(237, 237, 237);
                    border-radius: var(--size-07);

                    padding: var(--size-04);
                }

            .AppMessagesContactsBlockList__NoData {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;

                width: 100%;
                height: 100%;

                opacity: 0.7;
            }

                .AppMessagesContactsBlockListNoData__Icon {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: center;

                    margin-bottom: var(--size-04);
                }

                    .AppMessagesContactsBlockListNoData__Icon > img {
                        width: 100%;
                        height: auto;
                        max-width: var(--icon-view-size);
                    }

                .AppMessagesContactsBlockListNoData__Value {
                    display: block;
                    
                    text-align: center;
                    word-break: break-word;

                    width: 100%;
                }