/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * 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.
 */
@import "~#oss/uiTheme/less/mixins.less";

:global {
  .branchList {
    font-size: 14px;
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;

    &-header-item {
      color: var(--text--faded) !important;
      font-weight: 400 !important;
      font-size: 12px !important;
      opacity: 0.4;
      padding: 4px;
      margin-right: 8px;
      display: flex;
      align-items: end;

      &.MuiListItem-root.Mui-disabled {
        opacity: 1 !important;
      }
    }

    &-search {
      margin-right: 8px;
      margin-bottom: 8px;
    }

    &-listContainer {
      flex: 1;
      overflow: auto;
    }

    &-item {
      .flex-center();
      padding: 4px;
      margin-right: 8px;
      cursor: pointer;
    }

    &-item-icon {
      margin-right: 4px;
      display: flex;
      color: var(--icon--primary);
    }

    .font-icon {
      display: flex !important;
    }

    .MuiMenuItem-root {
      min-height: calc(100% - 8px);
      padding: 4px;
      margin-right: 8px;
    }

    .MuiListItem-root.Mui-selected {
      background-color: var(--color--brand--25) !important;
      font-weight: 600 !important;
      border-radius: 4px;
    }
  }
}
