:root {
    --primary-text-color: #fff;
    --primary-bg-color: #4B4B4D;
}
.white-theme {
    --primary-bg-color: #fff;
    --primary-text-color: #333;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    outline: none;
    padding: 0;
	border: 0;
    font-family: "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-sans;
	user-select: none;
    font-size: 14px;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--primary-bg-color) !important;
}
button {
    border: none;        /* 去除边框 */
    outline: none;       /* 去除点击时的外轮廓 */
}

/* 内容区域 */
.content-wrapper {
    width: 100%;
    height: calc(100vh - 73px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 添加 修改打印机样式表 */
.main-container {
    display: flex;
    width: 100%; /* 设置主容器宽度 */
    flex-grow: 1;
    background: var(--primary-bg-color);
    overflow-y: auto;
}

/* 内容区域 */
.card-content-area {
    width: 100%;
    overflow-y: auto;
    padding: 0 0 80px 10px;
    box-sizing: border-box;
    font-family: Source Han Sans CN;
}

/* 卡片盒子 */
.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* 搜索区域为空时 */
.search-printer-empty {
    width: 800px;
    height: 500px;
    background: #4B4B4D;
    border-radius: 5px;
    border: 1px dashed #7A7A7F;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    row-gap: 20px;
}
.search-printer-empty div {
    font-family: Source Han Sans CN;
    font-weight: bold;
    font-size: 12px;
    color: #B7B7B7;
}
/* 卡片样式 */
.card-list-item {
    width: 260px;
    /* height: 330px; */
    padding: 12px 10px 11px 9px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #6E6E72;
    /* background: #5D5D61; */
}
.card-item-title {
    display: flex;
    justify-content: space-between;
}
.card-item-title span {
    font-weight: bold;
    font-size: 14px;
    /* color: #FFFFFF; */
}
.card-list-size {
    height: 12x;
    line-height: 12px;
    font-weight: bold;
    font-size: 12px;
    /* color: #ADADAD; */
}
.card-list-img {
    /* padding-top: 15px; */
    box-sizing: border-box;
}
.card-list-img img {
    display: block;
    margin: 0 auto;
    width: 190px;
    height: 180px;
}
.card-list-aperture {
    font-weight: bold;
    font-size: 12px;
    color: #FFFFFF;
    line-height: 24px;
}
.card-list-add-nozzle {
    display: flex;
    position: relative;
    gap: 7px;
    flex-wrap: wrap;
}
.card-list-add-nozzle button {
    width: 75px;
    height: 28px;
    background: #74747B;
    border-radius: 5px;
    cursor: pointer;
}
/* 删除icon图标 */
.card-list-item-button {
    position: relative;
}
.card-list-item-button svg {
    display: none;
    position: absolute;
    right: -5px;
    top: -10px;
}
/* 更改svg图标颜色 */
.card-list-item-button svg:hover path:nth-child(1){
    fill: #f00 !important;
}
.card-list-item-button svg:hover path:nth-child(2) {
    fill: #fff;
}

.card-list-item-button:hover svg {
    display: block;
}
/* 添加打印机按钮 悬浮效果 */
.card-add-printer-button {
    /* position: relative; */
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.un-selected-btn {
    opacity: 30%;
}
.card-add-printer-button:hover .card-list-item-checked-printer-wrapper{
    display: block;
}
.card-list-item-checked-printer-wrapper {
    position: absolute;
    border: 1px solid #262626;
    left: 0;
    top: 30px;
    width: 237px;
    height: 108px;
    background: #4B4B4D;
    box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
    border-radius: 5px;
    /* display: none; */
    z-index: 1000;
}
.card-list-item-checked-printer {
    /* 设置父元素样式 */
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 40px;
    padding: 17px;
    box-sizing: border-box;
}
.card-list-item-checked-printer div {
    width: 60px;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 20px;
}

#Content {
    width: 100%; 
    overflow-y: auto; 
    height:100%;
    margin-top: 40px;
    padding-top: 0;
} 
.selectAllBtn{
    display: flex;
    height: 30px;
    padding-right: 22px;
    align-items: center;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
#selectAll{
    background-color:#17cc5f;
    color: #ffffff;
    border: 1px solid #ffffff;
}


.acceptArea {
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--primary-bg-color);
}
.acceptArea-white {
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #fff;
}


/* 左侧打印机分类导航 */
#tree-container{
    width: 330px;
    max-height: 480px;
    /* height: calc(100% - 40px); */
    padding-left: 10px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    justify-items: center;
    overflow-y: auto;
}

/* 树形列表样式 */
.tree-wrapper {
    width: 100%;
    height: 100%;
    flex: 0;
    box-sizing: border-box;
}
.tree-title-wrapper {
    width: 100%;
    height: auto;
    cursor: pointer;
}
.tree-node-list {
    width: 100%;
    padding-right: 10px;
    flex: 1;
    box-sizing: border-box;
    font-family: "Source Han Sans CN";
    font-size: 12px;
}
.tree-node-list div {
    cursor: pointer;
}
.tree-node-item {
    padding: 8px 0px 7px 14px;
    border-radius: 5px;
    color: #CBCBCC;
}
.tree-node-item-white {
    padding: 8px 0px 7px 14px;
    border-radius: 5px;
    color: #666;
}
.search-tip {
    width: 318px;
    height: 28px;
    margin-left: 20px;
    margin-top: 10px;
    padding: 3px 0;
    border-radius: 5px;
    text-align: center;
    line-height: 28px;
    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 12px;
    color: #FFFFFF;
}
#search-result {
    display: none;
}
.is-selected {
    background-color: #17cc5f;
    color: #fff !important;
}

/* icon折叠 */
.tree-title {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    display: inline-block;
    width: 100%;
    line-height: 36px;
    height: 36px;
}
/**/
.hover-bth-selected {
    border: 2px solid #17CC5F !important;
}



.dialog {
    display: none;
    position: absolute;
    width: 300px;
    height: 150px;
    background-color: #181818;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.dialog-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 30px;
    color: #fff;
}

.confirm-btn {
    width: 80%;
    background: red;
    cursor: pointer;
    width: 120px;
    height: 24px;
    line-height: 24px;
    background: #17CC5F;
    border-radius: 12px 12px 12px 12px;
    text-align: center;
}
.dialog .ConfirmBtn{
    /* position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%); */
}
.dialog span {
    /* color: #ffffff;
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%); */
}
  
/* 搜索框 */
.wrap{
    width: 100%;
    padding: 6px 30px 0 23px;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    box-sizing: border-box;
    background: var(--primary-bg-color);
  }
 /* .wrap-white {
    width: 100%;
    padding: 6px 30px 0 23px;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    box-sizing: border-box;
    background: #fff;
 } */
.searchTerm {
    display: inline-block;
    width: 100%;
    height: 24px;
    padding: 6px 30px;
	border: 1px solid #7A7A7F;
	border-radius: 5px;
    box-sizing: border-box;
    outline: none;
    background: var(--primary-bg-color);
  }
  .search {
    width: 100%;
    position: relative;
  }
  #searchPrinterAll:focus{
	color: #fff;
  }
  #searchPrinterAll::placeholder {
    color: #CBCBCC;
    padding-left: 0px;
}
.printer-search-remove {
    position: absolute;
    right: 8px;
    top: 7px;
    cursor: pointer;
    display: none;
}
.printer-search-icon {
    position: absolute;
    left: 5px;
    top: 5px;
  }
/* 用户区域样式 */
#userContainer {
    width: 100%;
    height: 100vh;
    padding: 15px 22px 5px 16px;
    box-sizing: border-box;
    background: #4B4B4D;
    font-size: 12px;
}
/* 切换专家与用户显示按钮*/
.toggle-user-type {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4B4B4D;
}
/* 白色背景色 */
.toggle-user-type-white {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.button-wrapper {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #6E6E72;
    border-radius: 15.5px;
    padding: 2px 1px;
}
.button-wrapper button {
    margin: 0;
    width: 100px;
    border: none;
    font-size: 16px;
    color: #CBCBCC;
    border-radius: 15.5px;
}
/* 黑色主题色 */
.toggle-button {
    display: inline-block;
    color: #f0f0f0;
    outline: none;
    background: #6E6E73;
    border-radius: 5px;
    padding: 6px 15px;
    margin: 10px 5px 0 10px;
    cursor: pointer;
    width: 120px;
    text-align: center;
}
/* 白色主题色 */
.toggle-button-white {
    display: inline-block;
    color: #333333 !important;
    outline: none;
    background: #fff;
    border-radius: 5px;
    padding: 6px 15px;
    margin: 10px 5px 0 10px;
    cursor: pointer;
    width: 120px;
    text-align: center;
}
.toggle-button:hover {
    background: #17cc5f;
    color: #fff;
}
/* 黑色主题色 */
.toggle-button-isChecked {
    background: #17cc5f;
    color: #fff !important;
}

.select-container {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    align-items: center;
    height: 30px;
}
.select-container div {
    height: 24px;
}
.select-container div label {
    padding-right: 8px;
    color: #fff;
}
.select-container div select {
    height: 24px;
}
.select-container div input {
    height: 24px;
}
#brand {
    background: #4B4B4D;
    border-radius: 5px;
    font-weight: 500;
    font-size: 12px;
    border: 1px solid #6E6E72;
}
#brand:focus {
    outline: none;
}
#machine:focus {
    outline: none;
}
#machine {
    background: #4B4B4D;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #6E6E72;
}
.machine-search {
    position: relative;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 5px;
}
#site-search {
    font-size: 12px;
    font-weight: 500;
    padding: 1px 20px;
    background: #4B4B4D;
    border-radius: 5px;
    color: var(--primary-text-color);
    border: 1px solid #6E6E72;
}
#site-search::placeholder {
    color: #CBCBCC;
}
#site-search:focus {
    outline: none;
}

/* 用户全选 */
.check-all-area {
    display: flex;
    gap: 5px;
    align-items: center;
}
.check-all-area input[type=checkbox] {
    height: 14px;
}
/* 添加打印机 喷嘴 */
.add-printer-setting-area {
    flex: 1;
    padding-left: 50px;
    height: 24px;
    display: flex;
    gap: 10px;
}
.add-printer-setting-area button {
    width: 120px;
    height: 24px;
    line-height: 24px;
    background: #6E6E73;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-align: center;
    padding-left: 20px;
}
/* 卡片区域样式代码 */
.card-container {
    width: 100%;
    /* max-height: 460px; */
    overflow-y: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #4B4B4D;
}
.card-area {
    width: 250px;
    height: 286px;
    background: #5D5D61;
    padding: 8px 8px 12px 8px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #6E6E72;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header span {
    font-size: 14px;
    font-weight: bold;
    color:#ADADAD;
}
.img-area img {
    display: block;
    object-fit: cover;
    width: 101px;
    height: 120px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.content-area div {
    width: 100%;
    display: flex;
    align-items: center;
}
.params-name {
    color: #ADADAD;
    font-size: 10px;
    display: inline-block;
    line-height: 21px;
    width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.params-value {
    color:#FFFFFF;
    display: inline-block;
    line-height: 12px;
    font-size: 12px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.params-value-common {
    line-height: 24px;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 12px;
}

/* css 复选框 */
input[type=checkbox] {
    cursor: pointer;
    position: relative;
}

input[type=checkbox]::after {
    position: absolute;
    top: 0;
    /* background-color: #fff; */
    background: #4B4B4D;
    color: #fff;
    width: 14px;
    height: 14px;
    display: inline-block;
    visibility: visible;
    padding-left: 0px;
    text-align: center;
    content: ' ';
    border-radius: 3px;
    box-sizing: border-box;
    border: 1px solid #ddd;
}

input[type=checkbox]:checked::after {
    content: "";
    background-color: #17CC5F;
    border-color: #17CC5F;
    background-color: #17CC5F;
}
input[type=checkbox]:checked::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    z-index: 1;
}
/* 定义滚动条轨道样式 */
div::-webkit-scrollbar{
    width:5px;
    height:5px;
    /**/
  }
  div::-webkit-scrollbar-track{
    background: #4B4B4D;
    border-radius:2px;
  }
  div::-webkit-scrollbar-thumb{
    width: 6px;
    height: 100px;
    background: #7E7E84;
    border-radius: 3px;
  }
  div::-webkit-scrollbar-thumb:hover{
    background: #999;
  }
  div::-webkit-scrollbar-corner{
    background: #204754;
  }