// Dialog
.xt-material-container {

  :global {
    .el-dialog {
      box-shadow: 0px 12px 39px 0px rgba(0, 0, 0, 0.2);
      border-radius: 16px;
    }

    .el-dialog__header {
      padding: 15px 20px 10px 30px;
      border-bottom: 1px solid #EAEAEA;
      display: flex;
      justify-content: space-between;
      align-items: center;

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

    .el-dialog__headerbtn {
      float: initial;
      width: 39px;
      height: 34px;
      background: #F3F9FD;
      border-radius: 1px;
    }

    .el-dialog__headerbtn .el-dialog__close {
      color: #222222;
      font-size: 12px;
    }

    .el-dialog__body {
      padding: 0;
      height: 500px;
      overflow: hidden;
      display: flex;
      justify-content: space-between;
    }

    .el-dialog__footer {
      padding: 20px 40px;
      background: #FFFFFF;
      box-shadow: 0px 12px 39px 0px rgba(0, 0, 0, 0.2);
      border-radius: 0px 0px 16px 16px;

      .el-button--primary {
        background: #3F8CFF;
        box-shadow: 0px 5px 12px 0px rgba(63, 140, 255, 0.34);
        border-radius: 14px;
        padding: 0;
        width: 127px;
        height: 49px;
        border: none;

        >span {
          font-size: 14px;
          font-weight: 500;
          color: #fff;
        }
      }
    }
  }

  .xt-save-icon {
    margin-right: 10px;
    font-size: 13px;
  }

  .xt-material-list {
    width: 390px;
    height: 100%;
    padding: 15px 30px;
    position: relative;

    .xt-list-header {
      display: flex;
      justify-content: space-between;
      cursor: pointer;
      margin-bottom: 15px;
    }

    .xt-header-active {
      color: #3F8CFF;
      position: relative;
      padding-bottom: 10px;
      transition: all 0.3s;

      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        margin: auto;
        width: 28px;
        height: 4px;
        background: #3F8CFF;
        border-radius: 2px;
      }
    }

    .xt-list-content,
    .xt-fall-content {
      display: grid;
      grid-template-columns: auto max-content;
      grid-row-gap: 10px;

      .xt-content-block {
        width: 152px;
        height: 114px;
        border-radius: 8px;
        background: #000;
        cursor: pointer;
      }

      .xt-content-active {
        border: 4px solid #3E8BFE;
      }

      .xt-list-no-data {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;

        >img {
          width: 138px;
        }

        >span {
          font-size: 12px;
          color: #AFB5D9;
        }
      }
    }

    .xt-fall-content .xt-content-block {
      height: auto;
    }
  }

  .xt-material-edit {
    width: calc(100% - 390px - 6px);
    padding-right: 30px;
    position: relative;

    &::before {
      position: absolute;
      width: 1px;
      height: 95%;
      background-color: #EAEAEA;
      content: '';
    }
  }
}
