/*******************************************************************************
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corporation 2019. 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 'variables';

.resource-toolbar {
  position: fixed;
  top: $secondary-header-top;
  right: 1.5625rem;
  z-index: 1001;
  background-color: $color__white;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: $secondary-header-min-height;

  &.hide {
    display: none;
  }

  .resource-toolbar-container {
    position: fixed;
    right: 5%;
    display: flex;
    min-height: $secondary-header-min-height;
    flex-direction: column;
    padding-top: .625rem;

    > div {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    .resource-toolbar-buttons {
      height: 1.25rem;
      > div {
        color: $color__blue-51;
        font-size: 0.875rem;
        font-weight: bold;
        cursor: pointer;
        outline: none;
        display: flex;
        align-items: center;
        height: 1.625rem;

        .button-icon {
          width: 0.75rem;
          height: 0.75rem;
          fill: $color__blue-51;
          stroke: none;
        }

        .button-label {
          padding: 0 0.5rem;
          white-space: nowrap;
        }
      }

      .resource-filter-button:focus {
        box-shadow: 0 0 0 $grc_focus_shaldow_width $grc_focus_shaldow_color;
        outline: 0.0625rem solid transparent;
        border: none;
      }

      > div:not(:last-child) {
        padding-right: 1.25rem;
        border-right: 0.125rem solid $color__gray-1;
      }

      > div:last-child {
        padding-left: 0.66rem;
        margin-right: -1.5rem;
      }
    }

    .refresh-time-container {
      > div {
        font-size: 0.625rem;
        display: flex;
        align-items: center;
        height: 1.25rem;
        margin-right: inherit;
        white-space: pre;
      }

      .bx--loading--small {
        width: 1rem;
        height: 1rem;
        margin: -0.125rem 0;
      }
    }
  }
}
