html,
body{
    box-sizing: border-box;
    display: block;
    margin: 0px auto;
    max-width: 100%;
    min-width: 100%;
    max-height: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    background-color: transparent;

    overflow-x: hidden;
    overflow-y: hidden;
}
html{
    font-size: 14px;
}

*[x-event="click"]{
    cursor: pointer;
}

*{
    font: normal 1rem  宋体, 仿宋, 楷体, Arial, Verdana, sans-serif, "helvetica neue", Helvetica;
}

u{
    text-decoration: none;
}

#doc{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width: 100%;
    min-height: 100%;
}
#header{
    display: grid;
    grid-template-columns: 20% 50% 30%;
    align-items: center;
    width: 100%;
    height: 6%;
    flex-grow: 0;
}
#header .frameTitle{
    width: 100%;
    text-align: center;
}

#header .leftMenu{
    width: 100%;
    text-align: left;
    padding-left: 0.5rem;
    font-style: normal;
    text-decoration: none;
}
#header .leftMenu>*:hover{
    border: 1px solid yellow;
    cursor: pointer;
}

#header .rightName{
    width: 100%;
    text-align: right;
    padding-right: 0.5rem;
    font-style: normal;
    text-decoration: none;
}

#header #custName,
#header .menu{
    border: none;
    margin: 0px 1rem;
}

#header .refreshButton{
    cursor: pointer;
}

#footer{
    display: block;
    width: 100%;
    height: 8%;
    flex-grow: 0;
}
#footer .footTab{
    display: flex;
    flex-direction: row;
    justify-content:space-around;
    align-items: center;
    height: 100%;
    width: 100%;
    margin: 0px auto;
}

#footer .footTab button{
    width: 6rem;
    height: 4rem;
    padding: 0px !important;
}
#footer .footTab button u,
#footer .footTab button i{
    display: block;
    width: 100%;
    height: 1.2rem;
    line-height: 1.2rem;
    text-decoration: none;
    font-style: normal;
    font-weight: normal;
    font-size: 0.9rem;
    color: #aaa;
}

#footer .footTab button:hover{
    background-color: inherit !important;
}
#footer .footTab button:hover u,
#footer .footTab button.active u{
    color: #efefef;
}



#main{
    display: block;
    height: 80%;
    width: 100%;
    flex-grow: 1;
    overflow-y: hidden;
    overflow-x: hidden;
}
#main>article{
    height: 100%;
    width: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
}

.popupPanel .content,
.popupPanel .header,
.popupPanel .footer{
    margin: 0px auto;
    padding: 0.3rem 0.6rem;
    height: auto;
}

.popupPanel .content{
    min-height: 5rem;
    max-height: 25rem;
    overflow-y: auto;
    white-space: pre-wrap;
}

.popupPanel .long-content{
    min-height: 5rem;
    height: 50rem;
    overflow-y: auto;
    white-space: pre-wrap;
}

.popupPanel .popup-bar{
    display: inline-block;
    width: 100%;
    margin: 0px auto;
    padding: 0.3rem 0.6rem;
    text-align: center;
    vertical-align: middle;

    height: 3rem;
    line-height: 2.4rem;
}

#popupModeBlock,
#pullDownMenu,
#popupPanel,
#leftSlideMenu{
    padding-top: 0px;
}

#popupModeBlock .panelBlock,
.menuPanel{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100% !important;
    width: 85% !important;
    margin: 0px !important;
}
#popupModeBlock .panelBlock>*,
.menuPanel>*{
    width: 100%;
}

#popupModeBlock .panelBlock .header,
.menuPanel .header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#popupModeBlock .panelBlock .header .panelTitle,
.menuPanel .header .menuTitle{
    padding: 0px 0.4rem;
    margin: 0px;
    height: 2.6rem;
    line-height: 2.6rem;
    flex-grow: 1;
}

#popupModeBlock .panelBlock .header .panel-bar button,
.menuPanel .header .menu-bar button{
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    width: 5rem;
    margin: 0px auto;
    padding: 0px;
    background-color: transparent;
    color: #fff;
    border: none;
    font-size: small;
}
.menuPanel .header .menu-bar button.active,
.menuPanel .header .menu-bar button:hover{
    color: yellow;
    cursor: pointer;
}

#popupModeBlock .panelBlock .contentBox,
.menuPanel .selectBox{
    height: 60%;
    flex-grow: 1;
    overflow-y: scroll;
}

.menuPanel .menuBox{
    height: 60%;
    flex-grow: 1;
}

.menuPanel .itemsBox{
    flex-grow: 1;
}

/**
desktop
*/
@media  screen and  (min-width: 601px) {
    #header{
        grid-template-columns: 10% 70% 20%;
    }

    #footer .footTab{
        width: 30rem;
    }
}