/*
 * System Designer
 *
 * https://designfirst.io/systemdesigner/
 *
 * Copyright 2024 Erwan Carriou
 *
 * Licensed 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.
 */

body {
  padding-top: 70px;
  padding-bottom: 30px;
}

body,
.navbar-fixed-top,
.navbar-fixed-bottom {
  min-width: 500px;
}

img, a {
  user-select: none;
  -webkit-user-drag: none;
}

.lead {
  font-size: 16px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header .lead {
  margin-bottom: 10px;
}

.container {
  width: 100%;
  max-width: none !important;
}

.col-xs-4 {
  padding-top: 15px;
  padding-bottom: 15px;
  background-color: #eee;
  background-color: rgba(86, 61, 124, 0.15);
  border: 1px solid #ddd;
  border: 1px solid rgba(86, 61, 124, 0.2);
}

.container .navbar-header,
.container .navbar-collapse {
  margin-right: 0;
  margin-left: 0;
}

.navbar-header {
  float: left;
}

.navbar-collapse {
  display: block !important;
  height: auto !important;
  padding-bottom: 0;
  overflow: visible !important;
  visibility: visible !important;
}

.navbar-toggle {
  display: none;
}

.navbar-collapse {
  border-top: 0;
}

.navbar-brand {
  margin-left: -15px;
}

.navbar-nav {
  float: left;
  margin: 0;
}

.navbar-nav > li {
  float: left;
}

.navbar-nav > li > a {
  padding: 15px;
}

.navbar-nav.navbar-right {
  float: right;
}

.navbar .navbar-nav .open .dropdown-menu {
  position: absolute;
  float: left;
  background-color: #fff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-width: 0 1px 1px;
  border-radius: 0 0 4px 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a {
  color: #333;
}

.navbar .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar .navbar-nav .open .dropdown-menu > li > a:focus,
.navbar .navbar-nav .open .dropdown-menu > .active > a,
.navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
  color: #fff !important;
  background-color: #428bca !important;
}

.navbar .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar .navbar-nav .open .dropdown-menu > .disabled > a:focus {
  color: #999 !important;
  background-color: transparent !important;
}

.navbar-form {
  float: left;
  width: auto;
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0;
  margin-left: 0;
  border: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.navbar-form .form-group {
  display: inline-block;
  margin-bottom: 0;
  vertical-align: middle;
}

.navbar-form .form-control {
  display: inline-block;
  width: auto;
  vertical-align: middle;
}

.navbar-form .form-control-static {
  display: inline-block;
}

.navbar-form .input-group {
  display: inline-table;
  vertical-align: middle;
}

.navbar-form .input-group .input-group-addon,
.navbar-form .input-group .input-group-btn,
.navbar-form .input-group .form-control {
  width: auto;
}

.navbar-form .input-group > .form-control {
  width: 100%;
}

.navbar-form .control-label {
  margin-bottom: 0;
  vertical-align: middle;
}

.navbar-form .radio,
.navbar-form .checkbox {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: middle;
}

.navbar-form .radio label,
.navbar-form .checkbox label {
  padding-left: 0;
}

.navbar-form .radio input[type="radio"],
.navbar-form .checkbox input[type="checkbox"] {
  position: relative;
  margin-left: 0;
}

.navbar-form .has-feedback .form-control-feedback {
  top: 0;
}

.form-inline .form-group {
  display: inline-block;
  margin-bottom: 0;
  vertical-align: middle;
}

.form-inline .form-control {
  display: inline-block;
  width: auto;
  vertical-align: middle;
}

.form-inline .form-control-static {
  display: inline-block;
}

.form-inline .input-group {
  display: inline-table;
  vertical-align: middle;
}

.form-inline .input-group .input-group-addon,
.form-inline .input-group .input-group-btn,
.form-inline .input-group .form-control {
  width: auto;
}

.form-inline .input-group > .form-control {
  width: 100%;
}

.form-inline .control-label {
  margin-bottom: 0;
  vertical-align: middle;
}

.form-inline .radio,
.form-inline .checkbox {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: middle;
}

.form-inline .radio label,
.form-inline .checkbox label {
  padding-left: 0;
}

.form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] {
  position: relative;
  margin-left: 0;
}

.form-inline .has-feedback .form-control-feedback {
  top: 0;
}

.sidebar {
  position: fixed;
  width: 50px;
  top: 40px;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: block;
  padding: 20px;
  padding-top: 11px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #f8f8f8;
  border-right: 1px solid #eee;
}

.nav-sidebar {
  margin-right: -21px;
  margin-bottom: 20px;
  margin-left: -20px;
}

.nav-sidebar > li {
  padding-top: 0px;
  padding-bottom: 0px;
}

.nav-sidebar > li > button {
  border: 0px;
  background-color: #f8f8f8;
}

#designer-editor {
  position: absolute;
  top: 4px;
  right: 0;
  bottom: 0;
  left: 50px;
  margin-top: 47px;
  margin-left: 0px;
}

.ace_gutter {
  background-color: white !important;
}

.ace_scroller.ace_scroll-left {
  box-shadow: none !important;
}

.designer-message-success {
  display: none;
}

.designer-message-info {
  display: none;
}

.designer-message-warning {
  display: none;
}

.designer-message-danger {
  display: none;
}

#designer-message {
  z-index: 1000;
  padding-right: 20px;
  position: fixed;
  right: 0px;
  bottom: 0;
  width: 400px;
}

#designer-menubar-items li:hover {
  background-color: #e7e7e7;
}

.tooltip-inner {
  background-color: #e7e7e7;
  color: black;
}

.tooltip.in {
  opacity: 1;
}

.tooltip.bottom .tooltip-arrow {
  border-bottom-color: #e7e7e7 !important;
}

.tooltip.right .tooltip-arrow {
  border-right-color: #e7e7e7 !important;
  border-bottom-color: white !important;
}

.btn:focus {
  outline: none !important;
}

.modal-dialog .modal-content .modal-footer {
  border: 0px;
}

.CodeMirror {
  height: inherit !important;
}

.CodeMirror-gutter {
  background-color: white !important;
}

.CodeMirror-gutters {
  border-right: 2px #fff !important;
}

.CodeMirror-linenumber {
  color: #555 !important;
}

.CodeMirror-lines {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.ace_search {
  padding-right: 6px !important;
  padding: 3px !important;
}

.icon-reverse {
  transform: scaleX(-1) !important;
  -moz-transform: scaleX(-1) !important;
  -webkit-transform: scaleX(-1) !important;
  -ms-transform: scaleX(-1) !important;
}

.icon-rotate-left {
  transform: rotate(90deg) !important;
  -webkit-transform: rotate(90deg) !important;
  -moz-transform: rotate(90deg) !important;
  -ms-transform: rotate(90deg) !important;
}

#designer-dialog-command-modal .modal-body {
  padding-bottom: 0px;
}

#designer-dialog-command-result-area {
  margin-bottom: 0px;
}

.designer-command-result {
  max-height: 300px;
  overflow: auto;
}

.list-group.designer-command-result {
  cursor: pointer;
  margin-bottom: 0px;
}

.result-command {
  max-height: 400px;
  overflow: auto;
}

.list-group-item {
  border-left-width: 0px;
  border-right-width: 0px;
  color: color !important;
  border: 0px;
}

.ace_editor.ace_autocomplete {
  width: 400px !important;
}
