:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.129 0.042 264.695);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.129 0.042 264.695);
  --primary: oklch(0.56 0.22 27);
  --primary-foreground: oklch(0.99 0 0);
  --brand-dark: oklch(0.36 0.13 25);
  --success: oklch(0.6 0.16 150);
  --secondary: oklch(0.968 0.007 247.896);
  --secondary-foreground: oklch(0.208 0.042 265.755);
  --muted: oklch(0.965 0.004 20);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --accent: oklch(0.95 0.03 25);
  --accent-foreground: oklch(0.45 0.18 27);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.929 0.013 255.508);
  --input: oklch(0.929 0.013 255.508);
  --ring: oklch(0.56 0.22 27);
}

* { border-color: var(--border); }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklch, black 50%, transparent);
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%;
  max-width: 24rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

#toast-root .toast {
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  background: var(--foreground);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
#toast-root .toast.success { background: var(--success); color: white; }
#toast-root .toast.error { background: var(--destructive); color: var(--destructive-foreground); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media print {
  body * { visibility: hidden !important; }
  #receipt-modal, #receipt-modal * { visibility: visible !important; }
  #receipt-modal {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background: white !important;
    padding: 0 !important;
  }
  #receipt-modal .modal {
    max-width: none;
    box-shadow: none;
    padding: 0;
  }
  .no-print { display: none !important; }
}
