:root {
    --main-bg-color: #eee;
    --ipt-border-color: #ddd;
    --ipt-border-color-focus: #4f46e526;
    --ipt-shadow-color: #4f46e526;
    --card-shadow-color: #00000026;
    --main-color-900: #4d0952;
    --main-color-800: #63299a;
    --main-color-700: #7d5cac;
    --main-color-500: #c09dd8;
    --main-color-500-2: #c09dd855;
    --main-color-200: #f5ebfd;
    --main-color-100: #fbf5ff;
}

html{
    font-size: 16px;
}

* {
    box-sizing: border-box;
    font-family: "Noto Sans TC", sans-serif;
}

a {
    text-decoration: none;
    color: #4f46e5;
}

body {
    margin: 0;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ipt-border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.ipt{
    width: 100%;
    padding: 5px 14px;
    border: 1px solid var(--ipt-border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

textarea {
    padding: 14px;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--main-color-900);
}

input[readonly="readonly"],
textarea[readonly="readonly"] {
    background-color: #f9f9f9;
}

input:focus,textarea:focus,select:focus {
    border-color: var(--ipt-border-color-focus);
    outline: none;
    box-shadow: 0 0 6px 3px var(--ipt-shadow-color);
}

input.rOnly:focus,
textarea.rOnly:focus,
input[readonly="readonly"],
textarea[readonly="readonly"]{
    border-color: none;
    outline: none;
    box-shadow: none;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(178, 135, 207, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

/* == 區塊 == */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -999;
    overflow: hidden;
    background: linear-gradient(-65deg, white 0%, #fde4cf 11%, #f7d7d4 22%, #efc1db 44%, #e8b0df 60%, #c09dd8 79%, #7484c6 100%);
}

.dialog_mask{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog{
    position: fixed;
    width: 90%;
    max-width: 360px;
    padding: 30px 10px 15px 10px;
    background-color: var(--main-color-100);
    border-radius: 10px;
    border: 5px solid var(--main-color-500);
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    color: #333;
    text-align: center;
    z-index: 1000;
}

.dialog .row-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.dialog .row-btn .btn-sm{
    width: 50px;
}

.dialog .btn{
    margin-top: 30px;
}

.dialog_add{
    position: fixed;
    width: 90%;
    right: 10px;
    max-width: 600px;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    border: 5px solid var(--main-color-500);
    color: #333;
    z-index: 1000;
    max-height: 80vh;
    overflow: auto;
}

.table04 .btn {
    margin-top: 0px;
    height: 30px;
}

.bookingMsg {
    width: 450px;
    max-height: 80vh;
    overflow-y: auto;
}

#divLoading{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#divLoading img{
    height: 50px;
}

.flex-container{
    height: 100vh;
    min-height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 90px 0;
}

.flex-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
}

.ipt-group{
    position: relative;
    margin: 8px;
}

.ipt-group label{
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin: 3px;
    letter-spacing: 0.5px;
    text-align: left;
}

.ipt-group p.desc {
    font-size: 0.8rem;
    color: var(--main-color-900);
    margin: 0 0 0 10px;
}

.ipt-group a.clear {
    position: absolute;
    color: var(--main-color-500);
    right: 5px;
    bottom: -18px;
    font-size: 0.9rem;
}

.spanPrefix {
    position: absolute;
    left: 10px;
    top: 28px;
    font-size: 18px;
}

.chk-group{
    font-size: 0.9rem;
    margin: 24px 8px 8px 8px;
}

.chk-group label{
    cursor: pointer;
}

.chk-group input[type="checkbox"]{
    width: 20px;
    height: 20px;
    position: relative;
    top: 5px;
}

.query-group {
    position: relative;
    margin: 0 5px 20px 5px;
}

.query-group a.clear {
    position: absolute;
    color: var(--main-color-500);
    right: 5px;
    bottom: -0.9rem;
    font-size: 0.75rem;
}

.query-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin: 3px;
    letter-spacing: 0.5px;
}

.copyLink{
    width: 100%;
    height: 44px;
    padding: 0 6px 0 14px;
    border: 1px solid var(--ipt-border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.boxCopy{
    position: absolute;
    right: 5px;    
}

.card01 {
    width: 96%;
    max-width: 400px;
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px var(--card-shadow-color);
}

.card01 h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card02 {
    width: 100%;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 15px 40px var(--card-shadow-color);
}

.card03 {
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 15px 40px var(--card-shadow-color);
}

.SubCard {
    padding: 0px 1rem 0px calc(1rem + 180px);
}

.SubCard02 {
    padding: 0.8rem 1rem 0.8rem calc(1rem + 180px);
    background-color: #ffffff82;
}

.card_r {
    width: 100%;
    max-width: 550px;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
}

.card_r01 {
    background-color: #0c0c0e;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
}

.card_r02{
    background-color: #fff;
}

.full_panel {
    background-color: #fff;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    overflow: auto;
}

.full_panel .topBar {
    text-align: right;
    position: sticky;
    top: 10px;
    z-index: 9;
}

.circle {
    width: 100%;
    height: 60px;
    background-color: #eee;
    color: #444;
    font-size: clamp(10px, 3.5vw, 16px);
    border-radius: 999em;
    padding: 8% 0;
}

.progress {
    width: 100%;
    height: 5px;
    background-color: #eee;
}

.done {
    background-color: var(--main-color-700);
    color: #fff;
}

.pgTitle{
    text-align: right;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 10px 0;
}

.tab-panel{
    display: none;
    border-top: 1px solid var(--main-color-500);
}

.bgArea {
    font-size: 0.9rem;
    background-color: var(--main-color-100);
    border: 1px solid var(--main-color-500-2);
    padding: 10px;
    border-radius: 8px;
}

.tagArea {
    background-color: #fff;
    border: 1px solid var(--ipt-border-color);
    padding: 2px;
    border-radius: 8px;
}

#tableService {
    width: 100%;
    color: #fff;
    text-align: left;
    font-size: 0.9rem;
}

#tableService tr {
    background-color: var(--main-color-500);
    border-bottom: #fff;
    border-width: 1px;
    border-style: solid;
    height: 60px;
}

#tableService tr[show] {
    height: 40px;
    cursor: pointer;
}

#tableService tr[stid] {
    background-color: var(--main-color-200);
    color: #555;
}

#tableService td {
    padding: 5px 10px;
    position: relative;
    border-radius: 8px;
}

#tableService td button {
    position: absolute;
    top: 10px;
    right: 10px;
}

#tableService td img {
    width: 17px;
    float: right;
    top: 2px;
    position: relative;
}

#tableService tr.up img {
    transform: rotate(90deg);
}

#tableService span.name {
    font-size: 0.9rem;
    font-weight: bold;
    width: calc(100% - 80px);
    display: inline-block;
}

#tableService span.time,
#tableService span.price,
#tableService span.point,
#tableService span.desc {
    position: relative;
    left: 10px;
    font-size: 0.85rem;
}

#tableService span.desc {
    display: inline-block;
    padding-right: 10px;
    white-space: pre-line;
}

.table02 {
    border-color: var(--main-color-500);
    border-spacing: 0;
    border-style: solid;
    border-width: 1px;
    text-align: center;
}

.table02 th,
.table02 td {
    border: 0px;
    height: 40px;
}

.table02 th {
    height: 30px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem !important;
    background-color: var(--main-color-500);
    color: #fff;
}

.table02 td.time_active {
    border-radius: 7px;
    background-color: var(--main-color-200);
}

.table03{
    border-radius: 8px;
    border: 1px solid var(--main-color-500);
}

.table03,
.table03 th,
.table03 td {
    font-size: 0.9rem;
    text-align: center;
    border-spacing: 0;
}

.table03 th {
    padding: 0.2rem 0.5rem;
    font-size: 1rem !important;
}

.table03 tr>td:first-child {
    background-color: var(--main-color-500);
    color: #fff;
}

.table04 {
    width: 100%;
    border-radius: 8px;
    border-spacing: 0;
    border: 1px solid var(--main-color-500-2);
}

.table04 th,
.table04 td {
    font-size: 0.8rem;
    text-align: center;
    border-spacing: 0;
    border-bottom: 1px solid var(--main-color-500-2);
    border-right: 1px solid var(--main-color-500-2);
    padding: 5px;
}

.table04 th {
    padding: 0.2rem 1rem;
    font-size: 0.8rem;
    color: #fff;
    background-color: var(--main-color-700);
    position: sticky;
    top: 0;
}

.table04 th:last-child {
    border-right: none;
    border-radius: 0 7px 0 0;
}

.table04 th:first-child{
    border-radius: 7px 0 0 0;
}

.table04 tr td:last-child {
    border-right: none;
}

.table04 tr:last-child td {
    border-bottom: none;
}

.table04 tr:last-child td:first-child {
    border-radius: 0 0 0 7px;
}

.table04 tr:last-child td:last-child {
    border-radius: 0 0 7px 0;
}

.table04 tr:nth-child(odd) {
    background-color: var(--main-color-100);
}

.table04 tr:nth-child(even) {
    background-color: #fff;
}

.tableFrame {
    margin: 0 5px;
    border-radius: 8px;
    border: 1px solid var(--main-color-500);
    overflow: auto;
}

.tableFrame .table04{
    border-radius: 8px 8px 0 0;
}

.tableFrame .table04 tr:last-child td {
    border-radius: unset;
}

.nc_table_pager{
    display: flex;
    align-items: center;
    gap: 1px;
    justify-content: center;
    margin: 10px 0 0 0;
}

.nc_table_pager input{
    width: 40px;
    height: 30px;
    padding: 0;
    text-align: center;
}

.nc_table_pager .btn-sm{
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.nc_table_pager .btn-sm img{
    width: 80%;
}

/* == 區塊 == */

/* == 排版 == */
.ta-c{
    text-align:center;
}

.ta-r{
    text-align:right;
}
/* == 排版 == */

/* == 按鈕 == */
.btn{
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    width: 100%;
    height: 44px;
    min-height: fit-content;
}

.btn-sm {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    height: 30px;
    min-height: fit-content;
}

.btn-tab{
    color: #64748b;
    border: none;
    cursor: pointer;
    min-width: 35px;
    height: 40px;
    padding: 0 10px;
    letter-spacing: 1px;
    background-color: transparent;
}

.btn-color-booking {
    background: var(--main-color-700);
    color: white;
}

.btn-color-booking:hover {
    background: var(--main-color-900);
}

.btn-color-01{
    background: #222;
    color: white;
}

.btn-color-01:hover {
    background: #000;
}

.btn-color-02 {
    background: var(--main-color-800);
    color: white;
}

.btn-color-02:hover {
    background: var(--main-color-900);
}

.btn-color-03 {
    background: transparent;
    color: #ccc;
    border: 1px solid #ccc;
}

.btn-color-03:hover {
    color: #888;
}

.btn-color-04 {
    background: transparent;
    color: #555;
    border: 1px solid #555;
}

.btn-color-04:hover {
    color: #0f0015;
}

.btn-color-05 {
    background: #c4005b;
    color: white;
}

.btn-color-05:hover {
    background: #900000;
}

.btn-color-Line{
    background: #06C755;
    color: white;
}

.btn-color-Line:hover {
    background: #05b04a;
}

.btn-tab-active{
    font-weight: 800;
    color: var(--main-color-900);
    border-bottom: 2px solid var(--main-color-900);
}

.fixed_add{
    transform-origin: center center;
    height: 40px;
    position: fixed;
    bottom: 30px;
    right: 20px;
    cursor: pointer;
    z-index: 999;
    font-size: 1rem;
}

.fixed_add .btn{
    gap: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed_add img{
    width: 1rem;
}
/* == 按鈕 == */

/* == 標籤 == */
.label{
    font-size: 0.8rem;
    padding: 0px 4px 1px 4px;
}

.label-color-01{
    background-color: transparent;
    color: #555;
    border: 1px solid #555;
}

.label-color-02 {
    background-color: transparent;
    color: #00b721;
    border: 1px solid #00b721;
}

.label-color-03 {
    background-color: transparent;
    color: #ff1818;
    border: 1px solid #ff1818;
}

.label-color-04 {
    background-color: #00b721;
    color: #fff;
}

.booked,.unbook {
    width: 20px;
    height: 20px;
    display: inline-flex;
    margin: 10px 5px;
    background-size: cover;
}
.booked{
    background-image: url('../images/booked.png');
}
.unbook {
    background-image: url('../images/unbook.png');
}
/* == 標籤 == */

/* == 文字 == */
.text-01 {
    font-size: 0.8rem;
    color: #888;
}

.text-02 {
    font-size: 0.8rem;
    color: #333;
}

.text-03 {
    font-size: 0.8rem;
    color: var(--main-color-900);
}

.text-04{
    font-size: 0.9rem;
    color: #333;
}

.text-05 {
    font-size: 0.8rem;
    color: #fff;
}

.text-06 {
    font-size: 0.8rem;
    color: #ff1919;
}

.title-01 {
    width: 100%;
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 3px 0;
    color: #0f0015;
    text-align: left;
}

.nc_error_msg{
    color: #fc3e41;
    font-size: 0.8rem;
    padding-left: 10px;
}
/* == 文字 == */


@media (max-width: 480px) {
    .bookingMsg {
        max-width: 350px;
        width: 96%;
    }

    .SubCard {
        padding: 0px;
    }

    .SubCard02 {
        padding: 0.5rem;
    }
}