/* Processing page */
.mg-operator-list-panel {
  width: 30%;
  height: 100%;
  border-right: solid 1px #ccc;
  float: left;
}

.mg-processor-panel {
  width: 70%;
  height: 100%;
  border-right: solid 1px #ccc;
  float: left;
}

/* Processing component */
.mg-processor-container {
  width: 100%;
  height: 100%;
}

.mg-processor-operator-panel {
  width: 260px;
  height: 100%;
  float: left;
  border-right: solid 1px #ccc;
}

.mg-processor-page-title {
    margin: 5px 0 0 0;
}

.mg-processor-result-panel {
  width: calc(100% - 260px);
  height: 100%;
  float: left;
}

.mg-processor-result {
  position: relative;
}

.mg-processor-result-table {
  height: 100%;
  overflow: auto;
}

.mg-processor-result-panel .vertical-panel-header button {
  margin-left: 5px;
}

.mg-processor-result-footer > .btn-primary > .spinner {
  transition: none;
}

/* Operator box */
.mg-processor-operator-box {
  position: relative;
  margin-bottom: 3px;
  margin-top: 10px;
}

.mg-processor-operator-box .panel-heading > .fa {
  margin-right: 7px;
}

.mg-processor-operator-box .panel-heading .mg-operator-box-remove {
  display: none;
}

.mg-processor-operator-box:last-child .panel-heading .mg-operator-box-remove {
  display: inline-block;
}

.mg-processor-operator-box .panel-heading .btn {
  color: #999;
  float: right;
}

.mg-processor-operator-box .panel-heading .btn:hover {
  color: #444;
  float: right;
}

.mg-processor-operator-box .panel-footer {
  background-color: #fefefe;
  text-align: right;
}

.mg-processor-operator-box .panel-footer a {
  display: inline-block;
  cursor: pointer;
  margin-left: 7px;
  font-size: 0.92em;
}

.mg-processor-operator-box .mg-operator-error-area {
  margin-top: 5px;
  color: #a94442;
}

.mg-processor-pagination .simple-pagination ul {
  padding-top: 0;
}

.mg-processor-pagination .mg-processor-per-page,
.mg-processor-pagination span {
  font-size: 12px;
  padding: 1px;
}

.mg-processor-per-page {
  margin-right: 4px;
}

/* Greatest arrows in history follows, looking at it awards you a party hat */

.mg-processor-operator-box::after,
.mg-processor-operator-box::before,
.mg-processor-operator-box .panel-heading::after,
.mg-processor-operator-box .panel-heading::before {
  left: 50%;
  border: solid 0 transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.mg-processor-operator-box::after,
.mg-processor-operator-box .panel-heading::after {
  border-color: rgba(255, 255, 255, 0);
  border-top-color: #fff;
  border-width: 10px;
  margin-left: -10px;
}

.mg-processor-operator-box::before,
.mg-processor-operator-box .panel-heading::before {
  border-color: rgba(204, 204, 204, 0);
  border-top-color: #ccc;
  border-width: 11px;
  margin-left: -11px;
}

/* Operator box top inward arrow */
.mg-processor-operator-box:first-child .panel-heading::after,
.mg-processor-operator-box:first-child .panel-heading::before {
  border: none;
}

.mg-processor-operator-box .panel-heading::after,
.mg-processor-operator-box .panel-heading::before {
  bottom: 100%;
  top: -1px;
}

.mg-processor-operator-box .mg-form-field-resourceselect .mg-tile {
  width: 100%;
}

/* Operator box bottom outward arrow */
.mg-processor-operator-box::after,
.mg-processor-operator-box::before {
  top: 100%;
}

.mg-processor-operator-box::after {
  border-top-color: #fefefe;
}

.mg-processor-operator-box:last-child::after,
.mg-processor-operator-box:last-child::before {
  border: none;
}


/* Available operator list */
.mg-processor-available-operator-list {
  overflow-y: auto;
  width: 100%;
  height: 100%;
}

.mg-processor-available-operator-list .operator {
  float: left;
}

.mg-processor-available-operator-list .grid-element {
  border: 1px solid #ddd;
  color: rgb(51, 51, 51);
  width: 100px;
}

.mg-processor-available-operator-list .grid-element-wrap {
  width: 124px;
}

.mg-processor-available-operator-list .grid-icon-wrap {
  width: 100px;
}

.mg-processor-available-operator-list .grid-icon {
  font-size: 48px;
  width: 84px;
  color: #2c4270;
  text-align: center;
}

.mg-processor-available-operator-list .disabled .grid-icon {
  color: #ccc;
}

.mg-processor-available-operator-list .disabled .grid-label {
  color: #ccc;
}

.mg-processor-available-operator-list .disabled .grid-element-wrap {
  cursor: not-allowed;
}

.mg-processor-available-operator-list .operator:not(.disabled):hover .grid-element {
  box-shadow: 0 0 6px 0 rgba(100, 100, 100, 0.25);
}

.mg-processor-available-operator-list .operator:hover .grid-element-wrap {
  box-shadow: none;
}

/* Current operator list */
.mg-processor-operator-panel > .vertical-panel-footer {
  text-align: right;
  margin-top: 3px;
}
