/*******************************************************************************
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corporation 2018, 2019. All Rights Reserved.
 *
 * US Government Users Restricted Rights - Use, duplication or disclosure 
 * restricted by GSA ADP Schedule Contract with IBM Corp.
 *******************************************************************************/
@import 'node_modules/carbon-components/scss/globals/scss/_colors';

.nested-table-header {
  text-transform: unset;
  display: inline-block;
  p:first-child {
    font-weight: bold;
    margin-right: 0.5rem;
  }
  p {
    float: left;
    display: inline;
    font-size: 0.875rem;
  }
}

.nested-table-main {
  width: 85%;
  margin: 0.5rem auto;
  table {
    min-width: 20rem;
    max-width: 100%;
    border: none;
  }

  .nested-table-header-row {
    border-bottom-width: 2px;
  }
}
.nested-table-body {
  min-width: 20rem;

  .nest-table-expand-name {
    font-weight: bold;
    font-size: 0.875rem;
  }

  .nested-table-select-row {
    border-bottom: 1px solid $color__navy-gray-8;
    &:not(:first-child):hover {
      outline: none;
      border-color: $color__navy-gray-8;
      border-width: 1px 0px 1px 0px;
    }
  }

  .bx--table-row {
    &:first-child {
      &:hover {
        border-width: 0px 0px 1px 0px;
        border-color: $color__navy-gray-8;
        outline: none;
      }
    }

    &.bx--expandable-row {
      border-bottom: 1px solid $color__navy-gray-8;
      table {
        border: none;
        .bx--table-body {
          tr:hover {
            border: none;
            outline: none;
          }
          tr {
            border: none;
          }
        }
      }
    }
  }
}
