/*
 * 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.
 */

:global {
  .AccelerationGridSubCell {
    &__menuDiv {
      display: flex;
      flex-grow: 1;
      justify-content: center;
      border-left: 1px solid #e1e1e1;
      cursor: pointer;
    }
  }

  #partition-transformation-menu {
    .MuiMenu-list {
      width: 254px;

      &__header {
        display: flex;
        align-items: center;
        height: 32px;
        margin-left: var(--dremio--spacing--2);
        gap: var(--dremio--spacing--1);
        font-weight: 600;

        &--icon {
          color: var(--icon--primary);
        }
      }

      .MuiMenuItem-root {
        &:hover {
          background-color: var(--fill--primary--hover) !important;
        }
      }

      .Mui-selected {
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--fill--primary--selected) !important;

        .current-transformation-subtext {
          font-size: 12px;
          color: var(--text--faded);
        }

        &:hover {
          background-color: var(--fill--primary--selected--hover) !important;
        }
      }
    }
  }
}
