/** PWA **/
.pwa {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.pwa ion-header ion-toolbar {
    padding-top: 0 !important;
}

/** fonts **/
@font-face {
    font-family: 'MiSans';
    src: url('/assets/fonts/MiSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MiSans';
    src: url('/assets/fonts/MiSans-Demibold.woff2') format('woff2');
    font-weight: 600; /* Demibold 一般用较重的字体权重 */
    font-style: normal;
}

html, body {
    --ion-font-family: 'MiSans', sans-serif;
}

/** blinker theme **/
::-webkit-scrollbar {
    display: none;
}

:focus {
    outline: 0;
}

ion-content {
    --background: #f5f5f5;
}

ion-content[whitebg] {
    --background: #fff;
}

ion-content[padding] {
    --padding-start: 15px;
    --padding-end: 15px;
    --padding-top: 15px;
}

ion-header {
    --background: transparent;
    --border: none;

    ion-toolbar {
        --background: #389bee;
        --color: #fff;
        --border-width: 0 !important;

        ion-buttons {
            ion-back-button {
                --color: #fff;
                padding-right: 20px;
            }

            ion-button {
                --color: #fff;
                font-size: 12px;
            }
        }
    }
}

ion-header[whitebg] {
    ion-toolbar {
        --background: #fff;
        --border-width: 0;

        ion-buttons {
            ion-back-button {
                --color: #959595;

                ion-icon {
                    --color: #959595;
                }
            }

            i {
                font-size: 1.6rem;
                color: #4d4d4d;
            }
        }

        ion-title {
            --color: #595959;
        }
    }
}

ion-footer {
    ion-toolbar {
        --background: #f5f5f5;
        --min-height: 60px;
    }
}

ion-toast {
    --box-shadow: 0 0 5px #999;
    --border-radius: 8px;
}

[background] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

[device-bg] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

[device-box] {
    position: relative;
}

input {
    border: none;
    outline: medium;
    background-color: transparent;
}

button {
    outline: medium;
    background-color: transparent;
}

[fullbtn] {
    outline: medium;
    width: 100%;
    height: 44px;
    font-size: 19px;
    background-color: #009ee8;
    border-radius: 22px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

[textcenter] {
    text-align: center;
}

[textcenter-temp] {
    text-align: center;
    color: #959595;
    font-size: 14px;
    margin-top: 15px;
}

.modalTransparent {
    --background: transparent;
}

ion-modal {
    --background: transparent;
}

[warning] {
    color: #f00000;
}

[redpoint] {
    background: #f00000;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    position: absolute;
}

.h-line10 {
    border-bottom: 1px solid #d8d8d8;
    margin: 10px 0 10px 0;
}

[selectable] {
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    user-select: all;
}

[markdown] {
    h1 {
        font-size: 16px;
        color: #000;
    }

    h2 {
        font-size: 15px;
        color: #000;
    }

    h3 {
        font-size: 14px;
        color: #000;
    }

    p {
        font-size: 14px;
        line-height: 22px;
        color: #333;
        margin-bottom: 5px;
    }

    hr {
        border: 0;
        background-color: #d8d8d8;
    }

    ol {
        li {
            font-size: 13px;
            line-height: 20px;
            color: #333;
        }
    }
}

.alert-wrapper {
    bottom: 50vh;
    position: absolute;
}

.scannerMode {
    background: transparent !important;
}

.scanner {
    background-image: url(/assets/img/scanner.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
}

// 旋转icon图标
i.r45 {
    transform: rotate(45deg);
}

i.r135 {
    transform: rotate(135deg);
}

i.r225 {
    transform: rotate(225deg);
}

i.r315 {
    transform: rotate(315deg);
}

[link-text] {
    color: var(--ion-color-primary);
}

.top-box {
    padding: 15px;
    font-size: 12px;
}

.blinker-box {
    padding: 10px 15px;
    box-shadow: 0 0 10px #ccc;
    border-radius: 8px;
    background-color: #fff;
}

.bottom-box {
    position: absolute;
    bottom: 0;
    width: 100vw;
    font-size: 14px;

    .item-list-box {
        padding-bottom: 5px !important;
    }
}

.ccenter{
    display: flex;
    justify-content: center;
    align-items: center;
}