// 验光配镜分诊台
.triage-front-desk {
  .tfd-header {
    height: 46px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .tfd-btn-item .ant-btn {
    margin-right: 12px;
  }

  .tfd-content {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;

    .tfd-content-query {
      margin-bottom: 12px;
    }
  }

  .tfd-optometry-room {
    width: 100%;
    height: 222px;
    padding: 8px 0 0 4px;
    box-sizing: border-box;
    overflow-x: auto;

    .tfd-optometry-room-item {
      width: 280px;
      height: 180px;
      margin: 0 16px 16px 0;
      cursor: pointer;
      border-radius: 4px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

      &:last-child {
        margin-right: 0;
      }

      h3 {
        height: 56px;
        font-weight: 600;
        padding: 0 20px;
        box-sizing: border-box;
        margin-bottom: 4px;
      }

      .tfd-optometry-room-item-status {
        font-weight: normal;
        color: #fff;
        font-size: 13px;
        margin-left: 6px;
        border-radius: 4px;
        background-color: #007AFF;
        padding: 0 8px;
        display: inline-block;
      }

      .tfd-optometry-room-item-status-invalid {
        background-color: #ddd;
      }

      .tfd-optometry-room-item-content {
        width: 100%;
        padding: 0 2px;
        box-sizing: border-box;

        &>div {
          width: 100%;
          height: 36px;
          line-height: 36px;

          &>span {
            width: 35%;
            height: 100%;
            padding: 0 12px;
            font-weight: normal;
            display: inline-block;
            background-color: #f5f4f4;
            box-sizing: border-box;
          }

          &>span:first-child {
            width: calc(~"65% - 1px");
            position: relative;

            &::before {
              content: "";
              display: inline-block;
              position: absolute;
              left: 0;
              top: 0;
              height: 100%;
              width: 2px;
              background-color: #007AFF;
            }
          }

          &>span:last-child {
            text-align: right;
            color: #007AFF;
          }
        }

        &>.tfd-optometry-room-item-content-doc {
          &>span:first-child::before {
            background-color: #52cc6f;
          }

          &>span:last-child {
            color: #52cc6f;
          }
        }

        &>div:first-child {
          margin-bottom: 1px;
        }
      }

      .tfd-optometry-room-item-footer {
        height: 46px;
        color: #007AFF;

        &>span {
          display: inline-block;
          width: 86px;
          height: 32px;
          text-align: center;
          line-height: 32px;
          cursor: pointer;
        }
      }
    }

    .tfd-optometry-room-item-active {
      position: relative;
      border: 1px solid #007AFF;
      background-color: rgba(0, 122, 255, 0.03);

      .tfd-optometry-room-item-content>div>span {
        background-color: rgba(0, 122, 255, 0.1);
      }

      &::after {
        position: absolute;
        right: -1px;
        bottom: 0;
        width: 0;
        height: 0;
        content: '';
        border: 20px solid;
        border-color: transparent #007AFF #007AFF transparent;
        border-bottom-right-radius: 2px;
      }

      &::before {
        position: absolute;
        right: 2px;
        bottom: 10px;
        z-index: 1;
        width: 20px;
        height: 11px;
        content: '';
        background: transparent;
        border: 3px solid white;
        border-top: none;
        border-right: none;
        -webkit-transform: rotate(-55deg);
        -ms-transform: rotate(-55deg);
        transform: rotate(-55deg);
      }
    }

    .tfd-optometry-room-item-disable {
      opacity: 0.6;
      cursor: no-drop;
    }
  }
}

// 验光师工作站
.optometrist-workstation.out-patient-style {
  background: #F5F7FE;
}

// 配镜申请单表单录入
.gmaf-dynamic-form {
  .ant-input-group-addon {
    background-color: #fff;
    padding: 0 4px;
    text-align: left;
  }
}

.optometrist-workstation {
  .ow-steps {
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
  }

  .ow-card-right {
    float: right;
    width: 89%;
    height: 100%;
    background-color: #fff;

    &>.ant-card-body {
      height: 100%;
      padding: 0;
    }
  }

  .ow-content {
    height: calc(~"100% - 65px");
    overflow: auto;
  }
}

// 新增验光单
.add-optometry-sheet {
  .ant-modal-body {
    padding: 0;
  }

  .aos-evaluation-sheet {
    .ant-row.ant-form-item {
      margin-bottom: 0;
    }
  }

  .aos-application-card {
    &>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra {
      padding: 2px 0;
    }

    .ant-checkbox-wrapper {
      line-height: 36px;
      margin-left: 32px;
    }

    .ant-checkbox-wrapper+.ant-checkbox-wrapper {
      margin-left: 32px;
    }

    .aos-application-card-content {
      height: 86px;
      overflow: auto;
    }
  }
}

// 视光单查询
.optometry-slip-query {

  .osq-input-item {
    margin-bottom: 20px;
  }

  .osq-input-item>span,
  .osq--input-label {
    display: inline-block;
    width: 25%;
    text-align: right;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.85);
  }

  .osq-not-sent {
    color: #fa8c17;
  }
}

// 更换验光室
.replace-the-optometry-room {
  .replace-the-optometry-room-label {
    display: inline-block;
    width: 150px;
    text-align: right;
    font-weight: normal;
  }
}

//验光结果查询
.refraction-result-query {
  .table-show {
    table {
      border-collapse: collapse;
      text-align: center;
    }

    table th {
      color: #666;
      background-color: #dddddd;
    }

    table td,
    table th {
      border: 1px solid #333;
      height: 30px;
      padding: 10px 20px 10px 20px;
    }
  }
}

// 配镜申请单
.glasses-matching-application-form {
  .gmaf-left-card.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra {
    padding: 6px 0;
  }

  .gmaf-card>.ant-card-body {
    padding: 6px;
  }

  // .gmaf-children-card.ant-card-small>.ant-card-head {
  //   min-height: 32px;
  // }

  // .gmaf-children-card.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-head-title {
  //   padding: 5px;
  // }

  .gmaf-children-card.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra {
    padding: 0;
  }

  .gmaf-children-card {
    .ant-card-body {
      padding-right: 6px;
    }

    .ant-row.ant-form-item {
      margin-bottom: 0;
    }

    // .ant-form-item-control-wrapper .ant-form-item-control {
    //   line-height: 24px;
    // }

    form textarea.ant-input {
      margin-top: 4px;
    }

    .ant-menu {
      color: #333;
    }

    .ant-menu-inline,
    .ant-menu-vertical,
    .ant-menu-vertical-left {
      border-right: 0;
    }

    .gmaf-varieties-search {
      .ant-btn {
        color: #333;
        background: #fff;
        border-color: #d9d9d9;
        box-shadow: none;
      }
    }
  }

  .gmaf-children-card-first {
    .ant-card-body {
      padding: 0;
    }

    .gmaf-children-card-context {
      padding: 12px;
      overflow: auto;
    }
  }

  // .gmaf-children-card-center.ant-card {
  //   border-right: 0;

  //   .ant-card-body {
  //     border-right: 1px solid #e8e8e8;
  //   }
  // }

  .gmaf-children-card-right.ant-card {
    border-left: 0;
  }

  .gmaf-children-card-right-radio {
    .ant-radio-group {
      width: 100%;
    }
  }

  .gmaf-children-card-right {
    width: 100%;

    .gmaf-children-card-right-radio-items {
      // width: 95%;
      display: flex;
      margin-bottom: 12px;

      &>span:first-child {
        padding-top: 3px;
      }

      &>span:last-child {
        width: 100%;
      }
    }
  }


  .gmaf-eye-card {
    flex: 1;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: all .2s;
    overflow: hidden;

    .no-matching-data {
      height: 240px;
      line-height: 240px;
      text-align: center;
      color: #999;
    }
  }

  .gmaf-current-eye-card {
    border: 1px solid #007AFF;
    box-shadow: 1px 1px 10px 2px rgba(51, 51, 51, 0.15);
  }

  .gmaf-application-list {
    .ant-card-body {
      padding: 0;
    }

    .gmaf-application-list-content {
      padding: 12px;
    }

    .gmaf-application-list-item {
      border: 1px solid #e8e8e8;
      margin-bottom: 12px;
      border-radius: 6px;
      cursor: pointer;

      .gmaf-application-list-header {
        border-bottom: 1px solid #e8e8e8;
        height: 36px;
        position: relative;
        padding: 0 12px;
        box-sizing: border-box;
      }

      .gmaf-application-list-header-title {
        width: 80%;
        text-align: center;
      }

      .gmaf-application-list-item-content {
        padding: 6px 12px;

        &>p {
          line-height: 26px;
          margin-bottom: 0;

          span {
            color: #999;
          }
        }
      }
    }

    .gmaf-application-list-item-active {
      box-shadow: 1px 1px 10px 2px rgba(51, 51, 51, 0.15);
      position: relative;

      &::after {
        position: absolute;
        right: 0;
        top: 0;
        width: 0;
        height: 0;
        content: '';
        border: 18px solid;
        border-color: #007AFF #007AFF transparent transparent;
        border-top-right-radius: 2px;
      }

      &::before {
        position: absolute;
        right: 4px;
        top: 6px;
        z-index: 1;
        width: 14px;
        height: 8px;
        content: '';
        background: transparent;
        border: 2px solid white;
        border-top: none;
        border-right: none;
        -webkit-transform: rotate(-55deg);
        -ms-transform: rotate(-55deg);
        transform: rotate(-55deg);
      }
    }
  }
}

// 微信支付
.weChat-payment {

  .ant-statistic .ant-statistic-content,
  .ant-statistic .ant-statistic-content .ant-statistic-content-value {
    font-size: 15px;
  }

  .wcp-deadline {
    color: #999;

    .ant-statistic .ant-statistic-content,
    .ant-statistic .ant-statistic-content .ant-statistic-content-value {
      font-size: 12px;
    }
  }
}

// 流程配置
.process-configuration {
  .pc-check-card {
    display: inline-block;
    border-left: 1px solid #e8e8e8;
    border-top: 1px solid #e8e8e8;
  }

  .pc-check-item {
    width: 120px;
    text-align: center;
    display: inline-block;

    .pc-check-title,
    .pc-check-switch {
      border-right: 1px solid #e8e8e8;
      border-bottom: 1px solid #e8e8e8;
    }

    .pc-check-title {
      width: 100%;
      background: linear-gradient(0deg, #ededed, #ffffff);
      height: 45px;
      line-height: 45px;
      padding: 0 16px;
    }

    .pc-check-switch {
      width: 100%;
      height: 36px;
    }
  }

  .pc-card-title {
    height: 46px;
    line-height: 46px;

    &>div:nth-child(1) {
      top: 13px;
      height: 20px;
      width: 4px;
    }
  }

  .pc-right-card.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra {
    padding: 4px 0;
    margin-right: 24px;
  }
}