*{
    box-sizing: border-box;
}

body{
    margin: 0;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar{
    display: none;
}

/* Header Nav*/
.tnwnavbar{
    position: sticky;
    position: -webkit-sticky;
    top: 0px;
    background: #1A5279;
    padding: 10px 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 999;
}

.tnwnavbar li a::before, .tnwnavbar ul a::before{
    content: '';
    display: block;
    height: 3px;
    border: 5px;
    background: #fff;
    position: relative;
    top: -10px;
    transform: scale(0);
    transition: transform ease-in-out 0.5s;
    z-index: 1;
}

.tnwnavbar li a:hover::before, .tnwnavbar ul a:hover::before{
    transform: scale(1);
}

.tnwnavbar li a:hover, .tnwnavbar ul a:hover{
    color: #ccc;
}

.navlogo{
    font-size: 32px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    
}

.tnwcollapse{
    width: auto;
    padding: 0 15px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    word-spacing: 40px;
}

.navcontent{
    display: flex;
    flex-direction: row;
    padding-left: 12px;
    gap: 35px;
}

.navcontent li{
   padding: 0 8px 0 0;
}

li{
    list-style-type: none;
}

li a{
    text-decoration: none;
    /* padding: 0 15px; */
    color: #fff;
    cursor: pointer;
}

.tnwlogin, .tnwlogout{
    position: absolute;
    right: 50px;
    font-size: 18px;
}

.itemform{
    width: 80%;
}

.zila-item{
    margin-left:25px; 
    width:250px;
}

.create-close{
    margin-left: 45px;
}

/* Grid */
.show-hide-invoice-body{
    display: grid;
    grid-template-columns: repeat(3, 30%);
}

.tnwgrid2, .gridpostcreate{
    display: grid;
    grid-template-columns: repeat(2, 49%);
    align-items: center;
    width: 100%;
    gap: 2%;
}

.shopgrid2{
    display: grid;
    grid-template-columns: repeat(2, 50%);
    align-items: center;
    width: 100%;
    gap: 10px;
    justify-content: center;
}

.moneygrid{
    display: grid;
    width: 100%;
    grid-template-columns: 15% 85%;
}

.catgrid2{
    display: flex;
    align-items: center;
    width: 100%;
}

.tnwgrid3{
    display: grid;
    grid-template-columns: repeat(3, 33%);
    justify-items: center;
    width: 100%;
}

.shopgrid3{
    display: grid;
    grid-template-columns: repeat(3, 33%);
    justify-items: center;
    width: 100%;
    gap:2px;
}


.tnwflex{
    display: flex;
}

.tablewidth{
    width: 99%;
    overflow-x: auto;
}

.shoptable{
    display: table;
    border-collapse: collapse;
    text-indent: initial;
    border-spacing: 2px;
    border-color: gray;
    word-wrap: break-word;
    font-family: Arial, Helvetica, sans-serif;;
    font-size: 14px;
    margin: 0 10px;
    border: 1px solid;
    border-radius: 5px;
    width: 98%;
}

.shoptable tr th{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    /* padding: 9px 20px; */
    border: 1px solid;
    background: #ccc;
    height: 52px;
}

.shoptable tr td{
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid;
    line-height: 20px;
    padding: 10px;
}

/* .shoptable tr:nth-child(odd){
    background: #ccc;
} */

.tnwfooter{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, auto);
    justify-items: center;
    gap: 15px;
    align-items: center;
}

.tnwfooter li a{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #1A5279;
}

.tnwfooter li a:hover{
    color: darkred;
}


/* Text Positiong, Padding, Margin and Float*/

.mt1{
    margin-top: 10px;
}

.mt2{
    margin-top: 20px;
}

.mt3{
    margin-top: 40px;
}

.ms1{
    margin-left: 10px;
}
.ms2{
    margin-left: 7px;
}
.ms3{
    margin-left: 30px;
}
.ms4{
    margin-left: 40px;
}
.ms5{
    margin-left: 50px;
}
.ms6{
    margin-left: 60px;
}
.me1{
    margin-right: 10px;
}
.me2{
    margin-right: 20px;
}
.me3{
    margin-right: 30px;
}
.me4{
    margin-right: 40px;
}
.me5{
    margin-right: 50px;
}
.me6{
    margin-right: 60px;
}

.mb1{
    margin-bottom: 10px;
}
.mb2{
    margin-bottom: 20px;
}
.mb3{
    margin-bottom: 30px;
}
.p1{
    padding: 10px;
}
.p2{
    padding: 20px;
}

.p3{
    padding: 30px;
}
.p4{
    padding: 40px;
}

.p5{
    padding: 50px;
}
.py1{
    padding: 10px 0 10px;
}

.py2{
    padding: 20px 0 20px;
}

.py3{
    padding: 30px;
}
.py4{
    padding: 40px;
}

.py5{
    padding: 50px;
}

.py6{
    padding: 60px;
}

.textcenter{
    text-align: center;
}

.floatright{
    float: right;
}

.floatleft{
    float: left;
}



/* Color */

.dark{
    background: black;
}

.tnwgradient{
    background: linear-gradient(blue, red);
}

.tnwgradient1{
    background: linear-gradient(yellow, purple);
}

.tnwgradient2{
    background: linear-gradient(orangered, hotpink);
}


:is(.tnwcol, .tnwcolhead){
    padding: 2px;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
}

/* Frequently Asked Questions */
details{
    padding: 0 10px 30px 10px;
    text-align: left;
    width: 100%;
}

details > summary{
    width: 100%;
    background: linear-gradient(green, blue);
    cursor: pointer;
    border-radius: 5px;
    padding: 9px 20px;
    color: #fff;
    }
    
    details > p{
    width: 100%;
    min-width: 200px;
    color: #fff;
    }
    

/* Text format */
.txtnormal{
    color: #000;
    cursor: pointer;
}

.txtnormal:hover{
    transform: scale(1.2);
    color: red;
    transition: transform 0.2s ease-in;
}

.txtcenter{
    text-align: center;
}

.txtwarning{
    color: yellow;
}

.txtprimary{
    color: #0b08f7;
}

.txtwhite{
    color: #fff;
}

.txtsuccess{
    color: green;
}

.txtdanger{
    color: #e8062f;
}

.txtorange{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.txtlarge{
    font-size: large;
}

.txtxlarge{
    font-size: x-large;
}

.tnwimg{
    width: 100%;
    height: 350px;
}

#myfloat{
    display: none;
  }

button{
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 24px;
}

/**button:hover{
    opacity: 0.9;
}*/


:is(.btnprimary > a, .btnsuccess > a, .btndanger > a, .btngradient > a) {
    text-decoration: none;
    color: #fff;
}

.btnprimary{
    background: blue;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.btnwarning{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: yellow;
    color: #000;
    border-radius: 5px;
    cursor: pointer;
}

.btndanger{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: #e8062f;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.btnsuccess{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: green;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.btngradient{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(green, red);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.btnshop{
    font-family: Arial, Helvetica, sans-serif;
    background: green;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    margin-bottom: 15px;
}

.btnsales{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.btnshop:hover{
    background: linear-gradient(darkgreen, green);
}

:is(.btnprimary, .btnwarning, .btndanger, .btnsuccess, .btngradient):hover{
    opacity: 0.9;
}

div > a{
    text-decoration: none;
    color: #fff;
}

/* Register and Login  */

.tnwrowforform{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 2px 0;
}

.tnwcolforform{
    width: 35%;
    border-radius: 5px;
    margin: 40px 20px;
}

.invoicecolforform{
    width: 35%;
    border-radius: 5px;
}

.card{
    border-radius: 5px;
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 0 0.5rem 0 #ccc;
}

.card > p{
    text-align: center;
    font-size: 16px;
}

.shadow{
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.31rem);
}

.card-header{
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: 1px solid #ccc;
    text-align: center;
    padding: 15px;
    font-size: 19px;
    font-weight: bold;
    display: none;
}

.card-body{
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    border-bottom: 1px solid white;
}

.invoice-card-body{
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    border-bottom: 1px solid white;
    text-align: right;
    display: none;
    z-index: 1;
    position: absolute;
    border: 1pz solid;
    background:#468669;
    border-radius: 5px;
    transition: all 4s;
    margin-left: 45px;
    width: 450px;
    height: 420px;
    overflow: auto;
}

.card-content{
    display: grid;
    grid-template-columns: 30% 70%;
    justify-items: self-end;
    padding: 13px 0;
}

.card-content label{
    margin-right: 10px;
}

.item-text{
    height: 36px;
}

.item-text{
    width: 250px;
}

.item-submit{
    margin: 10px 30px 10px 250px;
    cursor: pointer;
    padding: 7px;
    border-radius: 5px;
}

.show-card-body, .show-edit-card-body{
    padding: 7px;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    background: #468669;
    color: #fff;
    width: 190px;
    text-align: center;
    font-size: 14px;
}

.hide-card-body{
    padding: 7px;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    background: #e8062f;
    color: #fff;
    width: 190px;
    text-align: center;
    display: none;
    font-size: 14px;
}

.hide-edit-card-body{
    padding: 7px;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    background: #e8062f;
    color: #fff;
    width: 190px;
    text-align: center;
    display: none;
    font-size: 14px;
    margin-top: 12px;
}

.invoice-empty{
    position: fixed;
    right: 35px;
    top: 110px;
}

.invoice{
    background: grey;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-right: 30px;
    width: 120px;
    cursor: pointer;
}

.empty{
    background: grey;
    padding: 11px 33px;
    border-radius: 5px;
}

.paid-info{
    display: flex;
    justify-content: center;
    align-items: center;
}

.paid-form{
    padding: 10px 20px;
}

#change-status, #due-status{
    display: none;
}

:is(.invoice, .empty):hover{
    font-weight: bold;
}

.card-body label{
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 20px;
    font-size: 16px;
}

.tnwservice{
    margin: 30px 0 40px 0;    
}

.loginbtn{
    margin: 30px 0;
    height: 40px;
    width: 90px;
    background: linear-gradient(darkred, darkgreen);
    color: #fff;
    border: 1px solid white;
    border-radius: 2px;
    cursor: pointer;
    padding: 8px;
    border-radius: 7px;
    text-align: center;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.shopbtn{
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    margin: 15px 0 5px 5px;
    font-size: 16px;
    text-decoration: none;
    color: #1A5276;
    width: 95px;
    cursor: pointer;
}

.loginbtn:hover{
    background: linear-gradient(blue, red);
}

.shopbtn:hover{
    color: red;
}

input[type="text"], input[type="password"], input[type="email"], select{
    font-family: Arial, Helvetica, sans-serif;
    padding: 9px 4px;
    border-radius: 5px;
    font-size: 14px;
    border: 0.7px solid darkgreen;
}

input[type="number"]{
    border-radius: 5px;
}

.linkitem{
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: darkgreen;
    font-size: 16px;
}

.linkitem:hover{
    color: darkred;
}

.loginmiddle{
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;
}

.loginbottom{
    display: grid;
    grid-template-columns: 70% 30%;
    padding: 4px 10px 4px 40px;
    gap: 15px;
}

.loginquestion{
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.registerbtn{
    font-family: Arial, Helvetica, sans-serif;
    margin: 25px 0 10px;
    padding: 9px;
    width: 100px;
    background: linear-gradient(red, blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.registerbtn:hover{
    background: linear-gradient(red, green);
}

/* Alert and Session */

.sessionflex{
    display: flex;
    padding: 5px 10px;
}

.sessionalert{
    display: flex;
    color: darkgreen;
    font-size: 1rem;
}

.sessionbtn{
    padding: 0 20px;
    color: red;
    margin-left: 5px;
    font-weight: bold;
    cursor: pointer;
}

.categorydelbtn{
    padding: 7px;
    color: red;
    margin-left: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* Body Three Column */
.redasterisk{
        color: red;    
    }

.tnwblogrow{
    grid-auto-flow: column;
    grid-template-columns: repeat(3, auto-fit);
}

.tnwcenter{
    position: relative;
    height: 100%;
    width: 50%;
    margin-left: calc(100% - 75%);
}

.tnwfooterrow{
    z-index: 1;
}
.tnwshoprow{
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, auto-fit);
}
.tnwleft{
    margin-top: 5px;
    height: 100%;
    position: fixed;
    margin-left: 0;
    width: 25%;
    padding: 0 10px 0 0;
}

.invoice-header{
    display: grid;
    grid-template-columns: repeat(3, 30%);
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.edit-label{
    display: none;
}

.edit-icon:hover{
    .edit-label{
        display: block;
    }
}

.item-search-box{
    width: 78%;
}

.search-item{
    width: 300px;
    margin: 5px 45px;
}

.customer-info{
    position: fixed;
    top: 90px;
    right: 400px;
    width: 240px;
}

.cus-info{
    display: grid;
    justify-content: space-around;
}

.cus-form{
    display: flex;
}

.cus-label{
    margin-right: 10px;
    margin-top: 7px;
}

.cus-info-name, .cus-phone{
    width: 250px;
    height: 35px;
}

.invoice-body{
    display: grid;
    grid-template-columns: 30% 15% 10%;
    width: 100%;
    overflow: auto;
    margin: 15px;
}

.item-quantity{
    width:70px; 
    text-align:center; 
    margin: 0 10px 0 50px;
}

.form-control{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0 2px;
}

.postandsearch{
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(48%, 48%, 4%);
    justify-content: space-around;
}

.postbtn{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    text-align: center;
    color: black;
    font-weight: bold;
}

.postbtn:hover{
    color: red;
}

#blogsearch{
    display: none;
}

.btn-search{
    background: none;
    cursor: pointer;
    padding: 0 15px 0 7px;
}

.btn-close{
    background: none;
    cursor: pointer;
    padding: 0 20px;
    color: red;
    font-weight: bold;
    display: none;
    font-size: 20px;
}

.readmore{
    font-family: Arial, Helvetica, sans-serif;
    color: #1A5276;
    font-size: 15px;
    margin-left: 82%;
    cursor: pointer;
}

.readmore:hover{
    color: red;
}

#tnw-button{
    font-size: 14px;
    }

.tnw-button{
    display: flex;
    flex-direction: row;

}

.fa, .fas{
    font-size: 12px;
    width: 20px;
    }

img{
    width: auto;
    max-width: 100%;
    }

    
.img-thumbnail{
    border: 0;
    outline: 0;
    }


iframe{
    width: 100%;
    border: 0.5px solid #ccc;
    }

.commentForm{
    display: none;
}

.tnwComment{
    display: none;
}

.tnwcomment{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    height: 50px;
    resize: none;
}


/*Code for Chat System*/
.wrapper{
    background: #fff;
    width: 100%;
    height: calc(100%);
    overflow-y: scroll;
    box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
                0 32px 64px -48px rgba(0, 0, 0, 0.5);
}

.chatdateheader{
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: red;
    margin-top: 3px;
}

.form{
    padding: 25px 30px;
}

.form header{
    font-size: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6e6e6;
}

.form form{
    margin: 20px 0;
}

.form form .error-txt{
    color: red;
    background: whitesmoke;
    padding: 8px 10px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid greenyellow;
    display: none;
}

.form form .name-details{
    display: flex;
}

form .name-details .field:first-child{
    margin-right: 10px;
}

form .name-details .field:last-child{
    margin-left: 10px;
}

.form form .field{
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 10px;
}

.form form .field i{
    position: absolute;
    right: 15px;
    color: #ccc;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
}

.form form .field i.active::before{
    color: #333;
    content: "\f070";
}

.form form .field label{
    margin-bottom: 3px;
    font-size: 16px;
}

.form form .input input{
    height: 30px;
    width: 100%;
    font-size: 16px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form form .image input{
    font-size: 17px;
}

.form form .button input{
    margin-top: 13px;
    height: 45px;
    border: none;
    font-size: 17px;
    font-weight: 480;
    background: #333;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.form .link{
    text-align: center;
    margin: 10px 0;
    font-size: 17px;
}

.form .link a:hover{
    text-decoration: underline;
}


/* Users area css code */

.users{
    padding: 0 7px 100px 13px;
}

.users header{
    display: flex;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.chatdetails p{
    font-family: Arial, Helvetica, sans-serif;
    align-items: center;
    margin: 0 10px;
    font-weight: 400;
    line-height: 20px;
}

.wrapper img{
    object-fit: cover;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

:is(.users, .users-list, .chat-message) .content{
    display: flex;
}

.users header .content img{
    width: 50px;
    height: 50px;
}

:is(.users, .users-list, .chat-message) .details{
    margin-left: 15px;
    margin-top: 5px;
}

.users header .chatdetails span{
    font-size: 15px;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
}

.users header .logout{
    color: #fff;
    font-size: 17px;
    padding: 7px 15px;
    background: #333;
    border-radius: 5px;
}

.users .search{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    margin: 2px 0 15px 7px;
    padding-top: 5px;
}

.users .search .text{
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.users .search input{
    position: absolute;
    height: 42px;
    width: calc(100% - 90px);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 13px;
    font-size: 14px;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.users .search input.active{
    opacity: 1;
    pointer-events: auto;
}

.users .search button{
    border: none;
    outline: none;
    color: #fff;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition:  all 0.2s ease;
    padding: 10px;
}

.users .search button.acive{
    color: #fff;
    background: #333;
}

.users .search button.active i::before{
    content: "\f00d";
}


/*CSS codes for user list*/

.chatMessage-userList{
    height: auto;
}


/*
:is(.users-list, .chat-box)::-webkit-scrollbar{
    width: 0;
}*/


.users-list a, .chat-message a{
    margin-bottom: 10px;
    page-break-after: 10px;
    padding-right: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom-color: #f1f1f1;
}

:is(.users-list, .chat-message) a:last-child{
    border: none;
    margin-bottom: 0px;
}

:is(.users-list, .chat-message) a .content img{
    width: 45px;
    height: 45px;
}

:is(.users-list, .chat-message) a .content p{
    color: black;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

:is(.users-list, .chat-message) a .status-dot{
    font-size: 20px;
    color: #468669;
}

:is(.users-list, .chat-message) a .status-dot.offline{
    font-size: 12px;
    color: #ccc;
}


/* Chat Area CSS codes */
.chat-area header{
    display: flex;
    align-items: center;
    padding: 18.1px 12px;
    background: #1A5279;
    border-bottom: 1px solid #fff;
    color: #fff;
}

.chat-area header img{
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin: 0 10px 0 15px;
}

.chat-area header .back-icon{
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    font-size: 32px;
}

.chat-area header span{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.chat-area header p{
    font-size: 12px;
}

.chat-box{
    word-wrap: break-word;
    height: 520px;
    overflow-y: auto;
    padding: 5px;
    box-shadow: 0 0 1rem 0 #ccc;
    padding-bottom: 20px;
}

.chat-box .chat p{
    padding: 1px 16px;
    line-height: 22px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.chat-box .outgoing{
    display: flex;
    /* margin-bottom: 10px;
    margin-top: 10px; */
}

.outgoing .details{
    margin-left: auto;
    width: calc(100% - 100px);
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: auto;
    justify-content: space-between;
    background: #333;
    color: #fff;
    border-radius: 18px 18px 0 18px;
}

.outgoing .details p{
    padding: 7px 10px;
    margin-top:0;
    margin-bottom:0;
    word-break: break-all;
}

.outgoing .details small{
    padding: 7px 10px;
    float: right;
    right: 5px;
    color: #fff;

}

.outgoing .details span, .incoming .details span{
    color: #e8062f;
    font-weight: bold;
    text-align: center;
}

.chat-box .incoming{
    display: flex;
    align-items: center;
}

.chat-box .incoming img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
}

.incoming .details{
    margin-left: 5px;
    width: calc(100% - 100px);
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: auto;
    justify-content: space-between;
    background: #e6e6e6;
    border-radius: 18px 18px 0 18px;
}

.incoming .details p{
    color: #333;
    padding: 7px 10px;
    margin-top:0px;
    margin-bottom:0px;
    word-break: break-all;
}

.incoming .details small{
    color: #333;
    padding: 7px 10px;
    float: right;
}

.chat-area .typing-area{
    display: flex;
    justify-content: space-between;
}


.input-field{
    font-family: Arial, Helvetica, sans-serif;
    height: 45px;
    width: 95%;
    font-size: 14px;
    padding: 0 13px;
    border-radius: 5px 0 0 5px;
    resize: none;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    margin: 0.5px;
    padding: 11px 50px 2px 2px;
    line-height: 20px;
}

.typing-area button{
    background-color: #333;
    color: #fff;
    outline: none;
    border: none;
    font-size: 19px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    position: absolute;
    right: 0;
    padding: 10px 15px;
}

/* Shop Design */

.sales_purchase_button{
    display: none;
}


.shopheaderforedit{
    display: flex;
    flex-direction: row;
}

.shopimage{
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 50% auto;
    grid-template-rows: 200px;
    justify-content: left;
    width: auto;
    gap: 7px;
    overflow: hidden;
}


/* Background Colors */

.bgwhite{
    background: white;
}

.bgdark{
    background: #000;
}

/* Dropdown for Edit or Delete Post */

.dropdownforedit{
    padding-right: 20px;
    font-size: 22px;
    cursor: pointer;
    color: red;
    right: 10px;
    top: 5px;
}

.profileimg{
    float: left;
    margin-right: 3px;
}

.blogprofile{
    display: grid;
    grid-template-columns: 47px auto auto;
    justify-content: left;
}

.blogprofileimg{
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    border: 0.05px solid #ccc;
    outline: none;
    float: left;
}

.invoice-print-btn{
    cursor: pointer; 
    position: fixed; 
    right: 90px; 
    top: 100px; 
    background: green;
    color: white;
    padding: 5px 20px;
    border-radius: 5px;
}

.invoice-print-btn:hover{
    transform: scale(1.1);
}

.headerprofileimg{
    width: 50px; 
    border-radius: 50%; 
    border: 0.05px solid #ccc;
    outline: none;
    margin-left: 7px;
    cursor: pointer;
}

.companyprofileimg{
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    border: 0.05px solid #ccc;
    outline: none;
}

.profileimgformat{
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    border: none; 
    outline: none;
}

.commentprofileimg{
    width: 25px; 
    height: 25px; 
    border-radius: 50%; 
    border: none; 
    outline: none;
}

.profilefullname{
    margin-left: 1.5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    padding-right: 35px;
}

.blogcomment{
    margin-left: 1.5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    padding-right: 35px;
    line-height: 24px;
}

.profilefullname a{
    text-decoration: none;
    line-height: 24px;
}

.profilefullname small{
    display: block;
}

.profilefullname small a{
    color: #1A5276;
    line-height: 18px;
}

.profileforedit{
    cursor: pointer;
    color: red;
    margin-left: 5px;
}

.profile-menu{
    display: none;
    margin-top: 40px;
}

.blogtitle{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    text-decoration: none;
    margin-right: 20px;
    font-weight: normal;
}

.blogcontent{
    max-height: 180px; 
    overflow: hidden;
}

.dropdown-menu{
    display: none;
}

.show-dropdown-menu li{
    right: 20px;
    text-align: left;
    font-size: 14.5px;
    padding-top: 2.5px 0;
}
.show-dropdown-menu li a{
    text-decoration: none;
    color: red;
}

.dropdown-menu input[type="submit"]{
    border: none;
    background: none;
    padding: 0;
    color: red;
    cursor: pointer;
    font-size: 14.5px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dropdown{
    display: none;
    background: darkgreen;
    margin-top: 1px;
    padding-left: 2px;
}

.dropdownbtn{
    background: darkgreen;
    color: #fff;
    cursor: pointer;
    padding: 13px 20px;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.dropdownarrow{
    margin-left: 10px;
}

.dropdownarrow::after{
    content: "+";
}

.dropdownarrowtoggle::after{
    content: "x";
}

.dropdown li{
    list-style-type: none;
    padding: 9px;
    font-size: 15px;
    border-bottom: 1px solid #ccc;
}
.dropdown li a{
    text-decoration: none;
}

.dropdown li a:hover{
    opacity: 0.6;
}

/* Side Nav for Profile and Salies Items */

.sideNav{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-x: hidden;
    background: #fff;
    box-shadow: 0 0 1.5rem 0 #ccc;
    z-index: 1;
    transition: 0.2s ease-in;
    align-items: center;
    width: 350px;
    display: none;
}

.sideNavDetails{
    width: 100%;
}

.sideNav .sidenavheader{
    padding: 30px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    text-align: center;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
}

.sideNav .navprofile{
    text-align: center;
    background: darkgreen;
    width: 100%;
    margin-top: 20px;
    border-radius: 5px;
    padding-left: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 26px;
}

.sideNav .navprofile p{
    padding: 9px;
}
.sideNav .navprofile p a{
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}


.closebtn{
    margin-top: 22px;
    display: flex;
    color: #fff;
    justify-content: center;
    background: darkred;
    border-radius: 5px;
    padding: 5px 20px;
    font-size: 16px;
    font-weight: bold;
    float: right;
    cursor: pointer;
}

.closebtn:hover{
    background: red;
}

/* Post Creat, Edit and Blog */
h1, h2, h3, h4, a, label, small, .card-header, details > summary{
    font-family: Arial, Helvetica, sans-serif;
    word-spacing: normal;
}

h2, h3{
    line-height: 30px;
}

h4{
    line-height: 28px;
}

p, div, h5, textarea{
    font-family: Arial;
    font-size: 16px;
    line-height: 26px;
}

h1{
    font-size: 22px;
}
h2{
    font-size: 22px;
}
h3{
    font-size: 18px;
}
h4{
    font-size: 16px;
}

small{
    font-size: 12px;
}

/* .form-control{
    width: 100%;
    padding: 9px;
    border: 1px solid green;
    border-radius: 5px;
} */

.insertcodesample{
    display: none;
    border: 2px solid #fff;
    justify-content: center;
    align-items: center;
}

.codeformformat{
    position: absolute;
    top: 10%;
    width: 60%;
    height: 50%;
}

.insertcodefooter{
    display: grid;
    grid-template-columns: 30% 30%;
}

.tnwselect{
    width: 70px;
    height: 30px;
    border: 1px solid green;
}

.showdesignpostbtn{
    display: flex;
    width: 100%;
    overflow-x: auto;
    margin-top: 5px;
}

.rightdotted{
    margin-left: 20px;
    color: red;
    cursor: pointer;
}

.w100{
    width: 100%;
    padding: 5px;
}

.selectoption{
    padding: 10px 0;
}

option{
    padding: 20px 0;
}

pre{
    width: 100%;
    overflow-x: auto;
    line-height: 24px;
    font-size: 14px;
}

/* Upload Files and Images */

.imageupload{
    display: flex;
    color: red;
    gap: 5px;
    justify-content: space-between;
}

.tradeimageupload{
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 60% 40%;
}

/*Profile Design*/
    .profile-background{
		background-repeat: no-repeat;
		background-size: cover;
		width: 100%;
		height: 250px;
		margin-top: 10px;
		border-radius: 5px;
		position: relative;
        border: 1px solid #ccc;
        overflow: hidden;
	}
	.profile{
	    display: flex;
		padding-top: 10px;
		color: white;
	}
	.profile-details{
		margin-left: 5%;
	}
	.profile-details p{
		font-size: 16px;
		font-weight: bold;
	}
	.no_background{
	    position: absolute;
	    top: 100px;
	    left: 35%;
	    z-index: -1;
	}
	
	.myemoji{
        display: none;
        grid-template-columns: repeat(10, auto);
        position: absolute;
        margin: 50px 0;
        width: 100%;
        padding-top: 10px;
        background: #fff;
        left: 0;
    }
    
    .emojiitem{
        padding: 12px;
        cursor: pointer;
    }
    
    #myemoji{
        cursor: pointer;
        position: absolute;
        right: 60px;
        padding: 10px 5px;
        position: absolute;
        bottom: 0;
    }
    
    /* Pagination */

    *{
        box-sizing: border-box;
    }
    
    .pagination{
        display: inline-block;
        margin: 20px 0;
        border-radius: 4px;
    }
    
    .pagination li{
        display: inline;
    }
    
    .pagination li a{
        color: #000;
        position: relative;
        float: left;
        margin-left: -1px;
        padding: 3px 13px;
        text-decoration: none;
        border: 1px solid #ddd;
    }
    
    .pagination>li:first-child>a{
        margin: 0;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }
    
    .pagination>.active>a{
        z-index: 3;
        color: #fff;
        cursor: default;
        background-color: #337ab3;
        border-color: #337ab3;
    }
    
    .pagination>.disabled>a{
        color: #888;
        cursor: not-allowed;
        background-color: #fff;
        border-color: #ddd;
    }
    
    
@media screen and (min-width:501px){
    .chat-area header .back-icon{
        display:none;
    }
    
    #message{
        width: 95%;
    }
    
}

@media screen and (min-width:1800px){
    .tnwcolforform{
        width: 500px;
    }
    .tnwimg{
        height: 450px;
    }
}

@media screen and (max-width:1200px){
    .item-search-box{
        display: none;
    }
    
    .create-close{
        margin-left: 3px;
    }
    
    .search-item{
        width: 80%;
    }
    
    .shoptable .no{
        min-width: 50px;
    }
    
    .shoptable .delete{
        text-align: center;
    }
    
    .shoptable .edit-delete{
        min-width: 200px;
        text-align: center;
    }
    
    .shoptable .item-name{
        text-align: left;
        min-width: 400px;
    }
    
    .shoptable .customer-name{
        text-align: left;
        min-width: 300px;
    }
    
    .shoptable .price{
        text-align: center;
        min-width: 120px;
    }
    
    .shoptable .quantity{
        text-align: center;
        min-width: 60px;
    }
    
    .shoptable .discount{
        text-align: center;
        min-width: 120px;
    }
    
    .shoptable .tax{
        text-align: center;
        min-width: 90px;
    }
    
    .shoptable .sub-total{
        min-width: 200px;
        text-align: center;
    }
    
    .shoptable .date{
        min-width: 200px;
        text-align: center;
    }
    
    .invoice-body{
        display: flex;
        padding-right: 20px;
    }
    
    .itemform{
        width: 100%;
        overflow: auto;
    }
    
    .zila-item{
        margin-left:3px; 
        width: auto;
    }
    
    .item-quantity{
        margin: 0 10px;
    }
    
    .item-discount{
        width: 100px;
    }
    
    .card-content{
        display: block;
    }
    
    .invoice-card-body{
        margin: 0 3px;
        width: 90%;
        text-align: left;
    }
    
    .invoice-empty{
        position: inherit;
        margin: 5px 20px;
    }
    
    .show-hide-invoice-body{
        display: flex;
        margin: 0 3px;
    }
    
    .total-item{
        display: none;
    }
    
    .customer-info{
        position: inherit;
        margin: 5px 20px;
    }
    
    .paid-info{
        display: grid;
    }
    
    .invoice-print-btn{
        right: 5px;
    }
    
    .item-submit{
        margin: 10px 5px;
    }
    
    /* Pagination */
    .pagination li a{
        padding: 3px 8px;
    }
    
    .shopimage{
        grid-template-rows: 150px;
    }
    
    .moneygrid{
        display: grid;
        grid-template-columns: 30% 70%;
    }
    
    .shopdashboard{
        margin: 5px 0;
    }
    .loginmiddle{
        grid-template-columns: 50% 50%;
    }
    .sideNav{
        width: 100%;
    }
    .input-field{
        padding-right: 70px;
    }
    .typing-area button{
     font-size: 22px; 
     right: 5px;
    }
    
    .users{
    padding: 0 7px 7px 13px;
    }
    .readmore{
        margin-left: 70%;
    }
    .myemoji{
        grid-template-columns: repeat(7, auto);
    }
    
    /*Profile Design*/
    .profile-background{
        width: 100%;
        margin-left: 0;
    }
    
    /* Header Nav */
    
    .dropdown li{
        padding: 13px 15px;
    }

    .tnwnavbar li a::before, .tnwnavbar ul a::before{
        display: none;
    }
    
    .tnwnavbar{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
    
    .navchat{
        display: flex;
    }

    .header_nav{
        padding: 0 5px 0 20px
    }

    .navcontent{
        display: block;
        background: #1A5279;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        position: absolute;
        left: 0;
        top: 55px;
    }

    .navcontent li{
        padding: 20px 0 0 10px;
    }

    .navlogo{
        padding: 0;
    }
    
    .navheadchat{
       display: flex;
    }

    .tnwlogin, .tnwlogout{
        position: relative;
        left: 80%;
        bottom: 15px;
    }
 
    .tnwcollapse::after{
        position: absolute;
        content: "\2630";
        font-size: 30px;
        right: 10px;
        top: 20px;
        cursor: pointer;
    }

    .tnwexpend::after{
        content: "X";
        padding-top: 5px;
        font-size: 30px;
        right: 18px;
        cursor: pointer;
    }

    li{
      display: block;
    }

    .tnwhead{
      display: block;
      
    }
    
    .blogbody, .shopbody{
        width: 100%;
        padding: 12px;
    }

    /* Grid view for mobile */

    :is(.shopgrid2, .tnwgrid4){
        display: block;
    }
    
    .tnwgrid3{
        width: 200%;
    }

    .tnwgrid8{
        display: grid;
        grid-template-columns: repeat(2, auto);
    }

    .tnwcol{
        margin-top: 10px;
    }
    
/* Footer */

    .tnwfooter{
        position: relative;
        display: block;
        width: 100%;
        padding: 30px;
        align-items: center;
        text-align: center;
        line-height: 50px;
        margin-right: 0;
    }


/* Register and Login */

    .tnwcolforform{
        margin: 20px 5px;
        width: 100%;
    }
    .card-body{
        padding: 0 10px;
    }
    .loginright{
        right: 10px;
    }
    .loginbottom{
        padding: 8px 10px;
    }

/* Body Three Column */

    .tnwblogrow{
        margin-right: 0;
        grid-template-columns: 100%;
    }
    
    .tnwchatrow{
        grid-template-columns: 100%;
    }

    .tnwfooterrow{
        grid-template-columns: 100%;
        margin-right:0;
    }

    .tnwshoprow{
        grid-template-columns: 100%;
    }
    
    .blogbody, .blogbodyview, .shopbody{
        width: 100%;
    }
    
    .shopbody{
        margin: 10px 0;
    }

    .tnwblogsearch{
        padding: 10px 0;
        width: 100%;
        grid-template-columns: 80% 20%;
    }

    .tnwcenter{
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .tnwleft, .tnwright{
        width: 0;
        margin-left: 0;
        display: none;
    }
    
    .usersformobile{
        display:flex;
        width:100%;
        height: 100%;
        overflow: auto;
    }
    
    :is(.users-list, .chat-message) a:last-child{
        border: none;
        margin-bottom: 0;
    }
    

.img-thumbnail{
    width: 50%;
    height: 50%;
    border: 0;
    outline: 0;
    }

.col-md-2{
    height: 50%;
}

/* Post Creat, Edit and Blog */
.codeformformat{
    position: absolute;
    width: 90%;
    height: 100%;
}

/* Shop Design */

.sale_items, .purchase_items{
    display: none;
}

.sales_purchase_button{
    display: grid;
    grid-template-columns: repeat(2, 50%);
}

.shop-sales{
    margin-left: 5px;
}


/* Text Positiong, Padding, Margin and Float*/

.ms1, .ms3, .ms4, .ms5, .ms6{
    margin-left: 1px;
}

.mms1{
    margin-left: 10px;
}
.me1, .me2, .me3, .me4, .me5, .me6{
    margin-right: 1px;
}

.chatMessage-userList{
    max-height: 100%;
    overflow-y: auto;
}

}
