@mixin detail-container ($bottom-border-color) {
  border-bottom: 1px dotted $bottom-border-color;
  margin: 0;
  min-height: 2rem;
  padding: 1rem 0;
}

@mixin detail-container-title-style () {
  color: $text-blue;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;

  @include for-laptop-and-up {
    text-align: left;
  }


  &.collapsible {
    &::after {
      content: '\25BC';
    }
  }

  &.collapsed {
    &::after {
      content: '\25BA';
    }
  }
}

@mixin detail-container-header () {
  display: flex;
  justify-content: space-between;

  @include for-phone-only {
    flex-wrap: wrap;
  }
}

@mixin detail-container-title () {
  @include detail-container-title-style;
}

@mixin detail-container-actions () {
  display: flex;
  justify-content: space-around;

  & > * {
    margin-right: .5rem;
  }

  .bigadd {
    background-color: $ilios-green;
    color: $white;
  }

  .bigcancel {
    background-color: $ilios-red;
    color: $white;
  }
}

@mixin detail-container-content () {
  clear: both;
  margin-top: 2rem;
  padding: .5rem;

  table {
    @include ilios-table-structure;
    @include ilios-removable-table;
  }
}

@mixin detail-container ($bottom-border-color) {
  border-bottom: 1px dotted $bottom-border-color;
  margin: 0;
  min-height: 2rem;
  padding: 1rem 0;
}

@mixin detail-container-title-style () {
  @include ilios-heading-h4;
  font-weight: bold;

  &.collapsible {
    &::after {
      content: '\25BC';
    }
  }

  &.collapsed {
    &::after {
      content: '\25BA';
    }
  }
}

@mixin detail-container-header () {
  display: flex;
  justify-content: space-between;

  @include for-phone-only {
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
  }
}

@mixin detail-container-title () {
  @include detail-container-title-style;
}

@mixin detail-container-actions () {
  display: flex;
  justify-content: flex-end;

  & > * {
    margin-right: .5rem;
  }

  .bigadd {
    background-color: $ilios-green;
    color: $white;
  }

  .bigcancel {
    background-color: $ilios-red;
    color: $white;
  }
}

@mixin detail-container-content () {
  clear: both;
  margin-top: 2rem;
  padding: .5rem;

  table {
    @include ilios-table-structure;
    @include ilios-removable-table;
  }
}

Improve layout of detail header on phones
Improve layout of detail header on phones

Center everything when the screen is small.
