h1,.h1 {
    font-size: 33px
}

h2,.h2 {
    font-size: 28px
}

h3,.h3 {
    font-size: 23px
}

h4,.h4 {
    font-size: 19px
}

h5,.h5 {
    font-size: 16px;
    font-weight: 400
}

h6,.h6 {
    font-size: 14px;
    font-weight: 400
}

table thead,tbody tr {
    white-space:nowrap;
}

.fw-800{
    font-weight: 800;
}

.roll{
     max-height:500px;
     width:100%;
     display:block;
     overflow-y:auto;
}

.btn-group-justified {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between
}

.btn-group-justified .btn {
    width: 100%
}

.form-group{
     margin-bottom: 0.5rem;
}

tbody tr .form-control{
     text-align:center;
}

td,th{
    text-align: center;
}

.flexbox {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between
}

.flexbox>* {
    margin-left: 4px;
    margin-right: 4px
}

.flexbox>*:first-child {
    margin-left: 0
}

.flexbox>*:last-child {
    margin-right: 0
}

.flexbox.no-gap>*,.flexbox.no-gutters>* {
    margin-left: 0;
    margin-right: 0
}

.avatar {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 100%;
    background-color: #f5f6f7;
    color: #929daf;
    text-transform: uppercase
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    vertical-align: top
}

.avatar-lg {
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-size: 1.125rem
}

.avatar-bordered {
    border: 4px solid rgba(255,255,255,0.25);
    -webkit-background-clip: padding-box;
    background-clip: padding-box
}

.card-bodys{
    flex: 1 1 auto;
    padding: 0.5rem;
}

small,time,.small {
    font-family: Roboto,sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #929daf
}

.text-right{
     text-align: right;
}

.max-width800{
    max-width: 800px;
}

.modal-backdrop.show {
    opacity: 0.8; /* 调整背景阴影的透明度 */
}

.modal-content {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* 调整模态框本身的阴影效果 */
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1px; /* 可以根据需要调整按钮之间的间距 */
}



@media (max-width: 991px) {
    html {
        font-size:16px
    }

    h1,.h1 {
        font-size: 31px
    }

    h2,.h2 {
        font-size: 26px
    }

    h3,.h3 {
        font-size: 22px
    }

    h4,.h4 {
        font-size: 18px
    }

    h5,.h5 {
        font-size: 15px
    }

    h6,.h6 {
        font-size: 13px
    }

    .blockquote {
        margin-left: 2rem;
        margin-right: 2rem
    }
}

.homeBootom{
    height: 50px;
}

.p-home{
    padding: 3rem;
}

.loginView{
    border-radius: 10px;
}

.show-xs{
    display: none;   
}


/* 表格容器，设置固定高度和滚动 */
.table-container {
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    border: 1px solid #ddd; /* 可选：添加边框 */
}

/* 固定表头 */
.table thead {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

/* 表头和单元格样式 */
.table th, .table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* 输入框内容居中 */
tbody tr .form-control {
    text-align: center;
}


/* 全局竖向和横向滚动条样式 */
::-webkit-scrollbar {
    width: 5px; /* 竖向滚动条宽度 */
    height: 5px; /* 横向滚动条高度 */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道背景色 */
    border-radius: 4px; /* 轨道圆角 */
}

::-webkit-scrollbar-thumb {
    background: #0d6efd; /* 滚动条滑块颜色（蓝色） */
    border-radius: 4px; /* 滑块圆角 */
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7; /* 滚动条滑块悬停颜色（深蓝色） */
}


/*
    分类列表Css
*/

.classlist .containers {
    display: flex;
    width: 100%;
    margin: 0 auto;
}

.classlist .category-list {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    max-height: calc(100vh - 120px); /* Adjusted height */
    border-right: 1px solid #ddd;
}

.classlist .category-item {
    padding: 10px;
    cursor: pointer;
}

.classlist .category-item:hover {
    background-color: #f0f0f0;
}

.classlist .active {
    background-color: #f0f0f0; /* 选中状态的背景颜色 */
}



.classlist .product-list {
    flex: 3;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: calc(100vh - 18vh); /* Adjusted height */
}

.classlist .product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.classlist .product-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.classlist .bg-light {
    background-color: #f8f9fa;
}

.classlist .bg-white {
    background-color: #fff;
}

.classlist .shadow-lg {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.classlist .rounded {
    border-radius: 8px;
}

.classlist .text-center {
    text-align: center;
}

.classlist .mb-2 {
    margin-bottom: 0.5rem;
}

.classlist .w-100 {
    width: 100%;
}


@media (max-width: 720px){
    .table-container {
        overflow-x: auto; /* 启用水平滚动 */
    }

    .table {
        display: block;
        width: 100%;
    }

    .table thead {
        position: sticky;
        top: 0;
        background-color: #fff;
        z-index: 1;
    }
    
    .p-home{
        padding: 1rem;
    }
    
    .loginView{
        margin: 10px;
    }
    
    .show-xs{
        display: block; 
    }
    
    .hideen-xs{
        display: none;   
    }
    
    tbody tr .form-control{
         min-width:100px
    }

}

.swiper{
     margin-left:0;
}