:root { --border-color: #eee; --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
body { margin: 0; padding: 0; background-color: var(--bg-color); }

/* Base App Reset to prevent Theme Conflicts */
.rb-app-wrapper { background-color: var(--bg-color); min-height: 100vh; position: relative; font-family: var(--font-sans); line-height: 1.5; color: var(--text-dark); }
.rb-app-wrapper * { box-sizing: border-box; }
.rb-menu-container { max-width: 480px; margin: 0 auto; background-color: var(--bg-color); box-shadow: 0 0 15px rgba(0,0,0,0.05); min-height: 100vh; position: relative; overflow: visible; }

/* Strip native tap highlights */
button, a, select, input, .rb-chip, .rb-qty-btn, .rb-info-icon, .rb-close-btn, .rb-clear-btn, .rb-add-btn {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}
button:active, button:focus, .rb-qty-btn:active, .rb-qty-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}
.rb-add-btn:active, .rb-add-btn:focus { background: #fff !important; color: var(--accent-color) !important; }

/* Header */
.rb-sticky-header { position: relative; z-index: 90; display: block; padding: 0; background: transparent; }
.rb-has-sticky-topbar .rb-sticky-header.rb-sticky-topbar { position: sticky; top: 0; z-index: 92; background: #fff; }
.rb-has-sticky-topbar .rb-sticky-header.rb-sticky-topbar .rb-header-top { box-shadow: 0 1px 0 var(--border-color); }
.rb-header-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--border-color); gap: 10px; }
.rb-header-top--menu { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; }
.rb-store-name--center { text-align: center; justify-self: center; max-width: 100%; margin: 0 auto; }
.rb-header-actions { justify-self: end; min-width: 44px; }
.rb-hamburger-btn { width: 40px; height: 40px; border: none; background: transparent; padding: 8px 6px; display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.rb-hamburger-btn span { display: block; height: 2px; background: var(--text-dark, #333); border-radius: 2px; }

/* Sticky diet + category bars */
.rb-menu-bars-sticky { position: sticky; top: 0; z-index: 88; background: var(--bg-color); }
.rb-has-sticky-topbar .rb-menu-bars-sticky { top: var(--rb-header-top-height, 57px); }
.rb-menu-bars-sticky .rb-diet-filter-bar { border-bottom: 1px solid var(--border-color); }
.rb-menu-bars-sticky .rb-category-slider { position: static; top: auto; border-bottom: 1px solid var(--border-color); }
.rb-header-search-wrap { display: none; }

/* Diet Filter Bar */
.rb-diet-filter-bar { display: flex; align-items: center; gap: 8px; padding: 10px 15px; background: #fff; border-bottom: 1px solid var(--border-color); }
.rb-diet-chip { background: transparent; border: 2px solid var(--border-color); padding: 8px 16px; border-radius: var(--rb-chip-radius, 20px); white-space: nowrap; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-dark); font-family: var(--font-sans); transition: border-color 0.2s; }
.rb-diet-chip.active { border-color: var(--accent-color); color: var(--text-dark); background: transparent; }
.rb-diet-mark.veg { color: #10b981; font-size: 14px; line-height: 1; }
.rb-diet-mark.nonveg { color: #e11d48; font-size: 13px; line-height: 1; }
.rb-diet-chip { font-size: 14px; }
.rb-diet-filter-bar--search-only { justify-content: flex-end; }
.rb-diet-filter-bar .rb-search-trigger--solo { margin-left: auto; }
.rb-search-trigger { margin-left: auto; background: #fff; border: 1.5px solid var(--accent-color, #f28c5a); border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; color: var(--text-dark); font-family: var(--font-sans); }
.rb-search-trigger--inline { width: auto; max-width: 168px; padding: 8px 14px; gap: 8px; margin-left: auto; justify-content: flex-start; }
.rb-search-trigger--solo { width: auto; padding: 10px 16px; gap: 8px; margin-left: 0; justify-content: flex-start; }
.rb-search-trigger-label { font-size: 14px; font-weight: 500; color: var(--text-light, #999); line-height: 1; }
.rb-search-trigger svg { flex-shrink: 0; color: var(--text-dark, #333); opacity: 0.65; }
.rb-table-label { font-size: 11px; color: var(--text-light); margin-right: 2px; }

/* Catalog mode */
.rb-catalog-banner { background: #fff3cd; color: #856404; text-align: center; padding: 10px 16px; font-size: 13px; font-weight: 700; border-bottom: 1px solid #ffeeba; }
.rb-catalog-mode .rb-add-btn,
.rb-catalog-mode .rb-qty-controls,
.rb-catalog-mode #rb-sticky-cart-preview { display: none !important; }

/* Scroll-hide */
.rb-bottom-nav-wrapper.rb-nav-hidden, #rb-sticky-cart-preview.rb-nav-hidden, #rb-open-filters-btn.rb-nav-hidden { transform: translateX(-50%) translateY(120%) !important; opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; }
#rb-sticky-cart-preview { transition: transform 0.3s ease, opacity 0.3s ease; }
.rb-bottom-nav-wrapper { transition: transform 0.3s ease, opacity 0.3s ease; }

/* Kitchen Display — full width split layout */
.rb-kitchen-display { width: 100%; max-width: none; margin: 0; padding: 20px 24px; font-family: var(--font-sans); min-height: 100vh; box-sizing: border-box; }
.rb-kitchen-theme-night { background: #111; color: #fff; }
.rb-kitchen-theme-day { background: #f5f5f5; color: #111; }
.rb-kitchen-theme-ambient { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #e8e8e8; }
.rb-kitchen-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.rb-kitchen-header h1 { margin: 0; font-size: clamp(22px, 3vw, 36px); }
#rb-kitchen-clock { font-size: clamp(18px, 2vw, 28px); font-weight: 700; opacity: 0.7; }
.rb-kitchen-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-height: calc(100vh - 100px); }
.rb-kitchen-col { display: flex; flex-direction: column; min-height: 0; }
.rb-kitchen-col h2 { margin: 0 0 16px; font-size: clamp(20px, 2.5vw, 32px); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 10px; border-bottom: 3px solid currentColor; opacity: 0.85; }
.rb-kitchen-col-inner { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding-right: 4px; align-content: start; }
.rb-kitchen-order-type { font-size: 12px; font-weight: 800; text-transform: uppercase; opacity: 0.55; margin-bottom: 4px; }
.rb-kitchen-theme-night .rb-kitchen-order-card { background: #1a1a1a; border: 2px solid #333; }
.rb-kitchen-theme-day .rb-kitchen-order-card { background: #fff; border: 2px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.rb-kitchen-theme-ambient .rb-kitchen-order-card { background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.15); backdrop-filter: blur(8px); }
.rb-kitchen-order-card { border-radius: 12px; padding: 20px; }
.rb-kitchen-order-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.rb-kitchen-order-id { font-size: clamp(28px, 3vw, 40px); font-weight: 900; color: #fbbf24; }
.rb-kitchen-theme-day .rb-kitchen-order-id { color: #d97706; }
.rb-kitchen-order-time { font-size: 18px; opacity: 0.6; }
.rb-kitchen-order-table { font-size: 16px; opacity: 0.7; margin-bottom: 12px; font-weight: 600; }
.rb-kitchen-item { font-size: clamp(18px, 2vw, 24px); font-weight: 700; padding: 6px 0; border-bottom: 1px dashed rgba(128,128,128,0.4); }
.rb-kitchen-order-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 2px solid rgba(128,128,128,0.3); }
.rb-kitchen-total { font-size: 24px; font-weight: 900; color: #4ade80; }
.rb-kitchen-theme-day .rb-kitchen-total { color: #16a34a; }
.rb-kitchen-actions { display: flex; gap: 8px; }
.rb-kitchen-status-btn { background: var(--accent-color, #f28c5a); color: #fff; border: none; padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: bold; cursor: pointer; }
.rb-kitchen-empty-col { text-align: center; font-size: 20px; opacity: 0.5; padding: 40px 20px; }
@media (max-width: 768px) {
    .rb-kitchen-split { grid-template-columns: 1fr; }
}

/* Thermal Print */
@media print {
    body * { visibility: hidden; }
    .rb-receipt, .rb-receipt * { visibility: visible; }
    .rb-receipt { position: absolute; left: 0; top: 0; width: 80mm; }
    @page { size: 80mm auto; margin: 0; }
}
.rb-store-identity { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.rb-store-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rb-store-name { margin: 0; font-size: 18px !important; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Table Pill at Top Right */
.rb-header-switch { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--accent-color); border-radius: 20px; background: #fff; cursor: pointer; flex-shrink: 0; color: var(--text-dark, #333); }
.rb-table-text, .rb-table-label { color: var(--text-dark, #333); }
.rb-store-identity { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; flex: 1; }
.rb-store-logo { max-height: 36px; max-width: 120px; object-fit: contain; }
.rb-table-text { font-size: 13px; font-weight: 600; }
.rb-header-change-btn { text-transform: uppercase; font-size: 10px; margin-left: 6px; color: var(--accent-color); font-weight: 800; letter-spacing: 0.5px; }

.rb-category-slider { background: var(--bg-color); display: flex; overflow-x: auto; padding: 12px 15px; margin: 0; scrollbar-width: none; }
.rb-category-slider::-webkit-scrollbar { display: none; }
.rb-chip { background: transparent; border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 20px; margin-right: 8px; white-space: nowrap; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-dark); transition: 0.2s;}
.rb-chip.active { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

.rb-product-list { display: flex; flex-direction: column; padding: 15px; padding-bottom: 120px; }
.rb-product-card { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dotted #ccc; background: transparent; }
.rb-product-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.out-of-stock-card { opacity: 0.5; filter: grayscale(50%); }
.out-of-stock-card .rb-controls-wrapper { pointer-events: none; }
.rb-product-card { cursor: pointer; }

.rb-product-info { flex: 1; padding-right: 15px; }
.rb-product-title { font-size: 15px !important; font-weight: 700; margin: 0 0 4px 0 !important; line-height: 1.3; }
.rb-product-subtitle { color: var(--text-light); font-size: 12px; display: block; margin-top: 4px; line-height: 1.4; }
.rb-price { font-weight: 700; font-size: 15px; }

.rb-product-image-container { position: relative; width: 110px; height: 110px; flex-shrink: 0; border-radius: 12px; }
.rb-product-img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; background: #f4eee9; }
.rb-controls-wrapper { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); width: 80px; display: flex; justify-content: center; }
.rb-add-btn { background: #fff; border: 1px solid var(--border-color); color: var(--accent-color); font-weight: 800; padding: 6px 0; width: 100%; border-radius: 8px; cursor: pointer; font-size: 13px; text-align: center; }
.rb-sold-out-badge { background: #eee; color: #888; font-size: 11px; padding: 6px 0; width: 100%; text-align: center; border-radius: 6px; font-weight: bold; }

.rb-qty-controls { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 2px 4px; width: 100%; }
.rb-qty-controls.active-in-cart { background-color: var(--active-qty-bg); border-color: var(--active-qty-bg); }
.rb-qty-btn { background: none; border: none; font-size: 18px; color: var(--accent-color) !important; cursor: pointer; padding: 2px 8px; font-weight: bold; }
.rb-qty-val { min-width: 20px; text-align: center; font-size: 14px; font-weight: 700; }

/* Sticky Cart Preview */
#rb-sticky-cart-preview.rb-cart-next-bar { position: fixed; bottom: 12px; left: 16px; right: 16px; width: auto; max-width: calc(480px - 32px); margin: 0 auto; transform: none; background: var(--accent-color, #ef4f5f); color: #fff; padding: 11px 16px; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,0.16); z-index: 99; display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: bold; font-family: var(--font-sans); cursor: pointer; min-height: 48px; box-sizing: border-box; }
body.rb-has-staff-bar #rb-sticky-cart-preview.rb-cart-next-bar { bottom: 54px; }
body.rb-has-active-order #rb-sticky-cart-preview.rb-cart-next-bar { bottom: calc(12px + var(--rb-bottom-shell-h, 52px)); }
body.rb-has-active-order.rb-has-staff-bar #rb-sticky-cart-preview.rb-cart-next-bar { bottom: calc(54px + var(--rb-bottom-shell-h, 52px)); }

/* Floating Pill Bottom Navbar */
.rb-bottom-nav-wrapper { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 450px; z-index: 100; padding: 0 15px; }
.rb-admin-dashboard-app .rb-bottom-nav-wrapper,
.rb-staff-bottom-nav.rb-bottom-nav-wrapper { bottom: 0; left: 0; right: 0; transform: none; max-width: none; width: 100%; padding: 0; }
.rb-bottom-nav-inner { background: #fff; border-radius: 40px; display: flex; justify-content: space-around; padding: 6px 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.rb-admin-dashboard-app .rb-bottom-nav-inner,
.rb-staff-bottom-nav .rb-bottom-nav-inner { border-radius: 0; box-shadow: 0 -2px 12px rgba(0,0,0,0.08); border-top: 1px solid #eee; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); }
.rb-bottom-nav-wrapper .rb-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: #999; flex: 1; padding: 8px 4px 6px; text-decoration:none; min-width: 0; }
.rb-bottom-nav-wrapper .rb-nav-item.active { color: var(--text-dark); }
.rb-bottom-nav-wrapper .rb-nav-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; flex-shrink: 0; }
.rb-bottom-nav-wrapper .rb-nav-item.active .rb-nav-icon { background: #f0f0f0; }
.rb-bottom-nav-wrapper .rb-nav-item > span { font-size: 10px; font-weight: 700; line-height: 1.15; text-align: center; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rb-bottom-nav-wrapper .rb-nav-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; display: block; }
.rb-admin-dashboard-app { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.rb-has-staff-bottom-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.rb-nav-item { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: #999; flex: 1; padding: 8px 4px; text-decoration:none; }
.rb-nav-item.active { color: var(--text-dark); }
.rb-nav-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; flex-shrink: 0; }
.rb-nav-item.active .rb-nav-icon { background: #f0f0f0; }
.rb-nav-item span { font-size: 11px; font-weight: 700; white-space: nowrap; }
.rb-nav-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; display: block; }

/* Popups & Modals */
.rb-cart-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; pointer-events: none; }
.rb-cart-popup.open { pointer-events: auto; }
.rb-cart-popup.closing { pointer-events: none; }
.rb-cart-popup.open { opacity: 1; visibility: visible; }
.rb-cart-popup.closing { opacity: 0; visibility: visible; }
.rb-cart-container { width: 100%; max-width: 480px; background: var(--bg-color); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform 0.3s ease-out; display: flex; flex-direction: column; padding: 20px; border: none !important; max-height: 85vh; min-height: 0; overflow: hidden; touch-action: pan-y; box-sizing: border-box; }
.rb-cart-container--cart { padding: 0; }
.rb-cart-container.rb-popup-tall { height: 80vh; max-height: 80vh; }
.rb-popup-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; color: var(--text-dark); line-height: 1.6; }
.rb-cart-popup.open .rb-cart-container { transform: translateY(0); }
.rb-cart-popup.closing .rb-cart-container { transform: translateY(100%); }
.rb-cart-header { display: flex; justify-content: space-between; align-items: center; padding: 0 0 10px; border-bottom: 1px solid var(--border-color); margin-bottom: 12px; position: relative; cursor: grab; flex-shrink: 0; }
.rb-cart-container--cart .rb-cart-header { padding: 20px 20px 10px; margin-bottom: 0; }
.rb-cart-scroll-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 20px 8px; }
.rb-cart-bottom { flex-shrink: 0; padding: 12px 20px 20px; background: var(--bg-color); }
.rb-cart-bottom > .rb-cart-section:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.rb-cart-section { border-top: 1px solid var(--border-color); padding-top: 12px; margin-top: 12px; }
.rb-cart-section.rb-section-hidden { display: none !important; border-top: none !important; padding-top: 0 !important; margin-top: 0 !important; }
.rb-cart-upsells.rb-section-hidden { border-top: none !important; padding-top: 0 !important; margin-bottom: 0 !important; }
.rb-popup-top { z-index: 10050 !important; }
.rb-popup-top.open { z-index: 10050 !important; }
#rb-cat-list-popup,
#rb-floating-cat-popup { z-index: 10050 !important; }
#rb-cat-list-popup.open,
#rb-floating-cat-popup.open { z-index: 10050 !important; }
#rb-variant-add-popup .rb-cart-container,
#rb-variant-remove-popup .rb-cart-container,
#rb-table-popup .rb-cart-container,
#rb-phone-popup .rb-cart-container,
#rb-otp-popup .rb-cart-container { padding: 20px; box-sizing: border-box; }
#rb-variant-add-list,
#rb-variant-remove-list,
#rb-table-list-container { padding: 0 2px 8px; }
#rb-variant-add-list .rb-variant-row-item,
#rb-variant-remove-list .rb-variant-row-item { padding-left: 4px; padding-right: 4px; }
.rb-cart-header::before { content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: #ddd; }
.rb-cart-header:active { cursor: grabbing; }
.rb-cart-title { font-size: 22px !important; margin: 0 !important; font-weight: 800; }
.rb-cart-title-sub { color: var(--text-light); font-size: 18px; font-weight: normal; }
.rb-close-btn { background: none; border: none; font-size: 32px; color: #999; cursor: pointer; line-height: 1; padding: 0; }

.rb-checkout-button { width: 100%; background: var(--text-dark); color: #fff; border: none; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: bold; display: flex; justify-content: space-between; cursor: pointer; margin-top: 10px; }
.rb-checkout-button:disabled { opacity: 0.7; cursor: not-allowed; }

/* Cart Product Rows */
#rb-cart-items::-webkit-scrollbar { width: 4px; }
#rb-cart-items::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
#rb-cart-items .rb-product-card { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); align-items: center; }
#rb-cart-items .rb-product-image-container, #rb-cart-items .rb-product-subtitle { display: none !important; }
#rb-cart-items .rb-product-info { padding-right: 0; flex: 1; }
#rb-cart-items .rb-controls-wrapper { position: static; transform: none; width: auto; box-shadow: none; background: transparent; }
#rb-cart-items .rb-qty-controls { padding: 4px 8px; width: 90px; }

.rb-table-list-btn { width: 100%; text-align: left; padding: 15px; margin-bottom: 10px; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; color: var(--text-dark, #333); }
.rb-variant-row-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border-color); }

/* Orders Card */
.rb-user-order-card { background: #fff; border-radius: 10px; padding: 15px; margin-bottom: 15px; border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: 0.2s; cursor:pointer;}
.rb-user-order-card:active { transform: scale(0.98); }
.rb-user-order-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--text-light); font-weight: bold; }
.rb-user-order-status { font-weight: 800; padding: 4px 8px; border-radius: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }

.status-pending, .status-preparing { background: #fff3cd; color: #856404; }
.status-delivering { background: #cce5ff; color: #004085; }
.status-delivered, .status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #fde8e8; color: #e11d48; }

.rb-app-wrapper input[type="number"], .rb-app-wrapper input[type="text"] { width: 100%; padding: 14px; font-size: 16px; border: 1px solid #ccc; border-radius: 10px; box-sizing: border-box; background: #fff; }

/* --- Admin Dashboard Specific --- */
.rb-admin-topbar { display: flex; align-items: center; justify-content: center; background: #fff; padding: 12px 15px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.03); gap: 10px; }
.rb-admin-topbar--title-only { justify-content: center; }
.rb-admin-topbar--title-only .rb-topbar-title { flex: 1; text-align: center; }
.rb-admin-topbar--title-only .rb-topbar-back { position: absolute; left: 12px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s; }
.rb-admin-topbar--title-only .rb-topbar-back.rb-topbar-back--visible { opacity: 1; visibility: visible; pointer-events: auto; }
.rb-dashboard-home-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.rb-dashboard-tool { margin: 0; }
.rb-view-menu-fab { position: fixed; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 64px; padding: 8px 6px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); text-decoration: none; color: #374151; }
.rb-view-menu-fab-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.rb-view-menu-fab-icon svg { width: 24px; height: 24px; display: block; }
.rb-view-menu-fab-label { font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center; }
.rb-cat-drag-handle { color: #9ca3af; cursor: grab; flex-shrink: 0; }
.rb-topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rb-accept-orders-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rb-accept-label { color: var(--text-light); }
.rb-admin-tab-content { padding: 20px; max-width: 600px; margin: 0 auto; width: 100%; box-sizing: border-box; }
@media (min-width: 900px) {
    .rb-admin-dashboard-app { max-width: none !important; }
    .rb-admin-tab-content { max-width: 1400px; padding: 24px 32px; }
    .rb-orders-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
}
.rb-topbar-back { background: none; border: none; font-size: 24px; color: var(--text-dark); cursor: pointer; text-decoration:none; display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; margin:0;}
.rb-topbar-title { margin: 0; font-size: 18px; font-weight: 800; }
.rb-dashboard-links-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) {
    .rb-dashboard-links-grid { grid-template-columns: repeat(2, 1fr); }
}
.rb-dash-card { display: flex; align-items: center; background: #fff; padding: 16px; border-radius: 12px; border: 1px solid var(--border-color); text-decoration: none; color: var(--text-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.02); min-width: 0; }
.rb-dash-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 12px; flex-shrink: 0; color: #555; }
.rb-dash-icon svg { width: 28px; height: 28px; display: block; }
.rb-dash-info { min-width: 0; }
.rb-dash-info h3 { margin: 0 0 2px 0; font-size: 16px; line-height: 1.2; }
.rb-dash-info p { margin: 0; font-size: 12px; line-height: 1.25; color: var(--text-light); }

/* --- Toggle Switch UI --- */
.rb-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.rb-switch input { opacity: 0; width: 0; height: 0; }
.rb-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 24px; }
.rb-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow:0 1px 2px rgba(0,0,0,0.2);}
.rb-switch input:checked + .rb-slider { background-color: #10b981; }
.rb-switch input:checked + .rb-slider:before { transform: translateX(20px); }

/* --- Menu Editor --- */
.rb-menu-edit-card { background: #fff; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 15px; overflow: hidden; position:relative; transition: opacity 0.2s; }
.rb-menu-edit-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; }
.rb-menu-edit-title-col { flex: 1; }
.rb-menu-edit-title-col h4 { margin: 0; font-size: 16px; color: var(--text-dark); }
.rb-menu-item-price-sub { display: block; font-size: 13px; color: var(--text-light); margin-top: 4px; }
.rb-menu-item-price-col { font-weight: bold; font-size: 15px; text-align:center; }
.rb-menu-item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.rb-expand-variants-btn { background: #f4f4f4; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 20px; line-height: 1; cursor: pointer; color: #333; display:flex; align-items:center; justify-content:center; padding:0;}
.rb-variants-edit-container { background: #fafafa; border-top: 1px solid var(--border-color); padding: 10px 15px; }
.rb-variant-edit-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #ddd; }
.rb-variant-edit-row:last-child { border-bottom: none; }
.rb-v-edit-name { font-size: 14px; font-weight: 600; flex:1; }
.rb-v-edit-controls { display: flex; align-items: center; gap: 10px; }
.rb-price-edit-input { width: 70px !important; padding: 6px !important; border: 1px solid #ccc !important; border-radius: 6px !important; font-weight: bold !important; text-align: center !important; font-size: 14px !important; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}
@media (min-width: 769px) {
    .rb-menu-item-price-sub { display: none !important; }
    .rb-menu-edit-header { grid-template-columns: 1fr 100px 100px; display: grid; }
}

/* Category view swipe */
.rb-category-viewport { width: 100%; }
.rb-category-panel { width: 100%; }
.rb-category-panel .rb-product-list { padding: 15px; padding-bottom: 120px; }

/* Infinite scroll sections */
.rb-infinite-menu { padding-bottom: 120px; }
.rb-cat-section { padding: 0 15px; }
.rb-cat-heading { font-size: 20px; font-weight: 800; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-color); }

/* Floating menu button */
#rb-floating-menu-btn { position: fixed; bottom: var(--rb-menu-btn-bottom, 85px); right: var(--rb-menu-btn-right, 20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; padding: 10px 14px; border-radius: var(--rb-menu-btn-radius, 30px); background: var(--text-dark, #222); color: #fff; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.25); z-index: 110; cursor: pointer; }
@media (min-width: 481px) {
    #rb-floating-menu-btn { right: max(var(--rb-menu-btn-right, 20px), calc(50% - 220px)); }
}
.rb-floating-menu-icon { font-size: 18px; line-height: 1; }
.rb-floating-menu-label { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; }

/* Full-screen search */
.rb-search-popup { position: fixed; inset: 0; background: var(--bg-color); z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; display: flex; flex-direction: column; pointer-events: none; }
.rb-search-popup.open { pointer-events: auto; }
.rb-search-popup.closing { pointer-events: none; }
.rb-search-popup.open { opacity: 1; visibility: visible; }
.rb-search-popup.closing { opacity: 0; visibility: visible; }
.rb-search-popup-inner { transform: translateY(-12px); transition: transform 0.25s ease, opacity 0.25s ease; opacity: 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rb-search-popup.open .rb-search-popup-inner { transform: translateY(0); opacity: 1; }
.rb-search-popup.closing .rb-search-popup-inner { transform: translateY(-12px); opacity: 0; }
.rb-search-popup-inner { display: flex; flex-direction: column; height: 100%; max-width: 480px; margin: 0 auto; width: 100%; padding: 16px; box-sizing: border-box; }
.rb-search-popup-header { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; padding: 12px 16px 0; position: relative; flex-shrink: 0; }
.rb-search-back-btn { flex-shrink: 0; border: none; background: transparent; color: var(--text-dark, #333); padding: 6px 2px 6px 0; margin-right: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 0; }
.rb-search-back-btn:active { opacity: 0.65; }
.rb-search-back-btn svg { display: block; }
.rb-search-input-wrap { flex: 1; position: relative; min-width: 0; }
.rb-menu-search-full { width: 100%; box-sizing: border-box; padding: 11px 38px 11px 14px; border: 1.5px solid var(--accent-color, #f28c5a); border-radius: 999px; font-size: 16px; font-family: var(--font-sans); outline: none; background: #fff; -webkit-appearance: none; appearance: none; }
.rb-menu-search-full::-webkit-search-decoration,
.rb-menu-search-full::-webkit-search-cancel-button,
.rb-menu-search-full::-webkit-search-results-button { -webkit-appearance: none; appearance: none; display: none; }
.rb-menu-search-full:focus { border-color: var(--accent-color, #f28c5a); outline: none; }
.rb-search-clear-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: none; border-radius: 50%; background: #eee; color: #666; font-size: 18px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; }
.rb-search-clear-btn.visible { display: flex; }
.rb-search-recommended { margin-bottom: 20px; }
.rb-search-rec-label { font-size: 13px; font-weight: 700; color: var(--text-light); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.rb-search-rec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-search-rec-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--rb-chip-radius, 20px); cursor: pointer; font-size: 13px; font-weight: 600; }
.rb-search-rec-item img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.rb-search-rec-price { color: var(--price-color); margin-left: auto; }
.rb-search-results { flex: 1; overflow-y: auto; padding-top: 4px; min-height: 0; }
.rb-search-results:empty { display: none; }
.rb-search-results .rb-search-result-card,
.rb-search-results .rb-product-card { display: flex !important; margin-bottom: 20px; }
.rb-search-results .rb-search-result-card:last-child,
.rb-search-results .rb-product-card:last-child { margin-bottom: 0; }
.rb-search-results .rb-search-result-card { margin-bottom: 12px; }
.rb-search-result-item { display: flex; justify-content: space-between; width: 100%; padding: 14px 0; border: none; border-bottom: 1px solid var(--border-color); background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; color: var(--text-dark); font-family: var(--font-sans); }
.rb-highlight-flash { animation: rbFlash 1.2s ease; }
@keyframes rbFlash { 0%,100% { background: transparent; } 50% { background: rgba(242,140,90,0.15); } }

.rb-topbar-view-menu { font-size: 12px; font-weight: 700; color: var(--accent-color, #1c64f2); text-decoration: none; white-space: nowrap; padding: 6px 10px; border: 1px solid currentColor; border-radius: 8px; }
.rb-topbar-admin-link { font-size: 12px; font-weight: 700; color: #374151; text-decoration: none; white-space: nowrap; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #f9fafb; }
.rb-topbar-admin-link:hover { background: #f3f4f6; }
.rb-floating-cat-item { display: block; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 8px; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; }
.rb-cat-list-container { height: auto; max-height: 70vh; padding-bottom: 30px; }
.rb-cat-list-popup-items { overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: calc(70vh - 80px); }

/* Product detail popup */
.rb-product-detail-container { padding: 0; height: auto; max-height: 80vh; overflow: hidden; border-radius: 20px 20px 0 0; }
.rb-product-detail-hero { position: relative; width: 100%; flex-shrink: 0; background: #f4eee9; overflow: hidden; border-radius: 20px 20px 0 0; }
.rb-product-detail-img { width: 100%; height: 240px; max-height: 42vh; object-fit: cover; display: block; margin: 0; border-radius: 0; background: #f4eee9; }
.rb-product-detail-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,0.12); border: none; cursor: pointer; padding: 0; margin: 0; }
.rb-product-detail-close:active { transform: scale(0.96); }
.rb-product-detail-hero--no-img { height: 56px; background: var(--bg-color, #fff); }
.rb-product-detail-hero--no-img .rb-product-detail-img { display: none !important; }
.rb-product-detail-body { padding: 18px 20px 24px; overflow: hidden; flex-shrink: 0; scrollbar-width: none; -ms-overflow-style: none; }
.rb-product-detail-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.rb-product-detail-title-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.rb-product-detail-title { font-size: 18px !important; font-weight: 800; margin: 0 !important; line-height: 1.35; flex: 1; min-width: 0; letter-spacing: -0.01em; }
.rb-product-detail-price { font-size: 17px; font-weight: 700; color: var(--price-color, #333); margin-bottom: 12px; }
.rb-product-detail-desc { font-size: 14px; color: var(--text-light, #666); line-height: 1.55; margin: 0; white-space: pre-wrap; overflow: hidden; }
.rb-product-detail-actions { margin-top: 16px; display: flex; justify-content: flex-end; }
.rb-product-detail-actions .rb-controls-wrapper { position: static; transform: none; width: 96px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.rb-product-detail-actions .rb-sold-out-badge { padding: 8px 14px; background: #eee; color: #888; border-radius: 8px; font-weight: 700; font-size: 13px; }
.rb-diet-badge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1.5px solid; border-radius: 2px; flex-shrink: 0; margin-top: 2px; }
.rb-diet-badge.veg { border-color: #10b981; }
.rb-diet-badge.veg .rb-diet-badge-inner { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.rb-diet-badge.nonveg { border-color: #e11d48; }
.rb-diet-badge.nonveg .rb-diet-badge-inner { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #e11d48; }

/* Order success popup */
.rb-success-check { width: 72px; height: 72px; border-radius: 50%; background: #10b981; color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: bold; }
.rb-success-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.rb-success-order-num { margin: 0; color: var(--text-light); font-size: 16px; }

/* Admin orders AJAX */
.rb-order-search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.rb-order-search-bar input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; }
.rb-order-search-btn { background: #1c64f2; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-weight: bold; cursor: pointer; }
.rb-order-status-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; scrollbar-width: none; }
.rb-order-status-tabs::-webkit-scrollbar { display: none; }
.rb-order-status-tab { background: #fff; border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 20px; white-space: nowrap; cursor: pointer; font-size: 13px; font-weight: 600; }
.rb-order-status-tab.active { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.rb-orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.rb-admin-order-card { background: #fff; border-radius: 12px; padding: 14px 14px 12px; border: 1px solid #eee; box-shadow: 0 2px 4px rgba(0,0,0,0.02); position: relative; overflow: hidden; }
.rb-order-paid-corner { position: absolute; top: 0; right: 0; width: 82px; height: 82px; overflow: hidden; z-index: 6; pointer-events: none; }
.rb-order-paid-flag { position: absolute; top: 14px; right: -30px; width: 104px; transform: rotate(45deg); text-align: center; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 0; cursor: default; pointer-events: none; font-family: var(--font-sans); line-height: 1.1; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.rb-order-paid-corner--yes .rb-order-paid-flag { background: #bbf7d0; color: #166534; }
.rb-order-paid-corner--no .rb-order-paid-flag { background: #fecaca; color: #991b1b; }
.rb-order-card-top { margin-bottom: 12px; }
.rb-order-card-header { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rb-order-card-date-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 52px; }
.rb-order-card-header .rb-order-card-date { font-size: 12px; color: #888; font-weight: 700; line-height: 1.3; }
.rb-order-new-badge { display: inline-block; align-self: flex-start; background: #ef4444; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 4px; animation: rb-blink 1s infinite; line-height: 1.2; }
.rb-order-card-id-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding-right: 52px; }
.rb-order-card-header .rb-order-card-id { font-weight: 800; font-size: 18px; color: #1c64f2; letter-spacing: -0.3px; line-height: 1.2; flex-shrink: 0; }
.rb-order-card-id-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-shrink: 0; margin-left: auto; }
.rb-order-card-id-actions .rb-order-delete-btn { width: 32px; height: 32px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #888; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.rb-order-card-id-actions .rb-order-delete-btn svg { width: 16px; height: 16px; }
.rb-order-card-id-actions .rb-order-delete-btn:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.rb-order-card-id-actions .rb-order-whatsapp-btn { padding: 6px 10px; font-size: 11px; min-height: 32px; white-space: nowrap; }
.rb-order-card-id-actions .rb-order-whatsapp-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.rb-order-slip-bottom { display: flex; gap: 8px; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.rb-order-slip-bottom .rb-slip-btn { flex: 1 1 50%; width: 50%; max-width: none; justify-content: center; box-sizing: border-box; }
.rb-order-meta-line { font-size: 13px; line-height: 1.45; margin-bottom: 4px; color: #444; }
.rb-order-meta-line strong { font-weight: 700; color: #666; }
.rb-order-items-list { font-size: 13px; line-height: 1.5; color: #333; }
.rb-order-item-line { margin-bottom: 2px; }
.rb-order-items-toggle-btn, .rb-order-items-more-btn { background: none; border: none; color: #1c64f2; font-weight: 700; font-size: 12px; cursor: pointer; padding: 4px 0 0; font-family: var(--font-sans); }
.rb-order-export-check { position: static; flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; }
.rb-order-export-check input { width: 16px; height: 16px; cursor: pointer; }
.rb-order-whatsapp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rb-order-type-badge { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; background: #f3f4f6; color: #374151; }
.rb-order-type-dine-in { background: #ecfdf5; color: #047857; }
.rb-order-type-pickup { background: #eff6ff; color: #1d4ed8; }
.rb-order-type-delivery { background: #fff7ed; color: #c2410c; }
.rb-delete-order-btn { background: none; border: none; color: #e11d48; cursor: pointer; font-size: 12px; font-weight: 800; padding: 0; }
.rb-create-open-order-btn { background: #1e3a5f; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; font-size: 14px; }
.rb-fab-plus { font-size: 18px; line-height: 1; font-weight: 800; }
.rb-orders-export-btn { background: #111; color: #fff; border: none; padding: 10px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); white-space: nowrap; flex-shrink: 0; }
.rb-orders-filters-sticky { position: sticky; top: 0; z-index: 35; background: #f4f4f4; padding: 8px 0 10px; margin-bottom: 12px; }
.rb-admin-tab-content .rb-orders-filters-sticky { background: #fff; }
.rb-wp-orders-wrap .rb-orders-filters-sticky { background: #f0f0f1; top: 32px; }
.rb-staff-orders-wrap .rb-orders-filters-sticky { background: #f4f4f4; top: 52px; z-index: 40; }
.rb-staff-orders-page .rb-orders-filter-chips--desktop .rb-order-status-tabs { margin-bottom: 0; }
.rb-orders-filters-wrap { display: flex; flex-direction: column; gap: 10px; }
.rb-orders-filter-chips--desktop { display: none; flex-direction: column; gap: 10px; }
.rb-orders-filter-dropdowns--mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 768px) {
    .rb-orders-filter-chips--desktop { display: flex; }
    .rb-orders-filter-dropdowns--mobile { display: none !important; }
}
.rb-orders-type-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.rb-orders-type-chips::-webkit-scrollbar { display: none; }
.rb-orders-filter-dropdowns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rb-orders-filter-select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: var(--font-sans); background: #fff; color: #333; cursor: pointer; }
.rb-wp-orders-wrap .rb-orders-grid.rb-orders-grid--grouped { display: block; }
.rb-slip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: none; font-size: 12px; font-weight: 800; cursor: pointer; padding: 8px 14px; border-radius: 8px; font-family: var(--font-sans); line-height: 1.2; }
.rb-slip-btn--bill { background: #1e3a5f !important; color: #fff !important; }
.rb-slip-btn--kot { background: #c41e3a !important; color: #fff !important; }
.rb-slip-btn--whatsapp { background: #25d366; color: #fff; }
.rb-print-receipt-btn:not(.rb-slip-btn--bill):not(.rb-slip-btn--kot) { display: inline-flex; align-items: center; gap: 6px; background: #c41e3a; border: none; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; padding: 8px 14px; border-radius: 8px; font-family: var(--font-sans); }
.rb-print-receipt-btn .rb-print-icon { font-size: 18px; line-height: 1; }
.rb-fields-disabled .rb-otp-field,
.rb-fields-disabled input,
.rb-fields-disabled select,
.rb-fields-disabled textarea { background: #f3f4f6 !important; color: #9ca3af !important; cursor: not-allowed !important; }
.rb-order-status-controls { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.rb-status-btn { border: 1px solid rgba(0,0,0,0.08); padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); color: #333; }
.rb-status-current { padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #333; border: 1px solid rgba(0,0,0,0.06); }
.rb-order-edit-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #e5e5e5; }
.rb-order-edit-title { flex: 1; font-weight: 600; }
.rb-order-edit-qty { display: flex; align-items: center; gap: 6px; }
.rb-order-edit-qty button { width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-size: 16px; font-weight: bold; cursor: pointer; }
.rb-order-add-item-btn { margin-top: 10px; width: 100%; padding: 10px; background: #f0fdf4; border: 1px dashed #86efac; border-radius: 8px; color: #166534; font-weight: 700; cursor: pointer; font-family: var(--font-sans); }
.rb-order-add-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10001; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; pointer-events: none; }
.rb-order-add-modal.open { pointer-events: auto; }
.rb-order-add-modal.closing { pointer-events: none; }
.rb-order-add-modal.open { opacity: 1; visibility: visible; }
.rb-order-add-modal.closing { opacity: 0; visibility: visible; }
.rb-order-add-modal-inner { background: #fff; border-radius: 12px; padding: 24px; width: 90%; max-width: 400px; transform: translateY(16px) scale(0.98); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.rb-order-add-modal.open .rb-order-add-modal-inner { transform: translateY(0) scale(1); opacity: 1; }
.rb-order-add-modal.closing .rb-order-add-modal-inner { transform: translateY(16px) scale(0.98); opacity: 0; }
.rb-bill-modal-high-z { z-index: 10050 !important; }
#rb-orders-export-modal { z-index: 10040; }
.rb-order-add-modal-inner h3 { margin: 0 0 16px; font-size: 18px; }
.rb-order-add-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.rb-order-add-modal-actions button { flex: 1; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; font-family: var(--font-sans); }
.rb-order-add-cancel { background: #f4f4f4; color: #333; }
.rb-order-add-confirm { background: #10b981; color: #fff; }
.rb-order-items-box { font-size: 13px; line-height: 1.5; color: #555; background: #fcfaf8; padding: 10px; border-radius: 6px; margin-top: 10px; border: 1px solid #f1f1f1; }
.rb-order-card-footer { display: flex; flex-direction: column; align-items: stretch; border-top: 1px solid #eee; padding-top: 15px; margin-top: 15px; gap: 8px; position: relative; }
.rb-order-card-total { font-weight: 900; font-size: 18px; color: #111; margin-left: auto; text-align: right; }
.rb-admin-status-change { padding: 6px 10px; border-radius: 6px; border: 1px solid #ccc; font-size: 14px; font-weight: bold; cursor: pointer; }
.rb-no-orders-msg { text-align: center; color: #888; grid-column: 1/-1; padding: 30px; }

/* Banner slider — swipeable, not sticky */
.rb-banner-slider-wrap { padding: 12px 15px 4px; }
.rb-banner-slider { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 16px; }
.rb-banner-slider::-webkit-scrollbar { display: none; }
.rb-banner-track { display: flex; gap: 0; }
.rb-banner-slide { flex: 0 0 100%; min-width: 100%; scroll-snap-align: center; scroll-snap-stop: always; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.rb-banner-slide img { display: block; width: 100%; height: clamp(160px, 42vw, 240px); object-fit: cover; border-radius: 16px; user-select: none; -webkit-user-drag: none; }
.rb-banner-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 4px; }
.rb-banner-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: #ccc; padding: 0; cursor: pointer; }
.rb-banner-dot.active { background: var(--accent-color, #f28c5a); transform: scale(1.15); }

/* Categories menu grid — after banner, before menu */
.rb-cat-menu-grid-wrap { padding: 8px 15px 12px; }
.rb-cat-menu-grid { display: grid; grid-template-columns: repeat(var(--rb-cat-menu-cols, 4), 1fr); gap: 10px; }
.rb-cat-menu-grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font-sans); -webkit-tap-highlight-color: transparent; }
.rb-cat-menu-grid-img { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: outline 0.15s ease; }
.rb-cat-menu-grid-img img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.rb-cat-menu-grid-label { font-size: 12px; font-weight: 600; color: var(--text-dark); text-align: center; line-height: 1.2; }
.rb-cat-menu-grid-item.active .rb-cat-menu-grid-img { outline: 2px solid var(--accent-color, #f28c5a); outline-offset: 2px; }

/* Cart coupons */
.rb-coupon-row-wrap { display: flex; flex-direction: column; align-items: stretch; }
.rb-coupon-input-row { display: flex; gap: 8px; margin-bottom: 8px; width: 100%; }
.rb-coupon-input-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; font-family: var(--font-sans); }
#rb-coupon-apply-btn { padding: 10px 16px; background: var(--text-dark); color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); white-space: nowrap; }
.rb-coupon-applied { display: flex; align-items: center; justify-content: space-between; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: #166534; margin-bottom: 8px; width: 100%; }
#rb-coupon-remove-btn { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: #166534; padding: 0 4px; }
.rb-cart-summary { font-size: 14px; }
.rb-cart-summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-light); }
.rb-cart-summary-row.rb-cart-subtotal-row { color: var(--text-dark); font-weight: 800; font-size: 15px; padding-top: 8px; }
.rb-cart-summary-row.rb-discount { color: #16a34a; font-weight: 700; }
.rb-cart-total-accordion { margin: 0; }
.rb-cart-total-accordion summary.rb-cart-subtotal-row { cursor: pointer; list-style: none; }
.rb-cart-total-accordion summary::-webkit-details-marker { display: none; }
.rb-cart-total-label::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 7px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.45; vertical-align: middle; transition: transform 0.2s ease; }
.rb-cart-total-accordion[open] .rb-cart-total-label::after { transform: rotate(180deg); }
.rb-cart-total-breakdown { padding: 0 0 4px 12px; }
.rb-cart-total-breakdown .rb-cart-summary-row { font-size: 12px; padding: 4px 0; color: var(--text-light); }
.rb-pos-total-accordion summary.rb-pos-subtotal-line { cursor: pointer; list-style: none; }
.rb-pos-total-accordion summary::-webkit-details-marker { display: none; }
.rb-pos-total-accordion .rb-cart-total-breakdown { padding-left: 10px; }
.rb-pos-total-accordion .rb-pos-gst-line { font-size: 12px; font-weight: 500; }
.rb-coupon-toggle { background: none; border: none; color: #9ca3af; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; margin: 0 0 8px; text-decoration: none; align-self: flex-end; text-align: right; width: 100%; }
.rb-coupon-toggle:not(.rb-coupon-toggle--muted) { color: var(--accent-color, #f28c5a); font-weight: 700; }
.rb-coupon-fields { margin-bottom: 8px; width: 100%; }

/* Admin: new open order */
.rb-orders-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: sticky; top: 0; z-index: 30; background: #f4f4f4; padding: 8px 0; }
.rb-orders-toolbar .rb-order-search-bar { flex: 1; margin-bottom: 0; min-width: 0; }
.rb-orders-toolbar .rb-create-open-order-btn { flex-shrink: 0; width: auto; min-width: 120px; }
.rb-admin-tab-content .rb-orders-toolbar { background: #fff; }

/* Orders tab full width grid */
.rb-admin-tab-content.rb-orders-tab-active { max-width: 1400px; }
.rb-admin-tab-content .rb-orders-panel .rb-orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.rb-orders-grid--grouped { display: block; }
.rb-orders-date-group { margin-bottom: 24px; }
.rb-orders-date-group:last-child { margin-bottom: 0; }
.rb-orders-date-heading { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 800; color: #444; margin: 0 0 12px; }
.rb-orders-date-label { flex-shrink: 0; }
.rb-orders-date-line { flex: 1; min-width: 24px; height: 2px; align-self: center; background: #e8e8e8; border: none; border-radius: 1px; }
.rb-orders-load-more-wrap { text-align: center; margin: 20px 0 40px; }
.rb-orders-load-more-btn { background: #111; color: #fff; border: none; padding: 12px 28px; border-radius: 10px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); }
.rb-order-footer-main { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; width: 100%; }
.rb-order-footer-main .rb-toggle-paid-btn { flex-shrink: 0; border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); color: #333; }
.rb-order-footer-main .rb-toggle-paid-btn:hover { background: #f8f8f8; border-color: #ccc; }
.rb-order-card-footer .rb-order-status-row { width: 100%; margin-top: 4px; }
.rb-order-card-footer .rb-order-status-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; }
.rb-order-card-footer .rb-status-current { flex: 1; text-align: center; min-width: 80px; }
.rb-admin-tab-content .rb-orders-date-cards,
.rb-staff-orders-page .rb-orders-date-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.rb-wp-orders-wrap .rb-orders-date-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.rb-order-delete-btn { width: 30px; height: 30px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #888; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.rb-order-delete-btn svg { width: 16px; height: 16px; display: block; }
.rb-order-delete-btn:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.rb-order-type-tabs { margin-bottom: 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.rb-order-type-tabs::-webkit-scrollbar { display: none; }
.rb-order-type-tab { background: #fff; border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 20px; white-space: nowrap; cursor: pointer; font-size: 13px; font-weight: 600; }
.rb-order-type-tab.active { background: #1c64f2; color: #fff; border-color: #1c64f2; }

/* Create order modal */
.rb-form-label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; color: #555; }
.rb-form-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; box-sizing: border-box; font-family: var(--font-sans); }
.rb-order-type-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.rb-type-opt { flex: 1; min-width: 90px; padding: 12px 10px; border: 2px solid #ddd; border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; font-family: var(--font-sans); }
.rb-type-opt.active { border-color: var(--accent-color, #f28c5a); background: #fff7ed; color: #c2410c; }
.rb-create-order-modal-inner { max-width: 420px; }

/* WP admin orders */
.rb-wp-orders-wrap .rb-orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.rb-wp-orders-topbar { margin-bottom: 16px; }
.rb-wp-orders-filters-row { display: flex; flex-direction: column; gap: 10px; }
.rb-wp-quick-tabs .rb-order-status-tab, .rb-wp-quick-tabs .rb-order-type-tab { text-decoration: none; color: inherit; display: inline-block; }
.rb-wp-filters-btn { background: #111; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rb-wp-filters-popup { z-index: 100000; }

/* Table map */
.rb-table-map-hint { color: #666; font-size: 14px; margin-bottom: 12px; }
.rb-table-map-canvas { position: relative; min-height: 480px; background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 12px; overflow: auto; }
.rb-table-map-item { position: absolute; background: #fff; border: 2px solid #e2e8f0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; cursor: grab; user-select: none; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.rb-table-map-item.active { background: #fef9c3; border-color: #eab308; }
.rb-table-shape-circle { width: 148px; height: 148px; border-radius: 50%; }
.rb-table-shape-square { width: 148px; height: 148px; border-radius: 14px; }
.rb-table-shape-rectangle { width: 180px; min-height: 112px; border-radius: 14px; }
.rb-table-map-name { font-weight: 800; font-size: 18px; text-align: center; }
.rb-table-map-view { background: none; border: none; font-size: 18px; cursor: pointer; padding: 0; }

/* Offers coupons */
.rb-offers-coupons-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.rb-offer-coupon-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.rb-offer-coupon-card.eligible { border-color: #86efac; background: #f0fdf4; }
.rb-offer-coupon-code { font-weight: 900; font-size: 16px; color: #166534; }
.rb-offer-coupon-desc { font-size: 13px; color: #555; flex: 1; min-width: 140px; }
.rb-offer-apply-btn { background: #10b981; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.rb-offer-not-eligible { font-size: 12px; color: #999; }

/* POS */
.rb-pos-app { min-height: 0; background: #f4f4f4; font-family: var(--font-sans); height: var(--rb-pos-viewport-h, calc(100dvh - 52px)); overflow: hidden; display: flex; flex-direction: column; }
.rb-pos-tabs-bar { flex-shrink: 0; display: flex; align-items: stretch; padding: 8px 10px 0; min-height: 48px; background: #f4f4f4; }
.rb-pos-layout { display: grid; grid-template-columns: 132px minmax(0, 1fr) minmax(var(--rb-pos-cart-min, 300px), var(--rb-pos-cart-max, 340px)); gap: 0; flex: 1; min-height: 0; overflow: hidden; }
.rb-pos-cats-sidebar { background: #2d2d2d; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.rb-pos-cats--sidebar { display: flex; flex-direction: column; gap: 0; width: 100%; padding: 0; }
.rb-pos-cats--sidebar .rb-pos-cat-btn { width: 100%; border: none; border-radius: 0; background: transparent; color: rgba(255,255,255,0.85); padding: 14px 10px; font-size: 12px; font-weight: 700; text-align: left; white-space: normal; line-height: 1.25; border-left: 3px solid transparent; }
.rb-pos-cats--sidebar .rb-pos-cat-btn.active { background: #10b981; color: #fff; border-left-color: #059669; }
.rb-pos-main { min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #f4f4f4; }
.rb-pos-main .rb-pos-tabs-bar { background: #f4f4f4; }
.rb-pos-products { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: grid; grid-template-columns: repeat(var(--rb-pos-cols-desktop, 4), minmax(0, 1fr)); gap: 10px; align-content: start; }
.rb-pos-product-btn { position: relative; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px 10px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: var(--rb-pos-item-min-h, 72px); transition: box-shadow 0.15s, border-color 0.15s; }
.rb-pos-product-btn:active, .rb-pos-product-btn.has-qty { border-color: var(--accent-color, #f28c5a); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.rb-pos-qty-badge { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--accent-color, #f28c5a); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.rb-pos-product-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 2px; }
.rb-pos-product-icon img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; filter: grayscale(1) contrast(1.1); opacity: 0.85; }
.rb-pos-product-icon-svg { color: #555; }
.rb-pos-product-icon-svg svg { width: 32px; height: 32px; display: block; }
.rb-pos-product-title { font-weight: 700; font-size: var(--rb-pos-item-font, 12px); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
.rb-pos-app[data-show-price="0"] .rb-pos-product-price { display: none !important; }
.rb-pos-product-price { color: var(--price-color, #f28c5a); font-weight: 700; font-size: 11px; margin-top: auto; }
.rb-pos-cart-panel { background: #fff; border-left: 1px solid #eee; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; min-height: 0; height: 100%; max-height: 100%; overflow: hidden; }
.rb-pos-cart-items { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rb-pos-total { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.rb-pos-continue-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 180; background: #111; color: #fff; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
.rb-pos-continue-summary { font-size: 14px; font-weight: 600; opacity: 0.9; }
.rb-pos-continue-btn { background: var(--accent-color, #f28c5a); color: #fff; border: none; padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; }
.rb-pos-continue-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rb-pos-continue-fields { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.rb-pos-continue-fields .rb-form-input,
.rb-pos-mc-fields .rb-form-input { padding: 8px 10px; font-size: 13px; }
.rb-pos-continue-fields .rb-pos-order-notes,
.rb-pos-mc-fields .rb-pos-order-notes { padding: 6px 10px !important; font-size: 12px !important; height: 32px; }
.rb-pos-field-label { font-size: 12px; font-weight: 700; color: #555; margin-top: 4px; }
.rb-pos-continue-inner { max-width: 420px; }
@media (min-width: 1024px) {
    .rb-pos-product-btn { min-height: 88px; padding: 12px 10px; }
    .rb-pos-product-title { font-size: 13px; }
}

/* Active order tracking bar — fixed bottom shell */
.rb-bottom-shell { position: fixed; bottom: 0; left: 0; right: 0; z-index: 110; pointer-events: none; width: 100%; max-width: none; margin: 0; padding: 0; }
.rb-bottom-shell > * { pointer-events: auto; }
.rb-active-order-tracker { width: 100%; }
.rb-active-order-bar { position: relative; top: auto; z-index: 111; background: linear-gradient(135deg, #1c64f2, #3b82f6); color: #fff; padding: 10px 14px; box-shadow: 0 -2px 12px rgba(0,0,0,0.12); border-radius: 0; width: 100%; box-sizing: border-box; }
.rb-has-sticky-topbar .rb-active-order-bar { top: auto; }
.rb-staff-bottom-bar { background: #111; padding: 12px 16px; text-align: center; border-top: 1px solid rgba(255,255,255,0.08); border-radius: 0; width: 100%; box-sizing: border-box; }
.rb-cart-upsells { padding: 12px 0 8px; margin-bottom: 0; }
.rb-cart-upsells:not(.rb-section-hidden) { border-top: 1px solid var(--border-color); }
.rb-cart-upsells-title { font-size: 13px; font-weight: 800; margin: 0 0 8px; color: var(--text-dark); }
.rb-cart-upsells-list { display: flex; flex-direction: row; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
.rb-cart-upsells-list::-webkit-scrollbar { display: none; }
.rb-cart-upsell-item { flex: 0 0 70%; min-width: 70%; scroll-snap-align: start; display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; cursor: pointer; font-family: var(--font-sans); text-align: left; box-sizing: border-box; }
.rb-cart-upsell-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f3f4f6; }
.rb-cart-upsell-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.rb-cart-upsell-price { font-size: 13px; font-weight: 800; color: var(--price-color); flex-shrink: 0; }
.rb-cart-upsell-add { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-color, #f28c5a); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.rb-staff-admin-link { color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: 0.02em; display: block; }
.rb-menu-container { padding-bottom: 16px; }
body.rb-has-staff-bar .rb-menu-container { padding-bottom: 56px; }
body.rb-has-active-order .rb-menu-container { padding-bottom: 56px; }
body.rb-has-active-order.rb-has-staff-bar .rb-menu-container { padding-bottom: 104px; }
body.rb-has-active-order .rb-product-list,
body.rb-has-active-order .rb-category-panel .rb-product-list,
body.rb-has-active-order .rb-infinite-menu { padding-bottom: 140px; }
body.rb-has-staff-bar .rb-product-list,
body.rb-has-staff-bar .rb-category-panel .rb-product-list,
body.rb-has-staff-bar .rb-infinite-menu { padding-bottom: 140px; }
body.rb-has-active-order.rb-has-staff-bar .rb-product-list,
body.rb-has-active-order.rb-has-staff-bar .rb-category-panel .rb-product-list,
body.rb-has-active-order.rb-has-staff-bar .rb-infinite-menu { padding-bottom: 180px; }
.rb-active-order-inner { display: flex; align-items: center; gap: 10px; max-width: 600px; margin: 0 auto; }
.rb-active-order-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rb-active-order-label { font-weight: 700; font-size: 14px; }
.rb-active-order-status { font-size: 12px; opacity: 0.9; }
.rb-active-order-btn { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rb-active-order-pay { background: #10b981; border-color: #10b981; }
body.rb-has-active-order .rb-bottom-nav-wrapper { padding-bottom: 0; }

/* Outlet selector */
.rb-outlet-selector-wrap { margin-top: 8px; }
.rb-outlet-selector { width: 100%; max-width: 220px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-color, #eee); font-size: 14px; font-weight: 600; background: #fff; color: var(--text-dark); }

/* Loyalty */
.rb-loyalty-area { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px; }
.rb-loyalty-area.rb-section-hidden { background: transparent; border: none; padding: 0; }
.rb-loyalty-balance { font-size: 14px; margin-bottom: 8px; color: #92400e; }
.rb-loyalty-redeem-row { display: flex; gap: 8px; }
.rb-loyalty-redeem-row input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; }
.rb-loyalty-redeem-row button { background: #f59e0b; color: #fff; border: none; padding: 8px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.rb-loyalty-applied { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 8px 10px; background: #fef3c7; border-radius: 8px; font-size: 13px; }
.rb-loyalty-applied button { background: none; border: none; font-size: 18px; cursor: pointer; color: #999; }
.rb-success-loyalty { color: #166534; font-size: 14px; margin-top: 8px; }
.rb-success-pay-btn { background: #10b981 !important; }

/* Staff top bar */
.rb-staff-topbar { background: #111; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; position: sticky; top: 0; z-index: 200; }
.rb-staff-topbar-brand { font-weight: 800; font-size: 15px; }
.rb-staff-topbar-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rb-staff-topbar-link { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; }
.rb-staff-topbar-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: 0.9; }
.rb-staff-topbar-icon svg { width: 18px; height: 18px; display: block; }
.rb-staff-topbar-link:hover, .rb-staff-topbar-link.active { color: #fff; background: rgba(255,255,255,0.12); }
.rb-staff-topbar-admin { color: #bfdbfe; }
.rb-staff-topbar-logout { color: #fca5a5; }
@media (max-width: 768px) {
    .rb-staff-topbar { padding: 8px 6px; justify-content: center; gap: 0; }
    .rb-staff-topbar-brand { display: none; }
    .rb-staff-topbar-nav { width: 100%; justify-content: space-around; flex-wrap: nowrap; gap: 2px; }
    .rb-staff-topbar-link { flex: 1; justify-content: center; padding: 8px 4px; font-size: 11px; flex-direction: column; gap: 2px; }
    .rb-staff-topbar-link span:not(.rb-staff-topbar-icon) { font-size: 10px; line-height: 1.1; }
}
.rb-staff-page { min-height: 100vh; background: #f4f4f4; }
.rb-staff-pos-page .rb-pos-app { height: calc(100dvh - 52px); min-height: calc(100dvh - 52px); }
.rb-has-staff-bottom-nav .rb-pos-app { height: calc(var(--rb-pos-viewport-h, calc(100dvh - 52px)) - 72px); }
@media (max-width: 900px) {
    .rb-has-staff-bottom-nav .rb-pos-app { padding-bottom: calc(64px + 72px); }
}
.rb-staff-orders-wrap { padding: 16px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) {
    .rb-orders-toolbar .rb-create-open-order-btn { min-width: auto; padding: 10px 14px; }
}
.rb-pos-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rb-pos-success-content { max-height: 50vh; overflow-y: auto; margin-bottom: 12px; }
.rb-pos-success-actions { flex-wrap: wrap; }
.rb-pos-print-btn, .rb-pos-edit-btn { background: #1c64f2; color: #fff; border: none; padding: 8px 12px; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); white-space: nowrap; }
.rb-pos-success-header .rb-pos-edit-btn { flex-shrink: 0; font-size: 13px; padding: 8px 14px; }
.rb-table-order-actions { flex-wrap: wrap; }
.rb-table-map-view-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.rb-table-map-view { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.15); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.rb-table-map-eye { font-size: 18px; line-height: 1; }
.rb-table-map-total { font-size: 11px; font-weight: 800; color: #166534; }
.rb-table-map-item.active .rb-table-map-view { border-color: #f59e0b; }

/* Loyalty wallet */
.rb-loyalty-wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rb-loyalty-wallet-text { font-size: 14px; color: #92400e; flex: 1; }
.rb-loyalty-use-btn { background: #f59e0b; color: #fff; border: none; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* Side drawer */
.rb-side-drawer { position: fixed; top: 0; left: 0; width: 280px; max-width: 85vw; height: 100%; background: #fff; z-index: 320; transform: translateX(-100%); transition: transform 0.28s ease; box-shadow: 2px 0 16px rgba(0,0,0,0.12); display: flex; flex-direction: column; }
.rb-side-drawer.open { transform: translateX(0); }
.rb-side-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-color); font-size: 16px; }
.rb-drawer-close { border: none; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: #666; padding: 0 4px; }
.rb-side-drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.rb-drawer-link { display: flex; align-items: center; width: 100%; border: none; background: transparent; text-align: left; padding: 14px 20px; font-size: 16px; font-weight: 600; color: var(--text-dark); cursor: pointer; text-decoration: none; }
.rb-drawer-link:hover, .rb-drawer-link:focus { background: #f8f8f8; }
.rb-drawer-account { border-bottom: 1px solid var(--border-color); margin-bottom: 4px; }
.rb-drawer-account-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 12px; }
.rb-drawer-account-text { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text-dark); flex: 1; min-width: 0; }
.rb-drawer-account-muted { display: block; font-size: 12px; color: var(--text-light, #888); font-weight: 600; margin-bottom: 4px; }
.rb-drawer-account-phone { display: block; font-size: 15px; font-weight: 700; }
.rb-drawer-logout-btn { flex-shrink: 0; background: none; border: 1px solid var(--border-color); color: #666; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-family: var(--font-sans); }
.rb-drawer-logout-btn:hover, .rb-drawer-logout-btn:focus { border-color: #e11d48; color: #e11d48; background: #fef2f2; }
.rb-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 310; opacity: 0; pointer-events: none; transition: opacity 0.28s ease; }
.rb-drawer-overlay.open { opacity: 1; pointer-events: auto; }
body.rb-drawer-open { overflow: hidden; }

/* Pickup payment badge */
.rb-order-paid-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.rb-order-paid-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.rb-order-paid-yes { background: #d1fae5; color: #065f46; }
.rb-order-paid-no { background: #fee2e2; color: #991b1b; }
.rb-toggle-paid-btn { border: 1px solid #ddd; background: #fff; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.rb-new-order-paid-wrap { margin: 10px 0 4px; }
.rb-form-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.rb-pos-paid-label { display: flex !important; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }

/* Menu editor — one column on mobile, two on tablet/desktop */
.rb-frontend-menu-editor { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 600px) {
    .rb-frontend-menu-editor { grid-template-columns: 1fr 1fr; }
    .rb-frontend-menu-editor .rb-admin-menu-item { margin-bottom: 0 !important; }
}

/* Loyalty points page */
.rb-loyalty-page-wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; min-height: 60vh; }
.rb-loyalty-page-header { text-align: center; margin-bottom: 20px; }
.rb-loyalty-page-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.rb-loyalty-page-sub { margin: 0; color: #666; font-size: 14px; }
.rb-loyalty-page-root { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 16px; }
.rb-loyalty-balance-card { background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 12px; padding: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.rb-loyalty-balance-label { font-size: 13px; color: #92400e; font-weight: 600; }
.rb-loyalty-balance-value { font-size: 28px; font-weight: 900; color: #78350f; }
.rb-loyalty-tx-list { display: flex; flex-direction: column; gap: 10px; }
.rb-loyalty-tx-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #eee; border-radius: 10px; background: #fafafa; }
.rb-loyalty-tx-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-loyalty-tx-label { font-size: 14px; font-weight: 700; color: #333; }
.rb-loyalty-tx-date { font-size: 12px; color: #888; }
.rb-loyalty-tx-order { font-weight: 600; color: #666; }
.rb-loyalty-tx-points { font-size: 16px; font-weight: 800; white-space: nowrap; }
.rb-loyalty-tx-earn .rb-loyalty-tx-points { color: #059669; }
.rb-loyalty-tx-redeem .rb-loyalty-tx-points { color: #dc2626; }
.rb-loyalty-tx-expired .rb-loyalty-tx-points { color: #9ca3af; text-decoration: line-through; }
.rb-loyalty-tx-expired { opacity: 0.75; }
.rb-loyalty-empty, .rb-loyalty-loading { text-align: center; color: #666; padding: 24px 12px; }
.rb-loyalty-gate p { margin: 0 0 12px; color: #666; font-size: 14px; }
.rb-loyalty-gate-error { color: #dc2626; font-size: 13px; margin-top: 10px; }

/* v1.64 UI updates */
.rb-diet-filter-bar--toggles { display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.rb-diet-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-dark); }
.rb-diet-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.rb-diet-switch { width: 36px; height: 20px; background: #d1d5db; border-radius: 999px; position: relative; transition: background 0.2s; flex-shrink: 0; }
.rb-diet-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.rb-diet-toggle-input:checked + .rb-diet-switch { background: var(--accent-color, #ef4f5f); }
.rb-diet-toggle-input:checked + .rb-diet-switch::after { transform: translateX(16px); }
.rb-category-bar-wrap { display: flex; align-items: stretch; border-bottom: 1px solid var(--border-color); background: var(--bg-color); }
.rb-category-bar-wrap .rb-category-slider { flex: 1; min-width: 0; border-bottom: none; padding-right: 0; }
.rb-category-slider .rb-chip { font-size: 13px; padding: 10px 12px 8px; border-radius: 0; background: transparent; border: none; border-bottom: 3px solid transparent; color: #666; font-weight: 600; }
.rb-category-slider .rb-chip.active { color: var(--accent-color, #ef4f5f); border-bottom-color: var(--accent-color, #ef4f5f); background: transparent; }
.rb-cat-list-btn { flex-shrink: 0; width: 44px; border: none; border-left: 1px solid var(--border-color); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-dark); position: sticky; right: 0; z-index: 2; }
.rb-cart-next-bar { background: var(--accent-color, #ef4f5f); color: #fff; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,0.16); gap: 12px; font-family: var(--font-sans); font-size: 16px; font-weight: bold; }
.rb-cart-next-left { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.rb-cart-next-count { font-size: 16px; font-weight: bold; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.rb-cart-next-right { font-size: 16px; font-weight: bold; white-space: nowrap; flex-shrink: 0; }
.rb-cart-next-sep, .rb-cart-next-total { display: none !important; }
.rb-active-order-tracker { background: linear-gradient(135deg, #1c64f2, #3b82f6); color: #fff; overflow: hidden; }
.rb-active-order-track { overflow: hidden; }
.rb-active-order-slides { display: flex; transition: transform 0.3s ease; }
.rb-active-order-slide { flex: 0 0 100%; padding: 10px 14px; }
.rb-active-order-dots { display: flex; justify-content: center; gap: 6px; padding: 0 0 6px; }
.rb-active-order-dot { width: 6px; height: 6px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); padding: 0; cursor: pointer; }
.rb-active-order-dot.active { background: #fff; }
.rb-drawer-link:hover, .rb-drawer-link:focus { background: rgba(242, 140, 90, 0.12); color: var(--accent-color, #f28c5a); }
.rb-drawer-dot, .rb-order-active-dot { display: inline-block; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; margin-right: 6px; animation: rb-blink 1s infinite; vertical-align: middle; }
.rb-staff-new-dot { display: inline-block; width: 10px; height: 10px; background: #f59e0b; border-radius: 50%; margin-right: 6px; animation: rb-blink 1s infinite; vertical-align: middle; }
@keyframes rb-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.rb-order-card-completed { border: 2px solid #10b981 !important; }
.rb-order-card-delivered { border: 2px solid #f59e0b !important; }
.rb-user-order-active { border-left: 3px solid #ef4444; }
.rb-drawer-store-logo { max-height: 32px; max-width: 140px; object-fit: contain; }
.rb-pos-mobile-checkout { position: fixed; inset: 0; z-index: 500; background: #fff; display: none; flex-direction: column; }
.rb-pos-mobile-checkout.open { display: flex; }
body.rb-pos-mc-open { overflow: hidden; }
.rb-pos-mc-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; background: #fff; flex-shrink: 0; position: relative; z-index: 12; }
.rb-pos-mc-header-title { font-size: 15px; font-weight: 700; color: #222; }
.rb-pos-mc-back { background: none; border: none; color: #333; font-size: 22px; cursor: pointer; padding: 4px 8px; flex-shrink: 0; touch-action: manipulation; line-height: 1; }
.rb-pos-mc-type-row { flex-shrink: 0; background: #fff; border-bottom: 1px solid #eee; }
.rb-pos-mc-type-tabs { display: flex; width: 100%; gap: 0; border-bottom: none; min-width: 0; position: relative; z-index: 2; }
.rb-pos-mc-type-tabs .rb-type-opt { flex: 1; min-width: 0 !important; border: none !important; border-radius: 0 !important; background: #fff !important; padding: 14px 8px; font-size: 14px; font-weight: 700; color: #333; border-bottom: 3px solid transparent !important; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rb-pos-mc-type-tabs .rb-type-opt.active { color: #c41e3a !important; border-bottom-color: #c41e3a !important; background: #fff5f5 !important; }
.rb-pos-success-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rb-pos-success-header h3 { margin: 0; flex: 1; }
.rb-pos-success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rb-pos-success-actions .rb-slip-btn { width: 100%; justify-content: center; box-sizing: border-box; }
.rb-pos-success-inner { max-width: 480px; width: 94%; }
.rb-pos-success-content .rb-admin-order-card { box-shadow: none; border: 1px solid #eee; }
.rb-pos-mc-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }
.rb-pos-mc-bill-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 700; }
.rb-pos-mc-bill-label { font-size: 15px; color: #111; }
.rb-pos-mc-bill-ref { font-size: 13px; color: #888; font-weight: 600; }
.rb-pos-mc-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rb-pos-mc-cart-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #888; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.rb-pos-mc-cart-items { display: flex; flex-direction: column; gap: 0; }
.rb-pos-mc-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.rb-pos-mc-item-info { min-width: 0; }
.rb-pos-mc-item-title { font-size: 14px; font-weight: 600; color: #222; line-height: 1.3; }
.rb-pos-mc-item-controls { display: flex; align-items: center; gap: 0; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.rb-pos-mc-qty-btn { width: 32px; height: 32px; border: none; background: #f5f5f5; font-size: 18px; font-weight: 700; cursor: pointer; color: #333; }
.rb-pos-mc-qty-val { width: 36px; text-align: center; font-size: 14px; font-weight: 700; border-left: 1px solid #ddd; border-right: 1px solid #ddd; line-height: 32px; }
.rb-pos-mc-item-price { font-size: 14px; font-weight: 700; color: #111; white-space: nowrap; min-width: 72px; text-align: right; }
.rb-pos-mc-empty { text-align: center; color: #999; padding: 24px 0; font-size: 13px; }
.rb-pos-mc-footer { flex-shrink: 0; padding: 12px 16px 16px; border-top: 1px solid #eee; background: #fafafa; }
.rb-pos-mc-total-row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 800; margin: 8px 0 10px; }
.rb-pos-mc-total-amt { font-size: 22px; }
.rb-pos-mc-paid-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.rb-pos-mc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rb-pos-mc-place { padding: 14px; border: none; border-radius: 8px; background: #1e3a5f; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.rb-pos-mc-place-print { padding: 14px; border: none; border-radius: 8px; background: #c41e3a; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }

/* v1.67 POS + orders */
.rb-pos-tabs-scroll { flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.rb-pos-tabs-track { display: inline-flex; align-items: center; gap: 10px; padding: 2px 4px 2px 0; min-width: min-content; }
.rb-pos-tab-wrap { position: relative; flex-shrink: 0; }
.rb-pos-tab { border: 2px solid #d8d8d8; background: #ececec; border-radius: 12px; padding: 8px 14px; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; min-height: 48px; min-width: 72px; line-height: 1.2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; color: #333; }
.rb-pos-tab-title { font-size: 15px; font-weight: 800; line-height: 1.15; }
.rb-pos-tab-sub { font-size: 11px; font-weight: 600; line-height: 1.2; opacity: 0.72; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-pos-tab.active, .rb-pos-tab-wrap.active .rb-pos-tab { background: #111; color: #fff; border-color: #111; }
.rb-pos-tab.active .rb-pos-tab-sub, .rb-pos-tab-wrap.active .rb-pos-tab .rb-pos-tab-sub { opacity: 0.85; color: rgba(255,255,255,0.9); }
.rb-pos-tab-close { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #666; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.rb-pos-tab-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.rb-pos-tab-add { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; border: 2px dashed #aaa; background: #fff; font-size: 22px; font-weight: 700; cursor: pointer; flex-shrink: 0; position: sticky; right: 0; align-self: center; }
.rb-pos-tab-add:hover { border-color: #111; background: #f8f8f8; }
.rb-pos-field-hint { font-size: 11px; color: #888; margin: -2px 0 6px; line-height: 1.35; }
.rb-pos-type-picker--inline { display: flex; flex-wrap: nowrap; gap: 0; margin-bottom: 8px; flex-shrink: 0; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.rb-pos-type-picker--inline .rb-type-opt { flex: 1; padding: 10px 8px; font-size: 12px; min-width: 0; border: none !important; border-radius: 0 !important; background: #fff !important; color: #333; font-weight: 700; border-bottom: 3px solid transparent !important; }
.rb-pos-type-picker--inline .rb-type-opt.active { color: #c41e3a !important; background: #fff5f5 !important; border-bottom-color: #c41e3a !important; }
.rb-pos-desktop-fields { display: flex; flex-direction: column; gap: 5px; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.rb-pos-desktop-fields .rb-form-input { padding: 8px 10px; font-size: 13px; }
.rb-pos-field-row { display: grid; gap: 8px; }
.rb-pos-field-row--2 { grid-template-columns: 1fr 1fr; }
.rb-pos-field-row--notes { grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.rb-pos-order-notes { padding: 6px 10px !important; font-size: 12px !important; height: 32px; min-width: 0; }
.rb-pos-desktop-fields .rb-pos-paid-label { font-size: 12px; margin: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.rb-pos-cart-section { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.rb-pos-cart-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; margin-bottom: 4px; }
.rb-pos-cart-section-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #888; }
.rb-pos-add-custom-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px dashed #aaa; background: #fff; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; color: #333; flex-shrink: 0; }
.rb-pos-cart-table-head { display: grid; grid-template-columns: 1fr 28px 44px 48px 24px; gap: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; color: #999; padding: 0 0 4px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.rb-pos-cart-row-title { line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-pos-cart-row-qty, .rb-pos-cart-row-amt { text-align: right; font-weight: 600; white-space: nowrap; }
.rb-pos-cart-row-qty { text-align: center; }
.rb-pos-cart-panel { position: relative; }
.rb-pos-cart-panel-head { display: none; }
.rb-pos-gst-lines { flex-shrink: 0; }
.rb-pos-gst-line { font-size: 12px; font-weight: 600; color: #555; margin-bottom: 2px; }
.rb-pos-subtotal-line { font-size: 13px; font-weight: 700; }
.rb-pos-custom-charges { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #e5e7eb; }
.rb-pos-custom-charges-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #555; }
.rb-pos-add-charge-btn { border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.rb-pos-custom-charge-row { display: grid; grid-template-columns: 1fr 88px 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rb-pos-custom-charge-row .rb-form-input { padding: 8px 10px !important; font-size: 13px !important; margin: 0 !important; }
.rb-pos-charge-remove { width: 32px; height: 32px; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; color: #b91c1c; }
.rb-pos-cart-footer { flex-shrink: 0; border-top: 1px solid #eee; padding-top: 6px; margin-top: 0; background: #fff; }
.rb-pos-total-line { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.rb-pos-grand-total { font-size: 16px; margin-top: 4px; }
.rb-pos-place-desktop { width: 100%; padding: 12px; border: none; border-radius: 10px; background: #6366f1; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.rb-pos-place-desktop:disabled { opacity: 0.4; cursor: not-allowed; }
.rb-pos-place-btn { background: #6366f1 !important; color: #fff !important; }
@media (min-width: 901px) {
    .rb-pos-grand-total { font-size: 20px; margin-top: 6px; }
    .rb-pos-grand-total span:last-child { font-size: 28px; line-height: 1.1; }
    .rb-pos-place-desktop { padding: 16px; font-size: 17px; border-radius: 12px; }
}
.rb-pos-cart-close { display: none; border: none; background: none; font-size: 24px; cursor: pointer; color: #666; }
.rb-pos-cart-row { display: grid; grid-template-columns: 1fr 28px 44px 48px 24px; gap: 4px; align-items: center; padding: 5px 0; border-bottom: 1px dashed #eee; font-size: 11px; }
.rb-pos-cart-row-title { flex: 1; line-height: 1.3; }
.rb-pos-cart-row-price { font-weight: 700; white-space: nowrap; font-size: 12px; }
.rb-pos-cart-remove { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 14px; flex-shrink: 0; }
.rb-pos-cart-empty { font-size: 12px; color: #999; text-align: center; padding: 16px 0; }
.rb-pos-product-btn { min-height: 72px; aspect-ratio: auto; padding: 10px 8px; }
.rb-pos-view-cart-btn { display: none; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.rb-pos-continue-bar { padding: 10px 14px; gap: 8px; }
.rb-pos-continue-summary { font-size: 13px; font-weight: 800; }
.rb-pos-continue-btn { padding: 10px 20px; font-size: 13px; }
.rb-pos-variant-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.rb-pos-variant-opt { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px; border: 1px solid #eee; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; }
.rb-pos-bill-preview, .rb-bill-actions-preview { max-height: 50vh; overflow: auto; border: 1px solid #eee; border-radius: 8px; padding: 8px; margin-bottom: 12px; background: #fafafa; }
.rb-bill-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rb-bill-modal-actions .rb-bill-actions-close,
.rb-bill-modal-actions .rb-pos-bill-close { grid-column: 1 / -1; }
.rb-pos-custom-inner { display: flex; flex-direction: column; gap: 12px; }
.rb-pos-custom-inner h3 { margin: 0; }
.rb-pos-custom-inner .rb-form-input { margin: 0; }
.rb-pos-custom-inner .rb-order-add-modal-actions { margin-top: 4px; }
.rb-order-card-attention { border: 2px solid #ef4444 !important; }
@media (max-width: 767px) {
    .rb-orders-toolbar { flex-direction: column; align-items: stretch; position: static; padding: 0; background: transparent; }
    .rb-orders-toolbar .rb-order-search-bar { margin-bottom: 0; }
    .rb-orders-toolbar .rb-create-open-order-btn {
        position: fixed;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        z-index: 1000;
        width: auto;
        min-width: auto;
        height: auto;
        border-radius: 28px;
        padding: 12px 18px;
        font-size: 14px;
        line-height: 1.2;
        box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    }
    .rb-orders-toolbar .rb-create-open-order-btn .rb-fab-plus { font-size: 16px; }
    .rb-staff-orders-page .rb-orders-toolbar .rb-create-open-order-btn { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .rb-admin-dashboard-app .rb-orders-toolbar .rb-create-open-order-btn { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) {
    .rb-orders-toolbar .rb-create-open-order-btn::after { content: none; }
}
.rb-order-status-row { flex-wrap: nowrap !important; flex-shrink: 0; }
.rb-order-status-row .rb-status-btn, .rb-order-status-row .rb-status-current { font-size: 11px; padding: 5px 8px; white-space: nowrap; }
.rb-order-card-options { position: absolute; right: 8px; bottom: 6px; }
.rb-order-options-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; color: #555; }
.rb-order-options-menu { display: none; position: absolute; right: 0; bottom: 32px; background: #fff; border: 1px solid #eee; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); min-width: 130px; z-index: 5; overflow: hidden; }
.rb-order-card-options.open .rb-order-options-menu { display: flex; flex-direction: column; }
.rb-order-options-menu button { border: none; background: #fff; padding: 10px 14px; text-align: left; font-size: 13px; font-weight: 600; cursor: pointer; }
.rb-order-options-menu button:hover { background: #f4f4f4; }
@media (max-width: 900px) {
    .rb-pos-app { padding-bottom: 64px; }
    .rb-pos-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
    .rb-pos-tabs-bar { flex-shrink: 0; }
    .rb-pos-cats-sidebar { background: #fff; border-bottom: 1px solid #eee; overflow-x: auto; overflow-y: hidden; flex-shrink: 0; }
    .rb-pos-cats--sidebar { flex-direction: row; width: max-content; min-width: 100%; }
    .rb-pos-cats--sidebar .rb-pos-cat-btn { width: auto; white-space: nowrap; padding: 10px 14px; color: #333; border-left: none; border-bottom: 3px solid transparent; font-size: 12px; }
    .rb-pos-cats--sidebar .rb-pos-cat-btn.active { background: transparent; color: #c41e3a; border-bottom-color: #c41e3a; }
    .rb-pos-main { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
    .rb-pos-products { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; padding-bottom: 80px; grid-template-columns: repeat(var(--rb-pos-cols-mobile, 3), minmax(0, 1fr)); gap: 8px; }
    .rb-pos-product-btn { min-height: 64px; padding: 8px 6px; }
    .rb-pos-product-title { font-size: 11px; }
    .rb-pos-cart-panel { display: none !important; }
    .rb-pos-continue-bar { display: flex; }
    .rb-pos-mobile-checkout.open { display: flex; }
}
@media (min-width: 901px) {
    .rb-pos-continue-bar { display: none !important; }
    .rb-pos-app { padding-bottom: 0; }
}
body.admin-bar .rb-pos-app { height: var(--rb-pos-viewport-h, calc(100dvh - 84px)); }

.rb-recent-orders-wrap { max-width: 480px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rb-recent-orders-empty { text-align: center; color: #666; padding: 24px 12px; margin: 0; }
.rb-recent-order-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.rb-recent-order-meta { margin-bottom: 10px; }
.rb-recent-order-location { font-size: 15px; font-weight: 700; color: var(--text-dark, #333); line-height: 1.35; }
.rb-recent-order-date { font-size: 12px; color: #888; margin-top: 4px; }
.rb-recent-order-items { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rb-recent-order-items li { font-size: 14px; color: var(--text-dark, #333); line-height: 1.4; padding: 6px 0; border-bottom: 1px solid #f3f3f3; }
.rb-recent-order-items li:last-child { border-bottom: none; }
.rb-recent-order-share-btn { width: 100%; border: none; border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 700; cursor: pointer; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rb-recent-order-share-btn:active { opacity: 0.9; }
.rb-recent-order-field { font-size: 13px; color: var(--text-dark, #333); line-height: 1.35; margin-top: 4px; }
.rb-recent-order-field--order_id { font-weight: 700; }
.rb-recent-order-field--total { font-weight: 700; color: var(--accent-color, #f28c5a); }

.rb-menu-bulk-sheet-app { background: #fff; border: 1px solid #ccd0d4; border-radius: 8px; padding: 16px; }
.rb-menu-bulk-sheet-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.rb-menu-bulk-status { font-size: 13px; font-weight: 600; margin-left: auto; }
.rb-menu-bulk-sheet-scroll { overflow: auto; max-height: calc(100vh - 220px); border: 1px solid #e5e7eb; border-radius: 8px; }
.rb-menu-bulk-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 13px; }
.rb-menu-bulk-table th, .rb-menu-bulk-table td { border: 1px solid #e5e7eb; padding: 8px; vertical-align: top; background: #fff; }
.rb-menu-bulk-table th { position: sticky; top: 0; z-index: 2; background: #f9fafb; font-weight: 700; white-space: nowrap; }
.rb-menu-bulk-table tbody tr:nth-child(even) td { background: #fcfcfc; }
.rb-bulk-img-cell { min-width: 110px; }
.rb-bulk-img-preview { width: 72px; height: 72px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; background: #f3f4f6; }
.rb-bulk-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.rb-bulk-no-img { color: #9ca3af; font-size: 12px; }
.rb-bulk-img-actions { display: flex; flex-direction: column; gap: 4px; }
.rb-bulk-id { color: #6b7280; white-space: nowrap; }
.rb-bulk-title { min-width: 160px; }
.rb-bulk-desc { min-width: 200px; }
.rb-bulk-cats, .rb-bulk-tables, .rb-bulk-outlets { min-width: 140px; }
.rb-bulk-variants { min-width: 260px; font-family: ui-monospace, monospace; font-size: 11px; }
.rb-bulk-diet-cell label { display: block; white-space: nowrap; margin: 2px 0; }
