.font-red {
    color: #f8777d;
}

.font-green {
    color: #4DCA0A;
}

.strategy {
    box-shadow: 0 0 0 0;
}

.strategy {
    margin: 0 10px
}


.strategyfilter {
    overflow: hidden;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    width: inherit;
}


.commentbox p{
    margin: 0;
}

.strategylis {
    position: absolute;
    left: 10px;
    z-index: 1;
    transition: 500ms;
    height: 300px;
}

.arrow {
    position: absolute;
    top: 45%;
    z-index: 2;
    display: none;
    width: 30px;
    height: 2rem;
    font-size: 28px;
    font-weight: bold;
    line-height: 28px;
    text-align: center;
    color: #fff;
    background-color: RGBA(0, 0, 0, .3);
    cursor: pointer;
}

.arrow:hover {
    background-color: RGBA(0, 0, 0, .7);
    color: #fff;
}

.strategyfilter:hover .arrow {
    display: block;
    color: #fff;
}

.prev{
    left: 0;
}

.next {
    right: 0;
}

.btn-outline-secondary.active {
    border-bottom-style: solid;
    border-bottom-width: 3px;
    color: black!important;
    background-color: #FFFFFF!important;
    border-color: #BBBBBB!important;
}

.growup {
    background-image: url("../image/dashboard/growup.png");
    background-size: 28px 28px;
    height: 28px;
    width: 28px;
    display: -moz-inline-box;
    display: inline-block;
}

.growups {
    background-image: url("../image/dashboard/growup.png");
    background-size: 20px 20px;
    height: 20px;
    width: 20px;
    display: -moz-inline-box;
    display: inline-block;
    margin: 0 5px;
}
/* 以下處理sidebar and content */

.content{
    width: 100vw;
}

#sidebarbtn {
    height: 1.4rem;
    padding:0;
    margin: 0 10px;
    border:none;
}

#sidebarbtn{
    transform: none;    
}

#sidebarbtn:active,
#sidebarbtn:focus {
    border:none;
    box-shadow: none;
}

.active #sidebarbtn{
    transform: rotate(180deg);
}

.sidebar {
    padding: 0;
    position: fixed;
    left: 0;
    top:55px;
    height: calc(100vh - 55px);
    width: 100vw;
    z-index: 1040;
    background-color: #00426A;
    color: white;
    display: none;
}

.sidebar.active {
    display: block;
}


/* 以下是正常電腦畫面 */
@media (min-width: 996px){
    .sidebar{
        display: block;
        transition: width 300ms;
        overflow: hidden;
    }
    .sidebar:not(.active) {
        width: 60px;
    }

    .sidebarcontent {
        width:260px
    }

    .sidebar:hover,.sidebar.active{
        width: 260px;
    }
}
/* 以上處理sidebar and content */

.userinfo {
    width: 100%;
    align-items: center;
    padding:8px
}

.userinfo a{
    color: white;
}

.sidebaritem {
    border-bottom: #296081 0.5px solid;
    align-items: center!important;
    position: relative;
}

.sidebaritem img{
    margin:auto 18px;
}

.sidebaritem:nth-child(1){
    border-top: #296081 0.5px solid;
}


.sidebaritem p{
    margin-top: auto;
    margin-bottom: auto;
}

.sidebaritem {
    height: 3rem;
    list-style-type: none;
    color: #CDCDCD;
}


.activesigner {
    display: none;
}

.sidebaritem.active,
.sidebaritem:hover {
    color: white;
}

.activeicon {
    display: none;
}

.sidebaritem.active .activeicon,
.sidebaritem:hover .activeicon {
    display: block;
    position: absolute;
}

.sidebaritem-mobile.active .activeicon {
    display: inline-block;
    position: absolute;
}


.sidebaritem.active::before {
    background-color: #f8777d;
    display: block;
    position: absolute;
    left: 0;
    width: 8px;
    height: 3rem;
    content: "";
}

.sidebaritem-mobile.active::before {
    background-color: #f8777d;
    display: block;
    position: absolute;
    top:0;
    height: 3px;
    width: 16%;
    content: "";
}

.sidebaritem-mobile.active:nth-last-child(1):before {
    display: none;
}

.sidebaritem-mobile {
    width:20%;
    display:inline-block;
    font-size: 12px;
    color: #53565A;
    margin-bottom: 5px;
    margin-top: 8px;
}


.sidebartexts {
    font-size: 1.25rem;
}

a:hover {
    text-decoration: none;
}

.userphoto {
    display: block;
    height: 90px;
    width: 90px;
    border-radius: 5px;
    overflow:hidden;
}

.sidebaruserphoto {
    display: block;
    height: 45px;
    width: 45px;
    border-radius: 5px;
    overflow:hidden;
    padding-right: 5px;
}

.sidebaruserphoto img{
    height: 45px;
    width: 45px;
}

.maindesk {
    padding: 0;
    position: fixed;
    right: 0;
    top: 70px;
    z-index: 89;
    background-color: #FFFFFF;
}

.strategybar {
    height: 150px;
    align-items: center;
    border-bottom-color: #EEEEEE;
    border-bottom-style: solid;
}

.strategybar.active {
    height: auto;
    align-items: center;
    border-bottom-color: #EEEEEE;
    border-bottom-style: solid;
}

.subscribe {
    position: absolute;
    bottom: 0;
    height: 90px;
    width: 100%;
    background-color: #65bcbf;
}

.strategydetail {
    background-color: #FFFFFF;
    margin: 15px 0;
    height: auto;
}

.checkitem {
    margin: 5px 0;
}

.strategy-tag {
    background-color: white;
    color: #00426A;
    border: 2px solid #00426A;
    border-radius: .3rem;
    text-align: center;
    padding: 0px 3px;
    letter-spacing:1px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 1px;
}

/* .strategy-tag:hover {
    color:#46A7B1!important;
    border-color: #46A7B1!important;
} */

.basiclist {
    align-items: center;
    margin-left: 5px;
    margin-right: 5px;
}


.basiclist p {
    margin-bottom: 0;
    margin-left: auto;
}

.timetag {
    display: inline-block;
    background-color: #64CCC9;
    color: #FFFFFF;
    padding: 1px 10px;
    margin: 2px;
    font-size: 0.8rem;
}

.timetag:active,
.timetag.active {
    display: inline-block;
    background-color: #DEE5EF;
    color: #FFFFFF;
    padding: 1px 10px;
    margin: 2px;
}

.strategydetail {
    height: 0px;
    display: none;
}

.margin-10 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.strategydetail.active {
    height: auto;
    display: inherit;
}

.detailtag {
    display: none;
}

.detailtag.active {
    display: inherit;
    height: 116px;
    width: 112px;
    position: absolute;
    top: 40%;
    left: 59%;
}

#morearrow:hover {
    background-color: #EEEEEE;
}

.morestrategy {
    display: none;
}

.morestrategy.active {
    position: absolute;
    left: 63px;
    top: 135px;
    padding: 0;
    display: inherit;
    background-color: #EEEEEE;
}

.morestrategy .borderb {
    margin: 0 0 7px 0;
    padding: 10px;
    background-color: #FFFFFF;
}

.morestrategy .borderb:hover {
    background-color: #FAFAFA;
}

.regard-detail {
    display: none;
}

.regard-detail.active {
    display: inherit;
    position: absolute;
    top: 50px;
    left: 50px;
}

.strategybox {
    background-color: #FFFFFF;
    padding: 10px 15px;
}

.strategytable thead,
.strategytable tr {
    height: 40px;
    border-bottom-style: solid;
    border-bottom-color: #EEEEEE;
    border-bottom-width: 1px;
}

.strategytable td {
    min-width: 4rem;
    vertical-align: middle;
}

/* 
tr td:nth-child(1),
tr th:nth-child(1),
tr h6 {
    position: sticky;
    left: 0;
} */

.strategytable {
    text-align: center;
}

.strategytable .tl {
    text-align: left;
    color: #A1B0C6;
}

.strategytable2 {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    display: none;
}



.strategytable2.active {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    display: table;
}

.strategytable2 thead {
    color: #A1B0C6;
}

.strategytable2 tr,
.strategytable2 thead {
    height: 35px;
}

table.strategytable2 tr:nth-child(even) {
    background-color: #F9FAFB;
}


/* table.strategytable2 tr:nth-child(odd) {

} */

.strategytable3 {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    border-collapse: collapse;
    display: none;
}


.strategytable3.active{
    text-align: center;
    font-size: 0.9rem;
    border-collapse: collapse;
    display: table;
}

.strategytable3 thead {
    color: #A1B0C6;
}

.strategytable3 tr,
.strategytable3 thead {
    height: 35px;
}

.strategytable3 tbody tr {
    border-bottom: 1px solid #ddd;
}

.strategytable3 tbody tr.unbtnline {
    border-bottom: 0px;
}

table.strategytable3 tr:last-child {
    border-bottom: 0px;
}

.strategytable3 .row {
    height: 70px;
}

.btn-message {
    margin: 10px;
    background-color: #F8777D;
    color: #FFFFFF;
}

.btn-message:hover {
    background-color: #bb4b50;
    color: #FFFFFF;
}

@media (max-width:576px) {
    .fixbtn {
        position: absolute;
        right: 0;
        top: 75px;
        z-index: 10;
    }
}

@media (min-width:576.01px) {
    .fixbtn {
        position: fixed;
        right: 0;
        top: 75px;
        z-index: 10;
    }
}

.strategy_detail_content img {
    max-width: 100%;
}

.nav-mobile {
    height: 60px;
    background-color:#F7F6F6 ;
    margin:0;
    text-align: center;
    z-index: 1050;
    padding: 0 5% 10px 5%;
}

.boxcontainer .col-12 {
    margin: 10px 0;
}

.searchform{
    position: absolute;
    padding: 0 5px;
    justify-content: flex-end;
    width: 100%;
}


@media (min-width:1140px){
    .searchform{
        justify-content: center;
    }
}
