#page{
    display: flex;
    flex-direction: column;
    min-height: auto;
    /* ✅ Allows it to grow */
    height: auto;
    /* ✅ Adjusts dynamically */
    flex-grow: 1;
    /* ✅ Expands when content increases */
}
main {
    position: relative;
    height: auto;
    min-height: 100vh;
    flex-grow: 1;
}
.row-main{
    margin: 20px;
    min-height: 100vh;
    display: flex;
    /* flex-direction: column; */
}
.col-lg-4{
    flex: 0 0 auto;
    width: 33.33333333%;
}
.col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
}
.col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
}
.col-lg-12 {
    flex: 0 0 auto;
    width: 100%;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.w-50 {
    width: 50% !important;
}
.account_form .row {
    display: flex;
    gap: 0.5em;
}
.account_form .cols {
    flex: 1 0 0%;
}
.account_form .col h5{
    margin-bottom: 0px;
}
.account_form .form-outline {
    position: relative;
    width: 100%;
}
.account_form .form-outline .form-control {
    min-height: auto;
    padding-top: .32rem;
    padding-bottom: .32rem;
    padding-left: .75rem;
    padding-right: .75rem;
    /* border: 0; */
    background: rgba(0,0,0,0);
    transition: all .2s linear;
}
.account_form .form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.6;
    color: #4f4f4f;
    appearance: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #bdbdbd;
    border-radius: 0.25rem;
    box-shadow: rgba(0, 0, 0, 0.075);
    transition: all .2s linear;
}
.row-main .list-group{
    padding: 0px;
    background-color: #183444;
    margin-right: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
}
.row-main .list-group i, .row-main .list-group a, #accOrd, #accRet {
    font-weight: 600;
    color: #fff;
}
.row-main .list-group-item:hover{
    background-color: #0080ff;
    cursor: pointer;
}
.row-main .list-group-item{
    color:#453c5c;
    padding: 10px;
}
button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
#accTitle{
    display: block !important;
}
#account_style{
    padding: 2rem;     
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 15px;
}
#ordersTable{
    width: 100%;
}
#ordersTable td, #ordersTable th{
    font-size: .75em;
}
.account_form .btn {
    padding-top: 0.625rem;
    padding-bottom: 0.5rem;
    border-width: 0;
    border-color: none;
    border-radius: 0.25rem;
    box-shadow: 0 4px 9px -4px rgba(0,0,0, 0.35);
    padding-top: 0.625rem;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    vertical-align: bottom;
    border: 0;
    border-radius: 0.25rem;
    box-shadow: rgba(0,0,0, 0.35);
}
/* .account_form .btn-primary {
    background-color: #3b71ca;
    color: #fff;
    box-shadow: 0 4px 9px -4px #386bc0;
} */
.account_form .btn-sm{
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}
.error{
    font-size: .65em;
    margin-bottom: 5px;
}
#orderHead{
    display: flex;
    justify-content: center;
}
#orderBody{
    display: flex;
    justify-content: center;
}
#acch3{
    margin-top: 0px;
}
#conOne{
    padding: 0px;
}
.row-main{
    margin:0px !important;
}
.messagemaincontainer{
    border: 2px solid lightgrey;
    font-size: 0.9em;
    padding-top: calc(1.5rem * 0.5);
    padding-bottom: calc(1.5rem * 0.5);
    margin-bottom: 20px;
}
.messagemaincontainer_2{
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.message-text{
    font-size: 0.8em;
}
.message-text em{
    font-size: 0.7em;
}
.message-text strong{
    font-size: 0.9em;
}
.message-block {
    padding: 10px;
    border-radius: 5px;
    max-width: 60%;
}
.admin-message {
    align-self: flex-start;
    background-color: #f0f0f0;
    margin-top: 8px;
}

.user-message {
    align-self: flex-end;
    justify-content: flex-end;
    background-color: #e0e0ff;
    text-align: right;
    margin-top: 8px;
}
.reply_form{
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: lightgray;
    margin-left: -12px !important;
    margin-right: -12px !important;
    margin-bottom: -12px !important;
    padding: 8px;
}
.reply_textarea {
    flex: 1;
    width: auto;
    padding: 8px 10px;
    height: 45px;
    line-height: 24px;
    font-size: 0.8rem;
    border: 1px solid lightgray;
    outline: none;
}

.reply_btn {
    white-space: nowrap;
    background: lightgray;
    border: none !important;
    color: darkslategray;
    border-radius: unset !important;
    box-shadow: none !important;
    outline: none !important;
    font-weight: 500;
}
#openTickets{
    min-height: auto;
    overflow: visible;
    height: auto;
}
@media all and (max-width: 1230px){
    .row-main{
        width:100% !important;
    }
    .wrapper .container{
        padding:0px;
    }
    .row-main .list-group{
        padding-left: 3px;
        padding-right: 3px;
    }
    .row-main .list-group-item{
        font-size: 12px;
    }
    .error{
        font-size: .65em;
        margin-bottom: 5px;
    }
}
@media all and (max-width: 500px){
    .row-main{
        width:100% !important;
        display: block;
    }
    .wrapper .container{
        padding:0px;
    }
    .row-main .list-group{
        display: flex;
        /* flex-wrap: wrap; */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-left: 3px !important;
        padding-right: 3px !important;
        margin-top: 0px !important;
        margin: auto;
    }
    .row-main .list-group-item{
        font-size: 12px;
        padding: 3px;
    }
    .single-product .container{
        padding: 0 0.5em;
    }
    .row-main .col-lg-3, .row-main .col-lg-8{
        width: 100% !important;
    }
    .error, .success{
        font-size: .65em !important;
        margin-bottom: 5px !important;
    }
    #accTitle h5{
        margin-bottom: 0px;
        margin-top: 0px;
        padding-left: 5px;
    }
    .hrProfile{
        display: none !important;
    }
    #myaccount_orderdetails .tablinks{
        font-size: .75rem;
    }
    #ordersTable .btn-sm, #orderTbleSub .btn-sm{
        padding: .25rem .25rem;
        font-size: .5rem;
    }
    #acch3{
        background-color: #183444;
        color: #fff;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 5px;
    }
    #orderTbleSub{
        width: 100% !important;
    }
    #orderTbleMain th, #orderTbleSub .One{
        border: none;
        background-color: #183444;
        color: #fff;
        padding: 3px;
    }
    .search #query{
        width: 100% !important;
    }
}