/* #region一般版CSS */
/* 大架構 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    min-height: 100vh;
}
main {
    flex: 1; /* 撐滿剩餘空間 */
}
footer {
    flex-shrink: 0; /* 保持 footer 高度不被壓縮 */
    height: 80px; /* 依需求調整 */
    display: flex;
    align-items: center;
    justify-content: center;
}
.container-fluid{
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0px;
    padding: 0px;
}
/* 基本MD樣式 */
.Bas-MDcontent{
    padding: 10px;
}
.Bas-MDheader{
    padding: 10px 0px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}
.Bas-MDbody{
    padding: 10px 0px;
    text-align: center;
    font-size: 16px;
}
.Bas-MDbodyCol{
    margin: 10px 0px;
}
.Bas-MDbodyinput{
    height: 30px;
    width: 40%;
}
.Bas-MDbodyTable{
    width: 100%;
    border: 1.5px solid #D0D0D0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-collapse: collapse;
}
.Bas-MDbodyTable th,
.Bas-MDbodyTable td {
    border: 1.5px solid #D0D0D0;
}
.Bas-MDfooter{
    font-size: 16px;
    padding: 10px 0px 0px 0px;
    text-align: right;
}
/* PrintTicket_TABLE欄大小調整 */
.Bas-MDbodyTable.PrintTicket th:nth-child(1){ /* CHECKBOX */
    width: 70px!important;
}
/* Alert樣式 */
.alert-MDheader{
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}
/* .alert-MDtitle{
} */
.alert-MDicon{
    width: 20px;
}
.alert-MDbody1{
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0px;
    text-align: center;
    font-size: 16px;
}
.alert-MDbody2{
    padding: 20px 0px;
    text-align: center;
    font-size: 16px;
    color: white;
}
.alert-MDbodyText1{

}
.alert-MDbodyText2{
    color: #BF3333;
    text-align: left;
    font-size: 14px;
    padding-top: 12px;
}
.alert-MDbodyText3{
    font-size: 16px;
    color: white;
}
.alert-MDfooter{
    font-size: 16px;
    padding: 10px 0px 0px 0px;
    text-align: right;
}
.alert-MDbtn1{
    height: 35px;
    width: auto;
    border-radius: 5px;
    background: #004E7C;
    color: white;
    font-size: 16px;
    border: 0px;
    margin-left: 5px;
}
.alert-MDbtn1.wider{
    width: 80px;
}
.alert-MDbtn2{
    height: 35px;
    width: auto;
    border-radius: 5px;
    background: #e5343eff;
    color: white;
    font-size: 16px;
    border: 0px;
    margin-left: 5px;
}
.alert-MDbtn3{
    height: 35px;
    width: auto;
    border-radius: 5px;
    background: gray;
    color: white;
    font-size: 16px;
    border: 0px;
    margin-left: 5px;
}
/* 其他 */
/* #region置頂列 */
.PageTitleRow{
    /* background-color: #6998AB; */
    margin: 0px;
    padding: 0px;
    width: 100%;
    min-height: 70px;
    font-size: 24px;
    color: white;
    display: flex;
}
.PageTitleRow [class*="col-xs-"] {
    display: flex;
    /* justify-content: center; */ /*水平置中*/
    align-items: center; /* 垂直置中 */
}
.PageTitleImg{
    width: 55px;
}
.PageTitleText{
    height: auto;
}
.PageTitleOutBtn{
    background-color: transparent;
    border: 0px;
    font-size: 16px;
    padding: 0px;
    margin: 0px;
}
/* #endregion */
/* #region內容列 */
    /* --共用-- */
    .BodyRow{
        width: 100%;
        height: 100%;
        margin: 0px;
        padding: 0px;
    }
    .NoPaddingRow{
        margin: 0px;
        padding: 0px;
    }
    .PaddingRow{
        margin: 0px;
        padding: 0px 10%;
    }
    .imgStyle1{
        width: 20px;
    }
    .imgStyle2{
        width: 100px;
    }
    .DisableItem{
        display: none;;
    }
    /* --搜尋列-- */
    .SearchBoatRow{
        /* background-color: #6998AB; */
        padding: 20px 10%;
    }
    .SearchBoatBar{
        position: relative;
        -webkit-box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.3);
        box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        z-index: 9;
        padding: 30px;
        background: #ffffff;
        max-width: 60%;
    }
    .Ser_BasicRow{
        margin: 8px 0px;
        padding: 0px;
    }
    .Ser_tripTypeRow{
        font-size: 18px;
    }
    .Ser_tripTypeRAD{
        margin-right: 3px!important;
    }
    .Ser_RouteSEL{
        height: 45px;
        width: 210px;
        max-width: 100%;
        border: 1px solid #ced4da;
        border-radius: 5px;
        font-size: 16px;
        padding: 0px 12px;
    }
    .Ser_DateRow{
        margin: 0px;
        padding: 0px;
        width: 230px;
    }
    .Ser_BtnRow{
        /* height: 70px; */
    }
    .Ser_PeopleInputCol{
        height: 100%;
        padding-right: 6px;
    }
    .Ser_BtnCol{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /*水平靠左*/
        align-items: flex-end; /* 垂直靠下 */
    }
    .Ser_Btn{
        /* background-color: #1A374D; */
        color: white;
        border-radius: 10px;
        height: 45px;
        min-width: 100%;
        border: 0px;
        font-size: 16px;
    }
    .Ser_ContentText{
        text-align: right;
    }
    /* --船班資料-- */
    .BoatListRow{
        padding-top: 20px;

    }
    .BoatListCol{
        padding-bottom: 20px;
        font-size: 16px;
    }
    .BoatListTitleText{
        font-weight: 600;
        font-size: 18px;
    }
    .BoatListTable{
        background-color: #F3F5F6;
        border-radius: 10px;
        padding: 20px;
        margin: 8px;
        display: inline-flex;
        line-height: 30px;
        width: 300px;
        align-items: center;
    }
    .BoatListTableCol{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center; /*水平置中*/
        align-items: flex-end; /* 垂直置中 */
    }
    .BoatListRAD{
        display: none;
    }
    .BoatListBTN{
        background-color: #6998AB;
        color: white;
        border: 0;
        width: 100%;
    }
    .BoatListBTN_disabled{
        background: #e0e0e0!important;
        color: #9e9e9e!important;
        opacity: 0.6!important;
        cursor: not-allowed!important;
    }
    .BoatListBTN_select{
        background-color: gray!important;
    }
    /* --票種列表-- */
    .TicketTypeListTable{
        background-color: #F3F5F6;
        border-radius: 10px;
        padding: 20px;
        margin: 8px;
        display: inline-flex;
        align-items: center;
        width: 260px;
        font-size: 16px;
    }
    .TicketTypeLListTableCol{
        margin-left: auto;
    }
    .TicketType_PQTYSEL{
        height: 45px;
        width: 210px;
        max-width: 100%;
        border: 1px solid #ced4da;
        border-radius: 5px;
        font-size: 14px;
        padding: 0px 12px;
    }
    .TicketTypeInfoText{
        font-size: 16px;
        padding: 8px;
    }
    /* --聯絡資訊列-- */
    .buyerTableRow{
        /* display: none; */
        margin: 20px 0px;
    }
    .buyerTableTitle{
        font-weight: 600;
        font-size: 18px;
        border: 1px solid #ccc;
        border-bottom: 0px;
        padding: 10px;
        border-radius: 10px 10px 0px 0px;
        background: rgb(2, 131, 145, 0.1);
    }
    .buyerTableContent{
        border: 1px solid #ccc;
        padding: 15px;
        font-size: 16px;
    }
    .buyerTablePAXtitleROw{
        font-size: 18px;
    }
    .buyerTableInput{
        height: 45px;
        width: 100%;
        max-width: 100%;
        border: 1px solid #ced4da;
        border-radius: 5px;
        font-size: 16px;
        padding: 0px 12px;
    }
    /* --接送&付款頁-- */
    .pickupRADRow{
        padding: 10px 0px;
        line-height: 30px;
    }
    .PickupRAD{
        font-weight: 400;
    }
    .pickupInfoRow{
        background: #FEF3E2;
        padding: 15px;
    }
    .PaymentBtnRow{
        margin: 20px 0px;
    }
    /* --訂單完成頁-- */
    .completePageTitleRow{
        text-align: center;
        font-size: 16px;
    }
    .completePageTitle{
        padding: 50px 0px 10px 0px;
        font-size: 20px;
        font-weight: 600;
        line-height: 50px;
        border-bottom: 1px solid #D0D0D0;
    }
    .CompletePageText{
        padding: 20px 0px;
    }
    .orderDetailRow{
        margin: 20px 0px;
    }
    .orderDetailTableRow{
        padding: 0px;
        margin: 0px;
    }
    .orderDetailTableText{
        min-width: 120px;
        width: auto;
    }
    .orderDetailRouteInfo{
        background-color: #F3F5F6;
        border-radius: 10px;
        padding: 10px;
        margin: 8px 0px;
    }
    .orderDetailRouteInfoTitle{
        font-weight: 600;
    }
    .orderDetailTableE{
        margin: 0px;
    }
    .adTableRow{
        box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.3);
        border: 1px solid #ced4da;
        border-radius: 10px;
        padding: 30px;
        margin: 6% 10%;
    }
    .adTableTitleRow{
        padding: 0px;
        padding-bottom: 20px;
    }
    .adTableContentTextRow{
        padding: 10px 10%;
        display: flex; /* 左右廣告不管內容長度，高度要對齊 */
        flex-wrap: wrap; /* 左右廣告不管內容長度，高度要對齊 */
    }
    .adTableContentTextRow div {
        display: contents; /* 不長的單字要換行 */
        word-break: break-word; /* 太長的單字也要換行 */
    }
    .adTableContentCol{
        border: 1px dashed #ced4da;
        display: flex;
        flex-direction: column;
    }
    .adTableContentImgRow{
        text-align: center;
    }
    .adTableContentTitle{
        font-size: 18px;
        font-weight: 600;
    }
    .adTableContentRow{
        display: flex;
        flex-wrap: wrap;
    }
    .adTableContentText{
        font-size: 14px;
        color: #8F8F8F;
    }
    /* --頁尾列-- */
    .FooterRow{
        margin-top: auto;
        background: #f8f9fa;
        text-align: center;
        color: #777;
        min-height: 80px;
    }
/* #endregion */

/* #endregion */

/* #region手機版CSS(925px) */
@media (max-width: 925px) {
    /* 大架構 */
    body {
        font-size: 14px;
    }
    footer {
        height: auto;
        padding: 20px;
    }
    /* 其他 */
    /* --搜尋列-- */
    .SearchBoatBar{
        max-width: 100%;
    }
    /* --船班資料-- */
    .BoatListTable{
        width: 100%;
        height: 100%;
    }
    /* --票種列表-- */
    .TicketTypeListTable{
        display: block;
        width: 100%;
    }
    .TicketType_PQTYSEL{
        width: 100%;
    }
    /* --訂單完成頁-- */
    table.detailpageE thead {
        display: none;
    }
    .table.detailpageE > tbody > tr > td,
    .table.detailpageE > thead > tr > th {
        border-top: 0 !important;
    }
    table.detailpageE,
    table.detailpageE tbody,
    table.detailpageE tr,
    table.detailpageE td {
        display: block;
        width: 100%;
    }
    table.detailpageE tr {
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 8px;
        background: #fff;
    }
    table.detailpageE td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
    }
    table.detailpageE td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        padding-right: 12px;
        white-space: nowrap;
    }
}
/* #endregion */