@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './common.scss';
@import 'element-ui-reset/index.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);
    }
  }
}
.flex-center{
  display: flex;
  align-items: center;
  .name{
    padding: 0 5px;
  }
}
//main-container
.app-container {
  padding: 20px;
}

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

.content-container {
  background: #193142FF;
  border-radius: 3px;
  margin: 10px;
}

.content-title {
  font-size: 18px;
  font-weight: bold;
  color: #FFFFFF;
  background: linear-gradient(0deg, #FFFFFF 0%, #98A8B7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-body {
  margin: 10px 0;
}

.page-main {
  padding: 10px;
  border-radius: 5px;
}

.pagination-container {
  margin-top: 10px;
  background: unset!important;
  padding: 5px!important;

  .el-pagination span:not([class*=suffix]) {
    color: #ffffff !important;
  }
  .el-pagination .el-input input{
    min-height:unset;
  }
}

.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;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both
}


.el-form-item__label {
  color: #ffffff;
  font-size: 14px;
}

.box-card {
  color: #FFFFFF;
  background: unset;

  &, .el-card__header {
    border: unset;
  }
}

.el-input, .el-textarea {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;

  input, textarea {
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    border-radius: 0;
    //padding: 12px 5px 12px 15px;
    color: #fff;
    caret-color: #fff;

    &:-webkit-autofill {
      box-shadow: 0 0 0 1000px #283443 inset !important;
      -webkit-text-fill-color: #fff !important;
    }
  }
}

.btn-group {

  .el-button {
    margin: 0 0 15px 15px;
  }

  .cancel-btn {
    background: #004F7B;
    border-color: #004F7B;
    color: #FFF;

    &:hover {
      background: #026197;
      border-color: #026197;
    }
  }
}

.el-button--medium {
  padding: 10px;
}

.tool-bar {
  margin-top: 0px;
  padding-bottom: 0px;
  .left {
    float: left;
  }

  .right {
    float: right;
    text-align: right;
  }

  .title {
    line-height: 36px;
    font-size: 26px;
  }

  .search-input {
    width: 300px !important;
  }

  .search-label {
    padding:5px;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    color: #FFFFFF;

    span {
      font-size: 20px;
      font-weight: 400;
      color: #FFFFFF;
    }
  }

  .vue-treeselect{
    max-width: 200px;
    .vue-treeselect__control{
      border-color: #3D5F76;
      background: none;
      .vue-treeselect__single-value{
        color: #fff;
      }
    }
  }
}

.el-dropdown {
  margin: 0 10px;
}

.el-link .el-link--default{
  color: #08A6DC!important;
  font-size: 12px!important;
}

.el-menu-item{
  height: 48px;
  line-height: 48px;
}

.el-submenu__title{
  height: 48px;
  line-height: 48px;
}

.el-submenu .el-menu-item{
  height: 42px;
  line-height: 42px;
}

.custom-switch-tag {
  width: 76px;
  height: 26px;
  background: #5EB777;
  border-radius: 13px;
  position: relative;
  font-size: 12px;
  line-height: 26px;
  text-align: left;
  text-indent: 10px;
  cursor: default;

  &::after {
    display: block;
    content: "";
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border-radius: 50%;
    right: 5px;
    top: 6px;
    position: absolute;
  }

  &.wait {
    background: none;
    border: 1px solid #3B5D73;
    color: #3B5D73;
    text-align: right;
    box-sizing: border-box;
    text-indent: 0;
    padding-right: 10px;
    line-height: 24px;

    &::after {
      top: 5px;
      background: #3B5D73;
      left: 5px;
      right: inherit;
    }
  }
}
.search-input {
  display: inline-table !important;
  input{
    min-height:unset !important;
  }
}

span.el-radio__label {
  color: #fff;
}
a.el-link{
  color: #20a0ff !important;
}

.edit-input{
  border: #20f704;
  border-width: 1px;
}

.left-container {
  min-width: 200px;
}
