/*
 *   Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License").
 *   You may not use this file except in compliance with the License.
 *   A copy of the License is located at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   or in the "license" file accompanying this file. This file 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 '../node_modules/@elastic/eui/src/global_styling/variables/colors';
@import '../node_modules/@elastic/eui/src/global_styling/variables/size';

.sql-console-query-container {
  padding: $euiSizeL;
}

.sql-console-query-editor {
  .sql-query-panel-header {
    margin-top: -10px;
  }
  .resize-panel {
    resize: vertical;
    overflow: auto;
    cursor: row-resize;
  }
  .sql-editor-link:visited {
    background-color: rgb(255,255,255);
  }
}

.sql-console-query-result{
  .query-result-panel-header {
    color: #3f3f3f;
  }
  scroll-behavior: smooth;
  .tabs-container {
    overflow: hidden;
    margin: 3px;
  }
  .table-name {
    color: #3f3f3f;
    margin-bottom: 7px;
  }
  .table-item-count {
    color: #8a9596;
    font-weight: 370;
  }
  .sideNav-table {
    border: solid 1px rgb(217, 217, 217);
    border-collapse: separate;
  }
  .search-panel {
    display: inline-flex;
    width: 70%;
  }
  .search-bar {
    width:80%;
  }
  .pagination-container {
    padding: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .tab-arrow-down-container {
    padding: 25px;
    height: 56px;
    vertical-align: middle;
    color: rgb(0, 121, 165);
  }

  .toggleContainer {
    margin: 20px;
  }
}

.sql-console-results-container {
  margin-top: -17px;
}

.expanded-row {
  /*background-color: rgb(232,243,246);
  /*background-color: rgb(245,247,250);*/
  border-collapse: separate;
}

.expanded-row:hover {
  background-color: rgb(232,243,246);
}

.no-background {
  background-color: rgba(0, 0, 0, 0);
}

/* Message Tab */
.code-editor {
  color: #006BB4;
}

.error-message {
  color: red;
}

.successful-message{
  color: #006BB4;
}