.fc-event-main {
 border-radius: 10px !important;
}

/* ===== timeGrid（週/日） ===== */
.fc-timegrid-event .fc-event-main,
.fc-timegrid-event .fc-event-main-frame {
    display: flex;
    height: 100%;
    width: 100%;
}

/* ===== dayGrid（月） ===== */
.fc-daygrid-event .fc-event-main {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

/* ===== 日曆內容文字 ===== */

.fc-timegrid-event .fc-event-main-frame .fc-event-time {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 2px 4px;
} 

.fc .fc-event-time,
.fc .fc-event-title {
    white-space: nowrap; 
    display: block;
    line-height: 1.2;
    margin-top: 2px;
    font-size:11px;
}


/* ===== 手機版本，開課時段不要出現 ===== */
@media (max-width: 768px) {
    /* 隱藏時間軸 */
    .fc-event-time {
        display: none !important;
    }
    .fc .fc-event-title {
        white-space: nowrap; 
        align-items: center;      /* 垂直置中 */
        justify-content: center;  /* 水平置中 */
        line-height: 1.2;
        margin-top: 15px;
    }

}


/* 手機板 FullCalendar 事件不換行置中 */
@media (max-width: 768px) {
  .fc-timegrid-event .fc-event-main-frame {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 2px 4px;
  }
}



/* ===== 可被預訂狀態 ===== */
.fc-event.evt-available,
.fc-event.evt-available .fc-event-main,
.fc-daygrid-event.evt-available {
  background-color: #398e5f !important;  /* 綠 */
  cursor: pointer !important;
}

/* ===== 已被預訂狀態 ===== */
.fc-event.evt-booked,
.fc-event.evt-booked .fc-event-main,
.fc-daygrid-event.evt-booked {
  background-color: #b95755 !important;
  cursor: pointer !important;
}

/* ===== 已被預訂狀態(不同教練) ===== */
.fc-event.evt-conflict,
.fc-event.evt-conflict .fc-event-main,
.fc-daygrid-event.evt-conflict {
  background-color: #325de7 !important;
  cursor: pointer !important;
}

.fc-event.evt-checkout-payment,
.fc-event.evt-checkout-payment .fc-event-main,
.fc-daygrid-event.evt-checkout-payment {
  background-color: #C4C400 !important;
  cursor: pointer !important;
}


/* ===== 已被預訂狀態 X 按鈕 ===== */
.fc-event-close {
    position: absolute;
    top: -10px; 
    right: 4px;
    color: #fff;
    font-weight: bold;
    z-index: 10;
}




/* ===== 課程列表對齊樣式 ===== */
/* Grid alignment for price column */
#swal-course-list .swal-course-item { display:block; margin:6px 0; }
#swal-course-list .swal-course-label {
    display: grid;
    grid-template-columns: 1fr 200px; /* <-- 調整 200px 為你想要的價格欄寬度 */
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
#swal-course-list .swal-course-left { display:flex; align-items:center; gap:10px; }
#swal-course-list input[type="radio"] { margin:0; transform:scale(1); }
#swal-course-list .swal-course-name { font-weight:600; display:inline-block; }
#swal-course-list .swal-course-meta { color:#666; font-size:13px; white-space:nowrap; text-align:left; }

/* 把 NT$ 縮小並與數字對齊 */
.swal-currency { font-size:12px; vertical-align:baseline; margin-right:4px; color:#444; }

/* 小螢幕時改成縱向排列（避免溢出） */
@media (max-width:520px) {
    #swal-course-list .swal-course-label { grid-template-columns: 1fr; }
    #swal-course-list .swal-course-meta { margin-top:6px; }
}
/* 體驗課程按鈕CSS */
.swal2-popup .swal2-deny.btn-trial {
  background-color: #01814A !important;
  border-color: #01814A !important;
  color: #fff !important;
}








/* ============================
   minimal styling for the 2-row layout
   簡單的兩欄日期排版樣式
   ============================ */

.dt-2row { margin-top:10px; } /* 容器上方間距 */

.dt-row { 
    display:flex;         /* 使用 flex 排列欄位 */
    gap:12px;             /* 欄位間距 */
    flex-wrap:wrap;       /* 窄螢幕自動換行 */
    align-items:flex-end; /* 欄位底部對齊（讓 label/input 對齊） */
}

/* 欄位的預設彈性設定（在寬螢幕會盡量占空間） */
.dt-col { 
    flex:1 1 220px; /* flex-grow:1, flex-shrink:1, basis:220px（可被覆寫） */
    min-width:150px;/* 最小寬度（避免太窄） */
}

/* 小欄位（時間等）預設固定寬度的樣式 */
.dt-col.small { 
    flex:0 0 150px; /* 不放大、不縮小、基底150px */
    min-width:120px;
}

/* label 文字樣式 */
.dt-label { 
    display:block; 
    font-size:12px; 
    color:#556; 
    margin-bottom:6px; 
    font-weight:600; 
}

/* input wrapper，做 icon 的相對定位（icon 使用絕對定位） */
.dt-input { position:relative; }

/* icon（放在 input 左側）的定位 */
.dt-icon { 
    position:absolute; 
    left:10px; 
    top:50%; 
    transform:translateY(-50%); 
    color:#8b94a3; 
    pointer-events:none; /* 讓 icon 不會蓋到點擊事件 */
}

/* input / select 主要樣式 */
.dt-input-el, .dt-select {
    width:100%;
    padding:9px 12px 9px 36px; /* 左側預留空間給 icon（36px） */
    border-radius:8px;
    border:1px solid #e6e6e6;
    background:#fff;
    font-size:14px;
    outline:none;
    transition: box-shadow .12s, border-color .12s;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

/* focus 狀態的視覺效果 */
.dt-input-el:focus, .dt-select:focus { 
    border-color:#c94f47; 
    box-shadow:0 8px 20px rgba(201,79,71,0.06); 
}

/* 隱藏可能跑進來的 radio / checkbox（保險用） */
.dt-2row input[type="radio"], .dt-2row input[type="checkbox"] { display:none !important; }
.dt-2row ::marker { display:none; } /* 隱藏 list marker（如果使用 list） */

/* 小螢幕時調整 small 欄位的彈性，避免太擠 */
@media (max-width:640px) {
    .dt-col.small { flex:1 1 45%; }
}

/* ============================
   fix: allow flex children to shrink so two date inputs won't overlap
   修正：允許 flex 內的子項縮小，避免兩個日期欄位互相擠壓/重疊
   ============================ */

.dt-row, .swal-dt-row-dates {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* ============================
   allow columns to shrink when container is narrow
   關鍵：允許欄位在容器窄時縮小（min-width:0 是重點）
   ============================ */

.dt-col, .swal-dt-col {
    flex: 1 1 0;   /* 以 0 作為 basis，讓欄位可以均分並且縮小 */
    min-width: 0;  /* <-- 關鍵：允許 child 溢位時縮小，不會把另一欄位擠到外面 */
}

/* keep time columns a fixed-ish width but still responsive
   時間欄位維持類似固定寬度，但在窄版仍可調整 */
.dt-col.small, .swal-dt-col-time {
    flex: 0 0 150px;
    min-width: 120px;
}

/* make inputs respect box sizing (prevents padding from overflowing)
   讓 input 使用 box-sizing:border-box，避免 padding 導致寬度計算錯誤 */
.dt-input-el, .dt-select, .swal-dt-input-el, .swal-dt-select {
    box-sizing: border-box;
    width: 100%;
}

/* 原本在元素上有 inline style like flex:1 1 220px，為確保一致，這裡再強制覆寫一次（重要） */
.dt-col, .swal-dt-col { flex: 1 1 0 !important; }

/* 小裝飾：確保 svg icon 不會推開內容（位置一致） */
.swal-dt-icon, .dt-icon { left: 10px; }

/* 把可能出現的 list markers/radio bullets 隱藏（保險） */
.dt-2row input[type="radio"], .swal-dt-row input[type="radio"] { display:none !important; }


/* ============================
   reset/normalize button appearance for these specific buttons
   針對 #swal-week 裡的按鈕做樣式重置（避免被全域 .btn 或 bootstrap 覆寫）
   ============================ */

/* 移除瀏覽器/框架預設外觀，並指定 inline-flex 讓文字垂直置中 */
#swal-week .day-btn,
#swal-week .small-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  display: inline-flex;       /* 讓文字置中，並可用 align-items 控制 */
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  border: 1px solid #d0d7de;  /* 邊框顏色 */
  background: #fff;           /* 背景白 */
  padding: 6px 10px;          /* 內距（左右） */
  min-width: 40px;            /* 最小寬度，看起來像方塊按鈕 */
  height: 34px;               /* 統一高度，避免行高差異造成對齊問題 */
  border-radius: 6px;         /* 圓角 */
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

/* 全選/清除按鈕稍微寬一點、字重較粗 */
#swal-week .small-btn {
  min-width: 56px;
  padding: 6px 8px;
  font-weight: 500;
}

/* active 樣式（被選中時）- 你把主色改成 #9f353a */
#swal-week .day-btn.active {
  background: #9f353a;  /* 背景改色 */
  color: #fff;          /* 文字白色 */
  border-color: #9f353a;
}

/* hover / focus 的視覺微調（讓互動感較好） */
#swal-week .day-btn:hover,
#swal-week .small-btn:hover,
#swal-week .day-btn:focus,
#swal-week .small-btn:focus {
  filter: brightness(0.96);
  outline: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* ============================
   swal recurring note - base
   swal 的提示訊息區塊樣式（例如警告提示或說明）
   ============================ */

/* 使用 .swal2-popup 前綴提高優先權，確保在 SweetAlert 內也能套用 */
.swal2-popup .swal-recurring-note,
.swal-recurring-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #41464d;                /* 文字色 */
  background: #fffaf0;           /* 淡黃背景（預設為 warning 類型） */
  border-left: 4px solid #f4c24b;/* 左側強調色條，可替換為其他色 */
  box-shadow: 0 2px 8px rgba(12,18,30,0.03);
  margin-top: 12px;
  box-sizing: border-box;
}

/* icon slot - 置左對齊（用於放 emoji 或 svg） */
.swal-recurring-note .note-icon {
  flex: 0 0 20px; /* 固定區塊寬度 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1;
}

/* 文字內容區塊（最重要：min-width:0 讓文字在窄版換行而不推擠） */
.swal-recurring-note .note-text {
  flex: 1 1 auto;
  color: inherit;
  min-width: 0; /* 重要：允許換行，不會把其他東西推出去 */
}

/* muted / info / danger 三種變體，方便依情境套用不同色彩 */
.swal-recurring-note.muted {
  background: #f7f8fa;
  border-left-color: #cbd5df;
  color: #5a636b;
}

.swal-recurring-note.info {
  background: #f0f7ff;
  border-left-color: #4b9be6;
  color: #234b7a;
}

.swal-recurring-note.danger {
  background: #fff4f4;
  border-left-color: #e05a5a;
  color: #7a2b2b;
}

/* 小螢幕微調：縮小間距與字級 */
@media (max-width:480px) {
  .swal-recurring-note { padding: 8px 10px; font-size: 12px; gap:8px; }
  .swal-recurring-note .note-icon { font-size:16px; }
}




/* swal - inline validation error（範圍限制在 swal popup 內） */
.swal2-popup #swal-validation-error,
#swal-validation-error {
  display: none;               /* 預設隱藏，顯示時由 JS 改為 flex */
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;            /* 可依 modal 寬度調整 */
  margin: 10px auto 0 auto;    /* 置中並與上方元素保留空隙 */
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff4f4;         /* 淡紅背景，像 error 提示 */
  border-left: 4px solid #e05a5a;
  color: #7a2b2b;
  font-size: 14px;
  line-height: 1.2;
  display: none;               /* 保險，預設隱藏 (JS 顯示時改成 flex) */
  justify-content: center;     /* 水平置中內容 */
  align-items: center;         /* 垂直置中內容 */
  gap: 10px;
  white-space: normal;         /* 允許換行 */
}

/* 內部 icon + 文字容器，維持彈性佈局 */
#swal-validation-error .swal2-validation-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* icon 樣式 */
#swal-validation-error .swal2-validation-icon {
  font-size: 18px;
  line-height: 1;
  color: #c94f47;
}

/* 文字樣式 */
#swal-validation-error .swal2-validation-text {
  color: inherit;
  font-weight: 600;
  font-size: 14px;
}

/* 小螢幕微調 */
@media (max-width: 480px) {
  #swal-validation-error {
    padding: 8px 10px;
    font-size: 13px;
  }
  #swal-validation-error .swal2-validation-text { font-size: 13px; }
}














/* =========================================================================
   booking-oldsite.css
   - 舊站風格表格（Swal modal 內使用）
   - 包含：基本樣式 / 響應式 / row-disabled / drag-to-scroll 提示 /
     badge & status / scrollbar 美化 / swal-wide modal 控制
   ========================================================================= */

/* ---------- 基本排版 & container ---------- */
.booking-oldsite {
  font-family: "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  box-sizing: border-box;
}

/* table wrapper: allow both vertical and horizontal scrolling */
.booking-oldsite .table-wrap {
  width: 100%;
  max-height: 420px;
  overflow-x: auto;                 /* allow horizontal scroll */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
  padding-right: 6px;
  box-sizing: border-box;
  cursor: grab;                      /* hint draggable */
}

/* dragging cursor */
.booking-oldsite .table-wrap.is-dragging { cursor: grabbing; }

/* ---------- table 基本樣式 ---------- */
.booking-oldsite .booking-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;   /* help responsive, allow cells to wrap */
  word-break: break-word;
  min-width: 720px;      /* 決定何時觸發 horizontal scroll；可調整 */
}

/* 表頭：深色 */
.booking-oldsite .booking-table thead th {
  background: #2f3438;
  color: #fff;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 0;
}

/* 表格列：淡綠背景（舊站風格）*/
.booking-oldsite .booking-table tbody tr {
  background: #e9f7ec;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* hover 效果 */
.booking-oldsite .booking-table tbody tr:hover {
  background: #f0fbf2;
}

/* table cell */
.booking-oldsite .booking-table td,
.booking-oldsite .booking-table th {
  padding: 12px 10px;
  vertical-align: middle;
  font-size: 14px;
  white-space: normal;   /* allow wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* checkbox column */
.booking-oldsite .chk-col {
  width: 44px;
  text-align: center;
}
.booking-oldsite .row-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* course / time / price classes for easier targetting */
.booking-oldsite .course-title { font-weight: 600; }
.booking-oldsite .time-label { color: #d9534f; font-weight: 600; } /* 舊站紅 */
.booking-oldsite .price { color: #222; }

/* ---------- status / badge ---------- */
/* 兩種呈現：.status (舊站右側綠勾) 與 .badge（通用小 badge） */

/* 舊站式 status (icon + text) */
.booking-oldsite .status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #28a745; /* green */
}
.booking-oldsite .status .icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #28a745;
  display: inline-block;
  position: relative;
  flex: 0 0 18px;
}
.booking-oldsite .status .icon::after {
  content: "✔";
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  position: absolute;
  left: 3px;
  top: 0;
}

/* 小 badge（備用）*/
.booking-oldsite .badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
  line-height: 1;
}


p.text-danger       { color: #acacac; } /* 已過期 */
p.text-in-checked   { color: #b95755; } /* 預約中 */
p.text-in-clash     { color: #325de7; } /* 衝突中 */
p.text-in-booked    { color: #C4C400; } /* 已(被)預約 */
p.text-success      { color: #398e5f; } /* 可預約 */


/* ---------- row-disabled (淡化不能選的列) ---------- */
.booking-oldsite tr.row-disabled {
  opacity: 0.78;
  background: #f7f7f7;
}
.booking-oldsite tr.row-disabled .time-label,
.booking-oldsite tr.row-disabled .course-title {
  color: #777;
}
.booking-oldsite tr.row-disabled:hover {
  background: #f7f7f7;
}

/* ---------- summary / footer ---------- */
.booking-oldsite .summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 6px 0;
  gap: 12px;
}
.booking-oldsite .summary-left {
  display: flex;
  gap: 24px;
  align-items: center;
  color: #333;
}
.booking-oldsite .summary-left .muted {
  color: #666;
  font-size: 14px;
}
.booking-oldsite .summary-total {
  background: #f2f2f2;
  margin-top: 12px;
  padding: 18px 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.booking-oldsite .big-amount {
  color: #b43131;
  font-size: 22px;
}

/* ---------- buttons: 平行 & 響應式 ---------- */
.booking-oldsite .btns {
  display: flex;
  flex-direction: row;
  justify-content: flex-end; /* 右對齊；改成 space-between 可左右分散 */
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}
.booking-oldsite .btn {
  background: #ad5450;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  min-width: 140px;
}
.booking-oldsite .btn.secondary {
  background: #d26b66;
  padding: 10px 24px;
  min-width: 120px;
}

/* 手機窄螢幕改為直列且撐滿 */
@media (max-width: 640px) {
  .booking-oldsite .btns {
    flex-direction: column;
    align-items: stretch;
  }
  .booking-oldsite .btn {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ---------- responsive fixes for table modal (swal-wide class) ---------- */
/* customClass.popup = 'swal-wide' 會套到 modal 的 popup */
.swal-wide {
  max-width: 920px !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* table wrap responsive behaviour */
.booking-oldsite .table-wrap {
  max-height: 420px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  box-sizing: border-box;
}

/* 在極小螢幕縮小 cell padding */
@media (max-width: 480px) {
  .booking-oldsite .booking-table thead th,
  .booking-oldsite .booking-table td {
    padding: 8px 6px;
    font-size: 13px;
  }
}

/* 若需要在更小螢幕隱藏價格欄，可啟用以下（預設註解） */
/*
@media (max-width: 420px) {
  .booking-oldsite .booking-table td:nth-child(4),
  .booking-oldsite .booking-table thead th:nth-child(4) {
    display: none;
  }
}
*/

/* ---------- scrollbar 美化（可選） ---------- */
.booking-oldsite .table-wrap::-webkit-scrollbar { height: 10px; width: 10px; }
.booking-oldsite .table-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 6px; }

/* ---------- small accessibility / utility ---------- */
/* allow long texts to wrap instead of expanding table */
.booking-oldsite .booking-table td { word-wrap: break-word; }

/* 防止 modal 內的按鈕被覆蓋*/
.booking-oldsite .btns { z-index: 2; }

#swal_chk_all
{
    transform: scale(1.3);         
    transform-origin: center;
    margin: 3px 6px; 
    vertical-align: middle;
    cursor: pointer;
}

/* 增加表頭儲存格的內距，讓點擊範圍更大（ */
#swal_rows th:first-child,
#swal_rows thead th.select-col {
    padding: 8px 12px;
}

