/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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 '../../variables';

$side-bar-width: 120px;

.table-action-dialog {
  &.#{$bp-ns}-dialog {
    position: relative;
    width: 90vw;
    height: 85vh;
    top: 5%;

    &::after {
      content: '';
      position: absolute;
      width: 0;
      top: 40px;
      bottom: 0;
      left: $side-bar-width;
      border-right: 1px solid #1f2832;
    }
  }

  .#{$bp-ns}-dialog-body {
    position: relative;
    margin: 0;

    .side-bar {
      position: absolute;
      top: 0;
      left: 0;
      width: 120px;
      height: 100%;

      .tab-button {
        width: 100%;
        height: 10vh;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        border-radius: 0;

        &.active {
          background-color: #2c74a8;
        }

        .#{$bp-ns}-icon {
          margin-right: 0;
        }

        .#{$bp-ns}-button-text {
          margin-top: 5px;
        }
      }
    }

    .main-section {
      position: absolute;
      top: 0;
      left: $side-bar-width;
      right: 0;
      height: 100%;
      padding: 10px 20px 15px 20px;
    }
  }

  .#{$bp-ns}-dialog-footer {
    position: relative;

    .footer-actions-left {
      position: absolute;
      left: $side-bar-width;

      & > * {
        margin-right: 10px;
      }
    }
  }
}
