/* ============================================================
   SwiftPOS — Ultra Clean & Modern Flat Design System
   ============================================================ */

:root {
  /* Surfaces & Backgrounds */
  --bg-base:        #f8fafc;
  --bg-surface:     #ffffff;
  --bg-card:        #ffffff;
  --bg-recessed:    #f1f5f9;
  
  /* Flat Borders & Clean Elevation */
  --border-line:    #e2e8f0;
  --border-subtle:  #e2e8f0;
  --border-focus:   #6366f1;
  
  --shadow-flat:    0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-flat-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-flat-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover:   0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-inset:   none;
  --shadow-inset-sm:none;
  --shadow-pressed: none;

  /* Accent & Status Colors */
  --primary:        #4f46e5;
  --primary-hover:  #4338ca;
  --primary-light:  #eef2ff;
  --primary-border: #c7d2fe;
  
  --success:        #10b981;
  --success-hover:  #059669;
  --success-light:  #ecfdf5;
  --success-border: #a7f3d0;

  --warning:        #f59e0b;
  --warning-light:  #fffbeb;
  --warning-border: #fde68a;

  --danger:         #ef4444;
  --danger-hover:   #dc2626;
  --danger-light:   #fef2f2;
  --danger-border:  #fecaca;

  --info:           #3b82f6;
  --info-light:     #eff6ff;

  /* Typography Colors */
  --text-main:      #0f172a;
  --text-muted:     #475569;
  --text-subtle:    #94a3b8;

  /* Layout */
  --sidebar-w:      250px;
  --topbar-h:       64px;
  --radius-xl:      14px;
  --radius-lg:      10px;
  --radius-md:      8px;
  --radius-sm:      6px;
  --radius-full:    9999px;

  /* Fonts */
  --font-sans:      'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --transition:     all 0.15s ease-in-out;
}

/* ── BASE RESET ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

/* ── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ── SVG ICONS ──────────────────────────────────────── */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
}

/* ── FLAT PRIMITIVES & CARDS ────────────────────────── */
.neu-flat {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-flat);
}

.neu-flat-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-flat-sm);
}

.neu-inset {
  background: var(--bg-recessed);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
}

.neu-inset-sm {
  background: var(--bg-recessed);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
}

/* ── BUTTONS (CLEAN FLAT STYLE) ─────────────────────── */
.neu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  user-select: none;
  white-space: nowrap;
}

.neu-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
  box-shadow: var(--shadow-hover);
}

.neu-btn:active, .neu-btn.active {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--primary);
}

.neu-btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border: 1px solid var(--primary);
  box-shadow: 0 1px 2px 0 rgba(79, 70, 229, 0.3);
}

.neu-btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 10px 0 rgba(79, 70, 229, 0.3);
}

.neu-btn-primary:active {
  background: #3730a3;
  transform: translateY(1px);
}

.neu-btn-success {
  background: var(--success);
  color: #ffffff !important;
  border: 1px solid var(--success);
  box-shadow: 0 1px 2px 0 rgba(16, 185, 129, 0.3);
}

.neu-btn-success:hover {
  background: var(--success-hover);
  border-color: var(--success-hover);
  box-shadow: 0 4px 10px 0 rgba(16, 185, 129, 0.3);
}

.neu-btn-danger {
  color: var(--danger);
  background: #ffffff;
  border: 1px solid var(--danger-border);
}

.neu-btn-danger:hover {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.neu-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.neu-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

.neu-btn-icon-sm {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ── FORM CONTROLS (CRISP FLAT INPUTS) ───────────────── */
.neu-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.neu-input-wrap .input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-subtle);
  pointer-events: none;
}

.neu-input {
  width: 100%;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.neu-input-wrap .neu-input {
  padding-left: 38px;
}

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

.neu-input::placeholder {
  color: var(--text-subtle);
}

.neu-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ── BADGES & CHIPS (FLAT PILLS) ─────────────────────── */
.neu-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
}

.neu-badge-indigo {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.neu-badge-green {
  background: var(--success-light);
  color: #059669;
  border: 1px solid var(--success-border);
}

.neu-badge-amber {
  background: var(--warning-light);
  color: #b45309;
  border: 1px solid var(--warning-border);
}

.neu-badge-red {
  background: var(--danger-light);
  color: #b91c1c;
  border: 1px solid var(--danger-border);
}

.neu-badge-gray {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-line);
}

/* ── APP LAYOUT ──────────────────────────────────────── */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ── SIDEBAR (CLEAN FLAT) ────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-line);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.brand-name span {
  color: var(--primary);
}

.sidebar-nav {
  padding: 14px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-subtle);
  padding: 12px 10px 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.nav-link.active .icon-svg {
  stroke: var(--primary);
}

.sidebar-profile {
  padding: 14px;
  margin: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.profile-meta {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: capitalize;
}

/* ── MAIN CONTENT AREA ───────────────────────────────── */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--bg-base);
}

.topbar {
  height: var(--topbar-h);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-line);
  z-index: 10;
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 5px 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── STATS CARDS (CLEAN FLAT CARDS) ──────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.stat-widget {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-flat-sm);
  transition: var(--transition);
}

.stat-widget:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrap.indigo { background: var(--primary-light); color: var(--primary); }
.stat-icon-wrap.green  { background: var(--success-light); color: var(--success); }
.stat-icon-wrap.amber  { background: var(--warning-light); color: var(--warning); }
.stat-icon-wrap.red    { background: var(--danger-light); color: var(--danger); }

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.stat-desc {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 2px;
}

/* ── TABLES (CRISP FLAT BORDERS) ─────────────────────── */
.neu-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.neu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.neu-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-line);
}

.neu-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.neu-table tbody tr {
  transition: background 0.1s ease;
}

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

.neu-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── POS WORKSPACE (MODERN FLAT POS) ─────────────────── */
.pos-container {
  display: flex;
  gap: 18px;
  height: calc(100vh - var(--topbar-h) - 48px);
}

.pos-catalog {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.pos-filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  flex: 1;
}

.cat-chip {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-line);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.cat-chip.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary-border);
  font-weight: 700;
}

.products-viewport {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 2px 2px 14px;
  align-content: start;
}

.product-card {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow-flat-sm);
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

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

.product-card.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.product-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 3px;
}

.product-sku {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  margin-bottom: 10px;
}

.product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
}

.product-stock {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 600;
}

/* ── POS CART (CLEAN FLAT PANEL) ─────────────────────── */
.pos-cart-panel {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-flat);
}

.cart-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
  background: #ffffff;
}

.cart-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-subtle);
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.cart-item-card {
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.cart-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  min-width: 20px;
  text-align: center;
}

.cart-item-subtotal {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
}

.cart-summary-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-line);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.summary-total .total-num {
  font-size: 19px;
  color: var(--primary);
  font-family: var(--font-mono);
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* ── MODALS (CLEAN FLAT MODAL) ───────────────────────── */
.neu-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

.neu-modal-box {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-flat-lg);
  animation: modalSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
}

.modal-heading {
  font-size: 16.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-content-body {
  padding: 20px;
}

.modal-foot {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-line);
  background: #f8fafc;
}

/* ── TOASTS (CLEAN FLAT NOTIFICATIONS) ───────────────── */
.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.neu-toast {
  padding: 11px 16px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-flat-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  min-width: 260px;
  animation: toastIn 0.25s ease-out;
}

.neu-toast.success { border-left-color: var(--success); }
.neu-toast.error   { border-left-color: var(--danger); }
.neu-toast.info    { border-left-color: var(--info); }

/* ── RECEIPT STYLES ──────────────────────────────────── */
.receipt-box {
  background: #ffffff;
  color: #0f172a;
  padding: 20px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
}

.receipt-header {
  text-align: center;
  margin-bottom: 14px;
}

.receipt-header h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 3px;
}

.receipt-divider {
  border: none;
  border-top: 1px dashed #cbd5e1;
  margin: 10px 0;
}

.receipt-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  margin: 8px 0;
}

.receipt-table th {
  text-align: left;
  padding: 4px 0;
  border-bottom: 1px dashed #cbd5e1;
  color: #64748b;
}

.receipt-table td {
  padding: 5px 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 4px;
}

.receipt-row.bold {
  font-weight: 800;
  font-size: 14px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
}

/* ── LOGIN PAGE (CLEAN FLAT CARD) ────────────────────── */
.login-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 20px;
}

.login-neu-card {
  width: 100%;
  max-width: 420px;
  padding: 38px 32px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
  animation: modalSlide 0.3s ease-out;
}

/* ── ANIMATIONS & UTILS ──────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── PRINT RECEIPT SPEC ──────────────────────────────── */
@media print {
  body * {
    visibility: hidden;
  }
  .receipt-box, .receipt-box * {
    visibility: visible;
  }
  .receipt-box {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
  }
  .modal-foot, .modal-head, .neu-modal-backdrop {
    display: none !important;
  }
}
