/* 此css是对element本身css的补充，对element样式有任何修改优化的地方，都增加到此css */
[v-cloak] {
    display: none;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
}

#vue_item,
.el-container {
    height: 100%;
}

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

.el-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.left_logo_item {
    text-align: center;
    padding: 10px 0;
    /* display: flex;
    align-items: center; */
}

.left_logo_item img {
    height: 60px;
}

.title_info {
    color: #fff;
    font-size: 12px;
    text-align: right;
    padding: 0 20px 0 10px;
    margin-bottom: 20px;
}

.guide_right_item {
    display: flex;
    align-items: center;
}

.card-header {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.header_add_btn {
    font-size: 16px;
}

.el-pagination {
    justify-content: flex-end;
    margin-top: 10px;
}

.flex {
    display: flex;
}

.flex_wrap {
    flex-wrap: wrap;
}

.flex_align_center {
    align-items: center;
}

.justify_content_center {
    justify-content: center;
}

.justify_content_between {
    justify-content: space-between;
}

.justify_content_around {
    justify-content: space-around;
}

.el-sub-menu {
    position: relative;
}

.menu-bar {
    position: absolute;
    left: 0;
    top: 0;
    transition: all .2s;
    -webkit-transition: all .2s;
    width: 5px !important;
    height: 56px !important;
    background-color: #e62129
}

.menu-bar {
    z-index: 1000;
    display: none;
}

.is-active .menu-bar {
    display: block;
}

/* 确保 html 和 body 占满屏幕且无默认边距 */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Vue 挂载点占满全屏 */
#vue_item {
    height: 100%;
    width: 100%;
}

/* 外层容器占满高度 */
.full-height-container {
    height: 100%;
}

/* 侧边栏容器样式 */
.el-menu-container {
    height: 100%;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* 子菜单区域样式 */
.dhkleftmenu {
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    color: #ffffff;
}

/* 主内容区域占满剩余高度并内部滚动 */
.el-main {
    padding: 20px;
    height: calc(100% - 40px);
    overflow-y: auto;
}

/* 隐藏滚动条但保持滚动功能 */
.el-menu-vertical-demo::-webkit-scrollbar {
    display: none;
}

.el-menu-vertical-demo {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* 主菜单项背景色 */
.el-menu-vertical-demo .el-menu-item {
    background-color: #222222;
}

/* 子菜单项背景色 */
.el-menu-vertical-demo .el-menu-item:hover,
.el-menu-vertical-demo .is-active {
    background-color: #fa0000;
    color: #ffffff
}

.el-menu-vertical-demo h1.admin-title {
    color: white;
    font-size: 20px;
    text-align: center;
    line-height: 50px;
}

.el-menu-vertical-demo .dhkleftmenu {
    overflow-y: auto;
}

.dhkleftmenu .el-link {
    color: #ffffff !important;
    --el-link-text-color: #ffffff !important;
}

.dhk-card {
    height: 99%;
}

.dhk-card .el-pagination {
    margin-top: 0px;
}

.dhk-card .el-card__header {
    padding-bottom: 6px;
}

.dhk-card .el-card__footer {
    padding: 5px;
    line-height: 30px;
}

.el-form-item {
    margin-bottom: 8px;
}

.cart-item-image {
    width: 100%;
    height: 100%;

    .img {
        width: 60px;
        height: 60px;
        margin-right: 10px;
        display: inline-block;
    }

    .title {
        display: inline-block;
        width: calc(100% - 70px);
    }
}
