/* ==========================================================================
   Retail In-Store Assistant - Master Design System
   Optimized for mobile-first in-store navigation, rapid picking, and family sync
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-input: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-dark: #075985;
  
  --accent: #059669;
  --accent-light: #d1fae5;
  --accent-hover: #047857;
  
  --warning: #d97706;
  --warning-light: #fef3c7;
  
  --danger: #dc2626;
  --danger-light: #fee2e2;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #0284c7;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --header-height: 64px;
  --bottom-nav-height: 68px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/* App Container */
.app-layout {
  max-width: 768px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  position: relative;
}

/* Top App Header */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.brand-info h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.group-selector-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
}

.group-selector-btn:hover {
  text-decoration: underline;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--border);
  transform: translateY(-1px);
}

.icon-btn.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* Proximity Banner */
.proximity-alert {
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid #bbf7d0;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: slideDown 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.proximity-alert.hidden {
  display: none;
}

.proximity-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #065f46;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

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

.btn-pill-sm {
  background: var(--accent);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.btn-pill-sm:hover {
  background: var(--accent-hover);
}

/* Sync Toast Notification */
.sync-toast {
  position: fixed;
  top: 72px;
  right: 1.25rem;
  background: #1e293b;
  color: #f8fafc;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.sync-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Tab Content Areas */
.main-content {
  padding: 1.25rem;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 200ms ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.filter-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

/* Stats Progress Bar */
.progress-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.progress-label {
  font-weight: 600;
  color: var(--text-main);
}

.progress-count {
  font-weight: 700;
  color: var(--primary);
}

.progress-bar-track {
  height: 8px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Action Floating Strip / Buttons */
.quick-action-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.action-card-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-main);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.action-card-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.action-card-btn .action-icon {
  font-size: 1.35rem;
}

.action-card-btn .action-title {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Category Groups and Item Cards */
.category-group {
  margin-bottom: 1.5rem;
}

.category-group-header {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-group-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.item-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.item-card:hover {
  border-color: var(--border-strong);
}

.item-card.checked {
  background: #f8fafc;
  opacity: 0.7;
}

.item-card.checked .item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Checkbox button */
.check-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: white;
  font-size: 0.85rem;
}

.check-btn:hover {
  border-color: var(--accent);
}

.item-card.checked .check-btn {
  background: var(--accent);
  border-color: var(--accent);
}

.item-body {
  flex: 1;
  min-width: 0;
}

.item-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.item-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.item-sub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.meta-store {
  color: var(--primary-dark);
  font-weight: 600;
  background: var(--primary-light);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.meta-aisle {
  color: #7c2d12;
  font-weight: 600;
  background: #ffedd5;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.item-card-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-action-icon {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.btn-action-icon:hover {
  color: var(--text-main);
  background: var(--bg-card-subtle);
}

/* Store Mode Specific Styles */
.store-mode-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.store-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.store-mode-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.store-mode-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* 2D Interactive Store Route Map */
.store-map-canvas-container {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.store-map-canvas {
  width: 100%;
  height: 180px;
  display: block;
}

.store-map-legend {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

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

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

/* Aisle Navigation Card */
.aisle-step-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.aisle-step-card.current-step {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), var(--shadow-md);
}

.aisle-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.aisle-number-badge {
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.aisle-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  max-width: 768px;
  margin: 0 auto;
}

.nav-tab-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-tab-btn:hover {
  color: var(--primary);
}

.nav-tab-btn.active {
  color: var(--primary);
}

.nav-tab-btn .tab-icon {
  font-size: 1.25rem;
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  margin: 0;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
  .modal-card {
    border-radius: var(--radius-lg);
    max-height: 88vh;
    margin: auto;
  }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-close-btn {
  background: var(--bg-card-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--border-strong);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card-subtle);
  flex-shrink: 0;
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-tabs {
  display: flex;
  background: var(--bg-card-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.form-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-tab-btn.active {
  background: white;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Primary / Secondary Buttons */
.btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-block {
  width: 100%;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.empty-text {
  font-size: 0.88rem;
  max-width: 320px;
  margin: 0 auto 1.25rem;
}

/* Receipt Upload Box */
.receipt-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card-subtle);
  transition: all var(--transition-fast);
}

.receipt-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.receipt-preview-img {
  max-height: 240px;
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem auto;
  display: block;
  box-shadow: var(--shadow-md);
}

/* Receipt Parsed Items Table */
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.receipt-table th, .receipt-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.receipt-table th {
  font-weight: 700;
  color: var(--text-muted);
}

#receiptParsedResultsContainer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#storeAislesBuilderList {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

#storeAislesBuilderList::-webkit-scrollbar {
  width: 5px;
}
#storeAislesBuilderList::-webkit-scrollbar-track {
  background: transparent;
}
#storeAislesBuilderList::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

/* Small Form Inputs for Multi-Store Availabilities */
.form-input-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
}

.btn-action-icon {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-action-icon:hover {
  background: var(--border);
  transform: scale(1.05);
}

.receipt-table td code {
  background: var(--bg-card-subtle);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.72rem;
  border: 1px solid var(--border);
}

/* Frequent Item Cards */
.frequent-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Category Manager Styles */
.category-row-card {
  transition: all var(--transition-fast);
}

.category-row-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.emoji-pick-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.emoji-pick-btn:hover {
  background: var(--primary-light);
  transform: scale(1.15);
}

.color-swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-swatch-btn:hover {
  transform: scale(1.15);
}

.color-swatch-btn.selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
  transform: scale(1.1);
}

.btn-danger-sm {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-danger-sm:hover {
  background: #fecaca;
  color: #b91c1c;
}

.btn-disabled-sm {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}
