@font-face {
    font-family: "HarmonyOS_Sans_SC_Medium";
    src: url('/static/fonts/HarmonyOS_Sans_SC_Medium.woff2') format("woff2");
    font-display: swap;
}

:root {
    --tblr-font-sans-serif: -apple-system, HarmonyOS_Sans_SC_Medium, microsoft yahei, sans-serif;
    --tblr-primary: #0d53ff;
    --tblr-primary-rgb: 13, 83, 255;
    
    --tblr-link-hover-color: color-mix(in oklab, var(--tblr-primary), transparent 20%);
    --tblr-body-bg: #f6f8ff;
    --tblr-body-bg-rgb:246, 248, 255;
    --tblr-content-bg: #FFFFFF; 
    --tblr-border-color: #CFDDFF;/*0.2*/
    --tblr-border-active-color: #0d53FF;
    --tblr-border-color-translucent: #CFDDFF;
    --tblr-theme-1: rgba(var(--tblr-primary-rgb), 0.04);
    --tblr-theme-2: rgba(var(--tblr-primary-rgb), 0.08);

}

.btn,.navbar,.toast,.avatar,.card,.input-group,.form-control,.form-check-input,.dropdown-menu,.modal-content,.form-selectgroup-input:focus+.form-selectgroup-label,.page-link:focus{
    box-shadow: none !important;
}
.toast,.alert,.card,.modal-content {
    border: none !important;
}
.form-control:focus,.form-check-input:focus,.input-group-flat:focus-within .form-control, .input-group-flat:focus-within .input-group-text{
    border-color: var(--tblr-primary) !important;
}
.input-group-text{
    background-color: var(--tblr-theme-1);
}
a:hover {
    text-decoration: none;
}
/* img{
    display: block;
} */
.card{
    --tblr-card-bg:var(--tblr-body-bg);
    --tblr-card-spacer-x: 1rem;
}
.btn-action{
    background: var(--tblr-theme-1);
}
.btn-action.show, .btn-action:hover{
    background: var(--tblr-theme-2);
}
.btn-link{
    color: var(--tblr-primary);
}
.btn-link:hover{
    color: var(--tblr-link-hover-color);
    text-decoration: none;
}
.btn-group-sm>.btn, .btn-sm{
    --tblr-btn-line-height: 1.25rem;
    --tblr-btn-padding-x: 0.75rem;
}
.dropdown-menu{
    --tblr-dropdown-border-color: var(--tblr-border-color);
    max-height: 200px;
}
.dropdown-item:focus, .dropdown-item:hover{
    background-color: var(--tblr-theme-1);
    cursor: pointer;
}
.badge{
    border-radius: 3px;
}
.icon.ti{
    width: auto !important;
    height: auto !important;
}
.nav-vertical .nav-link{
    margin: 0.25rem 0.5rem;
    padding: 1rem 0.75rem;
    border-radius: 5px;
}
.nav-vertical .nav-link:hover .edit{
    display: block !important;;
}
.list-group-hoverable .list-group-item:hover{
    background-color: var(--tblr-theme-1);
}
/*
*/
/*tab*/
.modal .card-tabs .nav-tabs .nav-link {
    border: none !important;
    background-color: initial;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0 !important;
}

.modal .card-tabs .nav-tabs .nav-link.active{
    background:var(--tblr-body-bg);
}
#selectCategory .card-tabs .nav-tabs .nav-link{
    padding: 0.5rem 2rem;
}
/*上传*/
.image-upload{
    width: 4rem;
    height: 4rem;
}
.image-upload-big,.image-group-big .image-upload{
    width: 8rem;
    height: 8rem;
}
.image-upload:hover .image-upload-delete{
    background-color: var(--tblr-danger);
    position: absolute;
    top: 0;
    right: 0;
    width: 1.3rem;
    height: 1.3rem;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    transform: translate(50%, -50%);
    color: #FFFFFF;
}
/* .image-upload-delete .icon{
    color: #FFFFFF;
} */
/*页面*/
.page{
    height: 100vh;
}
.content{
    border-top-left-radius: 12px;
    background-color: var(--tblr-content-bg);
    width: calc(100% - 76px);
}
/* 登录页 */
.login-page{
    background-image: url('/static/images/login_bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 100%;
}
.login-content{
    min-height: 280px;
}

.logo {
    width: 76px !important;
    height: 76px;
}
.logo .icon{
    width: 38px;
    height: 38px;
    color: var(--tblr-primary);
}
.login-logo{
    height: 50px;
}
.switch_login{
    color: var(--tblr-secondary) !important;
}
.nav-switch .active,.switch_login:hover,.nav-switch a:hover{
    color: #000 !important;
}
.wechat-code{
    width: 180px;
}
/* 侧边栏 */
.sidebar{
/* width: 76px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1030; */
        /* align-items: flex-start;
        transition: transform .3s;
        overflow-y: scroll;
        padding: 0; */
}
.sidebar-item{
    width: 76px;
    height: 80px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
@media (max-height: 760px) {
    .sidebar-item{
        height: 75px;
  }
}

.sidebar-img {
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    margin-bottom: 5px;
}
.sidebar-img .icon {
    --tblr-icon-size: 1.5rem !important;
}
.sidebar-text {
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--tblr-gray-400);
}
.sidebar-item:hover:hover .sidebar-img,.sidebar-img.show {
    transform: scale(1.5);
}
.sidebar-item:hover .sidebar-text {
    color: initial;
    transform: translateY(6px);
    font-size: 0.95rem !important
}
/* 搜索栏 */

.search-badge{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    padding: .6rem 1rem;
}
.badge-list {
    line-height: 1;
}
.badge-list  .badge-list-item.badge{
    margin-left: 5px;
}
.badge-list .badge:first-child{
    position: relative;
    margin-left: 15px;
    overflow: visible;
}
.badge-list .badge:first-child::after{
    height: 50px;
    width: 1px;
    content: "";
    position: absolute;
    top: -10px;
    left: -9px;
    border-radius: .25rem;
    border: 0.01rem dashed var(--tblr-border-color);
}
.badge-list .badge-list-item{
    display: inline-block;
}

.badge .icon{
    width: 1em !important;
    height: 1em !important;
    margin: 0 !important;
    font-size: var(--tblr-badge-icon-size) !important;
}
/* 导航栏 */
.nav-sub a{
    color: var(--tblr-gray-400);
    font-size: var(--tblr-font-size-h3);
    margin-left: 1.5rem;
    position: relative;
}
.nav-sub a::after{
    height: 15px;
    width: 1px;
    content: "";
    position: absolute;
    top: 0.28rem;
    left: -0.75rem;
    border-radius: .25rem;
    border: 0.01rem solid var(--tblr-border-color);
}
.nav-sub a:first-child::after{
    border: none;
}
.nav-sub a.active,.nav-sub a.select{
    font-weight: bold;
}
.nav-sub a.active,.nav-sub a:hover,.nav-sub a.select{
    color: var(--tblr-primary) !important;
}

.nav-line {
    width: 1px;
    height: 20px;
    border-right: 0.01rem dashed var(--tblr-border-color);
}

/* 固定顶部 */
.sticky-top{
    z-index: 999;
}
/* 表格 */
.table tbody tr{
    cursor: pointer;
}
/* .select-user-table tbody tr:hover{
    background-color: var(--tblr-gray-100);
} */
.table thead th{
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    /* background-color: #ffffff; */
    /* background-color: rgba(var(--tblr-primary-rgb), 0.03); */
    background-color: var(--tblr-body-bg);
    /* color: #000000; */
    font-size: 0.85rem;
    font-weight: bold;
}
.table>:not(caption)>*>*{
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}
/* .table:not(.no-radius-table) tbody tr td:first-child{
    border-radius: 5px 0 0 5px;
}
.table:not(.no-radius-table) tbody tr td:last-child{
    border-radius: 0 5px 5px 0;
} */
.table tbody tr:hover {
        /* background-color: var(--tblr-table-striped-bg); */
}
.table .form-check-input:not(:checked){
    /* border-color: var(--tblr-primary); */
    background-color: rgba(var(--tblr-primary-rgb), 0.1);
    border: none;
}
.table tbody tr:last-child td{
    border-bottom: none;
}

.table-striped>tbody>tr:nth-of-type(2n)>* {
    --tblr-table-bg-type: var(--tblr-body-bg);
}
.table-striped>tbody>tr:nth-of-type(2n+1)>* {
    --tblr-table-bg-type: #FCFDFF;
}
/*附件*/
.files:hover .files-box{
    background-color: rgba(var(--tblr-primary-rgb), 0.04);
    border-radius: 5px;
}
.files:hover .files-action{
    display: inline-flex !important;
}
.files-img {
    aspect-ratio: 1 / 1;
}
.files-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.files-action{
    position: absolute;
    right: .75rem;
    top: .75rem;
}
/*身体评测*/
.body-item:before {
    content: "";
    margin-right: .5rem;
    flex: 1 1 auto;
    height: 1px;
    background-color: var(--tblr-border-color);
}
@keyframes dotPulse {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 2px var(--tblr-primary), 0 0 4px rgba(54, 162, 235, 0.3);
  }
  50% {
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 4px var(--tblr-primary), 0 0 10px rgba(54, 162, 235, 0.6), 0 0 16px rgba(54, 162, 235, 0.3);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 2px var(--tblr-primary), 0 0 4px rgba(54, 162, 235, 0.3);
  }
}

.body-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--tblr-primary);
    animation: dotPulse 2s ease-in-out infinite;
}
.body-item .form-selectgroup-label{
    padding: 0 0.25rem;
    font-size: .75rem !important;
    border-radius: 3px;
}

.body-box{
    max-width: 500px;
    aspect-ratio:1/1; 
    min-height:500px;
}
@media (min-width: 1400px) {
    /* .body-item .form-selectgroup-label{
        padding: 0.3125rem 0.75rem;
        font-size: .875rem  !important;
    }*/
} 
@media (min-width: 1600px) {
    .body-item .form-selectgroup-label{
        /* padding: 0.3125rem 0.75rem; */
        padding: 0.5625rem 1rem;
        font-size: .875rem  !important;
        border-radius: 5px;
    }
    .body-box{
        max-width: 800px;
        aspect-ratio:1/1; 
        min-height:750px;
    }
}
/**/
#tongueItemContainer .tongue-item:nth-of-type(2n) {
    background-color: var(--tblr-body-bg);
}
#tongueItemContainer .tongue-item:nth-of-type(2n+1) {
    background-color: #FCFDFF;
}
/* 滚动条 */
.scrollbar::-webkit-scrollbar {
    display: none;
}
.scrollbar {
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: auto;
    max-height: 100%;
}

.cashier-sidebar{
    width: 360px;
}
/* @media (min-width: 1200px) {
    .cashier-sidebar{
        width: 300px;
    }
} */
@media (min-width: 1400px) {
    .cashier-sidebar{
        width: 400px;
    }
}
@media (min-width: 1600px) {
    .cashier-sidebar{
        width: 500px;
    }
}

