/* Shahi Zaika theme: royal maroon for structure, Nizami gold for the one action that matters
   (send to kitchen) and highlights, warm ivory background. Table states stay unmistakable. */
:root {
    --royal: #6E1A2A;
    --royal-dark: #3E0D18;
    --royal-soft: #8A2A3B;
    --gold: #C9A24B;
    --gold-dark: #A07C2C;
    --gold-soft: #F3E6C4;

    --ink: #2A1D1A;          /* body text */
    --ink-soft: #4A3A35;
    --canvas: #F7F2E8;       /* ivory */
    --surface: #FFFDF8;
    --line: #E6DCC8;
    --muted: #7B6E62;
    --saffron: var(--gold);          /* kept so older rules still work */
    --saffron-dark: var(--gold-dark);
    --free: #2E7D4F;
    --busy: #B3261E;
    --reserved: #3A5F8F;
    --off: #8E8279;

    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --bs-body-font-family: "Rubik", "Segoe UI", system-ui, sans-serif;
    --bs-body-bg: var(--canvas);
    --bs-body-color: var(--ink);
    --bs-link-color: var(--royal);
    --bs-link-hover-color: var(--gold-dark);
    --bs-border-color: var(--line);
}

body { font-family: var(--bs-body-font-family); }

.btn-primary {
    --bs-btn-bg: var(--royal); --bs-btn-border-color: var(--royal);
    --bs-btn-hover-bg: var(--royal-soft); --bs-btn-hover-border-color: var(--royal-soft);
    --bs-btn-active-bg: var(--royal-dark); --bs-btn-active-border-color: var(--royal-dark);
    --bs-btn-disabled-bg: var(--royal); --bs-btn-disabled-border-color: var(--royal);
}
.btn-outline-dark {
    --bs-btn-color: var(--royal); --bs-btn-border-color: var(--royal);
    --bs-btn-hover-bg: var(--royal); --bs-btn-hover-border-color: var(--royal); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--royal-dark); --bs-btn-active-border-color: var(--royal-dark);
}
.btn-dark { --bs-btn-bg: var(--royal-dark); --bs-btn-border-color: var(--royal-dark); --bs-btn-hover-bg: var(--royal); --bs-btn-hover-border-color: var(--royal); }
h1, h2, .h1, .h2, .page-head h1 { font-family: var(--font-display); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(201,162,75,.25); }
.form-check-input:checked { background-color: var(--royal); border-color: var(--royal); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--royal-dark) 0%, #2C0911 100%); color: #E9DCCB; padding: 1.25rem 0.75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; padding: 0 .5rem 1rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(201,162,75,.35); }
.sidebar .brand img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.sidebar .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; color: #fff; }
.sidebar .brand-tag { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-top: .2rem; }
.sidebar nav a { display: flex; align-items: center; gap: .6rem; color: #E9DCCB; text-decoration: none; padding: .5rem .75rem; border-radius: 6px; border-left: 3px solid transparent; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: rgba(201,162,75,.16); color: #fff; border-left-color: var(--gold); }
.sidebar nav a.active i { color: var(--gold); }
.sidebar .nav-group { color: var(--gold); opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem !important; font-size: .8rem; margin: 1.1rem .75rem .35rem; }
.content { padding: 1.5rem 2rem 3rem; min-width: 0; }



.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.75rem; font-weight: 600; margin: 0; }
.page-head .sub { color: var(--muted); margin: .25rem 0 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.table { --bs-table-bg: var(--surface); }
.table thead th { font-weight: 500; color: var(--muted); font-size: .875rem; }
.form-narrow { max-width: 640px; }
.money { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--canvas); }

/* ---------- dashboard ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; }
.stat .v { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .9rem; }
.stat.warn { border-color: var(--busy); }
.stat.warn .v { color: var(--busy); }

/* ---------- floor ---------- */
.legend { display: flex; gap: 1.25rem; color: var(--muted); font-size: .9rem; }
.legend span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.legend .l-available::before { background: var(--free); }
.legend .l-occupied::before { background: var(--busy); }
.legend .l-reserved::before { background: var(--reserved); }
.legend .l-outofservice::before { background: var(--off); }
.area-title { font-size: 1.1rem; font-weight: 500; color: var(--muted); margin: 1.5rem 0 .75rem; }
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.table-tile { position: relative; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); border-top: 6px solid var(--free); padding: .9rem 1rem 1rem; min-height: 150px; display: flex; flex-direction: column; gap: .2rem; }
.table-tile.occupied { border-top-color: var(--busy); background: #FFF6F3; }
.table-tile.reserved { border-top-color: var(--reserved); }
.table-tile.outofservice { border-top-color: var(--off); opacity: .7; }
.tile-name { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.tile-meta { color: var(--muted); font-size: .85rem; }
.tile-total { font-size: 1.2rem; font-weight: 600; margin-top: auto; font-variant-numeric: tabular-nums; }
.tile-open { margin-top: auto; }
.tile-status { font-size: .8rem; }
.tile-status select { font-size: .8rem; padding: .15rem .4rem; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1rem; align-items: start; }
.pos-menu { min-width: 0; }
.cat-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.cat-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .4rem 1rem; font-weight: 500; }
.cat-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.menu-card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 190px; }
.menu-card:hover:not(:disabled) { border-color: var(--ink); }
.menu-card:active:not(:disabled) { transform: scale(.98); }
.menu-card img, .menu-card .menu-initial { width: 100%; height: 110px; object-fit: cover; }
.menu-card .menu-initial { display: grid; place-items: center; font-size: 2.5rem; font-weight: 700; font-family: var(--font-display); color: var(--gold-dark); background: var(--gold-soft); }
.menu-card .menu-name { padding: .5rem .65rem 0; font-weight: 500; line-height: 1.25; }
.menu-card .menu-price { padding: .25rem .65rem .6rem; margin-top: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-card:disabled { opacity: .5; }
.menu-card .sold-out { position: absolute; top: .5rem; left: .5rem; background: var(--busy); color: #fff; font-size: .75rem; padding: .1rem .5rem; border-radius: 4px; }

.pos-order { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
#order-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#order-panel.is-busy { opacity: .6; pointer-events: none; }
.panel-head { padding: 1rem 1rem .75rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.panel-table { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.panel-msgs { margin: .75rem 1rem 0; }
.order-lines { overflow-y: auto; flex: 1; padding: .25rem 0; min-height: 120px; }
.order-lines .empty { color: var(--muted); padding: 1.5rem 1rem; margin: 0; }
.line { display: grid; grid-template-columns: 1fr auto auto auto; gap: .5rem; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid #EEF1F2; }
.line.pending { border-left: 4px solid var(--saffron); padding-left: calc(1rem - 4px); }
.line.voided .line-name, .line.voided .line-amt { text-decoration: line-through; color: var(--muted); }
.line-name { font-weight: 500; }
.line-note { font-size: .85rem; color: var(--saffron-dark); }
.line-state { font-size: .75rem; color: var(--muted); }
.line-qty { display: flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.line-qty button, .line-actions button { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 30px; height: 30px; line-height: 1; padding: 0; }
.line-qty button:hover, .line-actions button:hover { border-color: var(--ink); }
.line-amt { font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
.line-actions { display: flex; gap: .25rem; }
.totals { padding: .75rem 1rem; border-top: 1px solid var(--line); }
.totals .row-t { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; padding: .1rem 0; }
.totals .grand { font-size: 1.5rem; font-weight: 700; margin-top: .25rem; }
.panel-actions { padding: 0 1rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.btn-send { grid-column: 1 / -1; background: var(--saffron); border-color: var(--saffron); color: #1B1405; font-weight: 600; font-size: 1.1rem; padding: .7rem; }
.btn-send:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); color: #fff; }
.btn-send:disabled { background: #E8D9BE; border-color: #E8D9BE; color: #6E6350; }

/* ---------- reports ---------- */
.recon td, .recon th { padding: .45rem .75rem; }
.recon .total-row td { font-weight: 600; border-top: 2px solid var(--ink); }
.var-bad { color: var(--busy); font-weight: 600; }
.var-ok { color: var(--free); font-weight: 600; }
pre.ticket { background: #FBFBF8; border: 1px dashed var(--line); padding: .75rem; font-size: .8rem; max-width: 460px; white-space: pre; overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .menu-card:active { transform: none; } }
@media print { .sidebar, .no-print { display: none !important; } .app { display: block; } .content { padding: 0; } }

/* Menu cell with photo preview button */
.menu-cell { position: relative; display: flex; }
.menu-cell .menu-card { flex: 1; width: 100%; }
.menu-zoom { position: absolute; top: .4rem; right: .4rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: rgba(62,13,24,.8); color: #fff; display: grid; place-items: center; }
.menu-zoom:hover { background: var(--royal); }
.zoom-content { overflow: hidden; }
.zoom-photo { background: #11181B; display: grid; place-items: center; min-height: 240px; max-height: 65vh; }
.zoom-photo img { width: 100%; max-height: 65vh; object-fit: contain; }
.zoom-photo.none { color: #93A3A9; font-size: 1.2rem; }

/* Staff meal cart */
.staff-cart { padding: 1rem; }
.cart-line { display: flex; align-items: center; gap: .35rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Shahi Zaika details ---------- */
.panel { box-shadow: 0 1px 2px rgba(62,13,24,.04); }
.page-head h1 { color: var(--royal-dark); }
.cat-chip.active { background: var(--royal) !important; border-color: var(--royal) !important; color: #fff !important; }
.stat .v { color: var(--royal-dark); }
.badge.text-bg-dark { background: var(--royal-dark) !important; }
.gold-rule { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; opacity: 1; }
@media print {
    .print-brand { display: flex !important; }
}
.print-brand { display: none; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.print-brand img { height: 56px; }
.print-brand .n { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--royal-dark); }

/* Takeaway counter */
.takeaway-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.take-card { border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 10px; padding: .75rem .9rem; background: var(--surface); }
.take-card.ready { border-top-color: var(--free); background: #F2FAF4; }
.take-token { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--royal-dark); }

/* =====================================================================
   Mobile & tablet
   ===================================================================== */
.topbar, .pos-bar, .sheet-bar { display: none; }
.nav-overlay { position: fixed; inset: 0; background: rgba(20,6,10,.5); z-index: 1035; }
.ask-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.ask-chips:empty { display: none; }
.ask-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .75rem; }
.ask-pad .btn { font-size: 1.4rem; padding: .65rem 0; }

/* Side menu becomes a slide-in drawer */
@media (max-width: 991.98px) {
    .topbar {
        display: flex; align-items: center; gap: .5rem; position: sticky; top: 0; z-index: 1020;
        background: var(--royal-dark); color: #fff; padding: .4rem .5rem; border-bottom: 2px solid var(--gold);
    }
    .topbar-brand { flex: 1; display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none;
        font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; min-width: 0; }
    .topbar-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar-brand img { width: 34px; height: 34px; object-fit: contain; }
    .topbar-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px;
        background: transparent; color: #fff; font-size: 1.5rem; text-decoration: none; }
    .topbar-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(290px, 85vw); height: 100%; z-index: 1040;
        transform: translateX(-105%); transition: transform .2s ease; box-shadow: 4px 0 24px rgba(0,0,0,.3); }
    body.nav-open .sidebar { transform: none; }
    body.nav-open { overflow: hidden; }
    .sidebar nav a { padding: .7rem .75rem; }
    .content { padding: 1rem .9rem 5.5rem; }
    .page-head { align-items: flex-start; margin-bottom: 1rem; }
    .page-head h1 { font-size: 1.45rem; }
    .panel { padding: 1rem; }
}

/* Order screen: menu full width, order opens as a bottom sheet */
@media (max-width: 1099.98px) {
    .pos { grid-template-columns: 1fr; }
    .pos-order {
        position: fixed; inset: 0; top: auto; height: 100%; max-height: none; border-radius: 0; z-index: 1030;
        transform: translateY(105%); transition: transform .22s ease; border: 0;
    }
    .pos-order.open { transform: none; }
    body.sheet-open { overflow: hidden; }
    .sheet-bar { display: flex; padding: .6rem 1rem; border-bottom: 1px solid var(--line); background: var(--canvas); }
    .sheet-bar .btn { flex: 1; }
    .pos-bar {
        display: flex; justify-content: space-between; align-items: center; gap: 1rem;
        position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 1025;
        background: var(--royal); color: #fff; border: 0; border-radius: 12px; padding: .9rem 1.1rem;
        font-size: 1.05rem; font-weight: 500; box-shadow: 0 6px 20px rgba(62,13,24,.35);
    }
    .pos-bar.bump { animation: bump .35s ease; }
    @keyframes bump { 40% { transform: scale(1.04); background: var(--royal-soft); } }
    .staff-cart .sheet-bar { margin: -1rem -1rem 1rem; }
    .content:has(.pos) { padding-bottom: 6rem; }
}

/* Phones */
@media (max-width: 575.98px) {
    .cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .cat-chips::-webkit-scrollbar { display: none; }
    .cat-chip { white-space: nowrap; }
    #menuSearch { max-width: none !important; width: 100%; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .menu-card { min-height: 165px; }
    .menu-card img, .menu-card .menu-initial { height: 90px; }
    .menu-card .menu-name { font-size: .95rem; }
    .floor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .table-tile { min-height: 130px; padding: .75rem; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .stat { padding: .75rem; }
    .stat .v { font-size: 1.25rem; }
    .line { grid-template-columns: 1fr auto; row-gap: .35rem; }
    .line-amt { text-align: left; }
    .date-range input[type=date] { flex: 1; min-width: 0; }
    .takeaway-grid { grid-template-columns: 1fr; }
    .modal-fullscreen-sm-down .modal-footer .btn { flex: 1; }
}

/* Touch screens: bigger tap targets, no zoom on input focus */
@media (pointer: coarse) {
    .line-qty button, .line-actions button { width: 40px; height: 40px; font-size: 1.1rem; }
    .btn-sm { padding: .45rem .75rem; }
    .form-control, .form-select { font-size: 16px; }
    .menu-zoom { width: 2.6rem; height: 2.6rem; }
    .cat-chip { padding: .55rem 1.1rem; }
}

/* ---------- Staff timetable ---------- */
.tt-wrap { overflow-x: auto; }
.tt { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 980px; font-size: .9rem; }
.tt th, .tt td { border-bottom: 1px solid var(--line); padding: .35rem .4rem; vertical-align: top; }
.tt thead th { background: var(--canvas); text-align: center; font-weight: 600; position: sticky; top: 0; z-index: 2; }
.tt .tt-name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; min-width: 150px; max-width: 180px; font-weight: 600; }
.tt thead .tt-name { z-index: 3; background: var(--canvas); }
.tt .tt-total { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tt .tt-today { background: #FFF8E8; }
.tt-station th { background: var(--royal-dark) !important; color: #fff; font-family: var(--font-display); font-size: 1rem; padding: .5rem .75rem; position: sticky; left: 0; }
.tt-station .text-muted { color: #E9DCCB !important; }
.tt-cell { width: 100%; min-height: 58px; border: 1px solid var(--line); background: #F4F9F5; border-radius: 6px; padding: .3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; font-variant-numeric: tabular-nums; position: relative; }
.tt-cell:hover { border-color: var(--royal); }
.tt-cell.empty { background: transparent; border-style: dashed; color: var(--muted); }
.tt-cell.off { background: #EDE7DF; color: var(--muted); }
.tt-cell.halfday { background: #FFF4DA; }
.tt-cell.over { border-color: var(--busy); box-shadow: inset 0 0 0 1px var(--busy); }
.tt-plus { font-size: 1.3rem; line-height: 1; }
.tt-time { font-size: .82rem; white-space: nowrap; }
.tt-hours { font-size: .72rem; color: var(--muted); }
.tt-note { position: absolute; top: 3px; right: 4px; font-size: .7rem; color: var(--gold-dark); }
.tt-cover th, .tt-cover td { background: #FBF8F2; border-bottom: 2px solid var(--line); }
.tt-bar { position: relative; height: 12px; border-radius: 6px; background: var(--free); overflow: hidden; margin-top: .25rem; }
.tt-bar:not(.ok) { background: #9CCBAE; }
.tt-gap { position: absolute; top: 0; bottom: 0; background: var(--busy); }
.tt-gaps { font-size: .7rem; color: var(--busy); margin-top: .2rem; line-height: 1.2; }
@media print {
    @page { size: landscape; margin: 8mm; }
    .tt { min-width: 0; font-size: .75rem; }
    .tt-cell { min-height: 0; border: 0; background: none !important; }
    .tt-plus { visibility: hidden; }
    .tt-wrap { overflow: visible; border: 0; }
    .tt thead th, .tt .tt-name { position: static; }
}
.tt-rest { font-size: .7rem; font-weight: 500; color: var(--muted); }
.tt-rest.full { color: var(--free); }
.tt-rest.over { color: var(--busy); font-weight: 700; }

/* ---------- Timesheets ---------- */
.ts th, .ts td { text-align: center; }
.ts .tt-name { text-align: left; }
.ts-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-times { font-size: .68rem; color: var(--muted); }
.ts-tag { font-size: .7rem; background: var(--gold-soft); border-radius: 3px; padding: 0 .2rem; margin-left: .15rem; }
.ts-off { background: #EDE7DF; color: var(--muted); font-weight: 600; }
.ts-half { background: #FFF4DA; }
.ts-over strong { color: var(--busy); }
.ts-none { background: #FDF1F0; }
.ts-na { color: #C9C0B6; }
.ts-fri { background: #F3ECDD !important; }
.ts-sum { background: #FBF8F2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-foot th, .ts-foot td { background: var(--canvas); font-weight: 600; border-top: 2px solid var(--line); }
.ts-month { font-size: .8rem; }
.ts-month th, .ts-month td { padding: .3rem .2rem; }
.ts-month .ts-cell { min-width: 30px; }
@media print {
    .ts-month { font-size: .6rem; }
    .ts-month th, .ts-month td { padding: .1rem; }
    .stat-row { display: none; }
}

/* Salary lock bar */
.paylock { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid #E6D3A3; border-radius: 10px; padding: .5rem .75rem; margin-bottom: 1rem; }
.paylock .form-control { width: 140px; }
.paylock.open { background: #EAF5EE; border-color: #BFDCC9; }

/* ---------- Menu QR table cards ---------- */
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.qr-card { background: #FFFDF8; border: 2px solid var(--gold); border-radius: 14px; padding: 1.1rem 1rem 1.2rem; text-align: center;
           display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.qr-logo { width: 64px; height: 64px; object-fit: contain; background: var(--royal-dark); border-radius: 50%; padding: 6px; }
.qr-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--royal-dark); line-height: 1.1; margin-top: .3rem; }
.qr-tag { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.qr-code { width: 180px; height: 180px; image-rendering: pixelated; margin: .6rem 0 .3rem; }
.qr-cta { font-weight: 600; color: var(--royal); }
.qr-ar { font-size: 1rem; color: var(--ink); }
@media print {
    @page { size: A4 portrait; margin: 10mm; }
    body { background: #fff; }
    .qr-sheet { grid-template-columns: 1fr 1fr; gap: 0; }
    .qr-card { border: 1px dashed #999; border-radius: 0; height: 135mm; justify-content: center; break-inside: avoid; }
    .qr-code { width: 60mm; height: 60mm; }
    .qr-logo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-brand, .topbar { display: none !important; }
}
