// 草药录入
.cm-order-save {
    .medical-advice-list .ant-card-body {
        padding: 0
    }

    .medical-advice-list-table {
        height: 100%;

        .ant-spin-nested-loading,
        .ant-spin-container,
        .ant-table,
        .ant-table-content,
        .ant-table-body {
            height: 100%;
        }

        .ant-table-body {
            overflow-x: hidden;
        }

        .ant-table-thead tr,
        .ant-table-tbody tr {
            width: 100%;
            display: flex;
        }

        th,
        td {
            flex: 1;
        }

    }

    ul {
        padding-left: 0;
        margin-bottom: 0;
    }

    li {
        list-style: none;
    }

    .color999 {
        color: #999
    }

    .color333 {
        color: #333
    }

    .span-card {
        margin-left: 12px;
        padding: 2px 6px;
        // display   : inline-block;
        // width     : 60px;
        // height    : 24px;
        text-align: center;
        line-height: 24px;
        border-radius: 4px;
    }

    .pointer-span {
        border: 1px solid #1999db;
        color: #1999db;
        cursor: pointer;
    }

    .disp-card {
        border: 1px solid #999;
        color: #999;
    }

    .handle-btn {
        padding-left: 0;
        margin-bottom: 0;
        width: 100%;

        &>li {
            display: inline-block;
        }

        .color333:hover {
            color: #1890FF;
            cursor: pointer;
        }

        .color999:hover {
            cursor: not-allowed;
        }
    }

    .form-flex {
        &::-webkit-scrollbar {
            display: none !important
        }

        width : 100%;
        display : flex;
        flex-wrap : wrap;
        align-items: center;
        padding : 0;

        &>div {
            display: flex;
        }

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

    .round-ul {
        display: flex;

        &>li {
            margin-right: 10px
        }
    }

    .round-span {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 5px;
    }

    .round-list {
        width: 100%;
        height: 100%;

        &>li {
            display: inline-block;
            width: 150px;
            height: 93px;
            background: rgba(215, 215, 215, 1);
            margin: 8px 0 0 8px;
        }
    }

    // 溢出以三个点显示
    .ellipsis {
        width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .rules-position {
        margin-left: 8px;

        .ant-form-explain {
            position: absolute;
            bottom: -12px;
            width: 150px;
        }
    }

    .rules-position-star {
        margin-left: 18px;
    }

    .table-ellipsis {
        text-overflow: ellipsis;
        // white-space  : nowrap;
        overflow: hidden;
        display: inline-block;
        height: 32px;
        line-height: 32px;
    }


    .ant-table-thead th.table-ellipsis {
        height: 45px;
        line-height: 45px;
    }

    // 左移
    .doctor-left-splice {
        width: 15px;
        height: 15px;
        background-image: url('../image/patient.png');
        background-repeat: no-repeat;
        background-position: -98px -55px;
    }

    // 右移
    .doctor-right-splice {
        width: 15px;
        height: 15px;
        background-image: url('../image/patient.png');
        background-repeat: no-repeat;
        background-position: -112px -55px;
    }

    // 全选
    .doctor-hourglass-splice {
        width: 15px;
        height: 15px;
        background-image: url('../image/patient.png');
        background-repeat: no-repeat;
        background-position: -83px -55px;
    }

    .show-card {
        transition: all 0.3s linear;
        cursor: pointer;
        // position       : absolute;
        // left           : 0;
        // top            : 0;
        // z-index        : 10;
        -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

        &.show-card:hover {
            -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .ant-card-body {
            padding: 0;
        }
    }

    .hide-card {
        transition: all 4s linear;
        cursor: pointer;
        position: absolute;
        top: 11%;
        right: 8px;
        -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

        &.hide-card:hover {
            -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
    }

    .star {
        position: relative;

        &::before {
            position: absolute;
            top: 5px;
            left: -10px;
            display: inline-block;
            margin-right: 4px;
            color: #f5222d;
            font-size: 14px;
            font-family: SimSun, sans-serif;
            line-height: 1;
            content: '*';
        }
    }

    .button-hover {

        &.ant-btn:hover,
        &.ant-btn:focus {
            color: #1999db;
            border-color: #1999db;
        }
    }

    // card左侧绿色竖杠
    .card-title-left-icon {
        position: relative;
        padding-left: 10px;

        &>div:nth-child(1) {
            width: 3px;
            height: 15px;
            background: #1999db;
            position: absolute;
            left: 0;
            top: 4px;
        }
    }

    .cm-order-save-tabs {
        .ant-tabs-bar {
            margin: 0;
        }
    }
}

.quote-modal {
    .ant-modal-body {
        padding: 0;
    }

    .ant-card-body {
        height: 564px;
        padding: 0;
    }
}

.modal-right-list {
    .ant-list-item {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        height: 46px;
        line-height: 46px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        cursor: pointer;

        &:hover {
            color: #1890ff;
        }
    }
}

// 添加模板
.add-modal {
    .ant-modal-body {
        padding: 0;
    }

    .rules-position {
        .ant-form-explain {
            position: absolute;
            width: 300px;
            top: 35px;
        }
    }
}

.entry-application-form {
    .bg-card {
        background: linear-gradient(0deg, rgba(238, 238, 238, 0.8) 0%, rgba(238, 238, 238, 0.5) 50%, rgba(238, 238, 238, 0.1) 100%);
    }

    .modal-header {
        padding: 0 6px;
        color: rgba(102, 102, 102, 1);
        background: linear-gradient(0deg, rgba(238, 238, 238, 0.8) 0%, rgba(238, 238, 238, 0.5) 50%, rgba(238, 238, 238, 0.1) 100%);
        height: 36px;
        line-height: 36px;
        font-weight: 900;
        font-size: 14px;
        border-top: 1px solid #e8e8e8;
    }

    .position-center {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        margin: auto;

    }

    .charge-status {
        display: inline-block;
        width: 80px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        background: #ddd;
        color: red;
    }

    .dis-span {
        color: 'rgb(153, 153, 153)'
    }

    .check-child {
        background: #8cc8ff;
        width: 250px;
        height: 42px;
        line-height: 42px;
        padding: 0 8px;
        border-radius: 4px
    }
}

// 医嘱信息
.case-information-page {
    .case-information-page {
        margin: 0;
    }

    .ant-tabs-bar {
        margin: 0;
    }

    .v-resize {
        height: 100%;
        width: 6px;
        position: absolute;
        background: rgba(240, 242, 245, 1);
        left: 500px;
        z-index: 2;
        cursor: col-resize;
        user-select: none;
    }

    .table-body {
        .ant-table-body {
            height: 1000px;
        }

        .ant-table-placeholder {
            height: 85%;
        }
    }

    .case-information-drawer {
        .ant-drawer-header {
            padding: 6px 24px;

            .ant-drawer-close {
                height: 36px;
                line-height: 36px;
            }
        }

        .ant-drawer-body {
            padding: 6px;
        }
    }
}

.madal-body-height {
    .ant-modal-body {
        min-height: 300px;
    }

    .ant-table-body {
        height: 1000px;
    }
}

// 范例病历弹窗样式

// 病例浏览
.case-preview {
    .ant-table-body {
        height: 1000px;
    }
}

.charge-status-check {
    width: 85px;
    // height          : 40px;
    background-image: url('../image/patient.png');
    background-repeat: no-repeat;
    background-position: -10px -110px;
}

.charge-status-uncheck {
    width: 85px;
    // height          : 40px;
    background-image: url('../image/patient.png');
    background-repeat: no-repeat;
    background-position: -10px -180px;
}

.application-reload {
    width: 20px;
    height: 20px;
    background-image: url('../image/patient.png');
    background-repeat: no-repeat;
    background-position: -84px -80px;
}

.check-child-spans {
    margin: 5px 5px;
    line-height: 35px;
    padding-left: 8px;
    border-radius: 4px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    border: 1px solid #e8e8e8;
}

.application-card-title {
    .ant-card-head {
        min-height: 25px;
        padding: 0px;
    }

    .ant-card-head-title {
        padding: 5px 0;
    }

    .ant-card-extra {
        padding: 0px;
    }
}

.application-btn {
    .ant-btn-sm {
        height: 32px;
    }
}

.application-chooce-box {
    width: 28px;
    height: 28px;
    background-image: url('../image/patient.png');
    background-repeat: no-repeat;
    background-position: -1px -253px;
}

#application-shadow {
    -moz-box-shadow: 2px 2px 5px #999999;
    -webkit-box-shadow: 2px 2px 5px #999999;
    box-shadow: 2px 2px 5px #999999;
}

.StepsHotal {
    .ant-steps-item-content {
        width: 180px !important;
    }

    .StepSpan {
        font-size: 12px;
        margin-top: 10px;

        .StepBox {

            font-size: 12px;
            padding: 2px 3px;
            margin-right: 10px;

            &.active {
                border: 1px solid #FF6600;
                color: #FF6600;
            }
        }
    }

    .through {
        .ant-steps-item-title {
            text-decoration: line-through !important;
        }
    }
}

// 住院病历信息
.case-information-page-hospital,
.case-information-page-tabs {
    .ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {
        left: 0 !important;
    }

    .ant-steps-dot .ant-steps-item-process .ant-steps-item-icon .ant-steps-icon-dot,
    .ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-item-icon .ant-steps-icon-dot {
        top: 0 !important;
    }

    .contextMenu-wrap {
        z-index: 100;
        position: fixed;
        background: linear-gradient(to right, #c6c7cf, #f0f0f0);
        box-shadow: 0px 2px 5px #999999;
        border-radius: 4px;
        padding-top: 5px;

        .contextMenu-option {
            padding: 0px 50px 2px 15px;
            min-width: 160px;
            cursor: default;
            font-size: 14px;
            color: rgba(0, 0, 0, 0.65);
            line-height: 1.5;

            &:hover {
                background: #388bfe;
                color: white;
            }

            &:active {
                color: #b5b7be;
                background: linear-gradient(to top, #555, #444);
            }
        }

        .contextMenu-separator {
            width: 100%;
            height: 1px;
            background: #b5b7be;
            margin: 2px 0;
        }
    }

    .step-active-color>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title {
        color: #40a9ff;
    }

    .StepsHotal .ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #h_resize_container .ant-spin-nested-loading,
    #h_resize_container .ant-spin-nested-loading .ant-spin-container {
        height: 100%;
    }

    .record-tabs .ant-tabs-content {
        height: calc(~"100% - 40px") !important;
    }

    .record-tabs .ant-tabs-content.ant-tabs-content-no-animated.ant-tabs-top-content.ant-tabs-card-content,
    .record-tabs .ant-tabs-content .ant-tabs-tabpane {
        height: 100%;
    }

    // tabs的选中字体样式
    .record-tabs .ant-tabs-card-bar .ant-tabs-tab-active {
        color: #1890ff !important;
    }

    .cipt-vital-signs {
        padding: 12px;
        padding-right: 0;

        .ant-collapse .ant-collapse-item .ant-collapse-header {
            padding-left: 12px;
        }

        // .ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content {
        //     background-color: #fff;
        // }
    }
}