.saas-device-profile-two-column-page-root {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #f5f6f8;
  overflow: hidden;

  &-layout {
    flex: 1;
    min-height: 0;
    margin-top: 16px;
    background: transparent;
    gap: 16px;
  }

  &-sider {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    height: 100%;
    overflow: hidden;

    :global(.ant-layout-sider-children) {
      display: flex;
      flex-direction: column;
      height: 100%;
    }
  }

  &-content {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
}

.saas-device-profile--phone {
  .saas-device-profile-two-column-page-root {
    height: 100%;
    padding: 12px;
  }

  .saas-device-profile-two-column-page-root-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
    overflow: hidden;
  }

  .saas-device-profile-two-column-page-root-sider {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto;
    max-height: 236px;
    padding: 12px;
    border-radius: 10px;
  }

  .saas-device-profile-two-column-page-root-content {
    flex: 1 1 auto !important;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 12px;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: auto;
  }
}
