* {
    font-family: 'SourceHanSansCN, SourceHanSansCN';
}

/* Safari */
@media screen and (-webkit-min-device-pixel-ratio:0)
{
  * {
    margin: 0;
    padding: 0;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
  }
  #password {
    &::placeholder {
      font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    }
  }
}

body {
    margin: 0;
    height: 100%;
    zoom: unset !important;
}




.bms-ant-space-item {
    &>a {
        color: #3377FF !important;
    }
}



textarea {
    border-radius: 4px !important;
    border: 1px solid #CFD7E6 !important;
}

.bms-ant-btn-primary {
    background: #3377FF;
}
.bms-ant-btn-primary[disabled]{
    background:#f5f5f5 ;
}

.bms-ant-checkbox {
    &.bms-ant-checkbox-checked {
          .bms-ant-checkbox-inner {
            background-color:#3377FF;
            background: #3377FF;
          }
    }
    // &.bms-ant-checkbox-indeterminate {
    //     &.bms-ant-checkbox-inner {
    //         &::after {
    //             background-color:#3377FF !important;
    //         }
    //     }
    // }
}

.bms-ant-checkbox-indeterminate .bms-ant-checkbox-inner::after {
    background-color:#3377FF;
}

.bms-ant-input-affix-wrapper {
    border-radius: 4px !important;
}

.bms-ant-input {
    border-radius: 4px;
    // border: 1px solid #CFD7E6 !important;
    &::placeholder {
        color: #99A6BF !important;
    }
}

.bms-ant-table-cell {
    a {
        color: #3376FE !important;
        &>span {
            color: #3376FE !important;
        }
    }
}

.bms-ant-input-number {
    border-radius: 4px !important;
}






//Modal

.bms-ant-modal {
    .bms-ant-modal-content {
        padding: 16px !important;
        border-radius: 4px !important;
        .bms-ant-modal-header {
             padding: 0 ;
             margin-bottom: 16px;
             border-bottom: none;
        }
        .bms-ant-modal-body {
            max-height: 90vh;
            // overflow-y: scroll;
            overflow-x: hidden;
            padding: 0;

            .bms-ant-modal-confirm-body-wrapper {
                .bms-ant-modal-confirm-body {
                    .bms-ant-modal-confirm-title {
                        font-size: 16px;
                        height:18px;
                      
                    }
                    .bms-ant-modal-confirm-content {
                        max-width: 100% !important;
                        max-height: calc(90vh - 72px);
                        overflow-y: scroll;
                        overflow-x: hidden;
                        margin-block-start:16px;

                        .TableTransfer {
                            .bms-ant-transfer-operation {
                                //   align-self: self-end;
                                //   margin-bottom: 30px;

                                button {
                                    //color: #17181A;
                                    width: 24px;
                                    height: 40px !important;
                                    // background: #FAFCFF;
                                    border-radius: 4px;
                                    border: 1px solid #DAE2F2;
                                }
                            }

                            .bms-ant-transfer-list {
                                overflow: hidden;
                                border: 1px solid #DAE2F2;

                                .bms-ant-transfer-list-header {
                                    height: 32px;
                                    font-size: 12px;
                                    border-bottom: 1px solid #DAE2F2;

                                    .anticon {
                                        color: #99A6BF;
                                    }

                                    .bms-ant-transfer-list-header-selected {
                                        color: #515866;
                                    }
                                }

                                .bms-ant-transfer-list-body {
                                    .bms-ant-transfer-list-body-search-wrapper {
                                        padding: 8px;

                                        .bms-ant-input-prefix {
                                            .anticon-search {
                                                color: #99A6BF;
                                            }
                                        }
                                    }

                                    .bms-ant-transfer-list-body-customize-wrapper {
                                        .BMSTable {
                                            border: none !important;
                                            border-radius: 0 !important;
                                        }
                                    }
                                }
                            }



                            .bms-ant-table {
                                .bms-ant-table-container {
                                    .bms-ant-table-content {
                                        .bms-ant-table-thead {

                                            &>tr>th {
                                                font-size: 14px;
                                                font-family: SourceHanSansCN-Medium, SourceHanSansCN;
                                                font-weight: 500;
                                                color: #17181A;
                                                background: #EEF3FA;
                                                border-radius: 0 !important;
                                                padding: 4px 8px !important;
                                                border-bottom: none;
                                            }

                                        }

                                        .bms-ant-table-tbody {
                                            &>tr>td {
                                                padding-left: 8px !important;
                                                padding-right: 8px !important;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                .bms-ant-modal-confirm-btns {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: flex-end;
                    margin-top: 16px;

                    &>button {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        padding: 0 14px;
                        height: 24px;
                        border-radius: 4px;

                        &.bms-ant-btn-default {
                            border: 1px solid #DAE2F2;
                            background-color: #FAFCFF;
                        }

                        &.bms-ant-btn-primary {
                            background-color: #3376FE;
                        }
                    }
                }
            }
        }
        .bms-ant-modal-footer {
            border-top: none;
            padding: 0;
            margin-top: 16px;
            .bms-ant-btn {
                 border-radius: 4px !important;
                 height: 24px !important;
                 padding: 0 14px !important;
            }
        }
    }

    .bms-ant-modal-footer {
        margin-top: 0;

        .bms-ant-space-item {
            &>button {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 0 14px;
                height: 24px;
                ;
                border-radius: 4px;

                &>span {}

                &.bms-ant-btn-default {
                    border: 1px solid #DAE2F2;
                    background-color: #FAFCFF;
                }

                &.bms-ant-btn-primary {
                    background-color: #3376FE;
                }
            }
        }
    }
}



//message

.bms-ant-message {
    .ant-message-notice-success {
        .bms-ant-message-notice-content {
            .anticon-check-circle {
                &>svg {
                    color: #52c41a;
                }
            }
        }
    }
}

//Form

.bms-ant-form {
    &.bms-ant-form-vertical {
        .bms-ant-form-item {
            margin-bottom: 16px;

            .bms-ant-form-item-label {
                padding: 0 !important;
                height: 15px;
                margin-bottom: 8px;
                line-height: 15px;
            }

            .bms-ant-form-item-control-input {
                min-height: 24px;
            }
        }
    }
}




// .bms-ant-form-item-label {
//     padding: 0;
//     //height: 15px;
//     line-height: 15px;
//     margin-bottom: 5px;

//     .bms-ant-form-item-required {
//       &::before {
//         margin-right: 0 !important;
//       }
//     }
// }

.bms-ant-input-affix-wrapper {
    padding: 0px 8px !important;
    border-radius: 4px;
    border: 1px solid #CFD7E6 !important;

    &>input {
        &::placeholder {
            font-size: 14px;
            font-family: SourceHanSansCN-Normal, SourceHanSansCN;
            font-weight: 400;
            color: #99A6BF;
        }
    }
}

.bms-ant-input-disabled {
    &::placeholder {
        color: #7A8599 !important;
    }
}

.bms-ant-input-affix-wrapper-disabled {
    background: #F0F2F5 !important;
}


// //proContsiner 标题样式覆盖
// .bms-ant-page-header .bms-ant-page-header-heading-title {
//      height: 17px !important;
//      font-size: 16px !important;
//      line-height: 17px !important;
// }

.bms-ant-page-header {
    .bms-ant-page-header-heading-title {
         font-size: 16px !important;
    }
}

.bms-ant-page-header .bms-ant-page-header-heading-left {
    margin-block: 0 !important;
}

.bms-ant-pro-sider-fixed {
    position: absolute !important;
}

.bms-ant-pro .bms-ant-pro-layout .bms-ant-pro-sider-fixed {
    position: absolute !important;
    // min-width:230px !important;
    // width: 230px !important;
}

//避免logo区域的层级过高，影响父容器
.bms-ant-pro .bms-ant-pro-layout .bms-ant-pro-sider-fixed {
    height: calc(100vh - 48px) !important;
    z-index: 0 !important;
}


.bms-ant-pro-base-menu .bms-ant-pro-base-menu-submenu-has-icon >.bms-ant-menu-sub {
    padding-inline-start:0 !important;
}

.bms-ant-pro-layout .bms-ant-pro-sider .bms-ant-layout-sider-children {
    padding-inline: 0 !important;
    &>div {
        padding-inline: 8px !important;
    }
}

.bms-ant-menu-sub.bms-ant-menu-inline {
    background: #fff !important;
}

.bms-ant-menu-item-selected {
    background-color:#F2F6FF !important;
    &::after {
        display: none !important;
    }
}
.bms-ant-menu-light:not(.bms-ant-menu-horizontal) .bms-ant-menu-item:not(.bms-ant-menu-item-selected):hover {
    background-color: #f0f2f5 !important;
}

.bms-ant-menu-light:not(.bms-ant-menu-horizontal) .bms-ant-menu-submenu-title:hover {
    background-color: #f0f2f5 !important;
}

.bms-ant-tree.bms-ant-tree-directory .bms-ant-tree-treenode:hover::before {
    background: #f0f2f5 !important;
    border-radius: 4px;
}

.BMS-EditableProTable {
    .bms-ant-pro-card-body {
        padding-inline: 0 !important;
        padding-block: 0 !important;

        .bms-ant-table {
            border: 1px solid #CFD7E6 !important;
            overflow: hidden;

            .bms-ant-table-content {
                .bms-ant-table-thead {
                    &>tr>th {

                        height: 15px;
                        line-height: 15px;
                        font-size: 14px;
                        padding: 12px 16px !important;
                        font-family: SourceHanSansCN-Medium, SourceHanSansCN;
                        // font-weight: 500;

                        color: #17181A;
                        border-bottom: 1px solid #CFD7E6 !important;
                        background: rgb(238 243 250 / 100%) !important;

                        &::before {
                            display: none !important;
                        }
                    }
                }

                .bms-ant-table-tbody {
                    .bms-ant-table-row {
                        .bms-ant-table-cell {

                            height: 15px;
                            line-height: 15px;
                            font-size: 14px;
                            font-family: SourceHanSansCN-Medium, SourceHanSansCN;
                            color: #17181A;
                            padding: 12px 16px !important;

                            &>div {
                                justify-content: flex-start !important;
                            }
                        }

                        &:last-child {
                            &>td {
                                border-bottom-color: none !important;
                            }
                        }
                    }
                }
            }
        }
    }
}



.bms-ant-table-wrapper {
    .bms-ant-table:not(.bms-ant-table-bordered) .bms-ant-table-tbody>tr.bms-ant-table-row.bms-ant-table-row-selected>td:first-child {
        border-radius: 0 !important;
    }

    .bms-ant-table-content {
        .bms-ant-table-thead {
            tr {
                &:last-child {
                    .bms-ant-table-cell {
                        // border-top: 1px solid #dae2f2;
                    }
                }
            }
        }
    }
}

.bms-ant-table-wrapper .bms-ant-table:not(.bms-ant-table-bordered) .bms-ant-table-tbody>tr.bms-ant-table-row:hover>td:first-child {
    border-start-start-radius: 0 !important;
    border-end-start-radius: 0 !important;
}

.bms-ant-table-wrapper .bms-ant-table:not(.bms-ant-table-bordered) .bms-ant-table-tbody>tr.bms-ant-table-row:last-child:hover>td {
    border-bottom-color: #dae2f2 !important;
}

.bms-ant-table-wrapper .bms-ant-table:not(.bms-ant-table-bordered) .bms-ant-table-tbody>tr.bms-ant-table-row:last-child>td {
    border-bottom-color: #dae2f2 !important;
}


.bms-ant-table-wrapper .bms-ant-table:not(.bms-ant-table-bordered) .bms-ant-table-tbody>tr.bms-ant-table-row:hover>td:last-child {
    border-end-end-radius: 0 !important;
    border-start-end-radius: 0 !important;
}


.bms-ant-pro .bms-ant-pro-layout .bms-ant-pro-layout-bg-list {
    background: #F7F9FC !important;
}

// .bms-ant-message-notice .bms-ant-message-success .anticon {
//     color: #52c41a !important;
// }
.ant-message-success {
    .anticon .anticon-check-circle {                                                                                                                                                                                                                                                                                                             
        color: #52c41a !important;
    }
}


/**
    Select
**/
.bms-ant-select {
    .bms-ant-select-selector {  
        height: 24px !important;
        padding: 0 8px !important;
        border-radius: 4px !important;
        border: 1px solid #CFD7E6 !important;

        .bms-ant-select-selection-item {
            line-height: 24px !important;
        }

        .bms-ant-select-selection-search-input {
            height: 24px !important;
        }

        .bms-ant-select-selection-placeholder {
            line-height: 22px !important;
            font-size: 14px;
            font-family: SourceHanSansCN-Normal, SourceHanSansCN;
            font-weight: 400;
            color: #99A6BF;
        }

        .bms-ant-select-selection-overflow {
            .bms-ant-select-selection-overflow-item {
                .bms-ant-select-selection-item {
                    height: 22px !important;
                    line-height: 22px !important;
                    margin-top: 0 !important;
                    margin-bottom: 7px !important;
                }
            }
        }
    }

    .bms-ant-select-arrow {
        color: #CFD7E6;
    }

    &.bms-ant-select-disabled {
        .bms-ant-select-selector {
            border: 1px solid #DADEE6 !important;

            .bms-ant-select-selection-placeholder {
                color: #7A8599;
            }
        }

        .bms-ant-select-arrow {
            color: #7A8599;
        }
    }
}





.bms-ant-tabs {
    .bms-ant-tabs-tab {
        padding: 5px 0 !important;
        padding-top: 12px !important;
    }
    .bms-ant-tabs-nav {
        &::before {
            border-bottom: none !important;
        }
    }
   
}



.bms-ant-table-wrapper {
    overflow: hidden;
}



.bms-ant-pro-layout .bms-ant-pro-layout-container {
    flex: 1;
    background: #F7F9FC !important;
    overflow-y: scroll;
}

.bms-ant-menu-inline {
    border-right: none !important;
}

//页面全局底色
.bms-ant-pro .bms-ant-pro-layout .bms-ant-pro-layout-bg-list {
    background: rgb(247 249 252 / 100%);
}

.bms-ant-pro-page-container-children-content {
    padding-inline: 0 !important;
}

.bms-ant-pro-sider-actions {
    display: none !important;
}


.bms-ant-pro-sider-collapsed-button {
    top: 95% !important;
    right: 17px !important;
}


.bms-ant-menu .bms-ant-menu-submenu-title .anticon {
    transition: none !important;
}

.bms-ant-menu .bms-ant-menu-item .anticon+span {
    transition: none !important;
}

.bms-ant-menu .bms-ant-menu-item .anticon {
    transition: none !important;
}

.bms-ant-menu .bms-ant-menu-item {
    transition: none !important;
    border-radius: 4px;
}

.bms-ant-menu .bms-ant-menu-submenu-title .anticon+span {
    transition: none !important;
}

.bms-ant-tabs .bms-ant-tabs-tab+.bms-ant-tabs-tab {
    margin: 0 0 0 24px !important;
}


.menuCollapseIcon {
    &>svg {
        width: 24px;
        height: 24px;
    }
}


.bms-ant-pro-form>div:not(.bms-ant-pro-form-light-filter) .pro-field-lg {
    width: 100% !important;
}

.bms-ant-select {
    .bms-ant-select-selector {
        border: 1px solid #CFD7E6 !important;
        // color: #99A6BF !important;

        .bms-ant-select-selection-placeholder {
            color: #99A6BF !important;
        }
    }

    .bms-ant-select-arrow {
        color: #99A6BF !important;
    }
}


.bms-ant-input-number-input {
    border-radius: 4px;
    &::placeholder {
        color: #99A6BF !important;
    }
}

.bms-ant-select-disabled {
    .bms-ant-select-selector {
        border: 1px solid #DADEE6 !important;
        background: #F0F2F5 !important;

        .bms-ant-select-selection-placeholder {
            color: #7A8599 !important;
        }
    }

    .bms-ant-select-arrow {
        color: #7A8599 !important;
    }
}



.bms-ant-input-number {
    border: 1px solid #CFD7E6 !important;
    // color: #99A6BF !important;
    border-radius: 4px;
    box-shadow: none !important;
    .bms-ant-input-number-input {
        height: 22px !important;
        line-height: 22px !important;
    }
}

.bms-ant-input-number-disabled {
    border: 1px solid #DADEE6 !important;
    background: #F0F2F5 !important;

    .bms-ant-input-number-input {
        color: #7A8599 !important;
    }
}

.bms-ant-input-affix-wrapper-disabled {
    border: 1px solid #DADEE6 !important;
}

.bms-ant-picker {
    border-radius: 4px !important;
    border: 1px solid #CFD7E6 !important;
    height: 24px;
    .bms-ant-picker-input {
        &>input {
             &::placeholder {
                color:#99A6BF !important;
             }
        }
        .bms-ant-picker-suffix {
            color:#99A6BF !important;
        }
    }
}

.bms-ant-picker-panel-container {
    .bms-ant-picker-panel {
        .bms-ant-picker-month-panel {
            .bms-ant-picker-body {
                .bms-ant-picker-content {
                    tr {
                        td {
                            &.bms-ant-picker-cell-selected {
                                .bms-ant-picker-cell-inner {
                                    background:#3377FF;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.bms-ant-picker-input>input[disabled] {
    color: #7A8599 !important;
}

.bms-ant-picker-disabled {
    background: #F0F2F5 !important;
    border: 1px solid #DADEE6 !important;

    .anticon-swap-right,
    .anticon-calendar {
        color: #7A8599 !important;
    }
}