/* Local Tailwind browser-config replacements. Keep this small and cacheable. */
:root,
html body {
  /* Windows 7 / Chrome 109 fallback: Tailwind v4 emits OKLCH color tokens,
     which old Chrome rejects when utilities reference var(--color-*). */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-750: #2f3643;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-red-50: #fef2f2;
  --color-red-100: #fee2e2;
  --color-red-200: #fecaca;
  --color-red-300: #fca5a5;
  --color-red-400: #f87171;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;
  --color-red-700: #b91c1c;
  --color-red-800: #991b1b;
  --color-red-900: #7f1d1d;
  --color-rose-50: #fff1f2;
  --color-rose-100: #ffe4e6;
  --color-rose-200: #fecdd3;
  --color-rose-300: #fda4af;
  --color-rose-400: #fb7185;
  --color-rose-500: #f43f5e;
  --color-rose-600: #e11d48;
  --color-rose-700: #be123c;
  --color-rose-800: #9f1239;
  --color-rose-900: #881337;
  --color-orange-50: #fff7ed;
  --color-orange-100: #ffedd5;
  --color-orange-200: #fed7aa;
  --color-orange-300: #fdba74;
  --color-orange-400: #fb923c;
  --color-orange-500: #f97316;
  --color-orange-600: #ea580c;
  --color-orange-700: #c2410c;
  --color-orange-800: #9a3412;
  --color-orange-900: #7c2d12;
  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-200: #fde68a;
  --color-amber-300: #fcd34d;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-amber-700: #b45309;
  --color-amber-800: #92400e;
  --color-amber-900: #78350f;
  --color-yellow-50: #fefce8;
  --color-yellow-100: #fef9c3;
  --color-yellow-200: #fef08a;
  --color-yellow-300: #fde047;
  --color-yellow-400: #facc15;
  --color-yellow-500: #eab308;
  --color-yellow-600: #ca8a04;
  --color-yellow-700: #a16207;
  --color-yellow-800: #854d0e;
  --color-yellow-900: #713f12;
  --color-green-50: #f0fdf4;
  --color-green-100: #dcfce7;
  --color-green-200: #bbf7d0;
  --color-green-300: #86efac;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-green-800: #166534;
  --color-green-900: #14532d;
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-200: #a7f3d0;
  --color-emerald-300: #6ee7b7;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  --color-emerald-800: #065f46;
  --color-emerald-900: #064e3b;
  --color-teal-50: #f0fdfa;
  --color-teal-100: #ccfbf1;
  --color-teal-200: #99f6e4;
  --color-teal-300: #5eead4;
  --color-teal-400: #2dd4bf;
  --color-teal-500: #14b8a6;
  --color-teal-600: #0d9488;
  --color-teal-700: #0f766e;
  --color-teal-800: #115e59;
  --color-teal-900: #134e4a;
  --color-cyan-50: #ecfeff;
  --color-cyan-100: #cffafe;
  --color-cyan-200: #a5f3fc;
  --color-cyan-300: #67e8f9;
  --color-cyan-400: #22d3ee;
  --color-cyan-500: #06b6d4;
  --color-cyan-600: #0891b2;
  --color-cyan-700: #0e7490;
  --color-cyan-800: #155e75;
  --color-cyan-900: #164e63;
  --color-sky-50: #f0f9ff;
  --color-sky-100: #e0f2fe;
  --color-sky-200: #bae6fd;
  --color-sky-300: #7dd3fc;
  --color-sky-400: #38bdf8;
  --color-sky-500: #0ea5e9;
  --color-sky-600: #0284c7;
  --color-sky-700: #0369a1;
  --color-sky-800: #075985;
  --color-sky-900: #0c4a6e;
  --color-blue-50: #eff6ff;
  --color-blue-100: #dbeafe;
  --color-blue-200: #bfdbfe;
  --color-blue-300: #93c5fd;
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-blue-800: #1e40af;
  --color-blue-900: #1e3a8a;
  --color-indigo-50: #eef2ff;
  --color-indigo-100: #e0e7ff;
  --color-indigo-200: #c7d2fe;
  --color-indigo-300: #a5b4fc;
  --color-indigo-400: #818cf8;
  --color-indigo-500: #6366f1;
  --color-indigo-600: #4f46e5;
  --color-indigo-700: #4338ca;
  --color-indigo-800: #3730a3;
  --color-indigo-900: #312e81;
  --color-purple-50: #faf5ff;
  --color-purple-100: #f3e8ff;
  --color-purple-200: #e9d5ff;
  --color-purple-300: #d8b4fe;
  --color-purple-400: #c084fc;
  --color-purple-500: #a855f7;
  --color-purple-600: #9333ea;
  --color-purple-700: #7e22ce;
  --color-purple-800: #6b21a8;
  --color-purple-900: #581c87;
  --color-pink-50: #fdf2f8;
  --color-pink-100: #fce7f3;
  --color-pink-200: #fbcfe8;
  --color-pink-300: #f9a8d4;
  --color-pink-400: #f472b6;
  --color-pink-500: #ec4899;
  --color-pink-600: #db2777;
  --color-pink-700: #be185d;
  --color-pink-800: #9d174d;
  --color-pink-900: #831843;
  --color-black: #000000;
  --color-white: #ffffff;
}

html body {
  --color-primary: #f7310f;
  --color-secondary: #292c2d;
  --color-success: #22c55e;
  --color-danger: #ef4444;
  --color-light: #f4f6fa;
  --color-inputBg: #f9f9f9;
  --color-primary-light: #fff5f3;
  --color-primary-lighter: #fff0eb;
  --color-surface: #f5f4f1;
  --color-surface-border: #e5e4e1;
  --color-surface-hover: #f0efec;
  --color-text-primary: #1a1918;
  --color-text-secondary: #6d6c6a;
  --color-text-muted: #9c9b99;
  --font-poppins: Poppins, sans-serif;
  --font-outfit: Outfit, sans-serif;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

.font-poppins { font-family: var(--font-poppins); }
.font-outfit { font-family: var(--font-outfit); }
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

.bg-light { background-color: var(--color-light); }
.bg-inputBg { background-color: var(--color-inputBg); }
.bg-primary-light { background-color: var(--color-primary-light); }
.bg-primary-lighter { background-color: var(--color-primary-lighter); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-border { background-color: var(--color-surface-border); }
.bg-surface-hover { background-color: var(--color-surface-hover); }
.bg-dark { background-color: var(--color-dark, #1a1a1a); }

.text-text-primary { color: var(--color-text-primary); }
.text-text-secondary { color: var(--color-text-secondary); }
.text-text-muted { color: var(--color-text-muted); }
.text-dark { color: var(--color-dark, #1a1a1a); }

.border-surface-border { border-color: var(--color-surface-border); }
.border-primary { border-color: var(--color-primary); }
.focus\:border-primary:focus { border-color: var(--color-primary); }

.shadow-soft { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.shadow-focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }
.shadow-custom { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); }

.from-light {
  --tw-gradient-from: var(--color-light);
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
}
.from-primary {
  --tw-gradient-from: var(--color-primary);
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
}
.from-secondary {
  --tw-gradient-from: var(--color-secondary);
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
}
.to-primary { --tw-gradient-to: var(--color-primary) var(--tw-gradient-to-position); }
.to-secondary { --tw-gradient-to: var(--color-secondary) var(--tw-gradient-to-position); }

.hover\:from-secondary:hover {
  --tw-gradient-from: var(--color-secondary);
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
}
.hover\:to-primary:hover { --tw-gradient-to: var(--color-primary) var(--tw-gradient-to-position); }

html.dark .dark\:bg-gray-700 { background-color: var(--color-gray-700); }
html.dark .dark\:bg-gray-800 { background-color: var(--color-gray-800); }
html.dark .dark\:bg-gray-900 { background-color: var(--color-gray-900); }
html.dark .dark\:text-white { color: var(--color-white); }
html.dark .dark\:text-gray-100 { color: var(--color-gray-100); }
html.dark .dark\:text-gray-200 { color: var(--color-gray-200); }
html.dark .dark\:text-gray-300 { color: var(--color-gray-300); }
html.dark .dark\:text-gray-400 { color: var(--color-gray-400); }
html.dark .dark\:border-gray-600 { border-color: var(--color-gray-600); }
html.dark .dark\:border-gray-700 { border-color: var(--color-gray-700); }

/* Legacy utility fallbacks for classes that are added dynamically by page-pos.php. */
.bg-\[\#2b2e31\] { background-color: #2b2e31 !important; }
.bg-\[\#f7310f\] { background-color: #f7310f !important; }
.text-\[\#f7310f\] { color: #f7310f !important; }
.border-\[\#f7310f\] { border-color: #f7310f !important; }
.bg-gray-750 { background-color: #2f3643 !important; }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5) !important; }
.bg-blue-50\/60 { background-color: rgba(239, 246, 255, 0.6) !important; }
.bg-green-50\/70 { background-color: rgba(240, 253, 244, 0.7) !important; }
.bg-blue-900\/20 { background-color: rgba(30, 58, 138, 0.2) !important; }
.bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3) !important; }
.bg-green-900\/20 { background-color: rgba(20, 83, 45, 0.2) !important; }
.bg-green-900\/30 { background-color: rgba(20, 83, 45, 0.3) !important; }
.bg-amber-900\/30 { background-color: rgba(120, 53, 15, 0.3) !important; }
.bg-emerald-900\/20 { background-color: rgba(6, 78, 59, 0.2) !important; }
.bg-indigo-900\/30 { background-color: rgba(49, 46, 129, 0.3) !important; }
.bg-orange-900\/20 { background-color: rgba(124, 45, 18, 0.2) !important; }
.bg-purple-900\/30 { background-color: rgba(88, 28, 135, 0.3) !important; }
.bg-yellow-900\/20 { background-color: rgba(113, 63, 18, 0.2) !important; }
.bg-yellow-900\/30 { background-color: rgba(113, 63, 18, 0.3) !important; }
html.dark .dark\:bg-amber-900\/30 { background-color: rgba(120, 53, 15, 0.3) !important; }
html.dark .dark\:bg-blue-900\/20 { background-color: rgba(30, 58, 138, 0.2) !important; }
html.dark .dark\:bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3) !important; }
html.dark .dark\:bg-emerald-900\/20 { background-color: rgba(6, 78, 59, 0.2) !important; }
html.dark .dark\:bg-green-900\/20 { background-color: rgba(20, 83, 45, 0.2) !important; }
html.dark .dark\:bg-green-900\/30 { background-color: rgba(20, 83, 45, 0.3) !important; }
html.dark .dark\:bg-orange-900\/20 { background-color: rgba(124, 45, 18, 0.2) !important; }
html.dark .dark\:bg-purple-900\/30 { background-color: rgba(88, 28, 135, 0.3) !important; }
html.dark .dark\:bg-yellow-900\/20 { background-color: rgba(113, 63, 18, 0.2) !important; }
html.dark .dark\:bg-yellow-900\/30 { background-color: rgba(113, 63, 18, 0.3) !important; }
.from-amber-900\/80 { --tw-gradient-from: rgba(120, 53, 15, 0.8) !important; }
.from-blue-900\/80 { --tw-gradient-from: rgba(30, 58, 138, 0.8) !important; }
.from-yellow-900\/30 { --tw-gradient-from: rgba(113, 63, 18, 0.3) !important; }
.from-yellow-900\/80 { --tw-gradient-from: rgba(113, 63, 18, 0.8) !important; }
html.dark .dark\:from-yellow-900\/30 { --tw-gradient-from: rgba(113, 63, 18, 0.3) !important; }
.to-amber-800\/60 { --tw-gradient-to: rgba(146, 64, 14, 0.6) !important; }
.to-amber-900\/30 { --tw-gradient-to: rgba(120, 53, 15, 0.3) !important; }
.to-blue-800\/60 { --tw-gradient-to: rgba(30, 64, 175, 0.6) !important; }
.to-yellow-800\/60 { --tw-gradient-to: rgba(133, 77, 14, 0.6) !important; }
html.dark .dark\:to-amber-900\/30 { --tw-gradient-to: rgba(120, 53, 15, 0.3) !important; }
.hover\:bg-\[\#d62a0d\]:hover { background-color: #d62a0d !important; }
.hover\:bg-white\/70:hover { background-color: rgba(255, 255, 255, 0.7) !important; }
.hover\:border-primary\/50:hover { border-color: rgba(247, 49, 15, 0.5) !important; }
html.dark .dark\:hover\:bg-green-900\/20:hover { background-color: rgba(20, 83, 45, 0.2) !important; }
html.dark .peer:checked ~ .dark\:peer-checked\:bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3) !important; }
html.dark .peer:checked ~ .dark\:peer-checked\:bg-indigo-900\/30 { background-color: rgba(49, 46, 129, 0.3) !important; }
html.dark .peer:checked ~ .dark\:peer-checked\:bg-orange-900\/20 { background-color: rgba(124, 45, 18, 0.2) !important; }

/* Tailwind v3-compatible POS utility corrections for the static local bundle. */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-5 { line-height: 1.25rem; }
.tracking-wider { letter-spacing: 0.05em; }

.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; }
.rounded-b-xl { border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-9 { padding-left: 2.25rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }
.pr-8 { padding-right: 2rem; }

.m-0 { margin: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-auto { margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* Tailwind CDN JIT used to create dynamic POS grid utilities at runtime.
   The local CSS bundle is static, so keep the commonly used grid helpers here. */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-9 { grid-column: span 9 / span 9; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-11 { grid-column: span 11 / span 11; }
.col-span-12 { grid-column: span 12 / span 12; }
.col-span-full { grid-column: 1 / -1; }

@media (min-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sm\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .sm\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .sm\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .sm\:grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .sm\:grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .md\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .md\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .md\:grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .md\:grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:grid-cols-\[minmax\(180px\,1fr\)_auto_auto_auto\] {
    grid-template-columns: minmax(180px, 1fr) auto auto auto;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .lg\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .lg\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .lg\:grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .lg\:grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .xl\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .xl\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .xl\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .xl\:grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .xl\:grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .xl\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1536px) {
  .\32xl\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .\32xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .\32xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .\32xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .\32xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .\32xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .\32xl\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .\32xl\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .\32xl\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .\32xl\:grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .\32xl\:grid-cols-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
  .\32xl\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* Keep these unambiguous when Tailwind's generated utility layer is loaded twice. */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-5xl { font-size: 3rem !important; line-height: 1 !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }

.rounded-sm { border-radius: 0.125rem !important; }
.rounded { border-radius: 0.25rem !important; }
.rounded-md { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }
.rounded-t { border-top-left-radius: 0.25rem !important; border-top-right-radius: 0.25rem !important; }
.rounded-b-xl { border-bottom-left-radius: 0.75rem !important; border-bottom-right-radius: 0.75rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-1\.5 { padding: 0.375rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }

.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 0.75rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-6 { padding-top: 1.5rem !important; }
.pt-8 { padding-top: 2rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 0.75rem !important; }
.pl-9 { padding-left: 2.25rem !important; }
.pl-10 { padding-left: 2.5rem !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 0.75rem !important; }
.pr-4 { padding-right: 1rem !important; }
.pr-8 { padding-right: 2rem !important; }

.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-auto { margin-top: auto !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 0.75rem !important; }
.ml-4 { margin-left: 1rem !important; }
.ml-6 { margin-left: 1.5rem !important; }
.ml-auto { margin-left: auto !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-1\.5 { margin-right: 0.375rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 0.75rem !important; }
.mr-auto { margin-right: auto !important; }
.mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* POS visual polish after replacing the Tailwind CDN. */
.text-\[11px\] { font-size: 11px !important; line-height: 1rem !important; }
.text-\[10px\] { font-size: 10px !important; line-height: 0.875rem !important; }

#sidebar.sidebar-container .menu-link,
#sidebar.sidebar-container .menu-link i,
#sidebar.sidebar-container .menu-link svg,
#sidebar.sidebar-container .menu-link .menu-text {
  color: #ffffff !important;
  text-decoration: none !important;
}

#sidebar.sidebar-container .menu-link {
  border-radius: 0.5rem !important;
  text-decoration: none !important;
}

#sidebar.sidebar-container .menu-link *,
#sidebar.sidebar-container .menu-text,
#sidebar.sidebar-container a,
#sidebar.sidebar-container a:hover,
#sidebar.sidebar-container a:focus,
#sidebar.sidebar-container a:active {
  text-decoration: none !important;
}

#pwa-install-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#sidebar.sidebar-container .menu-link:hover,
#sidebar.sidebar-container .menu-link:focus,
#sidebar.sidebar-container .menu-link:active,
#sidebar.sidebar-container .menu-link:hover .menu-text,
#sidebar.sidebar-container .menu-link:focus .menu-text,
#sidebar.sidebar-container .menu-link:active .menu-text {
  text-decoration: none !important;
}

#sidebar.sidebar-container .menu-link:not(.bg-red-600):not(.active):not([aria-current="page"]) {
  background-color: transparent !important;
}

#sidebar.sidebar-container .menu-link.bg-red-600,
#sidebar.sidebar-container .menu-link.active,
#sidebar.sidebar-container .menu-link[aria-current="page"] {
  background-color: var(--color-primary, #d5563a) !important;
  color: #ffffff !important;
}

#sidebar.sidebar-container .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

#sidebar.sidebar-container .menu-link.bg-red-600:hover,
#sidebar.sidebar-container .menu-link.active:hover,
#sidebar.sidebar-container .menu-link[aria-current="page"]:hover {
  background-color: var(--color-primary, #d5563a) !important;
}

#cart-action-buttons-stack #checkout-table-btn,
#cart-action-buttons-stack #save-table-order-btn,
#cart-action-buttons-stack #print-proforma-new-order,
#cart-action-buttons-stack #print-preview-bill-btn,
#cart-action-buttons-stack #open-drawer-btn,
#cart-action-buttons-stack #reprint-last-receipt-btn,
#cart-action-buttons-stack #split-checkout-btn,
#cart-action-buttons-stack #switch-table-btn {
  height: 62px !important;
  min-height: 62px !important;
  padding-top: 1.05rem !important;
  padding-bottom: 1.05rem !important;
  border-radius: 0.65rem !important;
  font-size: 1rem !important;
  line-height: 1.15 !important;
}

#cart-action-buttons-stack #checkout-table-btn i,
#cart-action-buttons-stack #save-table-order-btn i,
#cart-action-buttons-stack #print-proforma-new-order i,
#cart-action-buttons-stack #print-preview-bill-btn i,
#cart-action-buttons-stack #open-drawer-btn i,
#cart-action-buttons-stack #reprint-last-receipt-btn i,
#cart-action-buttons-stack #split-checkout-btn i,
#cart-action-buttons-stack #switch-table-btn i {
  font-size: 1rem !important;
}

#cart-action-buttons-stack #first-row-buttons,
#cart-action-buttons-stack #second-row-buttons,
#cart-action-buttons-stack #proforma-drawer-row,
#cart-action-buttons-stack #table-inline-extra-actions {
  gap: 0.5rem !important;
}

#cart-action-buttons-stack #checkout-table-btn span,
#cart-action-buttons-stack #open-drawer-btn span,
#cart-action-buttons-stack #reprint-last-receipt-btn span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#cart-items + .cart-items-header,
.cart-items-header,
#cart-items > div.flex.items-center.justify-between,
#cart-items .cart-item-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.7fr) 56px 78px 64px 50px !important;
  min-height: 48px !important;
  align-items: center !important;
  gap: 0.3rem !important;
  padding: 0.35rem 0.45rem !important;
  border-radius: 0.55rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#cart-items {
  margin-right: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden !important;
}

.cart-items-header {
  min-height: 36px !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.45rem !important;
  border-radius: 0 !important;
}

.cart-items-header > *,
#cart-items > div.flex.items-center.justify-between > *,
#cart-items .cart-item-row > * {
  width: auto !important;
  min-width: 0 !important;
  margin-right: 0 !important;
}

#cart-items > div.flex.items-center.justify-between p,
#cart-items .cart-item-row p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#cart-items > div.flex.items-center.justify-between > div:first-child,
#cart-items .cart-item-row > div:first-child {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  margin-right: 0 !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
}

#cart-items > div.flex.items-center.justify-between > :nth-child(3),
#cart-items .cart-item-row > :nth-child(3) {
  min-height: 32px !important;
  height: 32px !important;
  border-radius: 0.45rem !important;
}

.cart-items-header > :nth-child(2),
#cart-items > div.flex.items-center.justify-between > :nth-child(2),
#cart-items .cart-item-row > :nth-child(2),
.cart-items-header > :nth-child(4),
#cart-items > div.flex.items-center.justify-between > :nth-child(4),
#cart-items .cart-item-row > :nth-child(4) {
  text-align: right !important;
  justify-self: stretch !important;
}

.cart-items-header > :nth-child(3),
#cart-items > div.flex.items-center.justify-between > :nth-child(3),
#cart-items .cart-item-row > :nth-child(3) {
  justify-self: center !important;
  width: 100% !important;
}

.cart-items-header > :nth-child(5),
#cart-items > div.flex.items-center.justify-between > :nth-child(5),
#cart-items .cart-item-row > :nth-child(5) {
  justify-self: end !important;
  width: 50px !important;
  max-width: 50px !important;
  justify-content: flex-end !important;
}

#cart-items .cart-item-row > div:first-child p,
#cart-items > div.flex.items-center.justify-between > div:first-child p,
#cart-items p.item-name,
#cart-items p.item-name.font-medium,
#cart-items .item-name {
  display: block !important;
  line-height: 1.25rem !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#cart-items .item-unit-price,
#cart-items .cart-item-row > :nth-child(2),
#cart-items .cart-item-row > :nth-child(4),
#cart-items > div.flex.items-center.justify-between > :nth-child(2),
#cart-items > div.flex.items-center.justify-between > :nth-child(4) {
  white-space: nowrap !important;
}

#cart-items .cart-item-row > :nth-child(2) *,
#cart-items .cart-item-row > :nth-child(4) *,
#cart-items > div.flex.items-center.justify-between > :nth-child(2) *,
#cart-items > div.flex.items-center.justify-between > :nth-child(4) * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.25rem !important;
}

#cart-items .quantity-display {
  line-height: 1.1rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#cart-items .decrease-item,
#cart-items .increase-item {
  min-height: 30px !important;
  height: 30px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#cart-items .cart-delete-btn {
  width: 48px !important;
  max-width: 48px !important;
  min-width: 48px !important;
  min-height: 32px !important;
  height: 32px !important;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
  border-radius: 0.45rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#cart-items .cart-delete-btn,
#cart-items .cart-delete-btn:disabled,
#cart-items .cart-delete-btn[disabled] {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.16rem !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

#cart-items .cart-delete-btn:disabled,
#cart-items .cart-delete-btn[disabled] {
  width: 52px !important;
  max-width: 52px !important;
  min-width: 52px !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
}

#cart-items .cart-delete-btn span,
#cart-items .cart-delete-btn i,
#cart-items .cart-delete-btn svg {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

#cart-items .cart-item-row p.font-semibold,
#cart-items > div.flex.items-center.justify-between p.font-semibold,
#cart-items .cart-item-row p[class*="font-semibold"],
#cart-items > div.flex.items-center.justify-between p[class*="font-semibold"] {
  margin: 0 !important;
  line-height: 1.2rem !important;
}

@media (max-width: 1280px) {
  .cart-items-header,
  #cart-items > div.flex.items-center.justify-between,
  #cart-items .cart-item-row {
    grid-template-columns: minmax(0, 1.65fr) 52px 70px 58px 48px !important;
    gap: 0.25rem !important;
  }

  .cart-items-header > :nth-child(5),
  #cart-items > div.flex.items-center.justify-between > :nth-child(5),
  #cart-items .cart-item-row > :nth-child(5) {
    width: 48px !important;
    max-width: 48px !important;
  }
}

#mesas-open-drawer-btn,
#mesas-print-receipt-btn {
  min-height: 64px !important;
  min-width: 210px !important;
  padding: 1rem 1.35rem !important;
  border-radius: 0.75rem !important;
  font-size: 1.05rem !important;
}

#mesas-open-drawer-btn i,
#mesas-print-receipt-btn i {
  font-size: 1.2rem !important;
}

#split-billing-modal .bg-orange-600 h2 {
  font-size: 1.15rem !important;
  line-height: 1.55rem !important;
  font-weight: 800 !important;
}

#split-billing-modal h3 {
  font-size: 1.05rem !important;
  line-height: 1.35rem !important;
  font-weight: 800 !important;
}

#split-billing-modal .aa-product-group,
#split-billing-modal .split-order-item {
  font-size: 0.95rem !important;
}

#split-billing-modal .aa-product-group {
  padding: 0.65rem 0.75rem !important;
}

#split-billing-modal .aa-product-group h4 {
  font-size: 1rem !important;
  line-height: 1.25rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

#split-billing-modal .aa-product-group p {
  font-size: 0.82rem !important;
  line-height: 1.05rem !important;
  margin: 0.18rem 0 0 !important;
}

#split-billing-modal .aa-product-qty-btn,
#split-billing-modal .split-order-item button[data-group-key] {
  width: 2.05rem !important;
  height: 2.05rem !important;
  min-width: 2.05rem !important;
  min-height: 2.05rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
}

#split-billing-modal .aa-product-qty-btn i,
#split-billing-modal .split-order-item button[data-group-key] i {
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

#split-billing-modal .aa-product-qty-btn + span,
#split-billing-modal .split-order-item button[data-group-key] + span {
  min-width: 1.45rem !important;
  font-size: 0.95rem !important;
  line-height: 1.1rem !important;
  font-weight: 800 !important;
}

#split-billing-modal .aa-product-group .text-2xl,
#split-billing-modal .split-order-item .text-2xl,
#split-billing-modal .aa-product-group .text-xl,
#split-billing-modal .split-order-item .text-xl {
  font-size: 1.15rem !important;
  line-height: 1.45rem !important;
  font-weight: 800 !important;
}

#split-billing-modal .aa-product-group .text-lg,
#split-billing-modal .split-order-item .text-lg {
  font-size: 1rem !important;
  line-height: 1.25rem !important;
  font-weight: 800 !important;
}

#split-billing-modal .aa-product-group .text-sm,
#split-billing-modal .split-order-item .text-sm,
#split-billing-modal .split-products .text-sm {
  font-size: 0.86rem !important;
  line-height: 1.15rem !important;
  font-weight: 700 !important;
}

#split-billing-modal .aa-product-group .text-xs,
#split-billing-modal .split-order-item .text-xs,
#split-billing-modal .split-products .text-xs {
  font-size: 0.76rem !important;
  line-height: 1rem !important;
  font-weight: 600 !important;
}

#split-billing-modal .split-order-item {
  padding: 0.65rem !important;
}

#split-billing-modal .split-order-item > div:first-child {
  align-items: center !important;
  gap: 0.35rem !important;
  margin-bottom: 0.35rem !important;
}

#split-billing-modal .split-order-item h4,
#split-billing-modal .split-order-item h4.font-semibold,
#split-billing-modal .split-order-item h4[class*="text-"],
#split-billing-modal .split-order-item .font-semibold.text-orange-800 {
  font-size: 0.95rem !important;
  line-height: 1.15rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

#split-billing-modal .split-order-item h4 i,
#split-billing-modal .split-order-item .fa-receipt,
#split-billing-modal .split-order-item .fa-arrow-left {
  font-size: 0.85rem !important;
  line-height: 1 !important;
}

#split-billing-modal .split-order-item span.text-lg,
#split-billing-modal .split-order-item .text-lg.font-bold,
#split-billing-modal .split-order-item span[class*="text-lg"] {
  font-size: 0.92rem !important;
  line-height: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

#split-billing-modal .split-products > div {
  min-height: 2.05rem !important;
  padding: 0.38rem 0.5rem !important;
  gap: 0.35rem !important;
  align-items: center !important;
}

#split-billing-modal .split-products .font-medium,
#split-billing-modal .split-products [class*="font-medium"] {
  display: inline-block !important;
  max-width: 55% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

#split-billing-modal .split-products .text-xs {
  font-size: 0.68rem !important;
  line-height: 0.9rem !important;
  margin-left: 0.25rem !important;
  white-space: nowrap !important;
}

#split-billing-modal .aa-product-group h4 {
  font-size: 0.95rem !important;
  line-height: 1.15rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#split-billing-modal .aa-product-group p {
  font-size: 0.72rem !important;
  line-height: 0.95rem !important;
}

#split-billing-modal .aa-product-qty-btn,
#split-billing-modal .split-order-item button[data-group-key] {
  width: 1.65rem !important;
  height: 1.65rem !important;
  min-width: 1.65rem !important;
  min-height: 1.65rem !important;
  padding: 0 !important;
  font-size: 0.72rem !important;
}

#split-billing-modal .aa-product-qty-btn i,
#split-billing-modal .split-order-item button[data-group-key] i {
  font-size: 0.62rem !important;
}

#split-billing-modal .aa-product-qty-btn + span,
#split-billing-modal .split-order-item button[data-group-key] + span {
  min-width: 1rem !important;
  font-size: 0.78rem !important;
  line-height: 1rem !important;
  font-weight: 700 !important;
}

#mesas-grid .mesa-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  text-align: center !important;
  border-radius: 0.5rem !important;
}

#mesas-grid .mesa-item > * {
  flex: 0 0 auto !important;
}

#mesas-grid .mesa-item[data-estado="ocupada"],
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"],
#mesas-grid .mesa-item[data-estado="liquidando"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#mesas-grid .mesa-item[data-estado="ocupada"] > div,
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"] > div,
#mesas-grid .mesa-item[data-estado="liquidando"] > div {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.22rem !important;
  padding: 0.35rem 0.25rem !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#mesas-grid .mesa-item[data-estado="ocupada"] > div > *,
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"] > div > *,
#mesas-grid .mesa-item[data-estado="liquidando"] > div > * {
  flex: 0 0 auto !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.08 !important;
}

#mesas-grid .mesa-item[data-estado="ocupada"] .table-name,
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"] .table-name,
#mesas-grid .mesa-item[data-estado="liquidando"] .table-name {
  line-height: 1.05 !important;
}

#mesas-grid .mesa-item[data-estado="ocupada"] .table-zone-name,
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"] .table-zone-name,
#mesas-grid .mesa-item[data-estado="liquidando"] .table-zone-name {
  margin-bottom: 0.05rem !important;
}

#mesas-grid .mesa-item[data-estado="ocupada"] .table-zone-number,
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"] .table-zone-number,
#mesas-grid .mesa-item[data-estado="liquidando"] .table-zone-number {
  line-height: 1 !important;
}

#mesas-grid .mesa-item[data-estado="ocupada"] .table-price,
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"] .table-price,
#mesas-grid .mesa-item[data-estado="liquidando"] .table-price,
#mesas-grid .mesa-item[data-estado="ocupada"] .table-order-time,
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"] .table-order-time,
#mesas-grid .mesa-item[data-estado="liquidando"] .table-order-time {
  margin-top: 0 !important;
  line-height: 1.08 !important;
}

#mesas-grid .mesa-item[data-estado="ocupada"] > div > div:not(.table-price):not(.table-order-time),
#mesas-grid .mesa-item[data-estado="solicitud_cuenta"] > div > div:not(.table-price):not(.table-order-time),
#mesas-grid .mesa-item[data-estado="liquidando"] > div > div:not(.table-price):not(.table-order-time) {
  margin-top: 0 !important;
  line-height: 1.05 !important;
}

.swal2-popup.ruiyi-order-details-popup {
  max-height: 88vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.swal2-popup.ruiyi-order-details-popup .swal2-title {
  flex: 0 0 auto !important;
  padding-bottom: 0.25rem !important;
}

.swal2-popup.ruiyi-order-details-popup .swal2-html-container {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.swal2-popup.ruiyi-order-details-popup .order-details-popup-wrapper {
  max-height: calc(88vh - 92px) !important;
  min-height: 0 !important;
}

.swal2-popup.ruiyi-order-details-popup .order-details-popup-wrapper > .text-left {
  min-height: 0 !important;
  max-height: none !important;
}

.swal2-popup.ruiyi-order-details-popup .order-details-popup-footer {
  background: #ffffff !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
}

.swal2-popup.ruiyi-order-details-popup .order-details-popup-footer button,
.swal2-popup.ruiyi-pdf-invoice-popup .swal2-actions button {
  border-radius: 0.5rem !important;
  min-height: 44px !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup {
  max-height: 90vh !important;
  overflow: hidden !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup .swal2-title {
  font-size: 1.55rem !important;
  line-height: 2rem !important;
  margin-bottom: 0.35rem !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup .swal2-html-container {
  margin: 0 !important;
  max-height: calc(90vh - 150px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 0.25rem !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup .grid.grid-cols-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  column-gap: 0.75rem !important;
  row-gap: 0.5rem !important;
  align-items: start !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup input,
.swal2-popup.ruiyi-pdf-invoice-popup textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 0.45rem !important;
  font-size: 0.875rem !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup input {
  min-height: 38px !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup textarea {
  min-height: 62px !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup label {
  font-size: 0.75rem !important;
  line-height: 1rem !important;
}

.swal2-popup.ruiyi-pdf-invoice-popup #pdf-customer-search + .invoice-autocomplete-dropdown + p,
.swal2-popup.ruiyi-pdf-invoice-popup p.text-\[11px\] {
  font-size: 11px !important;
  line-height: 1rem !important;
  margin-top: 0.25rem !important;
}

@media (max-width: 720px) {
  .swal2-popup.ruiyi-pdf-invoice-popup .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .swal2-popup.ruiyi-pdf-invoice-popup .col-span-2 {
    grid-column: auto !important;
  }
}

/* Final POS local-Tailwind guardrails: AA split modal and locked-item delete state. */
html body #split-billing-modal .split-order-item h4,
html body #split-billing-modal .split-order-item h4.font-semibold,
html body #split-billing-modal .split-order-item h4[class*="font-semibold"],
html body #split-billing-modal .split-order-item .font-semibold.text-orange-800,
html body #split-billing-modal .split-order-item .font-semibold.text-green-800 {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}

html body #split-billing-modal .split-order-item h4 *,
html body #split-billing-modal .split-order-item h4.font-semibold * {
  font-size: 13px !important;
  line-height: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body #split-billing-modal .split-order-item > div:first-child {
  align-items: center !important;
  gap: 0.35rem !important;
  margin-bottom: 0.35rem !important;
}

html body #split-billing-modal .split-order-item span.text-lg,
html body #split-billing-modal .split-order-item .text-lg.font-bold,
html body #split-billing-modal .split-order-item span[class*="text-lg"] {
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

html body #split-billing-modal .aa-product-group h4,
html body #split-billing-modal #available-products-list h4 {
  font-size: 15px !important;
  line-height: 19px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body #split-billing-modal .aa-product-group p,
html body #split-billing-modal #available-products-list p {
  font-size: 12px !important;
  line-height: 16px !important;
  margin: 3px 0 0 !important;
  font-weight: 600 !important;
}

html body #split-billing-modal .split-products > div {
  min-height: 30px !important;
  padding: 5px 8px !important;
  gap: 0.35rem !important;
  align-items: center !important;
}

html body #split-billing-modal .split-products .font-medium,
html body #split-billing-modal .split-products [class*="font-medium"] {
  display: inline-block !important;
  max-width: 56% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

html body #split-billing-modal .split-products .text-xs {
  font-size: 11px !important;
  line-height: 14px !important;
  margin-left: 0.25rem !important;
  white-space: nowrap !important;
}

html body #split-billing-modal .aa-product-qty-btn,
html body #split-billing-modal .split-order-item button[data-group-key] {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

html body #split-billing-modal .aa-product-qty-btn i,
html body #split-billing-modal .split-order-item button[data-group-key] i {
  font-size: 10px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

html body #split-billing-modal .aa-product-qty-btn + span,
html body #split-billing-modal .split-order-item button[data-group-key] + span {
  min-width: 16px !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

html body #cart-items .cart-item-row:has(.cart-delete-btn:disabled),
html body #cart-items > div.flex.items-center.justify-between:has(.cart-delete-btn:disabled) {
  grid-template-columns: minmax(0, 1.65fr) 58px 78px 64px 68px !important;
}

html body #cart-items .cart-delete-btn[disabled],
html body #cart-items .cart-delete-btn:disabled,
html body #cart-items button.cart-delete-btn[disabled],
html body #cart-items button.cart-delete-btn:disabled {
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 0.4rem !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  overflow: hidden !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

html body #cart-items .cart-delete-btn[disabled] *,
html body #cart-items .cart-delete-btn:disabled * {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  line-height: 1 !important;
}

html body #cart-items .cart-delete-btn .ruiyi-delete-loading-text {
  margin-left: 4px !important;
}

/* Highest priority AA split billing compaction after moving Tailwind local. */
html body .swal2-popup-aa-selector #split-billing-modal h3 {
  font-size: 15px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #available-products-list .aa-product-group {
  min-height: 64px !important;
  padding: 10px 12px !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #available-products-list .aa-product-group h4,
html body .swal2-popup-aa-selector #split-billing-modal #available-products-list .aa-product-group h4[class] {
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  max-width: calc(100% - 96px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #available-products-list .aa-product-group p,
html body .swal2-popup-aa-selector #split-billing-modal #available-products-list .aa-product-group p[class] {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
  margin: 3px 0 0 !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item {
  padding: 10px 12px !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item > div:first-child {
  min-height: 28px !important;
  align-items: center !important;
  gap: 0.4rem !important;
  margin-bottom: 0.35rem !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item h4,
html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item h4[class] {
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item h4 *,
html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item h4 i {
  font-size: 14px !important;
  line-height: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item span.text-lg,
html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item span[class*="text-lg"] {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-products > div {
  min-height: 30px !important;
  padding: 5px 8px !important;
  align-items: center !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-products .font-medium,
html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-products [class*="font-medium"] {
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  max-width: 54% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-products .text-xs {
  font-size: 11px !important;
  line-height: 14px !important;
  white-space: nowrap !important;
}

html body .swal2-popup-aa-selector #split-billing-modal .aa-product-qty-btn,
html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item button[data-group-key] {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

html body .swal2-popup-aa-selector #split-billing-modal .aa-product-qty-btn i,
html body .swal2-popup-aa-selector #split-billing-modal #split-orders-container .split-order-item button[data-group-key] i {
  font-size: 10px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

html body .remove-locked-item[disabled],
html body .remove-locked-item:disabled,
html body .delete-locked-item-btn[disabled],
html body .delete-locked-item-btn:disabled,
html body #cart-items .remove-locked-item[disabled],
html body #cart-items .remove-locked-item:disabled,
html body #cart-items .delete-locked-item-btn[disabled],
html body #cart-items .delete-locked-item-btn:disabled {
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 0.4rem !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  overflow: hidden !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

html body .remove-locked-item[disabled] *,
html body .remove-locked-item:disabled *,
html body .delete-locked-item-btn[disabled] *,
html body .delete-locked-item-btn:disabled * {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  line-height: 1 !important;
}

html body .remove-locked-item .ruiyi-delete-loading-text,
html body .delete-locked-item-btn .ruiyi-delete-loading-text {
  margin-left: 4px !important;
}
