[hidden] {
  display: none !important;
}
[v-hidden] {
  visibility: hidden !important;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

.flex {
  display: flex;
}
.flex-shrink {
  flex-shrink: 0;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}

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

.space-x-margin-m > :not([hidden]) ~ :not([hidden]) {
  margin-left: 6px;
}
.space-y-margin-m > :not([hidden]) ~ :not([hidden]) {
  margin-top: 6px;
}

.space-x-margin > :not([hidden]) ~ :not([hidden]) {
  margin-left: 12px;
}

.space-y-margin > :not([hidden]) ~ :not([hidden]) {
  margin-top: 12px;
}

.space-y-margin-l > :not([hidden]) ~ :not([hidden]) {
  margin-top: 24px;
}

.space-x-margin-l > :not([hidden]) ~ :not([hidden]) {
  margin-left: 24px;
}

.space-x-margin-lg > :not([hidden]) ~ :not([hidden]) {
  margin-left: 32px;
}

.space-y-margin-lg > :not([hidden]) ~ :not([hidden]) {
  margin-top: 32px;
}

.text-12 {
  font-size: 12px !important;
}

.text-14 {
  font-size: 14px !important;
}

.text-16 {
  font-size: 16px !important;
}

.text-18 {
  font-size: 18px !important;
}

.text-20 {
  font-size: 20px !important;
}

.text-primary {
  color: var(--theme-primary-color);
}

.text-sm {
  font-size: 12px;
}

.text-success {
  color: #3c763d;
}

.text-success2 {
  color: #0ca6ab;
}

.text-danger {
  color: #ed3c3c;
}

.text-info {
  color: #666666 !important;
}

.text-light {
  color: #999999 !important;
}

.text-black {
  color: #000 !important;
}

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

.btn2 {
  width: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 2rem;
  border-radius: 4px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--theme-dark-text-color);
  cursor: pointer;
  border: 1px solid var(--theme-label-default-bg-color);
}

.btn2:hover {
  transition: opacity 0.1s linear;
  opacity: 0.8;
}

.btn2 .iconfont {
  font-size: 16px;
  margin-right: 4px;
}

.btn2.primary {
  border-color: var(--theme-primary-color);
  background-color: var(--theme-primary-color);
  color: #fff;
}
.btn2.primary-plain {
  border-color: var(--theme-primary-color);
  background-color: #fff;
  color: var(--theme-primary-color);
}

.btn2 + .btn2 {
  margin-left: 12px;
}

.badge {
  line-height: 20px;
  font-size: 12px;
  background: var(--theme-primary-color);
  color: #fff;
  padding: 0 6px;
  border-radius: 8px 0 8px 0;
}

.avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 22px;
  background-color: var(--theme-primary-color);
  color: #fff;
  border-radius: 6px;
  flex-shrink: 0;
}

.avatar.v2 {
  font-size: 14px;
  line-height: 1.3;
  padding: 9px;
}

a.link,
a.link:active {
  color: var(--theme-primary-color) !important;
  text-decoration: none;
  cursor: pointer;
}
a.link[disabled="true"] {
  color: var(--theme-dark-text-color) !important;
}

[data-bg="1"] {
  background-color: #4ab6ad !important;
}
[data-bg="2"] {
  background-color: #ecab81 !important;
}
[data-bg="3"] {
  background-color: #e87d84 !important;
}
[data-bg="4"] {
  background-color: #6eb6e4 !important;
}
[data-bg="5"] {
  background-color: #e8bc73 !important;
}
[data-bg="6"] {
  background-color: #4e9ae7 !important;
}
[data-bg="7"] {
  background-color: #ec9956 !important;
}
[data-bg="8"] {
  background-color: #9180e5 !important;
}
[data-bg="9"] {
  background-color: #5fcf8a !important;
}
[data-bg="10"] {
  background-color: #5a7edb !important;
}
[data-bg="t"] {
  background-color: transparent !important;
}

.tag,
.tag2 {
  font-size: 12px;
  line-height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  white-space: nowrap;
  color: #333 !important;
  display: inline-block;
  background-color: var(--theme-hover-bg-color) !important;
  flex-shrink: 0;
}
.tag[data-type="1"] {
  background-color: #e7e7ff !important;
  color: #6469ff !important;
}
.tag[data-type="2"] {
  background-color: #e6f1fe !important;
  color: #1ba2f5 !important;
}
.tag[data-type="3"] {
  background-color: #f1f5ff !important;
  color: #3874f6 !important;
}
.tag[data-type="4"] {
  background-color: #fce6e6 !important;
  color: #f74d4d !important;
}
.tag[data-type="5"] {
  background-color: #ebf9f9 !important;
  color: #0ca6ab !important;
}
.tag[data-type="6"] {
  background-color: #f4e4c7 !important;
  color: #cf8e12 !important;
}
.tag[data-type="7"] {
  background-color: #dcf1e3 !important;
  color: #1dbd50 !important;
}
.tag[data-type="8"] {
  background-color: #f2e0d0 !important;
  color: #f19b56 !important;
}
.tag[data-type="9"] {
  background-color: #f2f2f2 !important;
  color: var(--theme-light-text-color) !important;
}
.tag[data-type="10"] {
  background-color: #f5f5f5 !important;
  color: var(--theme-medium-text-color) !important;
}

.tag2 {
  line-height: 20px;
  border: 1px solid var(--theme-label-default-bg-color) !important;
}
.tag2[data-type="1"] {
  background-color: #ebf9f9 !important;
  color: #0ca6ab !important;
  border: 1px solid #d2f1f2 !important;
}
.tag2[data-type="2"] {
  background-color: #ffdabc !important;
  color: #f6903d !important;
  border: 1px solid #ffdabc !important;
}
.tag2[data-type="3"] {
  background-color: #ffe4e4 !important;
  color: #f13847 !important;
  border: 1px solid #ffb3b9 !important;
}
.tag2[data-type="4"] {
  background-color: #ecf2fe !important;
  color: #0052d9 !important;
  border: 1px solid #cbdfff !important;
}
.tag2[data-type="5"] {
  background-color: #e2fce3 !important;
  color: #08af0b !important;
  border: 1px solid #b9ebba !important;
}
.tag2[data-type="6"] {
  background-color: #ffeae1 !important;
  color: #f08a5d !important;
  border: 1px solid #ffddce !important;
}
.tag2[data-type="7"] {
  background-color: #f1feff !important;
  color: #3fc1c9 !important;
  border: 1px solid #d0f4f6 !important;
}
.tag2[data-type="8"] {
  background-color: #dee7f2 !important;
  color: #3f72af !important;
  border: 1px solid #c9d7ef !important;
}
.tag2[data-type="9"] {
  background-color: #ececff !important;
  color: #4c4cee !important;
  border: 1px solid #cfcfff !important;
}
.tag2[data-type="10"] {
  background-color: #fff4d5 !important;
  color: #ffba00 !important;
  border: 1px solid #ffeab3 !important;
}
.tag2[data-type="11"] {
  background-color: #fae9e5 !important;
  color: #f5754d !important;
  border: 1px solid #ffd6ca !important;
}
.tag2[data-type="12"] {
  background-color: #e3e8ec !important;
  color: #537791 !important;
  border: 1px solid #d3dce3 !important;
}
.tag2[data-type="13"] {
  background-color: #f6f2ec !important;
  color: #bf8e3f !important;
  border: 1px solid #ede1ce !important;
}

.breadcrumb {
  padding: 0;
  margin-bottom: 16px;
  background: transparent;
}
.breadcrumb a {
  color: var(--theme-light-text-color) !important;
}
.breadcrumb .divider {
  margin: 0 6px;
  color: var(--theme-light-text-color) !important;
}
.breadcrumb a[disabled="disabled"] {
  color: var(--theme-dark-text-color) !important;
}

input::-ms-clear {
  display: none;
}
.clearfix {
  float: none;
  clear: both;
}
.layout-flex {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
}

.component_input .prefix,
.component_input .suffix {
  font-size: 16px;
  color: var(--theme-light-text-color);
}

.component_input .prefix {
  padding-left: 12px;
}
.component_input .suffix {
  padding-right: 12px;
}

/*************** modal ***************/

.custom-modal {
  display: none;
  position: fixed;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  min-width: 460px;
  max-height: 90vh;
  z-index: 1050;
}

.custom-modal-dialog {
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  border-radius: 4px;
}

.custom-modal-dialog .custom-modal-header,
.custom-modal-dialog .custom-modal-footer {
  flex-shrink: 0;
  padding: 13px 24px;
}

.custom-modal-dialog .custom-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 13px 24px;
}

.custom-modal-dialog .custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeeeee;
}

.custom-modal-dialog .custom-modal-header .custom-modal-title {
  line-height: 22px;
  font-size: 14px;
}

.custom-modal-dialog .custom-modal-header .close {
  font-size: 22px;
  color: var(--theme-dark-text-color);
  transition: color 0.1s linear;
  cursor: pointer;
}

.custom-modal-dialog .custom-modal-header .close:hover {
  color: var(--theme-primary-color);
}

.custom-modal-dialog .custom-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #eeeeee;
}

/* 主选项卡 */
.main-tabs-header-wrap {
  min-height: 49px;
}
.main-tabs-header {
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  border-bottom: 1px solid #ededed;
  min-height: 49px;
  width: 1170px;
  background: #fafafa;
}

.main-tabs-header.fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 699;
}
.main-tabs-header li {
  width: 195px;
  text-align: center;
  line-height: 47px;
  background-color: #fafafa;
  cursor: pointer;
  border-right: 1px solid #ededed;
}

.main-tabs-header li:last-child {
  border-right: none;
}
.main-tabs-header li span {
  color: #999;
  font-size: 12px;
  margin-left: 4px;
}
.main-tabs-header li.active,
.main-tabs-header li:hover {
  color: #3874f6;
  background-color: #fff;
}
/* .main-tabs-body > div {
  display: none;
}
.main-tabs-body > div.active {
  display: block;
} */

/* 子选项卡 */
.child-tabs-header {
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  border-bottom: 1px solid #ededed;
  padding: 16px 24px;
  flex-wrap: wrap;
  /* white-space: nowrap; */
  padding-bottom: 8px;
}
.child-tabs-header li {
  padding: 0 8px;
  line-height: 28px;
  border-radius: 4px;
  border: 1px solid #dee5ec;
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  color: #55616d;
}
.child-tabs-header li:last-child {
  margin-right: 0;
}
.child-tabs-header li span {
  margin-left: 4px;
}
.child-tabs-header li:hover:not([disabled]) {
  color: #fff;
  background-color: #3874f6;
  border-color: #3874f6;
}
.child-tabs-header li[disabled="disabled"] {
  background-color: #f5f5f5;
}

.common-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-color: #6595e2;
  line-height: 1.3;
  font-size: 18px;
  word-break: break-all;
  color: #fff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.common-logo.m {
  width: 56px;
  height: 56px;
  font-size: 16px;
  padding: 12px;
}

.common-logo.sm {
  width: 48px;
  height: 48px;
  font-size: 14px;
  padding: 10px;
}

.common-logo.xsm {
  width: 48px;
  height: 48px;
  font-size: 14px;
  padding: 10px;
  transform: scale(0.5);
  margin: -12px;
}

.common-logo .logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #eeeeee;
  overflow: hidden;
}

.common-logo .logo img {
  max-width: 100%;
  max-height: 100%;
}

.tab-dropdown-wrapper {
  background: #fafafa;
  box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.1), 0px 8px 10px 1px rgba(0, 0, 0, 0.06),
    0px 3px 14px 2px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  display: flex;
}

.tab-dropdown-wrapper .tab-dropdown-item-wrapper {
  width: 195px;
}
.tab-dropdown-wrapper .tab-dropdown-item-wrapper {
  border-right: 1px solid #ededed;
}
.tab-dropdown-wrapper .tab-dropdown-item-wrapper:last-child {
  border-right: none;
}
.tab-dropdown-wrapper .tab-dropdown-item-wrapper:hover {
  background: #fff;
}

.tab-dropdown-wrapper .tab-dropdown-item-wrapper li {
  line-height: 28px;
  padding-left: 13%;
  padding-right: 2px;
  cursor: pointer;
}

.tab-dropdown-wrapper .tab-dropdown-item-wrapper li:hover {
  color: var(--theme-primary-color);
}
.tab-dropdown-wrapper .tab-dropdown-item-wrapper li span {
  color: var(--theme-primary-color);
  margin-left: 4px;
}

.tab-dropdown-wrapper .tab-dropdown-item-wrapper li[disabled] {
  color: var(--theme-light-text-color) !important;
}

.menu-tabs {
  position: fixed;
  top: 48px;
  left: calc(100vw / 2 + 600px);
}

.menu-tabs .title {
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
  color: var(--theme-dark-text-color);
  margin-bottom: 10px;
  padding-left: 8px;
}

.menu-tabs .div {
  margin-left: -4px;
  max-height: calc(100vh - 60px - 24px);
  overflow-y: auto;
  scroll-behavior: smooth;
}
.menu-tabs .div::-webkit-scrollbar {
  display: none;
}
.menu-tabs .ul {
  margin-left: 4px;
  border-left: 1px solid #ededed;
  padding-left: 8px;
}

.menu-tabs .ul li {
  margin: 3px 0;
  padding: 3px 6px;
  border-radius: 2px;
  position: relative;
  font-size: 12px;
  cursor: pointer;
}

.menu-tabs .ul li:first-child {
  margin-top: 0;
}
.menu-tabs .ul li:last-child {
  margin-bottom: 0;
}

.menu-tabs .ul li[disabled] {
  color: var(--theme-light-text-color) !important;
  background-color: transparent !important;
}

.menu-tabs .ul li:hover,
.menu-tabs .ul li.active {
  background-color: #e2f1fd;
  color: var(--theme-primary-color);
}

.menu-tabs .ul li.active::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  border: 2px solid var(--theme-primary-color);
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
}
@media (max-width: 1550px) {
  .menu-tabs {
    display: none !important;
  }
}
