:root {
  --color-primary: #007bff;
  --header-height: 80px;
  --main-width: 1180px;

  --sidebar-width: 280px;

  --page-background: #f7f7f7;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}


html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 10px);
}


/* 全局滚动条 */

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background-color: var(--el-color-primary);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--el-color-primary);
}


/* 媒体查询 */
@media (max-width: 640px) {
  html {
    font-size: 20px;
  }
}

@media (max-width: 750px) {
  html {
    font-size: 22.5px;
  }
}

@media (max-width: 300px) {
  html {
    font-size: 20px;
  }
}



div {
  box-sizing: border-box;
}

/* #app {
  height: 100%;
} */

.view_container {
  position: relative;
  width: 100%;
  /* height: 100%; */
  background-color: #fafafa;
}


.curtom_form .el-form--label-top .el-form-item__label {
  line-height: normal;
  display: block;
  padding: 0 !important;
}


.grid_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}

.grid_container .grid_item {
  width: calc(100% / 2 - 20px);
}

.grid_item .el-form-item {
  margin-bottom: 0 !important;
}

.grid_item .el-form-item__content .el-input-group {
  vertical-align: middle !important;
}






/* 表格右键菜单  提升层级，防止被弹出框遮挡 */
.htContextMenu:not(.htGhostTable),
.htFiltersConditionsMenu:not(.htGhostTable),
.htDropdownMenu:not(.htGhostTable) {
  z-index: 3000 !important;
}


.sample_group_container .flex {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}



/* 画廊自定义select 样式 */
.select_container {
  float: right;
  width: 150px;
  height: 47px;
  padding: 10px 0;
  cursor: pointer;
}

.lg-select {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 3px 10px;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  border-radius: 4px;
  outline: none;
}

.custom-select:hover {
  border-color: #aaaaaa;
}

.custom-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}