* { font-family: 'Poppins', sans-serif !important; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  background-color: #D9D9D9; color: #111827; margin: 0; padding: 0;
  width: 100%; min-height: 100%; overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch; touch-action: pan-y; user-select: auto; -webkit-user-select: auto;
}
button, a, input, select { touch-action: manipulation; }

[class*="overflow-y-auto"], [class*="overflow-x-auto"], [class*="overflow-auto"] {
  -webkit-overflow-scrolling: touch; overscroll-behavior: auto;
}
[class*="overflow-y-auto"] { touch-action: pan-y; }
[class*="overflow-x-auto"] { touch-action: pan-x; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #E5E7EB; border-radius: 9999px; }
::-webkit-scrollbar-thumb { background: #6B7280; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #8E1826; }

@keyframes shutterFlash { from { opacity: .95; } to { opacity: 0; } }
.shutter-flash { animation: shutterFlash .35s ease-out forwards; }

html:fullscreen, body:fullscreen, html:-webkit-full-screen, body:-webkit-full-screen, body.simulated-fullscreen {
  width: 100dvw !important; min-height: 100dvh !important; background-color: #D9D9D9 !important;
  overflow: hidden auto !important;
}
body.simulated-fullscreen #app-root { min-height: 100dvh; }

@media print {
  @page { margin: 0; }
  html, body { background: #FFF !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: auto !important; }
  body * { visibility: hidden !important; }
  #thermal-print-wrapper {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #thermal-print-wrapper, #thermal-print-wrapper * { visibility: visible !important; }
  #thermal-print-area {
    position: static !important; left: 0 !important; top: 0 !important;
    width: 58mm !important; max-width: 58mm !important; padding: 2mm 3mm !important; margin: 0 !important;
    box-shadow: none !important; border: none !important; border-radius: 0 !important; background: #FFF !important; color: #000 !important;
  }
  #thermal-print-area.print-paper-80mm {
    width: 80mm !important; max-width: 80mm !important;
  }
  .no-print { display: none !important; }
}

#pos-menu-grid { -webkit-overflow-scrolling: touch; overscroll-behavior: auto; touch-action: pan-y; }
#pos-menu-grid > * { touch-action: pan-y; }
.menu-card-visual, .menu-card-visual * { pointer-events: none; }
.donut-ring { transition: stroke-dasharray .4s ease, stroke-dashoffset .4s ease; }
.receipt-bw-logo, #thermal-print-area img, #thermal-modal-preview-area img, #owner-inline-receipt-preview-area img {
  filter: grayscale(100%) contrast(180%) !important;
  -webkit-filter: grayscale(100%) contrast(180%) !important;
}
