/*!
 * -------------------------------------------------------------------------
 * advanceddashboard plugin for GLPI
 * -------------------------------------------------------------------------
 *
 * LICENSE
 *
 * This file is part of advanceddashboard.
 *
 * advanceddashboard 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.
 *
 * advanceddashboard 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 advanceddashboard. If not, see <http://www.gnu.org/licenses/>.
 * -------------------------------------------------------------------------
 * @copyright Copyright (C) 2020-2024 by Teclib'.
 * @license   GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
 * @link      https://services.glpi-network.com
 * -------------------------------------------------------------------------
 */
.advanceddashboard_editor {
  text-align: left;
}
.advanceddashboard_editor .advanceddashboard_toolbar {
  margin: 2px 0;
}
.advanceddashboard_editor .advanceddashboard_toolbar i {
  color: grey;
  cursor: pointer;
  font-size: 1.2em;
  padding: 7px;
  margin: 0 2px;
  width: inherit;
}
.advanceddashboard_editor .advanceddashboard_toolbar i:not(.fa-spin):hover {
  color: black;
  background-color: #e0e0e0;
}
.advanceddashboard_editor .editor {
  height: 350px;
  width: 100%;
}
.advanceddashboard_editor .editor .monaco-editor {
  border: 1px solid #dbdbdb;
}
.advanceddashboard_editor.fullscreened {
  background: white;
  padding: 5px 15px;
}
.advanceddashboard_editor.fullscreened .editor {
  height: calc(50vh - 30px - 35px - 45px);
  width: 100%;
}
.advanceddashboard_editor.fullscreened .run_result {
  height: 50vh;
}
.advanceddashboard_editor .run_result {
  width: 100%;
  margin-top: 3px;
}
.advanceddashboard_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;
}
.advanceddashboard_editor .run_result .alert.error {
  background-color: #fd5f5f;
}
.advanceddashboard_editor .run_result .alert.info {
  background-color: #c5e5ff;
  color: #323c44;
}
.advanceddashboard_editor .run_result table.result_set {
  font-size: 1.1em;
}
.advanceddashboard_editor .run_result table.result_set th {
  background: white;
}
.advanceddashboard_editor .run_result .fields-list {
  max-width: 600px;
}
.advanceddashboard_editor .run_result .fields-list h3 {
  border-bottom: 1px solid grey;
  margin: 15px 0;
}
.advanceddashboard_editor .run_result .fields-list .more_columns {
  margin-left: 150px;
}
.advanceddashboard_editor .run_result .fields-list .widgettype_field {
  margin-top: 25px;
}
.advanceddashboard_editor .run_result .fields-list .widgettype_field .widget-list {
  max-width: initial;
}
.advanceddashboard_editor .run_result .dashboard {
  padding-top: 0;
}
.advanceddashboard_editor .run_result .dashboard .card {
  width: 100%;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
}
.advanceddashboard_editor .run_result .dashboard .card .chart {
  margin-top: 0;
}
.advanceddashboard_editor .run_result .dashboard .card .chart svg {
  min-height: calc(50vh - 140px) !important;
}
.advanceddashboard_editor .run_result .dashboard .card.g-chart .main-label {
  margin: 0;
}
.advanceddashboard_editor .run_result .alert {
  margin: 0;
}
.advanceddashboard_editor .run_result .result_footer_toolbar {
  display: flex;
  flex-direction: row-reverse;
  border-top: 1px solid #cfcfcf;
  background-color: #f0f0f0;
  padding: 10px;
}
.advanceddashboard_editor .run_result .result_footer_toolbar i.fas, .advanceddashboard_editor .run_result .result_footer_toolbar i.far {
  margin-left: 10px;
}
.advanceddashboard_embed .dashboard {
  padding-top: 0;
  height: 90vh;
}
.advanceddashboard_embed .dashboard .card {
  width: 100%;
  height: 100%;
}
