// 文字医嘱
.written-orders-modal {
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3), 0px 0px 20px rgba(0, 0, 0, 0.1) inset;
  z-index: 10;

  .ant-modal-body {
    padding: 12px;
    padding-bottom: 24px;
  }

  .wom-footer-divider {
    margin: 2px 0 8px 0 !important;

    .ant-divider-inner-text {
      font-weight: normal;
      color: #999;
    }
  }
}

// 范例病历弹窗
.add-sample-template {
  .ant-modal-body {
    padding: 0;
  }

  .ast-left-extra-btn.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra {
    padding: 0;
  }

  .ast-left-extra-btn .ant-btn>.anticon+span,
  .ast-left-extra-btn .ant-btn>span+.anticon {
    margin-left: 4px;
  }

  .ast-tree {

    .ant-tree-treenode-switcher-close,
    .ant-tree-treenode-switcher-open {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }

    .ant-tree-child-tree {
      display: block;
      width: 100%;
    }

    .ant-tree-node-content-wrapper-normal,
    .ant-tree-node-content-wrapper {
      width: calc(~'100% - 24px');
      display: flex;
      align-items: center;
    }

    .ant-tree-title {
      display: inline-block;
      width: 100%;
    }

    .ast-tree-title {
      width: 100%;
    }
  }

  .ast-content {
    .formRequired {
      position: relative;
      padding: 0 8px;

      &::after {
        top: 2px;
        left: -8px;
      }
    }
  }
}

.medical-record-template-selection {

  .mrts-left-menu {
    overflow: auto;

    .ant-menu {
      border-right: 0;

      .ant-menu-item {
        margin: 0;
      }
    }
  }

  .mrts-right-menu {
    width: 100%;
    height: 60vh;
    padding-right: 12px;
    overflow: auto;

    .mrts-right-menu-item {
      width: 100%;
      padding: 2px 0;
      margin-bottom: 4px;
      cursor: pointer;
    }

    .mrts-right-menu-item-first {
      color: red;
    }

    .mrts-right-menu-item-active {
      color: #1890ff;
      background-color: #e6f7ff;
    }

    .mrts-right-menu-title {
      position: relative;
      line-height: 32px;

      &>i {
        padding: 0 6px;
      }
    }

    .mrts-right-menu-desc {
      color: #999;
      font-size: 13px;
      padding: 0 28px;
      box-sizing: border-box;
      font-weight: normal;
      line-height: 20px;
    }

    .mrts-right-menu-desc-icon {
      position: absolute;
      right: 12px;
      bottom: 0;
      cursor: pointer;
    }
  }

  .mrts-emr-mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 42px;
    right: 12px;
    margin: 0 auto;
  }

  .mrts-emr-footer {
    width: 100%;
    height: 42px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.15);
  }
}