/**
 * global CSS
 */

/* ========= reset ========= */
body, p, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, form, fieldset, legend, input, select, textarea, button, th, td, pre {
    margin: 0;
    padding: 0;
    user-select: text;
    -webkit-user-select: text;
}

body, button, input, select, textarea {
    font: 12px/1.5 "Microsoft Yahei", Verdana, Tahoma;
}

ul, dl, ol {
    list-style: none;
}

h1 {
    font-size: 18px;
}

h2 {
    font-size: 16px;
}

h3 {
    font-size: 14px;
}

h4, h5, h6 {
    font-size: 100%;
}

address, cite, dfn, em, var, i {
    font-style: normal;
}

a {
    text-decoration: none;
}

a.td-u:hover {
    text-decoration: underline;
}

a img {
    border: 0;
}

button, input, select, textarea, label {
    font-size: 100%;
    vertical-align: middle;
    outline: none;
}

input[type='submit'], input[type='button'], button {
    cursor: pointer;
}

textarea {
    resize: none;
    overflow: auto;
}

select {
    padding: 1px;
}

select + select {
    margin-left: 1px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* ========= common class ========= */
.dp-n {
    display: none;
}

.dp-b {
    display: block;
}

.dp-ib {
    display: inline-block;
}

.f-l {
    float: left
}

.f-r {
    float: right
}

.pt-r {
    position: relative;
}

.pt-a {
    position: absolute;
}

.ta-l {
    text-align: left;
}

.ta-c {
    text-align: center;
}

.ta-r {
    text-align: right;
}

.va-m {
    vertical-align: middle;
}

.va-s {
    vertical-align: sub;
}

.of-h {
    overflow: hidden;
}

.fw-b {
    font-weight: bold;
}

.fw-n {
    font-weight: normal;
}

.fs-12 {
    font-size: 12px;
}

.fs-14 {
    font-size: 14px;
}

.fs-16 {
    font-size: 16px;
}

.fs-18 {
    font-size: 18px;
}

.fs-20 {
    font-size: 20px;
}

.fs-22 {
    font-size: 22px;
}

.ff-s {
    font-family: "simsun";
}

.ff-y {
    font-family: "Microsoft Yahei";
}

.ff-v {
    font-family: Verdana;
}

.lh-20 {
    line-height: 20px;
}

.lh-22 {
    line-height: 22px;
}

.lh-24 {
    line-height: 24px;
}

.pd-0 {
    padding: 0;
}

.mr-0 {
    margin: 0;
}

.bgc-t {
    background-color: transparent;
}

.bgc-w {
    background-color: white;
}

.cf-o {
    overflow: hidden;
    _zoom: 1;
}

.cf-a:after {
    display: block;
    clear: both;
    content: "";
    visibility: hidden;
    height: 0;
}

.cf-a {
    *zoom: 1;
}

.cf-c {
    clear: both;
    line-height: 0;
    font-size: 0;
}

.c-p {
    cursor: pointer
}

.b-0 {
    border: 0;
}

.ol-n {
    outline: none;
}

.to-e {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* scrollbar */
.scrollbar::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

.scrollbar::-webkit-scrollbar-track-piece {
    border-left: 1px solid #fff;
}

.scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-left: 1px solid #fff;
}

/* ========= common style ========= */
.text-gray {
    color: gray !important;
}
.text-red {
    color: red !important;
}
.text-green {
    color: green !important;
}

#attrs_list .attrs-item {
    margin-bottom: 1px;
}

input[type=file][preview] {
    position: relative;
    border-radius: 2px;
    border: 1px solid #767676;
    background-color: #fff;
    box-sizing: border-box;
}
input[type=file][preview]:focus {
    outline: none;
}

input[type=file][preview]:after {
    display: inline-block;
    cursor: pointer;
    content: '';
    width: 18px;
    height: 18px;
    border: 1px solid #fff;
    position: absolute;
    right: 0;
    top: 0;
    background-color: #fff;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: var(--input-file-preview-image);
}

input[type=file][preview]::-webkit-file-upload-button {
    border-radius: 2px;
    border: 0;
    margin: 1px;
    display: inline-block;
    box-sizing: border-box;
    height: 18px;
    line-height: 18px;
    background-color: #eee;

}

.loading-placeholder {
    display: inline-block;
    background: url(../image/loading.gif) no-repeat center center;
    background-size: cover;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.download-arrow {
    display: inline-block;
    background: url(../image/download_arrow.gif) no-repeat center center;
    background-size: cover;
    vertical-align: middle;
}

.tips {
    text-align: left;
    border-width: 1px;
    border-style: solid;
    background-repeat: no-repeat;
}

.tips.inline {
    display: inline-block;
    background-size: 16px 16px;
    background-position: 4px center;
    height: 26px;
    box-sizing: border-box;
    border-radius: 3px;
    line-height: 24px;
    font-size: 12px;
    padding: 0 8px 0 24px;
    margin: 1px;
    vertical-align: middle;
}
.tips.block {
    display: block;
    background-size: 32px 32px;
    background-position: 6px center;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    padding: 0 8px 0 48px;
    margin: 1px;
}

.tips.info {
    background-image: url('../image/info.png');
    background-color: #ecf3fd;
    border-color: #aacbf9;
    color: #5887b8;
}

.tips.success {
    background-image: url('../image/success.png');
    background-color: #fbfff8;
    border-color: #a0e857;
    color: #67c10d;
}

.tips.error {
    background-image: url('../image/error.png');
    background-color: #fff2ef;
    border-color: #fd8080;
    color: #cf3117;
}

.tips.warning {
    background-image: url('../image/warning.png');
    background-color: #fff6ec;
    border-color: #ffb965;
    color: #eb8915;
}

.tips.help {
    background-image: url('../image/help.png');
    background-color: #ecf3fd;
    border-color: #aacbf9;
    color: #5887b8;
    cursor: help;
}