/* Verify 420 Design System - SaaS Dashboard */

/* Critical Mobile Rendering Fix - Must be first */
@media screen and (max-width: 768px) {
  html, body {
    /* Force proper HTML rendering on mobile */
    display: block !important;
    position: relative !important;
    transform: none !important;
    -webkit-transform: none !important;
    background-image: none !important;
    background-attachment: scroll !important;
  }
  
  /* Ensure page is not treated as image */
  html::before,
  html::after,
  body::before,
  body::after {
    display: none !important;
  }
  
  /* Reset any problematic styles */
  * {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    image-rendering: auto !important;
  }
}

/* Font Loading - Satoshi */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables - Verify 420 Design Tokens */
:root {
  /* Colors - Verify 420 Palette */
  --primary: #107046;
  --primary-light: #059669;
  --primary-dark: #065f46;
  --secondary: #4f5150;
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-dark: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --white: #ffffff;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hide WordPress admin bar completely */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
  /* Critical mobile fixes */
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin-top: 0 !important;
  /* Ensure proper mobile rendering */
  width: 100%;
  position: relative;
}

body.vqr-app {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Structure */
.vqr-app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Ensure proper height calculation */
  height: 100vh;
  overflow: hidden;
}

.vqr-app-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.vqr-app-content {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
  /* No overflow on wrapper to allow sticky sidebar */
  overflow: hidden;
  height: calc(100vh - 64px);
}

.vqr-app-sidebar {
  width: 240px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  /* Fixed height for sticky positioning */
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  left: 0;
  overflow-y: auto;
  flex-shrink: 0;
  /* Ensure sidebar stays on top */
  z-index: 10;
}

/* Navigation section that can scroll */
.vqr-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  max-height: 100%;
}

/* Sidebar Bottom Section - Always at bottom within sidebar */
.vqr-sidebar-bottom {
  flex-shrink: 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  background: var(--white);
  min-height: fit-content;
}

.vqr-sidebar-currency {
  margin-bottom: var(--space-md);
}

.vqr-sidebar-currency .vqr-currency-toggle {
  width: 100%;
  justify-content: center;
}

.vqr-sidebar-signout {
  color: var(--text-primary) !important;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.vqr-sidebar-signout:hover {
  background: var(--surface);
  color: var(--text-primary) !important;
}

.vqr-app-main {
  flex: 1;
  padding: var(--space-xl);
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  /* Remove fixed height to allow natural scrolling */
  /* height: calc(100vh - 64px); */
  min-height: calc(100vh - 64px);
}

/* Tablet Layout */
@media (max-width: 1024px) {
  /* Adjust sidebar width for tablets */
  .vqr-app-sidebar {
    width: 200px;
  }
}

/* Mobile Layout */
@media (max-width: 768px) {
  /* Hide desktop sidebar on mobile */
  .vqr-app-sidebar {
    display: none !important;
  }
  
  /* Show mobile menu button */
  .vqr-mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    min-width: 40px;
    height: 40px;
  }
  
  /* Adjust header padding on mobile */
  .vqr-app-header {
    padding: 0 var(--space-md);
  }
  
  /* Ensure proper header layout on mobile */
  .vqr-header-left {
    flex: 1;
  }
  
  /* Adjust logo size on mobile */
  .vqr-logo {
    font-size: var(--font-size-base);
  }
  
  .vqr-logo-img {
    max-height: 32px;
  }
  
  /* Adjust main content to full width */
  .vqr-app-main {
    margin-left: 0;
    padding: var(--space-md);
  }
  
  /* Remove the old mobile overlay styles - we use the new one */
  .vqr-mobile-overlay {
    display: none;
  }
  
  /* Improved Touch Targets */
  .vqr-btn {
    min-height: 44px;
    padding: var(--space-md) var(--space-lg) !important;
  }
  
  .vqr-btn-sm {
    min-height: 40px;
    padding: var(--space-sm) var(--space-md) !important;
  }
  
  /* Better spacing for touch interactions */
  .vqr-form-group {
    margin-bottom: var(--space-xl);
  }
  
  /* Larger form inputs */
  .vqr-input,
  .vqr-select,
  .vqr-textarea {
    min-height: 48px;
    padding: var(--space-md);
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better spacing between interactive elements */
  .vqr-nav-item {
    margin-bottom: var(--space-xs);
    min-height: 48px;
  }
  
  /* Larger click areas for table actions */
  td .vqr-btn,
  td button {
    min-height: 36px;
    padding: var(--space-sm) var(--space-md) !important;
  }
  
  /* Better spacing in cards */
  .vqr-card {
    padding: var(--space-lg);
  }
  
  /* Larger dropdown items */
  .vqr-dropdown-item {
    min-height: 44px;
    padding: var(--space-md) var(--space-lg);
  }
}

/* Header Components */
.vqr-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.vqr-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.vqr-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--primary);
  text-decoration: none;
}

.vqr-logo:hover {
  color: var(--primary-light);
}

.vqr-logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.vqr-logo-text {
  white-space: nowrap;
}

.vqr-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Currency Toggle */
.vqr-currency-toggle {
  display: flex;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2px;
  gap: 2px;
}

.vqr-currency-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: calc(var(--radius-lg) - 2px);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vqr-currency-btn:hover {
  color: var(--text-primary);
  background: rgba(16, 112, 70, 0.1);
}

.vqr-currency-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.vqr-currency-btn.active:hover {
  background: var(--primary-dark);
  color: white;
}

.vqr-currency-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Currency toggle mobile responsiveness */
@media (max-width: 768px) {
  .vqr-currency-toggle {
    padding: 1px;
    gap: 1px;
  }
  
  .vqr-currency-btn {
    padding: 6px 8px;
    min-width: 28px;
    font-size: 12px;
  }
}

.vqr-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  color: black!important;
}

.vqr-mobile-menu-btn:hover {
  background: var(--surface);
}

.vqr-mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .vqr-mobile-menu-btn {
    display: flex;
  }
}

/* Mobile-specific visibility classes */
.vqr-desktop-only {
  display: flex;
}

.vqr-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .vqr-desktop-only {
    display: none !important;
  }
  
  .vqr-mobile-only {
    display: flex;
  }
  
  /* Keep user menu visible on mobile but hide text */
  .vqr-user-menu.vqr-desktop-only {
    display: flex !important;
  }
  
  .vqr-user-menu-trigger {
    padding: 8px;
    min-width: 40px;
  }
  
  .vqr-user-menu-trigger .vqr-user-name,
  .vqr-user-menu-trigger .vqr-dropdown-arrow {
    display: none;
  }
  
  .vqr-user-avatar {
    width: 28px;
    height: 28px;
  }
}

/* Mobile User Section Styles */
.vqr-mobile-user-section {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.vqr-mobile-currency {
  /* Spacing handled by parent flex gap */
}

.vqr-mobile-currency-toggle {
  display: flex;
  gap: var(--space-xs);
  background: var(--surface);
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.vqr-mobile-currency-toggle .vqr-currency-btn {
  flex: 1;
  text-align: center;
  min-width: 40px;
}

.vqr-mobile-signout {
  color: var(--text-error) !important;
  border-top: 1px solid var(--border);
  padding-top: var(--space-sm);
  justify-content: flex-start !important;
  background: transparent !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
}

.vqr-mobile-signout:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: var(--text-error) !important;
  border-color: var(--border) !important;
}

/* Mobile Navigation - Fix potential rendering issues */
@media (max-width: 768px) {
  /* Ensure mobile nav elements don't break rendering */
  .vqr-mobile-nav-drawer,
  .vqr-mobile-nav-overlay {
    display: none;
    pointer-events: none;
  }
  
  .vqr-mobile-nav-drawer.active,
  .vqr-mobile-nav-overlay.active {
    display: block;
    pointer-events: auto;
  }
}

/* Mobile Navigation Overlay */
.vqr-mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vqr-mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Navigation Drawer */
.vqr-mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: var(--white);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vqr-mobile-nav-drawer.active {
  transform: translateX(0);
}

.vqr-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.vqr-mobile-nav-logo {
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.vqr-mobile-nav-close {
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.vqr-mobile-nav-close:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.vqr-mobile-nav-close svg {
  width: 20px;
  height: 20px;
}

.vqr-mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.vqr-mobile-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  margin-bottom: var(--space-xs);
  min-height: 48px; /* Better touch target */
}

.vqr-mobile-nav-item:hover {
  background: var(--surface);
}

.vqr-mobile-nav-item.active {
  background: var(--primary);
  color: var(--white);
}

.vqr-mobile-nav-item.active svg {
  color: var(--white);
}

.vqr-mobile-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.vqr-mobile-nav-badge {
  margin-left: auto;
  background: var(--error);
  color: var(--white);
  font-size: var(--font-size-xs);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.vqr-mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-md) 0;
}

.vqr-mobile-nav-signout {
  color: var(--error) !important;
}

/* Mobile Currency Section */
.vqr-mobile-currency-section {
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  margin: var(--space-xs) 0;
  border-radius: var(--radius-md);
}

.vqr-mobile-currency-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.vqr-mobile-currency-toggle {
  display: flex;
  gap: var(--space-xs);
  background: var(--white);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.vqr-mobile-currency-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: calc(var(--radius-md) - 3px);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  min-width: 0;
}

.vqr-mobile-currency-btn:hover {
  color: var(--text-primary);
  background: var(--surface);
}

.vqr-mobile-currency-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vqr-mobile-currency-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 112, 70, 0.2);
}

/* Desktop Navigation */
.vqr-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  max-height: 100%;
}

.vqr-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.vqr-nav-item:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.vqr-nav-item.active {
  background: var(--primary);
  color: var(--white);
}

/* Navigation icons in active state should be white */
.vqr-nav-item.active .vqr-nav-icon {
  color: var(--white);
}

.vqr-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Navigation Badge for pending counts */
.vqr-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 var(--space-xs);
  background: var(--error);
  color: var(--white);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
}

/* Badge in active nav item should have white background and colored text */
.vqr-nav-item.active .vqr-nav-badge {
  background: var(--white);
  color: var(--error);
}

/* Cards */
.vqr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

/* Use this class when you need overflow hidden on specific cards */
.vqr-card-overflow {
  overflow: hidden;
}

.vqr-card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.vqr-card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.vqr-card-content {
  padding: var(--space-lg);
}

/* Grid System */
.vqr-grid {
  display: grid;
  gap: var(--space-lg);
}

.vqr-grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.vqr-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vqr-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vqr-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .vqr-grid-cols-2,
  .vqr-grid-cols-3,
  .vqr-grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.vqr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: calc(var(--space-sm) * 0.75) var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  white-space: nowrap;
  line-height: 1.2;
}

.vqr-btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.vqr-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.vqr-btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}

.vqr-btn-secondary:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.vqr-btn-sm {
  padding: calc(var(--space-xs) * 0.75) var(--space-md);
  font-size: var(--font-size-xs);
  gap: calc(var(--space-xs) * 0.75);
}

.vqr-btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
}

.vqr-btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.vqr-btn-outline:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

/* Button Icons */
.vqr-btn-icon,
.vqr-btn svg:first-child,
.vqr-btn .vqr-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.vqr-btn-sm .vqr-btn-icon,
.vqr-btn-sm svg:first-child,
.vqr-btn-sm .vqr-icon {
  width: 12px;
  height: 12px;
}

.vqr-btn-lg .vqr-btn-icon,
.vqr-btn-lg svg:first-child,
.vqr-btn-lg .vqr-icon {
  width: 16px;
  height: 16px;
}

/* Forms */
.vqr-form-group {
  margin-bottom: var(--space-lg);
}

.vqr-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.vqr-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color 0.2s ease;
  background: var(--white);
}

.vqr-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 112, 70, 0.1);
}

.vqr-textarea {
  resize: vertical;
  min-height: 100px;
}

.vqr-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Stats */
.vqr-stat {
  text-align: center;
}

.vqr-stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.vqr-stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Tables */
.vqr-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.vqr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.vqr-table th,
.vqr-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.vqr-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.vqr-table tr:last-child td {
  border-bottom: none;
}

/* Mobile Table Styles */
@media (max-width: 768px) {
  /* Make table containers scrollable with indicators */
  .vqr-table-container {
    position: relative;
    overflow: hidden;
    margin: 0 calc(var(--space-md) * -1);
    padding: 0 var(--space-md);
  }
  
  .vqr-table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: var(--space-sm);
  }
  
  /* Scroll indicators - removed 
  .vqr-table-container::before,
  .vqr-table-container::after {
    display: none;
  }
  */
  
  /* Minimum table width for readability */
  .vqr-table {
    min-width: 600px;
  }
  
  /* Smaller padding on mobile */
  .vqr-table th,
  .vqr-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
  }
  
  /* Sticky first column */
  .vqr-table.has-sticky-column td:first-child,
  .vqr-table.has-sticky-column th:first-child {
    position: sticky;
    left: 0;
    background: var(--white);
    z-index: 1;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
  }
  
  .vqr-table.has-sticky-column th:first-child {
    background: var(--surface);
  }
  
  /* Make action buttons more compact */
  .vqr-table .vqr-btn {
    padding: var(--space-xs) var(--space-sm) !important;
    font-size: var(--font-size-xs) !important;
    min-height: 32px !important;
  }
  
  /* Adjust table wrapper height on mobile */
  .vqr-table-wrapper {
    height: calc(100vh - 300px);
    min-height: 300px;
  }
}

/* QR Codes Table with Infinite Scroll */
.vqr-codes-viewport {
  padding: 0;
  position: relative;
}

.vqr-table-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 400px);
  min-height: 400px;
  max-height: 800px;
}

.vqr-codes-table-fixed {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 2px solid var(--border);
}

.vqr-table-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.vqr-table-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.vqr-table-scroll::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 4px;
}

.vqr-table-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.vqr-table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Loading States */
.vqr-load-more-spinner,
.vqr-no-more-codes {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  gap: var(--space-sm);
}

.vqr-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Loading Skeleton */
.vqr-skeleton {
  animation: skeleton-loading 1.5s infinite ease-in-out;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
}

.vqr-skeleton-text {
  height: 1em;
  margin-bottom: var(--space-xs);
}

.vqr-skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: var(--space-sm);
}

.vqr-skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: var(--radius-md);
}

.vqr-skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Pull to Refresh */
/* Pull to refresh styles - disabled
.vqr-pull-to-refresh {
  display: none;
}
*/

/* Table Dropdown Menu */
.vqr-dropdown {
  position: relative;
  display: inline-block;
}

.vqr-dropdown-toggle {
  background: transparent;
  border: 1px solid var(--border);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vqr-dropdown-toggle:hover {
  background: var(--surface);
  border-color: var(--border-dark);
}

.vqr-dropdown.active .vqr-dropdown-toggle {
  background: var(--surface);
  border-color: var(--primary);
}

.vqr-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-xs);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 9999;
  pointer-events: none;
}

.vqr-dropdown.active .vqr-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.vqr-dropdown-menu-right {
  right: 0;
  left: auto;
}

.vqr-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.vqr-dropdown-item:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.vqr-dropdown-item-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vqr-dropdown-item-disabled:hover {
  background: transparent;
  color: var(--text-secondary);
}

.vqr-dropdown-item-warning {
  color: var(--warning);
}

.vqr-dropdown-item-warning:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.vqr-dropdown-item-danger {
  color: var(--error);
}

.vqr-dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.vqr-dropdown-item-locked {
  color: var(--text-muted);
}

.vqr-dropdown-item-locked:hover {
  background: var(--surface);
  color: var(--text-muted);
}

.vqr-dropdown-item .vqr-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.vqr-dropdown-item .vqr-locked-feature-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Hide mobile-specific elements on desktop */
@media (min-width: 769px) {
  .vqr-hide-mobile {
    display: table-cell !important;
  }
}

/* Mobile Table Styles */
@media (max-width: 768px) {
  .vqr-hide-mobile {
    display: none !important;
  }
  
  .vqr-table-wrapper {
    height: calc(100vh - 300px);
    min-height: 300px;
  }
  
  .vqr-table th,
  .vqr-table td {
    padding: var(--space-sm);
    font-size: var(--font-size-sm);
  }
  
  .vqr-qr-thumb {
    width: 32px;
    height: 32px;
  }
  
  .vqr-batch-code {
    font-size: var(--font-size-xs);
    padding: 2px 6px;
  }
  
  .vqr-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .vqr-status-group {
    gap: var(--space-xs);
  }
  
  /* Stack filter form on mobile */
  .vqr-filters-grid {
    grid-template-columns: 1fr;
  }
  
  /* Make table horizontally scrollable on very small screens */
  .vqr-table-scroll {
    min-width: 600px;
  }
}

/* Badges */
.vqr-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.vqr-badge-success {
  background: #dcfdf7;
  color: #065f46;
}

.vqr-badge-warning {
  background: #fefbeb;
  color: #92400e;
}

.vqr-badge-error {
  background: #fef2f2;
  color: #991b1b;
}

/* Loading States */
.vqr-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utilities */
.vqr-text-center { text-align: center; }
.vqr-text-right { text-align: right; }
.vqr-text-muted { color: var(--text-muted); }
.vqr-text-success { color: var(--success); }
.vqr-text-warning { color: var(--warning); }
.vqr-text-error { color: var(--error); }

.vqr-mb-0 { margin-bottom: 0; }
.vqr-mb-sm { margin-bottom: var(--space-sm); }
.vqr-mb-md { margin-bottom: var(--space-md); }
.vqr-mb-lg { margin-bottom: var(--space-lg); }

.vqr-mt-0 { margin-top: 0; }
.vqr-mt-sm { margin-top: var(--space-sm); }
.vqr-mt-md { margin-top: var(--space-md); }
.vqr-mt-lg { margin-top: var(--space-lg); }

.vqr-hidden { display: none !important; }
.vqr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* User Dropdown Menu */
.vqr-user-menu {
  position: relative;
  display: inline-block;
}

.vqr-user-menu-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 14px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
}

.vqr-user-menu-trigger:hover {
  background-color: var(--surface);
  border-color: var(--border-dark);
}

.vqr-user-menu-trigger.active .vqr-dropdown-arrow {
  transform: rotate(180deg);
}

.vqr-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--border-light);
}

.vqr-user-name {
  font-weight: 500;
  color: var(--text-primary);
  margin-right: 4px;
}

.vqr-dropdown-arrow {
  width: 12px !important;
  height: 12px !important;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.vqr-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-xs);
  width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .vqr-user-dropdown {
    right: -10px;
    width: 240px;
  }
}

.vqr-user-dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vqr-dropdown-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.vqr-dropdown-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.vqr-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--white);
  object-fit: cover;
  object-position: center;
}

.vqr-dropdown-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.vqr-dropdown-user-details {
  flex: 1;
  min-width: 0;
}

.vqr-dropdown-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
}

.vqr-dropdown-email {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vqr-dropdown-content {
  padding: var(--space-sm) 0;
}

.vqr-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.vqr-dropdown-item:hover {
  background: var(--surface);
  color: var(--primary);
}

.vqr-dropdown-item:focus {
  outline: none;
  background: var(--surface);
  color: var(--primary);
}

.vqr-dropdown-logout {
  color: var(--error);
}

.vqr-dropdown-logout:hover {
  background: #fef2f2;
  color: var(--error);
}

.vqr-dropdown-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.vqr-dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-sm) 0;
}

/* Notification Badges */
.vqr-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.vqr-dropdown-item {
  position: relative;
}

.vqr-dropdown-badge {
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Notification Banner */
.vqr-notification-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

.vqr-notification-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.vqr-notification-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.vqr-notification-icon svg {
  width: 24px;
  height: 24px;
  color: #f59e0b;
}

.vqr-notification-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.vqr-notification-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 4px 0;
}

.vqr-notification-content p {
  font-size: 14px;
  color: #78350f;
  margin: 0;
}

.vqr-notification-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  color: #f59e0b;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.vqr-notification-action:hover {
  background: #f59e0b;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vqr-notification-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.vqr-notification-action:hover svg {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .vqr-notification-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  
  .vqr-notification-action {
    width: 100%;
    justify-content: center;
  }
}

/* Generic avatar styling for all avatars */
.avatar, 
img[class*="avatar"],
.vqr-app img.avatar {
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
}

/* Ensure WordPress avatar images are round */
.vqr-app .avatar {
  border-radius: 50% !important;
}

/* Confirmation Modal Styles */
.vqr-confirm-modal,
.vqr-custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vqr-confirm-modal .vqr-modal-backdrop,
.vqr-custom-modal .vqr-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.vqr-confirm-modal .vqr-modal-container,
.vqr-custom-modal .vqr-modal-container {
  position: relative;
  max-width: 420px;
  width: calc(100% - 32px);
  z-index: 1;
  margin: 0 auto;
}

.vqr-confirm-modal-content,
.vqr-custom-modal .vqr-modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
}

.vqr-confirm-modal .vqr-modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.vqr-confirm-modal .vqr-modal-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.vqr-confirm-modal .vqr-modal-body {
  padding: var(--space-lg);
}

.vqr-confirm-message {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.vqr-confirm-modal .vqr-modal-footer {
  padding: var(--space-lg);
  background: var(--surface);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.vqr-confirm-modal .vqr-btn {
  min-width: 100px;
}

@media (max-width: 768px) {
  .vqr-confirm-modal .vqr-modal-container {
    width: calc(100% - 24px);
  }
  
  .vqr-confirm-modal .vqr-modal-footer {
    flex-direction: column-reverse;
  }
  
  .vqr-confirm-modal .vqr-btn {
    width: 100%;
  }
}

/* Usage Overview Styles */
.vqr-usage-bar-container {
  margin-bottom: var(--space-md);
}

.vqr-usage-bar {
  width: 100%;
  height: 12px;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.vqr-usage-progress {
  height: 100%;
  background: var(--primary);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.vqr-usage-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
}

.vqr-usage-details {
  font-size: var(--font-size-xs);
  margin-bottom: var(--space-xs);
}

.vqr-quota-reset-info {
  font-size: var(--font-size-xs);
  margin-top: var(--space-xs);
}

/* Custom Modal Specific Styles */
.vqr-custom-modal .vqr-modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vqr-custom-modal .vqr-modal-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.vqr-custom-modal .vqr-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.vqr-custom-modal .vqr-modal-close:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.vqr-custom-modal .vqr-modal-body {
  padding: var(--space-lg);
}

.vqr-custom-modal .vqr-modal-footer {
  padding: var(--space-lg);
  background: var(--surface);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  border-top: 1px solid var(--border-light);
}

/* Quota info in modal */
.vqr-quota-info {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.vqr-text-red {
  color: var(--danger);
}

.vqr-text-green {
  color: var(--success);
}

/* Standardized Icon Sizes */
.vqr-icon-xs {
  width: 12px;
  height: 12px;
}

.vqr-icon-sm {
  width: 14px;
  height: 14px;
}

.vqr-icon-base {
  width: 16px;
  height: 16px;
}

.vqr-icon-lg {
  width: 18px;
  height: 18px;
}

.vqr-icon-xl {
  width: 20px;
  height: 20px;
}

/* Action Icons - consistent sizing for quick actions, card actions, etc. */
.vqr-action-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Label Icons - smaller icons next to labels */
.vqr-label-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Alert Icons */
.vqr-alert-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Feature Icons in plan displays */
.vqr-feature-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Camera icon for profile pictures */
.vqr-camera-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Override SVG default sizing to prevent oversized icons */
.vqr-btn svg,
.vqr-dropdown-item svg,
.vqr-quick-action svg,
.vqr-account-action svg {
  width: inherit;
  height: inherit;
  max-width: inherit;
  max-height: inherit;
}

/* Navigation icons maintain their specific sizing */
.vqr-nav-item svg {
  width: 18px;
  height: 18px;
}

/* Override nav-icon class when used as dropdown arrow */
.vqr-dropdown-arrow.vqr-nav-icon {
  width: 12px !important;
  height: 12px !important;
}

/* Ensure all cards with action buttons have properly sized icons */
.vqr-card .vqr-btn svg,
.vqr-card .vqr-action-icon,
.vqr-card svg.vqr-action-icon {
  width: 14px;
  height: 14px;
}

/* Form label icons should be small */
.vqr-form-group svg,
.vqr-label svg {
  width: 14px;
  height: 14px;
}

/* Table action buttons should have small icons */
.vqr-table .vqr-btn svg,
.vqr-table-actions svg {
  width: 12px;
  height: 12px;
}

/* Quick action items should have proper button sizing */
.vqr-quick-action {
  padding: calc(var(--space-sm) * 0.75) var(--space-md);
  font-size: var(--font-size-sm);
}

/* Account action buttons should be compact */
.vqr-account-action {
  padding: calc(var(--space-sm) * 0.75) var(--space-md);
  font-size: var(--font-size-sm);
}

/* Dropdown items should have consistent small icons */
.vqr-dropdown-item svg {
  width: 14px;
  height: 14px;
}

/* Alert icons should be properly sized */
.vqr-alert svg {
  width: 16px;
  height: 16px;
}

/* Badge and status icons */
.vqr-badge svg,
.vqr-verification-badge svg {
  width: 12px;
  height: 12px;
}

/* Locked Feature Components */
.vqr-locked-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--space-xs) * 0.5) var(--space-xs);
  background: var(--warning);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: calc(var(--font-size-xs) * 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-left: var(--space-xs);
}

/* Locked Field Container (for strain page) */
.vqr-locked-field {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 112, 70, 0.02) 100%);
  padding: var(--space-lg);
  position: relative;
  transition: all 0.3s ease;
}

.vqr-locked-field::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.vqr-locked-field-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  text-align: left;
}

.vqr-locked-icon {
  width: 32px;
  height: 32px;
  padding: var(--space-xs);
  background: rgba(16, 112, 70, 0.1);
  border-radius: var(--radius-md);
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0;
  transition: all 0.3s ease;
}

.vqr-locked-title {
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-size-base);
}

.vqr-locked-description {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.5;
  max-width: 400px;
}

/* Compact Locked Field (for generate page) */
.vqr-locked-field-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: var(--font-size-sm);
}

.vqr-locked-content-compact {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  min-width: 0;
}

.vqr-locked-icon-sm {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.vqr-locked-content-compact span {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Extra small button for compact locked fields */
.vqr-btn-xs {
  padding: calc(var(--space-xs) * 0.5) var(--space-sm);
  font-size: calc(var(--font-size-xs) * 0.9);
  font-weight: 500;
  border-radius: calc(var(--radius-md) * 0.75);
  gap: calc(var(--space-xs) * 0.5);
}

.vqr-btn-xs svg {
  width: 10px;
  height: 10px;
}

/* Upgrade button animation in locked fields */
.vqr-locked-field .vqr-btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.vqr-locked-field .vqr-btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.vqr-locked-field .vqr-btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Hover states for locked field components */
.vqr-locked-field:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 112, 70, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.vqr-locked-field:hover::before {
  opacity: 0.1;
}

.vqr-locked-field:hover .vqr-locked-icon {
  background: rgba(16, 112, 70, 0.2);
  transform: scale(1.1);
}

.vqr-locked-field-compact:hover {
  border-color: var(--primary);
  background: rgba(16, 112, 70, 0.02);
}

/* Mobile responsiveness for locked fields */
@media (max-width: 768px) {
  .vqr-locked-field-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .vqr-locked-content-compact {
    width: 100%;
  }
  
  .vqr-locked-content-compact span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  
  .vqr-btn-xs {
    align-self: stretch;
    justify-content: center;
  }
}

/* Print Status Badges */
.vqr-print-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: default;
}

.vqr-status-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.vqr-print-status-none {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.vqr-print-status-processing {
  background: rgba(251, 191, 36, 0.1);
  color: #d97706;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.vqr-print-status-shipped {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.vqr-print-status-delivered {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Print status tooltips */
.vqr-print-badge[title] {
  cursor: help;
}

/* Print status overlay on strain images */
.vqr-strain-image {
  position: relative;
}

.vqr-strain-print-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.vqr-strain-print-overlay:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.vqr-print-icon {
  width: 16px;
  height: 16px;
  color: #059669;
}

/* Status-specific colors for overlay */
.vqr-strain-print-overlay.vqr-print-status-processing .vqr-print-icon {
  color: #d97706;
}

.vqr-strain-print-overlay.vqr-print-status-shipped .vqr-print-icon {
  color: #2563eb;
}

.vqr-strain-print-overlay.vqr-print-status-delivered .vqr-print-icon {
  color: #059669;
}

/* Add subtle colored border based on status */
.vqr-strain-print-overlay.vqr-print-status-processing {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(255, 248, 220, 0.95);
}

.vqr-strain-print-overlay.vqr-print-status-shipped {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(239, 246, 255, 0.95);
}

.vqr-strain-print-overlay.vqr-print-status-delivered {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(240, 253, 244, 0.95);
}

/* Print status in QR code tables */
.vqr-qr-table .vqr-print-badge {
  font-size: 10px;
  padding: 2px 6px;
}

/* Status group styling */
.vqr-status-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

/* Mobile responsiveness for print overlay */
@media (max-width: 768px) {
  .vqr-strain-print-overlay {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
  }
  
  .vqr-print-icon {
    width: 14px;
    height: 14px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .vqr-print-status-none {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
  }
  
  .vqr-print-status-processing {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
  }
  
  .vqr-print-status-shipped {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
  }
  
  .vqr-print-status-delivered {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
  }
  
}

/* Order Success Page Styles */
.vqr-order-success-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* Success Header */
.vqr-success-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(16, 112, 70, 0.05), rgba(5, 150, 105, 0.02));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(16, 112, 70, 0.1);
}

.vqr-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(16, 112, 70, 0.2);
}

.vqr-success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.vqr-success-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.vqr-success-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Success Content Layout */
.vqr-success-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Order Info Grid */
.vqr-order-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.vqr-order-info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.vqr-order-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.vqr-order-value {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  font-weight: 600;
}

.vqr-order-total {
  font-size: var(--font-size-lg);
  color: var(--primary);
}

/* Order Status */
.vqr-order-status {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.vqr-status-processing {
  background: rgba(251, 191, 36, 0.1);
  color: #d97706;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Items Summary */
.vqr-items-summary {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border-light);
}

.vqr-items-summary p {
  margin: 0;
  color: var(--text-primary);
}

/* Items List */
.vqr-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.vqr-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.vqr-order-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.vqr-item-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.vqr-item-batch {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.vqr-item-type {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: capitalize;
}

.vqr-item-price {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--primary);
}

/* Shipping Address */
.vqr-shipping-address {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.vqr-address-line {
  color: var(--text-primary);
  line-height: 1.5;
}

.vqr-order-notes {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.vqr-order-notes strong {
  color: var(--text-primary);
}

/* Timeline */
.vqr-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.vqr-timeline-item {
  display: flex;
  gap: var(--space-md);
  position: relative;
}

.vqr-timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: -24px;
  width: 2px;
  background: var(--border);
}

.vqr-timeline-active::after {
  background: var(--primary);
}

.vqr-timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-light);
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.vqr-timeline-active .vqr-timeline-icon {
  background: var(--primary);
  border-color: var(--primary);
}

.vqr-timeline-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.vqr-timeline-active .vqr-timeline-icon svg {
  color: white;
}

.vqr-timeline-content h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.vqr-timeline-content p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Info List */
.vqr-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.vqr-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.vqr-info-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.vqr-info-item h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.vqr-info-item p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.vqr-info-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.vqr-info-item a:hover {
  text-decoration: underline;
}

/* Remaining Items Indicator */
.vqr-remaining-items {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.vqr-remaining-text {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-style: italic;
}

/* Success Actions */
.vqr-success-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .vqr-order-success-page {
    padding: var(--space-md);
  }
  
  .vqr-success-header {
    padding: var(--space-xl) var(--space-md);
    margin-bottom: var(--space-xl);
  }
  
  .vqr-success-icon {
    width: 64px;
    height: 64px;
  }
  
  .vqr-success-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .vqr-success-title {
    font-size: var(--font-size-2xl);
  }
  
  .vqr-success-subtitle {
    font-size: var(--font-size-base);
  }
  
  .vqr-success-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .vqr-order-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .vqr-order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .vqr-item-details {
    width: 100%;
  }
  
  .vqr-timeline-item {
    gap: var(--space-sm);
  }
  
  .vqr-timeline-icon {
    width: 32px;
    height: 32px;
  }
  
  .vqr-timeline-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .vqr-timeline-item:not(:last-child)::after {
    left: 16px;
    top: 32px;
    bottom: -20px;
  }
  
  .vqr-info-item {
    gap: var(--space-sm);
  }
  
  .vqr-info-icon {
    width: 20px;
    height: 20px;
  }
}

/* Shopping Cart Styles */
.vqr-cart-toggle {
  position: relative;
  display: inline-block;
}

.vqr-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.vqr-cart-btn:hover {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--primary);
}

.vqr-cart-icon {
  width: 18px;
  height: 18px;
  margin-right: var(--space-xs);
}

.vqr-cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--error);
  color: var(--white);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.vqr-cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-xs);
  width: 320px;
  max-height: 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
  overflow: hidden;
}

.vqr-cart-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vqr-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}

.vqr-cart-title-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vqr-cart-header h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.vqr-cart-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.vqr-cart-clear {
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.vqr-cart-clear:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.vqr-cart-clear svg {
  width: 14px;
  height: 14px;
}

.vqr-cart-items {
  max-height: 240px;
  overflow-y: auto;
  padding: var(--space-sm) 0;
}

.vqr-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
  color: var(--text-muted);
}

.vqr-cart-empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.vqr-cart-empty p {
  margin: 0 0 var(--space-xs) 0;
  font-weight: 500;
  color: var(--text-secondary);
}

.vqr-cart-empty small {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.vqr-cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.2s ease;
}

.vqr-cart-item:hover {
  background: var(--surface);
}

.vqr-cart-item:last-child {
  border-bottom: none;
}

/* Cart Dropdown Batch Styles */
.vqr-cart-batch {
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-md);
}

.vqr-cart-batch:last-child {
  border-bottom: none;
}

.vqr-cart-batch-header {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.vqr-cart-batch-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.vqr-cart-batch-placeholder {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vqr-cart-batch-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.vqr-cart-batch-info {
  flex: 1;
  min-width: 0;
}

.vqr-cart-batch-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vqr-cart-batch-genetics {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vqr-cart-batch-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.vqr-cart-batch-code {
  font-family: monospace;
}

.vqr-cart-batch-count {
  color: var(--primary);
  font-weight: 500;
}

.vqr-cart-batch-remove {
  background: none;
  border: none;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.vqr-cart-batch-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.vqr-cart-batch-remove svg {
  width: 16px;
  height: 16px;
}

.vqr-cart-batch-footer {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
}

.vqr-cart-batch-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--font-size-sm);
}

.vqr-cart-batch-price-label {
  color: var(--text-secondary);
}

.vqr-cart-batch-price-total {
  font-weight: 600;
  color: var(--primary);
}

.vqr-cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vqr-cart-item-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.vqr-cart-item-title strong {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vqr-cart-item-title small {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vqr-cart-item-details {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.vqr-cart-item-type {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: capitalize;
}

.vqr-cart-item-price {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.vqr-cart-item-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vqr-quantity-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.vqr-qty-btn {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vqr-qty-btn:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.vqr-qty-btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.vqr-qty-btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.vqr-qty-display {
  min-width: 20px;
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 2px;
}

.vqr-cart-remove {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.vqr-cart-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.vqr-cart-remove svg {
  width: 12px;
  height: 12px;
}

.vqr-cart-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-light);
  background: var(--surface);
}

.vqr-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.vqr-cart-total strong {
  font-weight: 700;
  color: var(--primary);
}

/* Cart Footer Buttons */
.vqr-cart-footer-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.vqr-cart-footer-buttons .vqr-btn {
  flex: 1;
}

.vqr-cart-footer-buttons .vqr-btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.vqr-cart-footer-buttons .vqr-btn-secondary:hover {
  background: var(--surface);
  border-color: var(--primary);
}

/* Mobile cart dropdown positioning */
@media (max-width: 768px) {
  .vqr-cart-dropdown {
    right: -20px;
    width: 280px;
  }
  
  .vqr-cart-item {
    padding: var(--space-sm);
    gap: 8px;
  }
  
  .vqr-cart-item-title strong,
  .vqr-cart-item-title small {
    max-width: 140px;
  }
  
  .vqr-cart-item-price {
    font-size: var(--font-size-xs);
  }
  
  
  .vqr-quantity-controls {
    gap: 2px;
  }
  
  .vqr-qty-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  
  .vqr-qty-display {
    min-width: 16px;
    font-size: 10px;
  }
}

/* Notification Styles */
.vqr-notification {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.vqr-notification-content {
  flex: 1;
}

.vqr-notification-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.vqr-notification-message {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.vqr-notification-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.vqr-notification-close:hover {
  color: var(--text-primary);
}

.vqr-notification-success {
  border-color: var(--success) !important;
}

.vqr-notification-success .vqr-notification-title {
  color: var(--success);
}

.vqr-notification-error {
  border-color: var(--error) !important;
}

.vqr-notification-error .vqr-notification-title {
  color: var(--error);
}

/* Ensure notifications appear above modals */
.vqr-modal {
  z-index: 1000;
}

.vqr-modal-backdrop {
  z-index: 999;
}

.vqr-notification {
  z-index: 9999 !important;
}


/* Dropdown button styling for QR codes table */
.vqr-table .vqr-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.vqr-table .vqr-dropdown-toggle:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.vqr-table .vqr-dropdown-toggle .vqr-dropdown-arrow {
  transition: transform 0.2s ease;
}

.vqr-dropdown.active .vqr-dropdown-toggle .vqr-dropdown-arrow {
  transform: rotate(180deg);
}

/* Ensure dropdown positioning in table */
.vqr-table .vqr-dropdown {
  position: relative;
}

/* Prevent table cell overflow affecting dropdowns */
.vqr-table td {
  position: relative;
  overflow: visible;
}

.vqr-table tbody {
  position: relative;
}

/* Make last cell not clip dropdown */
.vqr-table td:last-child {
  overflow: visible !important;
  position: static !important;
}

.vqr-table .vqr-dropdown-menu {
  min-width: 160px;
  z-index: 1000;
}

/* Table column alignment fixes */
.vqr-table th,
.vqr-table td {
  vertical-align: middle;
}

.vqr-table th:first-child,
.vqr-table td:first-child {
  text-align: center;
}

.vqr-table th:nth-child(2),
.vqr-table td:nth-child(2) {
  text-align: center;
}

.vqr-table th:last-child,
.vqr-table td:last-child {
  text-align: center;
}

/* QR preview cell */
.vqr-qr-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Status badges alignment */
.vqr-status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.vqr-badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.vqr-badge-secondary {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

/* Dropdown divider */
.vqr-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}

/* Hide mobile columns properly */
@media (max-width: 768px) {
  .vqr-hide-mobile {
    display: none;
  }
}

/* Dropdown positioning for last few rows */
.vqr-table tr:nth-last-child(-n+3) .vqr-dropdown-menu {
  bottom: 100%;
  top: auto;
  margin-bottom: var(--space-xs);
  margin-top: 0;
}

/* Fixed positioning for dropdowns in scrollable containers */
.vqr-table-scroll .vqr-dropdown-menu {
  position: fixed !important;
  z-index: 9999 !important;
}

/* Ensure dropdown opens with fixed positioning */
.vqr-table-scroll .vqr-dropdown.active .vqr-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}

/* Cloned dropdown menu styles */
.vqr-dropdown-menu-clone {
  position: fixed !important;
  z-index: 9999 !important;
  min-width: 160px;
  max-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  padding: 4px 0;
}

/* Additional Mobile Optimizations for Compact Layout */
@media (max-width: 768px) {
  /* General Page Headers - More Compact */
  .vqr-page-header {
    padding: 0 !important;
    margin-bottom: 1rem !important;
  }
  
  .vqr-page-title {
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
  }
  
  .vqr-page-description {
    display: none !important;
  }
  
  /* Reduce General Padding */
  .vqr-section,
  .vqr-card {
    padding: 0.75rem !important;
  }
  
  /* Compact Form Elements */
  .vqr-form-group {
    margin-bottom: 0.75rem !important;
  }
  
  .vqr-form-label {
    font-size: 0.813rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .vqr-input,
  .vqr-select,
  .vqr-textarea {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
  }
  
  /* Compact Stats Cards */
  .vqr-stat-card {
    padding: 0.875rem !important;
  }
  
  .vqr-stat-value {
    font-size: 1.5rem !important;
  }
  
  .vqr-stat-label {
    font-size: 0.75rem !important;
  }
  
  /* Compact Tables */
  .vqr-table-container {
    margin: 0.75rem 0 !important;
  }
  
  .vqr-table th,
  .vqr-table td {
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
  }
  
  /* Compact Buttons */
  /* Remove - we want larger buttons on mobile for better touch targets
  .vqr-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
  }
  
  .vqr-btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
  }
  */
  
  /* Compact Modal */
  .vqr-modal-content {
    padding: 1rem !important;
  }
  
  .vqr-modal-header h3 {
    font-size: 1.125rem !important;
  }
  
  /* Compact Notifications */
  .vqr-notification {
    padding: 0.75rem !important;
    margin: 0.5rem !important;
  }
  
  /* Hide non-essential elements */
  .vqr-helper-text,
  .vqr-subtitle,
  .vqr-description {
    display: none !important;
  }
  
  /* Compact spacing between sections */
  .vqr-mt-lg,
  .vqr-mb-lg {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .vqr-mt-md,
  .vqr-mb-md {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
  /* Better padding on very small screens */
  .vqr-app-main {
    padding: var(--space-lg);
  }
  
  /* Stack buttons vertically */
  .vqr-btn-group {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .vqr-btn-group .vqr-btn {
    width: 100%;
  }
  
  /* Reduce card padding */
  .vqr-card {
    padding: var(--space-md);
  }
  
  /* Make stat cards stack vertically */
  .vqr-stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Reduce modal padding */
  .vqr-modal-content {
    margin: var(--space-md);
    padding: var(--space-md);
  }
}

/* Very small screens (375px iPhone SE and below) */
@media (max-width: 375px) {
  /* Further reduce font sizes */
  body {
    font-size: 14px;
  }
  
  .vqr-page-title {
    font-size: 1.25rem;
  }
  
  /* Make table text smaller but readable */
  .vqr-table th,
  .vqr-table td {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

/* Very small screens (420px and below) */
@media (max-width: 420px) {
  /* Even more compact for small devices */
  .vqr-page-header {
    padding: 0.75rem !important;
  }
  
  .vqr-page-title {
    font-size: 1.25rem !important;
  }
  
  /* Single column grids */
  .vqr-grid,
  [class*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Minimal padding */
  .vqr-card,
  .vqr-section {
    padding: 0.5rem !important;
  }
  
  /* Icon-only buttons where possible */
  .vqr-btn-icon-mobile {
    font-size: 0 !important;
    padding: 0.5rem !important;
  }
  
  .vqr-btn-icon-mobile .vqr-btn-icon {
    margin: 0 !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
}

/* Mobile-specific fixes to prevent JPEG rendering issue */
@media (max-width: 768px) {
  /* Ensure proper viewport handling on iOS */
  html, body {
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix container height issues on mobile */
  .vqr-app-container {
    height: auto;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  /* Ensure main content can scroll properly */
  .vqr-app-main {
    height: auto;
    min-height: auto;
    overflow-y: visible;
  }
  
  /* Fix content wrapper */
  .vqr-app-content {
    overflow: visible;
    height: auto;
  }
  
  /* Prevent body scroll lock issues */
  body.vqr-mobile-nav-open {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  /* iOS only styles */
  .vqr-app-container {
    min-height: -webkit-fill-available;
  }
}

/* Batch Card Footer - Three Dropdown Layout */
.vqr-batch-card-footer {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Ensure dropdowns in batch footer are properly styled */
.vqr-batch-card-footer .vqr-dropdown {
  flex: 1;
  min-width: 120px;
}

.vqr-batch-card-footer .vqr-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

/* Dropdown Item Variations */
.vqr-dropdown-item-indent {
  padding-left: calc(var(--space-md) + var(--space-sm));
}

.vqr-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xs) 0;
}

/* Upsell Dropdown Item */
.vqr-dropdown-item-upsell {
  position: relative;
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.vqr-dropdown-item-upsell:hover {
  background: var(--surface);
  color: var(--text-muted);
}

.vqr-upsell-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-weight: 600;
}

/* Success button style for Print Codes dropdown */
.vqr-btn-success {
  background-color: var(--success);
  color: var(--white);
  border-color: var(--success);
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.vqr-btn-success:hover {
  background-color: #0ea25e;
  border-color: #0ea25e;
}

/* Ensure dropdown toggle buttons are always visible */
.vqr-dropdown-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mobile responsive for batch footer */
@media (max-width: 768px) {
  .vqr-batch-card-footer {
    flex-direction: column;
  }
  
  .vqr-batch-card-footer .vqr-dropdown {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .vqr-batch-card-footer .vqr-dropdown-toggle {
    font-size: var(--font-size-sm);
    padding: var(--space-xs) var(--space-sm);
  }
  
  .vqr-upsell-badge {
    font-size: 9px;
    padding: 1px 4px;
  }
}
EOF < /dev/null