/**
 * 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.
 */

//------------clusterForms/feedFrom/processForm ----------------//
.mt1 {
  margin-top: 1px;
}
.mt5 {
  margin-top: 5px;
}
.mt10 {
  margin-top: 10px;
}
.mt20 {
  margin-top: 20px;
}
.mb10 {
  margin-bottom: 10px;
}
.formViewContainer {
  .mt10;

}
//-----------------next and previous buttons----------//
@nextBtnBackground: #666666;
@prevBtnBackground: #CCCCCC;
.nextBtn, .prevBtn {
  .transition(background, 0.3s, ease);
  border: 0px none;
  width: 90px;
  border-radius: 7px!important;
  padding: 10px;
}
.nextBtn {
  background: @nextBtnBackground;
  color: white;
  &:hover {
    background: darken(@nextBtnBackground, 10%);
    color: white;
    outline: hidden;
    border-radius: 7px!important;
  }
  &:focus, &:active, &:visited {
    background: darken(@nextBtnBackground, 10%);
    color: white;
    outline: hidden;
    border-radius: 10px!important;
  }
}
.prevBtn {
  background: @prevBtnBackground;
  &:hover {
    background: darken(@prevBtnBackground, 10%);
    outline: hidden;
    border-radius: 7px!important;
  }
  &:focus, &:active, &:visited {
    background: darken(@prevBtnBackground, 10%);
    outline: hidden;
    border-radius: 10px!important;
  }
}
//-----------------------------------------------------//
.aclBox {
  .mt10;

  > div {
    label {
      margin-top:5px;
      font-weight: normal;
      width: 95%;
    }
    width: 32%;
    display: inline-block;
    vertical-align: top;
  }
}
.dt {
  //display: table;
}
@media screen and (max-width: @grid-float-breakpoint) {
  .xmlPreviewContainer {
    position: relative;
    left:0;
    top:0;
    width: 500px;
  }
}
.formPage {

  h3 {
    font-weight: bold;
  }
  .entypo {
    font-size: 22px;
   /* line-height: 14px;*/
    /*vertical-align: top;
    display: inline-table;*/
  }
  h4 {
    font-size: 14px;
    font-weight: bold;
    line-height: 14px;
    margin: 20px 0 5px;
  }
  h5 {
    font-size: 14px;
    font-weight: bold;
    line-height: 14px;
    margin: 10px 0 5px;
    &.noSpecial { margin-left: 4%; margin-top:5px;}
  }
  label {
    font-size: 12px;
    line-height: 12px;
    margin: 10px 0 2px 0;
  }
  .light {
    font-weight: normal;
  }
  a {
    line-height: 30px;
    cursor: pointer;
    margin: 5px 15px;
    text-decoration: underline;
    color: black;
    &:focus {
      color: red;
    }
  }
  input, select {
    color: @gray-darker;
    font-size: 13px;
  }
  .input-group-addon {
    height:13px;
    border-radius:0;
  }

}
select {
  .form-control;
  padding:0;
}
#engineVersionField{ display: inline-block; width: auto; }
.inlineInputsGroup {
  input {
    display: inline-block;
    margin-right: 3px;
    &:last-child { margin-right:0;}
  }
  input[type="text"] {
    width: 20px;
    //height: 18px;
    //line-height: 18px;
    vertical-align: top;
  }
  select {
    display: inline-block;
    width: auto;
  }
  input[type="checkbox"] {
    margin:0;
    vertical-align: middle;
  }
  div { margin-bottom: 5px;}
  #availInput {
    width: 60px;
  }
}

.formTitle {
  background-color: @gray-light2;
  .border-bottom-radius(5px);
  color: black;
  padding: 5px;
  font-size: 16px;
  .entypo {
    font-size: 35px;
    line-height: 9px;
  }

}
.clusterSummaryRow {
  padding: 0 10px;
}
.clusterForm, .feedForm, .entityForm {
  input {
    padding-left: 1px;
    border-width: 1px;
  }
  select {
    background-color: white;
  }
  > div {
    &:first-child {
      margin-top: 0;
    }
    margin-top: 5px;
  }


}
#feedPropertiesBox {
  label {
    line-height: 25px;
  }
}
#interfaces-detail, #feedPropertiesBox {
  > div {
    margin-top: 10px;
  }
  label {
    font-size: 12px;
    margin:0;
  }
  input[type="checkbox"] {
    vertical-align: sub;
  }
}
//---------------------------------//
.feedForm, .entityForm {

  .small {
    display: inline-block;
    width: 30px;
    height: 20px;
  }
  .medium {
    width: 80px;
  }
  .availFlagInput {
    width: 85px;
  }
  .freqTitle {
    margin: 0 0 5px 0;
  }
  .top-buffer {
    margin-top: 8px;
  }
  .feedLocationNavBox {
    margin-top:10px;
    h4 {
      margin-top: 10px;
    }
    &.nopointer .btn {
      cursor: default;
    }
  }
  .feedLocationNav {
    color: black;

    .btn {
      position: relative;
      background-color: lighten(@gray-light2, 20%);
      border-radius: 5px;
      font-size: 12px;
      letter-spacing: 0.5px;
      padding: 4px 20px;

      &:last-child {
        margin-right: -12px;
      }
    }
    .active {
      color: white;
      background-color:lighten(@gray, 20%);
      z-index: 1234;
    }
    &.disabled {
      .btn {
        background-color: lighten(@gray-light2, 30%);
        opacity:1;
        color: @gray-light2;
      }
      .active {
        background-color:lighten(@gray, 30%);
        color: white;
      }
    }
  }

  .sourceReplicationButton {
    width: 45px;
    display: inline-block;
    border-bottom: 3px solid @gray-light;
    color: @gray-light;
    cursor: pointer;
    small {
      font-size: 60%;
      margin-bottom: -5px;
      display: block;
    }
    &.active {
      border-color: @gray-dark;
      color: @gray-dark;
    }

  }
  .addReplicationButton {
    width: 70px;
    display: inline-block;
    border-bottom: 3px solid @gray-light;
    color: @gray-light;
    cursor: pointer;
    small {
      font-size: 60%;
      margin-bottom: -5px;
      display: block;
    }
    &.active {
      border-color: @gray-dark;
      color: @gray-dark;
    }

  }
  /*.validityDateBox {
    .light {
      display: block;
    }
    input {
      display: inline-block;

    }
  }*/
  .input-group {
    input {
      font-size: 12px;
    }
    button {
      padding: 2px 6px;
    }
    i {
      font-size: 14px;
    }
  }
  .timePicker {
    margin-top: -22px;
    .btn {
      padding: 1px 5px;
      border-radius: 0;
    }
  }
  @media screen and (max-width: @grid-float-breakpoint) {
    .timePicker {
      margin-top: 0;
    }
  }
  .TZSelect {
    margin: 5px 0;
  }
  .addProperty {
    margin: 12px 5px;
    display: inline-block;
  }
}


//----old entity details------------------//
.detailsHeaders {
  h3 { display: inline-block;}
  small{
    color: @gray-light;
    display: block;
    margin-bottom: -2px;
  }
  .btn {
    margin-top: -2px;
    background-color: @gray;
    color: white;
  }
}

@media screen and (max-width: @grid-float-breakpoint) {
  .detailsBox {
    float:none!important;
  }
}
.detailsBox {
  border-radius: 5px;
  border: 1px solid @gray-light2;
  margin: 5px 0;
  padding: 15px 5px;
  font-size: 12px;
  background-color: #ffffff;
  h4 {
    font-weight: bold;
    margin:5px 0;
  }
  h5 {
    font-weight: bold;
    margin-top:2px;
  }
  table {
    width: 100%;
    border-spacing: 5px;
    border-collapse: separate;
  }
  .tableHeader {
    width: 70px;
    font-weight: bold;
  }
  textarea {
    width: 100%;
  }
  &.processCluster {
    padding: 15px 4%;
    margin: 5px auto;
    h5 {
      margin-top:15px;
      &:first-child {
        margin-top:0;
      }
    }
  }
}

.detailsBT{
  .entypo{
    font-size: 1.5em;
  }
  color: #fff;
  padding: 3px 8px;
  border: 1px solid white;
  border-radius: 5px;
  border-color: #fff;
  display: inline-block;
  cursor: auto;
  background-color: #5fa33e;
}


///////////////////////////////////////////////
///////VALIDITY BOXES//////////////////////////
///////////////////////////////////////////////
.validityBox {
  label, input, button {
    font-weight: normal;
  }

  > div {
    display: inline-block;
    margin: 0 2px;
  }

  h4 {
    margin-top: 5px;
    margin-bottom: 0;
  }
  .startDateBox, .endDateBox {
    width: 20%;
    vertical-align: top;
  }
  .startTimeBox, .endTimeBox {
    width: 15%;
    vertical-align: top;
    padding-left:0;
    input {
      //width: 20px;
      //margin:0;
    }
    button {
      border-radius: 0;
      width: 25px;
      height: 25px;
      padding:0;
      margin-left: 1px;
    }
    table {
      width: auto;
      border-spacing: 0;
      tr {
        &:first-child {
          display: none;
        }
        &:last-child {
          display: none;
        }
      }
    }

    a {
      display: none!important;
    }
  }
  .endDateBox {

  }
  .endTimeBox {

  }
  .tzBox {
    width: 22%;
    //padding-top: 20px;
  }
}

.feedForm, .entityForm {
  .validityBox {
    .startDateBox, .endDateBox { width: 27%;}
    .startTimeBox, .endTimeBox {width: 17%;}
    .endDateBox { margin-left: 20px;}
    .error_input { border:1px solid red !important;}
  }
}