@mainColor: #4A8CC6;
@font-face {
  font-family: 'iconfont';  /* project id 359250 */
  src: url('//at.alicdn.com/t/font_359250_7cwhujq4p7ujtt9.eot');
  src: url('//at.alicdn.com/t/font_359250_7cwhujq4p7ujtt9.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_359250_7cwhujq4p7ujtt9.woff') format('woff'),
  url('//at.alicdn.com/t/font_359250_7cwhujq4p7ujtt9.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_359250_7cwhujq4p7ujtt9.svg#iconfont') format('svg');
}

.iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

// MUI改造部分
body {

  input,
  textarea,
  select {
    font-size: 14px;
  }
  select,
  textarea,
  input[type='text'],
  input[type='search'],
  input[type='password'],
  input[type='datetime'],
  input[type='datetime-local'],
  input[type='date'],
  input[type='month'],
  input[type='time'],
  input[type='week'],
  input[type='number'],
  input[type='email'],
  input[type='url'],
  input[type='tel'],
  input[type='color'] {
    font-size: 14px;
  }

  .mui-btn {
    font-size: 14px;
    padding: 10px 0;
  }

  .mui-btn-primary {
    background: @mainColor !important;
    border-color: @mainColor;
    &:link, &:focus, &:active, &:hover {
      color: #FFF;
      background: darken(@mainColor, 5%);
    }
  }

  .mui-title {
    color: @mainColor;
    img {
      height: 30px;
    }
  }

  .mui-input-group {
    margin: 10px 0;
  }

  .mui-bar-tab {
    .mui-tab-item {
      text-decoration: none;
      &.mui-active {
        color: @mainColor;
      }
      .icon {
        top: 3px;
        width: 24px;
        height: 24px;
        padding-top: 0;
        padding-bottom: 0;
        font-size: 24px;
        position: relative;
        z-index: 20;
        font-style: normal;
        line-height: 1;
        display: inline-block;
        text-decoration: none;
        -webkit-font-smoothing: antialiased;
      }
      .icon ~ .mui-tab-label {
        font-size: 11px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  .mui-bar-nav.mui-bar {
    a {
      color: @mainColor;
      font-size: 16px;
    }
    .mui-icon {
      color: @mainColor;
      text-decoration: none;
    }
  }

  .mui-content {
    > .mui-table-view {
      margin-top: 10px;
      &:first-child {
        margin-top: 10px;
      }
    }
    .mui-table-view {
      margin-top: 10px;
      &:first-child {
        margin-top: 10px;
      }
    }
  }

  .mui-radio input[type='radio']:checked:before, .mui-checkbox input[type='checkbox']:checked:before {
    color: @mainColor;
  }

  .mui-segmented-control {
    border: none;
    border-radius: 0px;
    background: #FFF;
    .mui-control-item {
      border: none;
      color: #999;
      &.mui-active {
        color: @mainColor;
        border-bottom: 2px solid @mainColor;
        background: #FFF;
      }
    }
  }

  .mui-table-view-cell {
    overflow: hidden;
    &.mui-active {
      background: #FFF;
    }
    .name {
      float: left;
      color: #999;
    }
    .value {
      float: right;
    }
  }

  .mui-search.mui-active:before {
    top: 25px;
  }

  .mui-input-row {
    .mui-active {
      color: @mainColor !important;
    }
    .value {
      line-height: 1.1;
      padding: 11px 15px;
      color: #666;
    }
    &.image {
      height: auto;
      padding: 10px 0;
    }
    &.captcha {
      position: relative;
      input {
        width: 30%;
        margin-right: 35%;
      }
      .mui-icon {
        margin-right: 30%;
      }
      img {
        position: absolute;
        height: 30px;
        width: 100px;
        border: 1px solid #EEE;
        border-radius: 3px;
        right: 5px;
        top: 5px;
      }
      .btn {
        position: absolute;
        right: 5px;
        top: 5px;
        button {
          height: 30px;
          line-height: 30px;
          width: 100px;
          padding: 0;
          text-align: center;
        }
      }
    }
  }

}

// MUI改造部分

body, html {
  &.locked {
    overflow: hidden;
  }
}

.pb-form {
  .line {
    padding: 0 10px 5px 10px;
    .tip {
      text-align: center;
      color: red;
    }
    .label {
      color: #666;
      font-size: 14px;
    }
    .field {
      input {
        margin: 0;
        padding: 10px;
        vertical-align: middle;
      }
      label {
        display: block;
        width: 100%;
        background: #FFF;
        border: 1px solid rgba(0, 0, 0, .2);
        padding: 10px;
        line-height: 21px;
        font-size: 14px;
        margin: -1px 0;
        &:first-child {
          border-radius: 3px 3px 0 0;
        }
        &:last-child {
          border-radius: 0 0 3px 3px;
        }
      }
      .value {
        font-size: 14px;
        background: #EEE;
        border: 1px solid rgba(0, 0, 0, .2);
        padding: 10px;
        line-height: 21px;
        border-radius: 3px;
      }
    }
  }
  .submit {
    padding: 10px 10px 0 10px;
  }
}

.pb-empty {
  line-height: 80px;
  text-align: center;
  color: #999;
  font-size: 14px;
}