@use "../../../../styles/abstracts/variables";
@use "../../../../styles/abstracts/mixins";  

.messages {
    @include mixins.pageBase;

        //Tab section
        &__tab{
            background: variables.$col-active-btn-bg;
            border: 1px solid variables.$col-primary;
            border-radius: 6px;
            display: flex;
            // justify-content: space-between;
            // width: 50%;
            padding: .7rem .7rem;
            align-items: center;
            font-size: .85rem;
            font-weight: 500;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 20px;
            margin-top: 1rem;
    
            &--item{
                text-align: center;
                cursor: pointer;
                display: flex;
                flex-direction: column;
                flex: 0 0 200px;
                color: variables.$col-active-btn-color;
                font-weight: 600;
                @media only screen and (max-width: 1000px) {
                    flex: 0 0 150px; 
                    width: 100%;
                    font-size: .75rem;
                }
                &--active{
                    background: variables.$col-primary-btn;
                    color: #fff;
                    border-radius: 6px;
                    padding: .5rem 1rem;
                    cursor: pointer;
                    font-size: .85rem;
                    font-weight: 600;
                    flex: 0 0 230px;
                    text-align: center;
                    @media only screen and (max-width: 1000px){
                        width: 100%;
                        flex: 0 0 180px; 
                        text-align: center;
                        font-size: .75rem;
                    }
                }
            }
        }

    &__details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: 20px;
        padding-top: 2rem;
        padding-bottom: 1rem;
    }
}