/* Kasir Mami - Custom Design System & Utilities */

/* Google Material Symbols Rounded - Local Core Font with CDN Fallback */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/material-symbols-rounded-core.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/materialsymbolsrounded/v369/sykg-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190FjzaqkNCeE.woff2') format('woff2');
}

@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('../fonts/material-symbols-rounded-core.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/materialsymbolsrounded/v369/sykg-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190FjzaqkNCeE.woff2') format('woff2');
}

/* ==================== GOOGLE MATERIAL DESIGN 3 MOTION TOKENS ==================== */
:root {
  /* M3 Easing Curves (Official Google Motion Specification) */
  --md-sys-motion-easing-linear: cubic-bezier(0, 0, 1, 1);
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-easing-standard-accelerate: cubic-bezier(0.3, 0, 1, 1);
  --md-sys-motion-easing-standard-decelerate: cubic-bezier(0, 0, 0, 1);
  --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1.0);
  --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);

  /* M3 Duration Tokens */
  --md-sys-motion-duration-short1: 50ms;
  --md-sys-motion-duration-short2: 100ms;
  --md-sys-motion-duration-short3: 150ms;
  --md-sys-motion-duration-short4: 200ms;
  --md-sys-motion-duration-medium1: 250ms;
  --md-sys-motion-duration-medium2: 300ms;
  --md-sys-motion-duration-medium3: 350ms;
  --md-sys-motion-duration-medium4: 400ms;
  --md-sys-motion-duration-long1: 450ms;
  --md-sys-motion-duration-long2: 500ms;
}

html, body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Kunci gutter scrollbar: daftar menu yang memendek/memajang saat filter
   tidak boleh menggeser seluruh halaman secara horizontal */
html {
  scrollbar-gutter: stable;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  padding-bottom: env(safe-area-inset-bottom);
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga' 1;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 48;
  vertical-align: middle;

  /* Anti-FOUT: Batasi dimensi ketat agar teks mentah ligature TIDAK PERNAH tumpah / melebar */
  width: 1em;
  height: 1em;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: content-box;
}

/* Anti-FOUT: Saat fase pemuatan awal, sembunyikan teks ligature mentah sampai font aktif */
html.fonts-loading .material-symbols-rounded {
  opacity: 0 !important;
  visibility: hidden !important;
}

.touch-target-large {
  min-height: 44px;
}

/* ==================== MODERN CUSTOM SCROLLBAR SYSTEM ==================== */
/* Global default for all scrollable elements & document */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 162, 158, 0.45) transparent;
}

/* WebKit & Blink custom scrollbar (Chrome, Edge, Safari, Opera, Android WebView) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(168, 162, 158, 0.4);
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 113, 108, 0.7);
}

::-webkit-scrollbar-thumb:active {
  background-color: rgba(87, 83, 78, 0.9);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Specific Custom Scroll & Custom Scrollbar utility classes */
.custom-scroll,
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 162, 158, 0.45) transparent;
  -webkit-overflow-scrolling: touch;
}

.custom-scroll::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  display: block;
}

.custom-scroll::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(168, 162, 158, 0.45);
  border-radius: 9999px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 113, 108, 0.75);
}

/* Dedicated utility when hiding scrollbars is strictly intended (e.g., touch chip swipers) */
.no-scrollbar,
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Queue Tab Styles */
.active-queue-tab-wrapper {
  scroll-margin-left: 10px;
  scroll-margin-right: 10px;
}

#orderQueueTabs {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}

/* ==================== 58MM THERMAL RECEIPT PRINT STYLES (VSC TM-58V) ==================== */
@page {
  size: 58mm auto;
  margin: 0mm !important;
}

@media print {
  html, body {
    width: 58mm !important;
    max-width: 58mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body * {
    visibility: hidden !important;
  }

  #receiptModal, #receiptModal * {
    visibility: hidden !important;
  }

  #printArea, #printArea *,
  #shiftZReportPrintArea, #shiftZReportPrintArea * {
    visibility: visible !important;
  }

  body.printing-shift-z #printArea {
    display: none !important;
    visibility: hidden !important;
  }

  #shiftZReportPrintArea:not(.hidden) {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 58mm !important;
    max-width: 58mm !important;
    height: auto !important;
    margin: 0 !important;
    padding: 2mm !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 999999 !important;
    display: block !important;
  }

  #printArea .flex {
    display: flex !important;
  }

  #printArea .hidden {
    display: none !important;
  }

  #printArea {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 58mm !important;
    max-width: 58mm !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 1.5mm 2.5mm 1mm 2.5mm !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 999999 !important;
    display: block !important;
  }

  #receiptQueueBottomBox {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  #printArea h4 {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 2px !important;
    color: #000000 !important;
  }

  #printArea p, #printArea span, #printArea div {
    color: #000000 !important;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  }

  #receiptQueueBottomText {
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
  }

  /* Kitchen Ticket Print Rules */
  body.printing-kitchen #printArea, body.printing-kitchen #printArea * {
    visibility: hidden !important;
    display: none !important;
  }

  body.printing-kitchen #kitchenPrintArea, body.printing-kitchen #kitchenPrintArea * {
    visibility: visible !important;
  }

  body.printing-kitchen #kitchenPrintArea {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 58mm !important;
    max-width: 58mm !important;
    margin: 0 !important;
    padding: 2mm 3mm !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Segoe UI', Roboto, sans-serif !important;
    border: none !important;
    z-index: 999999 !important;
    display: block !important;
  }
}

/* Toast Notification Styles (Material 3 Floating Snackbar) */
#toastContainer {
  position: fixed;
  bottom: 5.5rem; /* Mobile: Melayang aman di atas bottom bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

/* Tablet & Desktop: Pindah ke Pojok Bawah-Kiri (Bottom-Left) agar tidak menghalangi kasir */
@media (min-width: 768px) {
  #toastContainer {
    bottom: 1.5rem;
    left: 1.5rem;
    transform: none;
    align-items: flex-start;
    width: auto;
    max-width: 380px;
  }
}

.toast-item {
  pointer-events: auto;
  animation: toastSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s ease;
}

.toast-item.toast-out {
  animation: toastSlideDown 0.18s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* ==================== SKELETON SHIMMER ANIMATION ==================== */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f5f5f4 0%, #e7e5e4 50%, #f5f5f4 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}

/* ==================== PWA SPLASH SCREEN ==================== */
#appSplashScreen {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

#appSplashScreen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes splashPulseRing {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.splash-logo-ring {
  animation: splashPulseRing 2s infinite ease-in-out;
}

/* ==================== SPOTLIGHT TOUR GUIDE STYLES ==================== */
@keyframes tourPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 0 0 4px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2), 0 0 0 16px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 0 0 4px rgba(16, 185, 129, 0.3);
  }
}

@keyframes tourBouncePointer {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.08);
  }
}

.tour-pulse-glow {
  animation: tourPulseGlow 2s infinite ease-in-out;
}

.tour-bounce-pointer {
  animation: tourBouncePointer 1.4s infinite ease-in-out;
}

/* ==================== MODAL BACKDROP INTERACTIVITY & UX ==================== */
/* Menjadikan backdrop interaktif dengan cursor pointer saat di-hover di luar kotak dialog */
div[id$="Modal"]:not(.hidden),
#mobileCartDrawer:not(.hidden) {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Pastikan kartu dialog dan konten di dalam modal tetap menggunakan kursor normal (default) */
div[id$="Modal"]:not(.hidden) > div,
#mobileCartDrawer:not(.hidden) > div {
  cursor: default;
}

/* ==================== EXECUTIVE POS DESIGN SYSTEM (v1.2.32) ==================== */

/* Category Thematic Visual Gradients for Menu Cards without Images */
.card-grad-makanan {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 60%, #fed7aa 100%);
  color: #9a3412;
}

.card-grad-minuman {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 60%, #99f6e4 100%);
  color: #115e59;
}

.card-grad-camilan {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 60%, #fecdd3 100%);
  color: #9f1239;
}

.card-grad-topping {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 60%, #e9d5ff 100%);
  color: #6b21a8;
}

.card-grad-default {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 60%, #e2e8f0 100%);
  color: #334155;
}

/* Modern POS Card Elevation & Tactile Touch */
.pos-product-card {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

.pos-product-card:active {
  transform: scale(0.975);
}

@media (hover: hover) {
  .pos-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08), 0 6px 8px -4px rgba(0, 0, 0, 0.04);
  }
}

/* POS Product Card: Modern iOS / Top-Tier App Smooth Micro-Interaction */
.pos-product-card {
  position: relative;
  overflow: visible !important;
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.15s ease, border-color 0.15s ease;
  will-change: transform;
}

.pos-product-card:active {
  transform: scale(0.988);
}

.m3-ripple-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.pos-product-card-active {
  border-color: #059669 !important;
  background-color: rgba(236, 253, 245, 0.5) !important;
  box-shadow: 0 0 0 1.5px rgba(5, 150, 105, 0.3), 0 4px 12px -2px rgba(5, 150, 105, 0.12) !important;
}

/* Floating Quick-Checkout Bar on Mobile */
#mobileFloatingCartBar {
  animation: floatBarSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatBarSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Active Nav Pill in Bottom Dock */
.bottom-nav-active-pill {
  background: #047857;
  color: #ffffff !important;
  box-shadow: 0 4px 12px -2px rgba(4, 120, 87, 0.35);
  transform: translateY(-1px);
}

/* ==================== ULTRA-RESPONSIVE TOUCH & TACTILE UX ==================== */

/* 1. Hilangkan 300ms Click Delay secara menyeluruh di semua tombol & elemen interaktif */
button,
[role="button"],
a,
input,
select,
textarea,
.cursor-pointer,
.pos-product-card,
.touch-target-large,
.active-queue-tab-wrapper,
div[onclick] {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
}

/* 2. Respons sentuhan taktil instan (Immediate Active Compression) 
   Memberikan feedback fisik seketika saat jari menyentuh tombol */
button:active:not(:disabled),
[role="button"]:active:not([aria-disabled="true"]),
.clickable:active {
  transform: scale(0.965);
  transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 3. Material Design 3 State Layer & Radial Ink Ripple */
.m3-ripple-surface {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix webkit overflow border-radius */
}

.m3-ripple-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.1) 60%, transparent 100%);
  animation: m3RippleSpread 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.m3-ripple-wave-dark {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 60%, transparent 100%);
}

@keyframes m3RippleSpread {
  0% {
    transform: scale(0);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* 3b. Pill filter kategori Menu adalah segmented control: pada perangkat
   mouse presisi, matikan efek tekan (press-scale) agar ganti kategori
   terasa stabil dan tidak bergetar. Umpan balik cukup dari perubahan
   warna status; layar sentuh tetap memakai tactile + ripple biasa. */
@media (hover: hover) and (pointer: fine) {
  .admin-cat-pill:active {
    transform: none !important;
  }
}

/* 4. Akselerasi perangkat keras GPU untuk Modal & Drawer agar bebas lag saat dibuka */
div[id$="Modal"] {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

div[id$="Modal"] > div {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* 5. Animasi entrance modal resmi M3 Emphasized Decelerate */
@keyframes m3DialogEnter {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-in {
  animation: m3DialogEnter var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-emphasized-decelerate) forwards !important;
}

/* 6. M3 Bottom Sheet Slide-Up */
@keyframes m3BottomSheetEnter {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-bottom-sheet {
  animation: m3BottomSheetEnter var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-emphasized-decelerate) forwards !important;
}

/* 7. Modern Fluid Badge Animations (Apple iOS / Top Apps Smooth Fluid Scale) */
@keyframes modernBadgeIn {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modernBadgePulse {
  0% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.modern-badge-in {
  animation: modernBadgeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.modern-badge-pulse {
  animation: modernBadgePulse 0.12s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  will-change: transform;
}

/* 8. Menu (Kelola Menu) Sticky Search & Filter Command Bar Polish */
#adminSearchFilterStickyBar {
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#adminSearchFilterStickyBar:focus-within {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 4px 20px -2px rgba(5, 150, 105, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

/* 9. Report View Slide Animation (Toggle Data vs Grafik Visual) */
@keyframes reportSlideInRight {
  from {
    opacity: 0;
    transform: translate3d(16px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reportSlideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-16px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.report-slide-right {
  animation: reportSlideInRight 0.2s cubic-bezier(0.05, 0.7, 0.1, 1.0) forwards;
}

.report-slide-left {
  animation: reportSlideInLeft 0.2s cubic-bezier(0.05, 0.7, 0.1, 1.0) forwards;
}

/* 10. Compact Switch (pengganti checkbox biru bawaan Android) */
.switch-input + .switch-track {
  background-color: #d6d3d1;
}
.switch-input:checked + .switch-track {
  background-color: #047857;
}
.switch-input:checked + .switch-track .switch-knob {
  margin-left: auto;
}
.switch-input:focus-visible + .switch-track {
  outline: 2px solid rgba(4, 120, 87, 0.4);
  outline-offset: 2px;
}
#btnTogglePinSetting .switch-knob {
  transition: margin 0.18s ease;
}

/* 11. Page & View Transitions (M3 Hardware-Accelerated Smooth Motion) */
@keyframes viewPageEnter {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.view-page-enter {
  animation: viewPageEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  will-change: transform, opacity;
}

/* 12b. Interaktif kasir: DnD susun antrian, usap-hapus baris, stepper.
   Semua umpan balik visual; gestur ketuk biasa tidak berubah. */
#orderQueueTabs {
  -webkit-touch-callout: none;
}
#orderQueueTabs.reordering,
#orderQueueTabs.reordering * {
  cursor: grabbing !important;
}
#orderQueueTabs.reordering .active-queue-tab-wrapper {
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}

/* Floating Layer Android Launcher Style (terlepas dari container ke body) */
.queue-tab-floating-layer {
  position: fixed !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  user-select: none !important;
  will-change: transform, scale, rotate;
  border-radius: 14px !important;
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.35), 0 10px 20px -4px rgba(4, 120, 87, 0.4) !important;
  outline: 2px solid rgba(16, 185, 129, 0.9) !important;
  outline-offset: 2px !important;
  transform-origin: center center;
}

.queue-tab-placeholder {
  border: 2px dashed rgba(4, 120, 87, 0.55) !important;
  background: rgba(236, 253, 245, 0.85) !important;
  border-radius: 14px !important;
  min-width: 80px;
  position: relative;
  transition: width 0.22s cubic-bezier(0.2, 0, 0, 1), transform 0.22s cubic-bezier(0.2, 0, 0, 1) !important;
}
.queue-tab-placeholder::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 10px;
  background: rgba(4, 120, 87, 0.08);
  animation: pulseQueuePlaceholder 1.6s infinite ease-in-out;
}
@keyframes pulseQueuePlaceholder {
  0%, 100% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 0.85; transform: scale(1); }
}
.cart-line-swipe {
  touch-action: pan-y;
  -webkit-touch-callout: none;
}
.cart-line-swipe .cart-swipe-fg {
  transition: transform 0.18s ease;
}
.cart-line-swipe .cart-swipe-fg.swiping {
  transition: none;
}

/* 12a. Stepper +/- & kartu katalog: kunci gestur browser selama tahan agar
   repeat tidak ter-batal oleh scroll (pointercancel) di HP. */
[data-repeat-target] {
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Umpan balik visual saat badan kartu ditahan (hold-to-add aktif) */
.pos-product-card.card-press-hold {
  border-color: #059669 !important;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.45), 0 10px 24px -6px rgba(5, 150, 105, 0.35) !important;
  transform: scale(0.985);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* 12b. Transisi lembut kartu katalog saat qty 0 <-> >0 (border & shadow
   beranimasi, tidak patah). */
.pos-product-card {
  transition: padding 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* 12. Native View Transitions API Integration (Shared-Axis Cross-Dissolve) */
#mainAppHeader {
  view-transition-name: main-app-header;
}
#mobileBottomNav {
  view-transition-name: mobile-bottom-nav;
}
#m3NavRail {
  view-transition-name: m3-nav-rail;
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  height: 100%;
}

::view-transition-old(root) {
  animation: viewTransitionOut 0.2s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: viewTransitionIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes viewTransitionOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale(0.99);
  }
}

@keyframes viewTransitionIn {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-page-enter,
  .report-slide-right,
  .report-slide-left,
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}



