/* =========================================================
   ICONIC STAY — RECEPTION / ADMIN PMS THEME (PREMIUM)
   Works with Bootstrap 5.3+
   Dual-mode: Dark + Light via html[data-theme="dark|light"]
   Scope: body.rx-shell (prevents public styling leaks)
   ========================================================= */

/* -------------------------
   0) THEME TOKENS (DEFAULT = DARK)
   ------------------------- */
:root{
  /* base */
  --rx-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --rx-radius: 18px;
  --rx-radius-sm: 14px;

  /* accent */
  --rx-accent: #4da3ff;
  --rx-accent2:#2b7cff;

  /* dark defaults */
  --rx-bg:#0b0f14;
  --rx-bg2:#070a0e;
  --rx-soft:#0f1620;

  --rx-card: rgba(255,255,255,.06);
  --rx-card2: rgba(255,255,255,.10);

  --rx-border: rgba(255,255,255,.10);
  --rx-border2: rgba(255,255,255,.14);

  --rx-text: rgba(255,255,255,.92);
  --rx-muted: rgba(255,255,255,.62);

  --rx-shadow: 0 16px 60px rgba(0,0,0,.35);
  --rx-shadow-sm: 0 10px 30px rgba(0,0,0,.22);

  /* surfaces */
  --rx-glass: rgba(10,14,20,.72);
  --rx-glass-strong: rgba(10,14,20,.92);

  /* interactive */
  --rx-hover: rgba(255,255,255,.05);
  --rx-hover2: rgba(255,255,255,.06);

  /* focus ring */
  --rx-ring: rgba(77,163,255,.14);
  --rx-ring2: rgba(77,163,255,.10);

  /* table vars */
  --rx-table-head-bg: rgba(0,0,0,.18);
  --rx-table-striped-bg: rgba(255,255,255,.03);
  --rx-table-hover-bg: rgba(255,255,255,.05);

  /* dropdown */
  --rx-dropdown-bg: rgba(12,16,24,.96);

  /* inputs */
  --rx-input-bg: rgba(255,255,255,.06);
  --rx-input-bd: rgba(255,255,255,.12);
  --rx-input-tx: rgba(255,255,255,.92);
  --rx-placeholder: rgba(255,255,255,.48);

  /* chips/badges/pills */
  --rx-chip-bg: rgba(255,255,255,.06);
  --rx-chip-bd: rgba(255,255,255,.14);
  --rx-chip-tx: rgba(255,255,255,.90);

  /* status palettes (work in both modes) */
  --rx-blue-bd: rgba(77,163,255,.35);
  --rx-blue-bg: rgba(77,163,255,.10);

  --rx-green-bd: rgba(87,255,187,.28);
  --rx-green-bg: rgba(87,255,187,.10);

  --rx-amber-bd: rgba(255,195,77,.28);
  --rx-amber-bg: rgba(255,195,77,.10);

  --rx-red-bd: rgba(255,77,113,.28);
  --rx-red-bg: rgba(255,77,113,.10);

  /* footer */
  --rx-footer-border: rgba(255,255,255,.10);
}

/* -------------------------
   1) LIGHT MODE OVERRIDES
   ------------------------- */
html[data-theme="light"]{
  --rx-bg:#f6f8fb;
  --rx-bg2:#eef2f7;
  --rx-soft:#ffffff;

  --rx-card: rgba(15,22,32,.05);
  --rx-card2: rgba(15,22,32,.08);

  --rx-border: rgba(15,22,32,.12);
  --rx-border2: rgba(15,22,32,.18);

  --rx-text: rgba(10,14,20,.92);
  --rx-muted: rgba(10,14,20,.62);

  --rx-shadow: 0 16px 60px rgba(10,14,20,.12);
  --rx-shadow-sm: 0 10px 30px rgba(10,14,20,.10);

  --rx-glass: rgba(255,255,255,.72);
  --rx-glass-strong: rgba(255,255,255,.92);

  --rx-hover: rgba(10,14,20,.04);
  --rx-hover2: rgba(10,14,20,.06);

  --rx-ring: rgba(77,163,255,.18);
  --rx-ring2: rgba(77,163,255,.12);

  --rx-table-head-bg: rgba(10,14,20,.06);
  --rx-table-striped-bg: rgba(10,14,20,.03);
  --rx-table-hover-bg: rgba(10,14,20,.05);

  --rx-dropdown-bg: rgba(255,255,255,.98);

  --rx-input-bg: rgba(10,14,20,.03);
  --rx-input-bd: rgba(10,14,20,.12);
  --rx-input-tx: rgba(10,14,20,.92);
  --rx-placeholder: rgba(10,14,20,.45);

  --rx-chip-bg: rgba(10,14,20,.04);
  --rx-chip-bd: rgba(10,14,20,.14);
  --rx-chip-tx: rgba(10,14,20,.90);

  --rx-footer-border: rgba(10,14,20,.12);
}

/* -------------------------
   2) SHELL + AMBIENT
   ------------------------- */
html, body { height: 100%; }

body.rx-shell{
  font-family: var(--rx-font);
  color: var(--rx-text);
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(1200px 900px at 10% -10%, rgba(77,163,255,.16), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(102,255,214,.10), transparent 60%),
    linear-gradient(180deg, var(--rx-bg), var(--rx-bg2));
}

/* Ambient overlay */
.rx-ambient{
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 380px at 14% 6%, rgba(77,163,255,.10), transparent 60%),
    radial-gradient(700px 380px at 86% 12%, rgba(255,154,77,.08), transparent 60%);
  opacity: .9;
  z-index: 0;
}

/* Keep app layers above ambient (DO NOT include offcanvas here) */
.rx-fluid, .rx-mtop, .rx-aside, .rx-main { position: relative; z-index: 1; }

/* Offcanvas must stay fixed and not contribute to page height */
.offcanvas.rx-offcanvas{
  position: fixed !important;
  top: 0; bottom: 0;
  z-index: 1050;
  height: 100vh;
}

/* -------------------------
   3) LAYOUT / SPACING (NO MYSTERY GAP)
   ------------------------- */
.rx-fluid { min-height: 100vh; }

.rx-main{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rx-content-wrap{
  flex: 1 1 auto;
  padding: 18px 14px 10px;
}
@media (min-width: 992px){
  .rx-content-wrap{ padding: 22px 22px 12px; }
}

.rx-container,
section.container.rx-container{
  padding-bottom: 0 !important;
}

.table-wrap{ margin-bottom: 0 !important; }

/* -------------------------
   4) MOBILE TOPBAR
   ------------------------- */
.rx-mtop{
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: var(--rx-glass);
  border-bottom: 1px solid var(--rx-border);
}

.brand-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--rx-accent);
  box-shadow: 0 0 0 6px rgba(77,163,255,.12);
}

.rx-brand-title{ letter-spacing: .2px; }

.rx-icon-btn{
  border-color: var(--rx-border2)!important;
  background: var(--rx-card)!important;
  color: var(--rx-text) !important;
}
.rx-icon-btn:hover{
  border-color: rgba(77,163,255,.55)!important;
  box-shadow: 0 0 0 5px var(--rx-ring2);
}

/* -------------------------
   5) DESKTOP SIDEBAR
   ------------------------- */
.rx-aside{
  border-right: 1px solid var(--rx-border);
  background: var(--rx-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  min-height: 100vh;
}

.rx-aside-inner{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 14px 12px;
}

.rx-aside-inner::-webkit-scrollbar{ width: 10px; }
.rx-aside-inner::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
html[data-theme="light"] .rx-aside-inner::-webkit-scrollbar-thumb{
  background: rgba(10,14,20,.14);
}

/* -------------------------
   6) COLLAPSED SIDEBAR (DESKTOP ONLY)
   ------------------------- */
@media (min-width: 992px){
  body.rx-collapsed .rx-aside{
    width: 76px !important;
    flex: 0 0 76px !important;
    max-width: 76px !important;
  }
  body.rx-collapsed .rx-main{
    flex: 1 1 auto !important;
    max-width: calc(100% - 76px) !important;
  }

  body.rx-collapsed .rx-aside-inner{
    padding: 12px 10px !important;
  }

  /* Hide only text */
  body.rx-collapsed .rx-brand-text,
  body.rx-collapsed .rx-nav-text,
  body.rx-collapsed .rx-nav-section-title,
  body.rx-collapsed .rx-foot-note,
  body.rx-collapsed .rx-logout .rx-nav-text{
    display:none !important;
  }

  /* Center icons */
  body.rx-collapsed .rx-navlink{
    justify-content:center;
    padding:10px 6px;
  }

  /* Icon tile consistent */
  body.rx-collapsed .rx-ic{
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin: 0 !important;
  }

  body.rx-collapsed .rx-logout{
    padding: 10px 8px !important;
  }
}

/* FIX: Don't apply collapsed desktop layout rules on mobile */
@media (max-width: 991.98px){
  body.rx-collapsed .rx-aside{
    width: auto !important;
    flex: initial !important;
    max-width: none !important;
  }
  body.rx-collapsed .rx-main{
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  /* Mobile offcanvas menu must show text */
  body.rx-collapsed .rx-offcanvas .rx-brand-text,
  body.rx-collapsed .rx-offcanvas .rx-nav-text,
  body.rx-collapsed .rx-offcanvas .rx-nav-section-title,
  body.rx-collapsed .rx-offcanvas .rx-foot-note,
  body.rx-collapsed .rx-offcanvas .rx-logout .rx-nav-text{
    display: inline !important;
  }

  body.rx-collapsed .rx-offcanvas .rx-navlink{
    justify-content: flex-start !important;
    padding: 10px 10px !important;
  }
}

/* -------------------------
   7) TOPBAR (DESKTOP)
   ------------------------- */
.rx-topbar-wrap{
  background: var(--rx-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rx-border);
}
.rx-topbar-inner{ padding: 10px 16px; }

.rx-topbar--glass{ border-radius: 0; }
.rx-topbar-h{ font-size: 1.02rem; letter-spacing: .2px; }

.rx-topbar-icon{
  border: 1px solid var(--rx-border2);
  background: var(--rx-card);
  color: var(--rx-text);
  border-radius: 14px;
  width: 42px;
  height: 42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.rx-topbar-icon:hover{
  border-color: rgba(77,163,255,.45);
  box-shadow: 0 0 0 5px var(--rx-ring2);
}

/* -------------------------
   8) SIDEBAR NAV (SaaS Premium)
   ------------------------- */
.rx-side{ padding: 6px 6px 12px; }

.rx-side-head{
  padding: 12px 10px;
  border-radius: 16px;
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  box-shadow: var(--rx-shadow-sm);
}
.rx-brand-name{ letter-spacing: .2px; }

.rx-iconbtn{
  border: 1px solid var(--rx-border2);
  background: var(--rx-card);
  color: var(--rx-text);
}
.rx-iconbtn:hover{
  border-color: rgba(77,163,255,.45);
  box-shadow: 0 0 0 5px var(--rx-ring2);
}

.rx-nav-section{ margin-top: 14px; }
.rx-nav-title{
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rx-muted);
  padding: 0 10px 8px;
  opacity: .9;
}

.rx-navlink{
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 14px;
  padding: 10px 10px;
  color: var(--rx-text);
  opacity: .86;
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.rx-navlink:hover{
  background: var(--rx-hover);
  opacity: 1;
  border-color: var(--rx-border);
}
.rx-navlink.active{
  background: linear-gradient(180deg, rgba(77,163,255,.18), rgba(77,163,255,.08));
  border-color: rgba(77,163,255,.28);
  opacity: 1;
  box-shadow: 0 10px 30px rgba(77,163,255,.10);
}

.rx-ic{
  width: 36px; height: 36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  flex: 0 0 36px;
}
.rx-navlink.active .rx-ic{
  background: rgba(77,163,255,.14);
  border-color: rgba(77,163,255,.30);
}

.rx-nav-text{
  font-weight: 600;
  letter-spacing: .1px;
}

/* Logout */
.rx-logout{
  border-radius: 14px;
  border: 1px solid var(--rx-border2);
  background: var(--rx-card);
  color: var(--rx-text);
}
.rx-logout:hover{
  border-color: rgba(255,77,113,.35);
  box-shadow: 0 0 0 5px rgba(255,77,113,.10);
}

/* -------------------------
   9) CARDS / PANELS
   ------------------------- */
.rx-card{
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  box-shadow: var(--rx-shadow-sm);
}
.rx-card:hover{ border-color: rgba(77,163,255,.22); }

.rx-panel{
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
  box-shadow: var(--rx-shadow);
  overflow: hidden;
}
.rx-panel-head{
  padding: 14px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rx-border);
  background: var(--rx-hover);
}
.rx-panel-body{ padding: 14px; }
.rx-panel-body--tight{ padding: 10px 14px; }

.rx-panel-title{
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--rx-text);
}
.rx-panel-sub{
  color: var(--rx-muted);
  font-size: .86rem;
}

/* Universal page card wrapper (compat layer) */
body.rx-shell .rx-card-shell{
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  border-radius: 18px;
  box-shadow: var(--rx-shadow);
  overflow: hidden;
}
body.rx-shell .rx-card-head{
  padding: 14px 14px;
  border-bottom: 1px solid var(--rx-border);
  background: var(--rx-hover);
}
body.rx-shell .rx-card-title{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--rx-text);
}
body.rx-shell .rx-card-sub{
  color: var(--rx-muted);
  font-size: .86rem;
}
body.rx-shell .rx-card-body{ padding: 14px; }

/* -------------------------
   10) TYPOGRAPHY
   ------------------------- */
.rx-eyebrow{
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rx-muted);
}
.rx-h{ letter-spacing: .2px; }
.rx-sub{ color: var(--rx-muted); }

/* -------------------------
   11) BUTTONS (PREMIUM)
   ------------------------- */
.rx-btn{
  border-radius: 14px !important;
  border: 1px solid var(--rx-border2) !important;
  background: var(--rx-card) !important;
  color: var(--rx-text) !important;
  padding: .55rem .85rem !important;
  font-weight: 600;
}
.rx-btn:hover{
  border-color: rgba(77,163,255,.45) !important;
  box-shadow: 0 0 0 5px var(--rx-ring2);
}
.rx-btn-primary{
  background: linear-gradient(180deg, rgba(77,163,255,.22), rgba(77,163,255,.10)) !important;
  border-color: rgba(77,163,255,.30) !important;
}
.rx-btn-soft{ background: var(--rx-hover) !important; }
.rx-btn-ghost{ background: transparent !important; }

/* Action buttons (single source of truth) */
.rx-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  height: 32px;
  padding: 0 .70rem;
  border-radius: 12px;
  border: 1px solid var(--rx-border2);
  background: var(--rx-hover);
  color: var(--rx-text);
  font-weight: 850;
  font-size: .82rem;
  line-height: 1;
  white-space: nowrap;
}
.rx-action i{ font-size: 1rem; }
.rx-action:hover{
  border-color: rgba(77,163,255,.45);
  box-shadow: 0 0 0 5px var(--rx-ring2);
}
.rx-action--primary{ border-color: rgba(77,163,255,.30); background: rgba(77,163,255,.10); }
.rx-action--dark{ border-color: var(--rx-border2); background: var(--rx-card2); }
.rx-action--success{ border-color: var(--rx-green-bd); background: var(--rx-green-bg); }
.rx-action--danger{ border-color: var(--rx-red-bd); background: var(--rx-red-bg); }
.rx-action--muted{ opacity: .65; cursor: not-allowed; }

/* -------------------------
   12) CHIPS / BADGES / PILLS
   ------------------------- */
.rx-chip{
  display:inline-flex;
  align-items:center;
  padding: .22rem .50rem;
  border-radius: 999px;
  border: 1px solid var(--rx-chip-bd);
  background: var(--rx-chip-bg);
  color: var(--rx-chip-tx);
  font-weight: 800;
  font-size: .80rem;
}

/* badge */
.rx-badge{
  display:inline-flex;
  align-items:center;
  padding: .45rem .60rem;
  border-radius: 999px;
  border: 1px solid var(--rx-chip-bd);
  background: var(--rx-chip-bg);
  color: var(--rx-chip-tx);
  font-weight: 800;
  font-size: .82rem;
}
.rx-badge--blue{ border-color: var(--rx-blue-bd); background: var(--rx-blue-bg); }
.rx-badge--green{ border-color: var(--rx-green-bd); background: var(--rx-green-bg); }
.rx-badge--red{ border-color: var(--rx-red-bd); background: var(--rx-red-bg); }
.rx-badge--amber{ border-color: var(--rx-amber-bd); background: var(--rx-amber-bg); }

/* pill (compact status) */
.rx-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 22px;
  padding: 0 .55rem;
  border-radius: 999px;
  border: 1px solid var(--rx-chip-bd);
  background: var(--rx-chip-bg);
  color: var(--rx-chip-tx);
  font-weight: 900;
  font-size: .68rem;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.rx-pill i{ font-size: .85rem; }

.rx-pill--blue{  border-color: rgba(77,163,255,.30);  background: rgba(77,163,255,.10); }
.rx-pill--red{   border-color: rgba(255,77,113,.28);  background: rgba(255,77,113,.10); }
.rx-pill--green{ border-color: rgba(87,255,187,.22);  background: rgba(87,255,187,.08); }
.rx-pill--amber{ border-color: rgba(255,195,77,.28);  background: rgba(255,195,77,.10); }
.rx-pill--gold{  border-color: rgba(255,215,128,.22); background: rgba(255,215,128,.10); }

/* old class alias (keeps your pages working) */
.rx-pill-status{ /* alias to rx-pill */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 22px;
  padding: 0 .55rem;
  border-radius: 999px;
  border: 1px solid var(--rx-chip-bd);
  background: var(--rx-chip-bg);
  font-weight: 900;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--rx-chip-tx);
}
.rx-pill-status i{ font-size: .85rem; }

/* -------------------------
   13) FORMS (SCOPED TO ADMIN)
   ------------------------- */
body.rx-shell .form-control,
body.rx-shell .form-select,
body.rx-shell textarea.form-control{
  background-color: var(--rx-input-bg) !important;
  border-color: var(--rx-input-bd) !important;
  color: var(--rx-input-tx) !important;
  border-radius: 14px !important;
}
body.rx-shell .form-control:focus,
body.rx-shell .form-select:focus,
body.rx-shell textarea.form-control:focus{
  box-shadow: 0 0 0 .25rem var(--rx-ring) !important;
  border-color: rgba(77,163,255,.45) !important;
}

body.rx-shell .form-control::placeholder,
body.rx-shell .form-select::placeholder,
body.rx-shell textarea::placeholder{
  color: var(--rx-placeholder) !important;
  opacity: 1 !important;
}
body.rx-shell .form-control::-webkit-input-placeholder,
body.rx-shell textarea::-webkit-input-placeholder{
  color: var(--rx-placeholder) !important;
}
body.rx-shell .form-control:-ms-input-placeholder,
body.rx-shell textarea:-ms-input-placeholder{
  color: var(--rx-placeholder) !important;
}
body.rx-shell .form-control:focus::placeholder,
body.rx-shell textarea:focus::placeholder{
  color: var(--rx-muted) !important;
}

/* Select option colors (Chrome/Edge) */
body.rx-shell select option{
  background-color: var(--rx-soft) !important;
  color: var(--rx-text) !important;
}
body.rx-shell select option:checked{
  background-color: rgba(77,163,255,.18) !important;
  color: #fff !important;
}

/* File input button premium */
.rx-file::-webkit-file-upload-button,
.rx-file::file-selector-button{
  border: 1px solid var(--rx-border2);
  background: var(--rx-card);
  color: var(--rx-text);
  border-radius: 12px;
  padding: .45rem .70rem;
  margin-right: .75rem;
}

/* Input group addon */
.rx-input-addon{
  background: var(--rx-input-bg) !important;
  border-color: var(--rx-input-bd) !important;
  color: var(--rx-muted) !important;
  border-radius: 14px 0 0 14px !important;
}
.input-group .rx-input{
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.input-group .rx-btn{
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* -------------------------
   14) ALERTS
   ------------------------- */
.rx-alert{
  border-radius: 16px;
  border: 1px solid var(--rx-border);
  background: var(--rx-card);
  color: var(--rx-text);
}

/* -------------------------
   15) TABLES (BOOTSTRAP VAR OVERRIDES) — DUAL MODE
   ------------------------- */
body.rx-shell .table{
  --bs-table-bg: transparent;
  --bs-table-color: var(--rx-text);

  --bs-table-striped-bg: var(--rx-table-striped-bg);
  --bs-table-striped-color: var(--rx-text);

  --bs-table-hover-bg: var(--rx-table-hover-bg);
  --bs-table-hover-color: var(--rx-text);

  --bs-table-active-bg: var(--rx-hover2);
  --bs-table-active-color: var(--rx-text);

  --bs-table-border-color: var(--rx-border);
  color: var(--rx-text) !important;
}

/* Make sure cells never turn white */
body.rx-shell .table > :not(caption) > * > *{
  background-color: transparent !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-border) !important;
}

/* Header: readable in both modes */
body.rx-shell .table thead th{
  background: var(--rx-table-head-bg) !important;
  color: var(--rx-muted) !important;
  border-bottom-color: var(--rx-border2) !important;
  font-weight: 700;
}

/* if any view accidentally uses table-light/bg-white/text-dark */
body.rx-shell .table-light,
body.rx-shell .bg-white,
body.rx-shell .text-dark{
  background-color: transparent !important;
  color: var(--rx-text) !important;
}

/* Muted text inside tables */
body.rx-shell .table .text-muted,
body.rx-shell .table .text-secondary,
body.rx-shell .table .opacity-50{
  color: var(--rx-muted) !important;
  opacity: 1 !important;
}

/* Links inside tables */
body.rx-shell .table a{
  color: color-mix(in srgb, var(--rx-text) 92%, var(--rx-accent) 8%);
}
body.rx-shell .table a:hover{
  color: var(--rx-text);
  text-decoration: underline;
}

/* Inputs/selects inside tables */
body.rx-shell .table .form-control,
body.rx-shell .table .form-select{
  background: var(--rx-input-bg) !important;
  color: var(--rx-input-tx) !important;
  border-color: var(--rx-input-bd) !important;
}

/* Tables (classed) */
.table.rx-table{ color: var(--rx-text); }
.table.rx-table thead th{
  color: var(--rx-muted);
  border-bottom-color: var(--rx-border2);
  font-weight: 600;
}
.table.rx-table td, .table.rx-table th{ border-color: var(--rx-border); }
.table.rx-table tbody tr{
  transition: transform .12s ease, background .12s ease;
}
.table.rx-table tbody tr:hover{ background: var(--rx-hover); }

/* Compact row paddings */
.table.rx-table--compact > :not(caption) > * > *{
  padding-top: .55rem;
  padding-bottom: .55rem;
}

/* Bookings alignment */
.table.rx-table--bookings td,
.table.rx-table--bookings th{ vertical-align: middle; }
.table.rx-table--bookings td{
  padding-top: .70rem;
  padding-bottom: .70rem;
}

/* Prevent huge rows */
.table.rx-table--compact td,
.table.rx-table--compact th{
  white-space: nowrap;
}

/* Table wraps */
body.rx-shell .rx-table-wrap{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rx-border);
  background: var(--rx-card);
  box-shadow: var(--rx-shadow);
}
body.rx-shell .rx-table-wrap .table{ margin-bottom: 0 !important; }

/* -------------------------
   16) PAGINATION (LARAVEL)
   ------------------------- */
body.rx-shell .pagination .page-link{
  background: var(--rx-card) !important;
  border-color: var(--rx-border) !important;
  color: var(--rx-text) !important;
}
body.rx-shell .pagination .page-link:hover{
  border-color: rgba(77,163,255,.35) !important;
  box-shadow: 0 0 0 4px var(--rx-ring2);
}
body.rx-shell .pagination .page-item.active .page-link{
  background: rgba(77,163,255,.14) !important;
  border-color: rgba(77,163,255,.30) !important;
  color: var(--rx-text) !important;
}
body.rx-shell .pagination .page-item.disabled .page-link{
  opacity: .55;
}

/* -------------------------
   17) DROPDOWNS (PREMIUM)
   ------------------------- */
.rx-dropdown{
  background: var(--rx-dropdown-bg);
  border: 1px solid var(--rx-border);
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
  border-radius: 16px;
  overflow: hidden;
}
.rx-dd-head{ border-bottom: 1px solid var(--rx-border); }

body.rx-shell .dropdown-menu{
  background: var(--rx-dropdown-bg);
  border: 1px solid var(--rx-border);
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
  border-radius: 16px;
  overflow: hidden;
}
body.rx-shell .dropdown-item{ color: var(--rx-text); opacity: .88; }
body.rx-shell .dropdown-item:hover{
  background: var(--rx-hover2);
  color: var(--rx-text);
  opacity: 1;
}

/* -------------------------
   18) NOTIFICATIONS
   ------------------------- */
.rx-notif-list{ max-height: 340px; overflow:auto; }

.rx-notif-item{
  display:flex;
  gap: 10px;
  padding: 10px 12px;
  text-decoration:none;
  border-bottom: 1px solid var(--rx-border);
}
.rx-notif-item:hover{ background: var(--rx-hover); }

.rx-notif-icon{
  width: 38px; height: 38px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(77,163,255,.12);
  border: 1px solid rgba(77,163,255,.18);
  color: var(--rx-text);
}
.rx-dot-badge{
  position:absolute;
  top: -6px; right: -6px;
  font-size: .70rem;
  padding: .20rem .40rem;
  border-radius: 999px;
  background: rgba(255,77,113,.95);
  color: #fff;
  border: 2px solid var(--rx-dropdown-bg);
}

/* -------------------------
   19) USER CHIP
   ------------------------- */
.rx-user-btn{
  border: 1px solid var(--rx-border2);
  background: var(--rx-card);
  border-radius: 16px;
  color: var(--rx-text);
  padding: 8px 10px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.rx-user-btn:hover{
  border-color: rgba(77,163,255,.45);
  box-shadow: 0 0 0 5px var(--rx-ring2);
}
.rx-user-avatar{
  width: 36px; height: 36px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: var(--rx-hover2);
  border: 1px solid var(--rx-border);
  font-weight: 700;
}

/* -------------------------
   20) KPI CARDS
   ------------------------- */
.rx-kpi{
  border-radius: 18px;
  border: 1px solid var(--rx-border);
  background: var(--rx-card);
  box-shadow: var(--rx-shadow);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.rx-kpi:before{
  content:'';
  position:absolute;
  inset:-80px -80px auto auto;
  width: 160px; height: 160px;
  border-radius: 999px;
  opacity:.22;
}
.rx-kpi--blue:before{ background: rgba(77,163,255,.75); }
.rx-kpi--amber:before{ background: rgba(255,195,77,.75); }
.rx-kpi--red:before{ background: rgba(255,77,113,.75); }
.rx-kpi--green:before{ background: rgba(102,255,214,.65); }

.rx-kpi-top{ display:flex; align-items:center; gap: 12px; }
.rx-kpi-ic{
  width: 42px; height: 42px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
}
.rx-kpi-label{ font-weight: 800; color: var(--rx-text); }
.rx-kpi-sub{ font-size: .82rem; color: var(--rx-muted); }
.rx-kpi-value{
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: .3px;
  margin-top: 10px;
}
.rx-kpi-foot{
  margin-top: 4px;
  color: var(--rx-muted);
  font-size: .82rem;
}

/* mini cards */
.rx-mini-card{
  border-radius: 18px;
  border: 1px solid var(--rx-border);
  background: var(--rx-card);
  padding: 14px;
}
.rx-mini-label{ color: var(--rx-muted); font-size: .86rem; }
.rx-mini-value{ font-weight: 900; font-size: 1.8rem; }

/* -------------------------
   21) DASHBOARD ROWS
   ------------------------- */
.rx-rowitem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rx-border);
}
.rx-rowitem:last-child{ border-bottom: none; }

.rx-row-left{ min-width: 0; }

.rx-row-title{
  font-weight: 800;
  color: var(--rx-text);
  line-height: 1.2;
}
.rx-row-sub{
  color: var(--rx-muted);
  font-size: .86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56vw;
}
@media (min-width: 992px){
  .rx-row-sub{ max-width: 520px; }
}

.rx-actions{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

/* -------------------------
   22) ROOMS BOARD — UNIT TILES
   ------------------------- */
.rx-unit{
  border-radius: 18px;
  border: 1px solid var(--rx-border);
  background: var(--rx-hover2);
  padding: 10px 10px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  min-height: 86px;
}
.rx-unit:hover{
  transform: translateY(-2px);
  border-color: var(--rx-border2);
  background: var(--rx-hover);
}

.rx-unit-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
}
.rx-unit-no{
  font-weight: 900;
  letter-spacing: .3px;
  color: var(--rx-text);
}
.rx-unit-pill{
  display:inline-flex;
  align-items:center;
  padding: .28rem .45rem;
  border-radius: 999px;
  border: 1px solid var(--rx-chip-bd);
  background: var(--rx-chip-bg);
  color: var(--rx-chip-tx);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.rx-unit-sub{
  margin-top: 8px;
  color: var(--rx-muted);
  font-size: .82rem;
}
.rx-unit-lock{
  margin-top: 6px;
  color: var(--rx-muted);
  font-size: .80rem;
  opacity: .95;
}

/* status accents */
.rx-unit--available{ box-shadow: inset 0 0 0 1px rgba(87,255,187,.10); }
.rx-unit--booked{ box-shadow: inset 0 0 0 1px rgba(77,163,255,.12); }
.rx-unit--occupied{ box-shadow: inset 0 0 0 1px rgba(255,77,113,.12); }
.rx-unit--oos{ box-shadow: inset 0 0 0 1px rgba(255,195,77,.12); }

.rx-unit--booked .rx-unit-pill{ border-color: rgba(77,163,255,.30); background: rgba(77,163,255,.10); }
.rx-unit--occupied .rx-unit-pill{ border-color: rgba(255,77,113,.28); background: rgba(255,77,113,.10); }
.rx-unit--oos .rx-unit-pill{ border-color: rgba(255,195,77,.28); background: rgba(255,195,77,.10); }
.rx-unit--available .rx-unit-pill{ border-color: rgba(87,255,187,.22); background: rgba(87,255,187,.08); }

/* -------------------------
   23) BOOTSTRAP COMPAT FIXES (SCOPED)
   ------------------------- */
body.rx-shell .text-muted { color: var(--rx-muted) !important; }
body.rx-shell .card,
body.rx-shell .card-header,
body.rx-shell .card-body,
body.rx-shell .card-footer{
  background: transparent !important;
  border-color: var(--rx-border) !important;
  color: var(--rx-text) !important;
}

/* Make bootstrap subtle badges readable in both modes */
body.rx-shell .badge.bg-success-subtle,
body.rx-shell .badge.bg-primary-subtle,
body.rx-shell .badge.bg-danger-subtle,
body.rx-shell .badge.bg-warning-subtle,
body.rx-shell .badge.bg-secondary-subtle{
  color: var(--rx-text) !important;
  border-color: var(--rx-border2) !important;
  background: var(--rx-card) !important;
}

/* -------------------------
   24) OFFCANVAS (MOBILE MENU)
   ------------------------- */
.rx-offcanvas{
  background: var(--rx-glass-strong);
  border-right: 1px solid var(--rx-border);
}
.rx-offcanvas .offcanvas-header{
  border-bottom: 1px solid var(--rx-border);
}

/* -------------------------
   25) FOOTER (if you use .rx-footer here too)
   ------------------------- */
.rx-footer{
  border-top: 1px solid var(--rx-footer-border);
  background: var(--rx-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.rx-footer a{ color: color-mix(in srgb, var(--rx-text) 78%, var(--rx-accent) 22%); text-decoration:none; }
.rx-footer a:hover{ color: var(--rx-text); text-decoration: underline; }

/* =========================================================
   ICONIC STAY — RX FINAL PATCH (VIVID STATUS + FIX WHITE TEXT)
   Paste at the VERY END of admin.css
   ========================================================= */

/* 1) Bootstrap "white" helpers break in light mode */
body.rx-shell .text-white,
body.rx-shell .text-white-50,
body.rx-shell .text-white-75,
body.rx-shell .text-white-25,
body.rx-shell .link-light{
  color: var(--rx-text) !important;
}
body.rx-shell .text-white-50,
body.rx-shell .text-white-75,
body.rx-shell .text-white-25{
  color: var(--rx-muted) !important;
}

/* Also: opacity helpers can make text too faint in light mode */
html[data-theme="light"] body.rx-shell .opacity-50{ opacity: .75 !important; }
html[data-theme="light"] body.rx-shell .opacity-75{ opacity: .88 !important; }
html[data-theme="light"] body.rx-shell .opacity-25{ opacity: .60 !important; }

/* 2) Make status colors more vivid (still premium, not cartoon) */
:root{
  /* stronger but still glassy */
  --rx-blue-bg-strong:  rgba(77,163,255,.18);
  --rx-green-bg-strong: rgba(87,255,187,.18);
  --rx-amber-bg-strong: rgba(255,195,77,.20);
  --rx-red-bg-strong:   rgba(255,77,113,.18);

  --rx-blue-bd-strong:  rgba(77,163,255,.45);
  --rx-green-bd-strong: rgba(87,255,187,.42);
  --rx-amber-bd-strong: rgba(255,195,77,.45);
  --rx-red-bd-strong:   rgba(255,77,113,.42);
}

/* In light mode, bump a bit more because white background "eats" color */
html[data-theme="light"]{
  --rx-blue-bg-strong:  rgba(77,163,255,.22);
  --rx-green-bg-strong: rgba(87,255,187,.22);
  --rx-amber-bg-strong: rgba(255,195,77,.24);
  --rx-red-bg-strong:   rgba(255,77,113,.22);

  --rx-blue-bd-strong:  rgba(77,163,255,.55);
  --rx-green-bd-strong: rgba(87,255,187,.50);
  --rx-amber-bd-strong: rgba(255,195,77,.55);
  --rx-red-bd-strong:   rgba(255,77,113,.50);
}

/* 3) Pills/badges: use stronger palette so rooms board pops */
body.rx-shell .rx-pill--blue,
body.rx-shell .rx-badge--blue{
  border-color: var(--rx-blue-bd-strong) !important;
  background: var(--rx-blue-bg-strong) !important;
  color: var(--rx-text) !important;
}
body.rx-shell .rx-pill--green,
body.rx-shell .rx-badge--green{
  border-color: var(--rx-green-bd-strong) !important;
  background: var(--rx-green-bg-strong) !important;
  color: var(--rx-text) !important;
}
body.rx-shell .rx-pill--amber,
body.rx-shell .rx-badge--amber{
  border-color: var(--rx-amber-bd-strong) !important;
  background: var(--rx-amber-bg-strong) !important;
  color: var(--rx-text) !important;
}
body.rx-shell .rx-pill--red,
body.rx-shell .rx-badge--red{
  border-color: var(--rx-red-bd-strong) !important;
  background: var(--rx-red-bg-strong) !important;
  color: var(--rx-text) !important;
}

/* 4) Rooms board "unit pill" should inherit vividness */
body.rx-shell .rx-unit--booked .rx-unit-pill{
  border-color: var(--rx-blue-bd-strong) !important;
  background: var(--rx-blue-bg-strong) !important;
  color: var(--rx-text) !important;
}
body.rx-shell .rx-unit--occupied .rx-unit-pill{
  border-color: var(--rx-red-bd-strong) !important;
  background: var(--rx-red-bg-strong) !important;
  color: var(--rx-text) !important;
}
body.rx-shell .rx-unit--oos .rx-unit-pill{
  border-color: var(--rx-amber-bd-strong) !important;
  background: var(--rx-amber-bg-strong) !important;
  color: var(--rx-text) !important;
}
body.rx-shell .rx-unit--available .rx-unit-pill{
  border-color: var(--rx-green-bd-strong) !important;
  background: var(--rx-green-bg-strong) !important;
  color: var(--rx-text) !important;
}

/* 5) Nav text readability (sometimes looks "white locked") */
body.rx-shell .rx-navlink,
body.rx-shell .rx-nav-title,
body.rx-shell .rx-brand-name,
body.rx-shell .rx-brand-title{
  color: var(--rx-text) !important;
}
body.rx-shell .rx-nav-title{
  color: var(--rx-muted) !important;
}

/* 6) Dropdown/notification text clarity in light mode */
body.rx-shell .rx-dropdown,
body.rx-shell .dropdown-menu{
  color: var(--rx-text) !important;
}
body.rx-shell .rx-notif-item,
body.rx-shell .rx-notif-body,
body.rx-shell .rx-notif-item *{
  color: var(--rx-text) !important;
}
body.rx-shell .rx-notif-item .small,
body.rx-shell .rx-notif-item .rx-notif-meta{
  color: var(--rx-muted) !important;
}

/* Optional: unread highlight (safe, premium) */
body.rx-shell .rx-notif-item.is-unread{
  background: color-mix(in srgb, var(--rx-blue-bg-strong) 65%, transparent) !important;
}

/* =========================================================
   RX FIX (FINAL): KILL BLACK SEGMENT + KEEP BACKGROUND SMOOTH
   Approach: fixed background layer via body::before (no tiling, no slabs)
   Paste at VERY END of admin.css
   ========================================================= */

/* Make sure the page canvas behind everything is never black */
html, body{
  background: var(--rx-bg) !important;
}

/* We keep your normal body styling, but move the fancy background to a fixed layer */
body.rx-shell{
  position: relative;
  background: transparent !important; /* important: stop the scroll painting issues */
}

/* Fixed premium background layer (always covers viewport, never “segments”) */
body.rx-shell::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(1200px 900px at 10% -10%, rgba(77,163,255,.16), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(102,255,214,.10), transparent 60%),
    linear-gradient(180deg, var(--rx-bg), var(--rx-bg2));

  /* IMPORTANT: no repeat/tiling */
  background-repeat: no-repeat;
  background-size: cover;
}

/* Your ambient already exists; keep it above the bg layer */
.rx-ambient{ z-index: 1 !important; }

/* Keep app layers above bg + ambient */
.rx-fluid, .rx-mtop, .rx-aside, .rx-main{
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------------
   OPTIONAL POLISH: soften “slab” look on big wrappers (dark mode)
   This fixes the “big rectangle” vibe without ruining your design.
   ---------------------------------------------------------------- */
html[data-theme="dark"] body.rx-shell .rx-card-shell,
html[data-theme="dark"] body.rx-shell .rx-table-wrap,
html[data-theme="dark"] body.rx-shell .rx-panel,
html[data-theme="dark"] body.rx-shell .rx-mini-card,
html[data-theme="dark"] body.rx-shell .rx-kpi{
  background: rgba(255,255,255,.05) !important; /* gentle translucency */
  border-color: rgba(255,255,255,.10) !important;
}

/* Table responsive wrapper must never inject a solid bg */
body.rx-shell .table-responsive{
  background: transparent !important;
}

/* Table head: slightly softer band (prevents “block stripe” feel) */
html[data-theme="dark"] body.rx-shell .table thead th{
  background: rgba(0,0,0,.12) !important;
}

/* =========================================================
   ✅ MODALS (CLEAN + PREMIUM + NO HARSH SHADOW)
   - Removes click-block bug
   - Keeps a soft luxury backdrop (not black slab)
   ========================================================= */

/* Correct stacking */
.modal-backdrop{ z-index: 1050 !important; }
.modal{ z-index: 1055 !important; }

/* ✅ Backdrop should NEVER block clicks on modal */
.modal-backdrop.show{
  pointer-events: none !important;

  /* Premium soft backdrop */
  background: rgba(15, 23, 42, 0.22) !important;
  opacity: 0 !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  
}

/* Optional: make modal itself pop a bit more */
.rx-modal{
  box-shadow: 0 40px 100px rgba(0,0,0,.18);
}

/* Light mode: even softer so it doesn’t feel “greyed out” */
html[data-theme="light"] .modal-backdrop.show{
  background: rgba(15, 23, 42, 0.14) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);

}


/* =========================================================
   FIX: Modal + Inputs invisible text in DARK MODE
   (Bootstrap modal defaults to white bg; RX text is light)
   ========================================================= */

.rx-modal,
.rx-modal .modal-content{
  background: var(--rx-soft) !important;
  color: var(--rx-text) !important;
  border: 1px solid var(--rx-border) !important;
}

.rx-modal .rx-modal-head{
  background: rgba(255,255,255,.06) !important;
  border-bottom: 1px solid var(--rx-border) !important;
}

.rx-modal .rx-modal-foot{
  background: rgba(255,255,255,.04) !important;
  border-top: 1px solid var(--rx-border) !important;
}

/* Inputs inside modal */
.rx-modal .form-control,
.rx-modal .form-select,
.rx-modal .rx-input,
.rx-modal .rx-room-search{
  background: rgba(255,255,255,.06) !important;
  color: var(--rx-text) !important;
  border: 1px solid var(--rx-border) !important;
}

.rx-modal .form-control:focus,
.rx-modal .form-select:focus{
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* Placeholder visibility */
.rx-modal .form-control::placeholder{
  color: rgba(255,255,255,.55) !important;
}

/* Input group addon + "Clear" button */
.rx-modal .input-group-text,
.rx-modal .rx-input-addon{
  background: rgba(255,255,255,.08) !important;
  color: var(--rx-text) !important;
  border: 1px solid var(--rx-border) !important;
}

.rx-modal .btn-outline-secondary,
.rx-modal #checkinClearSearch{
  background: rgba(255,255,255,.04) !important;
  color: var(--rx-text) !important;
  border: 1px solid var(--rx-border) !important;
}
.rx-modal .btn-outline-secondary:hover,
.rx-modal #checkinClearSearch:hover{
  background: rgba(255,255,255,.10) !important;
}

/* Alerts inside modal (Bootstrap alert-light becomes unreadable in dark) */
.rx-modal .alert.alert-light{
  background: rgba(255,255,255,.06) !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-border) !important;
}

/* Loading row text */
.rx-modal .rx-room-loading{
  color: var(--rx-text) !important;
}

/* Unit tiles text */
.rx-modal .rx-room-tile{
  background: rgba(255,255,255,.05) !important;
  border: 1px solid var(--rx-border) !important;
  color: var(--rx-text) !important;
}
.rx-modal .rx-room-meta{
  color: rgba(255,255,255,.65) !important;
}

/* "Dim" state used by search */
.rx-modal .rx-room-tile.is-dim{
  opacity: .35;
  filter: grayscale(10%);
}

/* Ensure close button visible on dark header */
.rx-modal .btn-close{
  filter: invert(1) grayscale(100%);
  opacity: .85;
}
.rx-modal .btn-close:hover{ opacity: 1; }