/**
 * 定制全局公共 css
 * Copyright (c) 2016~2021 Rockery(1113269755@qq.com)
 */

@import "~@/assets/styles/variables.scss";

.mt15 {
  margin-top: 15px;
}

.ml10 {
  margin-left: 10px;
}

.ml20 {
  margin-left: 20px;
}

.mr20 {
  margin-right: 20px;
}

.pdr20 {
  padding-right: 20px;
}

.pdl20 {
  padding-left: 20px;
}

.brad-10 {
  border-radius: 10px;
}

.el-scrollbar .svg-icon,
.app-menu .svg-icon,
.el-menu--vertical > .el-menu .svg-icon {
  width: 2em !important;
  height: 1.5em !important;
}

#app {
  background: #f2f2f2;

  .sidebar-container.has-logo .sidebar-wrapper {
    background: url("../images/layout-sidebar-wrapper-bg.png"), #304156;
    background-size: 209px 290px, cover;
    background-position: right 36px bottom 58px, center;
    background-repeat: no-repeat, no-repeat;
  }
}

/* rocpartyprimarybtn button color ----Start */
.el-button--rocpartyprimarybtn.is-active,
.el-button--rocpartyprimarybtn:active {
  color: #ffffff;
  background: #de0010;
  border-color: #de0010;
}

.el-button--rocpartyprimarybtn:focus,
.el-button--rocpartyprimarybtn:hover {
  color: #ffffff;
  background: #ec5a64;
  border-color: #ec5a64;
}

.el-button--rocpartyprimarybtn.is-disabled,
.el-button--rocpartyprimarybtn.is-disabled:hover,
.el-button--rocpartyprimarybtn.is-disabled:focus {
  color: #ffffff;
  cursor: not-allowed;
  background-image: none;
  background: #ec5a64;
  border-color: #ec5a64;
}

.el-button--rocpartyprimarybtn {
  color: #ffffff;
  background-color: #de0010;
  border-color: #de0010;
}
/* rocpartyprimarybtn button color ----End */

/* rocpartyprimaryplainbtn button color ----Start */
.el-button--rocpartyprimaryplainbtn.is-active,
.el-button--rocpartyprimaryplainbtn:active {
  color: #de0010;
  background: #ffffff;
  border-color: #de0010;
}

.el-button--rocpartyprimaryplainbtn:focus,
.el-button--rocpartyprimaryplainbtn:hover {
  color: #de0010;
  background: #f2f2f2;
  border-color: #ec5a64;
}

.el-button--rocpartyprimaryplainbtn.is-disabled,
.el-button--rocpartyprimaryplainbtn.is-disabled:hover,
.el-button--rocpartyprimaryplainbtn.is-disabled:focus {
  color: #de0010;
  cursor: not-allowed;
  background-image: none;
  background: #f2f2f2;
  border-color: #ec5a64;
}

.el-button--rocpartyprimaryplainbtn {
  color: #de0010;
  background-color: #ffffff;
  border-color: #de0010;
}
/* rocpartyprimaryplainbtn button color ----End */

/* rocwhiteplainbtn button color ----Start */
.el-button--rocwhiteplainbtn.is-active,
.el-button--rocwhiteplainbtn:active {
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
}

.el-button--rocwhiteplainbtn:focus,
.el-button--rocwhiteplainbtn:hover {
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
}

.el-button--rocwhiteplainbtn {
  color: #ffffff;
  background-color: transparent;
  border-color: #ffffff;

  span {
    font-size: 16px;
    font-weight: 400;
  }
}
/* rocwhiteplainbtn button color ----End */

.app-container {
  padding: 15px;

  .commonfilterselecttreemainpage {
    .cfstreepage-container {
      &-left {
        margin: 0 !important;
        overflow: hidden;
      }

      &-right {
        padding: 0 0 0 10px !important;
      }

      &-rightdefault {
        padding: 0 !important;
      }

      &-switch {
        &-leftbtn {
          left: 258px !important;
        }

        &-rightbtn {
          left: 5px !important;
        }
      }
    }
  }

  &-headtree {
    padding: 5px;
    background: #ffffff;
    border-radius: 10px;
  }

  &-queryform {
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;

    .el-form {
      .el-form-item {
        margin-bottom: 16px;

        .el-form-item__content {
          .el-form-item__error {
            padding-top: 1px;
          }
        }
      }
    }
  }

  &-main {
    padding: 10px 15px 15px;
    background: #ffffff;
    border-radius: 10px;
    min-height: calc(100vh - 198px);

    .cust-spanlink {
      color: #337ab7;
      text-decoration: none;
      cursor: pointer;

      &:hover {
        color: #409eff;
        text-decoration: underline;
      }
    }

    .cust-operategroup {
      .cust-editbtn {
        color: #13ce66;
      }

      .cust-viewbtn {
        color: #909399;
      }

      .cust-deletebtn {
        color: #ff4949;
      }

      .cust-resetpassword {
        color: #ffba00;
      }

      .cust-primarybtn {
        color: #1890ff;
      }

      .cust-defaultbtn {
        color: #606266;
      }
    }
  }
}

.custdialog-add {
  .el-dialog__header {
    border-bottom: 1px solid #dfe4ed;
  }

  .el-dialog__body {
    padding: 20px;

    .el-form {
      .el-form-item {
        margin-bottom: 18px;

        .el-form-item__content {
          .el-select {
            width: 100%;
          }
        }
      }

      .form-item-remark {
        margin-bottom: 5px;
      }

      .form-item-radiogroup {
        margin-bottom: 12px;

        .el-form-item__error {
          padding-top: 0;
        }
      }
    }

    .custdialog-add-divider {
      margin: 14px 0;
    }
  }
}

.custdialog-view {
  .el-dialog__header {
    border-bottom: 1px solid #dfe4ed;
  }

  .el-dialog__body {
    padding: 20px 10px 30px 10px;
  }

  &-form {
    .el-form-item {
      margin-bottom: 5px;
    }

    .el-form-item--medium .el-form-item__label {
      border: 1px solid #dfe4ed;
      background-color: #f5f7fa;
      border-radius: 4px 0px 0px 4px;
    }

    .el-input.is-disabled .el-input__inner {
      background-color: #ffffff;
      color: #606266;
      cursor: text;
      height: 38px;
      line-height: 38px;
      border-radius: 0px 4px 4px 0px;
    }

    .el-textarea.is-disabled .el-textarea__inner {
      background-color: #ffffff;
      color: #606266;
      cursor: text;
      border-radius: 0px 4px 4px 0px;
    }
  }
}

.amap-dialog {
  .el-dialog__body {
    min-height: 600px;
  }
}

.custdialog-recordview {
  .el-dialog__body {
    padding: 5px 10px 30px 10px;
  }
}

.paginationselect-select {
  .el-scrollbar {
    .el-scrollbar__wrap {
      max-height: 460px;
    }
  }
}

.paginationselect-noquery {
  .el-scrollbar {
    .el-scrollbar__wrap {
      max-height: 300px;
    }
  }
}

.details-container {
  &-form {
    .el-form-item {
      margin-bottom: 5px;
    }

    .el-form-item--medium .el-form-item__label {
      border: 1px solid #dfe4ed;
      background-color: #f5f7fa;
      border-radius: 4px 0px 0px 4px;
    }

    .el-input.is-disabled .el-input__inner {
      background-color: #ffffff;
      color: #606266;
      cursor: text;
      height: 38px;
      line-height: 38px;
      border-radius: 0px 4px 4px 0px;
    }

    .el-textarea.is-disabled .el-textarea__inner {
      background-color: #ffffff;
      color: #606266;
      cursor: text;
      border-radius: 0px 4px 4px 0px;
    }
  }
}

.statistical-total {
  line-height: 25px;
  span {
    color: #ffba00;
  }
}

.statements-total {
  line-height: 25px;
  span {
    color: #ffba00;
  }

  .statements-all {
    color: #409eff;
  }
}

.operationalanalysis-tab-pane {
  min-height: 630px;

  &-nodata {
    text-align: center;
    color: #909399;
  }
}

.formitem-attachment {
  &-fileupload {
    .el-upload {
      width: 100%;
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      overflow: hidden;

      &:hover {
        border-color: #409eff;
      }
    }

    .el-upload-list.el-upload-list--text {
      .el-upload-list__item:first-child {
        margin-top: 0;
      }
    }

    &-content {
      width: 100%;
      height: 32px;
      font-size: 14px;
      font-weight: 400;
      color: #8c939d;
      text-align: center;
    }
  }

  &-addr {
    width: 100%;
    padding: 5px 0;

    div {
      &:first-child,
      &:last-child {
        margin-left: 4px;
        width: 100%;
        height: 20px;
        vertical-align: middle;
        font-size: 14px;
        font-weight: 400;
        color: #606266;
        line-height: 20px;
      }

      &:last-child {
        height: 25px;
        line-height: 25px;
        cursor: pointer;
        opacity: 0.8;

        &:hover {
          color: #409eff;
          text-decoration: underline;
        }
      }
    }
  }
}

.app-container.desc-page {
  width: 100%;
  min-height: calc(100vh - 84px);
  background: url("../images/home-head-img.png"), #ffffff;
  background-size: 67px 67px, cover;
  background-position: right 5px bottom 80px, center;
  background-repeat: no-repeat, no-repeat;
}

.openSidebar {
  .pagefooter-btngroup {
    position: fixed;
    bottom: 40px;
    width: calc(100% - #{$sideBarWidth} - 50px);
    text-align: right;
  }
}

.hideSidebar {
  .pagefooter-btngroup {
    position: fixed;
    bottom: 40px;
    width: calc(100% - 100px);
    text-align: right;
  }
}

.hideSidebar.mobile {
  .pagefooter-btngroup {
    position: fixed;
    bottom: 40px;
    width: calc(100% - 30px);
    text-align: right;
  }
}

.roc-form-item-label {
  font-weight: 500;
  font-style: normal;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.847058823529412);
  opacity: 0.9;
}

.roc-form-item-input {
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.847058823529412);
  opacity: 0.8;
}

.el-button--primary.didnotpass-btngroup-tipsbtn.is-active,
.el-button--primary.didnotpass-btngroup-tipsbtn:active {
  background: #ffffff;
  border-color: #de0010;
  color: #de0010;
}

.el-button--primary.didnotpass-btngroup-tipsbtn:focus,
.el-button--primary.didnotpass-btngroup-tipsbtn:hover {
  background: #ffffff;
  border-color: #ec5a64;
  color: #de0010;
}

.el-button--primary.didnotpass-btngroup-tipsbtn {
  background-color: #ffffff;
  border-color: #de0010;
  font-size: 14px;
  font-weight: 400;
  color: #de0010;
}

.didnotpass-confirm-success {
  .el-message-box__header {
    .el-message-box__title {
      font-size: 24px;
      font-weight: 400;

      .el-message-box__status {
        font-size: 32px !important;
      }
    }
  }

  .el-message-box__content {
    padding-top: 20px;
    padding-bottom: 40px;
    font-size: 18px;
    font-weight: 400;
  }
}

.didnotpass-confirm-warning {
  width: 720px;

  .el-message-box__header {
    .el-message-box__title {
      font-size: 24px;
      font-weight: 400;

      .el-message-box__status {
        font-size: 32px !important;
      }
    }
  }

  .el-message-box__content {
    padding-top: 20px;
    padding-bottom: 40px;

    .didnotpass-dialog-title {
      margin-bottom: 15px;
      width: 100%;
      text-align: center;
      font-size: 18px;
      font-weight: 400;
    }

    .didnotpass-dialog-content {
      display: flex;
      margin-bottom: 15px;
      width: 100%;
      font-size: 16px;
      font-weight: 400;

      &-left {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 1px solid #979797;
      }
    }
  }
}

.toptitlepage {
  &-head {
    margin-bottom: 20px;
    width: 100%;
    padding: 15px 20px;
    background: url("../../assets/images/home-head-img.png"), #ffffff;
    background-size: 67px 67px, cover;
    background-position: right 5px bottom 0px, center;
    background-repeat: no-repeat, no-repeat;
    border-radius: 10px;

    &-title {
      display: flex;
      align-items: center;

      div {
        &:first-child {
          height: 37px;
          line-height: 37px;
        }

        &:last-child {
          margin-left: 15px;
          height: 37px;
          font-size: 26px;
          font-weight: 400;
          color: #4f4f4f;
          line-height: 37px;
          letter-spacing: 1px;
        }

        img {
          width: 34px;
          height: 34px;
        }
      }
    }
  }
}
