/**
 * Peace of Sleep - POS Portal Theme
 *
 * Brand Colors:
 * - Linen: #EAE7E1 (backgrounds)
 * - Gold: #BD982F (accents, CTAs)
 * - Black: #000000 (text, headers)
 * - Light Grey: #C1BFBD (secondary text, borders)
 *
 * Typography: Inter (web fallback for Neutra Text)
 * - Headlines: Bold, uppercase, letter-spacing 2px
 * - Body: Regular, 16px, line-height 1.6
 * - Buttons: Semibold, uppercase, letter-spacing 1px
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Brand Colors */
  --pos-linen: #EAE7E1;
  --pos-gold: #BD982F;
  --pos-gold-hover: #A8872A;
  --pos-black: #000000;
  --pos-grey: #C1BFBD;
  --pos-white: #FFFFFF;

  /* Semantic Colors */
  --pos-bg-primary: var(--pos-linen);
  --pos-bg-secondary: var(--pos-white);
  --pos-bg-sidebar: var(--pos-black);
  --pos-text-primary: var(--pos-black);
  --pos-text-secondary: var(--pos-grey);
  --pos-accent: var(--pos-gold);
  --pos-border: rgba(0, 0, 0, 0.08);

  /* Typography */
  --pos-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --pos-sidebar-width: 280px;
  --pos-mobile-header-height: 60px;

  /* Transitions */
  --pos-transition: all 0.2s ease;
}

/* ============================================
   Loading State
   ============================================ */
.pos-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--pos-bg-primary);
  font-family: var(--pos-font-family);
}

.pos-loading-content {
  text-align: center;
  color: var(--pos-text-secondary);
}

.pos-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--pos-border);
  border-top-color: var(--pos-gold);
  border-radius: 50%;
  animation: pos-spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes pos-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Layout Structure
   ============================================ */
.pos-layout {
  display: flex;
  min-height: 100vh;
  background: var(--pos-bg-primary);
  font-family: var(--pos-font-family);
}

/* ============================================
   Sidebar
   ============================================ */
.pos-sidebar {
  width: var(--pos-sidebar-width);
  background: var(--pos-bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--pos-transition);
}

/* Sidebar Header / Brand */
.pos-sidebar-header {
  padding: 32px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pos-brand {
  text-align: center;
}

.pos-brand-name {
  display: block;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--pos-gold);
}

.pos-brand-tagline {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pos-grey);
}

/* Sentinel Footer Branding */
.pos-sentinel-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.pos-sentinel-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--pos-grey);
  opacity: 0.6;
}

.pos-sentinel-powered {
  font-size: 10px;
  color: var(--pos-grey);
  opacity: 0.4;
  margin-top: 4px;
}

/* Property Selector */
.pos-property-selector {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pos-property-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pos-white);
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--pos-font-family);
}

.pos-property-select:focus {
  outline: none;
  border-color: var(--pos-gold);
}

.pos-property-select option {
  background: var(--pos-black);
  color: var(--pos-white);
}

/* Current Property Badge */
.pos-current-property {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pos-property-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--pos-white);
}

.pos-access-level {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pos-gold);
}

/* Navigation */
.pos-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.pos-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--pos-grey);
  text-decoration: none;
  font-size: 14px;
  transition: var(--pos-transition);
  border-left: 3px solid transparent;
}

.pos-nav-link:hover {
  color: var(--pos-white);
  background: rgba(255, 255, 255, 0.05);
}

.pos-nav-link.active {
  color: var(--pos-gold);
  background: rgba(189, 152, 47, 0.1);
  border-left-color: var(--pos-gold);
}

.pos-nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.pos-nav-label {
  font-weight: 500;
}

/* Sidebar Footer */
.pos-sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* User Menu */
.pos-user-menu {
  position: relative;
  margin-bottom: 16px;
}

.pos-user-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--pos-transition);
}

.pos-user-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pos-user-avatar {
  width: 36px;
  height: 36px;
  background: var(--pos-gold);
  color: var(--pos-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.pos-user-info {
  flex: 1;
  text-align: left;
  overflow: hidden;
}

.pos-user-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--pos-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-user-email {
  display: block;
  font-size: 11px;
  color: var(--pos-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-user-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 8px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.pos-user-dropdown-item {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--pos-grey);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: var(--pos-transition);
  font-family: var(--pos-font-family);
}

.pos-user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pos-white);
}

/* Powered By */
.pos-powered-by {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}

.pos-powered-by-brand {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-top: 2px;
}

/* ============================================
   Main Content
   ============================================ */
.pos-main {
  flex: 1;
  margin-left: var(--pos-sidebar-width);
  min-height: 100vh;
}

.pos-content-header {
  padding: 24px 32px;
  background: var(--pos-white);
  border-bottom: 1px solid var(--pos-border);
}

.pos-page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--pos-black);
  letter-spacing: -0.5px;
}

.pos-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pos-header-property {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pos-gold);
  color: var(--pos-white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pos-header-property-icon {
  font-size: 14px;
}

.pos-content {
  padding: 32px;
}

/* ============================================
   Mobile Header (hidden on desktop)
   ============================================ */
.pos-mobile-header {
  display: none;
}

.pos-mobile-overlay {
  display: none;
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  .pos-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .pos-sidebar.open {
    transform: translateX(0);
  }

  .pos-main {
    margin-left: 0;
    padding-top: var(--pos-mobile-header-height);
  }

  .pos-mobile-header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Pad past the iOS notch so the hamburger + brand sit fully below
       the system status bar on iPhone 12+ Pro models. */
    height: calc(var(--pos-mobile-header-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: var(--pos-black);
    padding-left: 16px;
    padding-right: 16px;
    z-index: 90;
  }

  /* Match content offset to the now-taller header. */
  .pos-main {
    padding-top: calc(var(--pos-mobile-header-height) + env(safe-area-inset-top));
  }

  /* iOS Safari auto-zooms any input < 16px on focus. Override every
     Charter Suite inline-styled input/textarea/select so the page
     doesn't jump and scroll on every form interaction. */
  .pos-themed input,
  .pos-themed textarea,
  .pos-themed select,
  .charter-suite-page input,
  .charter-suite-page textarea,
  .charter-suite-page select {
    font-size: 16px;
  }

  /* Invite-modal property checklist drops its inner max-height on
     mobile — nested scroll surfaces inside a modal break iOS Safari
     gesture routing. Outer modal handles scroll naturally. */
  .cs-invite-property-list {
    max-height: none !important;
    overflow-y: visible !important;
  }

  /* Invite-modal action buttons — stack to single column so the
     branded-email button isn't fighting the SMS/WhatsApp/Copy buttons
     for ~155px each, where labels wrap to 3 lines. */
  .cs-invite-actions {
    grid-template-columns: 1fr !important;
  }

  /* URL cards on the Property dashboard — drop the desktop ellipsis on
     mobile and allow the URL to wrap at slashes so the user can read
     where the link goes. Vertical space is cheap on a phone. */
  .cs-url-link {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* Cert customiser pill grids (Welcome mode / Body size / Body align /
     Body tone / Border style / Border thickness / Border corner) all
     hardcode 3 or 4 columns desktop-first. On 375px that crams labels
     into ~70px cells. Auto-fit lets them flow naturally to 2 or 3
     wider cells. */
  .cs-pill-grid {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important;
  }

  /* Property card hero shrinks on mobile so 6 stacked cards don't
     create 2000+px of scroll just for the property list. Still
     recognisable at 130px, much less wasted vertical space. */
  .cs-property-card-hero {
    height: 130px !important;
  }

  /* Cert customiser Save / Discard / Reset action bar sticks to the
     bottom of the viewport on mobile. Without this the Save button
     lives at the bottom of a ~3000px scroll, forcing the property
     manager to scroll past every paragraph + welcome mode + border
     option after each tweak. Safe-area padding so it doesn't sit
     under the iOS home indicator. */
  .cs-cust-action-bar {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 5;
    background: #fff;
    margin-top: 18px !important;
    margin-left: -16px;
    margin-right: -16px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
  }

  /* Listing external link rows — stack the 3 inputs vertically on
     mobile so the URL input gets full width instead of squashing to
     ~30px between platform + label. Remove button floats top-right. */
  .cs-listing-link-row {
    flex-direction: column !important;
    align-items: stretch !important;
    padding-right: 44px;
  }
  .cs-listing-link-row .cs-listing-link-platform,
  .cs-listing-link-row .cs-listing-link-url,
  .cs-listing-link-row .cs-listing-link-label {
    width: 100% !important;
    flex: 1 1 auto !important;
  }
  .cs-listing-link-row .cs-listing-link-remove {
    position: absolute !important;
    top: 0;
    right: 0;
    min-height: 44px;
    min-width: 44px;
  }

  .pos-mobile-menu-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--pos-white);
    font-size: 24px;
    cursor: pointer;
  }

  .pos-mobile-brand {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--pos-gold);
  }

  .pos-mobile-spacer {
    width: 40px;
  }

  .pos-mobile-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 95;
  }

  .pos-content-header {
    padding: 16px 20px;
  }

  .pos-page-title {
    font-size: 20px;
  }

  .pos-content {
    padding: 20px;
  }

  /* Sidebar real-estate recovery on phones. Header, workspace identity,
     user profile, and the "Delivered by CleanMyBed" footer used to
     consume roughly two thirds of a 667px viewport, leaving the actual
     nav items squashed into the middle and scrolling. The overrides
     below shrink each chrome region so the nav has room to breathe. */

  /* Sidebar header — drop oversized padding and shrink the wordmark.
     Hide the marketing tagline; the user already knows the brand. */
  .pos-sidebar-header {
    padding: 14px 20px !important;
  }
  .pos-brand-name {
    font-size: 16px;
    letter-spacing: 2px;
  }
  .pos-brand-tagline {
    display: none;
  }

  /* Workspace identity strip — tighten the button padding and hide
     the "WORKSPACE" / "MY PROPERTIES" eyebrow label. The user is
     already inside the workspace; the group name + page label is
     enough to orient them. Saves ~25px of vertical space. */
  .pos-sidebar .pos-workspace-identity-btn {
    padding: 10px 20px !important;
    gap: 2px !important;
  }
  .pos-workspace-eyebrow {
    display: none !important;
  }

  /* User menu — tighter trigger padding and less gap below. */
  .pos-sidebar-footer {
    padding: 10px 16px !important;
  }
  .pos-user-menu {
    margin-bottom: 8px !important;
  }
  .pos-user-trigger {
    padding: 8px 10px !important;
  }

  /* "Charter Suite / Delivered by CleanMyBed" footer is brand vanity
     on a phone — hide on mobile to claw back ~50px for the nav. The
     brand wordmark up top already covers the same ground. */
  .pos-sentinel-footer {
    display: none !important;
  }
}

/* Invite-modal property checklist desktop override — restores the
   bounded inner-scroll list above the mobile breakpoint. */
@media (min-width: 769px) {
  .cs-invite-property-list {
    max-height: 220px;
    overflow-y: auto;
  }
}

/* ============================================
   Common Components
   ============================================ */

/* Cards */
.pos-card {
  background: var(--pos-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pos-card-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--pos-black);
}

/* Buttons */
.pos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--pos-transition);
  font-family: var(--pos-font-family);
}

.pos-btn-primary {
  background: var(--pos-gold);
  color: var(--pos-black);
}

.pos-btn-primary:hover {
  background: var(--pos-gold-hover);
}

.pos-btn-secondary {
  background: transparent;
  color: var(--pos-black);
  border: 1px solid var(--pos-grey);
}

.pos-btn-secondary:hover {
  border-color: var(--pos-black);
}

/* Form Elements */
.pos-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--pos-grey);
  border-radius: 0;
  background: var(--pos-white);
  transition: var(--pos-transition);
  font-family: var(--pos-font-family);
}

.pos-input:focus {
  outline: none;
  border-color: var(--pos-gold);
}

.pos-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pos-text-secondary);
}

/* Stats Grid */
.pos-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.pos-stat-card {
  background: var(--pos-white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pos-stat-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--pos-black);
}

.pos-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pos-text-secondary);
  margin-top: 4px;
}

/* Empty State */
.pos-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--pos-text-secondary);
}

.pos-empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.pos-empty-state-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--pos-black);
  margin-bottom: 8px;
}

.pos-empty-state-text {
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Table */
.pos-table-container {
  background: var(--pos-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pos-table {
  width: 100%;
  border-collapse: collapse;
}

.pos-table th {
  padding: 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pos-text-secondary);
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--pos-border);
}

.pos-table td {
  padding: 16px;
  font-size: 14px;
  color: var(--pos-black);
  border-bottom: 1px solid var(--pos-border);
}

.pos-table tr:last-child td {
  border-bottom: none;
}

.pos-table tr:hover td {
  background: rgba(0, 0, 0, 0.01);
}

/* Badge */
.pos-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.pos-badge-gold {
  background: rgba(189, 152, 47, 0.15);
  color: var(--pos-gold);
}

.pos-badge-success {
  background: rgba(34, 139, 34, 0.15);
  color: #228b22;
}

.pos-badge-pending {
  background: rgba(193, 191, 189, 0.3);
  color: #666;
}

/* Group Cards */
.pos-group-card {
  background: var(--pos-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pos-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--pos-border);
}

.pos-group-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--pos-black);
  margin: 0;
}

.pos-group-subtitle {
  font-size: 13px;
  color: var(--pos-text-secondary);
  margin-top: 4px;
}

.pos-group-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pos-group-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--pos-border);
  background: rgba(0, 0, 0, 0.01);
}

.pos-group-empty {
  padding: 24px;
  color: var(--pos-text-secondary);
  font-size: 14px;
}

/* ============================================
   POS Theme Overrides for Portal Layout
   ============================================
   When .pos-themed is added to .portal-layout,
   these overrides apply gold theme to existing
   admin layout structure.
   ============================================ */

/* Sidebar - Black background with gold accents */
.portal-layout.pos-themed .sidebar {
  background: var(--pos-black);
}

.portal-layout.pos-themed .sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-layout.pos-themed .sidebar-brand {
  color: var(--pos-gold);
  font-weight: 300;
  letter-spacing: 3px;
}

.portal-layout.pos-themed .sidebar-subtitle {
  color: var(--pos-grey);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav Links - Gold active state */
.portal-layout.pos-themed .nav-link {
  color: var(--pos-grey);
  border-left: 3px solid transparent;
}

.portal-layout.pos-themed .nav-link:hover {
  color: var(--pos-white);
  background: rgba(255, 255, 255, 0.05);
}

.portal-layout.pos-themed .nav-link.active {
  color: var(--pos-gold);
  background: rgba(189, 152, 47, 0.1);
  border-left-color: var(--pos-gold);
}

/* User Menu */
.portal-layout.pos-themed .user-menu-trigger {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.portal-layout.pos-themed .user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.portal-layout.pos-themed .user-avatar {
  background: var(--pos-gold);
  color: var(--pos-black);
}

.portal-layout.pos-themed .user-name {
  color: var(--pos-white);
}

.portal-layout.pos-themed .user-email {
  color: var(--pos-grey);
}

.portal-layout.pos-themed .user-menu-arrow {
  color: var(--pos-grey);
}

.portal-layout.pos-themed .user-menu-dropdown {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.portal-layout.pos-themed .user-menu-item {
  color: var(--pos-grey);
}

.portal-layout.pos-themed .user-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pos-white);
}

/* Main Content - Linen background */
.portal-layout.pos-themed .main-content {
  background: var(--pos-linen);
}

.portal-layout.pos-themed .top-bar {
  background: var(--pos-white);
  border-bottom: 1px solid var(--pos-border);
}

.portal-layout.pos-themed .page-title {
  color: var(--pos-black);
}

.portal-layout.pos-themed .content-area {
  background: var(--pos-linen);
}

/* Sidebar Footer */
.portal-layout.pos-themed .sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Property Selector (POS specific) */
.portal-layout.pos-themed .pos-property-selector {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-layout.pos-themed .pos-property-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pos-white);
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--pos-font-family);
}

.portal-layout.pos-themed .pos-property-select:focus {
  outline: none;
  border-color: var(--pos-gold);
}

.portal-layout.pos-themed .pos-property-select option {
  background: var(--pos-black);
  color: var(--pos-white);
}

/* Current Property Display */
.portal-layout.pos-themed .pos-current-property {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-layout.pos-themed .pos-property-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--pos-white);
}

.portal-layout.pos-themed .pos-access-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(189, 152, 47, 0.2);
  color: var(--pos-gold);
  border-radius: 4px;
  width: fit-content;
}

/* Powered By */
.portal-layout.pos-themed .pos-powered-by {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 16px;
}

.portal-layout.pos-themed .pos-powered-by-brand {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-top: 2px;
}

/* Mobile Header */
.portal-layout.pos-themed .pos-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pos-mobile-header-height);
  background: var(--pos-black);
  padding: 0 16px;
  z-index: 90;
  align-items: center;
}

.portal-layout.pos-themed .pos-mobile-menu-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--pos-white);
  font-size: 24px;
  cursor: pointer;
}

.portal-layout.pos-themed .pos-mobile-header-center {
  flex: 1;
  text-align: center;
}

.portal-layout.pos-themed .pos-mobile-brand {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--pos-white);
}

.portal-layout.pos-themed .pos-mobile-property {
  font-size: 16px;
  font-weight: 600;
  color: var(--pos-gold);
  letter-spacing: 0.5px;
}

.portal-layout.pos-themed .pos-mobile-spacer {
  width: 40px;
}

.portal-layout.pos-themed .pos-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 95;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .portal-layout.pos-themed .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 100;
  }

  .portal-layout.pos-themed .sidebar.mobile-open {
    transform: translateX(0);
  }

  .portal-layout.pos-themed .main-content {
    margin-left: 0;
    padding-top: var(--pos-mobile-header-height);
  }

  .portal-layout.pos-themed .pos-mobile-header {
    display: flex;
  }

  .portal-layout.pos-themed .pos-mobile-overlay {
    display: block;
  }
}

/* Override ops-page styles for POS gold accent */
.portal-layout.pos-themed .ops-primary-btn {
  background: var(--pos-gold) !important;
  color: var(--pos-black) !important;
}

.portal-layout.pos-themed .ops-primary-btn:hover {
  background: var(--pos-gold-hover) !important;
}

.portal-layout.pos-themed .ops-status-tab.active {
  border-bottom-color: var(--pos-gold) !important;
  color: var(--pos-gold) !important;
}

.portal-layout.pos-themed .ops-tab-count.active {
  background: var(--pos-gold) !important;
}
