/* 全局样式，重置样式 */
html,
body {
  // 宽度 100vw 会出现横向滚动条
  // width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.ant-drawer-body {
  padding: 10px;
}

.ant-table-wrapper {
  overflow-y: auto;
  overflow-x: auto;
}

.ant-table-body {
  overflow-x: auto !important;
}

.search-input-item {
  width: 140px;
  /* margin-right: 10px; */
}

.filter {
  margin-bottom: 10px;
}
/*
.ant-btn {
  margin-right: 10px;
} */

.ant-btn-sm {
  font-size: 12px;
}

pre {
  margin: 0;
}

.ant-modal-confirm-body .ant-modal-confirm-content {
  font-size: 16px;
}

.ant-modal-confirm-body .ant-modal-confirm-title {
  font-size: 18px;
  font-weight: bold;
}

.hide-scrollbar *::-webkit-scrollbar {
  width: 0 !important;
  display: none;
}

.hide-scrollbar * {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar pre::-webkit-scrollbar {
  width: 0 !important;
  display: none;
}

.hide-scrollbar pre {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@color-border-last: rgba(140, 140, 140, 1);
@color-neutral-last: rgba(140, 140, 140, 0.2);
@scrollbar-size: 5px;

// 兼容火狐
* {
  scrollbar-width: thin;
  scrollbar-color: @color-border-last @color-neutral-last;
}
// 滚动条样式
::-webkit-scrollbar {
  width: @scrollbar-size;
  height: @scrollbar-size;
  border-radius: @scrollbar-size;
  background-color: transparent;
}
// 滚动条-活动按钮
::-webkit-scrollbar-thumb {
  background: @color-border-last;
  border-radius: @scrollbar-size;
  box-shadow: outset 0 0 @scrollbar-size @color-border-last;
}
// 滚动条背景
::-webkit-scrollbar-track {
  background-color: @color-neutral-last;
  border-radius: @scrollbar-size;
  box-shadow: outset 0 0 @scrollbar-size @color-neutral-last;
}

// 兼容火狐
.force-scrollbar * {
  scrollbar-width: thin;
  scrollbar-color: @color-border-last @color-neutral-last;
}
// 滚动条样式
.force-scrollbar *::-webkit-scrollbar {
  width: @scrollbar-size !important;
  height: @scrollbar-size !important;
  border-radius: @scrollbar-size !important;
  background-color: transparent !important;
  display: block !important;
}
// 滚动条-活动按钮
.force-scrollbar *::-webkit-scrollbar-thumb {
  background: @color-border-last !important;
  border-radius: @scrollbar-size !important;
  box-shadow: outset 0 0 @scrollbar-size @color-border-last !important;
}
// 滚动条背景
.force-scrollbar *::-webkit-scrollbar-track {
  background-color: @color-neutral-last !important;
  border-radius: @scrollbar-size !important;
  box-shadow: outset 0 0 @scrollbar-size @color-neutral-last !important;
}

.ant-space {
  flex-wrap: wrap;
  gap: 10px 0;
}
.text-overflow-hidden {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
