/* 共用 */
body{
    /* background: #daebee; */
    overflow: hidden;
    font-family: "微軟正黑體",sans-serif;
    height: 100vh;
    /* background-image: url("../img/bg.png"); */
}
body label{
    font-weight: bold;
    color: #003D79;
}
/* .toggler{
    z-index:2;
    height: 50px;
    width: 50px;
    position: absolute;
    top: 2%;
    left: 78%;
    cursor: pointer;
    opacity: 0;
}
.hamburger{
    position: absolute;
    top: 2.5%;
    left: 80%;
    height: 40px;
    width: 40px;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger > div{
    position: relative;
    top: 0;
    left: 0;
    background: #4E709D;
    height: 2px;
    width: 100%;
    transition: all  0.4s ease;
}
.hamburger > div::before,
.hamburger > div::after{
    content: '';
    position: absolute;
    top: -10px;
    background: #4E709D;
    width: 100%;
    height: 2px;
    transition: all  0.4s ease;
}
.hamburger > div::after{
    top: 10px;
}
.toggler:checked + .hamburger > div{
    background: rgba(0,0,0,0);
}
.toggler:checked + .hamburger > div::before{
    top: 0;
    transform: rotate(45deg);
    background: #4E709D;
}
.toggler:checked + .hamburger > div::after{
    top: 0;
    transform: rotate(135deg);
    background: #4E709D;
} */
.header2 img{
    width: 60%;
    position: absolute;
    top: 1.5%;
    left: 10%;
}
.header2 .menu{
    background: #fff;
    width: 15%;
    height: 100%;
    padding: 20px;
    position: absolute;
    top: 0;
    border-right: 1px solid rgba(173, 173, 173, 0.3);
    margin-right: 0;
    transition: all 0.4s ease;
}
.header2 .menu div{
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* .toggler:checked ~ .header2 .menu{
    width: 15%;
} */
.header2 .menu > ul{
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 1%;
    top: 90px;
    width: 13%;
    height: 800px;
    overflow-y: scroll;
}
.header2 .menu li{
    list-style: none;
    line-height: 1.7;
    margin-top: 10px;
}
.small_menu{
    display: none;
    flex-direction: column;
    margin: 10px 0 0 15px;
    border-left: 1px solid rgba(78, 112, 157, 0.3);
}
.header2 .menu .small_menu li{
    margin: 10px 0 0 13px;
}
.header2 .menu span{
    margin-right: -1.35em;
    transition: 0.3s;
}
/* .toggler:checked ~ .header2 .menu span{
    margin-right: 0em;
    opacity: 1;
} */
.header2 .menu a{
    color: #6C6C6C;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    background: transparent;
    transition: 0.3s;
    padding: 16px;
    position: relative;
    font-weight: 400;
}
.fa-solid{
    font-size: 20px;
}
.header2 .menu a:active{
    background: transparent;
}
.header2 .menu > ul.icon li + li{
    margin-top: 33px;
}
/* .toggler:checked ~ .header2 .menu a{
    width: 220px;
} */
.header2 .menu li a:hover, .header2 .menu li a.active{
    color: #4E709D;
}
.header2 .menu a.active:after{
    content: "";
    position: absolute;
    left: -8%;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 60px;
    background: #4E709D;
}
.header2 .menu li.disabled a{
    color: #ADC4CE;
    cursor: not-allowed;
}
/* .toggler:checked ~ .header2 .menu a.active{
    color: #4E709D;
    background: rgba(78, 112, 157, 0.3);
}
.toggler:checked ~ .header2 .menu .small_menu a{
    width: 194px;
}
.toggler:checked ~ .header2 .menu .small_menu a.active:after{
    display: none;
} */
.bgcolor{
    background: transparent;
    margin-top: 40px;
}
.content {
    margin: 30px 0 0 0;
    border: none;
    width: 100%;
}
a{
    color: #6C6C6C;
    position: relative;
    padding-bottom: 0.3rem;
    transition: 0.3s;
    font-size: 20px;
    font-weight: bold;
}
a.active, a:hover{
    color: #4E709D;
    text-decoration: none;
}
.headerTop a.active:after{
    position: absolute;
    content: "";
    left: 7px;
    bottom: -5px;
    width: 90%;
    height: 5px;
    background: #4E709D;
}

/* 表頭固定頂端 */
thead tr{
    position: sticky;
    top: -1;
    z-index: 2;
}
.form-control {
    padding: 5px 8px;
    text-align: center;
    height: 40px;
    transition: 0.5s;
}
.choose, .choose2{
    background:#D2E9FF; /*背景顏色為灰色*/
}
.buttons{
    margin: 0px 0px 10px 0px;
    color: #9D9D9D;
    display: flex;
    align-items: center;
    justify-content: center;
}
.buttons .btn-blue,a.btn-blue:hover,.buttons .btn-gray,a.btn-gray:hover, .btn-blue{
    color: #003D79;
    background: #F0F0F0;
    border: 1px solid #ADADAD;
    height: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    font-size: 16px;
}
.buttons .btn-gray,a.btn-gray:hover{
    color: #7B7B7B;
}
.buttons .btn-blue, .buttons .btn-gray{
    background: #EBEBEB;
}
button img{
    width: 20px;
    margin-right: 6px;
}
button img.pdf_icon{
    width: 32%;
}
#add,#add_m,#add_d{
    color: #FF8000;
}
#delete,#delete_m,#delete_d,.delete{
    color: #FF2D2D;
}
#modify,#modify_m,#modify_d{
    color: #984B4B;
}
#print, #print_pay, #print_list, #report{
    color: #0B60B0;
}
#goHomePage{
    color: #B67352;
    border: 1px solid #B67352;
}
#search, #search_bank{
    color: #DD5746;
}
#read{
    color: #496989;
}
#remove {
    color: #6196A6;
    background: #fff;
    border: 1px solid #6196A6;
}
#excelfile, #exceldetail, #excel{
    color: #408E68;
}
#summary, #calculate, #statistics{
    color: #86469C;
    border: 1px solid #86469C;
}
#postal_label{
    color: #007F73;
}
#first, #pre, #first_m, #pre_m,#first_d, #pre_d, #save, #save_m, #save_d, #cancel, #cancel_m, #cancel_d{
    color: #7B7B7B;
}
#next, #last,#next_m, #last_m, #next_d, #last_d{
    color: #003D79;
}
.state{
    color: #2967a3;
    background: #deeefd;
    font-size: 24px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #6a9dcf;
    display: inline-block;
}
/* 新增 */
.addNews{
    display: none;
    color: #FF8000;
    background: #FFEEDD;
    border: 1px solid #fca34a;
}
/* 修改 */
.modifyNews{
    display: none;
    color: #EA0000;
    background: #FFD2D2;
    border: 1px solid #f74c4c;
}
.table{
    table-layout: fixed;
}
.table thead th {
    padding: 6px 12px;
    background: #dee2e6;
    color: #6C6C6C;
    border-bottom: 1px solid #9D9D9D;
    position:sticky;
    top: -1;
}
.table td, .table th{
    vertical-align: middle;
}
.form-radio-input {
    cursor: pointer;
    width: 15px;
    height: 15px;
}
label{
    margin-top: 8px;
}
input{
    outline: 0; 
} 
.btn.focus, .btn:focus,input:focus{ 
    border-color: none; 
    box-shadow: none;
}
.form-row{
    display: flex;
}
.form-check-inline{
    margin-bottom: 15px;
}
.showtext_d{
    display: none;
    text-align: center;
}
.form-control:focus{
    box-shadow: none;
    border-color: #74A9D0;
}
/* 工作提示 */
.point {
    position: relative;
    display: inline-block;
}
.point .tooltiptext {
    visibility: hidden;
    width: 65px;
    background-color: #7B7B7B;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    font-size: 14px;
    
    /* 定位 */
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 80%;
    margin-left: -60px;
}
.point:hover .tooltiptext {
    visibility: visible;
}
.mbStatus{
    background: #F0F0F0;
    padding: 5px 15px 5px 15px;
    width: 120px;
    height: 150px;
    margin-right: 10px;
}
.mbStatus label, .identity label{
    margin-top: 0px;
}
.mbStatus .form-check, .identity .form-check{
    margin-bottom: 10px;
}
.identity{
    background: #F0F0F0;
    padding: 5px 15px 5px 15px;
    width: 100px;
    height: 150px;
}
ul {
    /* 取消ul預設的內縮及樣式 */
    margin: 0;
    padding: 0;
    display: flex;
}
ul,li{
    list-style: none;
}
.bg{
    background: url("../img/bg.webp") center center/cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    padding-top: 40px;
}

.container {
    margin: 0 auto 0 16%;
    max-width: 1500px;
}
.go_to{
    display: flex;
    flex-direction: column;
}
.go_to a{
    font-size: 16px;
    font-weight: normal;
    color: #4E709D;
    display: flex;
    align-items: center;
}
.go_to a:hover{
    color: #4E709D;
}
span.red{
    color: #f24;
    font-weight: bold;
    margin: 0 2px;
}

.form-control.red, .form-control.red:disabled{
    background: #FFC3C2;
}
.form-control.orange, .form-control.orange:disabled{
    background: #ffba5a;
}
.form-control.green, .form-control.green:disabled, .green{
    background: #A5E6C9;
}
p.green{
    border-radius: 5px;
}
.form-control.yellow, .form-control.yellow:disabled, .yellow{
    background: #FFEB9D;
}
.form-control.blue, .form-control.blue:disabled, .blue{
    background: #B6E2FF;
}
.form-control.darkgreen, .form-control.darkgreen:disabled{
    background: #D3E0D1;
}
.form-control:disabled, .form-control[readonly] {
    background-color: #fff;
}
/* maintenance.php, restock.php */
.brown{
    color: #AD5A5A;
}
.logout{
    position: absolute;
    top: 22px;
    right: 7.5%;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #58A399;
    border: 1px solid #58A399;
    padding: 8px 15px;
    border-radius: 10px;
    z-index: 5;
    transition: 0.3s;
}
.logout:hover{
    background: #58A399;
    color: #fff;
}
.logout .fa-solid{
    font-size: 14px;
    margin-left: 10px;
}
p{
    margin-bottom: 0;
}
.btn-primary, .btn-primary:hover{
    background-color: #1A65A9;
    border-color: #1A65A9;
}
.btn-secondary, .btn-secondary:hover{
    background-color: #b9bcbe;
    border-color: #b9bcbe;
}
.clicked{
	background: #CFE8DC;
    color: #048548;
}

/* factory.php, product.php, combination.php, zipcode.php, bank.php */
.lightyellow{
    background: #FFFF93;
}
.status_display{
    position: absolute;
    top: 15px;
    right: 14%;
}
.footer{
    margin-top: 15px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}
.footer .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    color: #6C6C6C;
}
.footer h4{
    font-weight: bold;
}
.white-preview .footer h4{
    color: #E84545;
}
.dark-preview .footer h4{
    color: #FDD36A;
}
.footer li+ li{
    margin-left: 20px;
}
@media (min-width: 500px) {
    .content{
        width: auto;
    }
    .go_to{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}