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

.single__transaction{
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 8px;
    margin-bottom: .7rem;
    display: grid;
    grid-template-columns: 70px 1fr 200px;
    align-items: center !important;
    grid-column-gap: 10px;
    height: 3.5rem;
    cursor: pointer;
    @media only screen and (max-width: 1000px) {
        grid-template-columns: 35px 1fr 70px;
        padding: .3rem .2rem !important;
        grid-column-gap: 30px;
        padding-bottom: 0 !important;
        height: 3.5rem !important;
    }

    &__grid2{
        padding-left: 1rem;
        @media only screen and (max-width: 1000px) {
            display: flex;
            flex-direction: column;
            padding-left: .2rem;
            padding-bottom: .5rem !important;
        }
        p{
            font-weight: 500;
            font-size: .7rem !important;
            color: variables.$col-white !important;
            padding-top: .5rem !important;
            padding-bottom: 0 !important;
            @media only screen and (max-width: 1000px) {
                font-size: .6rem;
                padding-top: .1rem !important;
                font-weight: 700;
            }
        }
        small{
            font-size: .68rem;
            color: variables.$col-white;
            font-weight: 500;
            opacity: .75;
        }
    }

    &__grid3{
        display: flex;
        align-items: center;
        justify-content: center;
        // gap: 20px;
        text-align: center;
        @media only screen and (max-width: 1000px) {
            flex-direction: column;
        }
        p{
            font-size: .85rem;
            font-weight: 500 !important;
            // color: rgba(17, 94, 119, 0.98);
            font-weight: 500;
            @media only screen and (max-width: 1000px) {
                font-size: .78rem;
            }
        }
        // small{
        //     font-size: .7rem;
        //     color: #627081;
        //     font-weight: bold;
        // }
    }

    .card{
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        border-radius: 5px;
        padding: .5rem 2rem;
        font-size: .7rem;
        font-weight: 500;
        margin: .3rem .6rem;
        @media only screen and (max-width: 1000px) {
            font-size: .6rem;
            padding: .4rem 1.5rem;
            // display: none
        }
    }

    &__credit{
        @extend .card;
        color: variables.$col-success-color;
        background: variables.$col-success-bg;
    }

    &__debit{
        @extend .card;
        background: variables.$col-danger-bg;
        color: variables.$col-danger-color;
    }

    .credit{
        color: variables.$col-success-color;
    }
    .debit{
        color: red;
    }
}
