
@media (min-width: 576px) {
    .container_mobile {
        max-width: 540px;
        width: 100%;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
        margin-right: auto;
        margin-left: auto;
    }
}

.number_circle{
    display: inline-block;
    width: 2.1rem;
    height: 2.1rem;
    text-align: center;
    background-color: #fff;
    border: 1px solid #999;
    line-height: 2rem;
    border-radius: 50%;
}

body{
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    --bs-body-color: #000 !important;
}

.modal-header {
    background-color: #fffce2;
}
.modal-header .btn-close {
    border-radius: 50%;
    border: 1px solid #bb1616;
    box-shadow: 2px 2px 2px #ff7272;
    background-color: #fff;
}

.bg-opacity-80 { --bs-bg-opacity: 0.8; }
.bg-opacity-85 { --bs-bg-opacity: 0.85; }
.bg-opacity-90 { --bs-bg-opacity: 0.9; }
.bg-opacity-95 { --bs-bg-opacity: 0.95; }

.child_bento_total_price{
    font-size: 1.125rem;
    font-weight: bold;
}

/*  */
.ui-widget {
    font-size: 16px !important;
}
.ui-datepicker table {
    /*font-size: 1em;*/
}
.ui-datepicker-year,.ui-datepicker-month{
    /*border-radius: 4px;*/
}
.ui-datepicker .ui-datepicker-buttonpane button {
    padding: 2px 8px;
    font-size: 15px;
}
.ui-datepicker .ui-datepicker-buttonpane {
    margin: 0;
}
.ui-timepicker-div dl {
    margin-bottom: 0;
}
.ui-datepicker {
    width: 300px;
}

/* 登入 */
.form_sign {
    width: 360px !important;
    padding: 15px;
    text-align: center;
}

.form_sign .form-floating:focus-within {
    z-index: 2;
}

.form_sign input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form_sign input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/*  */
.item{
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #eee;
    border-radius: 16px;
    margin: auto;
}
.bg_1{

}

.page_nav{
    background-color: #f5f5f5;
    color: #ffa500 !important;
    font-weight: bold;
    font-size: 1.25em;
    height: 2.5em;
    line-height: 2.5em;
    border-bottom: 1px solid #ddd;
}
.page_title{
    font-size: 1.5em;
    font-weight: bold;
}

.col_menu{
    width: 90px;
    display: inline-block;
    text-align: center;
}
.a_item{
    color: #135cc7;
    text-decoration: none;
}
.big_checkbox_input, .big_radio_input {
    margin-right: 8px;
    transform: scale(1.5);
}
.bg_1{
    background: linear-gradient(120deg, rgba(254,254,254,1) 0%, rgba(231,209,255,1) 15%, rgba(216,179,255,1) 100%);
}
.bg_2{
    background: linear-gradient(120deg, rgba(254,254,254,1) 0%, rgb(231, 240, 255) 15%, rgb(210, 223, 255) 100%);
}
.bg_3{
    background: linear-gradient(120deg, rgba(254,254,254,1) 0%, rgb(236, 255, 232) 15%, rgb(218, 255, 213) 100%);
}
.bg_4{
    background: linear-gradient(120deg, rgba(254,254,254,1) 0%, rgb(252, 255, 239) 15%, rgb(255, 251, 218) 100%);
}
.bg_5{
    background: linear-gradient(120deg, rgba(254,254,254,1) 0%, rgb(255, 239, 239) 15%, rgb(255, 219, 219) 100%);
}
.bg_6{
    background: linear-gradient(120deg, rgba(254,254,254,1) 0%, rgb(255, 249, 239) 15%, rgb(255, 234, 213) 100%);
}
.bg_7{
    background: linear-gradient(120deg, rgb(254, 254, 254) 0%, rgb(226, 226, 226) 30%, rgb(176, 176, 176) 100%);;
}

/*  */

.custom_checkbox {
    width: fit-content;
    border: 1px solid #cfcfcf;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 2px 2px 4px #ddd;
}
.custom_radio {
    width: fit-content;
    border: 1px solid #cfcfcf;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 2px 2px 4px #ddd;
}

.custom_radio input, .custom_checkbox input {
    display: none;
}

.custom_radio label, .custom_checkbox label {
    padding: 4px 8px;
    border-right: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.25s;
}

.custom_radio label:last-of-type, .custom_checkbox label:last-of-type {
    border-right: 0;
}

.custom_radio label:hover, .custom_checkbox label:hover {
    background: #eee;
}

.custom_radio input:checked + label {
    background: #becbff;
}

.custom_checkbox input:checked + label {
    background: #c3ffb0;
}

/* DataTable */
.page-link {
    padding: 2px 8px;
}

table.table-hover tbody tr:hover {
    background-color: #fffceb !important;
}

/* DataTable RWD2 新 */
@media only screen and (max-width: 767px){

    .dataTables_scrollBody{
        overflow: hidden !important;
    }

    /* Force table to not be like tables anymore */
    .rwd2, .rwd2 thead, .rwd2 tbody, .rwd2 th, .rwd2 td, .rwd2 tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .rwd2 thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .rwd2 tr {
        /*margin: 0 0 1rem 0;*/
        border-bottom: 1px solid #666;
        padding: 6px 0;
    }
    .rwd2 tr:hover {
        background-color: #fff;
    }

    .rwd2 tr:nth-child(odd) {
        /*background-color: #fcfcfc;*/
    }

    .rwd2 td:before {
        position: absolute;
        top: 3px;
        left: 6px;
        overflow: hidden;
        white-space: nowrap;
    }
}

/*  */
.ss-main {
    position: relative;
    padding-right: 1rem; /* 保留箭頭空間 */
    margin-bottom: 0;
    vertical-align: middle;
}

.ss-arrow {
    position: absolute;
    top: 50%;
    right: 0.75rem; /* Bootstrap 的 .form-select padding-right */
    transform: translateY(-50%);
    pointer-events: none;
    width: 0.75rem;
    height: 0.75rem;
    background-size: contain;
    background-repeat: no-repeat;
}
/* 調整清除按鈕位置與大小 */
.ss-deselect {
    display: none !important;

}
.ss-list {
    max-height: 350px;  /* 可根據實際高度調整 */
}
.ss-content{
    max-height: calc(100vh - 200px);
}
