@import './../index.scss';
@import '~amos-framework/lib/styles/mixins/scrollbar.scss';

.amos-divider {
  /* stylelint-disable-next-line declaration-no-important */
  background: $background-transparent !important;
}

.eb-com-tablelist-wrapper {
  width: 100%;
  height: 100%;
  // background: white;
  /* stylelint-disable-next-line declaration-no-important */
  background: $tablelist-wrapper-background !important;
}

.eb-com-tablelist-header {
  display: flex;
  width: 100%;
  height: 42px;
  // background-color: $frame-slave-bg;
  background: $header-background;

  .eb-com-btn {
    margin-right: 30px;
    margin-left: 0;
  }
}

.eb-com-tablelist-content {
  position: relative;
  width: 100%;
  height: calc(100% - #{42px});

  .eb-com-filter-pane {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    // background: white;
    // border: 1px solid $frame-main-bordercolor;
    background: $filter-pane-background;
    border: 1px solid $filter-pane-border;
  }
}

.eb-com-tablelist-header-title {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 20px;
  font-size: $frame-second-fontsize;
  // color: $frame-fourth-color;
  color: $font-color-333333;
}

.eb-com-tablelist-header-btn-left {
  display: flex;
  align-items: center;
  height: 90%;
  padding-left: 20px;
  margin: 2px 0;
}

.eb-com-tablelist-header-bar {
  display: flex;
  flex: 1;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  padding-right: 34px;
}

.eb-com-tablelist-header-btn {
  margin-left: 30px;
}

.eb-com-tablelist-table {
  width: 100%;
  height: 100%;
}

.eb-com-tablelist-table-operation {
  span {
    margin: 0 5px;
    // color: #666;
    color: $color-666666;
  }
}

.eb-com-mgmt-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  // background: white;
  background: $background-color-white;
}

.eb-com-mgmt-wrapper-danger {
  position: relative;
  width: 100%;
  // background: white;
  background: $background-color-white;
}

.eb-com-mgmt-header {
  display: flex;
  width: 100%;
  height: 42px;
  padding: 0 10px;
  background-color: $frame-slave-bg;
  border-bottom: solid 1px $frame-main-bordercolor;

  .eb-com-mgmt-header-left {
    display: flex;
    height: 100%;
    align-items: center;
  }

  .eb-com-mgmt-header-right {
    display: flex;
    flex: 1;
    height: 100%;
    align-items: center;
    justify-content: flex-end;

    .eb-com-btn {
      margin-left: 30px;
    }
  }
}

.eb-com-mgmt-content {
  height: calc(100% - #{42px});
}

.eb-project-qr-item {
  display: inline-block;
  width: 50%;
  vertical-align: top;
  // border: 1px solid #e4e4e4;
  border: 1px solid $color-e4e4e4;
  border-right: 0;
  border-bottom: 0;

  &:first-child {
    &:last-child {
      border: 0;
    }
  }

  .eb-project-qr-header {
    display: flex;
    height: 42px;
    font-size: 18px;
    background: $color-f3f3f3;
    border-bottom: 1px solid $color-e4e4e4;
    align-items: center;
    justify-content: center;
  }

  .eb-project-qr-content {
    padding-bottom: 25px;
  }

  .eb-project-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 25px 0;

    img {
      width: 250px; // !important;
      height: 250px; // !important;
    }
  }

  .eb-project-qr-btns {
    text-align: center;

    a+a {
      margin-left: 20px;
    }
  }
}

.eb-com-mgmt-config-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;

  .eb-com-mgmt-config-content {
    width: 100%;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 100px;
    overflow: auto;

    .eb-com-mgmt-config-miao-list {
      position: absolute;
      top: 75px;
      left: calc(50% - 707px);
      width: 107px;
      border: solid 1px $frame-main-bordercolor;
      border-top: 0;
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.16);

      li {
        display: flex;
        width: 100%;
        padding: 9px 0;
        font-size: 16px;
        line-height: 1.2;
        color: $color-333333;
        align-items: center;
        justify-content: center;
        background-color: $color-f2f2f2;
        border-top: solid 1px $frame-main-bordercolor;

        a {
          // color: #333;
          color: $color-333333;
        }
      }
    }
  }
}

.eb-com-mgmt-config-panel {
  width: 1200px;
  margin: 0 auto;
  margin-bottom: 32px;
  border: 1px solid $frame-main-bordercolor;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.16);


  .eb-com-mgmt-config-panel-header {
    width: 100%;
    height: 55px;
    background: $frame-slave-bg;
    border-bottom: 1px solid $frame-main-bordercolor;

    &.eb-com-mgmt-config-panel-btnheader {
      display: flex;
      align-items: center;

      .eb-com-mgmt-config-panel-title {
        flex: 1;
      }

      .eb-com-btn {
        margin-right: 40px;
      }
    }
  }

  .eb-com-mgmt-config-panel-content {
    min-height: 50px;
  }

  >.eb-com-mgmt-config-panel-tabs {
    >.amos-tabs-list {
      width: 100%;
      height: 55px;
      padding-left: 54px;
      background: $frame-slave-bg;
      border-bottom: 1px solid $frame-main-bordercolor;

      .amos-tabs-tabitem {
        height: 100%;
        padding: 0 35px;
        background: transparent;
        border-left: 1px solid $frame-main-bordercolor;

        &:last-child {
          border-right: 1px solid $frame-main-bordercolor;
        }

        .amos-tabs-tabitem-inner {
          height: 100%;
          padding: 0 9px;
          padding-top: 5px;
          border-bottom: 4px solid transparent;

          &:hover {
            background-color: transparent;
            // border-bottom: 4px solid #345fa6;
            border-bottom: 4px solid $color-345fa6;
          }

          .amos-tabs-tabitem-content {
            display: flex;
            height: 100%;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #333;
          }
        }

        &.amos-tabs-tabitem-active {
          // background: white;
          background: $background-color-white;

          .amos-tabs-tabitem-inner {
            background-color: transparent;
            // border-bottom: 4px solid #345fa6;
            border-bottom: 4px solid $color-345fa6;
          }
        }
      }
    }

    >.amos-tabs-panel {
      padding-top: 0;
    }
  }
}

.eb-com-mgmt-config-panel-title {
  display: flex;
  height: 100%;
  align-items: center;
  padding-left: 35px;
  font-size: 18px;
  font-weight: bold;
  color: $color-3f3f3f;
}

.eb-project-config-panel {
  padding: 25px 40px 40px 54px;

  .eb-project-config-panel-title {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    font-size: 18px;
    color: $color-666666;

    &::before {
      display: block;
      width: 6px;
      height: 6px;
      margin-right: 10px;
      background-color: $color-345fa6;
      content: '';
      transform: rotate(45deg);
    }
  }

  .eb-project-config-panel-content {
    padding-left: 15px;

    .amos-form-item {
      padding-right: 37px; //!important;
    }
  }
}

.eb-project-cm-panel {
  padding: 40px 50px 55px;

  .eb-project-cm-panel-wrapper {
    padding: 25px;
    border: solid 1px $color-eaeaea;

    .eb-project-cm-panel-header {
      margin-bottom: 20px;

      .eb-details-title {
        font-size: 20px;
        font-weight: bold;
        color: $color-333333;
      }
    }
  }
}

.eb-details-label {
  margin-right: 0.2em;
  line-height: 40px;
  color: $color-333333;

  &::after {
    content: ':';
  }
}

.eb-details-value {
  line-height: 40px;
  color: $color-333333;
}

.eb-details-textarea {
  display: inline-block;
  width: 100%;
  text-indent: 2em;
}

@for $i from 1 through 100 {
  .eb-details-item-w-#{$i} {
    display: inline-block;
    width: 1% * $i;
    font-size: 16px;
    vertical-align: top;
  }

  .eb-details-item-minw-#{$i} {
    display: inline-block;
    min-width: 1em * $i; // !important;
    font-size: 16px;
    vertical-align: top;
  }

  .eb-details-label-#{$i} {
    display: inline-block;
    width: 1em * $i;
    vertical-align: top;
  }

  .eb-details-value-#{$i} {
    display: inline-block;
    min-width: 1em * $i;
    vertical-align: top;
  }
}

.eb-project-qr-contaienr {
  border-right: 1px solid $color-e4e4e4;
  border-bottom: 1px solid $color-e4e4e4;
}

.eb-qrdownload-wrapper {
  .eb-qrdownload-container {
    .eb-qrdownload-img {
      padding: 10px 0 0;
      text-align: center;

      canvas {
        max-width: 400px; // !important;
        max-height: 400px; // !important;
      }
    }
  }
}

.noborder {
  .amos-taglist {
    height: 32px;
    overflow: auto;
  }

  .amos-taglist input {
    height: 24px;
    border: none;
  }
}

.ant-table-header {
  /* stylelint-disable-next-line declaration-no-important */
  padding-bottom: 0 !important;
  /* stylelint-disable-next-line declaration-no-important */
  margin-bottom: 0 !important;
  /* stylelint-disable-next-line declaration-no-important */
  overflow: hidden !important;
  /* stylelint-disable-next-line declaration-no-important */
  background: var(--gm-table-background-transparent, $background-transparent) !important;
}

.ant-table-body {
  @include pretty-scrollbar(5px, 8px, var(--gm-table-scrollOutColor, $scrollOutColor), var(--gm-table-scrollInnerColor, $scrollInnerColor));

  /* stylelint-disable-next-line declaration-no-important */
  background: var(--gm-table-background-transparent, $background-transparent) !important;

  .amos-input {
    color: var(--gm-table-form-label-font-color, $form-label-font-color);
    background: var(--gm-table-amos-form-item-background, $amos-form-item-background);
    border: 1px solid var(--gm-table-amos-form-item-border, $amos-form-item-border);
  }

  .ant-checkbox-inner {
    width: 16px;
    height: 16px;
    background: var(--gm-table-table-checkbox-background, $table-checkbox-background);
    border: 1px solid var(--gm-table-table-checkbox-border, $table-checkbox-border);
  }

  .ant-checkbox-checked .ant-checkbox-inner,
  .ant-checkbox-disabled .ant-checkbox-inner {
    background: var(--gm-table-table-checkbox-check-background, $table-checkbox-check-background);
    border: 1px solid var(--gm-table-table-checkbox-border, $table-checkbox-border);
  }
}

.ant-table-thead>tr>th {
  /* stylelint-disable-next-line declaration-no-important */
  color: var(--gm-table-table-tbody-color, $table-tbody-color) !important;
  /* stylelint-disable-next-line declaration-no-important */
  background: var(--gm-table-table-header-tr-background, $table-header-tr-background) !important;
  /* stylelint-disable-next-line declaration-no-important */
  border-bottom: 4px solid var(--gm-table-table-thead-border, $table-thead-border) !important;
}

.ant-table-tbody>tr>td {
  margin-top: 4px;
  /* stylelint-disable-next-line declaration-no-important */
  color: var(--gm-table-table-tbody-color, $table-tbody-color) !important;
  /* stylelint-disable-next-line declaration-no-important */
  background: var(--gm-table-table-body-td-background, $table-body-td-background) !important;
  /* stylelint-disable-next-line declaration-no-important */
  border-bottom: 4px solid var(--gm-table-table-tbody-border, $table-tbody-border) !important;

  .ant-table-row-expand-icon {
    color: #3f3f3f;
  }
}

.ant-table-tbody>tr:hover {
  background: var(--gm-table-table-body-tr-hover-background, $table-body-tr-hover-background);
}

// .ant-table-tbody > tr :hover {
//   background: red;
// }

.ant-table-placeholder {
  /* stylelint-disable-next-line declaration-no-important */
  color: var(--gm-table-table-tbody-color, $table-tbody-color) !important;
  /* stylelint-disable-next-line declaration-no-important */
  background: var(--gm-table-table-header-tr-background, $table-header-tr-background) !important;
  /* stylelint-disable-next-line declaration-no-important */
  border-bottom: 1px solid var(--gm-table-border-color-e9e9e9, $border-color-e9e9e9) !important;
}
