@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

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

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.header-form {
  height: 100%;
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  .el-form-item {
    box-sizing: border-box;
    margin-bottom: 0;
    align-items: center;
    .el-form-item__label {
      padding-left: 30px;
    }
  }
}

::-webkit-scrollbar {
  width: 8px; /* 设置垂直滚动条的宽度 */
  height: 8px; /* 设置水平滚动条的高度 */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* 滚动条轨道的背景色 */
  border-radius: 10px; /* 轨道的圆角 */
}

::-webkit-scrollbar-thumb {
  background: #b6dbf8 !important; /* 初始时，滚动条的颜色是蓝色 */
  border-radius: 10px; /* 滚动条的圆角 */
  border: 2px solid #f1f1f1; /* 滚动条边框，确保滚动条与轨道之间有间隔 */
}

::-webkit-scrollbar-thumb:hover {
  background: #1890ff !important; /* 滚动条悬停时的颜色 */
}

::-webkit-scrollbar-corner {
  background: #f1f1f1; /* 滚动条角落的背景 */
}

.dialog-footer {
  width: 100%;
  text-align: center;
}
.el-dialog__header {
  background: #6295ff;
  .el-dialog__title {
    color: #fff !important;
  }
  .el-dialog__close {
    color: #fff !important;
  }
}

.form-detail {
  .el-form-item {
    // display: inline-block !important;
    box-sizing: border-box;
    width: 100%;
    margin: 0 2% 25px 0;
    .el-form-item__label {
      margin-bottom: 13px !important;
    }
  }
  .el-select,
  .el-date-editor,
  .el-cascader {
    width: 100% !important;
    height: 38px !important;
  }
  .textarea-row {
    width: 100%;
    margin-right: 0;
  }
}

.table-default {
  .el-table__header {
    height: 50px;

    th {
      font-size: 18px;
      color: #595959;
      font-weight: 700;
      // background-color: #d9e9ff !important;
      // --el-table-border-color: rgba(139, 147, 156, 0.6) !important;
    }
  }
  .el-table__row {
    height: 40px !important;
    line-height: 40px;
    td {
      font-size: 16px;
      .is-link > span {
        font-size: 16px;
      }
    }
  }
  .el-table__row--striped td {
    background: #f0f5fc !important;
  }
  .el-table__empty-text {
    span {
      font-size: 16px;
    }
  }
}

.form-detail-inline {
  .el-form-item {
    // display: inline-block !important;
    box-sizing: border-box;
    width: 30%;
    margin: 0 2% 25px 0;

    .el-form-item__label {
      // margin-bottom: 13px !important;
    }
    .el-form-item__content {
      width: 100% !important;
      .el-input,
      .el-select,
      .el-date-editor,
      .el-cascader {
        width: 100% !important;
        height: 38px !important;
        --el-input-border-color: #4da6ff !important;
      }
    }
  }

  .el-upload-dragger {
    --el-border-color: #4da6ff !important;
    width: 94.5%;
  }
  .textarea-row {
    width: 94.5%;
    margin-right: 0;
  }
  .upload-row {
    width: 100%;
  }
}

.header-form-detail-inline {
  .el-form-item {
    // display: inline-block !important;
    box-sizing: border-box;
    // width: 30%;
    margin: 0 1% 25px 0;

    .el-form-item__label {
      // margin-bottom: 13px !important;
    }

    .el-input,
    .el-select,
    .el-date-editor,
    .el-cascader {
      width: 100% !important;
      height: 38px !important;
      --el-input-border-color: #4da6ff !important;
    }

    .is-disabled {
      --el-input-border-color: #e4e7ed !important;
    }
  }

  .el-input {
    width: 100% !important;
    height: 38px !important;
    .el-input-group__append {
      min-width: 60px;
      padding: 0 !important;
      background-color: #ffffff;
    }
  }

  .el-textarea {
    --el-input-border-color: #4da6ff !important;
  }

  .el-radio {
    --el-radio-input-border: 1px solid #4da6ff !important;
  }

  .el-upload-dragger {
    --el-border-color: #4da6ff !important;
    width: 94.5%;
  }
  .textarea-row {
    width: 94.5% !important;
    margin-right: 0;
  }
  .upload-row {
    width: 100%;
  }
}

.search_header-form {
  width: 100%;
  .el-form-item {
    // display: inline-block !important;
    box-sizing: border-box;
    // width: 30%;
    margin: 0 3% 25px 0;

    .el-form-item__label {
      // margin-bottom: 13px !important;
    }

    .el-input,
    .el-select,
    .el-date-editor,
    .el-cascader {
      width: 100% !important;
      height: 38px !important;
      --el-input-border-color: #4da6ff !important;
    }

    .is-disabled {
      --el-input-border-color: #e4e7ed !important;
    }
  }

  .el-input {
    width: 100% !important;
    height: 38px !important;
    .el-input-group__append {
      min-width: 60px;
      padding: 0 !important;
      background-color: #ffffff;
    }
  }

  .el-textarea {
    --el-input-border-color: #4da6ff !important;
  }

  .el-radio {
    --el-radio-input-border: 1px solid #4da6ff !important;
  }

  .el-upload-dragger {
    --el-border-color: #4da6ff !important;
    width: 94.5%;
  }
  .textarea-row {
    width: 94.5% !important;
    margin-right: 0;
  }
  .upload-row {
    width: 100%;
  }
}

.form-detail-inline-two {
  .el-form-item {
    // display: inline-block !important;
    box-sizing: border-box;
    width: 45%;
    margin: 0 2% 25px 0;

    .el-form-item__label {
      // margin-bottom: 13px !important;
    }
    .el-form-item__content {
      width: 100% !important;
      .el-input,
      .el-select,
      .el-date-editor,
      .el-cascader {
        width: 100% !important;
        height: 38px !important;
        --el-input-border-color: #4da6ff !important;
      }
      .el-input {
        width: 100% !important;
        height: 38px !important;
        .el-input-group__append {
          padding: 0 !important;
        }
      }
      .el-textarea {
        --el-input-border-color: #4da6ff !important;
      }
      .el-radio {
        --el-radio-input-border: 1px solid #4da6ff !important;
      }
      .el-color-picker__trigger {
        border: 1px solid #4da6ff !important;
      }
    }
  }
  .textarea-row {
    width: 93.5% !important;
    margin-right: 0;
  }
  .upload-row {
    width: 100%;
  }
}

.textarea-form {
  .el-form-item {
    // display: inline-block !important;
    box-sizing: border-box;
    width: 45%;
    margin: 0 2% 25px 0;

    .el-form-item__label {
      // margin-bottom: 13px !important;
    }
  }

  .el-textarea {
    width: 100% !important;
    --el-input-border-color: #4da6ff !important;
  }
  .el-textarea__inner {
    width: 300% !important;
  }
}

.textarea-form-block {
  .el-form-item {
    // display: inline-block !important;
    box-sizing: border-box;
    width: 93%;

    .el-form-item__label {
      // margin-bottom: 13px !important;
    }
  }

  .el-textarea {
    width: 100% !important;
    --el-input-border-color: #4da6ff !important;
  }
}

input[aria-hidden="true"] {
  display: none !important;
}
