/**
 * Grok8 全站設計系統（單一樣式來源）
 * 覆寫 AdminLTE / Bootstrap 4，並集中原各頁 <style> 規則。
 */

/* -------------------------------------------------------------------------
   1) Design tokens
   ------------------------------------------------------------------------- */
:root {
  --app-font-sans: "Inter", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* AdminLTE v4 預設 = Bootstrap 5 色票（與 https://adminlte.io/themes/v4/ 一致） */
  --app-primary: #0d6efd;
  --app-primary-dark: #0a58ca;
  --app-primary-rgb: 13, 110, 253;
  --app-primary-soft: rgba(var(--app-primary-rgb), 0.12);
  --app-accent: #6c757d;
  --app-success: #198754;
  --app-warning: #ffc107;
  --app-danger: #dc3545;
  --app-info: #0dcaf0;
  --app-bg: #f8f9fa;
  --app-surface: #ffffff;
  --app-border: #dee2e6;
  --app-text: #212529;
  --app-text-muted: #6c757d;
  --app-radius: 0.5rem;
  --app-radius-sm: 0.375rem;
  --app-shadow: 0 0 1px rgba(33, 37, 41, 0.125), 0 1px 3px rgba(33, 37, 41, 0.2);
  --app-shadow-md: 0 0 1px rgba(33, 37, 41, 0.15), 0 4px 12px rgba(33, 37, 41, 0.15);
  /* v4 頂列為白底＋底線；需品牌色頂欄的卡片請用 --app-brand-gradient */
  --app-header-bg: #ffffff;
  --app-header-border: #dee2e6;
  --app-header-gradient: var(--app-header-bg);
  --app-brand-gradient: linear-gradient(135deg, #0a58ca 0%, #0d6efd 52%, #6ea8fe 100%);
  --app-sidebar-bg: #ffffff;
  --app-sidebar-text: #343a40;
  --app-focus-ring: 0 0 0 0.25rem rgba(var(--app-primary-rgb), 0.25);
}

/* Bootstrap 5.3 data-bs-theme=dark 對應（AdminLTE v4 深色） */
body.dark-mode {
  --app-bg: #212529;
  --app-sidebar-bg: #343a40;
  --app-surface: #343a40;
  --app-surface-raised: #2b3035;
  --app-border: #495057;
  --app-text: #dee2e6;
  --app-text-muted: #adb5bd;
  --app-primary: #0d6efd;
  --app-primary-dark: #0a58ca;
  --app-primary-rgb: 13, 110, 253;
  --app-primary-soft: rgba(var(--app-primary-rgb), 0.22);
  --app-accent: #adb5bd;
  --app-focus-ring: 0 0 0 0.25rem rgba(var(--app-primary-rgb), 0.35);
  --app-header-bg: #343a40;
  --app-header-border: #495057;
  --app-header-gradient: #343a40;
  --app-sidebar-text: #c2c7d0;
  --app-shadow: 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
  --app-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
}

body.dark-mode .card {
  box-shadow: var(--app-shadow);
}

body.dark-mode .card-header {
  background: var(--app-surface-raised);
  border-bottom-color: var(--app-border);
  color: var(--app-text);
}

body.dark-mode .main-header.navbar-primary .nav-link,
body.dark-mode .main-header.navbar-primary .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.dark-mode .main-header.navbar-primary .nav-link:hover {
  color: #fff !important;
}

/* 淺色側欄 class 在深色模式下改為 v4 側欄變數（文字 #c2c7d0、hover 白底半透明） */
body.dark-mode .main-sidebar[class*="sidebar-light-"] {
  background-color: var(--app-sidebar-bg) !important;
}

body.dark-mode .main-sidebar[class*="sidebar-light-"] .brand-link,
body.dark-mode .main-sidebar[class*="sidebar-light-"] .brand-link .pushmenu {
  color: rgba(255, 255, 255, 0.9) !important;
  border-bottom-color: var(--app-border) !important;
}

body.dark-mode .main-sidebar[class*="sidebar-light-"] .brand-link:hover,
body.dark-mode .main-sidebar[class*="sidebar-light-"] .brand-link .pushmenu:hover {
  color: #fff !important;
}

body.dark-mode .nav-sidebar .nav-link {
  color: #c2c7d0;
}

body.dark-mode .nav-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark-mode .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active,
body.dark-mode .sidebar-light-primary .nav-sidebar > .nav-item.menu-open > .nav-link {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-left-color: var(--app-primary) !important;
}

body.dark-mode .main-sidebar[class*="sidebar-light-"] .nav-treeview > .nav-item > .nav-link {
  color: #c2c7d0;
}

body.dark-mode .main-sidebar[class*="sidebar-light-"] .nav-treeview > .nav-item > .nav-link:hover,
body.dark-mode .main-sidebar[class*="sidebar-light-"] .nav-treeview > .nav-item > .nav-link:focus {
  color: #fff;
}

body.dark-mode .main-sidebar[class*="sidebar-light-"] .nav-header {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-mode .brand-link {
  border-bottom-color: var(--app-border);
}

/* -------------------------------------------------------------------------
   2) Typography & base
   ------------------------------------------------------------------------- */
html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--app-font-sans);
  color: var(--app-text);
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--app-text);
}

.content-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.text-muted {
  color: var(--app-text-muted) !important;
}

a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item) {
  color: var(--app-primary-dark);
}
a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):hover {
  color: var(--app-primary);
}

/* -------------------------------------------------------------------------
   3) Layout shell (AdminLTE)
   ------------------------------------------------------------------------- */
.content-wrapper {
  background: var(--app-bg) !important;
}

.main-footer {
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
  color: var(--app-text-muted);
  font-size: 0.875rem;
}

/* Navbar（v4：白頂列＋底線；深色模式為深灰頂列） */
.main-header.navbar-primary {
  background: var(--app-header-gradient) !important;
  border-bottom: 1px solid var(--app-header-border) !important;
  box-shadow: none;
}
.main-header.navbar-primary .nav-link,
.main-header.navbar-primary .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}
.main-header.navbar-primary .nav-link:hover {
  color: #fff !important;
}

.main-header.navbar-white,
.main-header.navbar-light {
  background: var(--app-header-bg) !important;
  border-bottom: 1px solid var(--app-header-border) !important;
  box-shadow: none;
}

/* Sidebar（淺色側欄 + BS5 primary 選中態，對齊 AdminLTE v4 淺色主題） */
.main-sidebar {
  background-color: var(--app-sidebar-bg) !important;
}
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item.menu-open > .nav-link {
  background-color: var(--app-primary) !important;
  color: #fff !important;
  border-left: 3px solid var(--app-primary-dark) !important;
}
.nav-sidebar .nav-link {
  color: rgba(52, 58, 64, 0.92);
}
.nav-sidebar .nav-link:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #212529;
}
.brand-link {
  border-bottom: 1px solid var(--app-border);
}

/* Cards */
.card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  background: var(--app-surface);
}
.card-header {
  border-bottom: 1px solid var(--app-border);
  background: rgba(241, 245, 249, 0.65);
  font-weight: 600;
}
.card-outline.card-primary {
  border-top: 3px solid var(--app-primary);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  font-size: 0.875rem;
}

/* Buttons — primary brand */
.btn-primary {
  background-color: var(--app-primary);
  border-color: var(--app-primary-dark);
  font-weight: 500;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--app-primary-dark);
  border-color: #0a53be;
}
.btn-primary:focus {
  box-shadow: var(--app-focus-ring);
}
.btn-outline-primary {
  color: var(--app-primary-dark);
  border-color: var(--app-primary);
}
.btn-outline-primary:hover {
  background: var(--app-primary);
  border-color: var(--app-primary-dark);
  color: #fff;
}

.btn-secondary {
  font-weight: 500;
}

.text-primary {
  color: var(--app-primary-dark) !important;
}
.bg-primary {
  background-color: var(--app-primary) !important;
}
.badge-primary {
  background-color: var(--app-primary-dark) !important;
}

.border-primary {
  border-color: var(--app-primary) !important;
}

/* Alerts — softer, consistent radius */
.alert {
  border-radius: var(--app-radius-sm);
  border-width: 1px;
}

/* Forms */
.form-control:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--app-primary-rgb), 0.2);
}
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--app-primary);
  border-color: var(--app-primary-dark);
}

/* Tables (global polish) */
.table thead th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--app-text-muted);
  border-bottom-width: 1px;
}
.table-hover tbody tr:hover {
  background-color: rgba(var(--app-primary-rgb), 0.06);
}

/* Empty / loading utilities */
.app-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--app-text-muted);
  font-size: 0.9375rem;
}
.app-loading-inline {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--app-border);
  border-top-color: var(--app-primary);
  border-radius: 50%;
  animation: app-spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes app-spin {
  to { transform: rotate(360deg); }
}

/* Preloader（勿用 ::after 旋轉圈：AdminLTE 結束時只隱藏子元素，偽元素會殘留在頂部） */
.preloader {
  background: var(--app-bg) !important;
}

/* setting_hotel_info.php */
.app-settings-hotel .nav-tabs .nav-link,
.app-settings-hotel .form-group label {
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   4) Login / register (AdminLTE login-page)
   ------------------------------------------------------------------------- */
body.hold-transition.login-page {
  background: linear-gradient(160deg, #212529 0%, #0a58ca 48%, #0d6efd 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-page .login-box {
  width: 100%;
  max-width: 420px;
}
.login-page .card {
  border: none;
  box-shadow: var(--app-shadow-md);
  overflow: hidden;
}
.login-page .card-outline.card-primary {
  border: none;
  border-top: 4px solid var(--app-primary);
}
.login-page .card-header {
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}
.login-page .card-header .h1,
.login-page .card-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--app-text);
  margin: 0;
}
.login-page .login-box-msg {
  font-size: 0.9375rem;
  color: var(--app-text-muted);
}

/* -------------------------------------------------------------------------
   5) Select2 + Bootstrap4（全站共用）
   ------------------------------------------------------------------------- */
.select2-container--bootstrap4 .select2-selection--multiple,
.select2-container--bootstrap4 .select2-selection--single {
  min-height: 38px;
  border-radius: var(--app-radius-sm);
}
.select2-container--bootstrap4 .select2-selection--multiple {
  background-color: var(--app-surface);
  border: 1px solid #ced4da;
}
.select2-container--bootstrap4 .select2-selection__choice {
  background-color: var(--app-primary);
  border: none;
  color: #fff;
}
.select2-container--bootstrap4 .select2-selection__choice__remove {
  color: #fff;
  margin-right: 4px;
}
.select2-container--bootstrap4 .select2-selection__choice__remove:hover {
  color: #fef08a;
}
body.dark-mode .select2-container--bootstrap4 .select2-selection--multiple,
body.dark-mode .select2-container--bootstrap4 .select2-selection--single {
  background-color: var(--app-surface-raised);
  border-color: var(--app-border);
  color: var(--app-text);
}
body.dark-mode .select2-container--bootstrap4 .select2-selection__rendered {
  color: var(--app-text);
}
body.dark-mode .select2-container--bootstrap4 .select2-dropdown {
  background-color: var(--app-surface);
  border-color: var(--app-border);
}
body.dark-mode .select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
  background-color: var(--app-surface-raised);
  color: var(--app-text);
  border: 1px solid var(--app-border);
}
body.dark-mode .select2-container--bootstrap4 .select2-results__option {
  color: var(--app-text);
  background-color: var(--app-surface);
}
body.dark-mode .select2-container--bootstrap4 .select2-results__option--highlighted {
  background-color: var(--app-surface-raised);
  color: var(--app-text);
}
body.dark-mode .select2-container--bootstrap4 .select2-selection__choice {
  background-color: #2e2e32;
  border: 1px solid var(--app-border);
  color: var(--app-text);
}
body.dark-mode .select2-container--bootstrap4 .select2-selection__choice__remove {
  color: var(--app-text-muted);
}
body.dark-mode .select2-container--bootstrap4 .select2-selection__choice__remove:hover {
  color: var(--app-text);
}

/* -------------------------------------------------------------------------
   6) booking_status_daily.php
   ------------------------------------------------------------------------- */
.checked-in-row { background-color: rgba(5, 150, 105, 0.18) !important; }
.no-room-row { background-color: rgba(220, 53, 69, 0.15) !important; }
.warning-row { background-color: rgba(220, 53, 69, 0.35) !important; }
.duplicate-room-row { background-color: rgba(234, 88, 12, 0.22) !important; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background-color: var(--app-primary-soft) !important; }
#checkinTodayCard.edit-room-mode-active .room-editable-row { cursor: pointer; }
#checkinTodayCard.edit-room-mode-active .room-editable-row:hover {
  background-color: rgba(234, 179, 8, 0.2) !important;
}
#video {
  width: 100%;
  max-height: 400px;
  background: #000;
  border-radius: var(--app-radius);
}
@media (max-width: 767.98px) {
  .hide-on-mobile { display: none !important; }
}
.booking-daily-table-wrap .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.booking-daily-table-wrap .table th,
.booking-daily-table-wrap .table td {
  vertical-align: middle;
  padding: 0.65rem 0.5rem;
  white-space: nowrap;
}
.booking-daily-table-wrap th.room-no,
.booking-daily-table-wrap td.room-no {
  min-width: 70px;
  max-width: 90px;
  font-weight: 600;
  text-align: center;
}
.booking-daily-table-wrap th.guest-name,
.booking-daily-table-wrap td.guest-name {
  min-width: 160px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}
.booking-daily-table-wrap th.room-type,
.booking-daily-table-wrap td.room-type,
.booking-daily-table-wrap th.nights,
.booking-daily-table-wrap td.nights {
  min-width: 70px;
  font-size: 0.9rem;
}
@media (max-width: 767.98px) {
  .booking-daily-table-wrap .table th,
  .booking-daily-table-wrap .table td {
    padding: 0.55rem 0.45rem;
    font-size: 0.92rem;
  }
  .booking-daily-table-wrap th.guest-name,
  .booking-daily-table-wrap td.guest-name {
    min-width: 0;
    width: auto !important;
  }
  .booking-daily-table-wrap th.room-type,
  .booking-daily-table-wrap td.room-type,
  .booking-daily-table-wrap th.nights,
  .booking-daily-table-wrap td.nights {
    font-size: 0.82rem;
    min-width: 60px;
    padding: 0.55rem 0.35rem;
  }
  .booking-daily-table-wrap th.room-no,
  .booking-daily-table-wrap td.room-no {
    min-width: 65px;
    max-width: 80px;
    font-size: 0.95rem;
  }
}
@media (max-width: 575.98px) {
  .booking-daily-table-wrap .table th,
  .booking-daily-table-wrap .table td {
    font-size: 0.88rem;
    padding: 0.5rem 0.4rem;
  }
  .booking-daily-table-wrap th.room-no,
  .booking-daily-table-wrap td.room-no {
    min-width: 60px;
  }
}
#preview { margin-top: 1rem; }
#preview .col-6,
#preview .col-md-4 { padding: 0.4rem; }
#preview img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (max-width: 767.98px) {
  #preview .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  #preview img { max-height: 140px; }
}
@media (max-width: 575.98px) {
  #preview img { max-height: 120px; }
}

/* -------------------------------------------------------------------------
   7) Import orders — status dots (setting_import_order.php)
   ------------------------------------------------------------------------- */
.status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.dot-new { background: var(--app-success); }
.dot-edit { background: var(--app-warning); }
.dot-dupe { background: var(--app-danger); }
.dot-delete { background: #475569; }

/* -------------------------------------------------------------------------
   8) booking_status_weekly.php
   ------------------------------------------------------------------------- */
.hourly-badge {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 10;
  padding: 4px 8px !important;
  font-size: 10px !important;
}
.cell-content {
  display: block;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 6px;
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}
.booking-weekly-grid .table {
  table-layout: fixed;
  width: 100%;
  min-width: 900px;
}
.booking-weekly-grid .table td,
.booking-weekly-grid .table th {
  position: relative;
  vertical-align: middle;
  height: 40px;
  min-height: 40px;
  padding: 0 !important;
  overflow: hidden;
}
.booking-weekly-grid th.sticky-room,
.booking-weekly-grid td.sticky-room {
  position: sticky;
  left: 0;
  background: var(--app-sidebar-bg) !important;
  color: #fff !important;
  z-index: 11;
  font-weight: bold;
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  text-align: center;
}
.booking-weekly-grid .table th.date-header,
.booking-weekly-grid .table td.date-cell {
  min-width: 130px;
  max-width: 130px;
  width: 130px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.booking-weekly-grid td[colspan] {
  width: calc(130px * var(--colspan, 1)) !important;
  max-width: calc(180px * var(--colspan, 1)) !important;
  min-width: calc(120px * var(--colspan, 1)) !important;
}
.bg-checked-in {
  font-weight: bold;
  background-color: rgba(5, 150, 105, 0.95) !important;
  color: white;
  border: 2px solid var(--app-border) !important;
}
.bg-pending {
  font-weight: bold;
  background-color: rgba(220, 53, 69, 0.95) !important;
  color: white;
  border: 2px solid var(--app-border) !important;
}
.warn-unassigned {
  color: var(--app-success);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
}
.warn-duplicate {
  color: var(--app-danger);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
}
@media (max-width: 768px) {
  .booking-weekly-grid .table { min-width: 800px; }
  .booking-weekly-grid .table th.date-header,
  .booking-weekly-grid .table td.date-cell {
    min-width: 110px;
    max-width: 110px;
    width: 110px;
  }
  .booking-weekly-grid td[colspan] {
    width: calc(110px * var(--colspan, 1)) !important;
    max-width: calc(140px * var(--colspan, 1)) !important;
  }
  .cell-content {
    font-size: 0.85rem;
    padding: 4px 5px;
  }
}

/* -------------------------------------------------------------------------
   9) group_assign_rooms.php
   ------------------------------------------------------------------------- */
.group-order-card {
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--app-border);
  transition: box-shadow 0.2s, transform 0.15s;
  margin-bottom: 0.75rem;
}
.group-order-card:hover,
.group-order-card:focus {
  box-shadow: var(--app-shadow-md);
  transform: translateY(-1px);
}
.group-order-card .meta {
  font-size: clamp(0.8rem, 3.2vw, 0.95rem);
  color: var(--app-text-muted);
}
.group-order-card .guest-name {
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: 600;
}
.assignment-toolbar .input-group { max-width: 220px; }
@media (min-width: 768px) {
  .assignment-toolbar .input-group { max-width: 260px; }
}
.room-card {
  transition: all 0.22s ease;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  box-shadow: var(--app-shadow);
}
.room-card.selected {
  background: linear-gradient(135deg, var(--app-success), #047857) !important;
  color: #fff !important;
  border-color: #065f46;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.35);
}
.capacity-input {
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  font-size: clamp(0.85rem, 3vw, 1rem);
}
.room-card .room-cap-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
}
.room-card .room-num-label {
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  line-height: 1.2;
  white-space: nowrap;
}
.room-card .room-cap-input {
  width: 3rem;
  min-width: 2.5rem;
  flex: 0 0 auto;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}
.room-card.selected .room-cap-input {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
#assignmentPanel {
  display: none;
  border-radius: 12px;
}
.group-assign-page .progress { height: 10px; margin-top: 8px; }
.btn-assign-responsive {
  width: 100%;
  font-size: clamp(0.82rem, 3.5vw, 1.05rem);
  padding: clamp(0.45rem, 2.2vw, 0.7rem) clamp(0.6rem, 3vw, 1.1rem);
  line-height: 1.35;
  border-radius: 10px;
}
@media (min-width: 768px) {
  .btn-assign-responsive { font-size: 1rem; padding: 0.55rem 1rem; }
}
@media (min-width: 1200px) {
  .btn-assign-responsive { font-size: 1.05rem; padding: 0.65rem 1.15rem; }
}
.assign-summary-card { border-radius: 12px; }

/* -------------------------------------------------------------------------
   10) widget_calendar_overview.php
   ------------------------------------------------------------------------- */
.cw-calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}
.cw-calendar th {
  text-align: center;
  font-weight: 600;
  padding: 0.35rem 0;
  opacity: 0.85;
}
.cw-calendar td {
  height: 76px;
  border-radius: var(--app-radius-sm);
  border: 1px solid var(--app-border);
  vertical-align: top;
  text-align: center;
  position: relative;
}
body.dark-mode .cw-calendar td {
  border-color: rgba(255, 255, 255, 0.12);
}
.cw-day { font-weight: 700; margin-top: 6px; }
.cw-tag {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}
body.dark-mode .cw-tag { background: rgba(255, 255, 255, 0.18); }
.cw-today { box-shadow: inset 0 0 0 2px rgba(var(--app-primary-rgb), 0.75); }
.cw-level-high { background: rgba(5, 150, 105, 0.14); }
.cw-level-mid { background: rgba(234, 179, 8, 0.18); }
.cw-level-low { background: rgba(220, 53, 69, 0.14); }
.cw-head-btn { border: 0; background: transparent; color: var(--app-text); }

/* -------------------------------------------------------------------------
   11) widget_group_information.php
   ------------------------------------------------------------------------- */
.widget-group-order-card {
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--app-border);
  transition: box-shadow 0.2s, transform 0.15s;
  margin-bottom: 0.65rem;
}
.widget-group-order-card:hover,
.widget-group-order-card:focus {
  box-shadow: var(--app-shadow-md);
  transform: translateY(-1px);
}
.widget-group-order-card .guest-name { font-weight: 600; font-size: 1rem; }
.widget-group-order-card .meta { font-size: 0.88rem; color: var(--app-text-muted); }
#modal_widget_group_info .modal-body-cn {
  font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-size: 1rem;
}

/* -------------------------------------------------------------------------
   12) widget_payment_longterm_grid.php
   ------------------------------------------------------------------------- */
.longterm-excel-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
}
.longterm-excel-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.72rem;
  margin-bottom: 0;
  width: max-content;
  min-width: 100%;
}
.longterm-excel-table th,
.longterm-excel-table td {
  border-right: 1px solid var(--app-border);
  border-bottom: 1px solid var(--app-border);
  padding: 0.2rem 0.35rem;
  vertical-align: middle;
}
.longterm-excel-table thead th {
  background: #f8f9fa;
  font-weight: 600;
  white-space: nowrap;
}
.longterm-excel-table .lt-sticky-room,
.longterm-excel-table .lt-sticky-guest {
  position: sticky;
  background: #fff;
  z-index: 2;
  box-shadow: 2px 0 0 var(--app-border);
  text-align: left;
}
.longterm-excel-table .lt-sticky-room { left: 0; min-width: 3.25rem; z-index: 3; }
.longterm-excel-table .lt-sticky-guest {
  left: 3.25rem;
  min-width: 5.5rem;
  max-width: 8rem;
  z-index: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.longterm-excel-table th.lt-day-h {
  min-width: 1.55rem;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}
.longterm-excel-table td.lt-day-cell { padding: 0; }
.longterm-excel-table .lt-paid {
  background: #a7f3d0 !important;
  height: 1.35rem;
}
.longterm-excel-table td.lt-day-clickable { cursor: pointer; }
.longterm-excel-table td.lt-day-clickable:hover { filter: brightness(0.97); }
.longterm-excel-table td.lt-drag-preview {
  background: rgba(var(--app-primary-rgb), 0.2) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--app-primary-rgb), 0.45);
}
body.dark-mode .longterm-excel-table td.lt-drag-preview {
  background: rgba(var(--app-primary-rgb), 0.35) !important;
}
body.lt-grid-dragging { user-select: none; -webkit-user-select: none; }
.longterm-excel-mini {
  user-select: none;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.75rem;
}
.longterm-excel-mini td {
  width: 2rem;
  height: 2rem;
  text-align: center;
  border: 1px solid var(--app-border);
  border-radius: 0.2rem;
  cursor: pointer;
  vertical-align: middle;
}
.longterm-excel-mini td.lt-mini-out {
  cursor: not-allowed;
  opacity: 0.35;
  background: #e9ecef !important;
}
.longterm-excel-mini td.lt-mini-sel {
  background: var(--app-primary-soft) !important;
  border-color: var(--app-primary);
}
.longterm-excel-mini td.lt-mini-anchor {
  box-shadow: inset 0 0 0 2px var(--app-primary);
}
body.dark-mode .longterm-excel-mini td { border-color: #555; }
body.dark-mode .longterm-excel-mini td.lt-mini-out { background: #2b3035 !important; }
body.dark-mode .longterm-excel-mini td.lt-mini-sel {
  background: rgba(var(--app-primary-rgb), 0.35) !important;
}
.longterm-excel-table tbody tr:hover .lt-sticky-room,
.longterm-excel-table tbody tr:hover .lt-sticky-guest {
  background: #f1f3f5;
}
body.dark-mode .longterm-excel-wrap { border-color: rgba(255, 255, 255, 0.125); }
body.dark-mode .longterm-excel-table th,
body.dark-mode .longterm-excel-table td { border-color: #454d55; }
body.dark-mode .longterm-excel-table thead th {
  background: #343a40;
  color: #ced4da;
}
body.dark-mode .longterm-excel-table .lt-sticky-room,
body.dark-mode .longterm-excel-table .lt-sticky-guest {
  background: #343a40;
  color: #e9ecef;
  box-shadow: 2px 0 0 #454d55;
}
body.dark-mode .longterm-excel-table .lt-paid { background: #1e7e34 !important; }
body.dark-mode .longterm-excel-table tbody tr:hover .lt-sticky-room,
body.dark-mode .longterm-excel-table tbody tr:hover .lt-sticky-guest {
  background: #454d55;
}
body.dark-mode .widget-payment-longterm-grid.card-outline.card-primary {
  border-color: rgba(var(--app-primary-rgb), 0.4);
}

/* -------------------------------------------------------------------------
   13) setting_invoice_pdf_layout.php
   ------------------------------------------------------------------------- */
.invoice-preview-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
  overflow: auto;
  min-height: 360px;
  background: var(--app-bg);
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
}
body.dark-mode .invoice-preview-wrapper {
  background: #343a40;
  border-color: #454d55;
}
.a4-preview-scaler { overflow: hidden; flex-shrink: 0; }
.a4-preview {
  width: 210mm;
  min-height: 297mm;
  background: #fff;
  border: 2px solid #343a40;
  position: relative;
  box-shadow: var(--app-shadow-md);
  transform-origin: 0 0;
  transition: transform 0.2s ease;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1mm, transparent 1mm),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1mm, transparent 1mm);
  background-size: 10mm 10mm;
}
.a4-preview > div {
  position: absolute;
  border: 2px dashed #e74c3c;
  background: rgba(231, 76, 60, 0.12);
  color: #c0392b;
  font-weight: 600;
  font-size: 10px;
  padding: 4px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  text-align: center;
  line-height: 1.2;
}
.a4-preview > div:hover {
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
  box-shadow: 0 0 8px rgba(var(--app-primary-rgb), 0.35);
}
.coord-input { width: 72px; text-align: center; font-size: 0.875rem; }
.highlight-row {
  background-color: var(--app-primary-soft) !important;
  transition: background-color 1s;
}
#coordTable thead th { font-size: 0.8rem; white-space: nowrap; }
.invoice-layout-form .card {
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}
.invoice-layout-form .form-section {
  border-bottom: 1px solid var(--app-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.invoice-layout-form .form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
body.dark-mode .invoice-layout-form .form-section { border-color: #454d55; }
body.dark-mode .invoice-layout-form .form-section h6.text-muted {
  color: #adb5bd !important;
}
@media (max-width: 991px) {
  .invoice-preview-wrapper { min-height: 320px; }
}

/* -------------------------------------------------------------------------
   14) import_orders_auto.php（公開頁，獨立載入 AdminLTE）
   ------------------------------------------------------------------------- */
body.page-standalone-import {
  background: var(--app-bg) !important;
}
.page-standalone-import .standalone-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.page-standalone-import .standalone-top { text-align: center; margin-bottom: 1.5rem; }
.page-standalone-import .standalone-top a {
  color: var(--app-primary-dark);
  font-size: 1rem;
}
.page-standalone-import .card {
  border-radius: 15px;
  box-shadow: var(--app-shadow-md);
}
.page-standalone-import .card-header {
  background: var(--app-brand-gradient);
  color: #fff;
  border: none;
}

/* -------------------------------------------------------------------------
   15) monthly_order_combined.php 列印預覽（@page 見該頁一行 inline，避免影響後台其他列印）
   ------------------------------------------------------------------------- */
body.page-monthly-receipt-print {
  margin: 0;
  padding: 0;
  font-family: "KaiTi", "楷體", "DFKai-SB", "Microsoft YaHei", "SimSun", serif;
  background: #f8f9fa;
}
.page-monthly-receipt-print .instructions {
  text-align: center;
  padding: 20px;
  background: #fff3cd;
  border-bottom: 1px solid #ffeeba;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.page-monthly-receipt-print .page {
  width: 297mm;
  height: 210mm;
  background: white;
  position: relative;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.page-monthly-receipt-print .half {
  position: absolute;
  width: 148.5mm;
  height: 210mm;
  top: 0;
}
.page-monthly-receipt-print .left-half { left: 0; }
.page-monthly-receipt-print .right-half {
  left: 148.5mm;
  border-left: 1px dashed #999;
}
.page-monthly-receipt-print .block {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 1.3;
  word-break: break-word;
}
.page-monthly-receipt-print .vertical-rl { writing-mode: vertical-rl; text-orientation: mixed; }
.page-monthly-receipt-print .horizontal-tb { writing-mode: horizontal-tb; }
.page-monthly-receipt-print .text-left { text-align: left; }
.page-monthly-receipt-print .text-center { text-align: center; }
.page-monthly-receipt-print .text-right { text-align: right; }
.page-monthly-receipt-print .align-top { display: flex; align-items: flex-start; }
.page-monthly-receipt-print .align-middle { display: flex; align-items: center; }
.page-monthly-receipt-print .align-bottom { display: flex; align-items: flex-end; }
@media print {
  .page-monthly-receipt-print .instructions { display: none; }
  .page-monthly-receipt-print { background: white; }
  .page-monthly-receipt-print .page { margin: 0; box-shadow: none; }
}

/* -------------------------------------------------------------------------
   16) self_checkin.php（Bootstrap 5，body.page-self-checkin）
   ------------------------------------------------------------------------- */
body.page-self-checkin {
  background: var(--app-bg);
  font-family: var(--app-font-sans);
  color: var(--app-text);
  min-height: 100vh;
  padding: 1rem;
  margin: 0;
}
body.page-self-checkin .self-checkin-translate-bar {
  max-width: 540px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}
body.page-self-checkin .self-checkin-translate-hint {
  font-size: 0.85rem;
  color: var(--app-text-muted);
  margin-right: auto;
}
body.page-self-checkin .self-checkin-translate-bar #google_translate_element {
  font-size: 16px;
  line-height: 1.3;
  min-height: 2.25rem;
}
body.page-self-checkin .self-checkin-translate-bar #google_translate_element select,
body.page-self-checkin .self-checkin-translate-bar .goog-te-combo {
  font-size: 16px !important;
  max-width: 100%;
}
body.page-self-checkin .self-checkin-translate-bar .goog-te-gadget {
  font-family: var(--app-font-sans) !important;
}
body.page-self-checkin .self-checkin-translate-bar .goog-te-gadget-simple .goog-te-branding {
  display: none;
}
body.page-self-checkin .self-checkin-contact {
  max-width: 540px;
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
}
body.page-self-checkin .self-checkin-contact-card {
  background: var(--app-surface);
  border-radius: 16px;
  box-shadow: var(--app-shadow-md);
  border: 1px solid var(--app-border);
  padding: 1.35rem 1rem 1.5rem;
}
body.page-self-checkin .self-checkin-contact-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--app-text);
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}
body.page-self-checkin .self-checkin-contact-text {
  color: var(--app-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}
body.page-self-checkin .self-checkin-qr-row {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
body.page-self-checkin .self-checkin-qr-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.25rem;
  border-radius: 12px;
  color: var(--app-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.page-self-checkin .self-checkin-qr-tile:hover {
  transform: translateY(-2px);
  color: var(--app-text);
}
body.page-self-checkin .self-checkin-qr-tile:hover .self-checkin-qr-frame {
  box-shadow: var(--app-shadow-md);
  border-color: var(--app-border);
}
body.page-self-checkin .self-checkin-qr-frame {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 12px;
  line-height: 0;
  border: 1px solid var(--app-border);
  background: linear-gradient(180deg, var(--app-bg) 0%, var(--app-surface) 100%);
  box-shadow: var(--app-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
body.page-self-checkin .self-checkin-qr-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
body.page-self-checkin .self-checkin-qr-caption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
body.page-self-checkin .self-checkin-qr-caption i { font-size: 1.05rem; }
body.page-self-checkin .self-checkin-qr-caption--whatsapp { color: #128c7e; }
body.page-self-checkin .self-checkin-qr-caption--wechat { color: #07c160; }
body.page-self-checkin .self-checkin-qr-tile:hover .self-checkin-qr-caption--whatsapp { color: #0d6f64; }
body.page-self-checkin .self-checkin-qr-tile:hover .self-checkin-qr-caption--wechat { color: #059c52; }
body.page-self-checkin .wizard-container {
  max-width: 540px;
  margin: 0 auto;
  background: var(--app-surface);
  border-radius: 16px;
  box-shadow: var(--app-shadow-md);
  overflow: hidden;
  border: 1px solid var(--app-border);
}
body.page-self-checkin .wizard-header {
  padding: 1.5rem 1.5rem 0.75rem;
  text-align: center;
}
body.page-self-checkin .wizard-header h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 0.25rem;
}
body.page-self-checkin .wizard-header p {
  color: var(--app-text-muted);
  font-size: 0.95rem;
  margin: 0;
}
body.page-self-checkin .self-checkin-scope-note {
  text-align: left;
  line-height: 1.45;
  padding: 0.55rem 0.7rem;
  background: var(--app-bg);
  border-radius: 8px;
  border: 1px solid var(--app-border);
  color: var(--app-text-muted) !important;
}
body.page-self-checkin .progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: var(--app-bg);
  position: relative;
}
body.page-self-checkin .progress-steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: var(--app-border);
  z-index: 0;
}
body.page-self-checkin .step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 70px;
}
body.page-self-checkin .step-circle {
  width: 50px;
  height: 50px;
  background: var(--app-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  font-size: 1.3rem;
  color: var(--app-text-muted);
  border: 3px solid var(--app-surface);
  transition: all 0.3s;
}
body.page-self-checkin .step-item.active .step-circle {
  background: var(--app-primary);
  color: white;
  border-color: var(--app-primary);
}
body.page-self-checkin .step-item.completed .step-circle {
  background: var(--app-primary-dark);
  color: white;
  border-color: var(--app-primary-dark);
}
body.page-self-checkin .step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--app-text-muted);
}
body.page-self-checkin .step-item.active .step-label,
body.page-self-checkin .step-item.completed .step-label {
  color: var(--app-text);
  font-weight: 600;
}
body.page-self-checkin .step-content {
  padding: 1.5rem 1.8rem 2.5rem;
}
body.page-self-checkin .btn-gray {
  background: #64748b;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}
body.page-self-checkin .btn-gray:hover { background: #475569; }
body.page-self-checkin .btn-gray-outline {
  background: transparent;
  border: 1px solid #64748b;
  color: #64748b;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
}
body.page-self-checkin .btn-gray-outline:hover {
  background: var(--app-bg);
  color: #475569;
}
body.page-self-checkin .form-control,
body.page-self-checkin .form-select {
  border-color: var(--app-border);
  background: var(--app-surface);
}
body.page-self-checkin .alert { border-radius: 10px; }
body.page-self-checkin .preview img {
  border-radius: 8px;
  max-width: 100%;
  margin: 0.5rem 0;
}
@media (max-width: 576px) {
  body.page-self-checkin .progress-steps { padding: 1rem 1.2rem; }
  body.page-self-checkin .step-circle { width: 42px; height: 42px; font-size: 1.1rem; }
  body.page-self-checkin .step-item { width: 60px; }
}

/* -------------------------------------------------------------------------
   17) order_daily_invoice_print.php（@page 見該頁一行 inline；--inv-* 變數由頁內 :root 設定）
   ------------------------------------------------------------------------- */
body.invoice-print-page {
  margin: 0;
  padding: 0;
  font-family: var(--inv-font-family, system-ui, sans-serif);
  font-size: var(--inv-font-size, 11pt);
  background: #f8f9fa;
  color: #111;
}
body.invoice-print-page .instructions {
  text-align: center;
  padding: 16px;
  background: #fff3cd;
  border-bottom: 1px solid #ffeeba;
  font-size: 11pt;
  margin-bottom: 12px;
}
body.invoice-print-page .page {
  width: 210mm;
  min-height: 297mm;
  margin: 12px auto;
  background: #fff;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
body.invoice-print-page .inv-block { position: absolute; }
body.invoice-print-page .inv-block-inner {
  width: 100%;
  height: 100%;
  line-height: 1.35;
  word-break: break-word;
}
body.invoice-print-page .inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--inv-table-font, 10pt);
}
body.invoice-print-page .inv-table th,
body.invoice-print-page .inv-table td {
  border: 1px solid #222;
  padding: 3px 5px;
  vertical-align: top;
  text-align: left;
}
body.invoice-print-page .inv-table th {
  background: #f0f0f0;
  font-weight: 600;
  white-space: nowrap;
}
body.invoice-print-page .inv-invoice-title { font-weight: 700; text-align: center; }
body.invoice-print-page .inv-total-line { font-weight: 700; text-align: right; }
@media print {
  body.invoice-print-page .instructions { display: none; }
  body.invoice-print-page { background: #fff; }
  body.invoice-print-page .page { margin: 0; box-shadow: none; }
}

/* -------------------------------------------------------------------------
   18) monthly_order_combined.php — 版型預覽（後台編輯器）
   ------------------------------------------------------------------------- */
.monthly-preview-wrapper {
  width: 100%;
  min-height: 280px;
  overflow-x: auto;
  overflow-y: hidden;
}
.monthly-preview-inner {
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
  transition: width 0.15s ease, height 0.15s ease;
}
.monthly-a4-preview {
  width: 297mm;
  height: 210mm;
  border: 2px solid #343a40;
  position: relative;
  box-shadow: var(--app-shadow-md);
  transform-origin: 0 0;
  transition: transform 0.2s ease;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1mm, transparent 1mm),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1mm, transparent 1mm);
  background-size: 10mm 10mm;
  overflow: hidden;
}
.monthly-a4-midline {
  position: absolute;
  left: 148.5mm;
  top: 0;
  height: 210mm;
  border-left: 1px dashed rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.monthly-a4-preview .m-block {
  position: absolute;
  border: 2px dashed #e74c3c;
  background: rgba(231, 76, 60, 0.12);
  color: #c0392b;
  font-weight: 600;
  font-size: 10px;
  padding: 4px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  text-align: center;
  line-height: 1.2;
  user-select: none;
}
.monthly-a4-preview .m-block:hover {
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
  box-shadow: 0 0 8px rgba(var(--app-primary-rgb), 0.35);
}
.monthly-a4-preview .m-block.is-right {
  border-color: #20c997;
  background: rgba(32, 201, 151, 0.12);
  color: #0f5132;
}
.monthly-a4-preview .m-block.is-right:hover {
  border-color: var(--app-primary-dark);
  background: rgba(var(--app-primary-rgb), 0.2);
  color: #0b3d91;
}
@media (max-width: 991px) {
  .monthly-preview-wrapper { min-height: 240px; }
}
input.form-control.coord-input.monthly-layout-input {
  width: 78px;
}

/* -------------------------------------------------------------------------
   19) booking_status_daily_public_cn.php（公開簡化版）
   ------------------------------------------------------------------------- */
body.booking-status-public-cn .content-wrapper {
  min-height: 100vh;
  background: transparent;
}
body.booking-status-public-cn .card {
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-md);
  border: 1px solid var(--app-border);
}
body.booking-status-public-cn .card-header {
  background: var(--app-brand-gradient);
  color: #fff;
  border: none;
}

/* -------------------------------------------------------------------------
   20) homework/*.php（Bootstrap 5）
   ------------------------------------------------------------------------- */
body.page-homework-list #msg {
  min-height: 1.5rem;
}
body.page-homework-fill .url-preview {
  word-break: break-all;
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   21) 糖果系配色（僅白底／未開深色模式時套用）
   ------------------------------------------------------------------------- */
body.theme-palette-light-candy:not(.dark-mode) {
  --app-primary: #e11d8c;
  --app-primary-dark: #be185d;
  --app-primary-rgb: 225, 29, 140;
  --app-primary-soft: rgba(var(--app-primary-rgb), 0.14);
  --app-accent: #8b5cf6;
  --app-success: #10b981;
  --app-warning: #f59e0b;
  --app-danger: #ef4444;
  --app-info: #06b6d4;
  --app-bg: #fff7fb;
  --app-surface: #ffffff;
  --app-border: #fbcfe8;
  --app-text: #4c1d3d;
  --app-text-muted: #a21caf;
  --app-header-gradient: linear-gradient(125deg, #c026d3 0%, #e11d8c 42%, #f472b6 72%, #34d399 100%);
  --app-sidebar-bg: #581c87;
  --app-sidebar-text: #fce7f3;
}
