﻿/* ============================================================
   MasFlow — admin/layout.css
   ============================================================ */

:root {
    --r: 10px;
    --available: #3fb950;
    --new-order: #d29922;
    --ready: #f85149;
    --reserved: #bc8cff;
    --paid: #58a6ff;
    --waiter: #3b82f6;
    --cleanup: #d29922;
    --mod-add: #3fb950;
    --mod-remove: #f85149;
}

body {
    margin: 0;
    background: var(--a-bg);
    color: var(--a-text);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   ⭐ ZONE BAR (Yerleşim Alanı Geçişi - Garson)
   ============================================================ */
.zone-bar-mobile {
    position: sticky;
    top: 39px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(180deg, rgba(232, 168, 56, .1), rgba(232, 168, 56, .03));
    border-bottom: 1px solid rgba(232, 168, 56, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-wrap: nowrap;
    min-height: 36px;
}

    /* Tek zone → kompakt (sol-üst köşede küçük) */
    .zone-bar-mobile.zb-single {
        justify-content: flex-start;
        padding: 4px 10px;
        min-height: 28px;
    }

        .zone-bar-mobile.zb-single .zb-icon {
            font-size: 11px;
        }

        .zone-bar-mobile.zb-single .zb-name {
            font-size: 12px;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 600;
            color: var(--a-muted);
            letter-spacing: 0.2px;
        }

.zb-nav-btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid rgba(232, 168, 56, .3);
    background: rgba(232, 168, 56, .08);
    color: var(--a-gold);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
    padding: 0;
}

    .zb-nav-btn:hover:not(:disabled) {
        background: rgba(232, 168, 56, .18);
        border-color: var(--a-gold);
    }

    .zb-nav-btn:active:not(:disabled) {
        transform: scale(0.92);
    }

    .zb-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.zb-current {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(232, 168, 56, .3);
    border-radius: 8px;
    background: rgba(232, 168, 56, .06);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    min-width: 0;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
    color: var(--a-gold);
}

    .zb-current.zb-clickable {
        cursor: pointer;
    }

        .zb-current.zb-clickable:hover {
            background: rgba(232, 168, 56, .12);
        }

.zb-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.zb-name {
    flex: 1;
    text-align: center;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.4px;
    font-size: 14px;
    color: var(--a-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.zb-counter {
    font-size: 10px;
    font-weight: 600;
    color: var(--a-muted);
    background: rgba(255, 255, 255, .04);
    padding: 2px 7px;
    border-radius: 8px;
    flex-shrink: 0;
}

.zb-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
    padding: 0 4px;
}

.zb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(232, 168, 56, .25);
    cursor: pointer;
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
    border: none;
    padding: 0;
}

    .zb-dot:hover {
        background: rgba(232, 168, 56, .5);
    }

    .zb-dot.active {
        background: var(--a-gold);
        width: 18px;
        border-radius: 4px;
        box-shadow: 0 0 6px rgba(232, 168, 56, .6);
    }

.zb-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 200px;
    max-width: 90vw;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    padding: 4px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
}

    .zb-menu.open {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) translateY(0);
    }

.zb-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--a-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
    transition: background .12s;
    -webkit-tap-highlight-color: transparent;
}

    .zb-opt:hover {
        background: rgba(232, 168, 56, .1);
    }

    .zb-opt.active {
        background: rgba(232, 168, 56, .15);
        color: var(--a-gold);
        font-weight: 700;
    }

.zone-transition-out {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity .2s, transform .2s;
}

@media (max-width: 480px) {
    .zb-dots {
        display: none;
    }

    .zb-counter {
        font-size: 9px;
        padding: 2px 5px;
    }

    .zb-name {
        font-size: 13px;
    }
}

/* ============================================================
   FİLTRE BARI — KOMPAKT, GENİŞ
   ============================================================ */
/* ============================================================
   FİLTRE BARI — KOMPAKT, ESNEK (FIX)
   ============================================================ */
.summary-bar {
    position: sticky;
    top: 39px;
    z-index: 50;
    background: var(--a-surface);
    border-bottom: 1px solid var(--a-border);
    padding: 6px 8px;
    display: flex;
    align-items: stretch;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    /* overflow hidden YOK - chip'ler sığması için flex küçülecek */
}

/* Zone bar varsa — summary-bar onun altına */
.zone-bar-mobile + .summary-bar {
    top: 75px;
}

.zone-bar-mobile.zb-single + .summary-bar {
    top: 67px;
}

.lay-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--a-border);
    color: var(--a-muted);
    text-decoration: none;
    font-size: 16px;
    margin-left: auto;
    background: var(--a-bg);
}

    .lay-back-btn:active {
        transform: scale(0.95);
    }

/* ── CHIP — ESİT DAĞILAN, KÜÇÜLEBİLEN ─────────────────────── */
.ss-chip {
    flex: 1 1 0; /* ⭐ Eşit dağıl, sığmazsa eşit küçül */
    min-width: 0; /* ⭐ İçerik dolarsa küçülsün */
    display: flex;
    align-items: center;
    justify-content: center; /* ⭐ İçerik ortalı */
    gap: 5px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid;
    background: var(--a-bg);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    overflow: hidden; /* chip içi taşma kontrol */
}

    .ss-chip:active {
        transform: scale(0.97);
    }

    .ss-chip:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    }

    .ss-chip.is-active-flash {
        animation: chip-flash 0.4s ease-out;
    }

@keyframes chip-flash {
    0% {
        box-shadow: 0 0 0 0 var(--ss-color, var(--a-gold));
    }

    100% {
        box-shadow: 0 0 0 8px transparent;
    }
}

.ss-chip-master {
    --ss-color: var(--a-gold);
    border-color: rgba(232, 168, 56, .45);
    background: rgba(232, 168, 56, .12);
}

    .ss-chip-master:active {
        animation: master-pulse 0.5s ease-out;
    }

@keyframes master-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 168, 56, .8);
    }

    100% {
        box-shadow: 0 0 0 16px transparent;
    }
}

.ss-chip-available {
    --ss-color: var(--available);
    background: rgba(63, 185, 80, .07);
    border-color: rgba(63, 185, 80, .3);
}

.ss-chip-new {
    --ss-color: var(--new-order);
    background: rgba(210, 153, 34, .08);
    border-color: rgba(210, 153, 34, .3);
}

.ss-chip-ready {
    --ss-color: var(--ready);
    background: rgba(248, 81, 73, .08);
    border-color: rgba(248, 81, 73, .3);
}

.ss-chip-paid {
    --ss-color: var(--paid);
    background: rgba(88, 166, 255, .08);
    border-color: rgba(88, 166, 255, .3);
}

.ss-chip-req {
    --ss-color: var(--waiter);
    background: rgba(59, 130, 246, .08);
    border-color: rgba(59, 130, 246, .3);
}

.ss-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--ss-color, var(--a-muted));
    border-radius: 4px;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
    background: transparent;
    position: relative;
}

.ss-chip.is-checked .ss-checkbox {
    background: var(--ss-color, var(--a-gold));
    border-color: var(--ss-color, var(--a-gold));
}

    .ss-chip.is-checked .ss-checkbox::after {
        content: "";
        position: absolute;
        top: 0px;
        left: 3px;
        width: 4px;
        height: 7px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.ss-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.ss-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    min-width: 0;
    overflow: hidden;
}

.ss-chip strong {
    color: var(--ss-color);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.ss-label {
    font-size: 8px;
    color: var(--a-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    margin-top: 1px;
    max-width: 100%;
}

.ss-chip.has-alert strong {
    animation: alert-blink 1.2s ease-in-out infinite;
}

@keyframes alert-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ── TABLET (≥768px): Daha geniş chip ─────────────────────── */
@media (min-width: 768px) {
    .ss-chip {
        padding: 6px 11px;
        gap: 7px;
    }

    .ss-icon {
        font-size: 16px;
    }

    .ss-chip strong {
        font-size: 14px;
    }

    .ss-label {
        font-size: 9px;
    }
}

/* ── MOBİL (≤600px): Checkbox gizle, kompakt ─────────────── */
@media (max-width: 600px) {
    .summary-bar {
        padding: 5px 4px;
        gap: 3px;
    }

    .ss-chip {
        padding: 4px 4px !important;
        gap: 3px !important;
        min-height: 34px;
    }

        /* Mobilde checkbox gizle - chip rengi zaten state'i gösterir */
        .ss-chip .ss-checkbox {
            display: none !important;
        }

        .ss-chip .ss-icon {
            font-size: 13px !important;
        }

        .ss-chip .ss-meta {
            align-items: center;
            text-align: center;
        }

            .ss-chip .ss-meta strong {
                font-size: 12px !important;
                line-height: 1;
            }

        .ss-chip .ss-label {
            font-size: 8px !important;
            line-height: 1;
            margin-top: 1px;
        }
}

/* ── KÜÇÜK MOBİL (≤480px): Yatay meta ────────────────────── */
@media (max-width: 480px) {
    .ss-chip {
        padding: 4px 3px !important;
        gap: 2px !important;
    }

        .ss-chip .ss-meta {
            flex-direction: row;
            gap: 3px;
            align-items: baseline;
        }

            .ss-chip .ss-meta strong {
                font-size: 11px !important;
            }

        .ss-chip .ss-label {
            font-size: 8px !important;
            margin-top: 0;
        }
}

/* ── MİNİ MOBİL (≤380px): Label gizli ────────────────────── */
@media (max-width: 380px) {
    .summary-bar {
        padding: 4px 3px;
        gap: 2px;
    }

    .ss-chip {
        padding: 4px 2px !important;
    }

        .ss-chip .ss-label {
            display: none !important;
        }

        .ss-chip .ss-icon {
            font-size: 12px !important;
        }

        .ss-chip .ss-meta strong {
            font-size: 12px !important;
        }
}
/* Çok dar telefonlarda master'da bile sadece sayı */
@media (max-width: 380px) {
    .summary-bar {
        padding: 5px 6px;
        gap: 4px;
    }

    .ss-chip {
        padding: 3px 6px !important;
        gap: 3px !important;
    }

        /* Çok küçük ekranda label'i gizle, sadece sayı kalsın */
        .ss-chip .ss-label {
            display: none;
        }

        .ss-chip .ss-icon {
            font-size: 13px !important;
        }
}
/* ── KROKİ ALANI ─────────────────────────────────────────── */
.layout-area {
    position: relative;
    background: var(--a-bg);
    padding: 16px 12px;
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    touch-action: none;
    transition: opacity .2s;
}

.krokis-canvas {
    position: relative;
    background: linear-gradient(135deg, #1a2332, #0f1620);
    border-radius: var(--r);
    box-shadow: 0 0 0 1px var(--a-border), 0 8px 32px rgba(0, 0, 0, .4);
    transform-origin: 0 0;
    touch-action: none;
    will-change: transform;
}

.krokis-obj {
    position: absolute;
    --obj-fill: #6b4f33;
    --obj-stroke: #2a1d10;
    --obj-chair: #7a5a3a;
    --obj-accent: #8a6845;
    transition: filter .2s, opacity .35s ease;
}

    .krokis-obj.is-clickable {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

        .krokis-obj.is-clickable:active {
            filter: brightness(1.1);
        }

    .krokis-obj svg {
        width: 100%;
        height: 100%;
        overflow: visible;
    }

.lo-obj-label {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    transition: opacity .25s;
}

    .lo-obj-label.lbl-available {
        border-color: rgba(63, 185, 80, .55);
        color: rgba(220, 255, 220, .95);
        box-shadow: 0 0 6px rgba(63, 185, 80, .25);
    }

    .lo-obj-label.lbl-new-order {
        border-color: rgba(210, 153, 34, .65);
        color: rgba(255, 240, 200, 1);
        box-shadow: 0 0 8px rgba(210, 153, 34, .35);
        background: rgba(60, 40, 0, .55);
    }

    .lo-obj-label.lbl-ready {
        border-color: rgba(248, 81, 73, .7);
        color: rgba(255, 220, 220, 1);
        box-shadow: 0 0 8px rgba(248, 81, 73, .4);
        background: rgba(60, 0, 0, .55);
    }

    .lo-obj-label.lbl-paid-ready {
        border-color: rgba(88, 166, 255, .65);
        color: rgba(220, 240, 255, 1);
        box-shadow: 0 0 7px rgba(88, 166, 255, .35);
        background: rgba(0, 30, 60, .55);
    }

    .lo-obj-label.lbl-reserved {
        border-color: rgba(188, 140, 255, .65);
        color: rgba(240, 230, 255, 1);
        box-shadow: 0 0 7px rgba(188, 140, 255, .35);
        background: rgba(40, 20, 60, .55);
    }

    .lo-obj-label.lbl-mixed {
        /* SOL → kırmızı (hazır), SAĞ → sarı (yeni). Yumuşak gradient geçiş. */
        border-color: rgba(248, 81, 73, .7);
        color: rgba(255, 240, 220, 1);
        background: linear-gradient(90deg,
            rgba(60, 0, 0, .85) 0%,
            rgba(60, 0, 0, .85) 35%,
            rgba(60, 40, 0, .85) 65%,
            rgba(60, 40, 0, .85) 100%);
        box-shadow:
            inset 2px 0 6px rgba(248, 81, 73, .35),
            inset -2px 0 6px rgba(210, 153, 34, .35),
            0 0 8px rgba(248, 81, 73, .3),
            0 0 8px rgba(210, 153, 34, .3);
        border-image: linear-gradient(90deg,
            rgba(248, 81, 73, .85) 0%,
            rgba(248, 81, 73, .85) 35%,
            rgba(210, 153, 34, .85) 65%,
            rgba(210, 153, 34, .85) 100%) 1;
    }

    .lo-obj-label.is-hidden {
        opacity: 0 !important;
        pointer-events: none;
        transform: translateX(-50%) scale(0.8) !important;
    }

.table-amount {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
}

/*.krokis-obj.state-available {
}*/

/* Yumuşak, eş tempolu glow — göz yorulmasın */
/* NOT: animasyonlar global timeline'a sabitlenir (negative animation-delay JS'te) */
.krokis-obj.state-new-order svg {
    animation: krokis-pulse-yellow 2.4s ease-in-out infinite;
    will-change: filter;
}

.krokis-obj.state-ready svg {
    animation: krokis-pulse-red 2.4s ease-in-out infinite;
    will-change: filter;
}

.krokis-obj.state-mixed svg {
    /* İki renkli durum: animasyon YOK — sabit, dengeli sol kırmızı / sağ sarı glow.
       Pulse yapılırsa zincirleme drop-shadow + senkronsuz başlangıçlar dengesiz görünüyor. */
    filter:
        drop-shadow(-6px 0 9px rgba(248, 81, 73, .85))
        drop-shadow(6px 0 9px rgba(210, 153, 34, .75));
}

.krokis-obj.state-reserved svg {
    filter: drop-shadow(0 0 4px rgba(188, 140, 255, .7)) drop-shadow(0 0 8px rgba(188, 140, 255, .4));
}

.krokis-obj.state-paid-ready svg {
    animation: krokis-pulse-blue 2.4s ease-in-out infinite;
    will-change: filter;
}

/* Tek renkli pulse'lar: 0%↔50% kontrastı yumuşatıldı (göz daha az yoruluyor) */
@keyframes krokis-pulse-yellow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(210, 153, 34, .55)) drop-shadow(0 0 10px rgba(210, 153, 34, .3));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(210, 153, 34, .75)) drop-shadow(0 0 12px rgba(210, 153, 34, .45));
    }
}

@keyframes krokis-pulse-red {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(248, 81, 73, .6)) drop-shadow(0 0 10px rgba(248, 81, 73, .3));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(248, 81, 73, .8)) drop-shadow(0 0 12px rgba(248, 81, 73, .45));
    }
}

@keyframes krokis-pulse-blue {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(88, 166, 255, .55)) drop-shadow(0 0 10px rgba(88, 166, 255, .3));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(88, 166, 255, .8)) drop-shadow(0 0 12px rgba(88, 166, 255, .45));
    }
}

.layout-area.is-highlighting .krokis-obj:not(.is-highlighted) {
    opacity: 0.25;
    filter: grayscale(0.5);
}

    .layout-area.is-highlighting .krokis-obj:not(.is-highlighted) .lo-obj-label,
    .layout-area.is-highlighting .krokis-obj:not(.is-highlighted) .table-amount {
        opacity: 0.4;
    }

.krokis-obj.is-highlighted {
    z-index: 10;
    animation: highlight-flash 2s ease-out forwards !important;
}

    .krokis-obj.is-highlighted.state-new-order svg {
        animation: highlight-glow-yellow 0.4s ease-out 5 forwards !important;
    }

    .krokis-obj.is-highlighted.state-ready svg {
        animation: highlight-glow-red 0.4s ease-out 5 forwards !important;
    }

    .krokis-obj.is-highlighted.state-mixed svg {
        animation: highlight-glow-yellow 0.4s ease-out 5 forwards !important;
    }

    .krokis-obj.is-highlighted.state-paid-ready svg {
        animation: highlight-glow-blue 0.4s ease-out 5 forwards !important;
    }

    .krokis-obj.is-highlighted.state-reserved svg {
        animation: highlight-glow-purple 0.4s ease-out 5 forwards !important;
    }

    .krokis-obj.is-highlighted.state-available svg {
        animation: highlight-glow-green 0.4s ease-out 5 forwards !important;
    }

@keyframes highlight-flash {
    0%, 100% {
        transform: scale(1) rotate(var(--rot, 0deg));
    }

    8% {
        transform: scale(1.18) rotate(var(--rot, 0deg));
    }

    16% {
        transform: scale(1) rotate(var(--rot, 0deg));
    }
}

@keyframes highlight-glow-yellow {
    0% {
        filter: drop-shadow(0 0 14px rgba(210, 153, 34, 1)) drop-shadow(0 0 28px rgba(210, 153, 34, .9)) drop-shadow(0 0 42px rgba(210, 153, 34, .6));
    }

    100% {
        filter: drop-shadow(0 0 4px rgba(210, 153, 34, .5)) drop-shadow(0 0 8px rgba(210, 153, 34, .3));
    }
}

@keyframes highlight-glow-red {
    0% {
        filter: drop-shadow(0 0 14px rgba(248, 81, 73, 1)) drop-shadow(0 0 28px rgba(248, 81, 73, .9)) drop-shadow(0 0 42px rgba(248, 81, 73, .6));
    }

    100% {
        filter: drop-shadow(0 0 4px rgba(248, 81, 73, .5)) drop-shadow(0 0 8px rgba(248, 81, 73, .3));
    }
}

@keyframes highlight-glow-blue {
    0% {
        filter: drop-shadow(0 0 14px rgba(88, 166, 255, 1)) drop-shadow(0 0 28px rgba(88, 166, 255, .9)) drop-shadow(0 0 42px rgba(88, 166, 255, .6));
    }

    100% {
        filter: drop-shadow(0 0 4px rgba(88, 166, 255, .5)) drop-shadow(0 0 8px rgba(88, 166, 255, .3));
    }
}

@keyframes highlight-glow-purple {
    0% {
        filter: drop-shadow(0 0 14px rgba(188, 140, 255, 1)) drop-shadow(0 0 28px rgba(188, 140, 255, .9)) drop-shadow(0 0 42px rgba(188, 140, 255, .6));
    }

    100% {
        filter: drop-shadow(0 0 4px rgba(188, 140, 255, .5)) drop-shadow(0 0 8px rgba(188, 140, 255, .3));
    }
}

@keyframes highlight-glow-green {
    0% {
        filter: drop-shadow(0 0 14px rgba(63, 185, 80, 1)) drop-shadow(0 0 28px rgba(63, 185, 80, .9)) drop-shadow(0 0 42px rgba(63, 185, 80, .6));
    }

    100% {
        filter: none;
    }
}

.table-badges {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    gap: 2px;
    z-index: 5;
}

.table-badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--a-bg);
    box-shadow: 0 0 4px rgba(0, 0, 0, .5);
    animation: badge-pulse 1.2s ease-in-out infinite;
}

    .table-badge.waiter {
        background: var(--waiter);
        box-shadow: 0 0 6px rgba(59, 130, 246, .8), 0 0 4px rgba(0, 0, 0, .5);
    }

    .table-badge.cleanup {
        background: var(--cleanup);
        box-shadow: 0 0 6px rgba(210, 153, 34, .8), 0 0 4px rgba(0, 0, 0, .5);
    }

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* ── BOTTOM SHEET ────────────────────────────────────────── */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    backdrop-filter: blur(3px);
}

    .sheet-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

.sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--a-surface);
    border-radius: 18px 18px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32, 1, .6, 1);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
}

    .sheet.open {
        transform: translateY(0);
    }

.sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--a-border);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.sheet-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--a-border);
}

.sheet-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--a-text);
}

.sheet-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.ss-available {
    background: rgba(63, 185, 80, .15);
    color: var(--available);
}

.ss-new {
    background: rgba(210, 153, 34, .15);
    color: var(--new-order);
}

.ss-ready {
    background: rgba(248, 81, 73, .15);
    color: var(--ready);
}

.ss-paid {
    background: rgba(88, 166, 255, .15);
    color: var(--paid);
}

.ss-reserved {
    background: rgba(188, 140, 255, .15);
    color: var(--reserved);
}

.ss-mixed {
    background: linear-gradient(90deg, rgba(210, 153, 34, .15) 50%, rgba(248, 81, 73, .15) 50%);
    color: var(--ready);
}

.sheet-close {
    background: none;
    border: none;
    color: var(--a-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.sheet-body {
    overflow-y: auto;
    flex: 1;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.sheet-section {
    margin-bottom: 14px;
}

.sheet-section-label {
    font-size: 10px;
    color: var(--a-muted);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.req-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    border: 1px solid;
}

    .req-card.waiter {
        background: rgba(59, 130, 246, .08);
        border-color: rgba(59, 130, 246, .35);
    }

    .req-card.cleanup {
        background: rgba(210, 153, 34, .08);
        border-color: rgba(210, 153, 34, .35);
    }

.req-icon {
    font-size: 22px;
}

.req-text {
    flex: 1;
    font-size: 13px;
    color: var(--a-text);
}

    .req-text small {
        display: block;
        color: var(--a-muted);
        font-size: 11px;
        margin-top: 2px;
    }

.req-btn {
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

    .req-btn.waiter {
        background: var(--waiter);
    }

    .req-btn.cleanup {
        background: var(--cleanup);
    }

    .req-btn:active {
        opacity: 0.8;
    }

.order-card {
    background: var(--a-bg);
    border: 1px solid var(--a-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

    .order-card.is-ready {
        border-color: var(--ready);
        background: rgba(248, 81, 73, .06);
    }

.order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-no {
    font-size: 12px;
    font-weight: 700;
    color: var(--a-gold);
    letter-spacing: 0.3px;
}

.order-status-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.osp-pending {
    background: rgba(210, 153, 34, .15);
    color: var(--new-order);
}

.osp-ready {
    background: rgba(248, 81, 73, .15);
    color: var(--ready);
}

.order-items {
    font-size: 13px;
    color: var(--a-text);
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    gap: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, .04);
}

    .order-item-row:last-child {
        border-bottom: none;
    }

    .order-item-row .item-main {
        flex: 1;
        min-width: 0;
    }

.item-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-qty {
    font-size: 11px;
    font-weight: 700;
    color: var(--a-gold);
    background: rgba(232, 168, 56, .12);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
}

.item-name {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}

.item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--a-text);
    white-space: nowrap;
}

.item-mods {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    margin-left: 30px;
}

.mod-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

    .mod-pill.add {
        background: rgba(63, 185, 80, .14);
        color: var(--mod-add);
        border: 1px solid rgba(63, 185, 80, .35);
    }

    .mod-pill.remove {
        background: rgba(248, 81, 73, .12);
        color: var(--mod-remove);
        border: 1px solid rgba(248, 81, 73, .35);
    }

    .mod-pill.note {
        background: rgba(210, 153, 34, .12);
        color: var(--new-order);
        border: 1px solid rgba(210, 153, 34, .35);
        font-style: italic;
    }

.order-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--a-text);
    background: rgba(232, 168, 56, .08);
    border-left: 3px solid var(--a-gold);
    padding: 8px 10px;
    margin-top: 10px;
    border-radius: 4px;
    line-height: 1.4;
}

.order-note-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.order-note-text {
    flex: 1;
}

.order-note-label {
    display: block;
    font-size: 10px;
    color: var(--a-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.order-total {
    font-size: 13px;
    font-weight: 700;
    color: var(--a-text);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--a-border);
    display: flex;
    justify-content: space-between;
}

.info-box {
    text-align: center;
    padding: 30px 20px 20px;
    color: var(--a-muted);
    font-size: 13px;
}

    .info-box .icon {
        font-size: 48px;
        opacity: 0.5;
        margin-bottom: 12px;
    }

    .info-box .info-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--a-text);
        margin-bottom: 4px;
    }

    .info-box .info-sub {
        font-size: 12px;
        color: var(--a-muted);
        line-height: 1.5;
    }

.sheet-actions {
    padding: 12px 16px 20px;
    border-top: 1px solid var(--a-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--a-surface);
    flex-shrink: 0;
}

.action-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s, transform .1s;
}

    .action-btn:active {
        opacity: 0.85;
        transform: scale(0.99);
    }

    .action-btn.primary-ready {
        background: var(--ready);
        color: white;
    }

    .action-btn.primary-paid {
        background: var(--paid);
        color: white;
    }

    .action-btn.primary-reserve {
        background: var(--reserved);
        color: white;
    }

    .action-btn.danger {
        background: rgba(248, 81, 73, .15);
        color: var(--ready);
        border: 1px solid rgba(248, 81, 73, .35);
    }

    .action-btn.secondary {
        background: var(--a-bg);
        color: var(--a-muted);
        border: 1px solid var(--a-border);
    }

.empty-msg {
    text-align: center;
    padding: 30px 20px;
    color: var(--a-muted);
    font-size: 13px;
}

    .empty-msg .icon {
        font-size: 36px;
        opacity: 0.3;
        margin-bottom: 10px;
    }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    color: var(--a-text);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 13px;
    z-index: 999;
    transition: transform .3s cubic-bezier(.32, 1.6, .6, 1);
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }

    .toast.success {
        border-color: var(--available);
        color: var(--available);
    }

    .toast.error {
        border-color: var(--ready);
        color: var(--ready);
    }

.spinner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--a-border);
    border-top-color: var(--a-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .layout-area {
        padding: 24px;
    }

    .item-name {
        font-size: 14px;
    }

    .item-price {
        font-size: 14px;
    }
}
/* ============================================================
   layout.css'e EKLE — Zone bar içinde outlet adı
   .zb-current kısmının ALTINA yapıştır
   ============================================================ */

/* Outlet adı — tek zone modunda */
.zb-outlet {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--a-gold);
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

/* Outlet adı — zb-current içinde (çoklu zone modu) */
.zb-outlet-inline {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(232, 168, 56, .9);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    flex-shrink: 1;
}

/* Ayraç (·) */
.zb-sep {
    color: rgba(232, 168, 56, .5);
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

/* Mobil ayarları */
@media (max-width: 480px) {
    .ss-chip {
        padding: 3px 5px !important;
        gap: 2px !important;
    }

        /* ss-meta dikey değil yatay olsun (yer kazandırır) */
        .ss-chip .ss-meta {
            display: flex;
            flex-direction: row;
            gap: 3px;
            align-items: center;
        }

        .ss-chip .ss-icon {
            font-size: 11px !important;
        }

        .ss-chip .ss-meta strong {
            font-size: 11px !important;
        }

        .ss-chip .ss-label {
            font-size: 8px !important;
            text-transform: uppercase;
        }
}

@media (max-width: 380px) {
    .summary-bar {
        padding: 4px 4px;
        gap: 2px;
    }

    .ss-chip {
        padding: 3px 4px !important;
    }

        /* Label gizli, sadece sayı + ikon */
        .ss-chip .ss-label {
            display: none !important;
        }

        .ss-chip .ss-icon {
            font-size: 11px !important;
        }

        .ss-chip .ss-meta strong {
            font-size: 11px !important;
        }
}
.action-btn.primary-add-order {
    background: linear-gradient(135deg, #3fb950, #2ea043);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(63, 185, 80, .35);
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.5px;
}

    .action-btn.primary-add-order:hover {
        background: linear-gradient(135deg, #4cc362, #3fb950);
        box-shadow: 0 6px 20px rgba(63, 185, 80, .5);
    }

    .action-btn.primary-add-order:active {
        transform: scale(0.98);
    }