/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */

.queue-capacity .peer-toggle {
  width: 100%;
  // background: #f7f7f7;
  //border: 1px solid #e4e4e4;
  text-align: left;
  padding: 3px;
}

a .peer-toggle {
    color: #555;
    text-decoration: none;
    font-size: .8em;
  }

.row.queue-acl-row {
  padding-left:15px;
}

.row .queue-resources {
  padding-left: 0px;
  padding-right: 30px;
}

.wrap {
  padding: 0px;
}

.add-queue {
  .tooltip.bottom .tooltip-arrow {
    border-bottom-color: #a94442;
  }
  .tooltip-inner {
    background-color: #a94442;
  }
}

.input-int {
  width: 110px;
}

.input-percent {
  width: 65px;
}

.form-horizontal {
  padding-top: 10px;
}

.form-horizontal .capacity-edit-form {
  padding-top: 0px;
}

.form-horizontal .control-value {
  padding-top: 0px;
}

.form-horizontal .form-control-static {
  padding-top: 5px;
}

.queue-label {
    padding-right: 10px;
    min-width: 80px;
    font-weight: bold;
    font-size: 1.1em;
    padding-top: 5px;
}

.control-label.queue-label {
    padding-top: 7px;
}

.capacity-edit {
    font-weight: normal;
}

.max-capacity-edit {
    padding-left: 10px;
}

.queue-heading-row .input-group h3 {
    margin-bottom: 0;
    margin-top: 3px;
}

.form-horizontal .control-value {
  .btn-group{
    padding-top: 5px;
  }
}

.edit-link {
    font-size: .75em;
    padding-top: 4px;
}

.control-label {
    font-size: .9em;
}
 
.input-group-addon {
  padding: 3px;
}
   
.well-queue {
    background-color: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
    margin-bottom: 20px;
    min-height: 20px;
    padding: 15px;
    padding-top: 0px;
  }

.col-md-8.queue-area {
  padding-left:0px;
}

.btn {
  padding: 6px 10px;
  transition: background-color .08s linear 0s;
}

.input-error  {
  color: #a94442;
  border-color: #a94442;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.input-error:focus {
  border-color: #843534;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}

.gray {
  color: #999;
}

.green {
  color: #5cb85c;
}

.blue {
  color: #428bca;
}

.red {
  color: #d9534f;
}

.add-queue {
  margin-bottom: 5px;
}

.rm-queue {
  cursor: pointer;
  .gray;
  transition: color .1s linear;
  &:hover {
    .red;
  } 
}

.fa-stack-bottom {
  text-align: right;
  bottom: 0;
  line-height: 1em;
  //opacity: 0.9;
  text-shadow: 0px -1px 3px #111;
}

.queue-list{
  .badge {
    color: #999;
    background-color: #fff;
    margin-left: 5px;
  }
    .progress {
      height: 3px;
      margin: 0;
    }
    .spacer {
      height: 25px;
    }
    .spacer.col-md-0 {
      height: 0;
    }
    .capacity-bar {
      display: inline-block;
      float: right;
      margin-top: 8px;
      width: 20%;
    }
  .list-group-item {
    cursor: pointer;
    transition: background-color .1s linear 0s;
  }
  .list-group-item.last {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }
  .list-group-item.first {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
}

.path-input {
  .btn-cancel {
    border-radius: 0;
  }
}

.user-group-input.has-feedback  {
  .form-control-feedback {
    top: -2px;
    right: 15px;
    opacity: 0.4;
  }
}

.btn-group-save {
  table-layout: auto;
  & > .btn-group:last-child > .btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }
  & > .btn-group:first-child > .dropdown-toggle {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }
  .dropdown-menu .btn {
    border-radius: 0;
    text-align: left;
  }
  .btn-group {
    width: 100%;
    .btn-save {
      border-top-left-radius: 4px !important;
      border-bottom-left-radius: 4px !important;
    }
  }
}

.form-acl {
  .users .label,.groups .label {
    border-radius: 0;
  }
  .users .label:first-child,.groups .label:first-child {
    border-top-left-radius: .25em;
    border-bottom-left-radius: .25em;
  }
  .users .label:last-child,.groups .label:last-child {
    border-top-right-radius: .25em;
    border-bottom-right-radius: .25em;
  }
  .label {
    vertical-align: text-top;
  }
}

.panel-capacity {
  .new-queue {
    .input-row {
      margin-bottom: 5px;
    } 
  }
  .progress{
    background-color: #ddd;
    .marks {
      width: 100%;
      top: 20px;
      position: absolute;
      label {
        width: 25%;
        display: block;
        text-align: center;
        position: absolute;
        margin-left: -12.5%;
        div {
          position: absolute;
          left: 50%;
          top: -5px;
          height: 20px;
          border-left: solid 1px #fff; 
          -webkit-box-shadow:0px 0px 2px 1px rgba(0, 0, 0, .15);
          box-shadow:0px 0px 2px 1px rgba(0, 0, 0, .15);
        }
      }
    }
  }
  .panel-title {
    font-weight: 500;
    position: relative;
    a {
      position: absolute;
      right: 0;
      color: #428bca;
    }
    .total {
      float: right;
      width: 400px;
      .level-total-label {
        float: left;
        padding-right: 10px;
        font-size:.9em;
        font-weight: normal;
      }
    }
  }
  .panel-body.total{
    .progress {
      margin: 0;
    }
  }
  .panel-body.queues {
    padding-left: 0;
    padding-right: 0;
  }
  .panel-body {
    padding-top: 0px;
  }

  .queues {
    padding-top: 0px;
  }

  .queue-capacity-peer {
  }
  
  .queue-capacity {
    padding-bottom: 4px;
    &.active {
      .progress {
        -webkit-box-shadow: 0px 0px 0px #888888;
        -moz-shadow: 0px 0px 0px #888888;
        box-shadow: 0px 0px 0px #888888;
        transition: box-shadow .25s linear 0s;
      }
        .progress.in {
          -webkit-box-shadow: 3px 5px 5px #888888;
          -moz-shadow: 3px 5px 5px #888888;
          box-shadow: 3px 5px 5px #888888;
        }
    }
    .form-inline .form-group {
      display: inline-block;
      margin-bottom: 0;
      vertical-align: top;
    }
    .help-block {
      display: inline;
      font-size: .8em;
    }
    /*input {
      width: auto;
    }*/
  }
}

.control-label.capacity-edit {
  width: 75px;
}

.capacity-input {
  float: left !important;
}

.queue-heading-row {
  h3 {
    margin:10px;
    margin-left: 0px;
  }
}

#noteModal {
  .modal-body {
    overflow-x: hidden;
  }
}

.modal-backdrop.in {
  opacity: 0;
}



input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  margin: 7.3px 0;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: #555;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
  border: 1.8px solid #00001e;
  height: 15px;
  width: 20px;
  border-radius: 15px;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #555;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: #555;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}
input[type=range]::-ms-fill-lower {
    background: red;
    border-radius: 10px;
}
input[type=range]::-moz-range-thumb {
  border: 1.8px solid #00001e;
  height: 15px;
  width: 20px;
  border-radius: 15px;
  background: #ffffff;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: rgba(42, 100, 149, 0.78);
  border: 0.2px solid #010101;
  border-radius: 2.6px;
}
input[type=range]::-ms-fill-upper {
  background: #555;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
}
input[type=range]::-ms-thumb {
  border: 1.8px solid #00001e;
  height: 15px;
  width: 20px;
  border-radius: 15px;
  background: #ffffff;
  cursor: pointer;
  height: 11.4px;
}
input[type=range]:focus::-ms-fill-lower {
  background: #555;
}
input[type=range]:focus::-ms-fill-upper {
  background: #555;
}
