/* ============================================================
   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;
}





