// LMS layouts

.content-wrapper {
  max-width: $lms-max-width;
  padding-bottom: $baseline*2;

  .page-content-container {
    @include clearfix();

    border: 1px solid $lms-border-color;
    background-color: $lms-container-background-color;
  }

  .page-header {
    @include clearfix();

    border-bottom: 1px solid $lms-border-color;
    padding: $baseline;

    .page-title {
      @extend %t-title4;

      margin-bottom: ($baseline/4);
      text-transform: none;
      color: $black;
    }

    .page-description {
      @extend %t-copy-sub1;

      margin-bottom: ($baseline/4);
      color: $gray;
    }

    &.has-secondary {
      .page-header-main {
        display: inline-block;
      }

      .page-header-secondary {
        @include float(right);
        @include text-align(right);

        display: flex;
        vertical-align: text-bottom;

        .form-actions {
          @include margin-left($baseline/2);

          display: inline-block;
        }

        .form-actions > *:first-child {
          @include margin-left(0);
        }
      }
    }
  }

  .page-content {
    padding: $baseline;

    @media (min-width: $grid-breakpoints-md) {
      display: flex;

      .page-content-main {
        flex-grow: 1;  // This column should consume all the available space
      }

      .page-content-secondary {
        min-width: 350px;  // Note: setting width only is not obeyed
        max-width: 350px;  // Note: setting width only is not obeyed
        margin-left: $baseline*2;
      }
    }
  }
}
