﻿#__BODY {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: whitesmoke;
}

/* 次级页面顶部 */
#sub_header {
    width: calc(100vw - 20px);
    background-color: steelblue;
    z-index: 9999;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    #sub_header .tit {
        font-size: 0.45rem;
        font-weight: bold;
        color: white;
    }

    #sub_header .fa-chevron-left {
        margin-left: 5px;
        font-size: 0.5rem;
        color: white;
    }

    #sub_header .fa-times {
        margin-right: 5px;
        font-size: 0.6rem;
        color: white;
    }

/* 定义中间主体 */
#main {
    flex: 1;
    overflow-y: auto;
}

div {
    font-family: Helvetica;
    font-size: 0.40rem;
}

input {
    border: none;
    outline: none;
    font-size: 0.40rem;
    padding: 5px;
}

    /* 通用浏览器 */
    input::placeholder {
        color: silver;
    }

    /* Chrome, Opera, Safari */
    input::-webkit-input-placeholder {
        color: silver;
    }

    /* Firefox 4-18 */
    input::-moz-placeholder {
        color: silver;
    }

    /* Firefox 19+ */
    input:-moz-placeholder {
        color: silver;
    }

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }
/************************************* ErrMsgBox */
.box_err {
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: white;
    z-index: 999999999;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

    .box_err .back_home {
        background-color: steelblue;
        color: white;
        padding: 8px 10px;
        border-radius: 5px;
        width: 20vw;
    }
/************************************* PageMask */
div#__MaskOnly, div#__MaskPop, div#__MaskWait, div#__MaskToast,
div#__MaskMsg, div#__MaskFull, div#__MaskIframe, div#__MaskBottom {
    display: none;
    z-index: 99999999;
    position: absolute;
    background-color: black;
    opacity: 0.6;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
}

/************************************* MsgBox */
div#__MsgBox {
    display: none;
    position: absolute;
    z-index: 99999999;
    border-radius: 10px;
    width: 80%;
    text-align: center;
    background-color: darkslategray;
    padding: 0px;
    margin-left: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

    div#__MsgBox > div:first-child {
        display: inline-block;
        width: 100%;
        background-color: whitesmoke;
        border-radius: 10px;
        border: 1px solid silver;
    }

div#__MsgBoxTitle {
    border-radius: 10px;
    background-color: darkcyan;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 5px 0px;
}

div#__MsgBoxContent {
    padding: 20px 10px;
    background-color: white;
    margin: 10px 10px 0px 10px;
    border-radius: 10px;
    font-weight: bold;
}

div#__MsgBoxButton {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 10px 50px;
}

    #__MsgBoxButton #__MsgBoxNo {
        background-color: white;
        color: steelblue;
        padding: 8px 15px;
        border-radius: 5px;
        font-weight: bold;
        margin-right: 3vw;
        flex: 1;
    }

    #__MsgBoxButton #__MsgBoxYes {
        background-color: steelblue;
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        font-weight: bold;
        flex: 1;
    }


    #__MsgBoxButton #__MsgBoxOk {
        background-color: steelblue;
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        font-weight: bold;
    }
/************************************* MsgToast */
div#__MsgToast {
    display: none;
    position: absolute;
    z-index: 99999999;
    border-radius: 10px;
    width: 50%;
    text-align: center;
    margin-left: 20%;
    background-color: steelblue;
    top: 200px;
    padding: 20px 10px 20px 10px;
}

    div#__MsgToast > i {
        color: yellow;
    }

    div#__MsgToast > div {
        border-radius: 10px;
        padding: 10px 5px;
        color: white;
        font-weight: bold;
    }

/************************************* MsgWait */
div#__MsgWait {
    display: none;
    position: absolute;
    z-index: 99999999;
    border-radius: 10px;
    width: 40%;
    text-align: center;
    background-color: steelblue;
    padding: 20px 10px 10px 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0;
}

    div#__MsgWait > i {
        color: white;
        font-size: 0.7rem;
    }

div#__MsgWaitContent {
    font-size: 0.5rem;
    border-radius: 10px;
    padding: 10px 5px;
    color: white;
    font-weight: bold;
}

/************************************* PopBottom */
div#__PopBottom, div#__PopCombo {
    display: none;
    position: absolute;
    flex-direction: column;
    max-height: 95%;
    height: auto;
    z-index: 99999999;
    background-color: white;
    border-radius: 15px 15px 0 0;
    text-align: center;
    padding: 2px;
    bottom: 0px;
    right: 0px;
    left: 0px;
}

div#__PopBottomTitle {
    /* __PopBottomTitle */
    border-radius: 15px;
    text-align: center;
    display: none;
    padding: 8px;
    margin-bottom: 5px;
    background-color: darkcyan;
    color: white;
    font-weight: bold;
}

i#__PopBottomClose, i#__PopComboClose {
    position: absolute;
    font-size: 0.5rem;
    color: silver !important;
    padding: 10px 5px;
}

i#__PopComboClose {
    color: darkslategray;
    right: 15px;
    top: 12px;
}

div#__PopBottomContent {
    flex: 1;
    text-align: left;
    padding: 5px 10px 10px 10px;
    overflow-y: auto;
    height: auto !important;
}

div#__PopComboContent {
    flex: 1;
    text-align: left;
    padding: 5px 10px 10px 5px;
    overflow-y: auto;
    height: auto !important;
}

div#__KeyPad {
    display: none;
    width: 100%;
    height: 100%;
    padding-left: 10%;
    padding-top: 35%;
    text-align: center;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 99999999;
}

div.__KeyPad_Value {
    flex-grow: 1;
    padding: 8px 0px;
    margin: 2px;
    background-color: lightyellow;
    font-weight: bold;
    font-size: 0.5rem;
    border: 1px solid silver;
}

i.__KeyPad_Check, i.__KeyPad_Clear, i.__KeyPad_Close {
    margin-left: 2px;
    padding: 10px;
    margin: 2px;
    text-align: center;
    background-color: white;
    font-size: 0.5rem !important;
    border: 1px solid silver;
}

i.__KeyPad_Check {
    width: 40px;
    color: darkcyan;
}

i.__KeyPad_Clear {
    width: 30px;
    color: darkslategrey;
}

i.__KeyPad_Close {
    width: 30px;
    color: indianred;
}

div.__KeyPad_Num {
    width: 0px;
    flex-grow: 1;
    font-size: 0.45rem;
    padding: 10px;
    border: 1px solid silver;
    border-radius: 5px;
    background-color: white;
    margin: 2px;
}

/************************************* PopFull */
div#__PopFull {
    display: none;
    position: absolute;
    background-color: white;
    z-index: 99999999;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
}

div#__PopFullTitle {
    display: flex;
    font-size: 0.5rem;
    text-align: center;
    background-color: darkcyan;
    color: white;
    font-weight: bold;
    height: 50px;
    line-height: 50px;
}

    div#__PopFullTitle > i.fa-arrow-left {
        width: 30px;
        color: white;
        font-size: 0.6rem;
        margin: 10px 0px 0px 5px;
    }

    div#__PopFullTitle > i.fa-times {
        width: 30px;
        color: white;
        text-align: left;
        font-size: 0.7rem;
        margin: 10px 5px 0px 0px;
    }

    div#__PopFullTitle > div {
        flex-grow: 1;
        text-align: center;
        font-size: 0.4rem;
        color: white;
    }

div#__PopFullContent {
    height: calc(100vh - 60px);
    text-align: left;
    padding: 10px;
    overflow-y: auto;
    background-color: white;
}

div#__Iframe {
    display: none;
    position: absolute;
    background-color: white;
    z-index: 999999999;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    /* height: 100vh; */
}

div#__IframeTitle {
    text-align: center;
    background-color: darkcyan;
    color: white;
    font-weight: bold;
    padding: 10px;
}

iframe#__IframeWin {
    border: none;
    width: 100%;
    height: 100%;
}

i.fa {
    font-size: 0.45rem;
}
