// title

.common-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.85);
  text-align: left;
}

// full-screen

.common-full-screen {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  cursor: pointer;

  i {
    font-size: 1.7rem;
    line-height: 1.5;
    color: white;
  }
}

// close

.common-close {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  cursor: pointer;
  background: $core-close;

  i {
    font-size: 1.7rem;
    line-height: 1.5;
    color: white;
  }
}

// headers

.common-header {
  text-align: center;
  // background: transparent;//$core-color;
  // border: 1px solid $core-border-color;
  background: rgba(241,241,241,1);
  border: 1px solid #e9e9e9;
  opacity: 1;
  // border-radius: $core-border-radius;

  .common-header-item {
    display: inline-block;
    width: 130px;
    height: 40px;
    line-height: 40px;
    color: black;
    cursor: pointer;
    // border: 1px solid $core-border-color;
    border: 1px solid #e9e9e9;
    border-top: 0;
    opacity: 1;

    & + .common-header-item {
      border-left: 0;
    }

    &.common-header-item-active {
      // background: $dialog-footer-item-bg-active;
      background: rgba(214,214,214,1);
    }

    .header-item-text {

    }
  }
}
// footers

.common-footer {
  text-align: center;
  background: transparent;//$core-color;
  border: 1px solid $core-border-color;
  border-radius: $core-border-radius;

  .common-footer-item {
    display: inline-block;
    width: $dialog-footer-width;
    height: $dialog-footer-height;
    overflow: hidden;
    cursor: pointer;
    background: $dialog-footer-item-bg;
    border: 1px solid $core-border-color;
    border-top: 0;
    box-sizing: border-box;

    & + .common-footer-item {
      border-left: 0;
    }

    &.common-footer-item-active {
      background: $dialog-footer-item-bg-active;
    }

    .footer-item-text {

    }
  }
}

// values

.common-values {
  padding: 0 0.5rem 0.5rem;

  .values-item {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 1px;

    .item-label {
      margin-right: 0.3rem;
    }
  }
}

// dialog
.dialog-body-portal-wrapper {
  .dialog-body {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: $dialog-min-width;
    height: $dialog-height;
    overflow: hidden;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 1;

    &.show-body-max {
      width: $dialog-min-width + $dialog-max-width;
    }

    .dialog-body-min {
      position: relative;
      width: $dialog-min-width;
      height: $dialog-height;
      min-width: $dialog-min-width;
      color: black;
      background: $content-color;
      // border: 1px solid $core-border-color;
      border-radius: $core-border-radius;
      // box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
      box-sizing: border-box;

      .body-min-header {
        position: relative;
        height: 30px;
        padding: 0;
        // margin-bottom: 1rem;
        background: linear-gradient(180deg,rgba(228,228,228,1) 0%,rgba(242,242,242,1) 100%);
        border-bottom: 1px solid rgba(228,228,228,1);
        border-top-right-radius: 4px;
        border-top-left-radius: 4px;
        opacity: 1;

        .common-title {
          position: absolute;
          left: 1rem;
        }

        .common-close {
          position: absolute;
          right: 0;
          // background: red;
          background: linear-gradient(180deg,rgba(253,53,17,1) 0%,rgba(252,4,145,1) 100%);
          border-top-right-radius: 4px;
          i {
            font-size: 12px;
            line-height: 2.5rem;
            color: white;
          }
        }
      }

      .body-min-content {
        height: calc(35% - 50px - 2.5rem);
        margin-top: 1rem;
        margin-right: 1rem;
        margin-left: 1rem;
        // background: rgba(228, 228, 228, 1);
      }

      .body-min-table {
        height: calc(65% - 50px - 2.5rem);
        margin-right: 1rem;
        margin-left: 1rem;

        .ant-table-title {
          display: none;
        }

        .ant-table-thead {
          tr {
            th {
              color: $biz-table-font-color;
              // background: $biz-table-title-color;//rgba(40, 40, 40, 1);
              border-color: $core-border-color;
            }
        }
      }

        .ant-table-body {
          tr {
            td {
              color: $biz-table-font-color;//#ffffff;
              background: $content-color;//rgba(51, 51, 51, 1);
              border-color: $core-border-color;//#252525;
            }
          }
          max-height: 273px !important;
          overflow-y: scroll;
        }

        .ant-table-placeholder {
          color: $biz-table-font-color;
          background-color: $content-color;//rgba(40, 40, 40, 1);
        }

        .highlight-row {
          background: #ecf6fd;
        }
      }
    }

    .common-footer {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 50px;
      // color: red;
      color: #108ee9;
      border-bottom: none;
      border-top-right-radius: 0;
      border-top-left-radius: 0;

      .common-footer-item {
        border-top: 0;
      }
    }

    .common-header {
      width: 100%;
      height: 40px;
      color: #108ee9;
      border-top: none;
      border-right: none;
      border-left: none;

      .common-header-item {
        border-top: 0;
      }
    }
  }

  .dialog-body-max {
    width: $dialog-max-width;
    height: $dialog-height;
    min-width: $dialog-max-width;
    margin-left: 0.5rem;
    background: $content-color;
    border: 1px solid $core-border-color;
    border-radius: 6px;
  }
}

// dialog
.dialog-body-video-wrapper {
  .dialog-body {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 310px;
    height: 220px;
    overflow: hidden;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;

    &.show-body-max {
      top: 6%;
      left: 5%;
      width: 90%;
      height: 90%;
      overflow: hidden;
      transform: none;
    }

    .dialog-body-min {
      position: relative;
      width: 310px;
      height: 220px;
      min-width: 310px;
      color: black;
      background: $content-color;
      // border: 1px solid $core-border-color;
      border-radius: $core-border-radius;
      // box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
      box-sizing: border-box;

      .body-min-header {
        position: relative;
        height: 30px;
        padding: 0;
        margin-bottom: 0.5rem;
        background: linear-gradient(180deg,rgba(228,228,228,1) 0%,rgba(242,242,242,1) 100%);

        .common-title {
          position: absolute;
          left: 1rem;
        }

        .common-full-screen {
          position: absolute;
          right: 3rem;
          background: #4CCF00;
          i {
            font-size: 12px;
            line-height: 2.5;
            color: white;
          }
        }

        .common-close {
          position: absolute;
          right: 0;
          background: linear-gradient(180deg,rgba(253,53,17,1) 0%,rgba(252,4,145,1) 100%);
          i {
            font-size: 12px;
            line-height: 2.5;
            color: white;
          }
        }
      }

      .body-min-content {
        width: 98%;
        height: 180px;
        margin-right: 1%;
        margin-left: 1%;

        video {
          width: 100%;
          height: 100%;
          object-fit: fill !important;
        }

        .iframe-video {
          margin: 0;
        }
      }
    }

    .dialog-body-max {
      position: relative;
      width: 100%;
      height: 100%;
      min-width: 90%;
      color: black;
      background: $content-color;
      border: 1px solid $core-border-color;
      border-radius: $core-border-radius;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
      box-sizing: border-box;

      .body-max-header {
        position: relative;
        height: 30px;
        padding: 0;
        margin-bottom: 1rem;
        background: #ebebeb;

        .common-title {
          position: absolute;
          left: 1rem;
        }

        .common-full-screen {
          position: absolute;
          right: 3rem;
          background: #FFDB00;
          i {
            font-size: 12px;
            line-height: 2.5;
            color: white;
          }
        }

        .common-close {
          position: absolute;
          right: 0;
          background: red;
          i {
            font-size: 12px;
            line-height: 2.5;
            color: white;
          }
        }
      }

      .body-max-content {
        width: 98%;
        height: 92%;
        margin-right: 1rem;
        margin-left: 1rem;

        video {
          width: 100%;
          height: 100%;
          object-fit: fill !important;
        }

        .iframe-video {
          margin: 0;
        }
      }
    }
  }
}

@media only screen and (min-width: 1500px) {
  .dialog-body-portal-wrapper {
    .dialog-body {
      width: 66rem;

      &.show-body-max {
        width: 78rem;
      }

      .dialog-body-max {
        width: 66rem;
      }
    }
  }
}
