.userLayout {
    overflow: hidden;
}

.ant-menu-inline {
    border: none !important;
}

.main > .ant-card {
    border-radius: 8px;
}

.main > .ant-card .ant-card-body {
    padding: 16px;
}

/*滚动条*/
.ant-layout-sider-children {
    overflow-x: visible;
}

.ant-menu-inline .ant-menu-item::after {
    left: 0;
    right: unset;
}

/*对弹层，下拉选等#app外的dom设置样式*/
.ant-modal-wrap {
    overflow: hidden;
}

.j-modal-box .ant-modal {
    padding-bottom: 0;
}

.ant-modal .ant-modal-header {
    padding: 10px 24px;
}

.ant-modal .ant-modal-title {
    font-size: 15px;
}

.ant-modal .ant-modal-close {
    top: 0;
}

.ant-modal .ant-modal-close-x {
    width: 41px;
    height: 41px;
    line-height: 41px;
}

.ant-modal .ant-modal-content {
    height: 100%;
}

.ant-modal .ant-modal-content .ant-modal-body {
    height: calc(100% - 96px);
    max-height: 77vh;
    overflow: auto;
}

.ant-modal .ant-modal-content {
    padding: 0
}

.ant-select-dropdown-menu {
    max-height: 170px;
}

.ant-modal-root:not(.ant-modal-confirm) .ant-modal-body {
    min-height: 320px;
}

/*表单样式*/
.ant-form-item,
.ant-form-inline .ant-form-item {
    margin-bottom: 15px;
}

.ant-form-inline .ant-form-item .ant-form-row {
    display: flex;
}

.ant-form-item .ant-form-item {
    margin-bottom: 0;
}

.ant-form:not(.ant-form-small) .ant-form-item-label,
.ant-form:not(.ant-form-small) .ant-form-item-control {
    line-height: 32px;
}

.ant-form-item .ant-form-item-control-input {
    min-height: 0;
    display: block;
}

.ant-form-small .ant-form-item-label,
.ant-form-small .ant-form-item-control {
    height: 24px;
    line-height: 24px;
}


.ant-upload.ant-upload-select-picture-card {
    margin-bottom: 0;
}

.ant-form-item-map {
    height: 200px;
    border: 1px solid #d9d9d9;
    overflow: hidden;
}

.ant-form-inline .ant-select:not(.ant-pagination-options-size-changer) {
    min-width: 183px;
}

.ant-descriptions-bordered .ant-descriptions-item-label,
.ant-descriptions-bordered .ant-descriptions-item-content {
    padding-top: 8px;
    padding-bottom: 8px;
}

.ant-descriptions .ant-descriptions-header {
    margin: 0;
}

/*表格样式--2024.1.29谷歌升级后样式调整*/
.ant-table-header.ant-table-hide-scrollbar {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    padding-right: 8px;
}

.ant-dropdown-menu {
    padding: 5px 0;
}

.dark .ant-table-header, .dark .ant-table-header.ant-table-hide-scrollbar::after {
    background-color: #5b5c5f !important;
}

.ant-table-header, .ant-table-header.ant-table-hide-scrollbar::after {
    background-color: #f6f6f6 !important;
}

.ant-table-header.ant-table-hide-scrollbar::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 100%;
    top: 0px;
    right: 0px;
}

.ant-table-bordered.ant-table-empty .ant-table-container .ant-table-placeholder {
    border: none;
}

.ant-table.ant-table-fixed-column .ant-table-header colgroup col:last-child {
    width: 9px!important;
}

@-moz-document url-prefix() {
    /* 火狐浏览器特有样式写在这里 */
    .ant-table-header.ant-table-hide-scrollbar {
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        padding-right: 0px !important;
    }
    .ant-table-header.ant-table-hide-scrollbar::after {
        content: "";
    }
}

.ant-table-fixed-header .ant-table-scroll .ant-table-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ant-table-bordered.ant-table-fixed-header .ant-table-scroll .ant-table-header.ant-table-hide-scrollbar .ant-table-thead > tr:only-child > th:last-child {
    border-right-color: #e8e8e8;
}

.dark .ant-table-bordered.ant-table-fixed-header .ant-table-scroll .ant-table-header.ant-table-hide-scrollbar .ant-table-thead > tr:only-child > th:last-child {
    border-right-color: #5b5c5f;
}

/*树结构*/
.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected {
    background: none
}

.ant-table-wrapper .ant-table-cell-scrollbar:not([rowspan]) {
    box-shadow: none;
}

.ant-table-row td span .ant-switch,
.ant-table-row td:last-child .ant-switch {
    margin-left: 8px;
    margin-right: 8px;
}

.ant-table-row td span a,
.ant-table-row td:last-child a {
    padding-left: 8px;
    padding-right: 8px;
    position: relative;
}

.ant-table-row td span button {
    margin-left: 8px;
    margin-right: 8px;
}

.ant-table-row td span a + a:before,
.ant-table-row td span button + a:before,
.ant-table-row td span span + a:before {
    content: '';
    position: absolute;
    width: 1px;
    background: #e8e8e8;
    height: 14px;
    left: -1px;
    top: 3px;
}

.ant-table-row td .ant-divider {
    margin: 0;
}

/*弹窗样式*/
@media (max-width: 1400px) {
    .ant-modal {
        top: 50px
    }
}

/*标签*/
.ant-tag:hover {
    opacity: 1;
}

/*highcharts*/
/*在组件内部给颜色赋值下载文件时会和底色冲突，所以改为css写法*/
.highcharts-button-box {
    fill: transparent;
}

/*富文本编辑器*/
.ql-snow .ql-picker-label::before {
    vertical-align: top;
    line-height: 28px;
}

.ql-snow .ql-color-picker .ql-picker-label svg,
.ql-snow .ql-icon-picker .ql-picker-label svg {
    vertical-align: 5px;
}

.ant-input-number {
    width: 100%;
}

.ant-input-number .ant-input-number-input {
    vertical-align: unset;
}

.ant-input::-webkit-input-placeholder {
    color: #d3d3d3;
}

.ant-switch .ant-switch-handle {
    display: none
}

.ant-switch .ant-switch-inner {
    padding: 0 !important;
    border-radius: 0;
}

.ant-switch.ant-switch-small .ant-switch-inner .ant-switch-inner-unchecked,
.ant-switch .ant-switch-inner .ant-switch-inner-unchecked {
    margin: 0
}

.ant-switch:not(.ant-switch-checked) .ant-switch-inner .ant-switch-inner-checked,
.ant-switch.ant-switch-checked .ant-switch-inner .ant-switch-inner-unchecked {
    display: none
}

.ant-switch,
.ant-switch::after,
.ant-switch .ant-switch-inner,
.ant-switch .ant-switch-inner .ant-switch-inner-checked,
.ant-switch .ant-switch-inner .ant-switch-inner-unchecked {
    transition: none !important;
}

.ant-switch-small .ant-switch-inner .ant-switch-inner-checked,
.ant-switch-small .ant-switch-inner .ant-switch-inner-unchecked {
    line-height: 14px
}

.ant-message {
    left: 50%;
    transform: translateX(-50%);
}

.ant-popover .ant-popover-content {
    position: static;
}

.ant-popover .ant-popover-arrow {
    width: 8.48528137px;
    height: 8.48528137px;
}

.ant-popover-placement-top .ant-popover-arrow,
.ant-popover-placement-topLeft .ant-popover-arrow,
.ant-popover-placement-topRight .ant-popover-arrow {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.ant-popover .ant-popover-arrow::before,
.ant-popover .ant-popover-arrow::after {
    display: none;
}

.ant-btn {
    line-height: 1.5714285714285714;
}
