/*!
 * -------------------------------------------------------------------------
 * 'Procesos de Negocio' plugin for GLPI
 * Copyright (c) 2024 by Inforges's Tilena Team.
 * -------------------------------------------------------------------------
 *
 * LICENSE
 *
 * This file is part of the 'Procesos de Negocio' plugin.
 *
 * 'Procesos de Negocio' plugin is free software; you can redistribute it 
 * and/or modify it under the terms of the GNU General Public License as 
 * published by the Free Software Foundation; either version 3 of the 
 * License, or (at your option) any later version.
 *
 * 'Procesos de Negocio' plugin is distributed in the hope that it will 
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tilena. If not, see <http://www.gnu.org/licenses/>.
 * -------------------------------------------------------------------------
 * @package   'Procesos de Negocio'
 * @author    Elena Martinez Ballesta from Inforges's Tilena Team
 * @copyright Copyright (c) 2024 Tilena Team
 * @license   AGPL License 3.0 or (at your option) any later version
 *            http://www.gnu.org/licenses/agpl-3.0-standalone.html
 * @link      https://inforges.es/sistemas/itsm/tilena-on-premise/
 * @since     2016
 * ------------------------------------------------------------------------- 
 */
.SQL_editor {
  text-align: left;
}
.SQL_editor .SQL_editor_toolbar {
  margin: 2px 0;
}
.SQL_editor .SQL_editor_toolbar i {
  color: grey;
  cursor: pointer;
  font-size: 1.2em;
  padding: 7px;
  margin: 0 2px;
  width: inherit;
}
.SQL_editor .SQL_editor_toolbar i:not(.fa-spin):hover {
  color: black;
  background-color: #e0e0e0;
}
.SQL_editor .editor {
  height: 350px;
  width: 100%;
}
.SQL_editor .editor .monaco-editor {
  border: 1px solid #dbdbdb;
}
.SQL_editor.fullscreened {
  background: white;
  padding: 5px 15px;
}
.SQL_editor.fullscreened .editor {
  height: calc(50vh - 30px - 35px - 45px);
  width: 100%;
}
.SQL_editor.fullscreened .run_result {
  height: 50vh;
}
.SQL_editor .run_result {
  width: 100%;
  margin-top: 3px;
}
.SQL_editor .run_result .alert {
  padding: 20px;
  color: white;
  margin-bottom: 15px;
  background-color: #2196F3;
  max-width: 100%;
  border-radius: 0;
  text-align: left;
  font-weight: bold;
  box-sizing: border-box;
  margin-top: 2px;
}
.SQL_editor .run_result .alert.error {
  background-color: #fd5f5f;
}
.SQL_editor .run_result .alert.info {
  background-color: #c5e5ff;
  color: #323c44;
}
.SQL_editor .run_result table.result_set {
  font-size: 1.1em;
}
.SQL_editor .run_result table.result_set th {
  background: white;
}
.SQL_editor .run_result .fields-list {
  max-width: 600px;
}
.SQL_editor .run_result .fields-list h3 {
  border-bottom: 1px solid grey;
  margin: 15px 0;
}
.SQL_editor .run_result .fields-list .more_columns {
  margin-left: 150px;
}
.SQL_editor .run_result .fields-list .widgettype_field {
  margin-top: 25px;
}
.SQL_editor .run_result .fields-list .widgettype_field .widget-list {
  max-width: initial;
}
.SQL_editor .run_result .dashboard {
  padding-top: 0;
}
.SQL_editor .run_result .dashboard .card {
  width: 100%;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
}
.SQL_editor .run_result .dashboard .card .chart {
  margin-top: 0;
}
.SQL_editor .run_result .dashboard .card .chart svg {
  min-height: calc(50vh - 140px) !important;
}
.SQL_editor .run_result .dashboard .card.g-chart .main-label {
  margin: 0;
}
.SQL_editor .run_result .alert {
  margin: 0;
}
.SQL_editor .run_result .result_footer_toolbar {
  display: flex;
  flex-direction: row-reverse;
  border-top: 1px solid #cfcfcf;
  background-color: #f0f0f0;
  padding: 10px;
}
.SQL_editor .run_result .result_footer_toolbar i.fas, .SQL_editor .run_result .result_footer_toolbar i.far {
  margin-left: 10px;
}
.SQL_editor_embed .dashboard {
  padding-top: 0;
  height: 90vh;
}
.SQL_editor_embed .dashboard .card {
  width: 100%;
  height: 100%;
}
