@import "../../common/basic.less";
.service-layout {
  &,
  .ant-layout {
    background: @main_bgc;
    padding-bottom: 20px;
  }
  .ant-layout-header {
    padding: 0;
    font-size: 16px;
    line-height: 54px;
    font-weight: 600;
  }
  hr {
    height: 1px;
    border: solid 1px #e9e9e9;
    width: 97%;
  }
  .content {
    padding: 18px 29px;
    background: white;
    .model-tag {
      margin: 0 14px;
      border-radius: 2px;
      border: none;
      color: #00a86e;
      background-color: #e5f6f0;
      height: 24px;
      line-height: 23px;
      padding: 0 24px;
    }
    .model-tag-op{
      color: #09c199;
    }
    .ant-input-number {
      width: 50px;
      font-size: 12px;
    }
    .table-wrap {
      .ant-table {
        th{
          background-color: #f3f5f6;
          color: @font_color;
        }
        td{
          color: @main_font_color;
        }
        th, td{
          // border-right: none;
          //&:last-child{
          //  border-right: 1px solid @border_color;
          //}
        }
        .btn{
          color: #09c199;
          &.no-border{
            border: none;
          }
          .iconfont{
            margin-right: 6px;
          }
        }
        .table-name{
          color: @blue_primary_color;
        }
      }
    }
  }
}
.service-detail{
  .row-item{
    margin-top: 26px;
    &.no-margin{
      margin-top: 0;
    }
    .ant-card{
      padding: 0 32px;
      .ant-card-head{
        padding: 0;
        border-bottom: 1px solid @main_border_color;
        .ant-card-head-title{
          padding: 0;
          font-size: 18px;
          height: 82px;
          line-height: 82px;
        }
      }
      .ant-card-body{
        padding: 28px 0;
      }
    }
    .row-list-item{
      margin-bottom: 24px;
      &:last-child{
        margin-bottom: 0;
      }
      div{
        padding: 0;
        word-break: break-all;
        &:first-child{
          color: @font_color;
        }
        &:last-child{
          color: @main_font_color;
        }
      }
    }
    .port-table, .task-table{
      th{
        background-color: #f3f5f6;
        color: @font_color;
        padding-top: 12px;
        padding-bottom: 12px;
      }
      td{
        color: @main_font_color;
      }
      th, td{
        border-right: none;
        //&:last-child{
        //  border-right: 1px solid @border_color;
        //}
      }
      .btn{
        color: #09c199;
        &.no-border{
          border: none;
        }
        .iconfont{
          margin-right: 6px;
        }
      }
      .state-wrap{
        margin: 0;
        display: block;
        width: 78px;
        height: 28px;
        line-height: 28px;
        border-radius: 2px;
        font-size: @font_size_normal;
        text-align: center;
        &.run{
          background-color: @tag_color;
          color: #009944;
        }
        &.fail{
          background-color: #ffe0dc;
          color: #e60012;
        }
      }
    }

    @media screen and (max-width: @screen-xm) {
      margin-top: 14px;
      .ant-card{
        padding: 0 20px;
        .ant-card-head{
          .ant-card-head-title{
            font-size: 14px;
            height: 50px;
            line-height: 50px;
          }
        }
        .ant-card-body{
          padding: 24px 0;
        }
      }
      .row-list-item{
        margin-bottom: 20px;
        font-size: 12px;
      }
      .task-table{
        .state-wrap{
          font-size: 12px;
        }
        .btn{
          font-size: 12px;
        }
      }
    }
    @media screen and (min-width: (@screen-xm + 1)) and (max-width: @screen-md) {
      margin-top: 20px;
      .ant-card{
        padding: 0 26px;
        .ant-card-head{
          .ant-card-head-title{
            font-size: 16px;
            height: 66px;
            line-height: 66px;
          }
        }
        .ant-card-body{
          padding: 26px 0;
        }
      }
      .row-list-item{
        margin-bottom: 22px;
      }
    }
    @media screen and (min-width: (@screen-md + 1)) {
      margin-top: 26px;
      .ant-card{
        padding: 0 32px;
        .ant-card-head{
          .ant-card-head-title{
            font-size: 18px;
            height: 82px;
            line-height: 82px;
          }
        }
        .ant-card-body{
          padding: 28px 0;
        }
      }
      .row-list-item{
        margin-bottom: 24px;
      }
    }
  }
}
.add-wrap {
  margin-bottom: 20px;
  .moria-box-header{
    padding: 0 48px;
  }
  .form-content {
    padding: 0 92px;
    padding-top: 46px;
    .table-desc {
      margin-top: 16px;
      height: 16px;
      line-height: 16px;
      font-size: 12px;
      color: #999;
    }
  }
  @media screen and (max-width: 1000px) {
    .form-content {
      padding: 0 46px;
      padding-top: 46px;
    }
  }
  @media screen and (max-width: @screen-xm) {
    .form-content {
      padding: 0 46px;
      padding-top: 46px;
    }
  }
  @media screen and (min-width: (@screen-xm + 1)) and (max-width: @screen-md) {
    .form-content {
      padding: 0 46px;
      padding-top: 46px;
    }
  }
  @media screen and (min-width: (@screen-md + 1)) {
    .form-content {
      padding: 0 92px;
      padding-top: 46px;
    }
  }
}
