/* stylelint-disable scss/dollar-variable-pattern */
$zIndex: 10000;
/* stylelint-enable scss/dollar-variable-pattern */

// 重写被antd样式覆盖的base-ui
button {
    font-size: 11px;
}

.b-table {
    td {
        box-sizing: unset;
    }
}

a:focus {
    text-decoration: none;
}

.b-toast {
    z-index: $zIndex + 1;
}

// 重写被base-ui样式覆盖的antd
.ant-message {
    z-index: $zIndex + 1;
}

.ant-modal {
    &-mask,
    &-wrap {
        z-index: $zIndex;
    }

    &-mask.fade-leave-active {
        height: unset;
    }
}

.ant-modal-close:hover {
    background-color: transparent;
}

.ant-select-dropdown {
    z-index: $zIndex;
}

input.ant-input {
    padding: 4px 11px;
    width: auto;
    height: 32px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;

    &:focus {
        border-color: #40a9ff;
    }
}

.ant-calendar-picker-container {
    z-index: $zIndex;
}

.yqg-simple-form {
    input[type="text"]:disabled,
    input[type="password"]:disabled,
    input[type="number"]:disabled,
    input[type="tel"]:disabled,
    input[type="email"]:disabled,
    input[type="file"]:disabled {
        background: #f5f5f5;
        border: 1px solid #d9d9d9 !important;
    }
}
