:root {
  /* ==========================================================================
     GLOBAL MASTER COLOR SYSTEM (CENTRALIZED ROOT VARIABLES)
     Change any color here to update the entire application instantly!
     ========================================================================== */

  /* 0. Propora Brand Logo & Tier Colors */
  --propora-orange: #F78C1E; /* Top Chevron (Warm Amber Orange) */
  --propora-coral: #F15C4F;  /* Middle Chevron (Coral Red) */
  --propora-blue: #0099FF;   /* Bottom Chevron (Electric Cyan/Blue) */
  --propora-navy: #111625;   /* Headline & Brand Dark Typography */

  /* 1. Core Brand Colors */
  --color-primary: #0F172A;
  /* Primary Slate Navy - Buttons, active items, brand accents */
  --color-primary-hover: #1E293B;
  /* Primary hover tone */
  --color-primary-light: #F1F5F9;
  /* Soft primary tint */
  --color-primary-active: #EFF6FF;
  /* Active accent tint */

  --color-secondary: #2563EB;
  /* Vibrant Sapphire Blue - Links, highlights, deal markers */
  --color-secondary-hover: #1D4ED8;
  /* Secondary hover */
  --color-secondary-light: #EFF6FF;
  /* Light blue badge background */
  --color-secondary-border: #BFDBFE;
  /* Light blue badge border */

  /* 2. Base Neutrals & Surfaces */
  --color-white: #FFFFFF;
  /* Card backgrounds, modals, drawers, clean surfaces */
  --color-black: #000000;
  /* Pure black */
  --color-bg-main: #FFFFFF;
  /* Default surface background */
  --color-bg-surface: #F8FAFC;
  /* App canvas, table header background, side panels */
  --color-bg-hover: #F1F5F9;
  /* Item hover background */
  --color-bg-active: #E2E8F0;
  /* Item active background */

  /* 3. Borders & Dividers */
  --color-border: #E2E8F0;
  /* Primary subtle border */
  --color-border-light: #F1F5F9;
  /* Very soft divider */
  --color-border-subtle: #CBD5E1;
  /* Form input border, scrollbar thumb */
  --color-border-dark: #1E293B;
  /* Dark border accent */

  /* 4. Typography & Text */
  --color-text-main: #0F172A;
  /* Headings, lead names, primary values */
  --color-text-secondary: #334155;
  /* Subheadings, strong descriptions */
  --color-text-muted: #64748B;
  /* Subtext, secondary table metadata */
  --color-text-light: #94A3B8;
  /* Placeholders, disabled text, group labels */
  --color-text-subtle: #475569;
  /* Navigation labels, table th labels */

  /* 5. Semantic & Status Accents */
  --color-success: #059669;
  /* Emerald Green - Booked, Paid, Cleared */
  --color-success-dark: #047857;
  --color-success-bg: #ECFDF5;
  --color-success-border: #A7F3D0;
  --color-success-text: #065F46;

  --color-danger: #DC2626;
  /* Crimson Red - Cancelled, Overdue, Delete */
  --color-danger-dark: #B91C1C;
  --color-danger-bg: #FEF2F2;
  --color-danger-border: #FECACA;
  --color-danger-text: #991B1B;

  --color-warning: #D97706;
  /* Amber Gold - In Negotiation, Pending */
  --color-warning-dark: #B45309;
  --color-warning-bg: #FEF3C7;
  --color-warning-border: #FDE68A;
  --color-warning-text: #92400E;

  --color-info: #2563EB;
  /* Sapphire Blue - Active Pipeline, Info */
  --color-info-dark: #1E40AF;
  --color-info-bg: #EFF6FF;
  --color-info-border: #BFDBFE;
  --color-info-text: #1E40AF;

  /* 6. Legacy & Theme Aliases (Inherit from Master Tokens) */
  --app-black: var(--color-primary);
  --app-white: var(--color-white);
  --app-primary: var(--color-primary);
  --app-primary-hover: var(--color-primary-hover);
  --app-primary-text: var(--color-white);
  --app-primary-gradient: linear-gradient(180deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  --app-primary-light: var(--color-secondary-light);
  --app-primary-active: var(--color-primary-active);

  --app-secondary: var(--color-text-secondary);
  --app-secondary-hover: var(--color-text-secondary);
  --app-secondary-text: var(--color-white);
  --app-secondary-light: var(--color-bg-surface);

  --app-sidebar-bg: var(--color-white);
  --app-sidebar-surface: var(--color-bg-surface);
  --app-sidebar-border: var(--color-border);
  --app-sidebar-active: var(--color-primary);

  --app-bg: var(--color-bg-surface);
  --app-card-bg: var(--color-white);
  --app-card-surface: var(--color-bg-surface);
  --app-surface-subtle: var(--color-bg-hover);
  --app-border: var(--color-border);
  --app-border-light: var(--color-border-light);
  --app-border-dark: var(--color-border-dark);

  --app-text-dark: var(--color-text-main);
  --app-text-muted: var(--color-text-muted);
  --app-text-light: var(--color-text-light);

  --btn-primary-bg: var(--color-primary);
  --btn-primary-text: var(--color-white);
  --btn-primary-hover: var(--color-primary-hover);
  --btn-primary-border: var(--color-primary);
  --btn-primary-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);

  --btn-secondary-bg: var(--color-white);
  --btn-secondary-text: var(--color-text-main);
  --btn-secondary-border: var(--color-border);
  --btn-secondary-hover: var(--color-bg-surface);
  --btn-secondary-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);

  --app-green: var(--color-success);
  --app-green-badge: var(--color-success-dark);
  --app-green-bg: var(--color-success-bg);

  /* Real Estate Aliases */
  --re-navy-dark: var(--color-primary);
  --re-navy-primary: var(--color-primary);
  --re-navy-surface: var(--color-primary-hover);
  --re-navy-border: var(--color-text-secondary);
  --re-blue-primary: var(--color-info-dark);
  --re-blue-accent: var(--color-secondary);
  --re-blue-hover: var(--color-secondary-hover);
  --re-blue-light: var(--color-secondary-light);
  --re-emerald: var(--color-success);
  --re-emerald-light: var(--color-success-bg);
  --re-emerald-border: var(--color-success-border);
  --re-gold: var(--color-warning);
  --re-gold-light: var(--color-warning-bg);
  --re-gold-border: var(--color-warning-border);
  --re-bg-canvas: var(--color-bg-surface);
  --re-card-bg: var(--color-white);
  --re-border: var(--color-border);
  --re-border-light: var(--color-border-light);
  --re-text-dark: var(--color-text-main);
  --re-text-muted: var(--color-text-muted);
  --re-text-light: var(--color-text-light);

  /* Scale Tokens */
  --header-height: 56px;
  --sidebar-width: 235px;
  --sidebar-collapsed-width: 72px;

  --btn-radius: 10px;
  --btn-height: 42px;
  --card-radius: 14px;

  /* Global Shadow System */
  --app-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --app-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --app-shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.08);
  --app-shadow-lg: 0 10px 25px -4px rgba(0, 0, 0, 0.12);
  --app-shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.18);
  --app-shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.16);

  --font-sans: 'Inter', 'Inter-Fallback', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-outfit: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  font-size: 16px;
  font-family: var(--font-sans);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--app-bg);
  color: var(--app-text-dark);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Global Luxury Monochrome Button System */
.btn-app-primary {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border) !important;
  box-shadow: var(--btn-primary-shadow) !important;
  border-radius: var(--btn-radius);
  font-family: var(--font-sans);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-app-primary:hover {
  background: var(--btn-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--app-shadow-md) !important;
}

.btn-app-primary:active {
  transform: translateY(0);
}

.btn-app-secondary {
  background: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-text) !important;
  border: 1px solid var(--btn-secondary-border) !important;
  box-shadow: var(--btn-secondary-shadow) !important;
  border-radius: var(--btn-radius);
  font-family: var(--font-sans);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-app-secondary:hover {
  background: var(--btn-secondary-hover) !important;
  color: var(--btn-secondary-text) !important;
  border-color: #D4D4D8 !important;
  transform: translateY(-1px);
}

.btn-app-secondary:active {
  transform: translateY(0);
}

/* Master Modern Architecture Layout */
.app-master-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--app-bg);
}

.app-main-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
  min-width: 0;
  background: var(--app-bg);
}

/* ========================================================
   UNIFIED LUXURY SIDEBAR
   ======================================================== */
.unified-luxury-sidebar {
  width: var(--sidebar-width);
  background: var(--app-sidebar-bg);
  border-right: 1px solid var(--app-sidebar-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 100;
  /* box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2); */
}

.unified-luxury-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

/* Brand Header (Fresha-inspired Geometric Wordmark) */
.sidebar-brand-wrapper {
  height: var(--header-height);
  padding: 0 1.35rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--app-sidebar-border);
  flex-shrink: 0;
}

.brand-logo-cluster {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  gap: 3px;
}

.brand-title {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--color-white);
  line-height: 0.98;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #A1A1AA;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-collapse-trigger {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--app-sidebar-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-collapse-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.unified-luxury-sidebar.collapsed .sidebar-brand-wrapper {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-collapsed-expand-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #18181B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sidebar-collapsed-expand-btn:hover {
  background: #27272A;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.06);
}

/* Floating pill on sidebar edge when collapsed */
.sidebar-floating-edge-toggle {
  position: absolute;
  right: -12px;
  top: 76px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #09090B;
  border: 1px solid #3F3F46;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 120;
  transition: all 0.15s ease;
}

.sidebar-floating-edge-toggle:hover {
  background: #27272A;
  border-color: #71717A;
  transform: scale(1.12);
}

/* Branch Selector Pill */
.branch-selector-pill {
  margin: 0.85rem 1rem 0.35rem 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--app-sidebar-border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.branch-dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  flex-shrink: 0;
}

.branch-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
  overflow: hidden;
}

.branch-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-bg-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.branch-status {
  font-size: 0.7rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.branch-icon-right {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Navigation Scroll Area */
.unified-nav-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-group-heading {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--color-text-subtle);
  padding: 0.5rem 0.65rem 0.25rem 0.65rem;
  user-select: none;
}

.nav-section-wrapper {
  display: flex;
  flex-direction: column;
}

.unified-nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.unified-luxury-sidebar.collapsed .unified-nav-parent {
  justify-content: center;
  padding: 0.65rem 0;
}

.unified-nav-parent:hover {
  background: var(--app-sidebar-surface);
  color: var(--color-white);
}

.unified-nav-parent.parent-active {
  background: var(--app-sidebar-active);
  color: var(--color-white);
  font-weight: 600;
}

.unified-nav-parent.parent-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--color-white);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.parent-left-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.parent-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.parent-label {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.parent-right-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.parent-chevron-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
}

.parent-chevron-btn:hover {
  color: var(--color-white);
}

/* Accordion Sub-items */
.unified-nav-subitems {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.2rem 0 0.35rem 1.95rem;
  position: relative;
}

.unified-nav-subitems::before {
  content: '';
  position: absolute;
  left: 1.4rem;
  top: 4px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.unified-sub-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.65rem;
  border-radius: 7px;
  font-size: 0.83rem;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

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

.unified-sub-link.sub-active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #52525B;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.unified-sub-link:hover .sub-dot {
  background: #D4D4D8;
}

.unified-sub-link.sub-active .sub-dot {
  background: var(--color-white);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.sub-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Bottom Profile Footer */
.sidebar-user-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--app-sidebar-border);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.user-avatar-gradient {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #27272A 0%, #18181B 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.82rem;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.status-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid var(--app-sidebar-bg);
}

.user-details-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-bg-surface);
  white-space: nowrap;
}

.user-role {
  font-size: 0.72rem;
  color: #A1A1AA;
  white-space: nowrap;
}

/* ========================================================
   MODERN LUXURY TOP HEADER
   ======================================================== */
.modern-luxury-header {
  height: var(--header-height);
  width: 100%;
  background: var(--app-card-bg);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.header-left-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-sidebar-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--app-border);
  background: var(--color-white);
  color: var(--app-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-sidebar-toggle-btn:hover {
  background: #F4F4F5;
  border-color: #D4D4D8;
  color: #000000;
}

.header-breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.breadcrumb-root {
  color: var(--app-text-muted);
  font-weight: 500;
}

.breadcrumb-chevron {
  color: var(--app-text-light);
}

.breadcrumb-active {
  color: var(--app-text-dark);
  font-weight: 700;
}

/* Global Command Search Bar */
.header-center-search {
  display: flex;
  justify-content: center;
  flex: 1;
  max-width: 440px;
  margin: 0 1.5rem;
}

.global-command-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  width: 100%;
  transition: all 0.2s ease;
}

.global-command-search-bar:focus-within {
  background: var(--color-white);
  border-color: #09090B;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-lead-icon {
  color: var(--app-text-muted);
  flex-shrink: 0;
}

.global-command-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  color: var(--app-text-dark);
  font-weight: 500;
}

.global-command-search-bar input::placeholder {
  color: var(--app-text-light);
}

.command-shortcut-key {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-register-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-register-pill:hover {
  background: #DCFCE7;
}

.pulse-green-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 6px #16A34A;
}

.register-wallet-icon {
  color: #15803D;
}

.register-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803D;
}

.btn-header-booking {
  background: #09090B;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.5rem 1.05rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-header-booking:hover {
  background: #27272A;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header-icon-divider {
  width: 1px;
  height: 24px;
  background: var(--app-border);
}

.header-action-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--app-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.header-action-circle-btn:hover {
  background: var(--color-bg-surface);
  color: var(--app-text-dark);
  border-color: var(--color-border-subtle);
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  border: 1.5px solid var(--color-white);
}

.notification-count-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EF4444;
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  letter-spacing: -0.2px;
  pointer-events: none;
}

@keyframes notifSlideInRight {
  from {
    transform: translateX(100%);
    opacity: 0.6;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.header-avatar-capsule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 20px;
  border: 1px solid var(--app-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-avatar-capsule:hover {
  background: var(--color-bg-surface);
  border-color: var(--color-border-subtle);
}

.header-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #09090B;
  border: 1px solid #27272A;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-avatar-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-text-dark);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Main Content Area */
.main-content-canvas {
  flex: 1;
  background: var(--app-bg);
  min-width: 0;
  height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Dashboard Body */
.dashboard-container {
  padding: 2rem 2rem 2.5rem 2rem;
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  background: var(--app-card-bg);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--app-shadow-sm);
  border: 1px solid var(--app-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.card-title-group h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-text-dark);
}

.card-title-group p {
  font-size: 0.82rem;
  color: var(--app-text-muted);
  margin-top: 2px;
}

.more-options-btn {
  background: none;
  border: none;
  color: var(--app-text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
  border-radius: 6px;
}

.more-options-btn:hover {
  background: var(--app-border-light);
  color: var(--app-text-dark);
}

.big-sales-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--app-text-dark);
  margin-bottom: 0.85rem;
}

.sub-sales-info {
  font-size: 0.88rem;
  color: var(--app-text-dark);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.sub-sales-info span {
  font-weight: 700;
}

.chart-wrapper {
  width: 100%;
  height: 180px;
  position: relative;
  margin-bottom: 0.85rem;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-legend {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-text-dark);
  margin-top: 0.45rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.sales {
  background: #8B5CF6;
}

.legend-dot.appointments {
  background: var(--app-green);
}

.empty-schedule-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--app-primary-light);
  color: var(--app-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.empty-schedule-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--app-text-dark);
  margin-bottom: 0.35rem;
}

.empty-schedule-box p {
  font-size: 0.85rem;
  color: var(--app-text-muted);
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-card-bg);
}

/* Global Unified Button System - Monochrome Luxury */
.btn-app-primary {
  height: var(--btn-height);
  padding: 0 1.35rem;
  background: #09090B;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-app-primary:hover {
  background: #27272A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.btn-app-secondary,
.btn-app-outline,
.btn-export-app {
  height: var(--btn-height);
  padding: 0 1.25rem;
  background: var(--app-card-bg);
  color: var(--app-text-dark);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--btn-radius);
  border: 1px solid var(--app-border);
  cursor: pointer;
  box-shadow: var(--app-shadow-sm);
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-app-secondary:hover,
.btn-app-outline:hover,
.btn-export-app:hover {
  background: #F4F4F5;
  border-color: #D4D4D8;
  color: var(--app-text-dark);
}

/* Global Search Input Box */
.app-search-box {
  height: var(--btn-height);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--app-card-bg);
  border: 1px solid var(--app-border);
  border-radius: var(--btn-radius);
  box-shadow: var(--app-shadow-sm);
  transition: all 0.2s ease;
}

.app-search-box:focus-within {
  border-color: #09090B;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.app-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  color: var(--app-text-dark);
  font-weight: 500;
}

/* Offcanvas Filter Panel System */
.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 999;
  animation: fadeIn 0.2s ease;
}

.offcanvas-panel {
  position: fixed;
  background: var(--color-white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Desktop: Slide in from Right Sidebar (Wider & Taller matching Fresha) */
@media (min-width: 769px) {
  .offcanvas-panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 95vw;
    border-left: 1px solid var(--app-border);
    animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Mobile: Slide up from Bottom Sheet */
@media (max-width: 768px) {
  .offcanvas-panel {
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    animation: slideInBottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideInBottom {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.offcanvas-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--app-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offcanvas-body {
  padding: 1.25rem 1.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offcanvas-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-white);
}

.mobile-drag-handle {
  width: 38px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 2px;
  margin: 0.6rem auto 0 auto;
}

@media (min-width: 769px) {
  .mobile-drag-handle {
    display: none;
  }
}

/* Global Strict Hidden Scrollbars System (No visible scrollbars anywhere across the app) */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Sticky First Column System (Freeze 1st Column in Horizontal Scroll) */
.sticky-first-col {
  position: sticky !important;
  left: 0 !important;
  background: var(--color-white) !important;
  z-index: 5 !important;
  box-shadow: 3px 0 6px -2px rgba(0, 0, 0, 0.08);
}

th.sticky-first-col {
  background: #FAFBFD !important;
  z-index: 30 !important;
  box-shadow: 3px 0 6px -2px rgba(0, 0, 0, 0.08), 0 1px 0 var(--app-border) !important;
}

tr:hover .sticky-first-col {
  background: #F9FAFB !important;
}

/* Global Strict No-Wrap Table Rule (No text wrapping inside any table) */
table {
  white-space: nowrap !important;
}

table th,
table td,
table td div,
table td span,
table th div,
table th span {
  white-space: nowrap !important;
}

/* Global Reusable Right-Bottom Ambient Glow for Create/Edit Form Pages */
.create-page-ambient-glow {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 750px;
  height: 650px;
  background: radial-gradient(ellipse at 100% 100%, rgba(37, 99, 235, 0.10) 0%, rgba(124, 58, 237, 0.07) 40%, rgba(147, 51, 234, 0.03) 75%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ------------------------------------------------------------- */
/* Slack Team Chat List & Blockquote Styles (Fixes 123 & Bullets) */
/* ------------------------------------------------------------- */
.slack-formatted-message {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  line-height: 1.45 !important;
}

.slack-formatted-message div {
  min-height: 1.25em !important;
}

.slack-formatted-message ul,
.slack-composer-editor ul {
  list-style-type: disc !important;
  margin: 4px 0 6px 0 !important;
  padding-left: 22px !important;
}

.slack-formatted-message ol,
.slack-composer-editor ol {
  list-style-type: decimal !important;
  margin: 4px 0 6px 0 !important;
  padding-left: 22px !important;
}

.slack-formatted-message li,
.slack-composer-editor li {
  margin-bottom: 2px !important;
  line-height: 1.45 !important;
}

.slack-formatted-message blockquote,
.slack-composer-editor blockquote {
  border-left: 3px solid var(--color-border-subtle) !important;
  padding-left: 10px !important;
  margin: 4px 0 !important;
  color: var(--color-text-muted) !important;
}

.slack-formatted-message pre,
.slack-composer-editor pre {
  background-color: var(--color-bg-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  margin: 4px 0 !important;
  font-family: monospace !important;
  font-size: 0.88em !important;
  color: var(--color-danger-dark) !important;
}

/* ========================================================
   HEADER "SALE" LUXURY BUTTON & SHORTCUT BADGE
   ======================================================== */
.btn-header-sale {
  background: #09090B !important;
  color: var(--color-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 9px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
}

.btn-header-sale:hover {
  background: #18181B !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.btn-header-sale:active {
  transform: translateY(0);
}

.header-sale-kbd {
  background: #27272A;
  color: #D4D4D8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* ========================================================
   FULLSCREEN LUXURY POS CHECKOUT WORKSPACE (BLACK & WHITE)
   ======================================================== */
.pos-master-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #FAFAFA;
  overflow: hidden;
  font-family: var(--font-sans);
  color: #09090B;
}

/* 1. POS Top Navigation Header (Simple, Compact 48px Height) */
.pos-top-header {
  height: 48px;
  background: var(--color-white);
  color: #09090B;
  border-bottom: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  flex-shrink: 0;
  z-index: 40;
}

.pos-header-left,
.pos-header-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.pos-header-divider {
  width: 1px;
  height: 18px;
  background: #E4E4E7;
  flex-shrink: 0;
}

.pos-header-exit-btn {
  background: var(--color-white);
  color: #18181B;
  border: 1px solid #E4E4E7;
  border-radius: 7px;
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pos-header-exit-btn:hover {
  background: #F4F4F5;
  border-color: #D4D4D8;
  color: #09090B;
}

.pos-simple-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #09090B;
  white-space: nowrap;
}

.pos-hold-bills-cluster {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pos-hold-count-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: #F4F4F5;
  color: #18181B;
  border: 1px solid #E4E4E7;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
}

.pos-hold-buttons {
  display: flex;
  gap: 0.3rem;
}

.pos-hold-resume-btn {
  background: var(--color-white);
  color: #09090B;
  border: 1px solid #E4E4E7;
  border-radius: 7px;
  padding: 0.26rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.pos-hold-resume-btn:hover {
  background: #F4F4F5;
  border-color: #D4D4D8;
}

.pos-action-btn-subtle {
  background: var(--color-white);
  color: #52525B;
  border: 1px solid #E4E4E7;
  border-radius: 7px;
  padding: 0.28rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  transition: all 0.15s ease;
}

.pos-action-btn-subtle:hover {
  background: #F4F4F5;
  color: #09090B;
  border-color: #D4D4D8;
}

.pos-support-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  padding: 0.65rem 0.75rem;
  z-index: 60;
}

.pos-support-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #09090B;
  padding-bottom: 0.45rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid #F4F4F5;
}

.pos-support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #52525B;
  padding: 0.25rem 0;
}

.pos-support-row kbd {
  font-size: 0.66rem;
  font-weight: 700;
  color: #18181B;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

/* 2. Main Workspace Layout */
.pos-workspace-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 440px;
  height: calc(100vh - 48px);
  overflow: hidden;
}

@media (max-width: 1100px) {
  .pos-workspace-grid {
    grid-template-columns: 1fr 380px;
  }
}

/* 3. Catalog Left Panel */
.pos-catalog-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid #E4E4E7;
  background: #FAFAFA;
  overflow: hidden;
}

.pos-catalog-header-bar {
  padding: 0.75rem 1.25rem;
  background: var(--color-white);
  border-bottom: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Outside Drawer Trigger Button */
.pos-drawer-trigger-btn {
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 9px;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #18181B;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.pos-drawer-trigger-btn:hover {
  background: #F4F4F5;
  border-color: #D4D4D8;
}

.pos-drawer-trigger-btn.filtered {
  background: #09090B;
  color: var(--color-white);
  border-color: #09090B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.pos-trigger-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-trigger-clear-pill {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 2px;
  transition: all 0.14s ease;
}

.pos-trigger-clear-pill:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* POS Search Bar */
.pos-search-bar {
  flex: 1;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 9px;
  padding: 0 0.85rem;
  transition: all 0.16s ease;
  position: relative;
}

.pos-search-bar:hover {
  background: #EAEAEB;
  border-color: #D4D4D8;
}

.pos-search-bar:focus-within {
  background: var(--color-white);
  border-color: #09090B;
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.06);
}

.pos-search-icon {
  color: #71717A;
  flex-shrink: 0;
  transition: color 0.16s ease;
}

.pos-search-bar:focus-within .pos-search-icon {
  color: #09090B;
}

.pos-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.86rem;
  font-family: inherit;
  color: #09090B;
  font-weight: 500;
  padding: 0;
}

.pos-search-input::placeholder {
  color: #8E8E93;
  font-weight: 400;
}

.pos-search-clear {
  background: transparent;
  border: none;
  color: #71717A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 5px;
  transition: all 0.14s ease;
  flex-shrink: 0;
}

.pos-search-clear:hover {
  color: #09090B;
  background: #E4E4E7;
}

.pos-search-shortcut-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #71717A;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 0.02em;
  pointer-events: none;
  flex-shrink: 0;
  user-select: none;
}

/* ========================================================
   SLIDE-OVER FILTER DRAWER (MODAL OVERLAY)
   ======================================================== */
.pos-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  animation: fadeIn 0.18s ease;
}

.pos-drawer-sheet {
  width: 540px;
  max-width: 92vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slideInLeft 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.pos-drawer-header {
  height: 60px;
  padding: 0 1.25rem;
  background: #09090B;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.pos-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pos-drawer-title-group h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
}

.pos-drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
}

.pos-drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pos-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: #FAFAFA;
}

.pos-drawer-section {
  display: flex;
  flex-direction: column;
}

.pos-drawer-sec-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0.65rem;
}

.pos-drawer-sec-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #71717A;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.pos-drawer-sec-hint {
  font-size: 0.72rem;
  color: #A1A1AA;
}

/* Department Cards Grid in Drawer */
/* Step Transition */
.pos-drawer-step-view {
  animation: posStepFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes posStepFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Department Cards Grid in Drawer */
.pos-drawer-dept-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.pos-dept-card-box {
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 11px;
  padding: 0.95rem;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
}

.pos-dept-card-box:hover {
  border-color: #09090B;
  background: #FAFAFA;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pos-dept-card-box.all-catalog-card {
  grid-column: 1 / -1;
  background: #09090B;
  color: var(--color-white);
  border-color: #09090B;
}

.pos-dept-card-box.all-catalog-card:hover {
  background: #18181B;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.pos-dept-card-box.all-catalog-card .pos-dept-card-count {
  color: rgba(255, 255, 255, 0.75);
}

.pos-dept-card-box.all-catalog-card .pos-dept-action-text {
  color: rgba(255, 255, 255, 0.85);
}

.pos-dept-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.pos-box-gender-icon {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.pos-dept-card-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #71717A;
}

.pos-dept-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}

.pos-dept-card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #E4E4E7;
  color: #71717A;
}

.pos-dept-card-box.all-catalog-card .pos-dept-card-bottom-row {
  border-top-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.pos-dept-action-text {
  font-size: 0.72rem;
  font-weight: 500;
}

/* Step 2 Back Navigation Header */
.pos-drawer-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #18181B;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 0.85rem;
}

.pos-drawer-back-nav:hover {
  background: #F4F4F5;
  border-color: #09090B;
}

/* Hero card showing chosen department in Step 2 */
.pos-drawer-dept-hero {
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #09090B;
}

.pos-dept-hero-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pos-dept-hero-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #09090B;
  flex-shrink: 0;
}

.pos-dept-hero-info h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #09090B;
}

.pos-dept-hero-info p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #71717A;
}

.pos-dept-hero-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #18181B;
  background: #F4F4F5;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #E4E4E7;
}

/* Sub-categories Grid inside Drawer */
.pos-drawer-subcats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem;
}

.pos-drawer-subcat-btn {
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.pos-drawer-subcat-btn:hover {
  background: #F4F4F5;
  border-color: #09090B;
  transform: translateY(-1px);
}

.pos-drawer-subcat-btn.active {
  background: #18181B;
  color: var(--color-white);
  border-color: #18181B;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.pos-subcat-btn-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
}

.pos-subcat-icon {
  flex-shrink: 0;
  opacity: 0.75;
}

.pos-drawer-subcat-btn.active .pos-subcat-icon {
  opacity: 1;
  color: var(--color-white);
}

.pos-subcat-btn-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-subcat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: #F4F4F5;
  color: #71717A;
  margin-left: 0.35rem;
  flex-shrink: 0;
}

.pos-drawer-subcat-btn.active .pos-subcat-badge {
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-white);
}

.pos-drawer-footer {
  padding: 0.85rem 1.25rem;
  background: var(--color-white);
  border-top: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pos-grid-header-strip {
  padding: 0.65rem 1.25rem;
  background: var(--color-white);
  border-bottom: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pos-grid-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.pos-breadcrumb-label {
  color: #71717A;
  font-weight: 500;
}

.pos-breadcrumb-active {
  color: #09090B;
  font-weight: 700;
}

.pos-breadcrumb-count {
  color: #A1A1AA;
  font-size: 0.75rem;
}

.pos-reset-filter-btn {
  background: #F4F4F5;
  color: #3F3F46;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.14s ease;
}

.pos-reset-filter-btn:hover {
  background: #E4E4E7;
  color: #09090B;
}

/* Catalog Items Grid */
.pos-items-grid-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.pos-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1rem;
}

.pos-item-card {
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
}

.pos-item-card:hover {
  border-color: #09090B;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.pos-item-card.combo {
  border-color: var(--color-warning-border);
  background: linear-gradient(180deg, #FFFDF7 0%, var(--color-white) 100%);
}

.pos-item-card.combo:hover {
  border-color: var(--color-warning-dark);
}

.pos-item-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.pos-item-type-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.pos-item-type-chip.service {
  background: #F4F4F5;
  color: #27272A;
}

.pos-item-type-chip.product {
  background: #EDE9FE;
  color: #5B21B6;
}

.pos-item-type-chip.combo {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border: 1px solid var(--color-warning-border);
}

.pos-item-gender-chip {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

.pos-item-gender-chip.men {
  background: var(--color-secondary-light);
  color: var(--color-info-dark);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.pos-item-gender-chip.women {
  background: #FDF2F8;
  color: #9D174D;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.pos-item-gender-chip.unisex {
  background: #F4F4F5;
  color: #3F3F46;
  border: 1px solid #E4E4E7;
}

.pos-item-duration,
.pos-item-stock {
  font-size: 0.7rem;
  color: #71717A;
  display: flex;
  align-items: center;
  gap: 3px;
}

.pos-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #09090B;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  min-height: 2.4em;
}

.pos-item-cat-tag {
  font-size: 0.7rem;
  color: #A1A1AA;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.pos-item-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed #F4F4F5;
}

.pos-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: #09090B;
}

.pos-item-orig-price {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: #A1A1AA;
  font-weight: 500;
}

.pos-item-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #09090B;
  color: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-item-add-btn:hover {
  background: #27272A;
  transform: scale(1.06);
}

.pos-empty-catalog {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

.pos-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #27272A;
  margin-top: 0.75rem;
}

.pos-empty-subtitle {
  font-size: 0.82rem;
  color: #71717A;
  margin-top: 0.25rem;
}

/* 4. Right Cart / Docket Panel */
.pos-cart-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  overflow: hidden;
}

/* Client Selector Card */
.pos-client-selector-card {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E4E4E7;
  background: var(--color-white);
  position: relative;
  flex-shrink: 0;
}

.pos-client-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pos-client-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090B;
  flex-shrink: 0;
}

.pos-client-details {
  flex: 1;
  min-width: 0;
}

.pos-client-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #09090B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-vip-tag {
  background: var(--color-warning-bg);
  color: var(--color-warning-dark);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.pos-client-sub {
  font-size: 0.72rem;
  color: #71717A;
  white-space: nowrap;
}

.pos-client-switch-btn {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #27272A;
  cursor: pointer;
}

.pos-client-switch-btn:hover {
  background: #E4E4E7;
}

.pos-client-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #09090B;
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-client-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 1rem;
  right: 1rem;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pos-client-dropdown-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-bottom: 1px solid #F4F4F5;
}

.pos-client-dropdown-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.82rem;
}

.pos-client-dropdown-close {
  background: transparent;
  border: none;
  color: #71717A;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pos-client-dropdown-close:hover {
  background: #F4F4F5;
  color: #09090B;
}

.pos-client-dropdown-list {
  overflow-y: auto;
  max-height: 210px;
}

.pos-client-list-item {
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #FAFAFA;
}

.pos-client-list-item:hover {
  background: #F4F4F5;
}

.pos-client-list-item.active {
  background: #F4F4F5;
  border-left: 3px solid #09090B;
}

.pos-client-list-item.highlighted {
  background: #09090B !important;
  color: var(--color-white) !important;
  border-left: 3px solid var(--color-white) !important;
}

.pos-client-list-item.highlighted .pos-client-list-name {
  color: var(--color-white) !important;
}

.pos-client-list-item.highlighted .pos-client-list-phone {
  color: #A1A1AA !important;
}

/* Cart Items Scroll List */
.pos-cart-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  background: var(--color-white);
}

.pos-empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
}

.pos-empty-cart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #27272A;
  margin-top: 0.65rem;
}

.pos-empty-cart-desc {
  font-size: 0.75rem;
  color: #71717A;
  margin-top: 0.25rem;
  max-width: 220px;
}

.pos-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pos-cart-row {
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pos-cart-row-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.pos-cart-row-info {
  flex: 1;
  min-width: 0;
}

.pos-cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #09090B;
  display: block;
}

.pos-cart-row-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.pos-cart-unit-price {
  font-size: 0.75rem;
  color: #71717A;
}

.pos-cart-dot {
  color: #A1A1AA;
}

.pos-cart-staff-select {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  border: 1px solid #E4E4E7;
  background: var(--color-white);
  color: #27272A;
  font-weight: 500;
  outline: none;
  max-width: 140px;
}

.pos-cart-item-total {
  font-size: 0.92rem;
  font-weight: 700;
  color: #09090B;
  white-space: nowrap;
}

.pos-cart-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.35rem;
  border-top: 1px dashed #E4E4E7;
}

.pos-qty-stepper {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  overflow: hidden;
}

.pos-qty-btn {
  background: transparent;
  border: none;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  color: #27272A;
}

.pos-qty-btn:hover {
  background: #F4F4F5;
}

.pos-qty-num {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 0.55rem;
  min-width: 24px;
  text-align: center;
}

.pos-remove-btn {
  background: transparent;
  border: none;
  color: #A1A1AA;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}

.pos-remove-btn:hover {
  color: #EF4444;
}

/* Cart Summary & Checkout Dock */
.pos-cart-summary-dock {
  background: var(--color-white);
  border-top: 1px solid #E4E4E7;
  padding: 0.95rem 1.15rem 1rem 1.15rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.pos-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.pos-summary-label {
  color: #71717A;
  font-weight: 500;
}

.pos-summary-value {
  color: #09090B;
  font-weight: 600;
}

.pos-summary-discount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.pos-discount-toggle {
  display: inline-flex;
  border: 1px solid #E4E4E7;
  border-radius: 4px;
  overflow: hidden;
}

.pos-discount-mode-btn {
  background: var(--color-white);
  border: none;
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #71717A;
  cursor: pointer;
}

.pos-discount-mode-btn.active {
  background: #09090B;
  color: var(--color-white);
}

.pos-discount-input {
  width: 65px;
  padding: 0.2rem 0.4rem;
  border: 1px solid #E4E4E7;
  border-radius: 5px;
  font-size: 0.8rem;
  text-align: right;
  font-weight: 600;
}

.pos-discount-deduct {
  color: #EF4444;
  font-weight: 600;
  font-size: 0.78rem;
}

.pos-tax-toggle-btn {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.pos-tax-toggle-btn.on {
  background: #09090B;
  color: var(--color-white);
  border-color: #09090B;
}

.pos-tip-chips {
  display: flex;
  gap: 0.35rem;
}

.pos-tip-chip {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #E4E4E7;
  background: var(--color-white);
  color: #27272A;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.pos-tip-chip.active {
  background: #09090B;
  color: var(--color-white);
  border-color: #09090B;
}

.pos-grand-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-top: 1px solid #E4E4E7;
  border-bottom: 1px solid #E4E4E7;
  margin-top: 0.2rem;
}

.pos-grand-total-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #09090B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pos-grand-total-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #09090B;
}

/* Payment Mode Grid */
.pos-payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.pos-payment-tab {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 0.45rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #27272A;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-payment-tab:hover {
  background: #E4E4E7;
}

.pos-payment-tab.active {
  background: #09090B;
  color: var(--color-white);
  border-color: #09090B;
}

/* Cash Tender Box */
.pos-cash-calculator-box {
  background: #F9FAFB;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 0.65rem;
}

.pos-quick-note-btn {
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.pos-quick-note-btn:hover {
  background: #09090B;
  color: var(--color-white);
}

.pos-cash-input,
.pos-simple-input {
  flex: 1;
  padding: 0.4rem 0.65rem;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.pos-change-badge {
  background: var(--color-success-bg);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success-border);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.pos-upi-preview-box {
  background: #F9FAFB;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pos-upi-qr-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  padding: 0.5rem;
}

/* Pay & Hold Action Buttons */
.pos-cart-action-buttons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.pos-hold-action-btn {
  flex: 1;
  background: #F4F4F5;
  color: #27272A;
  border: 1px solid #E4E4E7;
  border-radius: 9px;
  padding: 0.65rem;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pos-hold-action-btn:hover:not(:disabled) {
  background: #E4E4E7;
}

.pos-hold-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pos-pay-action-btn {
  flex: 2;
  background: #09090B;
  color: var(--color-white);
  border: 1px solid #09090B;
  border-radius: 9px;
  padding: 0.65rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.pos-pay-action-btn:hover:not(:disabled) {
  background: #18181B;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.pos-pay-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* 5. Modals & Thermal Receipt (80mm) */
.pos-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease-out;
}

.pos-modal-card {
  width: 440px;
  background: var(--color-white);
  border-radius: 14px;
  border: 1px solid #E4E4E7;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-modal-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-modal-close {
  background: transparent;
  border: none;
  color: #71717A;
  cursor: pointer;
}

.pos-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pos-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pos-form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #27272A;
}

.pos-form-group input {
  padding: 0.55rem 0.75rem;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
}

.pos-form-group input:focus {
  border-color: #09090B;
}

.pos-modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #E4E4E7;
  background: #FAFAFA;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Thermal 80mm Receipt Dialog */
.pos-receipt-modal {
  width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.pos-receipt-paper {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: #09090B;
  background: var(--color-white);
}

.pos-receipt-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.pos-receipt-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.pos-receipt-sub {
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  color: #52525B;
  margin-top: 2px;
}

.pos-receipt-address,
.pos-receipt-contact {
  font-size: 0.68rem;
  color: #71717A;
  margin-top: 2px;
}

.pos-receipt-divider {
  border-top: 1px dashed #A1A1AA;
  margin: 0.65rem 0;
}

.pos-receipt-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 3px;
  font-size: 0.72rem;
}

.pos-receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.72rem;
}

.pos-receipt-table th {
  padding: 4px 0;
  border-bottom: 1px dashed #A1A1AA;
  font-weight: 700;
}

.pos-receipt-table td {
  padding: 4px 0;
  vertical-align: top;
}

.pos-receipt-totals {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.72rem;
}

.pos-receipt-row {
  display: flex;
  justify-content: space-between;
}

.pos-receipt-bold-total {
  font-size: 0.92rem;
  font-weight: 800;
  border-top: 1px dashed #09090B;
  border-bottom: 1px dashed #09090B;
  padding: 4px 0;
  margin: 4px 0;
}

.pos-receipt-footer {
  text-align: center;
  margin-top: 0.75rem;
}

.pos-receipt-barcode {
  font-size: 1rem;
  letter-spacing: -1px;
  font-weight: 800;
}

.pos-receipt-actions {
  padding: 0.85rem 1.15rem;
  background: #F4F4F5;
  border-top: 1px solid #E4E4E7;
  display: flex;
  gap: 0.5rem;
}

.pos-receipt-actions button {
  flex: 1;
  font-size: 0.78rem;
  padding: 0.5rem 0.4rem;
}

/* ========================================================
   FRESHA-STYLE COLLAPSIBLE DOCK & QUICK ACTIONS POPOVER
   ======================================================== */
.fresha-cart-dock {
  background: var(--color-white);
  border-top: 1px solid #E4E4E7;
  padding: 1.15rem 1.25rem 1.25rem 1.25rem;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

/* Top Center Circular Chevron Toggle */
.fresha-summary-toggle-btn {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090B;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  z-index: 10;
}

.fresha-summary-toggle-btn:hover {
  background: #F4F4F5;
  border-color: #09090B;
  transform: translateX(-50%) translateY(-1px);
}

/* Collapsed Row: Total & Amount */
.fresha-collapsed-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.fresha-subtle-total-label {
  font-size: 0.85rem;
  color: #71717A;
  font-weight: 500;
}

.fresha-subtle-total-val {
  font-size: 0.95rem;
  color: #09090B;
  font-weight: 600;
}

/* Expanded Detailed Breakdown */
.fresha-expanded-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  animation: fadeIn 0.15s ease-out;
}

.fresha-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #52525B;
  font-weight: 500;
}

.fresha-breakdown-row.discount {
  color: #EF4444;
}

.fresha-breakdown-row.total-row {
  font-weight: 700;
  color: #09090B;
  padding-top: 0.35rem;
  border-top: 1px solid #F4F4F5;
}

.fresha-dock-divider {
  border-top: 1px solid #E4E4E7;
  margin: 0.4rem 0;
}

/* To Pay Row */
.fresha-topay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  cursor: pointer;
  user-select: none;
}

.fresha-topay-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: #09090B;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fresha-topay-chevron {
  color: #71717A;
  transition: transform 0.2s ease;
}

.fresha-topay-chevron.rotated {
  transform: rotate(90deg);
}

.fresha-topay-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #09090B;
}

/* Bottom Action Buttons */
.fresha-dock-bottom-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.fresha-three-dots-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090B;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.fresha-three-dots-btn:hover {
  background: #F4F4F5;
  border-color: #D4D4D8;
  transform: scale(1.03);
}

.fresha-continue-pay-btn {
  flex: 1;
  height: 48px;
  border-radius: 9999px;
  background: #09090B;
  color: var(--color-white);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.fresha-continue-pay-btn:hover:not(:disabled) {
  background: #18181B;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.fresha-continue-pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Floating Quick Actions Popover */
.fresha-quick-actions-popover {
  position: absolute;
  bottom: 68px;
  left: 0;
  width: 250px;
  background: var(--color-white);
  border: 1px solid #E4E4E7;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 0.45rem;
  z-index: 200;
  animation: fadeIn 0.15s ease-out;
}

.fresha-popover-title {
  padding: 0.5rem 0.65rem 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #09090B;
}

.fresha-popover-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
  color: #18181B;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}

.fresha-popover-item:hover {
  background: #F4F4F5;
}

.fresha-popover-item.danger {
  color: #EF4444;
}

.fresha-popover-item.danger:hover {
  background: var(--color-danger-bg);
}

.fresha-popover-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  background: #F4F4F5;
  color: #09090B;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}

.fresha-popover-divider {
  border-top: 1px solid #F4F4F5;
  margin: 0.35rem 0;
}

/* Fresha Minimal Line Items */
.fresha-cart-items-list {
  display: flex;
  flex-direction: column;
}

.fresha-cart-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid #F4F4F5;
}

.fresha-cart-indicator-bar {
  width: 3px;
  border-radius: 2px;
  background: #D4D4D8;
  flex-shrink: 0;
}

.fresha-cart-row-content {
  flex: 1;
  min-width: 0;
}

.fresha-cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.fresha-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #09090B;
  line-height: 1.25;
}

.fresha-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #09090B;
  white-space: nowrap;
}

.fresha-cart-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.fresha-staff-select {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  border: 1px solid #E4E4E7;
  background: var(--color-white);
  color: #27272A;
  font-weight: 500;
  outline: none;
  max-width: 140px;
}

.fresha-meta-dot {
  color: #A1A1AA;
}

.fresha-meta-cat {
  font-size: 0.72rem;
  color: #71717A;
}

.fresha-cart-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.fresha-qty-pills {
  display: inline-flex;
  align-items: center;
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  overflow: hidden;
}

.fresha-qty-btn {
  background: transparent;
  border: none;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  color: #27272A;
}

.fresha-qty-btn:hover {
  background: #E4E4E7;
}

.fresha-qty-val {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.4rem;
  min-width: 20px;
  text-align: center;
}

.fresha-remove-item {
  background: transparent;
  border: none;
  color: #A1A1AA;
  cursor: pointer;
  padding: 0.2rem;
}

.fresha-remove-item:hover {
  color: #EF4444;
}

/* Fresha Payment Step Panel */
.fresha-payment-step-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  animation: fadeIn 0.18s ease-out;
}

.fresha-payment-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #E4E4E7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fresha-back-to-bill-btn {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #09090B;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fresha-back-to-bill-btn:hover {
  background: #E4E4E7;
}

.fresha-payment-title-box {
  text-align: right;
}

.fresha-pay-label {
  font-size: 0.7rem;
  color: #71717A;
  display: block;
}

.fresha-pay-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: #09090B;
}

.fresha-payment-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.fresha-section-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #27272A;
  margin-bottom: 0.65rem;
  display: block;
}

.fresha-receipt-note-pill {
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  background: #F4F4F5;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #27272A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fresha-payment-dock-footer {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid #E4E4E7;
  background: var(--color-white);
}

.fresha-charge-btn {
  width: 100%;
  height: 48px;
  border-radius: 9999px;
  background: #09090B;
  color: var(--color-white);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.fresha-charge-btn:hover {
  background: #18181B;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Settings Two-Column Layout & Monochrome Volume Slider */
@media (max-width: 900px) {
  .settings-two-col {
    grid-template-columns: 1fr !important;
  }

  .settings-two-col>aside {
    position: static !important;
  }
}

.salon-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.salon-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #09090B;
  border: 2.5px solid var(--color-white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.salon-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.salon-volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #09090B;
  border: 2.5px solid var(--color-white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

/* Reports Responsive Header & Date Strip */
@media (max-width: 900px) {

  .reports-header-bar,
  .reports-date-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .reports-header-actions {
    flex-wrap: wrap;
  }
}

/* Reports Print / PDF Formatting */
.reports-print-only {
  display: none;
}

@media print {

  .unified-sidebar-container,
  .modern-luxury-header,
  .reports-no-print {
    display: none !important;
  }

  .reports-print-only {
    display: block !important;
  }

  .main-content-canvas,
  .dashboard-container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    background: var(--color-white) !important;
  }

  .dashboard-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}