/* ==========================================================================
   Ortak stiller (müşteri QR menüsü + işletme paneli)
   ========================================================================== */
/* "clip": yatay taşmayı keser ama "hidden"ın aksine kaydırma kabı oluşturmaz,
   böylece üst başlık ve kategori çubuğu (position: sticky) sayfaya sabit kalır */
html, body {
    overflow-x: clip;
    max-width: 100vw;
    -webkit-tap-highlight-color: transparent;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.soft-shadow { box-shadow: 0 4px 20px -2px rgba(44, 53, 49, 0.05); }

/* --------------------------------------------------------------------------
   Müşteri menüsü
   -------------------------------------------------------------------------- */
:root { --header-h: 64px; --menu-nav-h: 104px; }
#stickyMenuNavWrapper { top: var(--header-h); }
.category-anchor { scroll-margin-top: calc(var(--header-h) + var(--menu-nav-h) + 8px); }

/* --------------------------------------------------------------------------
   İşletme paneli
   -------------------------------------------------------------------------- */
.tables-auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 0.85rem;
}

/* Garson teslim edene veya çağrıyı susturana kadar kesintisiz kırmızı yanıp sönme */
@keyframes tableContinuousRedFlash {
    0%, 100% {
        background-color: rgba(220, 38, 38, 0.12);
        border-color: #ef4444;
        box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45);
    }
    50% {
        background-color: rgba(220, 38, 38, 0.34);
        border-color: #dc2626;
        box-shadow: 0 0 18px rgba(220, 38, 38, 0.65);
    }
}
.flash-alert-card {
    animation: tableContinuousRedFlash 0.9s ease-in-out infinite;
    overflow: hidden;
}

@keyframes batchContinuousRedPulse {
    0%, 100% {
        background-color: rgba(239, 68, 68, 0.10);
        border-color: #ef4444;
        box-shadow: 0 0 0 1.5px rgba(239, 68, 68, 0.45);
    }
    50% {
        background-color: rgba(220, 38, 38, 0.28);
        border-color: #b91c1c;
        box-shadow: 0 0 14px rgba(220, 38, 38, 0.55);
    }
}
.batch-undelivered-flash { animation: batchContinuousRedPulse 0.9s ease-in-out infinite; }

/* 80mm termal fiş */
#thermalReceiptPrintArea { display: none; }
@media print {
    body * { visibility: hidden !important; }
    #thermalReceiptPrintArea, #thermalReceiptPrintArea * { visibility: visible !important; }
    #thermalReceiptPrintArea {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 76mm !important;
        padding: 2mm !important;
        margin: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-family: monospace, sans-serif !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }
}
