// base color
$blue: #324157;
$light-blue: #3A71A8;
$red: #C03639;
$pink: #E65D6E;
$green: #30B08F;
$tiffany: #4AB7BD;
$yellow: #FEC171;
$panGreen: #30B08F;
$--color-link: #008d71;
$--color-main: #00b8a0;
// 默认菜单主题风格
$base-menu-color: #bfcbd9;
$base-menu-color-active: #f4f4f5;
$base-menu-background: #304156;
$base-logo-title-color: #ffffff;

$base-menu-light-color: rgba(0, 0, 0, 0.7);
$base-menu-light-background: #ffffff;
$base-logo-light-title-color: #001529;

$base-sub-menu-background: #1f2d3d;
$base-sub-menu-hover: #001528;
$base-color-bk4: #999999;
$base--color-bk2: #262626;
$--color-bk3: #595959;
$--color-black: #000;
$--color-border: #e8e8e8;
$--color-aux5: #ebf6f5;
$--color-bk6: #bfbfbf;
$--color-bk14: #f2f9f7;
$base-font-size-12: 12px;
$base-font-size-14: 14px;
$base-font-size-16: 16px;

// 自定义暗色菜单风格
/**
$base-menu-color:hsla(0,0%,100%,.65);
$base-menu-color-active:#fff;
$base-menu-background:#001529;
$base-logo-title-color: #ffffff;

$base-menu-light-color:rgba(0,0,0,.70);
$base-menu-light-background:#ffffff;
$base-logo-light-title-color: #001529;

$base-sub-menu-background:#000c17;
$base-sub-menu-hover:#001528;
*/

$--color-primary: #409EFF;
$--color-success: #67C23A;
$--color-warning: #E6A23C;
$--color-danger: #F56C6C;
$--color-info: #909399;

$base-sidebar-width: 200px;

// 从variables.module2.scss合并的变量（避免重复）
// 如果variables.module2.scss中有额外变量，在这里添加
// 由于内容相似，主要变量已经在上方定义

// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
:export {
  menuColor: $base-menu-color;
  menuLightColor: $base-menu-light-color;
  menuColorActive: $base-menu-color-active;
  menuBackground: $base-menu-background;
  menuLightBackground: $base-menu-light-background;
  subMenuBackground: $base-sub-menu-background;
  subMenuHover: $base-sub-menu-hover;
  sideBarWidth: $base-sidebar-width;
  logoTitleColor: $base-logo-title-color;
  logoLightTitleColor: $base-logo-light-title-color;
  primaryColor: $--color-primary;
  successColor: $--color-success;
  dangerColor: $--color-danger;
  infoColor: $--color-info;
  warningColor: $--color-warning;
}

.home-wrapper {
  padding: 24px 15px 52px 24px;
  
  .el-card {
    box-shadow: 0 2px 4px 0 #00000008;
  }

  .el-card__header {
    padding: 20px 20px 0 !important;
    display: block;
    font-weight: 700;
    font-size: 16px;
    border: 0 none;
    
    .el-card__body {
      display: block;
    }

    .tit {
      font-size: 16px;
      display: flex;

      span {
        flex: 1;

        &.time {
          font-size: $base-font-size-12;
          font-weight: normal;
          color: $base-color-bk4;
          flex: none;
        }
      }
    }
  }

  .t-card__body {
    padding: 20px;
  }

  .dataCon {
    display: flex;
    padding-top: 18px;
  }

  .dashboard-chart-container {
    width: 158px;
    height: 158px;
    margin: 0 auto;
  }

  .roleCon {
    .head {
      display: flex;
      padding: 20px 0 15px;
      
      .img {
        width: 49px;
        height: 49px;
        margin-right: 12px;

        img {
          width: 49px;
          height: 49px;
          border-radius: 50%;
        }
      }

      .rText {
        p {
          line-height: 24px;

          &:first-child {
            font-size: $base-font-size-16;
            font-weight: 700;
          }

          &:last-child {
            font-size: $base-font-size-14;
            color: $base-color-bk4;
          }
        }
      }
    }

    .userInfo {
      display: flex;
      flex-wrap: wrap;
      padding-bottom: 5px;

      p {
        width: calc(50%);
        display: inline-block;
        line-height: 26px;
        color: $base-color-bk4;
        font-size: 14px;
        position: relative;
        padding-left: 25px;
        height: 26px;

        i {
          display: inline-block;
          width: 20px;
          height: 20px;
          vertical-align: middle;
          margin-right: 5px;
          position: absolute;
          left: 0;
          top: 3px;
        }

        .icon1 {
          background: url(../../assets/images/icon_yhgl2x.png) no-repeat;
          background-size: contain;
        }

        .icon2 {
          background: url(../../assets/images/icon_jsgl2x.png) no-repeat;
          background-size: contain;
        }

        .icon3 {
          background: url(../../assets/images/icon_bmgl2x.png) no-repeat;
          background-size: contain;
        }

        .icon4 {
          background: url(../../assets/images/icon_gwgl2x.png) no-repeat;
          background-size: contain;
        }
      }

      .userTit {
        .textOverflow {
          max-height: 24px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: block;
          -webkit-line-clamp: 1;
          -webkit-box-orient: vertical;
        }
      }
    }

    .hFoot {
      .fTit {
        font-size: $base-font-size-14;
        color: $base--color-bk2;
        line-height: 26px;
        padding-bottom: 10px;
      }

      .imgItem {
        display: flex;
        padding-bottom: 5px;

        li {
          margin-right: 5px;

          img,
          span {
            width: 32px;
            height: 32px;
            line-height: 32px;
            border-radius: 50%;
            display: inline-block;
          }

          &:last-child {
            span {
              background: $--color-main;
              font-size: $base-font-size-14;
              font-weight: 700;
              color: $base-logo-title-color;
              text-align: center;
              margin-right: 0;
            }
          }
        }
      }
    }
  }

  .condition {
    display: flex;
    position: relative;
    padding: 12px 0 5px;

    .el-tabs {
      flex: 1;
      padding-bottom: 0;
      
      .el-tabs__nav-wrap{
        &::after{
          display: none;
        }
      }
      
      .el-tabs__active-bar {
        height: 4px;
        border-radius: 2px;
        margin: 0 0 0 12px;
        width: 32px !important;
      }

      .el-tabs__item {
        padding: 0;
        margin: 0 14px 0 0;
        color: $--color-bk3;

        &.is-active {
          color: $base--color-bk2;
          font-size: 16px;
          font-weight: 700;
        }

        &.t-size-m {
          height: 32px;
          line-height: 32px;
        }
      }
    }

    .times {
      position: absolute;
      right: 0;
      z-index: 9;
      display: flex;
      line-height: 40px;
      font-size: 12px;

      .date {
        display: flex;
        padding-right: 15px;

        li {
          padding: 0 5px;
          cursor: pointer;
          font-weight: normal;
        }

        .active {
          color: $--color-main;
        }
      }
    }

    .t-tabs .t-tabs__nav-container.t-is-top::after {
      background-color: transparent;
    }
  }

  .dashboard-chart-card {
    padding: 0;
  }

  .useList {
    display: flex;
    flex-wrap: wrap;
    padding-top: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;

    a,
    .addUser {
      padding: 18px 0;
      color: #332929;
      width: 25%;

      &:hover {
        color: #332929;
      }

      span {
        display: inline-block;
        width: 49px;
        height: 49px;
        border-radius: 4px;
      }

      .bedIcon {
        background: url(../../assets/images/icon_cwyl.png) 50% 50% no-repeat #e0fcf3;
        background-size: 80%;
      }
      .addIcon {
        background: url(../../assets/images/icon_xzyh.png) 50% 50% no-repeat #e8fedf;
        background-size: 80%;
      }
      .warnIcon {
        background: url(../../assets/images/icon_bjsj.png) 50% 50% no-repeat #feebd3;
        background-size: 80%;
      }
      .appointmentIcon {
        background: url(../../assets/images/icon_cwbb.png) 50% 50% no-repeat #e0fcf3;
        background-size: 80%;
      }
      .backlogIcon {
        background: url(../../assets/images/icon-daiban.png) 50% 50% no-repeat #e0fcf3;
        background-size: 80%;
      }
      .financeIcon {
        background: url(../../assets/images/icon_zdgl.png) 50% 50% no-repeat #e8fedf;
        background-size: 80%;
      }
      .refundIcon {
        background: url(../../assets/images/icon_tkgl.png) 50% 50% no-repeat #eee5ff;
        background-size: 80%;
      }
      .orderIcon {
        background: url(../../assets/images/icon_ddgl2.png) 50% 50% no-repeat #e5f5ff;
        background-size: 80%;
      }
      .checkIcon {
        background: url(../../assets/images/icon_rutui2x.png) 50% 50% no-repeat #d3fbfe;
        background-size: 80%;
      }
      .backIcon {
        background: url(../../assets/images/icon_rutui.png) 50% 50% no-repeat #ffebe5;
        background-size: 80%;
      }
      .leaveIcon {
        background: url(../../assets/icon-qj.png) 50% 50% no-repeat #feebd3;
        background-size: 80%;
      }
      .subscribeIcon {
        background: url(../../assets/icon_cwbb.png) 50% 50% no-repeat #e0fcf3;
        background-size: 80%;
      }
    }
  }

  .monitorContainer {
    width: 100%;
    height: 234px;

    & > div {
      &:first-child {
        width: 100% !important;

        & > canvas {
          width: 100% !important;
        }
      }
    }
  }

  .dateCon {
    height: 30px;
    background: #f3f8f9;
    border-radius: 2px;
    line-height: 30px;
    margin-top: 5px;
    padding: 0 10px;
    font-weight: normal;
    font-size: 14px;
  }

  .backlogCon {
    padding-top: 8px;

    ul {
      li {
        background: #f3f8f9;
        border-radius: 2px;
        padding: 14px 20px 14px;
        margin-top: 10px;
        line-height: 20px;
        display: flex;

        .con {
          flex: 1;
        }

        .btn {
          height: 32px;
          line-height: 30px;
          background: $--color-main;
          border-radius: 2px;
          color: $base-logo-title-color;
          width: 60px;
          text-align: center;
          display: inline-block;
          margin-top: 6px;
        }

        p {
          padding: 2px 0;
        }

        .head {
          color: $base--color-bk2;
          font-weight: 700;
        }

        .time {
          color: $base-color-bk4;
        }
      }
    }
  }

  .typeIcon {
    display: inline-block;
    text-align: center;
    width: 36px;
    height: 18px;
    line-height: 18px;
    border-radius: 16px;
    font-size: 12px;
    color: #fff;
    margin-right: 8px;
    font-weight: normal;
  }

  .icon1 {
    background: #fe6e6e;
  }

  .icon2 {
    background: #ffb057;
  }

  .icon3 {
    background: #27ba9b;
  }

  .timeTie {
    display: flex;

    div {
      &:last-child {
        flex: 1;
        text-align: right;
        font-size: $base-font-size-12;
        font-weight: normal;
        color: $base-color-bk4;

        .goToday {
          color: $--color-main;
          cursor: pointer;
          margin-right: 10px;
        }
      }
    }
  }

  .dateSelete {
    position: relative;
    padding: 10px 40px 0;

    ul {
      display: flex;
      flex-wrap: wrap;

      li {
        flex: 1;
        text-align: center;
        color: $base--color-bk2;
        line-height: 22px;

        p {
          padding: 2px 0;
          display: flex;
          align-items: center;
          justify-content: center;

          span {
            display: inline-block;
            width: 24px;
            height: 24px;
            line-height: 24px;
            text-align: center;
          }

          &:first-child {
            color: $base-color-bk4;
          }

          &:last-child {
            span {
              cursor: pointer;

              &.dayActive {
                background: $--color-main;
                border-radius: 12px;
                color: $base-menu-light-background;
              }
            }
          }
        }
      }
    }

    & > span {
      display: inline-block;
      width: 36px;
      height: 36px;
      position: absolute;
      top: 20px;
    }

    .pre {
      background: url(../../assets/images/btn_xia_nor.png) no-repeat 50% 50%;
      background-size: contain;
      transform: rotate(180deg);
      left: 0;
    }

    .next {
      background: url(../../assets/images/btn_xia_nor.png) no-repeat 50% 50%;
      background-size: contain;
      right: 0;
    }

    .forbidActive {
      background: url(../../assets/images/btn_shang_nox.png) no-repeat 50% 50%;
      background-size: contain;
      transform: rotate(0);
    }
  }

  .subscribeCon {
    margin-top: -5px;

    ul {
      li {
        background: #f3f8f9;
        border-radius: 2px;
        padding: 7px;
        line-height: 20px;
        margin: 14px 0 0;
        display: flex;
        align-items: center;
        color: $base-color-bk4;
        font-size: 14px;
        
        span {
          &:last-child {
            flex: 1;
            text-align: right;
          }
        }
      }
    }

    .typeIcon {
      margin-right: 8px;
    }

    .time {
      font-size: $base-font-size-16;
      font-weight: 700;
      padding-right: 25px;
      color: $base--color-bk2;
    }
  }

  .dashboard-rank-card,
  .dashboard-chart-card {
    height: 278px;
    
    .el-card__header {
      font-size: $base-font-size-16;
      font-weight: 700;
    }
  }
  
  .rankCard {
    min-width: 450px;
  }

  .card-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
    .main-title {
      font-size: $base-font-size-16;
      font-weight: 700;
    }
    
    .sub-title {
      font-size: $base-font-size-14;
    }
  }

  .el-badge--circle {
    background: #e34d59;
    height: 14px;
    line-height: 12px;
  }

  .textOverflow {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .row-container[data-v-0d2b0973]:not(:last-child) {
    margin: 0;
  }
}

.el-tooltip--default .el-popup__content {
  width: 200px !important;
}