/* Custom Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* CSS variables for light theme (default) */
:root {
  --font-sans: 'Outfit', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-sidebar: #0f172a;
  --text-sidebar: #94a3b8;
  --text-sidebar-active: #ffffff;
  --bg-sidebar-active: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #eff6ff;
  --success-color: #10b981;
  --success-light: #ecfdf5;
  --warning-color: #f59e0b;
  --warning-light: #fef3c7;
  --danger-color: #ef4444;
  --danger-light: #fef2f2;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS variables for dark theme */
[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #131c2e;
  --bg-sidebar: #070a13;
  --text-sidebar: #64748b;
  --text-sidebar-active: #3b82f6;
  --bg-sidebar-active: #131c2e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border-color: #1e293b;
  --accent-color: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-light: rgba(59, 130, 246, 0.1);
  --success-color: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --warning-color: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.1);
  --danger-color: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* Global resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  transition: background-color 0.3s ease;
}

button, input, select, textarea {
  font-family: var(--font-sans);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout System */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  color: var(--text-sidebar);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  transition: var(--transition);
  border-right: 1px solid var(--border-color);
  z-index: 10;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo-icon {
  background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
  color: white;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.sidebar-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  list-style: none;
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-sidebar);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-menu-item.active a,
.sidebar-menu-item a:hover {
  background-color: var(--bg-sidebar-active);
  color: var(--text-sidebar-active);
}

.sidebar-menu-item.active a {
  border-left: 4px solid var(--accent-color);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
}

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 500;
}

/* Main Content Area */
.main-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
}

/* Top Navbar */
.top-navbar {
  height: 60px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--border-color);
}

.btn-logout {
  background-color: var(--danger-light);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-logout:hover {
  background-color: var(--danger-color);
  color: white;
}

/* Content Area */
.content-view {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  position: relative;
}

/* Screen Views Management */
.screen-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.screen-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid Systems */
.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Stat Cards */
.stat-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.blue { background-color: var(--accent-light); color: var(--accent-color); }
.stat-icon.emerald { background-color: var(--success-light); color: var(--success-color); }
.stat-icon.amber { background-color: var(--warning-light); color: var(--warning-color); }
.stat-icon.rose { background-color: var(--danger-light); color: var(--danger-color); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

/* Card Block Container */
.card-block {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.card-block-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-container {
  position: relative;
  height: 260px;
  width: 100%;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.custom-table th, .custom-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.custom-table th {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.custom-table tbody tr:hover {
  background-color: var(--bg-primary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-blue { background-color: var(--accent-light); color: var(--accent-color); }
.badge-emerald { background-color: var(--success-light); color: var(--success-color); }
.badge-amber { background-color: var(--warning-light); color: var(--warning-color); }
.badge-rose { background-color: var(--danger-light); color: var(--danger-color); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary { background-color: var(--accent-color); color: white; }
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover { background-color: var(--border-color); }

.btn-success { background-color: var(--success-color); color: white; }
.btn-success:hover { background-color: #059669; }

.btn-danger { background-color: var(--danger-color); color: white; }
.btn-danger:hover { background-color: #dc2626; }

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.btn-circle {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-control-readonly {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Filter Panel */
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  background-color: var(--bg-primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-item {
  flex: 1;
  min-width: 140px;
}

.filter-item label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.filter-input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Login Overlay */
.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.login-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: center;
}

.login-logo {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem auto;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notifications */
.notification-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-msg {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Scanner Video Container */
.scanner-video-container {
  position: relative;
  width: 100%;
  height: 280px;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay-laser {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--danger-color);
  animation: laserSweep 2s infinite ease-in-out;
  box-shadow: 0 0 8px var(--danger-color);
}

@keyframes laserSweep {
  0%, 100% { top: 20%; }
  50% { top: 80%; }
}

/* Slip Print Template */
.print-slip-container {
  display: none;
}

/* Print Styling Configuration */
@media print {
  body * {
    visibility: hidden;
  }
  
  .print-slip-container, .print-slip-container * {
    visibility: visible;
  }
  
  .print-slip-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000000 !important;
    background-color: #ffffff !important;
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 24px;
  }

  .print-slip-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .print-slip-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 4px;
  }

  .print-slip-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
  }

  .print-slip-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }

  .print-slip-table th, .print-slip-table td {
    border: 1px solid #000;
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
  }

  .print-slip-table th {
    background-color: #f2f2f2 !important;
    font-weight: bold;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-slip-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
    text-align: center;
  }

  .sig-line {
    border-bottom: 1px solid #000;
    margin-bottom: 8px;
    height: 40px;
  }

  .sig-title {
    font-size: 12px;
    font-weight: 500;
  }
}

/* Tablet Responsive Breakpoint */
@media (max-width: 992px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Mobile Responsive Breakpoints & Typography Optimization */
@media (max-width: 768px) {
  html {
    font-size: 14px; /* Adaptive base font scaling for mobile */
  }

  body {
    font-size: 0.88rem;
  }

  /* Top Navbar */
  .top-navbar {
    height: 52px;
    padding: 0 0.75rem;
  }

  .screen-title {
    font-size: 1.1rem;
  }

  .menu-toggle-btn {
    display: block;
    font-size: 1.1rem;
    padding: 0.25rem;
  }

  .navbar-right {
    gap: 0.35rem;
  }

  .navbar-right .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  #cloudflareSyncBadge {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
  }

  /* Sidebar */
  .sidebar {
    position: fixed;
    left: -260px;
    transition: left 0.3s ease;
    z-index: 1050;
  }
  
  .sidebar.show {
    left: 0;
  }

  .sidebar-header {
    padding: 1rem 0.85rem;
  }

  .sidebar-logo-text {
    font-size: 1rem;
  }

  .sidebar-menu {
    padding: 0.75rem 0.5rem;
  }

  .sidebar-menu-item a {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
  }

  /* Content Layout & Cards */
  .content-area {
    padding: 0.75rem 0.5rem;
  }

  .card-block {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
  }

  .card-block-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  /* Stat Cards */
  .stat-card {
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Forms & Inputs */
  .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-group {
    margin-bottom: 0.75rem;
  }

  .form-label {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
  }

  .form-control {
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
    min-height: 38px;
    border-radius: var(--radius-sm);
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
  }

  /* Filter Panel */
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .filter-item {
    width: 100%;
    min-width: 0;
  }

  .filter-item label {
    font-size: 0.72rem;
  }
  
  .filter-input {
    width: 100%;
    font-size: 0.82rem;
    padding: 0.4rem 0.55rem;
  }

  /* Tables */
  .table-responsive {
    border-radius: var(--radius-sm);
  }

  .custom-table th, .custom-table td {
    padding: 0.5rem 0.45rem;
    font-size: 0.78rem;
  }

  .custom-table th {
    font-size: 0.74rem;
  }

  .badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
  }

  /* Modals */
  .modal-content {
    max-width: 95% !important;
    margin: 0.5rem auto;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 0.75rem 1rem;
  }

  .modal-title {
    font-size: 0.95rem;
  }

  .modal-body {
    padding: 0.85rem;
  }

  .modal-footer {
    padding: 0.65rem 0.85rem;
  }

  /* Login Overlay & Card */
  .login-card {
    padding: 1.5rem 1.25rem;
    max-width: 92%;
    border-radius: var(--radius-md);
  }

  .login-logo {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .login-title {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }

  .login-subtitle {
    font-size: 0.78rem;
    margin-bottom: 1.25rem;
  }

  .login-quick-accounts {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }

  .login-quick-accounts p {
    font-size: 0.75rem !important;
  }

  .login-quick-accounts button {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.74rem !important;
  }

  /* Live Product Preview in Withdrawal Form */
  .wd-product-preview-card {
    padding: 0.65rem;
    gap: 0.65rem;
  }

  .wd-preview-img-box {
    width: 65px;
    height: 65px;
  }

  .wd-preview-sku {
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
  }

  .wd-preview-name {
    font-size: 0.88rem;
  }

  .wd-preview-meta {
    font-size: 0.72rem;
    gap: 0.4rem;
  }

  /* Rich Search Dropdown on Mobile */
  .rich-search-dropdown {
    max-height: 240px;
    padding: 0.25rem;
  }

  .rich-search-item {
    padding: 0.4rem 0.5rem;
    gap: 0.5rem;
  }

  .rich-search-thumb {
    width: 36px;
    height: 36px;
  }

  .rich-search-sku {
    font-size: 0.7rem;
    padding: 0.08rem 0.3rem;
  }

  .rich-search-name {
    font-size: 0.82rem;
  }

  .rich-search-bottom {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  /* Product Thumbnails */
  .product-thumb-table {
    width: 36px;
    height: 36px;
  }

  .product-thumb-cart {
    width: 32px;
    height: 32px;
  }
}

/* Extra Small Phones (e.g. iPhone SE, 360px - 400px width) */
@media (max-width: 480px) {
  html {
    font-size: 13.5px;
  }

  .screen-title {
    font-size: 1rem;
  }

  .card-block-title {
    font-size: 0.9rem;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .btn {
    font-size: 0.76rem;
    padding: 0.4rem 0.65rem;
  }

  .custom-table th, .custom-table td {
    padding: 0.4rem 0.35rem;
    font-size: 0.75rem;
  }

  .wd-preview-img-box {
    width: 55px;
    height: 55px;
  }

  .wd-preview-name {
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   Product Image & Visual Verification System Styles
   ========================================================================== */

.product-thumb-table {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.product-thumb-table:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.product-thumb-cart {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  flex-shrink: 0;
}

/* Live Product Preview in Withdrawal Form */
.wd-product-preview-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.wd-product-preview-card.has-product {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(59, 130, 246, 0.08));
}

.wd-preview-img-box {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.wd-preview-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.wd-preview-img-box:hover img {
  transform: scale(1.08);
}

.wd-preview-info {
  flex: 1;
  min-width: 0;
}

.wd-preview-sku {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
}

.wd-preview-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.wd-preview-meta strong {
  color: var(--text-primary);
}

/* Image Upload Component in Product Edit Modal */
.image-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.image-upload-zone:hover, .image-upload-zone.dragover {
  border-color: var(--accent-color);
  background-color: var(--accent-light);
}

.image-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.image-preview-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
}

/* Image Zoom Lightbox Modal */
.image-zoom-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.image-zoom-modal.show {
  display: flex;
}

.image-zoom-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  text-align: center;
}

.image-zoom-img-container {
  width: 100%;
  max-height: 380px;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-zoom-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.image-zoom-details {
  padding: 1.25rem;
  text-align: left;
}

.image-zoom-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  z-index: 5;
}

.image-zoom-close:hover {
  background: var(--danger-color);
}

/* Scanner Product Match Highlight */
.scanner-match-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--emerald-500, #10b981);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-top: 1rem;
  text-align: left;
}

.scanner-match-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* Rich Visual Search Dropdown with Product Images */
.rich-search-dropdown {
  position: absolute;
  top: calc(100% - 0.25rem);
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--accent-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.25), 0 8px 12px -6px rgba(0, 0, 0, 0.2);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  padding: 0.35rem;
}

.rich-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid var(--border-color);
}

.rich-search-item:last-child {
  border-bottom: none;
}

.rich-search-item:hover, .rich-search-item.selected {
  background-color: var(--accent-light);
}

.rich-search-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  flex-shrink: 0;
}

.rich-search-info {
  flex: 1;
  min-width: 0;
}

.rich-search-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.rich-search-sku {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent-color);
  background-color: var(--bg-primary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.rich-search-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rich-search-bottom {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.rich-search-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ==========================================================================
   Mobile E-Order Catalog Withdrawal System (Suki Teenoi / E-Menu Style)
   ========================================================================== */

.eorder-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 5.5rem; /* Space for sticky floating cart bar */
}

/* Top Search & Scanner Toolbar */
.eorder-toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  z-index: 20;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.eorder-search-box {
  position: relative;
  flex: 1;
}

.eorder-search-input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.25rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.eorder-search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.eorder-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.eorder-btn-scan {
  border-radius: 9999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Category Tabs (Horizontal Scroll Bar) */
.category-tabs-wrapper {
  position: sticky;
  top: 48px;
  background-color: var(--bg-primary);
  z-index: 19;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding: 0.35rem 0.5rem;
}

.category-tabs-container {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.category-tabs-container::-webkit-scrollbar {
  display: none;
}

.category-tab-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
  flex-shrink: 0;
}

.category-tab-pill:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.category-tab-pill.active {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border-color: #be123c;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}

/* Catalog Product List */
.catalog-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.catalog-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.catalog-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.catalog-card-thumb-box {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  flex-shrink: 0;
}

.catalog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.catalog-card-sku {
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--accent-color);
  background-color: var(--accent-light);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.catalog-card-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card-meta {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.5rem;
}

.catalog-card-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-btn-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
  transition: transform 0.15s ease;
}

.catalog-btn-add:active {
  transform: scale(0.9);
}

.catalog-card-in-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #10b981;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.1rem 0.45rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: 2px solid var(--bg-secondary);
}

.catalog-card-stepper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-primary);
  border: 1.5px solid var(--accent-color);
  border-radius: 9999px;
  padding: 0.2rem 0.35rem;
}

.catalog-stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.catalog-stepper-btn.plus {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border-color: #be123c;
}

.catalog-stepper-btn:active {
  transform: scale(0.9);
}

.catalog-stepper-qty {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 22px;
  text-align: center;
}

/* ==========================================================================
   Bottom Sheet Modal System (Mobile Sheet Animation)
   ========================================================================== */

.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bottom-sheet-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet-card {
  width: 100%;
  max-width: 540px;
  background-color: var(--bg-secondary);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-backdrop.show .bottom-sheet-card {
  transform: translateY(0);
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background-color: var(--bg-secondary);
  z-index: 10;
}

.bottom-sheet-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.bottom-sheet-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.bottom-sheet-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bottom-sheet-footer {
  padding: 0.85rem 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

/* Item Detail Sheet (Image & Stepper) */
.item-sheet-img-box {
  width: 100%;
  max-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-sheet-img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.item-sheet-info-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Stepper Quantity Component */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.6rem;
  width: fit-content;
  margin: 0.5rem auto 0 auto;
}

.stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.stepper-btn:active {
  background-color: var(--accent-light);
  transform: scale(0.92);
}

.stepper-btn.minus {
  color: #e11d48;
}

.stepper-btn.plus {
  color: #10b981;
}

.stepper-input {
  width: 65px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
}

/* Big Action Button */
.eorder-btn-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eorder-btn-submit:active {
  transform: scale(0.98);
}

/* Sticky Floating Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 540px;
  margin: 0 auto;
  padding: 0.65rem 1rem 1rem 1rem;
  z-index: 1100;
  pointer-events: none;
}

.floating-cart-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.65rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-cart-badge {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  min-width: 24px;
  text-align: center;
}

.floating-cart-info {
  display: flex;
  flex-direction: column;
}

.floating-cart-title {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
}

.floating-cart-desc {
  font-size: 0.74rem;
  color: #94a3b8;
}

.floating-cart-btn {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Cart Drawer Items List */
.cart-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.cart-drawer-item:last-child {
  border-bottom: none;
}

.cart-drawer-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.cart-drawer-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.cart-drawer-item-details {
  flex: 1;
  min-width: 0;
}

.cart-drawer-item-sku {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-color);
}

.cart-drawer-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-drawer-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cart-drawer-stepper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 4px;
}

.cart-drawer-stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-drawer-stepper-qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
}



