*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
}

*, body, h1, h2, h3, h4, h5, h6, a, p, select  {
	font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif, Arial, Helvetica;
}

html, body{
    background-color: #E6EBF1;
    width: 100%;
    height: 100%;
}

form {
    height: 100%;
}

header{
    height: 70px;
}

section{
    display: flex;
    min-height: calc(100% - 100px);
}

/* 左邊區塊 */
#sidebar{
    width: 300px;
    background-color: #fff;
    overflow-x: hidden;
    transition: all 1s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 5px solid #DBEDFF;
    min-height: 0;
}

#sidebar.active{
    display: none;
    transition: all 1s;
}

#sidebar .menu {
    width: 100%;
    margin-top: 1rem;
    padding: 0 .5rem;
    flex: 1;
}

#sidebar .menu a, #sidebar .menu .dropdown-btn { 
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    display: block;
    border: none;        
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none; 
    font-weight: bold;
}

#sidebar .menu a {
    background-color: #FFFFFF;
    color: #000000;
    text-indent: 1.5em;
}

#sidebar .menu .dropdown-btn {
    background-color: #5A8BED;
    color: #FFFFFF;
    border-radius: 5px;        
}

#sidebar .menu a:hover {
    background-color: #DBEDFF;
}

#sidebar .menu .dropdown-container{
    position: relative;
}

#sidebar .menu .dropdown-container::before{
    content: '';
    position: absolute;
    width: 3px;
    background-color: lightgray;
    top: 10px;
    bottom: 10px;
    left: 10%;
}

.fa-caret-down {
    float: right;
    padding-right: 8px;
    margin-top: .3rem;
}

.menubtn{
    border: 2px solid #e7e7e7;
    color: black;
    
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    padding: 4px 20px;
    font-weight: bold;
}

.menubtn:hover {
    background: #DBEDFF;
}

#collaspe{
    cursor: pointer;
}

/* 地址 */
.addr-county,
.addr-area,
.addr-zip {
    width: 31%;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    height: 2.5rem;
    border-radius: 0.375rem;
}

.addr-county:focus,
.addr-area:focus,
.addr-zip:focus {
    border-color: #768093;
}

/* footer */
.footer{
    background-color: #fff;
    height: 30px;
}

.footer .copyright-footer{
    font-size: 14px;
    line-height: 30px;
}

#topBtn{
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    display: none;
}

.other, .SuspectedInfectionSymptoms, .SpecialDemand, .SSO1, .SSO2, .SSO3, .SSO4, .SSO5, .SSO6 {
    display: none;
}

span label{
    margin-right: 1rem;
}

span label:last-child {
    margin-right: 0;
}

/*頁碼*/
.dataTables_info {
    color: #878787;
}

.dataTables_paginate {
    color: #212121;
}

.dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 0.5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    color: #333 !important;
    border: 1px solid transparent;
    border-radius: 2px;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover,
.dataTables_paginate .paginate_button:hover,
.dataTables_paginate .paginate_button:active,
.dataTables_paginate .paginate_button:focus {
    background: #469408;
    border-color: #469408;
    color: #fff !important;
    box-shadow: none;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover,
.dataTables_paginate .paginate_button:hover,
.dataTables_paginate .paginate_button:active,
.dataTables_paginate .paginate_button:focus {
    background: #469408;
    border-color: #469408;
    color: #fff;
    box-shadow: none;
}

/*登入*/
.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 120px);
    max-height: 100%;
}

.wrap {
    width: 400px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 10px;
    border: 10px solid #fff;
    box-shadow: 0 0 10px 3px #000;
    backdrop-filter: blur(10px);
}

.loginbtn {
    display: inline-block;
    font-weight: 400;
    background-color: #356aa0;
    border-color: #356aa0;
    color: #fff;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.error {
    display: none;
}

.has-error{
    display:block;
}

/*媽媽首頁列表*/
.topnav {
    text-align: center;
    border-bottom: 3px solid #dee2e6;
}

.topnav a {
    display: block;
    color: #CD3E46;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: .5rem;
}

.topnav > div {
    position: relative;
    width: auto;
}

.topnav >div.active::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    bottom: -3px;
    border-bottom: 3px solid #CD3E46;
    width: 100%;
}

/*header選單*/
.headerTabBaBy {
    background-color: #EEC124;
}

.headerTabMom {
    background-color: #E86F24;
}

#headerTab .nav-item .nav-link {
    font-weight: bolder;
    color: #fff;
}

#headerTab .nav-item .active {
    color: #000;
}

#headerTab .nav-item .active img {
    filter: invert(100%);
}

.cust-BedNo {
    color: #fff;
    padding: 1px 8px;
    border-radius: 40rem;
    font-weight: bold;
}

.cust-closebtn {
    background-color: var(--mybgcolor);
}

.cust-closebtn:hover {
    background-color: var(--mybgcolor);
}

/*---------------------------自適應內容----------------------------*/
@media only screen and (max-width: 1200px) {
}

@media only screen and (max-width: 991.98px){ 
    

}

@media only screen and (max-width: 900px){    
    
}

@media only screen and (max-width: 680px) {
    .footer {
        height: auto;
    }
    .footer .copyright-footer{
        font-size: 12px;
        line-height: revert;
        padding-top: 0.4rem;
    }
}

@media only screen and (max-width: 568px) {
    #sidebar{
        position: fixed;
        top: 69px;
        bottom: 0;
        z-index: 110;
        display:none;
    }

    #sidebar.active{
        display: flex;
    }

    #sidebar > div:nth-child(2) {
        flex-wrap:wrap;
        padding: .5rem 0;
    }

    .menubtn{
        padding: 4px 60px;
    }

    .topnav > div {
        width: 100%;
    }
}

@media only screen and (max-width: 280px){
    .footer .copyright-footer{
        padding-top: 0;
    }
    .footer{
        height: 55px;
    }
    header img{
        width: 100px;
    }
}

/* card header 收合 */
.cust-tabBg {
    padding: .5rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

.cust-tabBg.active {
    color: #CD3E46;
}

.cust-MomBg {
    background-color: #FFEDE3;
}

.cust-BbBg {
    background-color: #FFFAE4;
}

#overview {
    background-color: #DBEDFF;
}

.overviewsticky {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 69px;
    z-index: 100;
}

.headerTabsticky {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 124px;
    z-index: 100;
    background-color: #fff;
}

.overviewstickytop {
    top: 0;
}

.headerTabstickytop {
    top: 56px;
}

.tabcontent {
    display: none;
}
