@import url("antd/dist/reset.css");

* {
    font-family: "Microsoft YaHei", Yahei, "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, "Hiragino Sans GB", sans-serif;
}

a {
    // Remove antd pre-set color & animation
    transition: none;
    color: inherit;
    text-decoration: none;

    &:hover {
        color: inherit;
    }

    &:active,
    &:link,
    &:visited {
        text-decoration: none;
    }
}

h1,
h2,
h3,
h4,
h5,
p {
    color: inherit;
    padding: 0;
    margin: 0;
}

em {
    color: #1e90ff;
    font-style: normal;
}

pre {
    margin: 0;

    em {
        margin: 0 2px;
    }
}

del,
del * {
    // Without *, tags inside <del> is not deleted (e.g: <del>100.<small>1234</small></del>)
    text-decoration: line-through;

    &::before,
    &::after {
        content: "\00a0"; /* Make line-through looks longer */
    }
}

button {
    border: none;
    outline: none;
    background-color: transparent;
    padding: 0;
    color: inherit;

    &:disabled {
        cursor: not-allowed;
    }

    &:not(:disabled) {
        &:hover {
            cursor: pointer;
            opacity: 0.82;
        }
    }
}

.ant-select {
    // Override ant-select element
    > span:first-child {
        display: none !important;
    }
}

.ant-radio-group .ant-radio-wrapper,
.ant-checkbox-group .ant-checkbox-wrapper,
.ant-checkbox-group.ant-checkbox-group {
    line-height: unset; // Use parent line height for vertical centering
}

::placeholder {
    color: #ccc;
}

// antd date range picker needConfirm={true} will trigger double focus on the start range panel
// hide the button by css
.ant-picker-dropdown.ant-picker-dropdown-range {
    .ant-picker-footer {
        display: none;
    }
}
