/*******************************************************************************
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corporation 2017. All Rights Reserved.
 *
 * Note to U.S. Government Users Restricted Rights:
 * Use, duplication or disclosure restricted by GSA ADP Schedule
 * Contract with IBM Corp.
 *******************************************************************************/
/* Copyright (c) 2020 Red Hat, Inc. */
@import 'node_modules/carbon-components/scss/globals/scss/_colors';
@import './dashboard-card';
@import 'variables';

.resource-table {
  .bx--form-item.bx--checkbox-wrapper {
    margin-top: 0;
  }
  .bx--structured-list {
    margin-bottom: 0;
    .bx--structured-list-row,
    .bx--structured-list-row--header-row {
      border-bottom: 0;
    }

    .bx--structured-list-th {
      padding-bottom: .325rem;
      color: $color__blue-51;
      font-size: 0.75rem;
    }

    .bx--structured-list-td {
      padding: .825rem;
      padding-left: 0;
    }
    
  }

  .violationCell {
    > svg {
      margin-right: 0.25rem;
    }
  }

  .row-not-expanded .bx--table-expand-v2__button {
    visibility: hidden;
  }

  tr.bx--expandable-row-v2:hover + tr[data-child-row] > td {
    border-right: 0;
  }

  ul, ol {
    padding: .375rem 0 .375rem 0;
  }
}

  .bx--overflow-menu-options__option--danger:only-child {
    border-top: 0;
  }

.search-no-results {
  font-style: italic;
  padding-top: 1rem;
  font-weight: 200;
}

.compliance-table-status {
  display: flex;
  height: 1rem;
  .table-status {
    &__compliant {
      fill: $healthy
    }
    &__not_compliant {
      fill: $critical
    }
  }
}

.table-status-row {
    display: flex;
    margin-left: -.5rem;
    .table-status-icon {
      height: 1rem;
      margin-left: 0.2rem;
      margin-right: 0.4rem;
      margin-top: 0.2rem;
      &__healthy {
        fill: $healthy
      }
      &__critical {
        fill: $critical
      }
      &__warning {
        fill: $warning
      }
      &__failed {
        fill: $critical
      }
    }
    p {
      text-transform: capitalize;
    }
}
