@import './iconfont';

body {
  position: relative;
}

// html {
//   overflow-y: overlay;
// }

em {
  font-style: normal;
}


@circle-size: 20px;

.circle-brand,
.circle {
  width: @circle-size;
  height: @circle-size;
  text-align: center;
  line-height: @circle-size;
  color: #666;
  background-color: #eee;
  border-radius: 50%;
  display: inline-block;
}

.circle-brand {
  color: white;
  background-color: var(--color-brand);
}

@circle-size-mini: 15px;

.circle-brand-mini,
.circle-mini {
  width: @circle-size-mini;
  height: @circle-size-mini;
  text-align: center;
  line-height: @circle-size-mini;
  color: #666;
  background-color: #eee;
  border-radius: 50%;
  display: inline-block;
}

.circle-brand-mini {
  color: white;
  background-color: var(--color-brand);
}

.mini-table {
  width: 100%;

  tr {
    th {
      background-color: #fafafa;
      padding: 10px 20px;
    }

    td {
      padding: 10px 20px;
      border-bottom: 1px solid #eee;
    }
  }
}



.loading-anim-ex {
  animation-name: loading-anim;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  display: inline-block;
}

@keyframes loading-anim {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }

}

.flex {
  display: flex;
  align-items: center;
}

.flex1 {
  flex: 1;
}

.flex-top {
  align-items: flex-start;
}

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

.v-mid {
  vertical-align: middle;
}

.v-top {
  vertical-align: top;
}

.v-bottom {
  vertical-align: bottom
}

.condition-block {
  display: inline-block;
  border-radius: 4px;
  line-height: 1.5;
  background-color: #eee;
  padding: 3px 10px;

  .ic {
    font-size: 12px;
    color: #999;
    cursor: pointer;
  }
}

.card {
  border: 1px solid #eee;
  border-radius: 5px;

  .hd {
    border-radius: 5px 5px 0 0;
    padding: 10px;
    background-color: #f5f5f5;
  }

  .bd {
    border-radius: 0 0 5px 5px;
    padding: 10px;
    background-color: white;
  }
}

.card-ex {
  .hd {
    padding: 15px;
  }

  .bd {
    padding: 15px;
  }
}

.card-brand {
  .hd {
    // background-image: linear-gradient(to right, red, blue);
    background-image: linear-gradient(to right, rgba(112, 42, 209, 0.2), rgba(112, 42, 209, 0.05));
  }
}

.ind-block {
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  // padding: 10px;
}

.ind-block-hd {
  background-color: var(--color-brand-opacity);
  padding: 15px 20px;
  border-radius: 4px;
}

.ind-block-bd {
  padding: 20px 5px 20px 20px;
}

.common-process {
  width: 80px;
  display: inline-block;
  background-color: #eee;

  >div {
    height: 10px;

    background-color: var(--color-brand);
  }
}

.list-loading {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);

  .loading-icon {
    position: absolute;
    top: 50%;
    left: 40%;
  }
}

.table-no-bg {
  td {
    background-color: transparent !important;
  }
}

.bg-white {
  background-color: white;
}

.bg-white {
  background-color: white;
}

.color-warning {
  color: var(--color-warning);
}

.table-tags {
  em {
    color: var(--color-brand);
  }
}

.gridding {
  display: grid;
}

.gridding-c {
  display: grid;
  align-items: center;
}

.form-line {
  display: grid;
  grid-template-columns: 110px auto;
  grid-gap: 10px;
}

.color-hot {
  color: #f2593f;
}

.mr3 {
  margin-right: 3px;
}


.ml3 {
  margin-left: 3px;
}

.mb3 {
  margin-bottom: 3px;
}

.mt3 {
  margin-top: 3px;
}



.tabs-box-bg {
  background-color: white;
  border-radius: var(--border-radius);
}

.ellipsis-auto {
  overflow: hidden;
  width: 100%;
  top: 0;
  left: 0;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ellipsis-multi {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

.ellipsis-single {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  word-break: break-all;
}


/*常用宽度*/
.width-loop(@n, @i: 10) when (@i <=@n) {
  .w@{i} {
    width: unit(@i, px);
  }

  .width-loop(@n, (@i + 10));
}

.width-loop(60);

/*常用高度*/
.height-loop(@n, @i: 10) when (@i <=@n) {
  .h@{i} {
    height: unit(@i, px);
  }

  .height-loop(@n, (@i + 10));
}

.height-loop(50);