@import url(./cssreset.css);
@font-color: #fff;
@linear-color: linear-gradient(to right,
    rgba(0, 100, 200, 0.4),
    rgba(0, 200, 100, 0));
@active-color: #16ceaf;
@border-decora-color: rgba(0, 100, 200, 1);
@main-color: #84c6ff;
@font-light-color: #d8ee2c;

i {
  font-size: 2vh;
  font-weight: 700;
}

.el-button {
  cursor: pointer;
  // width: 6.5vh;
  // height: 3vh;
  padding: 6px 13px;
  text-align: center !important;
  border: 1px solid @main-color  !important;
  font-size: 1.4vh !important;
  border-radius: 25px !important;
  user-select: none !important;
  white-space: nowrap !important;
  background: none !important;
  color: @main-color  !important;

  &:hover {
    color: @font-color  !important;
    border-color: @font-color  !important;
  }
}

.el-button.active {
  background-color: @active-color  !important;
  border-color: @font-color  !important;
  color: @font-color  !important;
}

.el-button+.el-button {
  margin-left: 0;
}

.el-button:disabled {
  background-color: #ddd;
}

.el-input__inner {
  background: none !important;
  border: none !important;
  color: @main-color  !important;
  height: 3vh;
}

.time-info {
  .el-input__inner {
    height: 0 !important;
    line-height: 0 !important;
  }
}

table {
  border-color: @main-color  !important;
}

.el-table {
  background-color: transparent !important;
  margin-bottom: 1vw;
  border: 0.1vh solid rgba(132, 198, 255, 0.8) !important;
  margin-bottom: 0;
  overflow: visible !important;

  &::before,
  &::after {
    display: none;
  }

  .el-table__body-wrapper {
    &::-webkit-scrollbar {
      width: 8px;
      height: 8px;
      background-color: rgba(0, 100, 200, 0.2);
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 5px;
      // box-shadow: inset 0 0 6px rgba(234, 227, 216, 0.1);
      background-color: rgba(0, 100, 210, 1);
    }
  }

  tr,
  th,
  td {
    background-color: transparent !important;
    border-color: rgba(132, 198, 255, 0.2) !important;
    border-width: 0.1vh !important;
    border-right: none !important;
  }

  thead {
    color: @main-color  !important;
  }

  td .cell {
    color: @font-color;
  }

  .is-leaf {
    text-align: center !important;
    font-size: 1.4vh;
  }

  th.gutter:last-of-type {
    display: none !important;
    border-bottom-color: @main-color  !important;
    width: 8px !important;
  }
}

.el-dialog {
  background-color: rgba(18, 84, 155, 0.8) !important;
  border-radius: 15px !important;

  .el-dialog__title {
    color: @font-light-color;
    font-size: 3vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    line-height: 4vh;
    margin-left: 1vh;

    i {
      color: @font-light-color;
      font-size: 3vh;
    }
  }

  .el-dialog__headerbtn .el-dialog__close {
    color: #fff;

    &:hover {
      color: @active-color;
    }
  }

  .el-dialog__body {
    display: flex;
    flex-direction: column;
    margin: 0vh 5vh 3vh;
    padding: 1vh 1vh 4vh;
    align-items: flex-start;
    // background-color: rgba(0, 100, 200, .6) !important;

    .el-input__inner {
      border: 1px @main-color solid !important;
      line-height: 4vh;
      height: 4vh;
      color: @font-color  !important;
    }

    .el-table {
      border-radius: 5px !important;
      margin-bottom: 1vh;
    }

    .top {
      display: flex;
      margin-bottom: 1vh;

      .el-input__inner {
        border: 1px @main-color solid !important;
        line-height: 3.5vh;
        height: 3.5vh;
        color: #333;
      }

      .el-button {
        width: 4vh !important;
        height: 3.5vh !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin-left: 1vh;
        background-color: @active-color  !important;

        i {
          color: @font-color  !important;
        }

        &:hover {
          background: none !important;
        }
      }
    }

    .bottom {
      width: 100%;
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;

      // 分页样式
      .el-pagination__total,
      .el-pagination__jump {
        color: @font-color;
      }

      .btn-prev,
      .btn-next {
        background: @active-color  !important;

        i {
          color: #fff !important;
        }
      }

      .btn-prev:disabled,
      .btn-next:disabled {
        background: #ccc !important;

        i {
          color: #fff !important;
        }
      }

      .el-pager {

        .number,
        .el-icon-more {
          line-height: 27px;
          background: none !important;
          border: 0.1vh solid @main-color  !important;
          color: @main-color;

          &:hover {
            color: #fff !important;
            border-color: #fff !important;
          }
        }

        .number.active {
          background-color: @active-color  !important;
        }
      }
    }
  }
}

.tongji-table {
  .el-table {
    border: none !important;

    td {
      padding: 9px 0 !important;
    }

    // 合并列
    .el-table__footer-wrapper {

      tr,
      td {
        border: none !important;
      }

      td.el-table_1_column_3,
      td.el-table_1_column_4 {
        text-align: center !important;
      }
    }
  }
}

i {
  color: #8fccff;
}

.el-icon-document {
  color: @main-color;
}

// 边框修饰性样式
.border {
  position: absolute;
  width: 1.8vh;
  height: 1.8vh;
  background-color: transparent;
  border: 0.3vh solid @border-decora-color;
  border-radius: 0.2vh;
}

.border-left-top {
  border-bottom: none;
  border-right: none;
  left: 0;
  top: 0;
}

.border-right-top {
  border-bottom: none;
  border-left: none;
  right: 0;
  top: 0;
}

.border-left-bottom {
  border-top: none;
  border-right: none;
  left: 0;
  bottom: 0;
}

.border-right-bottom {
  border-top: none;
  border-left: none;
  right: 0;
  bottom: 0;
}

// 各模块简单基本样式
.part {
  height: 100%;
  padding: 1.2vh;
  box-sizing: border-box;
  position: relative;
  background: @linear-color;

  .title {
    text-align: left;
    padding-top: 0.5vh;
    padding-left: 0.5vh;
    font-size: 1.8vh;
    color: #8fccff;

    i {
      color: #aedaff;
      margin-right: 0.2vh;
    }
  }
}

// 地区选择列表
.el-tag {
  font-size: 1.5vh;
  color: #fff;
  border: 1px solid #5ab4ff;
  padding-left: 1.5vh;
  padding-right: 1.5vh;
  line-height: 4vh;
  margin-right: 2vh;
  margin-top: 0.3vh;
  height: 4vh;
  user-select: none;
  background-color: @active-color  !important;
  border-radius: 25px;

  i {
    color: #fff;

    &:hover {
      background: #fff;
      color: @active-color;
    }
  }
}

// 时间选择器
.el-date-editor {
  opacity: 0;
  position: absolute;
  z-index: -100;
  top: 0;
  bottom: 0;
  width: 0;
}

.el-picker-panel {
  box-shadow: 0 2px 12px 0 rgba(0, 100, 200, 0.9) !important;
  background: rgba(0, 100, 200, 0.45) !important;
  border-color: @main-color  !important;
  color: @font-color  !important;

  .el-picker-panel__icon-btn {
    color: @active-color  !important;
  }

  .el-date-picker__header-label {
    color: inherit !important;
    font-size: 1.7vh !important;
  }

  table {
    td {
      .cell {
        font-size: 1.3vh !important;
        color: inherit !important;
      }
    }

    td.current {
      color: @active-color  !important;
    }
  }
}

.el-dropdown-link {
  font-size: 1.4vh;
  line-height: 3vh;
}

.el-dropdown-menu {
  box-shadow: 0 2px 12px 0 rgba(0, 100, 200, 0.9) !important;
  background: rgba(0, 100, 200, 0.45) !important;
  border-color: @main-color  !important;
  color: @font-color  !important;

  .el-dropdown-menu__item {
    color: inherit;

    &:hover {
      color: @font-color;
      background-color: @active-color;
    }
  }
}

// 地图弹框样式
.leaflet-popup-content-wrapper.leaflet-popup-content-wrapper {
  background: rgba(20, 93, 172, 0.8);

  &::before,
  &::after {
    display: none;
  }
}

.leaflet-popup-close-button.leaflet-popup-close-button {
  color: @font-color  !important;
  margin: 8px !important;

  &:hover {
    color: @active-color  !important;
  }
}

.leaflet-popup-tip-container.leaflet-popup-tip-container {
  display: none;
}

.leaflet-popup {
  margin: 0 !important;
  background: none !important;
}

// 地图图例样式
.leaflet-control-clegend,
.leaflet-control-clegend-right {
  position: absolute;
  right: 30.5vw;
  bottom: 28.7vh;
  // background: @linear-color;
  color: @main-color;
  padding: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 110px;

  .title {
    width: 100%;
    text-align: left;
    padding-left: 14px;
    color: @font-light-color;
    margin-top: 1vh;
  }

  .main {
    width: 100%;
    margin-top: 0.5vh;
    display: flex;
    // align-items: flex-end;
    // justify-content: center;
  }

  .pm-main {
    margin-top: 0.5vh;

    .item {
      display: flex;
      align-items: center;
      margin-bottom: 0.3vh;

      .circle {
        border-radius: 2px;
        width: 30px;
        height: 15px;
        margin-right: 0.5vh;
        margin-left: 14px;
      }

      label {
        color: @main-color;
        font-size: 1.2vh;
        padding-left: 10px;
      }
    }
  }
}

.leaflet-control-clegend-right {
  right: 20vw;
  bottom: 0;
}