/*基本變數設定*/
:root{ 
    --s-green: #068373;
    --sh-green: #057364;
}


*{
    margin: 0px;
    padding: 0px;
}

a{
    transition: .3s;
    cursor: pointer;
    color: #4d4d4d;
}

p{
    margin-bottom: 0.375rem;
}

button{
    cursor: pointer;
}

.tlj-80{
    width: 80px;
    text-align-last: justify;
}

a:hover{
    text-decoration: none;
}

hr{
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}


.fa-level-up-alt{
    transform: rotate(90deg);
}

li{
    list-style: none;
}


::selection{
    background-color: #ef8f00;
    color: #f2f2ef;
}

body{
    font-family: '微軟正黑體';
    background-color: #f7faf7;
    font-size: 16px;
    color: #4d4d4d;
}


#scus_form_2 label{
    width: 80px;
    text-align-last: justify;
}

.visually-hidden { 
	display: none; 
}

.bootstrap-dialog .bootstrap-dialog-message{
    font-size: 16px;
}


.awesomplete{
    position: relative;
}

#awesomplete_list_1{
    position: absolute;
    z-index: 1;
}

.Pending{
    background-color: #f5deb3;
}

.fz-13{
    font-size: 13px;
}
.fz-14{
    font-size: 14px;
}
.fz-18{
    font-size: 18px;
}

.fw-600{
    font-weight: 600;
}

.w-50{
    width: 50% !important;
}

.table td{
    vertical-align: middle;
}


.row{
    margin-left: 0;
    margin-right: 0;

}

.w-48{
    width: 48%;
}
.modal-header{
    background-color: #fff;
    
    font-weight: 600;
}

.modal-header .close{
    color: #4d4d4d;
}

.modal-content{
    background-color: unset;
}

.modal-footer{
    justify-content: center;
    background-color: #fff;
    border-top: unset;
}

.modal-body{
    background-color: #fff;
    padding: 1rem 0.375rem;
}

.btn-danger{
    background-color: #b10000;
    border-color: #b10000;
}

.login-bg{
    min-height: 100vh;
    background:url(../img/login_bg.png) no-repeat bottom / cover, var(--s-green);
}


.context {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
}

.login-wrap{
    width: 45%;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    padding: 60px;
    border-radius: 10px;
    position: relative;
}


.login-bg h3{
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-size: 42px;
}

.login-btn-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.login-btn{
    background-color: var(--s-green);
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    width: 200px;
}

.login-btn:hover{
    background-color: var(--sh-green);
}



/*側邊*/


.nav-head{
    padding: 15px;
    display: flex;
    flex-direction: column;
    color: #fff;
    width: 100%;
    align-items: flex-start;
}


.nav-head .logout{
    border: 1px solid #fff;
    padding: 0 0.375rem;
    border-radius: 3px;
    margin-top: 10px;
}

.sidenav {
    height: 100%;
    width: 240px;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: var(--s-green);
    overflow-x: hidden;
    padding-top: 20px;
    border-top-right-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.main {
    margin-left: 240px; /* Same as the width of the sidenav */
    padding-bottom: 50px;
    padding-top: 50px;
}



.sidenav nav{
    margin-top: 50px;
}

.sidenav nav a {
    padding: 15px 8px 15px 20px;
    text-decoration: none;
    font-size: 20px;
    color: #fff;
    display: block;
    border-bottom: 1px solid #ffffff57;
    position: relative;
}

.sidenav nav a.active{
    background-color: #ffffff1f;
    font-weight: 600;
}

.sidenav nav a.active::before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 10px;
    background-color: #fff;
    height: 100%;
}

.sidenav a:hover {
    background-color:#ffffff1f;
}
.sp-close-btn-wrap{
    position: absolute;
    right: 15px;
    display: none;
    cursor: pointer;
}

.sp-close-btn{
    font-size: 20px;
    color: #f2f2ef !important;
}



/*內頁*/

.pg-top{
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}


.text-green{
    color: var(--s-green);
}


.sm-btn{
    padding: 4px 6px;
}

.lg-btn{
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    width: 200px;
}

.btn-soil{
    background-color: var(--m-soil);
    color: #f2f2ef !important;
}

.btn-soil:hover{
    background-color: var(--h-soil) !important;
    color: #f2f2ef !important;
}
.btn-outline-soil{
    border: 1px solid var(--h-soil);
    color: var(--h-soil) !important;
}

.btn-outline-soil:hover{
    background-color: var(--h-soil) !important;
    color: #f2f2ef !important;
}

.btn-d-blue{
    background-color: var(--d-blue);
    color: #f2f2ef !important;
}

.btn-d-blue:hover{
    background-color: var(--h-blue) !important;
    color: #f2f2ef !important;
}
.btn-green{
    background-color: var(--s-green);
    color: #fff !important;
}
.btn-green:hover{
    background-color: var(--sh-green);
    color: #fff;
}

.btn-outline-green{
    border: 1px solid var(--s-green);
    color: var(--s-green);
    padding-inline: 20px;
}

.btn-outline-green:hover{
    color: var(--sh-green);
    border: 1px solid var(--sh-green);
}

.btn{
    transition: .3s;
}


.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: var(--s-green);
    border-color: var(--s-green);
}

.page-link{
    color: var(--sh-green) ;
}

.pg-wrap{
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}


.w-bg{
    background: #ffffff;
    border-radius: 3px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 10px 15px 40px;
}

a.text-dark:hover{
    color: var(--h-soil) !important;
}

header{
    display: none;
    padding: 10px 0;
}

header .row{
    justify-content: flex-end;
    align-items: center;
}

.sp-toggle{
    display: none;
    background-color: var(--s-green);
    border-radius: 3px;
    cursor: pointer;
    transition: .3s;
    margin-left: 20px;
}

.sp-toggle:hover{
    background-color: var(--sh-green);
}

.sp-toggle .btn{
    color: #fff !important;
}





.pg-inner{
    width: 100%;
    border-radius: 20px;
    background-color: #fff;
    margin-top: 40px;
    padding: 20px 20px 40px;
}

/*搜尋框*/
.search-wrap{
    background-color: #fff;
    width: 100%;
    border-radius: 100px;
    display: flex;
    padding: 10px 25px;
    align-items: center;
    justify-content: space-between;
    box-shadow:rgb(111 111 111 / 10%) 0px 10px 15px -3px, rgb(189 189 189 / 2%) 0px 4px 6px -2px;
}

.search-wrap input{
    width: 93%;
    border: none;
    border-radius: 0;
}


.search-wrap .form-control:focus{
    border-color: #80bdff;
    outline: 0;
    -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    box-shadow: 0 4px 2px -2px #05736486;
}
.search-wrap a{
    width: 5%;
    text-align: center;
}







/*選單*/
.screen-overlay {
    width:0%;
    height: 100%;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    opacity:0;
    visibility:hidden;
    display:none;
    background-color: rgba(34, 34, 34, 0.6);
    transition:opacity .2s linear, visibility .1s, width 1s ease-in;
}

.screen-overlay.show {
    transition:opacity .5s ease, width 0s;
    opacity:1;
    width:100%;
    visibility:visible;
    display: block;
}

.offcanvas{
    width:300px;
	visibility: hidden;
	transform:translateX(-100%);
	transition:all .2s;
    border-radius:0; 
    box-shadow: 0 5px 10px rgba(0,0,0, .2);
	display:block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1200;
    background-color: #fff;
    overflow-y: scroll;
    overflow-x: hidden;
}


.offcanvas.show{
	visibility: visible;
    transform: translateX(0);
    transition: transform .2s;
} 


/*新增會員*/
.form-inline label{
    display: inline-block;
}

.star-mark{
    position: relative;
}
.star-mark::before{
    position: absolute;
    content: '*';
    top: -8px;
    left: -8px;
    font-size: 20px;
    color: #b10000;
    font-weight: 600;
}

.alig{
    text-align-last: justify;
}

/*查詢商品*/
.sc-pd-wrap img{
    height: 240px;
    object-fit: contain;
}


.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff !important;
    outline: 0;
}

/*查詢發票*/
.dataTable thead{
    background: #f5f5f5;
}

.dataTable td a, .dataTable td > i{
    display: block;
}

.dataTable td > i{
    cursor: pointer;
}

.tb-bg{
    background: #f5f5f5;
}

.bootstrap-dialog-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.bootstrap-dialog .bootstrap-dialog-close-button {
    float: unset;
}


.bootstrap-dialog-title{
    color: #4d4d4d !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

.modal-footer{
    display: flex !important;

}


.btn-block + .btn-block{
    margin-top: 0 !important;
}

/*查詢會員*/
.fg1{
    flex-grow: 1;
}

.member-tab-wrap .nav-tabs .nav-link{
    border: unset;
    color: #a5a5a5;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.member-tab-wrap .nav-tabs .nav-item{
    width: 50%;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link{
    color: var(--s-green);
    border-bottom: 2px solid var(--s-green);
}



/*禮品兌換*/
.redeem-frame{
    border: 2px solid #068373;
    border-radius: 5px;
    padding: 10px;
    min-height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: .3s;
}

.redeem-title{
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--s-green);
    font-weight: 600;
}


.redeem-frame:hover{
    transform: translateY(-5px);
}


.redeem-frame.over{
    border: 2px solid #4d4d4d;
    position: relative;
}


.redeem-frame.over .redeem-title{
    color: #4d4d4d;
}

.rd-over{
    position: absolute;
    bottom: 0;
    background: #4d4d4d;
    color: #fff;
    padding-inline: 12px;
    font-size: 14px;
    letter-spacing: 1px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}



/*銷售分析管理*/
.cs-frame{
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}


.chart-table th, .chart-table td{
    padding: 0.375rem;
}
.c-table-t{
    display: inline-block; 
    width: 90px; 
    text-align-last: justify;
}

.chart-table .bd{
    border-bottom: 1px solid #4d4d4d;
    border-top: 1px solid #4d4d4d;
}


.chart-table .bd-d{
    border-top: 4px double #4d4d4d;
}

.chart-table .bd-d td{
    font-weight: 600;
}



/*團購取貨*/
details li{
    font-size: 15px;
}

.wait{
    color: #00895e;
    font-weight: 600;
}
.cancel{
    color:  #b10000;
    font-weight: 600;
}


.point-add{
    position: relative;
}


.point-add-btn{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}


/*借貨單*/
.auto_wide{
    display: flex;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
}

.auto_wide .awesomplete{
    width: 75% !important;
}
.auto_wide .pw-add-btn{
    margin-left: 20px;
}
.pl-15{
    padding-left: 15px;
}


/*RWD*/


@media (max-width:1200px) {
    header{
        display: block;
    }

    header .row{
        justify-content: space-between;
    }

    .sp-toggle{
        display: block;
    }

    .sidenav{
        transform: translateX(-280px);
        transition: .3s;
    }

    .sidenav.open{
        transform: translateX(0px);
    }

    .sidenav.open::before{
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100%;
        
    }
    

    .sp-close-btn-wrap{
        position: absolute;
        right: 15px;
        display: block;
    }


    .main{
        margin-left: 0px;
    }
    
}


@media (max-width:996px) {

    .login-wrap{
        width: 80%;
    }
    
}
@media (max-width:576px) {


    .login-wrap{
        padding: 75px 20px 40px;
    }


    .login-wrap h3{
        font-size: 24px;
    }
}


@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}
