.table_perv {
  display: inline-block;
  float: right;
}

.head-marquee {
  margin-top: 45px;
}

@media (max-width: 767px) {
  .head-marquee {
    margin-top: 0;
  }
}

.marquee-name {
  display: inline-block;
  background: #142857;
  color: #fff;
  padding: 0 10px;
  line-height: 25px;
}

.head-marquee .left {
  float: left;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

/* Hides from IE-mac \*/
*:first-child+html .clearfix {
  zoom: 1;
}

/* IE7 */
* html .clearfix {
  height: 1%;
  zoom: 1;
}

.clearfix {
  display: block;
}

.marquee-right-item {
  margin-left: 88px;
}

#box {
  height: 25px;
  line-height: 17px;
  overflow: hidden;
}

#box ul {
  padding: 0;
}

#box li {
  list-style: disc;
  line-height: 17px;
  padding: 4px 0;
  font-size: 12px;
}

#box li a {
  font-weight: bold;
}

.marquee-name {
  font-size: 12px;
}

.marquee-name i {
  vertical-align: 3px;
  margin-left: 3px;
}

.marquee-name .fa-sort-up {
  display: none;
}

.head-marquee-change .fa-sort-up {
  display: inline-block;
  vertical-align: -3px;
}

.head-marquee-change .fa-sort-down {
  display: none;
}

.head-marquee-change {
  height: auto;
}

.head-marquee-after {
  display: none;
}

.head-marquee-after p {
  font-size: 12px;
}

.head-marquee-after p:last-child {
  margin-bottom: 0;
}

.head-marquee-change .head-marquee-before {
  display: none;
}

.head-marquee-after p a {
  font-weight: bold;
}

.head-marquee-change .head-marquee-after {
  display: block;
  background: #e7e7e7 !important;
  color: #333 !important;
  font-weight: bold;
  padding: 3px 10px;
  line-height: 20px;
}

.margin_top-10 {
  margin-top: 10px;
}

.padding_top-7 {
  padding-top: 7px;
}

.padding_top-0 {
  padding-top: 0px !important;
}

.fancybox-inner {
  height: 800px !important;
  overflow: auto;
}

.form-header {
  background-color: #f9fafc;
  font-weight: 700;
  border-radius: 2px 2px 0 0;
  margin-bottom: 10px;
}

.dual_list_label_left {
  text-align: left !important;
  padding: 0;
  color: blue;
}

.dual_list_label_right {
  text-align: left !important;
  padding: 0 0 0 10px;
  color: blue;
}

.bootstrap-select .btn,
.bootstrap-select .btn-default {
  color: #858585 !important;
  background-color: #ffffff !important;
  border: 1px solid #d5d5d5;
  text-shadow: none;
}

.bootstrap-select .btn:hover,
.bootstrap-select .btn-default:hover,
.bootstrap-select .btn:active,
.bootstrap-select .btn-default:active,
.bootstrap-select .btn:focus:active,
.bootstrap-select .btn-default:focus:active,
.bootstrap-select .btn:focus:hover,
.bootstrap-select .btn-default:focus:hover,
.bootstrap-select .btn:active:hover,
.bootstrap-select .btn-default:active:hover,
.bootstrap-select .btn.active:hover,
.bootstrap-select .btn-default.active:hover,
.bootstrap-select.open>.btn.dropdown-toggle,
.bootstrap-select .open>.btn-default.dropdown-toggle,
.bootstrap-select.open>.btn.dropdown-toggle:active,
.bootstrap-select.open>.btn-default.dropdown-toggle:active,
.bootstrap-select.open>.btn.dropdown-toggle:hover,
.bootstrap-select.open>.btn-default.dropdown-toggle:hover,
.bootstrap-select.open>.btn.dropdown-toggle:focus,
.bootstrap-select.open>.btn-default.dropdown-toggle:focus,
.bootstrap-select.open>.btn.dropdown-toggle.active,
.bootstrap-select.open>.btn-default.dropdown-toggle.active {
  color: #696969 !important;
  background-color: #ffffff !important;
  border: 1px solid #b4b4b4;
  text-shadow: none;
}

.bootstrap-select .bs-actionsbox .actions-btn {
  margin: 0;
}

.zipcode_select {
  height: 33px;
}

@media print {
  .main-content-inner {
    float: none;
  }
}

#hide_box {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  background: #000;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
}

#hide_box span {
  position: fixed;
  top: 45%;
  left: calc(50% - 50px);
  height: 100px;
  width: 100px;
  color: #000;
  text-align: center;
  line-height: 90px;
  background: #f1f1f1;
  border: 5px solid #fff;
  -webkit-border-radius: 500px;
  -moz-border-radius: 500px;
  border-radius: 500px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1100px) {
  .page-header {
    overflow: scroll;
  }

  .row {
    overflow: scroll;
  }

  .btn-group a {
    margin-bottom: 5px !important;
  }

  .btn-group .chosen-single {
    margin-bottom: 0px !important;
  }
}

.notify a,
.to-web-home a {
  line-height: 17px !important;
  font-size: 12px;
}

.notify i,
.to-web-home i {
  width: 100% !important;
  margin-top: 5px !important;
}

.notify i {
  width: auto !important;
  margin-top: 8px;
}

.to-web-home {
  width: 13%;
}

.to-web-home i {
  font-size: 18px !important;
}

.navbar-header-phone {
  display: none;
}

.notify-dropdown {
  position: relative;
}

.notify-dropdown .notify-num {
  position: absolute;
  font-size: 12px;
  background-color: #e22424;
  border-radius: 2rem;
  padding: 0px 5px;
  top: 2px;
  right: 4px;
}

.navbar-header {
  width: 29%;
}

.time-block {
  font-size: 12px;
  color: #d0d0d0 !important;
  padding: 0 10px !important;
}

.time-block-phone {
  display: none;
}

.navbar-brand {
  margin-top: 3px;
}

.navbar-brand small {
  font-size: 20px;
  font-weight: bold;
}

.search-items {
  float: left;
  margin-right: 10px;
  margin-top: 10px;
}

.search-button-block {
  float: left;
  margin-top: 10px;
}

.search-button-block button {
  padding: 6px 10px;
}

.operate-button-block {
  width: 100%;
  clear: both;
  margin-top: 10px;
  display: inline-block;
}

@media (max-width: 2000px) {
  .navbar-header-pc {
    width: 30%;
  }
}

@media (max-width: 1680px) {
  .navbar-header-pc {
    width: 50%;
  }
}

@media (max-width: 1350px) {
  .navbar-header-pc {
    width: 35%;
  }
}

@media (max-width: 990px) {
  .navbar-header-pc {
    width: 55%;
  }
}

@media (max-width: 450px) {
  .navbar-header-pc {
    display: none !important;
  }

  .navbar-header-phone {
    display: flex;
    float: right;
    height: 46px;
  }

  .navbar-header-phone .navbar-header-item {
    background-color: #142857;
    padding: 0 5px;
    text-align: center;
  }

  .navbar-header-phone .dropdown-toggle img {
    width: 20px;
  }

  .navbar-header-item {
    line-height: 12px;
  }

  .navbar-header-item i {
    font-size: 16px;
    margin-top: 6px;
  }

  .navbar-header-item .admin-user i {
    font-size: 18px;
    margin-top: 4px;
  }

  .navbar-header-phone a {
    color: #fff;
    display: inline-block;
  }

  .navbar-header-phone p {
    font-size: 12px;
    width: 100%;
    text-align: center;
    top: unset;
  }

  .navbar-header-item .fa-caret-down {
    font-size: 12px;
  }

  .notify-menu.dropdown-menu.dropdown-close.dropdown-menu-right {
    right: 55px;
  }

  .notify-dropdown .notify-num {
    padding: 0px 5px;
    right: -2px;
  }

  .navbar-fixed-top+.main-container {
    padding-top: 71px;
  }

  .to-web-home {
    width: unset;
    padding: 0 10px !important;
  }

  .navbar-header {
    width: unset;
  }

  .time-block-phone {
    width: 100%;
    display: inline-block;
    text-align: right;
    padding-right: 10px;
    font-size: 12px;
    color: #142857 !important;
    margin-top: 45px;
  }

  .main-container {
    margin-top: unset;
  }

  .chosen-container>.chosen-single,
  [class*="chosen-container"]>.chosen-single {
    display: unset;
  }
}

@media (max-width: 320px) {
  .navbar-brand {
    padding: 0px 5px;
  }
}

.search-phone-name,
.search-phone-rights {
  display: inline;
  vertical-align: top;
}

.search-phone-name {
  font-size: 14px;
  line-height: 30px;
}

.search-form-other .search-items input,
.search-form-other .search-items select {
  vertical-align: top;
}

@media (max-width: 767px) {
  .search-form-other .search-items {
    width: 100%;
  }

  .table_perv.right-button-block {
    float: left;
  }

  .search-phone-name {
    display: block;
    width: 80px;
    float: left;
  }

  .search-phone-rights {
    display: block;
    margin-left: 80px;
  }

  .table_perv.right-button-block {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 20px;
  }

  .search-button-block {
    float: right;
  }

  .search-phone-name {
    font-size: 12px;
  }
}

.btn-w100 {
  width: 100%;
}

.email-block {
  display: inline-block;
  float: left;
  margin-right: 10px;
}

.email-block input {
  float: left;
}

.email-block img {
  width: 70%;
}

.del-btn-block {
  float: left;
  text-align: center;
  line-height: 14px;
  margin-left: 5px;
  cursor: pointer;
  color: #d15b47;
  font-weight: bold;
}

.email-block input {
  width: 170px;
}

.btn-w100 {
  width: 100%;
}

.table-item td,
.table-item th {
  vertical-align: middle !important;
}

.order-list-main .table-item .btn-group-others a {
  margin: 3px !important;
}

.email-block {
  display: inline-block;
  float: left;
  margin-right: 10px;
  width: 200px;
}

.email-block input {
  float: left;
}

.email-block img {
  width: 70%;
}

.del-btn-block {
  float: left;
  text-align: center;
  line-height: 14px;
  margin-left: 5px;
  cursor: pointer;
  color: #d15b47;
  font-weight: bold;
}

@media (max-width:767px) {
  .order-list-main .table-item .btn-group-others a {
    min-width: 70px;
  }

  .operate-item .right-button-block a {
    float: right !important;
  }

  .operate-item .table_perv.right-button-block {
    margin-top: 0;
  }

  .page-header {
    padding-bottom: 5px !important;
  }

  .dual_list_label_right {
    padding-left: 0px !important;
  }

  .table-item td,
  .table-item th {
    font-size: 12px;
  }

  .table-width {
    overflow: hidden;
    overflow-x: auto;
    padding-bottom: 35px;
  }

  .table-width table {
    min-width: 600px;
    margin-bottom: 0;
  }
}



.cms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: sans-serif;
}

.cms-table th,
.cms-table td {
  border: 1px solid #999;
  padding: 8px 12px;
}

.cms-table thead {
  background-color: #f0f0f0;
}

.cms-table th {
  background-color: #eee;
  font-weight: bold;
  text-align: left;
}


/* Custom copy 按鈕 */
.cms-btn-copy {
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  /* 從 2.2rem -> 2.6rem */
  height: 2.6rem;
  /* 從 2.2rem -> 2.6rem */
  background: linear-gradient(135deg, #ff6b6b, #c0392b);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-btn-copy i {
  font-size: 1.4rem;
  /* 從 1.1rem -> 1.4rem */
}

.cms-btn-copy:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}



/* 處理群組如果有需要需線 */
.dashed-border-ggg {
  border: 1px dashed #999;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.dashed-border-ggg .form-group {
  margin-bottom: 10px;
}

/* 模糊內容&不可以有任何互動 */
.mosaic {
  filter: blur(6px);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.mosaic input,
.mosaic select,
.mosaic textarea,
.mosaic .form-group {
  pointer-events: none;
  user-select: none;
}



/* 表格外層容器 */
.mod-log-table-container {
  margin: 1.5rem 0;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  overflow-x: auto;
  background-color: #fff;
}










/* 表格外層容器 */
.mod-log-table-container {
  margin: 1.5rem 0;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  overflow-x: auto;
  background-color: #fff;
}

/* 表格本體 */
.mod-log-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 1.6rem;
  /* 基礎字體再放大 */
}

/* 表頭樣式 */
.mod-log-table thead {
  background-color: #f0f0f0;
}

.mod-log-table thead th {
  padding: 1.6rem 1.8rem;
  /* 內距略微放大 */
  font-weight: 600;
  border-bottom: 2px solid #ccc;
  text-align: left;
  color: #333;
  font-size: 16px;
  /* 表頭字體更大 */
}

/* 表身樣式 */
.mod-log-table tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

.mod-log-table tbody tr:nth-child(even) {
  background-color: #fff;
}

.mod-log-table tbody td {
  padding: 1.4rem 1.8rem;
  /* 內距放大 */
  border-bottom: 1px solid #e0e0e0;
  color: #444;
  font-size: 1.5rem;
  /* 表身字體放大 */
}

/* 空資料提示 */
.mod-log-table tbody .no-data {
  text-align: center;
  color: #888;
  font-style: italic;
  font-size: 1.5rem;
  /* 提示字體也放大 */
  padding: 1.4rem 0;
}

/* RWD：窄螢幕時略微縮小，但仍保持比常見文字大 */
@media (max-width: 768px) {

  .mod-log-table thead th,
  .mod-log-table tbody td {
    padding: 1.4rem 1.4rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {

  .mod-log-table thead th,
  .mod-log-table tbody td {
    padding: 1.2rem 1.2rem;
    font-size: 1.3rem;
  }
}


/* 類別開合按鈕樣式 */
.cat-toggle__list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cat-toggle.open .cat-toggle__list {
  max-height: 500px;
  /* 預估展開高度，夠高就好 */
}

.cat-toggle__icon {
  transition: transform 0.3s;
}

.cat-toggle.open .cat-toggle__icon {
  transform: rotate(180deg);
}

/* 類別開合標題樣式 */



.description-toolbar {
  background: #f8f8f8;
  padding: 10px 16px;
  border-bottom: 1px solid #ccc;
  transition: all 0.2s ease;
}

.description-toolbar.is-fixed {
  position: fixed;
  top: 60px;
  /* 根據你的 header 高度調整 */
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}





/* 審查資料送出按鈕：獨立紅色（後台主題會把 btn-info 改成主題色，跟「送出」分不出來） */
.btn-coach-verify,
.cms-list-skin .btn-coach-verify {
  background: #d9534f !important;
  border-color: #d9534f !important;
  color: #fff !important;
}
.btn-coach-verify:hover,
.cms-list-skin .btn-coach-verify:hover {
  background: #c9302c !important;
  border-color: #c9302c !important;
  color: #fff !important;
}
.btn-coach-verify .fa-envelope { margin-right: 5px; }
.btn-coach-verify.btn-glow { animation-name: glowPulseRed; }
.btn-coach-verify.btn-glow:hover { box-shadow: 0 0 20px rgba(217, 83, 79, 1); }
@keyframes glowPulseRed {
  0%   { box-shadow: 0 0 8px rgba(217, 83, 79, 0.4); }
  50%  { box-shadow: 0 0 16px rgba(217, 83, 79, 0.9); }
  100% { box-shadow: 0 0 8px rgba(217, 83, 79, 0.4); }
}

/* 發光送審按鈕 */
.btn-glow {
  position: relative;
  overflow: hidden;
  animation: glowPulse 1.8s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(0, 153, 255, 0.6);
}

/* 呼吸光圈 */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 16px rgba(0, 153, 255, 0.9);
  }

  100% {
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.4);
  }
}

/* 滑過時更亮 */
.btn-glow:hover {
  box-shadow: 0 0 20px rgba(0, 180, 255, 1);
  transform: translateY(-1px);
}

/* 按鈕上的光線閃動特效 */
.btn-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.1));
  transform: skewX(-20deg);
  animation: shineMove 2s infinite;
}

@keyframes shineMove {
  0% {
    left: -120%;
  }

  60% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}


.review-warning {
  padding: 12px 15px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 草稿（灰色） */
.review-warning.status-draft {
  background: #f1f1f1;
  color: #666;
  border-left: 4px solid #999;
}

/* 已上線（綠色） */
.review-warning.status-approved {
  background: #e6f4ea;
  color: #1e7e34;
  border-left: 4px solid #28a745;
}

/* 待審核（紅色底：期間不可改資料，要讓教練一眼看到） */
.review-warning.status-pending {
  background: #fdecea;
  color: #b42318;
  border-left: 4px solid #e5484d;
  font-weight: 600;
}

/* 未通過（紅色） */
.review-warning.status-reject {
  background: #f8d7da;
  color: #842029;
  border-left: 4px solid #dc3545;
}





/* 外框 */
.coachExp-wrapper_x80 {
  background: #f7f9fc;
  border: 1px solid #e3e7ed;
  border-radius: 12px;
  padding: 18px 20px;
}

/* 表頭列 */
.coachExp-header_x80 {
  display: flex;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.coachExp-header_x80>div {
  width: 16%;
  /* 6 欄平均 */
  margin-bottom: 6px;
}

/* 資料列 */
.coachExp-row_x80 {
  display: flex;
  flex-wrap: wrap;
  /* 這行使欄位可以掉到下一行 */
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

/* 單格寬度 */
.coachExp-cell_x80 {
  width: 16%;
  /* 等比寬度（跟表頭一致） */
  padding: 4px;
}

/* 響應式：手機時掉成兩行 */
@media(max-width: 768px) {

  .coachExp-cell_x80,
  .coachExp-header_x80>div {
    width: 50%;
    /* 變成兩欄 */
  }
}

/* 超小（手機窄螢幕）再變成一欄 */
@media(max-width: 480px) {

  .coachExp-cell_x80,
  .coachExp-header_x80>div {
    width: 100%;
    /* 單欄 */
  }
}



#special_skill_box {
  background: #f7f9fc !important;
  border: 1px solid #ddd !important;
  padding: 15px 20px !important;
  border-radius: 6px !important;
}

/* 整個技能區塊外觀 */
.skill-category {
  margin-bottom: 10px;
}

/* 類別標題 */
.skill-category h4 {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0 8px 0;
}

/* 讓 skill-item 橫向排列 + 自動換行 */
.skill-category {
  display: block;
}

.skill-category-items {
  display: flex;
  flex-wrap: wrap;
  /* 關鍵：自動換行 */
  gap: 8px 25px;
  /* 上下 8px，左右 25px 間距 */
  margin-left: 10px;
}

/* 單個技能 */
.skill-item {
  display: flex;
  align-items: center;
}

/* 其他欄位 */
.skill-other-input {
  width: 200px;
  margin-left: 6px;
  padding: 4px;
  border: 1px solid #bbb;
  border-radius: 4px;
}

/* 手機版：標籤文字保持完整一行，補充輸入框改換到下一行 */
@media (max-width: 767px) {
  .skill-item {
    flex-wrap: wrap;
  }
  .skill-item > label {
    white-space: nowrap;
  }
  .skill-item .skill-other-input {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* 上傳/預覽圖：限制最大寬度，避免大圖在手機撐破版面、造成整頁可橫向滑動 */
.v2_upload_preview img,
.v2_form_content img,
[id$="_photo_panel"] img {
  max-width: 100%;
  height: auto;
}




/* ===== Flat 深藍主題 Switch ===== */
.cbx-toggle-wrap_x84 {
  display: inline-block;
}

.cbx-switch_x84 {
  /* 尺寸 */
  --w: 65px;
  --h: 25px;
  --p: 4px;

  position: relative;
  width: var(--w);
  height: var(--h);
  border-radius: var(--h);
  border: 1px solid #2b2b3c;
  /* 純平面用細邊框做區隔 */
  cursor: pointer;
  outline: none;
  overflow: hidden;

  /* OFF：灰階、無漸層、無陰影 */
  background: #4b5563;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease;
}

/* ON：#1E1E2F 深藍、無陰影 */
.cbx-switch_x84:is(.checked, [aria-pressed="true"]) {
  background: #1E1E2F;
  border-color: #1b1b2a;
}

/* 圓鈕：純色、無陰影 */
.cbx-knob_x84 {
  position: absolute;
  top: 3px;
  left: var(--p);
  width: calc(var(--h) - var(--p)*2);
  height: calc(var(--h) - var(--p)*2);
  border-radius: 50%;
  background: #ffffff;
  /* OFF/ON 同色即可（純平） */
  border: 1px solid rgba(0, 0, 0, .08);
  /* 可視線，非立體感 */
  box-shadow: none;
  transition: transform .2s ease;
}

/* 右移（不要混用 left 與 transform） */
.cbx-switch_x84:is(.checked, [aria-pressed="true"]) .cbx-knob_x84 {
  transform: translateX(calc(var(--w) - var(--h)));
}

/* 文字：純色、無文字陰影 */
.cbx-label_x84 {
  position: absolute;
  inset: 0;
  padding: 0 calc(var(--h) * 0.65);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* ON → 左 */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #ffffff;
  text-shadow: none;
  pointer-events: none;
  z-index: 1;
  /* 在 knob 之下也 OK（不擋點擊） */
}

/* OFF → 右，顏色稍淡 */
.cbx-switch_x84[aria-pressed="false"] .cbx-label_x84 {
  justify-content: flex-end;
  color: #e5e7eb;
}

/* 顯示 ON / OFF（或改 data-on="開" data-off="關"） */
.cbx-label_x84::before {
  content: attr(data-on);
}

.cbx-switch_x84[aria-pressed="false"] .cbx-label_x84::before {
  content: attr(data-off);
}

/* 無障礙：鍵盤聚焦樣式（也保持扁平） */
.cbx-switch_x84:focus-visible {
  outline: 2px solid #93c5fd;
  /* 淡藍實線 */
  outline-offset: 2px;
}


/* 未儲存狀態：綠燈 + 提示文字 */
.cbx-card_x84.cbx-dirty_x84 .cbx-dot_x84 {
  background: #16a34a;
  /* 綠 */
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .18);
}

.cbx-title_x84 .cbx-dirty-msg_x84 {
  display: none;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #14532d;
  background: #dcfce7;
  /* 淺綠底 */
}

.cbx-card_x84.cbx-dirty_x84 .cbx-dirty-msg_x84 {
  display: inline-block;
}






/* actions 欄位用 flex，讓容器吃滿整個 td，並保證不換行 */
.cbx-col-actions_x84 {
  /* 不要用 .text-end；交給 flex 控制 */
  white-space: nowrap;
  /* 防止換行擠疊 */
  padding-right: 8px;
  /* 讓把手不貼邊 */
}

.cbx-actions-flex_x84 {
  display: flex;
  align-items: center;
  width: 100%;
  /* ← 手機上很重要，容器要吃滿 */
  gap: 6px;
  /* 元件之間留點空 */
}

/* 把手推到最右邊 */
.cbx-drag-handle_x84 {
  margin-left: auto;
  /* ← 把它推出去 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f8f9fa;
  font-size: 12px;
  line-height: 1;
  cursor: grab;
}

.cbx-drag-handle_x84:active {
  cursor: grabbing;
}

/* 手機再加一點保險：縮把手、保證欄位最小寬度、縮間距 */
@media (max-width: 576px) {
  .cbx-col-actions_x84 {
    min-width: 120px;
  }

  /* 給 actions 欄一點生存空間 */
  .cbx-actions-flex_x84 {
    gap: 4px;
  }

  .cbx-drag-handle_x84 {
    width: 18px;
    height: 18px;
  }
}


.checkbox-btn-group-20251126 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-btn-20251126 {
  cursor: pointer;
  border-radius: 6px;
  background: #e9ecef;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

/* 隱藏 checkbox */
.checkbox-btn-20251126 input {
  display: none;
}

.checkbox-btn-20251126 span {
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  border-radius: 6px;
  font-family: "FontAwesome", "Helvetica", "Arial";
  /* ⭐這行讓 icon 正常 */
  gap: 6px;
}

/* 未勾選：方框 icon */
.checkbox-btn-20251126 span::before {
  content: "\f096";
  /* 未勾選 icon */
  font-family: "FontAwesome";
  font-size: 16px;
  color: #999;
  transition: 0.2s;
}

/* 勾選後的狀態 */
.checkbox-btn-20251126 input:checked+span {
  background: #003D79;
  color: white;
}

/* 勾選：顯示打勾 icon */
.checkbox-btn-20251126 input:checked+span::before {
  content: "\f046";
  /* 打勾 icon */
  color: white;
}

/* hover 效果 */
.checkbox-btn-20251126:hover span {
  filter: brightness(1.05);
}

@media (max-width:768px) {
  .checkbox-btn-20251126 {
    width: 48%;
  }

  .checkbox-btn-20251126 span {
    width: 100%;
    justify-content: center;
  }
}

/* 桌機：全部同一排（維持原樣） */
@media (min-width: 768px) {
  #rangeForm .range-custom-fields {
    align-items: center;
    gap: 10px;
    margin-left: 10px;
  }

  #rangeForm .range-custom-fields .range-date {
    margin-left: 10px;
  }

  #rangeForm .range-text {
    margin-left: 10px !important;
  }
}

/* 讓這個區塊在手機不再一個項目一排 */
@media (max-width: 767px) {
  #rangeForm.range-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  #rangeForm .form-group {
    margin: 0 !important;
  }

  /* 下拉選單：獨佔第一排（或至少夠寬） */
  #rangeForm .range-select-group {
    flex: 1 1 160px;
    min-width: 160px;
  }

  /* 自訂日期：同一排顯示 start / end / button */
  #rangeForm .range-custom-fields {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* 開始/結束：各半，排一起 */
  #rangeForm .range-custom-fields .range-date {
    flex: 1 1 0;
    min-width: 0;
  }

  /* 讓 input-group 不會撐破 */
  #rangeForm .range-custom-fields .input-group {
    width: 100%;
  }

  /* 套用按鈕：固定寬度，不換行 */
  #rangeForm .range-custom-fields .range-apply {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 4px 10px;
  }

  /* 區間文字：不要硬塞在同一行，改下一排 */
  #rangeForm .range-text {
    margin-left: 0 !important;
    flex: 0 0 100%;
  }
}


/* --- 聊天訊息按鈕提示 --- */

/* 右上角通知燈（預設隱藏） */
.chat-msg-btn .notify-dot {
  fill: #b01c24;
  display: none;
  animation: pulse 1.5s infinite;
}

/* 有未讀時 */
.chat-msg-btn.has-unread .dot-gray {
  fill: #fff;
  /* 對比更清楚 */
}

.chat-msg-btn.has-unread .notify-dot {
  display: block;
}

/* 呼吸閃爍 */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

/* --- 聊天訊息按鈕提示END --- */





/* ===== 共用狀態樣式 ===== */
.state-chip {
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: default;
}

/* 左側小圓點 */
.state-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ===== 審核中 ===== */
.state-chip.reviewing {
  background-color: #fff4e5;
  color: #d48806;
}

.state-chip.reviewing::before {
  background-color: #faad14;
}

/* Hover 微效果 */
.state-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}






/* ==============================
   課程申請卡片 - SaaS 版本
================================ */
/* ===== 課程狀態顯示（Table 版） ===== */
/* ===== 狀態區塊（簡潔標籤版） ===== */

.cr-inline {
  font-size: 13px;
  line-height: 1.6;
  padding: 6px 0;
}

/* 標題列 */
.cr-line1 {
  display: flex;
  flex-wrap: wrap;
  /* 🔥 允許換行 */
  align-items: center;
  gap: 8px;
}

/* 標籤 */
.cr-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  /* 膠囊型 */
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* 文字 */
.cr-title {
  flex: 1;

  /* 讓文字自然佔滿 */
  min-width: 0;
  /* 🔥 重要，避免被壓縮 */
  word-break: break-word;
}

/* 類型顏色 */
.cr-tag.leave {
  background: #f3e8f7;
  color: #7b1fa2;
}

.cr-tag.noshow {
  background: #ffebee;
  color: #b71c1c;
}

.cr-tag.coach-leave {
  background: #ede7f6;
  color: #4527a0;
}

.cr-tag.coach-noshow {
  background: #e3f2fd;
  color: #0d47a1;
}