/*
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/

/* Editor  */

.timeline.spare {
  max-width: 2000px;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.timeline.spare form.simple {
  max-width: 2000px;
}

.timeline.spare form.simple .col-form-label {
  max-width: 180px;
}

.timeline.spare .timeline-content {
  padding: 0;
}

.timeline.spare .timeline-content {
  box-shadow: 0 0 0 #fff;
}

.timeline-content > form.simple > .form-group:first-child {
  padding-top: 26px;
}

.timeline.spare .timeline-item {
  margin-bottom: 10px;
}

.timeline.spare .timeline-item {
  padding-left: 190px;
}

.timeline.spare .timeline-item.last {
  margin-bottom: 0;
}

.timeline.spare .timeline-item.last::before {
  display: none;
}

.J_startHour1 + .input-group-append > .input-group-text {
  border-right: 0 none;
  border-radius: 0;
}

#react-content {
  background-color: #f7f7f7;
  border-radius: 3px;
  padding: 20px;
}

#react-content > div {
  max-width: 1000px;
}

.field-aggregation p {
  margin: 3px 0 0;
  color: #777;
  font-size: 12px;
}

.field-aggregation .col-2 {
  position: relative;
}

.field-aggregation .col-2 > .zmdi,
.field-writeback .col-5 > .zmdi,
.group-aggregation .col-5 > .zmdi {
  position: absolute;
  left: -5px;
  color: #fbbc05;
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: bold;
}

.field-aggregation .items {
  margin-bottom: 9px;
}

.field-aggregation .items:empty {
  margin-bottom: 0;
}

.field-aggregation .items > div {
  padding: 3px 0;
}

.field-aggregation .items > div .badge,
.group-aggregation .badge-primary {
  font-weight: normal;
  font-size: 1rem;
  padding: 3px 10px;
  white-space: normal;
  text-align: left;
}

.field-aggregation .items > div .badge.badge-light {
  padding: 2px 10px;
}

.field-aggregation .items > div .col-2 > .zmdi {
  margin-top: 6px;
}

.field-aggregation .items .del-wrap {
  position: relative;
}

.field-aggregation .items .del-wrap a.del {
  position: absolute;
  font-size: 1.2rem;
  padding: 3px 6px;
  color: #999;
  font-weight: bold;
  display: none;
  top: 1px;
  margin-right: -9px;
}

.field-aggregation .items .del-wrap a.del:hover {
  color: #222;
}

.field-aggregation .items > div:hover a.del {
  display: inline-block;
}

.group-aggregation .col-5 > .zmdi {
  color: #4285f4;
  font-size: 1.25rem;
}

.group-aggregation .items > div .col-5 > .zmdi {
  margin-top: 5px;
}

.group-aggregation .badge-primary {
  border-radius: 0;
  position: relative;
}

.group-aggregation .badge-primary::after {
  position: absolute;
  width: 0;
  height: 0;
  content: '';
  transform: rotate(45deg);
  border: 4px solid #f7f7f7;
  top: -4px;
  right: -4px;
}

/* .group-aggregation .badge-primary[data-toggle='dropdown'] {
  cursor: pointer;
}

.group-aggregation .badge-primary[data-toggle='dropdown']::before {
  font-family: 'Material-Design-Iconic-Font';
  content: '\f2f9';
  margin-right: 6px;
} */

/* Formula */

.formula-calc {
  position: relative;
}

.formula-calc .fields ul:empty::after {
  content: attr(_title);
  color: #999;
}

.formula-calc ul li {
  width: 23%;
  display: inline-block;
  font-size: 0;
  padding: 0;
  margin: 1% !important;
}

.formula-calc ul li > a {
  display: inline-block;
  width: 100%;
  padding: 6px 5px;
  font-weight: bold;
  text-align: center;
  background-color: #eee;
  border-radius: 2px;
  font-size: 1rem;
}

.formula-calc ul li > a:hover {
  background-color: #ccc;
}

.formula-calc .numbers li > a:active {
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.06);
}

.formula-calc ul li.empty-1 > a {
  background-color: #eee !important;
  cursor: default !important;
}

.formula-calc ul li > a.confirm {
  background-color: #4c8bf5;
  color: #fff !important;
}

.formula-calc ul li > a[data-toggle]::after {
  content: '\f2f9';
  font-family: 'Material-Design-Iconic-Font';
  margin-left: 2px;
}

.formula-calc .fields {
  max-height: 186px;
  margin-top: 1px;
}

.formula-calc .fields ul li {
  width: 100%;
  margin: 1% 0 !important;
}

.formula-calc .fields ul li > a {
  font-weight: normal;
  text-align: left;
  padding-left: 10px;
}

.formula-calc .numbers {
  margin-right: -1.1%;
}

.form-control-plaintext {
  min-height: 37px !important;
}

.form-control-plaintext.formula {
  border: 1px dotted #4c8bf5 !important;
  border-radius: 4px;
  background-color: #fff;
  padding: 8px 10px;
  cursor: text;
}

.form-control-plaintext.formula:empty::after {
  content: attr(_title);
  color: #878787;
}

.form-control-plaintext.formula i {
  font-style: normal;
}

.form-control-plaintext.formula > .oper {
  padding: 0 4px;
}

.form-control-plaintext.formula > .oper + .oper {
  padding-left: 0;
}

.form-control-plaintext.formula > .field {
  border-radius: 2px;
  padding: 1px 2px;
}

.form-control-plaintext.formula > .field.hover:hover {
  cursor: pointer;
  background-color: #4c8bf5;
  color: #fff;
}

.form-control-plaintext.formula > .field > i::after {
  content: '\f2f9';
  font-family: 'Material-Design-Iconic-Font';
  margin-left: 2px;
  color: #4c8bf5;
}

.form-control-plaintext.formula > .field.hover:hover > i::after {
  color: #fff;
}

.form-control-plaintext.formula > .v.field {
  color: #4c8bf5;
}

.form-control-plaintext.formula > .v.num {
  color: #df5000;
}

.dropdown-menu.dropdown-menu-sm {
  min-width: 120px;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1), 0 10px 12px 0 rgba(170, 182, 206, 0.36);
  border-radius: 0;
  padding: 3px 0;
  z-index: 1000;
}

.dropdown-menu.dropdown-menu-sm .dropdown-item {
  padding: 6px 14px;
  cursor: default;
}

.dropdown-menu.dropdown-menu-sm .dropdown-divider {
  margin: 3px 0;
}

.form-control-plaintext.formula.switch-code {
  padding-right: 40px;
}

.form-control-plaintext.formula.switch-code + .switch-code-btn {
  position: absolute;
  right: 2px;
  top: 2px;
  display: inline-block;
  width: 33px;
  height: 33px;
  line-height: 33px;
  text-align: center;
  font-size: 1.35rem;
  color: #777;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.form-control-plaintext.formula.switch-code + .switch-code-btn:hover {
  background-color: #212121;
  color: #fff;
}

textarea.formula-code {
  font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;
  font-size: 13px;
  background-color: #212121;
  color: #f07178;
  border: 0 none;
  height: 223px;
  width: 100%;
  resize: none;
  outline: none;
  border-radius: 0;
  line-height: 1.6;
  padding: 4px 10px;
}

.auto-assign .select2-selection__rendered,
.auto-share .select2-selection__rendered {
  display: block !important;
  padding: 0 8px !important;
}

.J_when label.custom-control {
  min-width: 110px;
}

.on-timers {
  padding: 15px 25px;
  border-radius: 2px;
  border: 1px solid #eee;
}

.on-timers .input-group {
  width: 300px;
  float: left;
}

.code-panel {
  border: 0;
  padding: 20px;
  margin-bottom: 0;
  max-height: 400px;
  overflow: auto;
}

.code-panel,
.code-panel pre {
  background-color: #4f4a68;
  color: #edebe6;
}

.fields ul li.flag-DECIMAL > a::before,
.fields ul li.flag-NUMBER > a::before,
.fields ul li.flag-DATE > a::before,
.fields ul li.flag-DATETIME > a::before {
  content: 'N';
  width: 15px;
  display: inline-block;
  color: #4285f4;
  font-size: 0.9rem;
}

.fields ul li.flag-DATE > a::before,
.fields ul li.flag-DATETIME > a::before {
  content: 'D';
}

.badge.badge-square {
  border: 0 none;
  background-color: #4285f4;
  position: relative;
  color: #fff;
  font-size: 1rem;
  font-weight: normal;
  border-radius: 0;
  padding: 2px 8px;
}

.badge.badge-square::before {
  position: absolute;
  width: 0;
  height: 0;
  content: '';
  transform: rotate(45deg);
  border: 4px solid #f7f7f7;
  top: -4px;
  right: -4px;
}

.badge.badge-close {
  padding-right: 20px;
}

.badge.badge-close a.close {
  position: absolute;
  font-size: 1rem;
  font-weight: normal;
  opacity: 0.8;
  margin-left: 5px;
  margin-top: 3px;
  text-shadow: unset;
  display: none;
}

.badge.badge-close:hover a.close {
  display: inline-block;
}

.badge.badge-close a.close:hover {
  opacity: 1;
}

/* fix: height */
.select2-selection.select2-selection--multiple ul.select2-selection__rendered {
  display: block;
}
