.admin-area {
  width: 100%;
  border-top-left-radius: 0.5rem;
  overflow: hidden;

  @media (width >= 768px) {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  & > header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    z-index: 999;

    & > *:first-child {
      flex-grow: 1;
    }

    & small {
      font-weight: 100;
      font-size: 0.875rem;
      display: block;
    }

    &.with-subheading {
      & h2 {
        margin-bottom: 0.25rem;
      }

      & h2 + p {
        font-size: 0.875rem;
      }
    }

    @media (width >= 768px) {
      align-items: center;
      flex-wrap: nowrap;
      position: static;
    }
  }

  & header h2 {
    font-weight: 300;
  }

  & header > h2 {
    flex: 1;
  }

  & section {
    flex: 1;
    overflow: auto;

    & p {
      padding: 1rem;
    }
  }

  & article {
    display: flex;
  }
}

.admin-area-filter-options {
  align-items: center;
  display: flex;
  justify-content: space-evenly;

  & a {
    background-color: var(--medium-purple);
    box-shadow: inset 0 0 5px rgb(0 0 0 / 5%);
    color: var(--gray-700);
    flex: 1;
    padding: 0.5rem 0;
    text-align: center;
    text-decoration: none;
  }

  & a:hover {
    background-color: var(--medium-purple);
  }

  & a:active {
    background-color: var(--medium-purple);
  }

  & a:first-child {
    border-right: 1px solid var(--gray-300);
  }

  & a:last-child {
    border-left: 1px solid var(--gray-300);
  }

  & a.active {
    background-color: #fff;
    box-shadow: none;
    color: var(--gray-700);
  }

  & a.active:hover {
    background-color: var(--light-purple);
  }
}

.admin-area.unflexed {
  flex: 0;
  min-width: 20rem;
}

.admin-area--exports {
  & header h2 {
    margin-bottom: 0;
  }

  & section {
    display: flex;
    flex-direction: column;
  }

  & .fieldset-wrapper {
    overflow: auto;
    padding: 1rem;
  }

  & .solo-form fieldset {
    margin-top: 0;
  }

  & .solo-form footer {
    margin-top: auto;
    padding: 0.5rem 1rem;
  }
}
