input, select, textarea,.ms-ctn {
  padding: 6px 12px !important;
  .border(@transparent);
  .t-size(15px);
  .t-black;
  .box-size;
  //.border-radius(5px);

  &:focus{
    .transition;
    //.border(@main-color);
    outline: 0;
    //-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    //box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
  }
}

input,select{
  .border(@grey4);
  //.t-center;
  .border-radius(5px);

  &.t-green{
    color:@green !important;
  }
  &.t-red{
    color:@red !important;
  }
}

.form-white{
  .box-text{
    .t-white;
  }
  .ae-field{
    &.field-error{
      input,select{
        border-bottom-color:@white;
      }

      &:after{
        content: "✘";
        font-size:16px !important;
        .transparent;
        .field-icon();
      }
    }

    &.field-ok{
      input,select{
        border-bottom-color:@white;
      }

      &:after{
        content: "✔";
        font-size:16px !important;
        .transparent;
        .field-icon();
      }
    }
  }
  input,select{
    background-color: @transparent !important;
    color:@white !important;
    font-style:italic;
    .border-bottom(@white);
    .t-center;
    &::placeholder{
      .t-white;
    }

    &.t-green{
      color:@green !important;
    }
    &.t-red{
      color:@red !important;
    }
  }

  .combo {
    .field-container {

      &:before {
        color: @white !important;
      }
    }
  }

  select {
    text-align-last: center;
    text-align: center;
    -ms-text-align-last: center;
    -moz-text-align-last: center;

    option{
      color:@black !important;
    }
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus
  textarea:-webkit-autofill,
  textarea:-webkit-autofill:hover
  textarea:-webkit-autofill:focus,
  select:-webkit-autofill,
  select:-webkit-autofill:hover,
  select:-webkit-autofill:focus {
    background-color: rgba(255, 255, 255,0.5) !important;
    transition: background-color 5000s ease-in-out 0s;
  }
}

.module-title{
  .field-container{
    margin-bottom: -3px !important;
    .t-fit;
  }

  input{
    .border(@black);
    border-bottom: 0px !important;
  }

  textarea{
    resize: none;
  }
}

.module-icon{
  float: right !important;
  margin-top: -30px;
  margin-right: 6px;
}

.form-black{
  input,select{
    background-color: @transparent;
    .t-black;
    font-style:italic;
    .border-bottom(@black);
    //.t-center;
    &::placeholder{
      .t-black;
    }
  }

  .radio,.checkbox{
    .t-fit;
    .t-center;
  }

  .textarea{
    .t-fit;
  }

  textarea{
    .border(@black);
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus
  textarea:-webkit-autofill,
  textarea:-webkit-autofill:hover
  textarea:-webkit-autofill:focus,
  select:-webkit-autofill,
  select:-webkit-autofill:hover,
  select:-webkit-autofill:focus {
    background-color: rgba(255, 255, 255,0.5) !important;
    transition: background-color 5000s ease-in-out 0s;
  }

  .compact-mode{
    .label{
      .abs;
      top: 11px;
      left: 11px;
      font-style: italic;
    }

    input,select{
      .t-right;
    }
  }
}

.form-blackblue{
  input,select{
    background-color: @transparent;
    .t-black;
    font-style:italic;
    .border-bottom(@main-color);
    .t-center;
    &::placeholder{
      .t-black;
    }
  }

  .gears-readonly{
    background: @transparent !important;

    input{
      background: @transparent !important;
      border-bottom: @main-color 1px solid !important;
    }
  }

  select {
    text-align-last: center;
    text-align: center;
    -ms-text-align-last: center;
    -moz-text-align-last: center;
  }

  textarea{
    .border(@black);
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus
  textarea:-webkit-autofill,
  textarea:-webkit-autofill:hover
  textarea:-webkit-autofill:focus,
  select:-webkit-autofill,
  select:-webkit-autofill:hover,
  select:-webkit-autofill:focus {
    background-color: rgba(255, 255, 255,0.5) !important;
    transition: background-color 5000s ease-in-out 0s;
  }

  .compact-mode{
    .label{
      .abs;
      top: 11px;
      left: 11px;
      font-style: italic;
    }

    input,select{
      .t-right;
    }
  }
}

input,select{
  padding: 4px;;
  height: 36px;
  .box-size;
}
input[type="radio"],input[type="checkbox"]{display:none;}
button{border:none;background:none;}
fieldset{
  .gears-button{
    //margin-left:-2px;
    //margin-top:-2px;
  }
  .box-text{
    padding:@button-padding;
    padding-left: 0px;
    margin-top: 10px;
  }
}



.ae-label{
  padding:1px;
}

.ae-field{
  &.c10{width:10%;}
  &.c20{width:20%;}
  &.c25{width:25%;}
  &.c30{width:30%;}
  &.c40{width:40%;}
  &.c50{width:50%;}
  &.c33{width:33.33%;}
  &.c66{width:66.66%;}

  .rel;
  .field-container{
    border: 0px;
    text-shadow:none;
    .box-size;
    padding: 3px 3px 0px 3px;
    span, fieldset span {
      //vertical-align: middle!important;
    }
    .gears-icon.ae-close-button-4:before {
      .t-white;
    }
  }

  &.text{
    .field-container{
      //.light4;
      //.t-white;
      &.gears-readonly,&.gears-readonly>input{
        .light1;
        border:none;
      }
      &.gears-readonly{
        //.border-bottom(1px,@red);
        .t-strong;
      }
    }
    .gears-icon{

    }
  }
  &.textarea{
    .field-container{
      &.gears-readonly,&.gears-readonly>textarea{
        background:none !important;
        border:none;
      }
    }
  }
  &.combo{
    .rel;

    .field-container{
      //.rel;
      //.white;
      //background-color: #222!important;
      &.gears-readonly,&.gears-readonly>select{
        background:none !important;
        border:none;
      }
      &.gears-readonly{
        //.border-bottom(1px,@main-color);
      }
      select{
        .white;
        .t-black;
        -webkit-appearance: none;
      }

      /*&:before{
        font-family: "aeicons-huge1";
        content:"\e597";
        right:5px;
        bottom:8px;
        .t-black;
        .abs;
      }*/
    }
  }
  &.radio{
    .field-container{
      white-space: normal;
    }
    label{
      cursor:pointer;
      white-space: nowrap;
    }
    input[type="radio"]:checked + span.gears-icon:before{
      content:" ";
      .blue;
    }
    input[type="radio"] + span.gears-icon:before{
      content:" ";//"\e900";
      width: 6px;
      height:6px;
      .box-size;
      .border-radius(10px);
    }

    .ae-checkbox{
      .border(@grey3);
      padding: 4px;
      width: 16px;
      height:16px;
      vertical-align:middle;
      display: inline-block;
      .box-size;
      .border-radius(10px);
    }
  }

  &.checkbox{
    input[type="checkbox"]:checked + span.gears-icon:before {
      content:"\e387";
    }
    input[type="checkbox"] + span.gears-icon:before{
      content:" ";//"\e900";
    }
    .label{
      padding-left:0px;
    }
    label{
      cursor:pointer;
    }
    .gears-icon{
      .t-color;
    }

    &.field-ok,&.field-error{
      &::after{
        bottom:5px;
      }
    }
  }
  .ae-checkbox{
    .border(@grey3);
    .box-size;
    padding-left: 0px;
    margin-right: 4px;
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
  }

  &.date{

    .ui-datepicker-trigger{
      display: none;
    }
  }
}



.blue{
  .radio {
    input[type="radio"]:checked + span.gears-icon:before {
      .white;
    }
  }
}

.form-section,.box-text{
  margin-bottom:10px;
  padding-right:20px;
  .t-black;
  .t-fit;
  //.border-bottom(@main-color);
  padding-bottom:5px;

  .gears-icon{
    vertical-align: middle;
  }
}

.form-section-white{
  margin-bottom:10px;
  padding-right:20px;
  .t-white;
  .t-fit;
  //.border-bottom(@white);
}

.formset{
  padding-right:20px;

  &.col-1,&.col-1-1,&.t-fit{
    padding-right:0px;
  }

  .rel;

  .ae-field{
    .t-fit;

    &.c10{width:10%;}
    &.c20{width:20%;}
    &.c25{width:25%;}
    &.c30{width:30%;}
    &.c40{width:40%;}
    &.c50{width:50%;}
    &.c33{width:33.33%;}
    &.c66{width:66.66%;}
  }
  .field-container{
    margin-bottom:20px;
    .t-fit;
  }

  .field-error,.field-ok{

    &:after{
      bottom:32px;
    }
  }
}

.fields-1-2{
  .ae-field{
    width: 50%;
    padding-right: 20px;
    .box-size;

    &.combo:after {
      right: 25px;
      z-index: 350;
    }
    &.field-ok:after {
      right: 25px;
      z-index: 350;
    }
    &.field-error:after {
      right: 25px;
      z-index: 350;
    }
  }
}

.ae-fieldset{
  box-shadow: 0px 0px 3px 1px #ccc;
}

.ui-state-highlight{
  background: @orange !important;
}

.ui-state-active{
  background: @main-color !important;
}


.ui-datepicker{
  width:216px;
  height:auto;
  margin:5px auto 0;
  font:9pt Arial, sans-serif;
  -webkit-box-shadow:0px 0px 10px 0px rgba(0, 0, 0, .5);
  -moz-box-shadow:0px 0px 10px 0px rgba(0, 0, 0, .5);
  box-shadow:0px 0px 10px 0px rgba(0, 0, 0, .5);
  background:red;
}
.ui-datepicker .ui-datepicker-title select{
  font-size: 12px !important;
  font-weight: 100;
}
.ui-datepicker a{text-decoration:none;}
.ui-datepicker table{width:100%;border-spacing:0px;}
.ui-datepicker-header{
  background:url('images/dark_leather.png') repeat 0 0 #000;
  color:#e0e0e0;
  font-weight:bold;
  -webkit-box-shadow:inset 0px 1px 1px 0px rgba(250, 250, 250, 2);
  -moz-box-shadow:inset 0px 1px 1px 0px rgba(250, 250, 250, .2);
  box-shadow:inset 0px 1px 1px 0px rgba(250, 250, 250, .2);
  //text-shadow:1px -1px 0px #000;
  filter:dropshadow(color=#000, offx=1, offy=-1);
  line-height:30px;
  border-width:1px 0 0 0;
  border-style:solid;
  border-color:#111;
}
.ui-datepicker-title{text-align:center;}
.ui-datepicker-title select{height:30px;}
.ui-datepicker-prev,.ui-datepicker-next{
  display:inline-block;
  width:30px;
  height:30px;
  text-align:center;
  cursor:pointer;
  background-image:url('images/arrow.png');
  background-repeat:no-repeat;
  line-height:600%;
  overflow:hidden;
}
.ui-datepicker-prev{float:left;background-position:center -30px;}
.ui-datepicker-next{float:right;background-position:center 0px;}
.ui-datepicker thead{
  background-color:#f7f7f7;
  background-image:-moz-linear-gradient(top,  #f7f7f7 0%, #f1f1f1 100%);
  background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#f7f7f7), color-stop(100%,#f1f1f1));
  background-image:-webkit-linear-gradient(top,  #f7f7f7 0%,#f1f1f1 100%);
  background-image:-o-linear-gradient(top,  #f7f7f7 0%,#f1f1f1 100%);
  background-image:-ms-linear-gradient(top,  #f7f7f7 0%,#f1f1f1 100%);
  background-image:linear-gradient(top,  #f7f7f7 0%,#f1f1f1 100%);
  filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#f1f1f1',GradientType=0 );
  border-bottom:1px solid #bbb;
}
.ui-datepicker th{
  text-transform:uppercase;
  font-size:6pt;
  padding:5px 0;
  color:#666666;
  //text-shadow:1px 0px 0px #fff;
  filter:dropshadow(color=#fff, offx=1, offy=0);
}
.ui-datepicker tbody td{padding:0;border-right:1px solid #bbb;}
.ui-datepicker tbody td:last-child{border-right:0px;}
.ui-datepicker tbody tr{border-bottom:1px solid #bbb;}
.ui-datepicker tbody tr:last-child{border-bottom:0px;}
.ui-datepicker td span,.ui-datepicker td a{
  display:inline-block;
  font-weight:bold;
  text-align:center;
  width:30px;
  height:30px;
  line-height:30px;
  color:#666666;
  //text-shadow:1px 1px 0px #fff;
  filter:dropshadow(color=#fff,offx=1,offy=1);
}
.ui-datepicker-calendar .ui-state-default{
  background:#ededed;
  background:-moz-linear-gradient(top,  #ededed 0%, #dedede 100%);
  background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#ededed), color-stop(100%,#dedede));
  background:-webkit-linear-gradient(top,  #ededed 0%,#dedede 100%);
  background:-o-linear-gradient(top,  #ededed 0%,#dedede 100%);
  background:-ms-linear-gradient(top,  #ededed 0%,#dedede 100%);
  background:linear-gradient(top,  #ededed 0%,#dedede 100%);
  filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#dedede',GradientType=0 );
  -webkit-box-shadow:inset 1px 1px 0px 0px rgba(250, 250, 250, .5);
  -moz-box-shadow:inset 1px 1px 0px 0px rgba(250, 250, 250, .5);
  box-shadow:inset 1px 1px 0px 0px rgba(250, 250, 250, .5);
}
.ui-datepicker-calendar .ui-state-hover{background:#f7f7f7;}
.ui-datepicker-calendar .ui-state-active{
  background: rgba(251,125,47,1);
  background: -moz-linear-gradient(top, rgba(251,125,47,1) 0%, rgba(247,146,87,1) 50%, rgba(250,93,8,1) 51%, rgba(247,98,17,1) 71%, rgba(242,96,28,1) 100%);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(251,125,47,1)), color-stop(50%, rgba(247,146,87,1)), color-stop(51%, rgba(250,93,8,1)), color-stop(71%, rgba(247,98,17,1)), color-stop(100%, rgba(242,96,28,1)));
  background: -webkit-linear-gradient(top, rgba(251,125,47,1) 0%, rgba(247,146,87,1) 50%, rgba(250,93,8,1) 51%, rgba(247,98,17,1) 71%, rgba(242,96,28,1) 100%);
  background: -o-linear-gradient(top, rgba(251,125,47,1) 0%, rgba(247,146,87,1) 50%, rgba(250,93,8,1) 51%, rgba(247,98,17,1) 71%, rgba(242,96,28,1) 100%);
  background: -ms-linear-gradient(top, rgba(251,125,47,1) 0%, rgba(247,146,87,1) 50%, rgba(250,93,8,1) 51%, rgba(247,98,17,1) 71%, rgba(242,96,28,1) 100%);
  background: linear-gradient(to bottom, rgba(251,125,47,1) 0%, rgba(247,146,87,1) 50%, rgba(250,93,8,1) 51%, rgba(247,98,17,1) 71%, rgba(242,96,28,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fb7d2f', endColorstr='#f2601c', GradientType=0 );
  -webkit-box-shadow:inset 0px 0px 10px 0px rgba(0, 0, 0, .1);
  -moz-box-shadow:inset 0px 0px 10px 0px rgba(0, 0, 0, .1);
  box-shadow:inset 0px 0px 10px 0px rgba(0, 0, 0, .1);
  color:white;
  //hadow:0px 1px 0px #A3670D;
  /*filter:dropshadow(color=#4d7a85, offx=0, offy=1);*/
  border:1px solid #C98235;
  position:relative;
  margin:-1px;
}
.ui-datepicker-unselectable .ui-state-default{background:#f4f4f4;color:#b4b3b3;}
.ui-datepicker-calendar td:first-child .ui-state-active{width:29px;margin-left:0;}
.ui-datepicker-calendar td:last-child .ui-state-active{width:29px;margin-right:0;}
.ui-datepicker-calendar tr:last-child .ui-state-active{height:29px;margin-bottom:0;}
/**
 *  Autosuggest
 */
.ms-ctn .ms-sel-item {
  background: url(images/progress_overlay.png), rgba(42,139,187,0.7) !important;
  color: #FFF !important;
  float: left;
  font-size: 16px !important;
  padding: 5px !important;
  border-radius: 0px !important;
  border: 0px !important;
  margin: 1px 5px 1px 0;
}
.ms-res-ctn .ms-res-item-active {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFF !important;
}
.ms-ctn .ms-trigger {
  background: #222!important;
  border-left: 1px solid #444!important;
}
.ms-res-ctn .ms-res-item {
  color: #fff !important;
  font-weight: 100;
  border-bottom: solid 1px #333;
}

.field-icon{
  //.faiconset();
  .abs();
  bottom: 13px;
  right: 0px;
  font-size: 7px;
  .t-white;
  .t-size(7px);
  height: 7px;
  width: 7px;
  border-radius: 3px;
}

.field-error{
  input,select{
    border-bottom-color:@red;
  }

  &:after{
    content: " ";
    .red;
    .field-icon();
  }
}

.field-ok{
  input,select{
    border-bottom-color:@green;
  }

  &:after{
    content: " ";
    .green;
    .field-icon();
  }
}

.fieldset{
  padding: 10px 0 10px 0;

  .ae-field,.field-container,input,select{
    width:100%;
  }

  input,select{
      padding: 10px;
  }

  & > label{
    text-transform:uppercase;
    .t-mini;
    .t-color;
  }

  .ae-field{
    .rel();
  }

  &.datepicker{
    .ae-field:after{
      content: "\e3de";
      .field-icon();
    }
    .valid{
      background:@yellow;
      &.checked{
        background:#A2C594 !important;
        color:white !important;
      }
    }
    .invalid{
      text-decoration: line-through;
    }
    .week-name,.caption{
      .t-black();
    }
    .real-today{
      .border-bottom(@black0,3px);
      .box-size();
    }
  }

  &.timecombo{
    .ae-field:after{
      content: "\e3df";
      .field-icon();
    }
  }
}

//datepuicker
.hasDatepicker {
  position: relative;
  z-index: 200;
}

.brfix{
  form{
    &>br{
      display: none;
    }
  }
}

fieldset.brfix + br{
  display: none;
}