:root{
    --textColor: #353535;
    --bgColor: #fff;
    --borderColor: #e6e6e6;
    --activeColor: #1495e7;
    --activeBgColor: #e6f7ff;
}
::-webkit-scrollbar{
    display: none;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    outline: none;
}
html,body{
    height: 100%;
    width: 100%;
    font-size: 16px;
}
#app.dark{
    --textColor: #fff;
    --bgColor: #161a25;
    --borderColor: #2f3542;
    --activeBgColor: #2f3542;
}
#app{
    height: 100%;
    width: 100%;
    background-color: var(--bgColor);
    font-size: .875rem;
    color: var(--textColor);
    user-select: none;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--borderColor);
}
svg{
    fill: var(--textColor);
}
header{
    width: 100%;
    height: 3rem;
    border-bottom: .0625rem solid var(--borderColor);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 .375rem; */
}
header svg{
    /* width: 1.5rem;
    height: 1.5rem; */
    width: 1.125rem;
}
header > div{
    height: 100%;
}
.aside-swicth{
    width: 3rem;
    padding: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-right: .0625rem solid var(--borderColor);
}
.header-more{
    /* width: 3rem; */
    padding: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* cursor: pointer; */
    border-left: .0625rem solid var(--borderColor);
    position: relative;
}
.header-items{
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.header-scroll{
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}
.header-scroll::-webkit-scrollbar{
    display: none;
}
.header-item{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: .0625rem solid var(--borderColor);
    padding: 0 .75rem;
    cursor: pointer;
    color: var(--textColor);
}
main{
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
}
aside{
    width: 3rem;
    height: 100%;
    border-right: .0625rem solid var(--borderColor);
}
.aside-items{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: .0625rem;
}
.aside-item{
    width: 2.25rem;
    height: 2.25rem;
    margin-top: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
    cursor: pointer;
}
.mask-window{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    pointer-events: none;
}
.mask-window.active{
    pointer-events: auto;
}
.mask-overlay{
    width: 100%;
    height: 100%;
    background-color: var(--textColor);
    opacity: 0;
    transition: all .3s linear;
}
.mask-window.active .mask-overlay{
    /* opacity: .5; */
}
.mask-content{
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    position: absolute;
}
.mask-content.active{
    pointer-events: auto;
    opacity: 1;
    z-index: 10;
}
.mask-content.left{
    width: 20rem;
    max-width: 80%;
    height: 100%;
    left: -100%;
    top: 0;
    box-shadow: 0 0 1.625rem rgba(68, 74, 94,.5);
    background-color: var(--bgColor);
    /* transition: left .3s linear; */
    overflow: hidden;
}
.mask-content.center{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;    
    transition: all .3s linear;
    background-color: rgba(0, 0, 0, .5);
    opacity: 0;
}
.mask-content.center.active{
    opacity: 1;
}
.mask-content.center.active svg{
    /* animation: rotateHalf 1s linear infinite; */
}
@keyframes rotateHalf{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(-45deg);
    }
}
.mask-content.bottom{
    width: 50%;
    height: 86%;
    left: 50%;
    transform: translateX(-50%);
    bottom: -100%;
    box-shadow: 0 0 .625rem rgba(68, 74, 94, .5);
    background-color: var(--bgColor);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: all .3s linear;
    padding-top: 20px;
    overflow: hidden;
}
@media (max-width: 708px) {
    .mask-content.bottom{
        width: 100%;
        height: 46%;
    }
}
.mask-content.bottom.active{
    bottom: 0;
}
.mask-content.active.left{
    left: 0;
}
.mask-content-header{
    width: 100%;
    /* height: 3.5rem; */
    /* border-bottom: .0625rem solid #e6e6e6; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem;
    font-weight: bold;
    font-size: 1rem;
    position: relative;
}
.mask-backtest-close{
    /* width: 20px; */
    height: 1.25rem;
    /* background-color: #1495e7; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .875rem;
    margin-left: .625rem;
    opacity: .8;
}
.mask-content-header input{
    height: 2.4rem;
    /* border: 0; */
    border: .0625rem solid #e6e6e6;
    padding: .25rem .5rem;
    flex: 1;
    color: var(--textColor);
    background-color: transparent;
}
.mask-content-header input:focus{
    outline: .0625rem solid #b8b8b8;
}
.collect-swicth-box{
    padding: .3125rem;
    margin-left: .625rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.collect-swicth-box svg{

}
.collect-swicth-box.active svg{
    fill: var(--activeColor);
}
.mask-contents{
    width: 100%;
    padding-bottom: .625rem;
    flex: 1;
    overflow-y: auto;
}
.mask-contents-loading, .mask-content-nomore{
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}
.symbols-item{
    height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    cursor: pointer;
}
.symbols-item.active, .symbols-item:active{
    background-color: var(--activeBgColor);
}
.symbol-info{
    display: flex;
    align-items: center;
}
.symbol-info svg{
    fill: var(--textColor);
    cursor: pointer;
}
.symbol-info svg.active{
    fill: var(--activeColor);
}
.symbol-name{
    margin-left: .3125rem;
}



.backtest-progress{
    width: calc(100% - 1.25rem);
    height: .125rem;
    margin-left: .625rem;
    background-color: var(--activeBgColor);
    position: relative;
}
.backtest-in-progress{
    height: 100%;
    background-color: var(--activeColor);
}
.backtest-progress-num{
    width: 100%;
    padding-right: .625rem;
    text-align: right;
    color: var(--textColor);
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    margin-top: .25rem;
    opacity: .5;
}

.backtest-label{
    margin: .625rem .625rem 0 .625rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.backtest-label span{
    font-size: 14px;
    padding-right: .625rem;
    position: relative;
}
.backtest-label span::after{
    content: '';
    display: inline-block;
    width: .3125rem;
    height: .3125rem;
    position: absolute;
    top: .375rem;
    right: 0;
    border-top: .0625rem solid var(--textColor);
    border-right: .0625rem solid var(--textColor);
    opacity: .5;
    transform: rotate(45deg);
    /* background-color: #1495e7; */
}

.backtest-btn{
    margin-top: .625rem;
    padding: 0 .625rem;
}
.backtest-btn .el-button{
    padding-left: .625rem;
    padding-right: .625rem;
    /* font-size: .9375rem; */
}
.backtest-btn .el-button+.el-button{
    margin-left: .3125rem;
}

.order-list, .order-detail{
    width: calc(100% - 1.25rem);
    margin-left: .625rem;
    margin-top: .625rem;
}

.table{
    border: .0625rem solid var(--borderColor);
    border-bottom: 0;
}

.tr{
    display: flex;
}

.tr > .td, .tr > .th{
    flex: 1;
    text-align: center;
    border-right: .0625rem solid var(--borderColor);
    border-bottom: .0625rem solid var(--borderColor);
    padding: .25rem 0;
}
.tr > .th{
    font-weight: bold;
}
.tr > .td:last-child, .tr > .th:last-child{
    border-right: 0;
}

.mask-content-right{
    width: calc(100% - 20rem);
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--bgColor);
    border-left: .0625rem solid var(--borderColor);
    pointer-events: auto;
}
#cash-line{
    max-width: 100%;
    max-height: 100%;
}

.login-pane input[type=text], .login-pane input[type=password], .login-pane input[type=button]{
    background-color: transparent;
    border: 1px solid var(--borderColor);
    width: 90%;
    margin-left: 5%;
    height: 40px;
    margin-top: 14px;
    box-sizing: border-box;
    padding: 0 10px;
    outline: none;
    color: var(--textColor);
}
.login-pane .rememberme{
    margin-left: 5%;
    margin-top: 14px;
    display: flex;
    width: 50%;
    align-items: center;
}
.login-pane input[type=button]{
    background-color: var(--activeColor);
}
.login-pane input[type=button]:active{
    opacity: .8;
}
.login-pane input:focus{
    outline: 1px solid var(--activeColor);
}
.login-pane input.cancel{
    background-color: transparent;
}

.drag-bar{
    width: 30%;
    height: 24px;
    /* position: absolute;
    top: 16px;
    left: 35%; */
    opacity: .6;
    padding: 9px 0;
}
.drag-bar-item{
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background-color: var(--textColor);
}

.mask-content-right-title{
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.backtest-pane{
    transition: transform .3s;
}

*{
    cursor: default !important;
}  

/* 小屏幕，例如手机 */
@media (max-width: 48rem) {
    *{
        cursor: default !important;
    }   
}


.sy-history-list{
    position: absolute;
    z-index: 99;
    top: calc(100% + 8px);
    width: 460px;
    height: calc(100vh - 68px);
    background-color: var(--bgColor);
    filter: drop-shadow(0 0 10px rgba(68, 74, 94, .5));
    display: flex;
    flex-direction: column;
    margin-right: 96px;
}
.sy-history-list::after{
    content: '';
    width: 0;
    height: 0;
    position: absolute;
    top: -7px;
    left: calc(50% - 5.5px + 48px);
    border: 8px solid transparent;
    border-top-color: var(--bgColor);
    border-left-color: var(--bgColor);
    transform: rotate(45deg);
}
.sy-history-items{
    display: flex;
    width: 100%;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}