@import './reset.less';
.main-part{
  height: 100%;
}

.ellipsis{
  overflow: hidden;
  text-overflow:ellipsis;
  white-space: nowrap;
}
#loading{
  text-align: center;
  height: 2000px;
  margin-top: 30px;
}
.waring {
  color: #FF4D4F;
  margin-top: 18px;
  height: 18px;
}
.patient-info{
  /*height: 50px;*/
  background: #fff;
  line-height: 50px;
  border-bottom: 10px #EFF1F6 solid;
  text-align: center;
  /*margin-bottom: 20px;*/
  span{
    color: #333;
    margin-right: 40px;
    display: inline-block;
  }
}
.sub-menu{
  position: relative;
  width: @menuWt+15px;
  height: 100%;
  float: left;
  /*overflow-y: auto;*/
  overflow: hidden;
  background: @themeColor;
  border-right: 1px @frameBdColor solid;
  .logo{
    margin:8px 0 44px;
    text-indent: 22px;
    height: 42px;
  }
  &>a{
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1;
  }
  &>ul{
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
    height:calc(100% - 140px);
  }
  &>ul>li{
    color: @fstColor;
    margin-bottom: 10px;
    &.menu-0{
      background: url("../images/total.png") 20px 9px no-repeat;
      &.active{
        background: url("../images/total_a.png") 20px 9px no-repeat;
      }
      &.slide-up{
        background-color: @activeBg;
      }
    }
    &.menu-6{
       background: url("../images/index.png") 20px 11px no-repeat;
      &.active{
        background: url("../images/index_a.png") 20px 11px no-repeat;
      }
      &.slide-up{
        background-color: @activeBg;
      }
     }
    &.menu-1{
      background: url("../images/inhis.png") 19px 11px no-repeat;
      &.active{
        background: url("../images/inhis_a.png") 19px 11px no-repeat;
      }
      &.slide-up{
        background-color: @activeBg;
      }
    }
    &.menu-37{
      background: url("../images/prod.png") 20px 10px no-repeat;
      &.active{
        background: url("../images/prod_a.png") 20px 10px no-repeat;
      }
      &.slide-up{
        background-color: @activeBg;
      }
    }
    &.menu-5{
      background: url("../images/out.png") 20px 11px no-repeat;
      &.active{
        background: url("../images/out_a.png") 20px 11px no-repeat;
      }
      &.slide-up{
        background-color: @activeBg;
      }
    }
  }
  .slide-up {
    background-color: @activeBg !important;
  }
  .active{
    color: @activeColor;
    /*background: @activeBg;
    border-right: 3px @activeColor solid;*/
  }
  .page:hover{
      color: @activeColor;
  }
  .list-1{
    position: relative;
    p {
      color: @fstColor;
      &:hover {
        color: @activeColor;
      }
    }
    &:after{
      content: " ";
      display: inline-block;
      position: absolute;
      left: @menuWt+(-30px);
      top:18px;
      width: 10px;
      height: 6px;
      background: url("../images/icon_down.png") no-repeat;
    }
    &.slide-up:after{
      transform: rotate(180deg);
      -webkit-transform: rotate(180deg);
    }
    ul{
      display: none;
      li.page{
        text-indent: 55px;
        color: @greyColor;
        &.active{
          color: @activeColor;
        }
      }
    }
  }
  li{
    line-height: @menuLiHt;
    text-indent: 45px;
    cursor: pointer;
  }
  .copy-right{
    /*position: fixed;
    bottom: 0px;*/
    width: @menuWt+15;
    text-align: center;
    background: @themeColor;
    padding: 10px 0 20px;
    border-top: 1px @themeBorderClr solid;
    p{
      font-size:12px;
      color: @trdColor;
      white-space: nowrap;
    }
  }
}
.menu-mini{
  display: none;
  width: 60px;
  height: 100%;
  background: @themeColor;
  position: relative;
  .logo{
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #DEE5EF;
    margin-bottom: 44px;
  }
  &>a{
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1;
  }
  &>ul>li{
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: url("../images/module.png") center no-repeat;
    cursor: pointer;
    margin-bottom: 10px;
    &:hover{
      ul{
        display: block;
      }
    }
    & ul{
      display: none;
      left: 60px;
      position: absolute;
      width: 186px;
      background: @themeColor;
      border-radius:4px;
      box-shadow:0px 2px 16px -4px rgba(15,28,59,1);
      margin-left: 3px;
      z-index: 9;
      &:before{
        content: "";
        display: inline-block;
        width: 8px;
        height: 32px;
        background: url("../images/ar.png") no-repeat;
        position: absolute;
        left: -8px;
      }
      li{
        height: 40px;
        line-height: 40px;
        color: @greyColor;
        text-indent: 30px;
        border-radius: 4px;
        &:hover,&.active{
          background: @activeBg;
          color: @activeColor;
        }
      }
    }
    &.menu-0{
      background: url("../images/total.png") 20px 9px no-repeat;
      &:hover,&.active{
        background: url("../images/total_a.png") @activeBg 20px 9px no-repeat;
      }
    }
    &.menu-6{
      background: url("../images/index.png") 20px 11px no-repeat;
      &:hover,&.active{
        background: url("../images/index_a.png") @activeBg 20px 11px no-repeat;
      }
    }
    &.menu-1{
      background: url("../images/inhis.png") 19px 11px no-repeat;
      &:hover,&.active{
        background: url("../images/inhis_a.png") @activeBg 19px 11px no-repeat;
      }
    }
    &.menu-37{
      background: url("../images/prod.png") 20px 10px no-repeat;
      &:hover,&.active{
        background: url("../images/prod_a.png") @activeBg 20px 10px no-repeat;
      }
    }
    &.menu-5{
      background: url("../images/out.png") 21px 11px no-repeat;
      &:hover,&.active{
        background: url("../images/out_a.png") @activeBg 21px 11px no-repeat;
      }
    }
  }
}
.tab-container{
  margin-left: @menuWt+15px;
  background: @disColor;
  /*height: 100%;*/
  .content-box{
    width:78%;
    height: 100%;
    background: #fff;
    position: relative;
    overflow-y: auto;
    border-right: 10px #EFF1F6 solid;
    border-left: 10px #EFF1F6 solid;
    box-sizing: border-box;
  }
  .content-item{
    display: none;
    /*height: 100%;*/
    .content-item-wrapper{
      margin-bottom: 50px;
    }

    /**********危急值记录*************/
    &.danger-record{
      height:auto;
      .title{
        /*position: unset;*/
      }
    }
    .title{
      /*position: absolute;
      top: 0;*/
      width: 100%;
      color: #333333;
      font-size: 16px;
      text-align: center;
      font-weight: bold;
      height: 44px;
      line-height: 44px;
      border-bottom:1px #E2E5EF solid;
      text-indent: 20px;
    }
    .container{
      /*margin-top: 45px;*/
      padding: 20px 30px 0;
      height: 100%;
      /*overflow-y: auto;*/
    }
    .info-table{
      margin: 0 0 15px;
    }
    table{
      width: 100%;
      border:1px @tableBorderColor solid;
    }
    .inline-table{
      display: inline;
      border: none;
      td{
        border: none;
      }
    }
    .inner-table table{
      border: none;
      td{
        border: none;
        text-align: left;
        vertical-align: text-bottom;
        &[rowspan]{
          font-weight: bold;
          width: 100px;
          padding-left: 0;
        }
        &.active{
          background: @anchorBg;
        }
      }
    }
    .embed-table{
      border:1px @tableBorderColor solid;
      &>tbody>tr:first-child>td{
        padding: 0;
        border:none;
        &>table td{
          border:1px @tableBorderColor solid;
          line-height: 20px;
          padding: 7px 8px;
        }
      }
      .table-tip{
        text-align: left;
      }
    }
    th{
      table{
        border:none;
      }
      border:1px @tableBorderColor solid;
      background: @thBgColor;
      line-height: 20px;
      padding: 7px 8px;
    }
    td{
      text-align: center;
      border:1px @tableBorderColor solid;
      padding:7px  8px;
      height: 20px;
      table,td{
        border:none;
      }
    }
    .info-item{
      border-bottom: 1px @borderColor solid;
      .text-left{
        width: 100%;
        text-align: right;
      }
      .cont{
        display: inline-block;
        min-width: 33%;
        margin-bottom: 5px;
        box-sizing: border-box;
        padding-left: 5px;
        &.active{
          background: @anchorBg;
        }
        span{
          line-height: 20px;
          vertical-align: middle;
        }
        .text-indent{
          text-indent: 28px;
        }
        .text-bold{
          font-weight: bold;
        }
        .label{
          display: inline-block;
          /*min-width: 70px;*/
          font-weight: bold;
          overflow-x: hidden;
        }
        .revisitPlanTan{
          border: none;
          td{
            border: none;
          }
        }
      }
      &.cont-2 .cont{
        min-width: 48%;
      }
      &.cont-4 .cont{
        min-width: 23%;
      }
      &.cont-5 .cont{
        min-width: 19%;
      }
      &.no-border{
        border-bottom: none;
        margin-bottom: 0;
      }
      margin-bottom: 10px;
      .info-title{
        font-weight: bold;
        margin-bottom: 10px;
      }
    }
  }
  .operation{
    width:calc(22% - 12px);
    height: 100%;
    margin-right: 10px;
    position: relative;
    background: #fff;
    .flaw-title{
      position: absolute;
      top:0;
      width: 100%;
      height: 44px;
      color: #333333;
      font-weight: bold;
      line-height: 44px;
      border-bottom:1px #E2E5EF solid;
      /*margin-bottom: 20px;*/
      span{
        font-size: 16px;
        margin-left: 15px;
      }
      a{
        float: right;
        width: 66px;
        height: 28px;
        margin: 10px 20px 0 0;
        line-height: 28px;
        text-align: center;
        border-radius:4px;
        color: @activeColor;
        font-weight: normal;
        border:1px @activeColor solid;
      }
    }
    .flaw-box{
      margin-top: 45px;
      padding-top: 5px;
      height: 100%;
      overflow-y: auto;
    }
    .flaw-item{
      display: none;
      position: relative;
      margin: 0 12px 10px 12px ;
      /*border-bottom:1px #E2E5EF solid;*/
      padding-bottom: 6px;
      &:after{
        display: block;
        content: "";
        width: 98%;
        height: 1px;
        background: @borderColor;
        position: absolute;
        bottom: -5px;
        left: 1%;

      }
      p{
        text-indent: 5px;
      }
      .opers{
        padding-right: 5px;
      }
      .title{
        box-sizing: border-box;
        padding:5px;
        .add-icon{
          font-size: 12px;
          display: inline-block;
          text-align: center;
          width:32px;
          height:14px;
          line-height: 14px;
          color: #FFAD00;
          border:1px #FFAD00 solid;
          border-radius:8px;
          margin-right: 6px;
        }
      }
      &.active .title{
        background: @anchorBg;
      }
    }
  }
  .oper{
    text-align: right;
  }
}
.empty{
  /*display: none;*/
  margin-top: 120px;
  text-align: center;
  img{
    width: 86px;
  }
  p{
    margin-top: 15px;
    font-size: 12px;
    text-indent: 10px;
    color: #aaa;
  }
}
.edit-box{
  p{
    margin-bottom: 10px;
    .red{
      display: inline-block;
      width: auto;
      text-indent: 5px;
    }
  }
  .warning{
    display: none;
  }
  input{
    border:1px @borderColor solid;
    width: 300px;
    height: 38px;
    text-indent: 10px;
    line-height: 38px;
    border-radius:2px;
    box-sizing: border-box;
  }
  .flaw-drop-input {
    padding-right: 28px;
    box-sizing: border-box;
  }
  #addQcMsg {
    padding-right: 0;
  }
  span{
    display: inline-block;
    width: 70px;
    margin-right: 12px;
    text-align: right;
  }
}
.add-box{
  .drop-box{
    position: relative;
    margin-bottom: 10px;
    &:after{
      content: "";
      display: inline-block;
      width: 13px;
      height: 7px;
      background: url("../images/arrow_down.png") no-repeat;
      background-size: 13px 7px;
      position: absolute;
      left: 365px;
      top: 16px;
    }
  }
  ul{
    display: none;
    position: absolute;
    right: 0;
    width: 300px;
    background: #fff;
    border:1px @tableBorderColor solid;
    max-height: 205px;
    overflow: auto;
    box-sizing: border-box;
    li{
      line-height: 25px;
      padding: 0 5px;
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      &:hover{
        background: @tableBorderColor;
      }
    }
  }
  .show{
    ul{
      display: block;
    }
    &:after{
      background-image: url("../images/arrow_up.png");
    }
  }
}
.standard_table {
  tr {
    td.standard_fst {
      width: 160px;
    }
  }
}
/*******手术知情同意书*********/
.surgery-book{
  .book-item{
    margin-bottom:15px;
    :not(:first-child){
      text-indent: 15px;
    }
    .intent{
      text-indent: 30px;
    }
    .intent-1{
      margin-left: 48px;
      text-indent: 0;
    }
    &.clearfix{
      p{
        width: 100%;
      }
    }
    .fr{
      margin-top: 25px;
      text-align: right;
    }
  }
}

/********术后首次病程记录及谈话记录*******/

.textR{
  text-align: right;
}
.textL{
  text-align: left;
}
.textPreLine{
  white-space: pre-line;
}
.textIndent30{
  text-indent:30px
}
.textBold{
  font-weight: bold;
}
.padL30{
  padding-left: 30px;
}
.displayInlineBlock{
  display: inline-block;
}

/********缺陷总览*********/
.flaw-table{
  display: none;
  height: 97%;
  background: #fff;
  margin: 0 10px 10px;
  /*overflow-y: auto;
  margin: 0 30px 0 20px;*/
  .slide-up{
    cursor: pointer;
    color: @activeColor;
    &:before{
      display: inline-block;
      width: 14px;
      height: 14px;
      content: "";
      font-size: 18px;
      color: @activeColor;
      text-align: center;
      vertical-align: middle;
      margin-right: 4px;
      background: url("../images/slice.png") no-repeat;
    }
    &.down:before{
      background: url("../images/add.png") no-repeat;
    }
  }
  .page-item{
    display: none;
    h2{
      height: 44px;
      line-height: 44px;
      border-bottom: 1px @tableBorderColor solid;
      font-size: 16px;
      font-weight: normal;
      margin-bottom: 20px;
      text-indent: 20px;
    }
  }
  .interval-color{
    tr:nth-child(2n){
      background: #EFF1F6;
    }
  }
  table{
    width: 97%;
    border:1px solid #E2E5EF;
    border-collapse: collapse;/*关键代码*/
    /*margin-bottom: 40px;*/
    margin: 0 30px 40px 20px;
    thead{
      background: #EFF0F9;

    }
    /*tr[code]{
      display: none;
    }*/
    th,td{
      height: 32px;
      box-sizing: border-box;
      padding: 0 20px;
      border:1px solid #E2E5EF;
      border-collapse: collapse;/*关键代码*/
    }
    th{
      font-size: 14px;
      font-weight: 500;
    }
    td{
      font-size: 14px;
      font-weight: 400;
      &.red{
        text-align: center;
      }
    }
  }
}
.high-light{
  background: @highlighBg;
  &.active{
    background: none;
  }
}
.scroll-table{
  thead,tbody{
    display: block;
    width: 100%;
    box-sizing: border-box;
    th,td{
      width: 49%;
      display: inline-block;
      box-sizing: border-box;
      border: none;
      line-height: 32px;
      &:first-child{
        width: 30%;
        border-right: 1px @tableBorderColor solid;
      }
      &:last-child{
        width: 20%;
        border-left: 1px @tableBorderColor solid;
      }
    }
    td[colspan]{
      border-right: none;
      border-left: none;
    }
  }
  thead{
    border-bottom: 1px @tableBorderColor solid;
    tr{
      width: calc(100% - 18px);
      border-bottom:none;
    }
  }
  tbody{
    overflow-y: auto;
  }
  tr{
    display: block;
    border-bottom: 1px @tableBorderColor solid;
    &:last-child{
      border-bottom: none;
    }
  }
  tr,td[colspan]{
    width: 100%;
    box-sizing: border-box;
  }
}