.#{$ns}Chart {
  position: relative;

  .ant-empty {
    color: #999;
  }

  &-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  &-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  &-table {
    position: absolute;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--saas-main-bg);

    .chart-table-body {
      flex: 1;
      overflow: hidden;
      .#{$ns}Crud {
        height: 100%;
        .#{$ns}Table {
          height: 100%;
          display: flex;
          flex-direction: column;
          &-contentWrap {
            flex: 1;
            .#{$ns}Table-content {
              height: 100%;
              overflow: auto;
            }
          }
        }
      }
    }

    .chart-table-footer {
      text-align: right;
      padding: 10px 16px;
    }
  }
}

.charts-modal {
  max-height: 100vh;
}