/* ============================================================
   basic-style token 已由 base.html 載入的 basic-style.css 提供
   此檔只包含本頁專屬樣式，請勿在此重複定義全站共用規則
   ============================================================ */
tr,
td {
  font-size: 1.125rem;
}

table td,
table th {
  vertical-align: inherit;
}

table {
  max-width: 100%;
}

.set-table-word-center {
  vertical-align: middle;
  font-size: 1.125rem;
}

.set-text-center p {
  margin: 0.5rem 0;
}

.set-table-w10 {
  width: 10%;
}

.set-table-w20 {
  width: 20%;
}

.set-table-w30 {
  width: 30%;
}

.set-table-w50 {
  width: 50%;
}

.display-none {
  display: none;
}

.mobile-touch {
  display: inline-block;
  margin-bottom: 0.875rem;
  padding: 0.45rem 1rem;
  background-color: rgba(13, 111, 187, 0.08);
  color: var(--color-accent-dark, #0d6fbb);
  border: 1px solid rgba(13, 111, 187, 0.2);
  border-radius: 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03rem;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.05);
}

/* 媲美手機端質感的極簡灰色膠囊滾動條 */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  margin: 0 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

.table-wrapper.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.table-wrapper.is-dragging * {
  user-select: none !important;
  cursor: grabbing !important;
}

.table-width {
  width: max-content;
  min-width: 2500px;
}

/* 表頭文字可自然換行 */
.table-width .set-table-head td {
  white-space: normal;
}

/* 各欄位設定充裕寬度，徹底解決擁擠問題（其餘邊框、文字大小、內距完全保持原樣） */
.table-width td:nth-child(1) {
  min-width: 170px;
  width: 170px;
}

.table-width td:nth-child(2) {
  min-width: 115px;
  width: 115px;
  text-align: center;
}

.table-width td:nth-child(3) {
  min-width: 115px;
  width: 115px;
  text-align: center;
}

.table-width td:nth-child(4) {
  min-width: 580px;
  width: 580px;
}

.table-width td:nth-child(5) {
  min-width: 580px;
  width: 580px;
}

.table-width td:nth-child(6) {
  min-width: 450px;
  width: 450px;
}

.table-width td:nth-child(7) {
  min-width: 400px;
  width: 400px;
}

.table-width td:nth-child(8) {
  min-width: 120px;
  width: 120px;
}