/* ==========================================================================
   ApexPOS - Modern Point of Sale System Design System
   Core CSS Variables, Reset & Base Utilities
   ========================================================================== */

:root {
  /* Color Palette */
  --pos-primary: #ee6300;
  --pos-primary-hover: #d0611d;
  --pos-primary-subtle: #eef2ff;
  --pos-primary-border: #c7d2fe;
  
  --pos-secondary: #0ea5e9;
  --pos-secondary-subtle: #e0f2fe;

  --pos-success: #10b981;
  --pos-success-hover: #059669;
  --pos-success-subtle: #ecfdf5;
  --pos-success-border: #a7f3d0;

  --pos-warning: #f59e0b;
  --pos-warning-hover: #d97706;
  --pos-warning-subtle: #fffbeb;
  --pos-warning-border: #fde68a;

  --pos-danger: #ef4444;
  --pos-danger-hover: #dc2626;
  --pos-danger-subtle: #fef2f2;
  --pos-danger-border: #fecaca;

  /* Neutral & Surfaces */
  --pos-dark: #0f172a;
  --pos-surface-dark: #1e293b;
  --pos-surface-card: #ffffff;
  --pos-surface-body: #f8fafc;
  --pos-surface-hover: #f1f5f9;
  --pos-surface-active: #e2e8f0;

  --pos-border: #e2e8f0;
  --pos-border-subtle: #f1f5f9;

  --pos-text-main: #0f172a;
  --pos-text-muted: #64748b;
  --pos-text-light: #94a3b8;

  /* Typography */
  --pos-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --pos-font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Layout Measurements */
  --sidebar-width: 256px;
  --sidebar-collapsed-width: 74px;
  --topbar-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Elevation Shadows */
  --pos-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --pos-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --pos-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --pos-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --pos-shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
}

/* Base Elements */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--pos-font-sans);
  background-color: var(--pos-surface-body);
  color: var(--pos-text-main);
  font-size: 0.925rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Application Shell Layout
   ========================================================================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-color: var(--pos-surface-body);
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--pos-surface-dark);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header {
  height: var(--topbar-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--pos-primary), #6366f1);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
  flex-shrink: 0;
}

.brand-text {
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-weight: 600;
  margin-left: 0.25rem;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.75rem 0.3rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.18s ease;
  white-space: nowrap;
  position: relative;
}

.sidebar-link i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
  color: #ffffff;
  background: var(--pos-primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  font-weight: 600;
}

.sidebar-link .badge-counter {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sidebar-link.active .badge-counter {
  background: rgba(255, 255, 255, 0.25);
}

/* Sidebar Footer / Cashier Profile */
.sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}

.cashier-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.cashier-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.cashier-info {
  flex: 1;
  min-width: 0;
}

.cashier-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cashier-role {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.status-dot-online {
  width: 7px;
  height: 7px;
  background-color: var(--pos-success);
  border-radius: 50%;
  display: inline-block;
}

.cashier-logout-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.cashier-logout-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Collapsed Sidebar */
.app-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.app-sidebar.collapsed .cashier-logout-btn {
  display: none;
}

.app-sidebar.collapsed .brand-text,
.app-sidebar.collapsed .nav-section-label,
.app-sidebar.collapsed .link-text,
.app-sidebar.collapsed .badge-counter,
.app-sidebar.collapsed .cashier-info {
  display: none;
}

.app-sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.app-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.75rem 0;
}

.app-sidebar.collapsed .cashier-profile {
  justify-content: center;
  padding: 0.25rem 0;
}

/* Main Area */
.app-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--pos-surface-body);
}

.app-sidebar.collapsed ~ .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

/* Topbar */
.app-topbar {
  height: var(--topbar-height);
  background: var(--pos-surface-card);
  border-bottom: 1px solid var(--pos-border);
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sidebar-toggle {
  background: none;
  border: 1px solid var(--pos-border);
  color: var(--pos-text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sidebar-toggle:hover {
  background: var(--pos-surface-hover);
  color: var(--pos-text-main);
  border-color: #cbd5e1;
}

.topbar-register-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--pos-success-subtle);
  border: 1px solid var(--pos-success-border);
  color: var(--pos-success-hover);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.topbar-clock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pos-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--pos-surface-hover);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pos-border);
}

.btn-topbar-action {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pos-border);
  background: var(--pos-surface-card);
  color: var(--pos-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.btn-topbar-action:hover {
  background: var(--pos-surface-hover);
  color: var(--pos-text-main);
}

.btn-topbar-action .notification-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--pos-danger);
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* Main Content Wrapper */
.content-wrapper {
  flex: 1;
  padding: 1.5rem;
}

/* ==========================================================================
   Reusable UI Components & Utilities
   ========================================================================== */

/* Cards */
.pos-card {
  background: var(--pos-surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--pos-border);
  box-shadow: var(--pos-shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pos-card-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.pos-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pos-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pos-card-body {
  padding: 1.35rem;
}

/* Metric / KPI Cards */
.metric-card {
  background: var(--pos-surface-card);
  border: 1px solid var(--pos-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--pos-shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pos-shadow-md);
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--pos-text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--pos-text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  margin-top: 0.4rem;
}

.metric-badge.positive {
  background-color: var(--pos-success-subtle);
  color: var(--pos-success-hover);
}

.metric-badge.negative {
  background-color: var(--pos-danger-subtle);
  color: var(--pos-danger-hover);
}

.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.icon-box-primary {
  background: var(--pos-primary-subtle);
  color: var(--pos-primary);
}

.icon-box-success {
  background: var(--pos-success-subtle);
  color: var(--pos-success);
}

.icon-box-warning {
  background: var(--pos-warning-subtle);
  color: var(--pos-warning);
}

.icon-box-info {
  background: var(--pos-secondary-subtle);
  color: var(--pos-secondary);
}

/* Badges */
.pos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-paid, .badge-completed, .badge-in-stock {
  background: var(--pos-success-subtle);
  color: var(--pos-success-hover);
  border: 1px solid var(--pos-success-border);
}

.badge-pending, .badge-low-stock, .badge-hold {
  background: var(--pos-warning-subtle);
  color: var(--pos-warning-hover);
  border: 1px solid var(--pos-warning-border);
}

.badge-out-of-stock, .badge-cancelled, .badge-refunded {
  background: var(--pos-danger-subtle);
  color: var(--pos-danger-hover);
  border: 1px solid var(--pos-danger-border);
}

.badge-pill-neutral {
  background: var(--pos-surface-hover);
  color: var(--pos-text-muted);
  border: 1px solid var(--pos-border);
}

/* Custom Buttons */
.btn-pos-primary {
  background-color: var(--pos-primary);
  border-color: var(--pos-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.55rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-pos-primary:hover, .btn-pos-primary:focus {
  background-color: var(--pos-primary-hover);
  border-color: var(--pos-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-pos-success {
  background-color: var(--pos-success);
  border-color: var(--pos-success);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.55rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-pos-success:hover {
  background-color: var(--pos-success-hover);
  border-color: var(--pos-success-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-pos-outline {
  background-color: transparent;
  border: 1px solid var(--pos-border);
  color: var(--pos-text-main);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-pos-outline:hover {
  background-color: var(--pos-surface-hover);
  border-color: #cbd5e1;
  color: var(--pos-text-main);
}

.btn-pos-danger-outline {
  background-color: transparent;
  border: 1px solid var(--pos-danger-border);
  color: var(--pos-danger);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-pos-danger-outline:hover {
  background-color: var(--pos-danger-subtle);
  border-color: var(--pos-danger);
  color: var(--pos-danger-hover);
}

/* Forms & Inputs */
.pos-input, .pos-select {
  border: 1px solid var(--pos-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
  color: var(--pos-text-main);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pos-input:focus, .pos-select:focus {
  border-color: var(--pos-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  outline: none;
}

.input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-group i {
  position: absolute;
  left: 1rem;
  color: var(--pos-text-light);
  font-size: 1rem;
  pointer-events: none;
}

.input-icon-group .pos-input {
  padding-left: 2.6rem;
  width: 100%;
}

/* Data Table */
.pos-table-wrapper {
  overflow-x: auto;
}

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

.pos-table th {
  background: #f8fafc;
  color: var(--pos-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--pos-border);
  white-space: nowrap;
}

.pos-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--pos-border-subtle);
  color: var(--pos-text-main);
  font-size: 0.88rem;
  vertical-align: middle;
}

.pos-table tbody tr {
  transition: background-color 0.12s ease;
}

.pos-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Toast / Alert Notification Styles (Positioned at Top) */
.pos-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  bottom: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.pos-toast-container.toast-top-center,
.pos-toast-container[data-position="top-center"] {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  align-items: center !important;
}

.pos-toast {
  pointer-events: auto;
  background: var(--pos-surface-dark);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 4px 6px -2px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  animation: slideToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--pos-primary);
  backdrop-filter: blur(8px);
}

.pos-toast.toast-success {
  border-left-color: var(--pos-success);
}

.pos-toast.toast-warning {
  border-left-color: var(--pos-warning);
}

.pos-toast.toast-danger {
  border-left-color: var(--pos-danger);
}

@keyframes slideToastIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   ApexPOS - Select2 Custom Theme & Integration
   ========================================================================== */

.select2-container {
  width: 100% !important;
  font-family: var(--pos-font-sans);
}

.select2-container .select2-selection--single {
  height: 42px !important;
  background-color: var(--pos-surface-card) !important;
  border: 1px solid var(--pos-border) !important;
  border-radius: var(--radius-sm, 8px) !important;
  padding: 0.375rem 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--pos-text-main) !important;
  line-height: normal !important;
  padding-left: 0 !important;
  padding-right: 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--pos-text-light, #94a3b8) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 0.85rem !important;
  top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--pos-text-muted) transparent transparent transparent !important;
  border-width: 5px 4px 0 4px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--pos-primary) transparent !important;
  border-width: 0 4px 5px 4px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--pos-primary) !important;
  box-shadow: 0 0 0 3px rgba(238, 99, 0, 0.15) !important;
  outline: 0 !important;
}

/* Select2 Dropdown Panel */
.select2-dropdown {
  background-color: var(--pos-surface-card) !important;
  border: 1px solid var(--pos-border) !important;
  border-radius: var(--radius-md, 12px) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  z-index: 1065 !important;
}

/* Dropdown Search Box */
.select2-search--dropdown {
  padding: 0.6rem !important;
  background: var(--pos-surface-body, #f8fafc) !important;
  border-bottom: 1px solid var(--pos-border) !important;
}

.select2-search--dropdown .select2-search__field {
  padding: 0.45rem 0.75rem !important;
  border: 1px solid var(--pos-border) !important;
  border-radius: var(--radius-sm, 8px) !important;
  font-family: var(--pos-font-sans) !important;
  font-size: 0.85rem !important;
  background-color: #ffffff !important;
  color: var(--pos-text-main) !important;
  outline: none !important;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--pos-primary) !important;
  box-shadow: 0 0 0 2px rgba(238, 99, 0, 0.15) !important;
}

/* Results List */
.select2-results__options {
  max-height: 240px !important;
  padding: 0.35rem !important;
}

.select2-container--default .select2-results__option {
  padding: 0.55rem 0.85rem !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  color: var(--pos-text-main) !important;
  transition: all 0.12s ease !important;
  margin-bottom: 2px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--pos-primary) !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: var(--pos-primary-subtle, #fff7ed) !important;
  color: var(--pos-primary, #ee6300) !important;
  font-weight: 600 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--pos-text-muted) !important;
  font-weight: bold !important;
  margin-right: 0.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: var(--pos-danger) !important;
}

/* Small Variant for Toolbar / Filter Rows */
.select2-sm + .select2-container .select2-selection--single {
  height: 36px !important;
  padding: 0.25rem 0.65rem !important;
  font-size: 0.8rem !important;
}


