/* ============================================================
   HPMS MODERN GLASSMORPHISM THEME
   Design: Floating Typography & Soft White Glass Lining
   Scoped exclusively for Maxcloud Hotel PMS (HPMS)
   ============================================================ */

:root {
  color-scheme: dark;
  --bg-base:        transparent;
  --bg-surface:     rgba(10, 18, 32, 0.32);
  --bg-card:        rgba(10, 18, 32, 0.3);
  --bg-elevated:    rgba(15, 23, 42, 0.4);
  --sidebar-bg:     rgba(10, 18, 32, 0.65);

  --gold:           #38bdf8;
  --gold-light:     #7dd3fc;
  --gold-dark:      #0284c7;
  --gold-glow:      rgba(56, 189, 248, 0.25);

  --text:           #ffffff;
  --text-primary:   #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted:     #cbd5e1;

  --border:         rgba(255, 255, 255, 0.22);
  --border-gold:    rgba(56, 189, 248, 0.35);

  --green:          #10B981;
  --green-bg:       rgba(16, 185, 129, 0.18);
  --red:            #EF4444;
  --red-bg:         rgba(239, 68, 68, 0.18);
  --yellow:         #F59E0B;
  --yellow-bg:      rgba(245, 158, 11, 0.18);
  --blue:           #38bdf8;
  --blue-bg:        rgba(56, 189, 248, 0.18);
  --hpms-bg:        url('../assets/hpms.jpg');
}

/* ═══════════════════════════════════════════════════════════════
   LUXURY RESORT BACKGROUND (VILLA & POOL SANCTUARY)
   ═══════════════════════════════════════════════════════════════ */
body, .main-content {
  font-family: 'Poppins', sans-serif !important;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.32) 0%, rgba(8, 14, 26, 0.52) 100%),
              url('../assets/hpms.jpg') center/cover fixed no-repeat,
              #070d18 !important;
  color: #ffffff !important;
  min-height: 100vh !important;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING LETTERS / TYPOGRAPHY (CRISP & GLOWING OVER BG)
   ═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6,
.topnav-brand-name, .sidebar-header h2, #current-dept-title,
.card-title, .stat-value, #dashboard-greeting-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1) !important;
  letter-spacing: 0.02em !important;
}

p, span, label, div, .legend-item, td, th {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
}

/* Maxcloud Brand Colors on Glass */
.brand-max {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85) !important;
}
.brand-cloud {
  color: #38bdf8 !important;
  font-weight: 800 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6) !important;
}

/* ═══════════════════════════════════════════════════════════════
   SOFT WHITE GLASS LINING (HINDI MASYADONG PUTI / BALANCED)
   ═══════════════════════════════════════════════════════════════ */
.card, .stat-card, .dashboard-card, .modal {
  background: rgba(10, 18, 32, 0.3) !important;
  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important; /* Soft, delicate white glass lining */
  border-radius: 16px !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25) !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover, .stat-card:hover {
  background: rgba(10, 18, 32, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 12px 16px !important;
}

.card-title {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
}

/* Weather Widget Container */
#ww_3825c552da281 {
  background: rgba(10, 18, 32, 0.3) !important;
  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Floating Greeting Banner */
#dashboard-greeting-title {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 30px !important;
  letter-spacing: 0.02em !important;
}

#dashboard-greeting-banner p {
  color: #e2e8f0 !important;
  font-size: 14px !important;
}

/* Floating Stats & Values */
.stat-value {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 26px !important;
}

.stat-label {
  color: #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.stat-title {
  color: #ffffff !important;
}

#occupancy-donut-val {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 28px !important;
}

#weekly-checkin-count, #weekly-checkout-count {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 34px !important;
}

.legend-item {
  color: #e2e8f0 !important;
  font-size: 12px !important;
}

/* ═══════════════════════════════════════════════════════════════
   SOFT GLASS QUICK ACTION BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.quick-action-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.quick-action-btn:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* AI Strategy Insights */
#ai-strategy-card {
  background: rgba(10, 18, 32, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-left: 3px solid #38bdf8 !important;
}

#ai-strategy-content {
  color: #f1f5f9 !important;
}

/* Activity Lists & Passers By */
.activity-list li,
#todays-checkins, #todays-checkouts, #todays-stayovers,
#dash-passersby-container, #unsettled-balances, #hk-status-widget {
  color: #f1f5f9 !important;
}

.text-muted {
  color: #cbd5e1 !important;
}

/* Top Navigation Bar */
.topnav, .topbar, .bottombar {
  background: rgba(10, 18, 32, 0.35) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.topnav-group-btn {
  color: #f1f5f9 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
}

.topnav-group-btn:hover {
  color: #38bdf8 !important;
  transform: translateY(-1px);
}

/* Topnav Dropdown */
.topnav-dropdown {
  background: rgba(8, 14, 26, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  padding: 8px !important;
  z-index: 250 !important;
}

.topnav-dropdown .nav-item {
  color: #ffffff !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
  transition: all 0.2s ease !important;
}

.topnav-dropdown .nav-item:hover,
.topnav-dropdown .nav-item.active {
  background: rgba(56, 189, 248, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CLEAR / GLASS INPUTS & FLOATING PILL BUTTONS
   ═══════════════════════════════════════════════════════════════ */
input, select, textarea {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: all 0.25s ease !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #38bdf8 !important;
  background: rgba(0, 0, 0, 0.48) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3) !important;
  outline: none !important;
}

input::placeholder, textarea::placeholder {
  color: rgba(226, 232, 240, 0.6) !important;
}

.btn {
  border-radius: 9999px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  padding: 8px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

.btn-primary {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  text-shadow: none !important;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45) !important;
}

.btn-success {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.4) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.4) !important;
  color: #ffffff !important;
  border-color: #f87171 !important;
}

.btn-secondary, .btn-ghost {
  background: rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-secondary:hover, .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* ─── SLIM OVAL TABLE & ACTION BUTTONS (CLEAR FROSTED GLASS) ─── */
.btn-sm,
.data-table .btn,
.btn-action {
  border-radius: 9999px !important; /* Slim oval pill */
  padding: 2px 10px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.2 !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
}

.btn-sm:hover,
.data-table .btn:hover,
.btn-action:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Success Button (IN / Check In) - Frosted Green Glass */
.btn-sm.btn-success,
.data-table .btn-success {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

.btn-sm.btn-success:hover,
.data-table .btn-success:hover {
  background: rgba(16, 185, 129, 0.38) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
}

/* Danger Button (NO SHOW / Cancel / Delete) - Frosted Red Glass */
.btn-sm.btn-danger,
.data-table .btn-danger {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25) !important;
}

.btn-sm.btn-danger:hover,
.data-table .btn-danger:hover {
  background: rgba(239, 68, 68, 0.38) !important;
  color: #ffffff !important;
  border-color: #f87171 !important;
}

/* Secondary Button & Options Button - Dark Frosted Glass */
.btn-sm.btn-secondary,
.data-table .btn-secondary,
.data-table [onclick*="openGuestOptions"] {
  background: rgba(15, 23, 42, 0.65) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.btn-sm.btn-secondary:hover,
.data-table .btn-secondary:hover,
.data-table [onclick*="openGuestOptions"]:hover {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}

/* Compact spacing in table cells */
.data-table td .flex-center {
  gap: 4px !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
}

/* Slim & circular icon-only buttons in tables (Edit, Print, Traces, Bell, Delete) */
.btn-icon-only,
.data-table .btn-icon-only {
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  border-radius: 50% !important; /* Round circle */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
}

.btn-icon-only:hover,
.data-table .btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.08) !important;
}

/* Slim Mini Indicators (Comments, Notes, Message, Traces, Alerts, Alarm) */
.mini-indicators-row {
  display: flex !important;
  gap: 3px !important;
  margin-bottom: 4px !important;
}

.btn-mini-indicator,
.data-table button.btn-mini-indicator {
  font-size: 9.5px !important;
  padding: 1px 7px !important;
  line-height: 1.2 !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  border-radius: 9999px !important; /* Oval pill */
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: none !important;
  cursor: default !important;
  text-transform: capitalize !important;
  transition: all 0.2s ease !important;
}

/* Mini Indicators & Guest Option Buttons with Data: LIGHT BLUE (#38bdf8) */
.btn-mini-indicator.has-data,
.data-table button.btn-mini-indicator.has-data,
.opt-btn.has-data,
#guest-options-modal .opt-btn.has-data {
  background: #38bdf8 !important;
  background-color: #38bdf8 !important;
  color: #0f172a !important;
  border: 1px solid #7dd3fc !important;
  border-color: #7dd3fc !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important;
  text-shadow: none !important;
}

.btn-mini-indicator.has-data:hover,
.data-table button.btn-mini-indicator.has-data:hover,
.opt-btn.has-data:hover,
#guest-options-modal .opt-btn.has-data:hover {
  background: #7dd3fc !important;
  background-color: #7dd3fc !important;
  color: #0f172a !important;
}

/* Tables inside HPMS Modules */
table {
  color: #f1f5f9 !important;
}

th {
  background: rgba(10, 18, 32, 0.3) !important;
  color: #cbd5e1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
}

td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Floor Plan & Room Management Room Cards */
.fp-room-card:not(.has-photo),
.room-tile:not(.has-photo) {
  background: rgba(10, 18, 32, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.fp-room-card,
.room-tile {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
  color: #ffffff !important;
  overflow: hidden;
  transition: all 0.25s ease !important;
}

.fp-room-card:hover,
.room-tile:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

.fp-room-card .fp-room-number,
.room-tile .room-number {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.fp-room-card .fp-room-type,
.room-tile .room-type-label {
  color: #e2e8f0 !important;
  font-weight: 500 !important;
}

.room-tile .room-floor {
  color: #94a3b8 !important;
}

.room-tile.status-available { border-left: 4px solid #34d399 !important; }
.room-tile.status-occupied { border-left: 4px solid #60a5fa !important; }
.room-tile.status-reserved { border-left: 4px solid #f87171 !important; }
.room-tile.status-dirty { border-left: 4px solid #fbbf24 !important; }
.room-tile.status-maintenance { border-left: 4px solid #94a3b8 !important; }

.fp-room-card.status-available { border-top: 4px solid #10B981 !important; }
.fp-room-card.status-occupied { border-top: 4px solid #3B82F6 !important; }
.fp-room-card.status-reserved,
.fp-room-card.status-assigned { border-top: 4px solid #EF4444 !important; }
.fp-room-card.status-dirty { border-top: 4px solid #F59E0B !important; }
.fp-room-card.status-maintenance,
.fp-room-card.status-ooo { border-top: 4px solid #64748B !important; }

.fp-room-card.status-available .fp-room-guest { color: #34d399 !important; font-weight: 600; }
.fp-room-card.status-occupied .fp-room-guest { color: #60a5fa !important; font-weight: 600; }
.fp-room-card.status-reserved .fp-room-guest,
.fp-room-card.status-assigned .fp-room-guest { color: #f87171 !important; font-weight: 600; }
.fp-room-card.status-dirty .fp-room-guest { color: #fbbf24 !important; font-weight: 600; }
.fp-room-card.status-maintenance .fp-room-guest,
.fp-room-card.status-ooo .fp-room-guest { color: #cbd5e1 !important; font-weight: 600; }

/* Modals & Popups */
.modal-content, .modal-box {
  background: rgba(10, 18, 32, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
  color: #f8fafc !important;
}

/* Badges & Pills */
.badge, .nav-badge {
  background: rgba(56, 189, 248, 0.22) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

/* Subtle Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 18, 32, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* Room Chart Calendar Table High-Contrast Grid */
.calendar-grid-table {
  border: 1px solid #64748b !important;
}
.calendar-grid-table td, .calendar-grid-table th {
  border-color: #64748b !important;
}
.calendar-grid-table tbody tr:hover td {
  background-color: #f1f5f9 !important;
}
.calendar-grid-table td:hover {
  background-color: #e2e8f0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   HPMS REPORTS PRINT PREVIEW & DOCUMENT PAPER STYLES
   Fixes white font issue on report previews and ensures clean document
   ═══════════════════════════════════════════════════════════════ */
#hpms-print-area {
  background: #cbd5e1 !important;
}

#hpms-document {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  border-radius: 4px !important;
}

#hpms-document,
#hpms-document * {
  color: #0f172a !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
  box-sizing: border-box;
}

#hpms-document table {
  background: #ffffff !important;
  color: #0f172a !important;
  border-collapse: collapse !important;
  width: 100% !important;
}

#hpms-document thead th,
#hpms-document th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  text-shadow: none !important;
  border-bottom: 2px solid #0f172a !important;
  text-transform: uppercase !important;
  font-weight: bold !important;
  font-size: 11px !important;
}

#hpms-document tbody td,
#hpms-document td {
  background: transparent !important;
  color: #1e293b !important;
  text-shadow: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#hpms-document tbody tr:hover td,
#hpms-document tr:hover td {
  background: transparent !important;
}

#hpms-document h1,
#hpms-document h2,
#hpms-document h3,
#hpms-document h4,
#hpms-document h5,
#hpms-document h6 {
  color: #0f172a !important;
  text-shadow: none !important;
}

#hpms-document p,
#hpms-document span,
#hpms-document div,
#hpms-document label {
  text-shadow: none !important;
}

/* Explicit status colors inside report preview */
#hpms-document [style*="color:#16a34a"],
#hpms-document [style*="color: #16a34a"],
#hpms-document [style*="color:green"],
#hpms-document [style*="color: green"] {
  color: #16a34a !important;
}

#hpms-document [style*="color:var(--red)"],
#hpms-document [style*="color:red"],
#hpms-document [style*="color: red"] {
  color: #dc2626 !important;
}

#hpms-document [style*="color:var(--gold)"],
#hpms-document [style*="color:gold"] {
  color: #d97706 !important;
}

#hpms-document [style*="color:var(--primary)"] {
  color: #2563eb !important;
}

#hpms-document [style*="color:#666"],
#hpms-document [style*="color: #666"],
#hpms-document [style*="color:#888"],
#hpms-document [style*="color: #888"],
#hpms-document [style*="color:#999"],
#hpms-document [style*="color: #999"] {
  color: #64748b !important;
}

/* ═══════════════════════════════════════════════════════════════
   PRINT MEDIA QUERY FOR HPMS
   Hides webpage UI, navbar, sidebar, buttons, and backgrounds
   ═══════════════════════════════════════════════════════════════ */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .topnav, .bottombar, .hpms-sidebar, .hpms-toolbar, #login-screen, #ambient-bg,
  #live-datetime-indicator, .nav-item, #quick-booking-btn, .walkthrough-btn,
  .btn, .badge, #global-print-btn, .weather-widget-wrap, #weather-widget,
  .topnav-group, .sidebar, #app-header {
    display: none !important;
  }
  .main-content, .page-content, .hpms-reports-container, #page-hpmsreports, #hpms-print-area {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow: visible !important;
  }
  #hpms-document {
    margin: 0 auto !important;
    padding: 10mm 15mm !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   GUEST OPTIONS MODAL (EXPANDED & COMFORTABLE SIZE)
   ═══════════════════════════════════════════════════════════════ */
#guest-options-modal .modal {
  width: 360px !important;
  max-width: 92vw !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75) !important;
}

#guest-options-modal .modal-header {
  padding: 18px 24px !important;
}

#guest-options-modal .modal-header h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#guest-options-modal .modal-body {
  padding: 22px 24px 26px 24px !important;
}

#guest-options-modal .opt-btn {
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  letter-spacing: 0.3px !important;
  transition: all 0.2s ease !important;
}

#guest-options-modal .opt-btn:hover:not(:disabled) {
  transform: translateX(4px) !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

#guest-options-modal .opt-btn:disabled,
#guest-options-modal .opt-btn[disabled] {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-muted) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

#guest-options-modal .opt-btn.has-data {
  background: #38bdf8 !important;
  background-color: #38bdf8 !important;
  color: #0f172a !important;
  border: 1px solid #7dd3fc !important;
  border-color: #7dd3fc !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65) !important;
  text-shadow: none !important;
}

#guest-options-modal .opt-btn.has-data:hover:not(:disabled) {
  background: #7dd3fc !important;
  background-color: #7dd3fc !important;
  color: #0f172a !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.85) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BILLING MODAL (FULL SCALE / RESPONSIVE WORKSTATION VIEW)
   ═══════════════════════════════════════════════════════════════ */
#billing-modal .modal,
.modal-billing-fullscreen {
  width: 96vw !important;
  max-width: 1560px !important;
  height: 94vh !important;
  max-height: 96vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8) !important;
}

#billing-modal .modal-header {
  padding: 14px 22px !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

#billing-modal .modal-header .modal-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}

#billing-modal .modal-body {
  flex: 1 !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

#billing-modal .modal-footer {
  padding: 12px 22px !important;
  border-top: 1px solid var(--border) !important;
  background: rgba(10, 18, 32, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

#billing-modal .modal-footer .btn {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════
   CASHIER RECONCILE: DENOMINATION COUNT & SUMMARY UI
   ═══════════════════════════════════════════════════════════════ */
.denom-header {
  display: grid;
  grid-template-columns: 160px 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

.denom-row {
  display: grid;
  grid-template-columns: 160px 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.denom-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.denom-row label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.denom-input {
  width: 100% !important;
  max-width: 110px !important;
  height: 30px !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important; /* Slim oval pill */
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  padding: 2px 8px !important;
  transition: all 0.2s ease !important;
}

.denom-input:focus {
  border-color: #38bdf8 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
  outline: none !important;
}

.denom-total {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   REFERENTIAL SETUP COMPACT CARDS
   ═══════════════════════════════════════════════════════════════ */
#ref-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.ref-card {
  cursor: pointer;
  border-radius: 12px !important;
  background: rgba(10, 18, 32, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.ref-card:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

.ref-card .card-body {
  text-align: center !important;
  padding: 12px 8px !important;
}

.ref-card .ref-icon {
  font-size: 24px !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}

.ref-card:hover .ref-icon {
  transform: scale(1.12) !important;
}

.ref-card .ref-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin: 0 !important;
  color: #f1f5f9 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ═══════════════════════════════════════════════════════════════
   CLOUDBEDS-STYLE INTERACTIVE TAPE CHART (ROOM CHART)
   ═══════════════════════════════════════════════════════════════ */
#page-roomplan.active {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

#page-roomplan .card:hover {
  transform: none !important;
}

.tc-swap-dock {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.45);
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.tc-swap-dock.tc-dock-dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.tc-swap-dock.tc-dock-has-items {
  border-style: solid;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 0.72);
}

.tc-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tc-dock-hint {
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-dock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tc-dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #f8fafc;
  font-size: 11.5px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.tc-dock-chip:hover {
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.tc-dock-chip-btn {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.tc-dock-chip-btn:hover {
  background: rgba(239, 68, 68, 0.6);
  color: #fff;
}

.tc-wrapper,
.tc-wrapper * {
  text-shadow: none !important;
  box-sizing: border-box;
}

.tc-scroll-area {
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 10px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  position: relative;
}

.tc-board {
  min-width: max-content;
  width: 100%;
  user-select: none;
  position: relative;
}

.tc-header-row,
.tc-occ-row,
.tc-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #cbd5e1;
}

.tc-row:last-child {
  border-bottom: none;
}

.tc-room-col {
  width: 196px;
  min-width: 196px;
  max-width: 196px;
  position: sticky;
  left: 0;
  z-index: 25;
  background: #f8fafc;
  color: #0f172a;
  border-right: 2px solid #64748b;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-header-row .tc-room-col {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  justify-content: space-between;
  border-right-color: #334155;
}

.tc-occ-row .tc-room-col {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
}

.tc-track {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--tc-days, 14), minmax(58px, 1fr));
}

.tc-days-7 .tc-track {
  grid-template-columns: repeat(7, minmax(112px, 1fr));
}

.tc-days-14 .tc-track {
  grid-template-columns: repeat(14, minmax(60px, 1fr));
}

.tc-days-30 .tc-track {
  grid-template-columns: repeat(30, minmax(46px, 1fr));
}

.tc-date-head {
  padding: 6px 3px;
  text-align: center;
  border-right: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 11px;
}

.tc-date-head:last-child {
  border-right: none;
}

.tc-date-head.is-weekend {
  background: #0f172a;
}

.tc-date-head.is-today {
  background: linear-gradient(180deg, #0284c7, #0369a1);
  color: #ffffff;
}

.tc-date-month {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7dd3fc;
}

.tc-today-pill {
  font-size: 8.5px;
  font-weight: 800;
  background: #ffffff;
  color: #0369a1;
  padding: 0 5px;
  border-radius: 999px;
  margin-top: 1px;
  letter-spacing: 0.04em;
}

.tc-occ-cell {
  padding: 4px 3px;
  border-right: 1px solid #cbd5e1;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
}

.tc-occ-cell:last-child {
  border-right: none;
}

.tc-occ-cell.is-today {
  background: #e0f2fe;
}

.tc-occ-bar-bg {
  width: 82%;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  overflow: hidden;
}

.tc-occ-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.tc-row {
  background: #ffffff;
  min-height: 50px;
}

.tc-row:hover .tc-room-col {
  background: #f1f5f9;
}

.tc-row:hover .tc-cell:not(.is-selecting):not(.is-today):not(.is-past) {
  background: #f8fafc;
}

.tc-cell {
  border-right: 1px solid #e2e8f0;
  min-height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease;
  touch-action: pan-y;
}

.tc-cell:last-child {
  border-right: none;
}

.tc-cell.is-weekend {
  background: rgba(15, 23, 42, 0.025);
}

.tc-cell.is-today {
  background: rgba(14, 165, 233, 0.08);
}

.tc-cell.is-past {
  background: rgba(100, 116, 139, 0.07);
  cursor: not-allowed;
}

.tc-cell:hover:not(.is-past) {
  background: rgba(56, 189, 248, 0.14) !important;
}

.tc-cell.is-selecting {
  background: rgba(16, 185, 129, 0.28) !important;
  box-shadow: inset 0 0 0 2px #10b981;
}

.tc-cell-dot {
  color: rgba(16, 185, 129, 0.65);
  font-size: 16px;
  pointer-events: none;
}

.tc-cell.is-past .tc-cell-dot {
  color: rgba(100, 116, 139, 0.25);
  font-size: 12px;
}

.tc-dirty-badge {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-size: 8.5px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 4px;
  pointer-events: none;
}

.tc-hk-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tc-hk-clean { background: #dcfce7; color: #15803d; }
.tc-hk-dirty { background: #fee2e2; color: #b91c1c; }
.tc-hk-inspected { background: #dbeafe; color: #1d4ed8; }
.tc-hk-oos { background: #e2e8f0; color: #334155; }

/* OOS / Maintenance spanning block */
.tc-oos-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  z-index: 8;
  border-radius: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #64748b,
    #64748b 6px,
    #475569 6px,
    #475569 12px
  );
  color: #ffffff !important;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

/* Spanning Reservation Bars */
.tc-res-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  z-index: 10;
  border-radius: 7px;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: box-shadow 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  overflow: hidden;
  touch-action: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

.tc-res-bar:hover {
  z-index: 18;
  filter: brightness(1.06);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.38);
}

.tc-res-bar:active {
  cursor: grabbing;
}

.tc-res-bar.tc-status-checked-in {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: 1px solid #1d4ed8;
}

.tc-res-bar.tc-status-confirmed {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border: 1px solid #b91c1c;
}

.tc-res-bar.tc-status-pending {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: 1px dashed #fef3c7;
}

.tc-res-bar.tc-clipped-left {
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  padding-left: 6px;
}

.tc-res-bar.tc-clipped-right {
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  padding-right: 6px;
}

.tc-res-bar.tc-is-staged {
  outline: 2px dashed #ffffff;
  outline-offset: -3px;
  box-shadow: 0 0 0 2px #38bdf8, 0 5px 14px rgba(56, 189, 248, 0.45);
}

.tc-res-bar.tc-is-dimmed {
  opacity: 0.22;
}

.tc-res-bar.tc-is-match {
  box-shadow: 0 0 0 3px #facc15, 0 6px 16px rgba(250, 204, 21, 0.5);
  z-index: 19;
}

.tc-res-bar.tc-is-dragging-source {
  opacity: 0.3 !important;
}

.tc-bar-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  color: #ffffff !important;
}

.tc-bar-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.26);
  color: #ffffff !important;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.tc-bar-tag.is-due-out {
  background: #fef08a;
  color: #854d0e !important;
  font-weight: 800;
}

.tc-bar-tag.is-staged {
  background: #38bdf8;
  color: #082f49 !important;
  font-weight: 800;
}

.tc-bar-menu-btn {
  opacity: 0;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border-radius: 4px;
  width: 18px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  transition: opacity 0.15s, background 0.15s;
}

.tc-res-bar:hover .tc-bar-menu-btn {
  opacity: 1;
}

.tc-bar-menu-btn:hover {
  background: rgba(0, 0, 0, 0.48);
}

/* Resize Handles */
.tc-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  cursor: ew-resize;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  touch-action: none;
}

.tc-resize-handle::after {
  content: '';
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
}

.tc-resize-left {
  left: 0;
  border-radius: 6px 0 0 6px;
}

.tc-resize-right {
  right: 0;
  border-radius: 0 6px 6px 0;
}

.tc-res-bar:hover .tc-resize-handle {
  opacity: 1;
  background: rgba(0, 0, 0, 0.22);
}

.tc-resize-handle:hover {
  background: rgba(0, 0, 0, 0.42) !important;
}

/* Live Drag Ghost */
.tc-ghost-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  z-index: 35;
  border-radius: 7px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff !important;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.tc-ghost-bar.is-valid {
  background: rgba(16, 185, 129, 0.88);
  border: 2px solid #047857;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}

.tc-ghost-bar.is-swap {
  background: rgba(14, 165, 233, 0.9);
  border: 2px dashed #ffffff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45);
}

.tc-ghost-bar.is-conflict {
  background: rgba(239, 68, 68, 0.88);
  border: 2px solid #991b1b;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35);
}

/* Floating Drag HUD & Hover Popover */
#tc-drag-hud {
  position: fixed;
  z-index: 12000;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: none;
  max-width: 310px;
  text-shadow: none !important;
}

#tc-hover-popover {
  position: fixed;
  z-index: 11500;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: none;
  width: 280px;
  text-shadow: none !important;
}

#tc-ctx-menu {
  position: fixed;
  z-index: 11800;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 6px;
  min-width: 210px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: none;
  text-shadow: none !important;
}

.tc-ctx-header {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
  font-size: 11.5px;
  color: #94a3b8;
}

.tc-ctx-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #f1f5f9;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-ctx-item:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
}

.tc-ctx-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}






