html,
body {
    overflow: hidden;
}

.crm-app-layout {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #f3f5f8;
    position: relative;

    >.crm-app-header-container {
        width: 100vw;
        height: 53px;
        z-index: 1;
        overflow: hidden;
        display: flex;
        position: relative;
        border-bottom: 1px solid #e0e3e9;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: rgb(224, 227, 233);
        padding: 6px;

        >.crm-app-header-background {
            top: 0px;
            left: 0px;
            right: 0px;
            bottom: 0px;
            position: absolute;
            z-index: -10;
            background: #fff;
            background-image: url(../../../assets/img/header-bg.png);
            background-size: contain;
            background-position: 50%;
        }

        >.crm-app-header-background::before {
            content: " ";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: -webkit-gradient(linear, left top, left bottom, from(#f9fafd), to(#e7eef8));
            background: -o-linear-gradient(top, #f9fafd 0, #e7eef8 100%);
            background: linear-gradient(180deg, #f9fafd, #e7eef8);
            opacity: .9;
            z-index: -1;
        }

        >.crm-app-header {
            display: flex;
            flex-grow: 1;
            justify-content: space-between;
            height: 100%;
        }

        >.crm-user-info-container {
            flex-shrink: 0;
            width: 45px;
            height: 100%;

            >.crm-app-header-left-container {
                height: 100%;
            }

            >.crm-app-header-right-container {
                height: 100%;
            }
        }

        >.crm-modal-close {
            width: 40px;
            font-size: 28px;
            text-align: center;
            margin-top: -2px;
            cursor: pointer;
        }
    }

    >.crm-app-content-container {
        width: 100vw;
        height: calc(100vh - 53px);
        overflow-x: hidden;
        overflow-y: auto;
    }
}

.crm-app-view {
    width: 100%;
    height: 100%;
    background-color: white;
    padding-top: 12px;
    padding-left: 6px;
    position: relative;

    >.crm-app-view-header-wrapper {
        width: 100%;
        height: 40px;
        padding: 0 10px 10px 10px;

        >.crm-app-view-header-left-wrapper {
            float: left;
            height: 100%;

            >.view-header-left {

                >.view-caption {
                    font-size: 16px;
                    font-weight: 600;
                }
            }
        }

        >.crm-app-view-header-right-wrapper {
            float: right;
            height: 100%;
        }
    }

    >.crm-app-view-content-wrapper {
        width: 100%;
        height: calc(100% - 40px);
        padding: 0 10px 0 10px;
        overflow-x: auto;

        .el-table {

            thead {
                color: #304265;
            }
        }
    }
}

.crm-app-view.no-caption-bar {
    padding: 0px;

    >.crm-app-view-content-wrapper {
        height: 100%;
        padding: 0px;
        overflow-x: auto;
    }
}


// 看板视图，卡片模式
.crm-app-view.appportalview,.crm-app-view.deportalview,.crm-app-view.deportalview9{
  >.crm-app-view-content-wrapper>.view-content-wrapper{
    background: #efefef;
  }
  .dashboard{
    padding: 8px;
  }
  .portlet-container{
    background: #efefef;
  }
  .portlet-container::after{
    content: "";
    clear: both;
  }
  .portlet{
    margin: 8px;
    height: calc(100% - 16px);
    width: calc(100% - 16px);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 2px 6px 0 rgba(0,0,0,.045);
    border: 1px solid transparent;
    >.portlet-with-title{
      margin-bottom: 12px;
      height: calc(100% - 64px);
    }
    >.portlet-without-title{
      margin-top: 12px;
      margin-bottom: 12px;
      height: calc(100% - 24px);
    }
  }
}

// 看板视图，无缝模式
.crm-app-view.appportalview.seamless-mode,.crm-app-view.deportalview.seamless-mode,.crm-app-view.deportalview9.seamless-mode{
  >.crm-app-view-content-wrapper>.view-content-wrapper{
    background: transparent;
  }
  .portlet-container{
    background: transparent;
  }
  .portlet{
    background: transparent;
  }
}