/* ========== generic ========== */

* {
    font-family: 'segeo ui', 'microsoft yahei', 'pingfang sc', arial, helvetica, sans-serif;
    word-break: break-all;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-appearance: none;
}

*:focus {
    outline: none;
}

*::-webkit-input-placeholder {
    color: #bfbfbf;
}

body {
    margin: 0px;
    background-position: top center;
    background-color: transparent;
}

iframe {
    border-style: none;
}

div {
    display: block;
}

a {
    text-decoration: none;
    cursor: pointer;
}

img {
    border-width: 0px;
}

form {
    border-spacing: 0px;
}

table {
    border-width: 0px;
    border-spacing: 0px;
    border-collapse: collapse;
}

td {
    border-width: 0px;
    padding: 0px;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

input {
    font-size: 14px;
    color: black;
}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: #bfbfbf;
}

input:-moz-placeholder, textarea:-moz-placeholder {
    color: #bfbfbf;
}

input::-moz-placeholder, textarea::-moz-placeholder {
    color: #bfbfbf;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #bfbfbf;
}

select {
    font-size: 14px;
    color: black;
}

button {
    background-color: #dfdfdf;
    border-width: 0px;
    font-size: 14px;
    height: 30px;
    padding: 0px 10px;
    cursor: pointer;
    user-select: none;
}

/* ========== custom ========== */

@font-face {
    font-family: 'mdl2';
    src: url('/common/mdl2/mdl2.eot');
    src: url('/common/mdl2/mdl2.woff') format('woff'), url('/common/mdl2/mdl2.svg') format('svg'), url('/common/mdl2/mdl2.ttf') format('truetype');
}

.mdl2, .mdl2 *, [mdl2], [mdl2] * {
    font-family: 'mdl2', sans-serif !important;
    font-style: normal;
}

.code, .code * {
    font-family: consolas, menlo, 'courier new', 'microsoft yahei', 'pingfang sc', sans-serif;
}

.ellipsis, .ellipsis1 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ellipsis2 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ellipsis3 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.touchscroll {
    -webkit-overflow-scrolling: touch;
    overflow: auto;
}

/* ========== loading ========== */

.global-loading {
    display: none;
    position: fixed;
    z-index: 60000000;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    /* backdrop-filter: blur(1px); */
}

.global-loading div:nth-child(1) {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 150px;
    width: 150px;
    margin-top: -100px;
    margin-left: -75px;
    -moz-border-radius: 50% 50% 50% 50%;
    -webkit-border-radius: 50% 50% 50% 50%;
    border-radius: 50% 50% 50% 50%;
}

.global-loading div:nth-child(1) span {
    display: block;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    -moz-border-radius: 50% 50% 50% 50%;
    -webkit-border-radius: 50% 50% 50% 50%;
    border-radius: 50% 50% 50% 50%;
    -webkit-animation: global-loading 0.8s infinite;
    animation: global-loading 0.8s infinite;
}

.global-loading div:nth-child(1) span:nth-child(1) {
    top: 19px;
    left: 19px;
}

.global-loading div:nth-child(1) span:nth-child(2) {
    top: 0px;
    left: 65px;
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.global-loading div:nth-child(1) span:nth-child(3) {
    top: 19px;
    left: 111px;
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.global-loading div:nth-child(1) span:nth-child(4) {
    top: 65px;
    left: 130px;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.global-loading div:nth-child(1) span:nth-child(5) {
    top: 111px;
    left: 111px;
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.global-loading div:nth-child(1) span:nth-child(6) {
    top: 130px;
    left: 65px;
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.global-loading div:nth-child(1) span:nth-child(7) {
    top: 111px;
    left: 19px;
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.global-loading div:nth-child(1) span:nth-child(8) {
    top: 65px;
    left: 0px;
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.global-loading div:nth-child(2) {
    display: none;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 50%;
    height: 40px;
    margin-top: 60px;
    line-height: 40px;
    font-size: 16px;
    text-align: center;
    color: gray;
}

@-webkit-keyframes global-loading {
    25% {
        -ms-transform: scale(1.5);
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
    }

    75% {
        -ms-transform: scale(0);
        -webkit-transform: scale(0);
        transform: scale(0);
    }
}

@keyframes global-loading {
    50% {
        -ms-transform: scale(1.5, 1.5);
        -webkit-transform: scale(1.5, 1.5);
        transform: scale(1.5, 1.5);
    }

    100% {
        -ms-transform: scale(1, 1);
        -webkit-transform: scale(1, 1);
        transform: scale(1, 1);
    }
}

/* ========== button ========== */

.global-button {
    display: inline-block;
    vertical-align: top;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    padding: 0px 12px;
    border-radius: 5px;
    user-select: none;
    color: black;
    background-color: rgba(0, 0, 0, 0.05);
}

.global-button:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

.global-button:active {
    color: black;
    background-color: rgba(0, 0, 0, 0.1);
}

/* ========== toggle ========== */

.global-toggle {
    display: inline-block;
    vertical-align: top;
    position: relative;
    height: 30px;
    width: 50px;
}

.global-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    height: 20px;
    margin-top: -10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease-in-out;
}

.global-toggle::after {
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.15s ease-in-out;
    transform: scale(0.8);
}

.global-toggle:hover::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.global-toggle:hover::after {
    transform: scale(1);
}

.global-toggle.enabled::before, .global-toggle[enabled]::before {
    background-color: steelblue;
}

.global-toggle.enabled::after, .global-toggle[enabled]::after {
    left: calc(100% - 18px);
}

/* ========== checkbox ========== */

.global-checkbox {
    display: inline-block;
    vertical-align: top;
    position: relative;
    padding: 0px 10px 0px 40px;
    line-height: 30px;
    font-size: 14px;
    cursor: default;
    user-select: none;
    color: white;
}

.global-checkbox::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

.global-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 10px;
    height: 5px;
    margin-top: -5px;
    border-width: 0px 0px 2px 2px;
    border-style: solid;
    border-color: white;
    transform: rotate(-45deg) scale(0);
    transition: all 0.1s ease-in;
}

.global-checkbox.enabled::before, .global-checkbox[enabled]::before {
    background-color: #6dc5be;
}

.global-checkbox.enabled::after, .global-checkbox[enabled]::after {
    transform: rotate(-45deg) scale(1);
}

/* ========== radios ========== */

.global-radios {
    display: inline-block;
    vertical-align: top;
    min-height: 30px;
    user-select: none;
    overflow: hidden;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0px;
}

.global-radios span {
    display: inline-block;
    vertical-align: top;
    padding: 0px 10px;
    line-height: 30px;
    min-height: 30px;
    font-size: 14px;
    color: white;
}

.global-radios span:nth-child(1n+2) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.global-radios span:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.global-radios span.selected, .global-radios span[selected] {
    background-color: #6dc5be;
}

/* ========== input ========== */

.global-input {
    width: 100%;
    height: 30px;
    font-size: 14px;
    padding: 0px 10px;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.05);
    color: black;
}

.global-input:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

.global-input:focus {
    background-color: lightgoldenrodyellow;
}

/* ========== textarea ========== */

.global-textarea {
    box-sizing: border-box;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 20px;
    min-height: 30px;
    width: 100%;
    resize: none;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

/* ==========  ========== */