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

.sql-editor-wrapper {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  width: 100%;
  position: relative;

  &:hover {
    border-color: #40a9ff;
  }

  &:focus-within {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  }

  .sql-editor {
    height: 100%;
    width: 100%;
  }
}

:host {
  display: block;
  position: relative;
}

:host ::ng-deep {
  .monaco-editor {
    .margin {
      background-color: #fafafa;
    }
  }

  .monaco-editor .suggest-widget {
    z-index: 9999 !important;

    .suggest-widget-status-bar {
      display: none !important;
    }
  }

  .monaco-editor .editor-widget {
    z-index: 9999 !important;
  }

  .monaco-editor .overflowingContentWidgets {
    z-index: 9999 !important;
  }
}
