/**
 * Copyright 2018-2020 Cargill Incorporated
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.tab-box {
  .tab-box-options {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: stretch;

    .tab-box-option {
      flex-basis: $padding-s * 6;
      flex-grow: 1;
      min-width: $padding-s * 6;
      padding: $padding-s;
      text-decoration: underline;
      color: $text-light;
      background-color: $background-light;
      cursor: pointer;
      font-family: $fontFamily-primary !important;
      border: 1px solid $text-light;
      outline: none;

      &:focus {
        outline: none;
      }

      &:not(:first-of-type) {
        margin-left: -1px;
      }

      &.active {
        background-color: $color-canopy-light;
        border-bottom-color: $color-canopy-light;
      }
    }
  }

  .tab-box-content {
    padding: $padding-s;
    border: 1px solid $text-light;
    border-top: 0;
    overflow-y: auto;
    height: 30vh;
  }

  clear: both;
}
