/* =======================================================================
   Beez App Shell — shared sidebar dashboard used by the owner dashboard
   ([beez_dashboard]) and the front-end superadmin panel ([beez_superadmin]).
   Builds on the brand tokens defined in beez.css.
   ======================================================================= */

.beez-app, .beez-app *, .beez-app *::before, .beez-app *::after {
	box-sizing: border-box;
}
.beez-app {
	font-family: var(--beez-font);
	color: var(--beez-ink);
	display: flex;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--beez-cream);
	max-width: none;
}

/* -------------------------------------------------------- sidebar backdrop */
.beez-app-sidebar-backdrop {
	display: none;
	position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 190;
	opacity: 0; transition: opacity .2s ease;
}

/* --------------------------------------------------------------- sidebar */
.beez-app-sidebar {
	width: 264px;
	flex: none;
	background: #111;
	color: #fff;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100dvh; /* mobile browsers: 100vh is taller than the visible screen while the address bar is shown, clipping the footer/logout link below the fold */
	z-index: 200;
	transition: transform .22s ease;
}
.beez-app-sidebar-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.beez-app-logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 15.5px; }
.beez-app-sidebar-close { display: none; background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .7; }

.beez-app-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.beez-app-nav-item {
	display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
	background: none; border: none; color: rgba(255,255,255,.72); padding: 11px 14px;
	border-radius: 12px; font-family: inherit; font-size: 13.5px; font-weight: 700;
	cursor: pointer; margin-bottom: 4px; transition: background .15s, color .15s; text-decoration: none;
}
.beez-app-nav-item span { font-size: 15px; width: 20px; text-align: center; }
.beez-app-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.beez-app-nav-item.active { background: #E8184B; color: #fff; box-shadow: none; }

/* ------------------------------------------------------- nav group (submenu) */
.beez-app-nav-group-toggle { justify-content: flex-start; position: relative; }
.beez-app-nav-caret { margin-left: auto; font-size: 11px; transition: transform .18s ease; opacity: .7; }
.beez-app-nav-group.open .beez-app-nav-caret { transform: rotate(180deg); }
.beez-app-nav-submenu {
	max-height: 0; overflow: hidden; transition: max-height .22s ease;
	display: flex; flex-direction: column;
}
.beez-app-nav-group.open .beez-app-nav-submenu { max-height: 480px; }
.beez-app-nav-subitem { padding-left: 40px; font-size: 12.5px; font-weight: 600; }
.beez-app-nav-subitem span { font-size: 13px; }

/* ------------------------------------------------------- marketing placeholder panels */
.beez-marketing-empty {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	gap: 8px; padding: 56px 24px; max-width: 420px; margin: 0 auto;
}
.beez-marketing-empty-icon {
	font-size: 34px; width: 64px; height: 64px; border-radius: 50%;
	background: var(--beez-cream); display: flex; align-items: center; justify-content: center;
	margin-bottom: 6px;
}
.beez-marketing-empty h3 { margin: 0; font-size: 16px; }
.beez-marketing-empty p { margin: 0; }


.beez-app-sidebar-foot { padding: 14px 12px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.beez-app-logout { color: rgba(255,255,255,.55); }
.beez-app-logout:hover { color: #fff; }
.beez-plan-pill {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 14px;
	margin: 4px 12px 10px; background: rgba(255,255,255,.1); color: #fff;
}
.beez-plan-pill-days {
	font-size: 10px; font-weight: 700; opacity: .75; text-transform: none;
}
.beez-plan-renew-btn {
	display: block; width: calc(100% - 24px); margin: 0 12px 10px; text-align: center;
	text-decoration: none;
}

/* ---------------------------------------------------------------- main */
.beez-app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.beez-app-topbar {
	display: flex; align-items: center; gap: 14px; background: #fff; padding: 14px 26px;
	border-bottom: 1px solid var(--beez-border); position: sticky; top: 0; z-index: 100;
}
.beez-app-burger { display: none; background: none; border: none; font-size: 18px; cursor: pointer; }
.beez-app-topbar-title { flex: 1; display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.beez-app-topbar-title-text { display: flex; flex-direction: column; }
.beez-app-topbar-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; }
.beez-app-topbar-title strong { font-size: 15px; }
.beez-app-topbar-title span { font-size: 12px; color: var(--beez-muted); }
.beez-app-link {
	text-decoration: none; font-weight: 700; font-size: 13px; color: var(--beez-ink);
	background: var(--beez-cream); padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.beez-app-link:hover { color: var(--beez-pink-dark); }

.beez-app-content { padding: 22px 26px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }
.beez-app-view { display: none; }
.beez-app-view.active { display: block; }

/* ------------------------------------------------------------ stat cards */
.beez-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.beez-stat-card {
	display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--beez-radius);
	color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.beez-stat-icon {
	width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.22);
	display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none;
}
.beez-stat-num { font-size: 24px; font-weight: 800; line-height: 1.15; }
.beez-stat-label { font-size: 12.5px; opacity: .9; font-weight: 600; margin-top: 2px; }
.beez-stat-pink   { background: linear-gradient(135deg,#E8184B,#c5103d); }
.beez-stat-purple { background: linear-gradient(135deg,#b224ef,#7b2ff7); }
.beez-stat-blue   { background: linear-gradient(135deg,#3a8dff,#1c62e0); }
.beez-stat-orange { background: var(--beez-grad-orange); }
.beez-stat-teal   { background: linear-gradient(135deg,#1fd1a8,#0ea583); }

/* ----------------------------------------------------------------- card */
.beez-card { background: #fff; border-radius: var(--beez-radius); box-shadow: 0 2px 8px rgba(0,0,0,.07); border: 1px solid #f0f0f0; padding: 22px; margin-bottom: 20px; }
.beez-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.beez-card-head h3 { font-size: 15.5px; margin: 0; }
.beez-card-head-wrap { flex-wrap: wrap; }
.beez-chart-card canvas { max-height: 280px; }
.beez-chart-wrap { position: relative; width: 100%; height: 260px; }
.beez-chart-wrap canvas { max-height: none; }

/* -------------------------------------------------------------- toolbar */
.beez-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.beez-search-input, .beez-filter-select {
	padding: 9px 14px; border: 1.5px solid var(--beez-border); border-radius: var(--beez-radius-sm);
	font-family: inherit; font-size: 13px; background: #fff;
}
.beez-search-input { min-width: 220px; }
.beez-search-input:focus, .beez-filter-select:focus { outline: none; border-color: var(--beez-pink); }

/* ------------------------------------------------------------- data table */
.beez-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.beez-data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.beez-data-table th {
	text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
	color: var(--beez-muted); font-weight: 800; padding: 10px 12px; border-bottom: 2px solid var(--beez-border);
	white-space: nowrap;
}
.beez-data-table td { padding: 12px; border-bottom: 1px solid var(--beez-border); vertical-align: middle; }
.beez-data-table tbody tr:hover { background: var(--beez-cream); }
.beez-data-table td input[type="number"] {
	width: 100px; padding: 6px 8px; border: 1px solid var(--beez-border); border-radius: 6px; font-size: 13px;
}
.beez-data-table td input[type="text"] {
	width: 130px; padding: 6px 8px; border: 1px solid var(--beez-border); border-radius: 6px; font-size: 13px;
}
.beez-data-table .beez-col-check { width: 32px; }
.beez-order-type-delivery { background: #E0EDFF; color: #1D4ED8; margin-left: 6px; vertical-align: middle; }

/* ---- orders table: tighter, calmer rhythm ---- */
.beez-data-table td[data-ts] { white-space: nowrap; color: var(--beez-muted); font-size: 12.5px; }
.beez-data-table th:nth-child(6),
.beez-data-table td:nth-child(6) { text-align: right; }
.beez-data-table td:nth-child(6) { font-weight: 800; color: var(--beez-pink-dark); }

/* ---- status pills (order status / delivery status <select>s) ----
   Native <select>s look plain/inconsistent next to the payment-method
   pill, so these are re-skinned to match: a colored rounded pill whose
   background/text follow the currently selected status via
   data-status, updated live in JS on render + on change. */
.beez-status-select {
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	border: none; border-radius: 999px; padding: 7px 30px 7px 14px; font-family: inherit;
	font-size: 12px; font-weight: 800; cursor: pointer; max-width: 100%;
	background-color: var(--beez-cream); color: var(--beez-ink);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8l5 5 5-5'/></svg>");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
	transition: background-color .12s;
}
.beez-status-select:focus { outline: 2px solid var(--beez-pink); outline-offset: 1px; }
.beez-order-status-select[data-status="pending"]   { background-color: #fff3cd; color: #8a6500; }
.beez-order-status-select[data-status="paid"]      { background-color: #d1f7d6; color: #0a7a2a; }
.beez-order-status-select[data-status="confirmed"] { background-color: #d9ecff; color: #0b5fb3; }
.beez-order-status-select[data-status="cancelled"] { background-color: #fde0e0; color: #a10000; }
.beez-delivery-status-select[data-status="pending"]   { background-color: #fff3cd; color: #8a6500; }
.beez-delivery-status-select[data-status="delivered"] { background-color: #d1f7d6; color: #0a7a2a; }
.beez-order-delivery-row td { padding: 0 12px 12px; border-bottom: 1px solid var(--beez-border); }
.beez-order-delivery-detail {
	display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 10px; background: #F8FAFC; border-radius: 8px;
	font-size: 12.5px; line-height: 1.5; color: #334155;
}

/* ---- "Бүтээгдэхүүн" column on the Захиалгууд (orders/sales) list: thumbnails + name, click for full detail ---- */
.beez-order-products-cell {
	display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 2px 4px;
	cursor: pointer; font: inherit; text-align: left; border-radius: 8px; max-width: 220px;
}
.beez-order-products-cell:hover { background: var(--beez-cream); }
.beez-order-item-thumbs { display: flex; flex-shrink: 0; }
.beez-order-item-thumb, .beez-order-item-thumb-more {
	width: 30px; height: 30px; border-radius: 7px; object-fit: cover; display: block;
	border: 2px solid #fff; box-shadow: 0 0 0 1px var(--beez-border); background: var(--beez-cream);
}
.beez-order-item-thumbs .beez-order-item-thumb:not(:first-child),
.beez-order-item-thumbs .beez-order-item-thumb-more { margin-left: -10px; }
.beez-order-item-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 13px; }
.beez-order-item-thumb-more {
	display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800;
	color: var(--beez-pink-dark);
}
.beez-order-products-name {
	font-size: 12.5px; font-weight: 600; color: #334155; overflow: hidden; text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---- order item detail rows inside the beezOrderItemsModal ---- */
.beez-order-items-list { display: flex; flex-direction: column; gap: 10px; }
.beez-order-item-detail-row {
	display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--beez-cream);
	border-radius: 10px;
}
.beez-order-item-detail-thumb {
	width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center; font-size: 20px; background: #fff;
}
.beez-order-item-detail-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.beez-order-item-detail-info strong { font-size: 13.5px; }
.beez-order-item-detail-meta { font-size: 12px; color: var(--beez-muted); }
.beez-order-item-detail-total { font-size: 13px; font-weight: 800; color: var(--beez-pink-dark); white-space: nowrap; }
.beez-row-actions { display: flex; gap: 6px; white-space: nowrap; }

.beez-icon-btn {
	background: var(--beez-cream); border: none; width: 30px; height: 30px; border-radius: 8px;
	cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.beez-icon-btn:hover { background: #f0dde2; }
.beez-icon-btn-danger:hover { background: #fde0e0; color: #c21b3e; }

/* ---------------------------------------------------------------- chips */
.beez-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.beez-chip {
	display: flex; align-items: center; gap: 8px; background: var(--beez-cream); border-radius: 999px;
	padding: 7px 8px 7px 14px; font-size: 13px; font-weight: 700;
}
.beez-chip-edit, .beez-chip-del {
	background: rgba(0,0,0,.06); border: none; width: 20px; height: 20px; border-radius: 50%;
	font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.beez-chip-del:hover { background: #fde0e0; color: #c21b3e; }

/* ---- color chip thumbnail (small square photo on color chips that have an image) ---- */
.beez-color-chip-thumb {
	width: 22px; height: 22px; border-radius: 4px;
	object-fit: cover; flex-shrink: 0;
}

/* ---- color image upload row inside the color form ---- */
.beez-color-image-upload {
	display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px;
}
.beez-color-image-preview {
	width: 40px; height: 40px; border-radius: 6px; overflow: hidden;
	background: var(--beez-cream); display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.beez-color-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.beez-color-image-remove {
	background: none; border: none; cursor: pointer; color: #c21b3e;
	font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 4px;
}
.beez-color-image-remove:hover { background: #fde0e0; }

/* -------------------------------------------------- multi-select checkbox chips */
.beez-check-chip-group { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px; }
.beez-menu-form-main .beez-check-chip-group .beez-check-chip,
.beez-check-chip {
	display: flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--beez-border);
	border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; margin: 0;
	transition: border-color .15s, background .15s, color .15s; user-select: none; position: relative;
}
.beez-check-chip:hover { border-color: var(--beez-pink); }
.beez-check-chip input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.beez-check-chip:has(input:checked) {
	background: var(--beez-pink); border-color: var(--beez-pink); color: #000;
}
.beez-check-chip-label::before {
	content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 1px; flex: none;
	border: 1.5px solid var(--beez-border); border-radius: 4px; background: #fff; vertical-align: -3px;
}
.beez-check-chip input:checked + .beez-check-chip-label::before {
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23E8184B'><path d='M8 13.2l-3-3 1.4-1.4L8 10.4l5.6-5.6L15 6.2z'/></svg>") no-repeat center / 12px;
	border-color: #fff;
}

/* ------------------------------------------------------------- switches */
.beez-switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.beez-switch input { opacity: 0; width: 0; height: 0; }
.beez-switch-slider {
	position: absolute; cursor: pointer; inset: 0; background: #ddd; border-radius: 999px; transition: .15s;
}
.beez-switch-slider:before {
	content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: #fff;
	border-radius: 50%; transition: .15s;
}
.beez-switch input:checked + .beez-switch-slider { background: var(--beez-teal); }
.beez-switch input:checked + .beez-switch-slider:before { transform: translateX(16px); }

/* ---------------------------------------------------------------- badges */
.beez-badge-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.beez-status-active, .beez-status-sub-active { background: #d1f7d6; color: #0a7a2a; }
.beez-status-pending, .beez-status-sub-trial { background: #fff3cd; color: #8a6500; }
.beez-status-suspended, .beez-status-sub-cancelled { background: #fde0e0; color: #a10000; }
.beez-status-sub-expired { background: #ffe3d1; color: #b3510a; }
.beez-status-sub-paid, .beez-status-sub-confirmed { background: #d1f7d6; color: #0a7a2a; }
.beez-status-sub-cancelled { background: #fde0e0; color: #a10000; }
.beez-role-manager { background: #e6dcfb; color: #5a1fb8; }
.beez-role-waiter { background: #d7ecff; color: #0a5bb3; }
.beez-role-kitchen { background: #ffe3d1; color: #b3510a; }
.beez-role-courier { background: #cdf0e3; color: #0a7a52; }

/* --------------------------------------------------------------- staff tab */
.beez-staff-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.beez-staff-added-date { opacity: .75; }
.beez-staff-view-body { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }

.beez-bulk-import-body { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.beez-bulk-import-columns { font-size: 12.5px; line-height: 1.6; color: var(--beez-text-soft, #6b7280); }
.beez-bulk-import-columns code { background: rgba(0,0,0,.06); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.beez-bulk-import-errors { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: #b3261e; max-height: 140px; overflow-y: auto; }
#beez-bulk-import-preview { font-size: 13px; }
.beez-staff-view-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 9px 0; border-bottom: 1px solid var(--beez-border); font-size: 13px;
}
.beez-staff-view-row:last-child { border-bottom: none; }
.beez-staff-view-row span { color: var(--beez-muted); font-weight: 600; }
.beez-staff-view-row strong { text-align: right; }

/* ----------------------------------------------------------------- bulk */
.beez-bulk-bar {
	display: flex; align-items: center; justify-content: space-between; background: var(--beez-cream);
	padding: 10px 16px; border-radius: var(--beez-radius-sm); margin-bottom: 14px; font-size: 13px; font-weight: 700;
}
.beez-bulk-actions { display: flex; gap: 8px; }
.beez-btn-danger-ghost { color: #c21b3e; border-color: #f3b8c2; }
.beez-btn-danger { background: #e0294a; box-shadow: 0 6px 16px rgba(224,41,74,.35); }

/* ------------------------------------------------------------ pagination */
.beez-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.beez-pagination button {
	width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--beez-border); background: #fff;
	cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
}
.beez-pagination button.active { background: #E8184B; color: #fff; border-color: transparent; }

/* ------------------------------------------------------------------ forms */
.beez-modal-form h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--beez-pink-dark); margin: 18px 0 8px; }
.beez-modal-form h4:first-child { margin-top: 0; }
.beez-form textarea {
	width: 100%; max-width: none; padding: 11px 14px; border: 1.5px solid var(--beez-border);
	border-radius: var(--beez-radius-sm); font-family: inherit; font-size: 14px; resize: vertical;
}
.beez-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.beez-checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: 600 !important; }
.beez-checkbox-row input { width: auto !important; }
.beez-checkbox-row-disabled { opacity: .5; cursor: not-allowed; }
.beez-radio-row { display: flex; align-items: center; gap: 8px; font-weight: 600 !important; }
.beez-radio-row input { width: auto !important; }
.beez-bxgy-reward-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.beez-bxgy-banner-preview { margin: 0; }
.beez-saved-tick { color: #0a8a4e; font-weight: 700; font-size: 13px; }
.beez-empty-hint { padding: 18px 4px; }

/* -------------------------------------------------------- menu item form */
.beez-menu-form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; margin-top: 20px; }
.beez-menu-form-main, .beez-menu-form-side .beez-publish-card { margin-bottom: 0; }
.beez-menu-form-main h4 {
	font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
	color: var(--beez-pink-dark); margin: 0 0 16px;
}
.beez-menu-form-main label { display: block; font-weight: 700; font-size: 13.5px; margin: 0 0 6px; }
.beez-menu-form-main .beez-form-row { margin-bottom: 4px; }
.beez-menu-form-main input[type=text],
.beez-menu-form-main input[type=number],
.beez-menu-form-main select {
	width: 100%; padding: 11px 14px; border: 1.5px solid var(--beez-border);
	border-radius: var(--beez-radius-sm); font-family: inherit; font-size: 14px;
	background: #fff; transition: border-color .15s;
}
.beez-menu-form-main select {
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238a7d80'><path d='M5.5 7.5l4.5 4.5 4.5-4.5z'/></svg>");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; padding-right: 34px;
}
.beez-menu-form-main input:focus, .beez-menu-form-main select:focus { outline: none; border-color: var(--beez-pink); }

.beez-publish-card { position: sticky; top: 84px; }
.beez-publish-actions { justify-content: stretch; }
.beez-publish-actions .beez-btn, .beez-publish-actions .beez-btn-ghost { flex: 1; justify-content: center; text-align: center; }

.beez-image-upload { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.beez-image-upload-preview {
	width: 100%; aspect-ratio: 4 / 3; border-radius: var(--beez-radius-sm); background: var(--beez-cream);
	border: 1.5px dashed var(--beez-border); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.beez-image-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.beez-image-upload-placeholder { font-size: 34px; opacity: .5; }
.beez-image-upload-btn { display: block; width: 100%; text-align: center; cursor: pointer; box-sizing: border-box; }
.beez-image-upload-remove {
	background: none; border: none; color: var(--beez-muted); font-size: 12px; font-weight: 700;
	cursor: pointer; text-decoration: underline; padding: 0;
}
.beez-image-upload-remove:hover { color: #c21b3e; }
.beez-image-upload-status { font-size: 12px; color: var(--beez-muted); min-height: 14px; }

/* ---------------------------------------------- product gallery (additional images) */
.beez-gallery-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px;
}
.beez-gallery-grid:empty { display: none; }
.beez-gallery-thumb {
	position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
	background: var(--beez-cream); border: 1.5px solid var(--beez-border);
}
.beez-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.beez-gallery-thumb-remove {
	position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
	background: rgba(0,0,0,.55); color: #fff; border: none; font-size: 11px; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.beez-gallery-thumb-remove:hover { background: #c21b3e; }
.beez-gallery-thumb-uploading { opacity: .55; }

.beez-logo-upload { display: flex; align-items: center; gap: 16px; margin: 6px 0 20px; }
.beez-logo-upload-preview {
	width: 72px; height: 72px; border-radius: 16px; background: var(--beez-cream); flex: none;
	border: 1.5px dashed var(--beez-border); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.beez-logo-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.beez-logo-upload-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.beez-logo-upload-controls .beez-image-upload-btn { width: auto; }

.beez-color-picker-row { display: flex; align-items: center; gap: 16px; margin: 6px 0 20px; }
.beez-color-picker-row input[type=color] {
	width: 56px; height: 56px; border-radius: 16px; flex: none; padding: 4px;
	border: 1.5px solid var(--beez-border); background: #fff; cursor: pointer;
}
.beez-color-picker-row input[type=color]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 10px; overflow: hidden; }
.beez-color-picker-row input[type=color]::-webkit-color-swatch { border: none; border-radius: 10px; }
.beez-color-picker-row input[type=color]::-moz-color-swatch { border: none; border-radius: 10px; }
.beez-color-picker-label { display: block; font-size: 14px; }

.beez-form-row-single { grid-template-columns: 1fr; }
.beez-spicy-field-label { display: block; font-weight: 700; font-size: 13.5px; margin: 0 0 8px; }
.beez-spicy-picker {
	display: flex; align-items: center; gap: 6px; background: var(--beez-cream);
	border: 1.5px solid var(--beez-border); border-radius: var(--beez-radius-sm); padding: 10px 12px;
}
.beez-spicy-chili {
	background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1;
	opacity: .28; filter: grayscale(1); transition: opacity .15s, filter .15s, transform .1s;
	padding: 2px; -webkit-tap-highlight-color: transparent;
}
.beez-spicy-chili:active { transform: scale(.9); }
.beez-spicy-chili.active { opacity: 1; filter: none; }
.beez-spicy-picker-hint { font-size: 12.5px; color: var(--beez-muted); margin-left: 6px; }

.beez-product-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.beez-spicy-badge { font-size: 12px; letter-spacing: -2px; }
.beez-meta-chip {
	font-size: 11px; font-weight: 700; color: var(--beez-muted); background: var(--beez-cream);
	border-radius: 999px; padding: 3px 9px;
}
.beez-meta-chip-allergen { color: #a15c00; background: #fdf0da; }
.beez-meta-chip-new { color: #fff; background: var(--beez-purple); margin-left: 6px; }
.beez-meta-chip-discount { color: #fff; background: var(--beez-pink); margin-left: 6px; }
.beez-meta-chip-stock-ok { color: #065F46; background: #D1FAE5; }
.beez-meta-chip-stock-low { color: #8a6500; background: #fff3cd; }
.beez-meta-chip-stock-out { color: #B0002C; background: #FEE2EA; }
.beez-meta-chip-sku { color: #475569; background: #eef1f5; margin-left: 6px; }

.beez-checkbox-field {
	display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer;
}
.beez-checkbox-field input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--beez-pink); }

@media (max-width: 900px) {
	.beez-menu-form-grid { grid-template-columns: 1fr; }
	.beez-publish-card { position: static; }
}

/* ------------------------------------------------------------------ modal */
.beez-modal-backdrop {
	position: fixed; inset: 0; background: rgba(36,16,22,.5); z-index: 900; display: none;
}
.beez-modal-backdrop.beez-open { display: block; }
.beez-modal {
	position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(640px, 92vw);
	max-height: 88vh; overflow-y: auto; background: #fff; border-radius: var(--beez-radius);
	box-shadow: var(--beez-shadow-lg); z-index: 901; display: none; padding: 24px 26px;
}
.beez-modal.beez-open { display: block; }
.beez-modal-sm { width: min(420px, 92vw); }
.beez-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.beez-modal-head h3 { margin: 0; font-size: 16px; }
.beez-modal-close { background: var(--beez-cream); border: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 13px; }

/* ---------------------------------------------------------------- barcode */
.beez-barcode-rows { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; padding-right: 2px; }
.beez-barcode-row {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--beez-border, #eee);
	border-radius: 10px; background: var(--beez-cream);
}
.beez-barcode-row-svg { flex-shrink: 0; background: #fff; border-radius: 6px; padding: 4px 6px; }
.beez-barcode-row-svg svg { display: block; }
.beez-barcode-row-info { flex: 1; min-width: 0; }
.beez-barcode-row-info strong { display: block; font-size: 13px; }
.beez-barcode-row-info span { display: block; font-size: 11px; color: var(--beez-muted, #888); margin-top: 2px; }
.beez-barcode-row-qty { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.beez-barcode-row-qty label { font-size: 11px; color: var(--beez-muted, #888); }
.beez-barcode-row-qty input {
	width: 52px; border: 1px solid var(--beez-border, #eee); border-radius: 6px; padding: 5px 6px; font-size: 12px;
	text-align: center;
}

/* ------------------------------------------------------------ table cards (QR) */
.beez-table-card-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.beez-table-card-actions { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 8px; }
.beez-table-card { min-width: 210px; }
.beez-table-link { display: flex; align-items: center; gap: 6px; margin-top: 10px; width: 100%; }
.beez-table-link-input {
	flex: 1; min-width: 0; border: 1px solid var(--beez-border, #eee); border-radius: 8px;
	padding: 6px 8px; font-size: 11px; color: var(--beez-muted, #888); background: var(--beez-cream);
}
.beez-table-link-input:focus { outline: 2px solid var(--beez-pink); outline-offset: 1px; }
.beez-copy-table-link { flex-shrink: 0; width: 30px; height: 30px; font-size: 13px; }

/* -------------------------------------------------------------- branches */
.beez-badge-branch { background: #e6e0fb; color: #5a34c9; }
.beez-payment-badge-cash { background: #d1f7d6; color: #0a7a2a; }
.beez-payment-badge-bank_transfer { background: #dceafe; color: #1d4ed8; }
.beez-payment-badge-qpay { background: #fce4ef; color: #c2185b; }
.beez-branch-card {
	background: var(--beez-cream); border-radius: var(--beez-radius-sm); padding: 16px;
	width: 240px; display: flex; flex-direction: column; gap: 4px;
}
.beez-branch-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.beez-branch-card .beez-table-card-actions { justify-content: flex-start; margin-top: 10px; }

/* Branch menu filter tabs (Menu section) */
.beez-branch-menu-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 4px; }
.beez-branch-tab {
	background: var(--beez-cream); border: 1.5px solid var(--beez-border);
	border-radius: 20px; padding: 5px 16px; font-size: 13px; font-weight: 500;
	cursor: pointer; transition: background .15s, border-color .15s, color .15s;
	color: var(--beez-text-muted);
}
.beez-branch-tab:hover { background: #e6e0fb; border-color: #b39ddb; color: #5a34c9; }
.beez-branch-tab.active { background: #5a34c9; border-color: #5a34c9; color: #fff; }

/* ------------------------------------------------------------- customers */
.beez-badge-regular { background: #fde7c0; color: #8a5a00; }

/* --------------------------------------------------------------- reports */
.beez-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.beez-report-grid .beez-stat-num { font-size: 20px; }

/* ------------------------------------------------------------------ toast */
.beez-toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.beez-toast {
	background: var(--beez-maroon); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px;
	font-weight: 700; box-shadow: var(--beez-shadow-lg); display: flex; align-items: center; gap: 8px;
	animation: beez-toast-in .18s ease;
}
.beez-toast-success { background: #0a8a4e; }
.beez-toast-error { background: #c21b3e; }
@keyframes beez-toast-in { from { opacity:0; transform:translateY(8px);} to {opacity:1; transform:translateY(0);} }

/* -------------------------------------------------------------- responsive */
@media (max-width: 980px) {
	.beez-app-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.3); }
	.beez-app.beez-sidebar-open .beez-app-sidebar { transform: translateX(0); }
	.beez-app-sidebar-close, .beez-app-burger { display: flex; align-items: center; justify-content: center; }
	.beez-app.beez-sidebar-open .beez-app-sidebar-backdrop { display: block; opacity: 1; }
	.beez-app-content { padding: 18px 14px 50px; }
	.beez-app-topbar { padding: 12px 14px; gap: 10px; }
	.beez-card { padding: 16px; }

	/* Keep the sticky topbar to one line: long titles truncate, the
	   "view menu" link shrinks to its icon, and the branch switcher
	   never grows wider than the space it's given. */
	.beez-app-topbar-title,
	.beez-app-topbar-title-text { min-width: 0; }
	.beez-app-topbar-title strong,
	.beez-app-topbar-title span {
		display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	}
	.beez-app-topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
	.beez-app-link { padding: 9px 12px; }
	.beez-app-link span { display: none; }
	#beezBranchSwitcher.beez-filter-select { max-width: 108px; padding-left: 10px; padding-right: 24px; }
}
@media (max-width: 620px) {
	.beez-form-row { grid-template-columns: 1fr; }
	.beez-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
	.beez-app-topbar { padding: 10px 12px; gap: 8px; }
	.beez-app-topbar-logo { width: 28px; height: 28px; }
	.beez-app-content { padding: 14px 10px 44px; }
	.beez-card { padding: 14px; }
	.beez-stat-grid { grid-template-columns: 1fr; gap: 10px; }
	.beez-stat-card { padding: 16px; }
	.beez-search-input { min-width: 0; width: 100%; }
	#beezBranchSwitcher.beez-filter-select { max-width: 84px; }
}

/* -------------------------------------------------------------- packages admin */
.beez-compare-price { color: var(--beez-muted); text-decoration: line-through; font-size: .85em; }
.beez-pkg-featured-badge { color: #f59e0b; font-size: .8em; }
.beez-pkg-feat-mini { list-style: none; padding: 0; margin: 0; font-size: .8rem; color: var(--beez-muted); }
.beez-pkg-feat-mini li::before { content: '✓ '; color: var(--beez-accent); }
.beez-pkg-feature-row { display: flex; gap: .5rem; margin-bottom: .5rem; align-items: center; }
.beez-pkg-feature-row .beez-pkg-feature-input { flex: 1; }
.beez-pkg-add-feature { margin-top: .5rem; }
.beez-toggle-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; }
.beez-toggle-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--beez-accent); }

/* --------------------------------------------------- package renewal modal */
.beez-plan-expired-wrap { max-width: 900px; margin: 0 auto; padding: 10px 20px 60px; font-family: var(--beez-font); }
.beez-plan-expired-card { max-width: 820px; margin: 0 auto 20px; }
.beez-plan-expired-card .beez-form-actions { justify-content: center; }

.beez-modal-renew { width: min(760px, 92vw); }
.beez-renew-pkg-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 6px; }
.beez-renew-pkg-item {
	position: relative; background: var(--beez-cream); border: 2px solid transparent; border-radius: var(--beez-radius-sm);
	padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.beez-renew-pkg-featured { border-color: #f59e0b; }
.beez-renew-pkg-item .beez-pkg-featured-badge { position: absolute; top: 14px; right: 16px; }
.beez-renew-pkg-item h4 { margin: 0; font-size: 15px; }
.beez-renew-pkg-price { font-size: 20px; font-weight: 800; color: var(--beez-maroon); display: flex; align-items: baseline; gap: 8px; }
.beez-renew-pkg-duration { font-size: 12.5px; color: var(--beez-muted); font-weight: 700; }
.beez-renew-pkg-features { list-style: none; padding: 0; margin: 6px 0 4px; font-size: 12.5px; color: var(--beez-muted); flex: 1; }
.beez-renew-pkg-features li { padding: 2px 0; }
.beez-renew-pkg-features li::before { content: '✓ '; color: var(--beez-accent); }
.beez-renew-pkg-select { width: 100%; justify-content: center; margin-top: 8px; }
.beez-renew-pkg-select:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------- copy field (webhook url) */
.beez-copy-field { display: flex; gap: 8px; }
.beez-copy-field input[readonly] { flex: 1; background: var(--beez-cream); color: var(--beez-muted); }
.beez-copy-field .beez-btn-ghost { white-space: nowrap; }

/* --------------------------------------------------------------------- POS (owner dashboard) */
.beez-pos-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.beez-pos-menu { min-width: 0; }

.beez-pos-cat-chip {
	background: var(--beez-cream); border: none; border-radius: 999px; padding: 8px 16px;
	font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--beez-ink);
	-webkit-tap-highlight-color: transparent;
}
.beez-pos-cat-chip.active { background: var(--beez-pink); color: #fff; }

.beez-pos-product-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px;
}
.beez-pos-empty { grid-column: 1 / -1; }
.beez-pos-product-card {
	background: #fff; border: 1px solid var(--beez-border); border-radius: var(--beez-radius-sm);
	box-shadow: var(--beez-shadow); padding: 10px; cursor: pointer; text-align: left;
	display: flex; flex-direction: column; gap: 6px; font-family: inherit;
	transition: transform .1s, box-shadow .1s; -webkit-tap-highlight-color: transparent;
}
.beez-pos-product-card:hover { box-shadow: var(--beez-shadow-lg); transform: translateY(-1px); }
.beez-pos-product-card:active { transform: translateY(0); opacity: .85; }
.beez-pos-product-thumb {
	width: 100%; aspect-ratio: 1.3 / 1; border-radius: 8px; overflow: hidden; background: var(--beez-cream);
	display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.beez-pos-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.beez-pos-product-name { font-size: 12.5px; font-weight: 800; line-height: 1.25; }
.beez-pos-product-price { font-size: 12px; font-weight: 700; color: var(--beez-pink-dark); }
.beez-pos-product-price del { color: var(--beez-muted); font-weight: 500; margin-right: 4px; }

.beez-pos-cart-card { position: sticky; top: 12px; }
.beez-pos-cart-items { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; margin: 12px 0; }
.beez-pos-cart-item { display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px dashed var(--beez-border); padding-bottom: 8px; }
.beez-pos-cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.beez-pos-cart-item-info { flex: 1; min-width: 0; }
.beez-pos-cart-item-name { font-size: 13px; font-weight: 700; }
.beez-pos-cart-item-price { font-size: 11.5px; color: var(--beez-muted); }
.beez-pos-cart-item-note {
	width: 100%; margin-top: 4px; padding: 5px 8px; border: 1px solid var(--beez-border); border-radius: 6px;
	font-family: inherit; font-size: 11.5px; box-sizing: border-box;
}
.beez-pos-cart-item-note:focus { outline: none; border-color: var(--beez-pink); }
.beez-pos-qty-controls { display: flex; align-items: center; gap: 6px; flex: none; margin-top: 2px; }
.beez-pos-qty-btn {
	width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--beez-border); background: #fff;
	font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer; display: flex; align-items: center;
	justify-content: center; color: var(--beez-ink); -webkit-tap-highlight-color: transparent;
}
.beez-pos-qty-btn:hover { background: var(--beez-cream); }
.beez-pos-qty-value { min-width: 16px; text-align: center; font-weight: 800; font-size: 13px; }
.beez-pos-cart-item-remove {
	flex: none; background: none; border: none; color: var(--beez-muted); font-size: 15px; cursor: pointer;
	margin-top: 2px;
}
.beez-pos-cart-item-remove:hover { color: #c21b3e; }

.beez-pos-payment-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.beez-pos-payment-methods label {
	display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--beez-border); border-radius: 999px;
	padding: 8px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s;
}
.beez-pos-payment-methods input { accent-color: var(--beez-pink); }
.beez-pos-payment-methods label.is-selected { border-color: var(--beez-pink); background: #FEE2EA; }

.beez-pos-cash-tender { margin: 4px 0 14px; padding: 10px 12px; background: var(--beez-cream); border-radius: var(--beez-radius-sm); }
.beez-pos-cash-tender label { display: block; font-size: 12.5px; font-weight: 700; }
.beez-pos-cash-tender input {
	width: 100%; margin-top: 6px; padding: 8px 10px; border: 1.5px solid var(--beez-border); border-radius: 8px;
	font-family: inherit; font-size: 14px; box-sizing: border-box;
}
.beez-pos-cash-tender input:focus { outline: none; border-color: var(--beez-pink); }
.beez-pos-change-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 800; }
.beez-pos-change-row strong { font-size: 16px; color: var(--beez-pink-dark); }
.beez-pos-change-row.beez-pos-change-short strong { color: #c21b3e; }

.beez-pos-discount-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
.beez-pos-discount-row select {
	flex: none; padding: 8px 10px; border: 1.5px solid var(--beez-border); border-radius: 8px;
	font-family: inherit; font-size: 12.5px; font-weight: 700; background: #fff; color: var(--beez-ink);
}
.beez-pos-discount-row input {
	flex: 1; min-width: 0; padding: 8px 10px; border: 1.5px solid var(--beez-border); border-radius: 8px;
	font-family: inherit; font-size: 14px; box-sizing: border-box;
}
.beez-pos-discount-row select:focus, .beez-pos-discount-row input:focus { outline: none; border-color: var(--beez-pink); }

.beez-pos-cart-subrow { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--beez-muted); padding: 2px 0; }
.beez-pos-cart-subrow strong { font-weight: 700; color: var(--beez-ink); }
.beez-pos-cart-subrow.beez-pos-cart-discount strong { color: #c21b3e; }

.beez-pos-cart-total {
	display: flex; align-items: center; justify-content: space-between; padding: 10px 0; margin-bottom: 12px;
	font-size: 14px; font-weight: 800; border-top: 1.5px solid var(--beez-border);
}
.beez-pos-cart-total strong { color: var(--beez-pink-dark); font-size: 17px; }

#beezDashPosSubmitBtn { width: 100%; }
#beezDashPosSubmitBtn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

@media (max-width: 860px) {
	.beez-pos-layout { grid-template-columns: 1fr; }
	.beez-pos-cart-card { position: static; }
}

/* -------------------------------------------------------------- cash receipt (POS tab) */
.beez-receipt-overlay {
	position: fixed; inset: 0; background: rgba(17,17,17,.55); z-index: 9999;
	display: flex; align-items: flex-end; justify-content: center; padding: 0;
	animation: beezReceiptFadeIn .15s ease-out;
}
.beez-receipt-overlay[hidden] { display: none; }
@keyframes beezReceiptFadeIn { from { opacity: 0; } to { opacity: 1; } }
.beez-receipt-sheet {
	position: relative; width: 100%; max-width: 380px; max-height: 92vh; overflow-y: auto;
	background: #fff; border-radius: 18px 18px 0 0; padding: 26px 0 18px;
	box-shadow: 0 -8px 30px rgba(0,0,0,.25); animation: beezReceiptSlideUp .2s ease-out;
}
@media (min-width: 480px) {
	.beez-receipt-overlay { align-items: center; }
	.beez-receipt-sheet { border-radius: var(--beez-radius); }
}
@keyframes beezReceiptSlideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.beez-receipt-close {
	position: absolute; top: 10px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
	border: none; background: var(--beez-cream); color: var(--beez-ink); font-size: 14px; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.beez-receipt-close:hover { background: var(--beez-border); }

.beez-receipt-paper {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	color: var(--beez-ink); padding: 0 26px; font-size: 12.5px; line-height: 1.55;
}
.beez-receipt-dashed { border: none; border-top: 2px dashed var(--beez-border); margin: 14px 0; }
.beez-receipt-brand { text-align: center; }
.beez-receipt-brand strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.beez-receipt-brand span { display: block; font-size: 11px; color: var(--beez-muted); margin-top: 2px; }
.beez-receipt-heading {
	text-align: center; font-size: 22px; font-weight: 800; letter-spacing: .06em; margin: 14px 0;
}
.beez-receipt-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--beez-muted); }
.beez-receipt-meta + .beez-receipt-meta { margin-top: 2px; }
.beez-receipt-items { margin: 0; padding: 0; list-style: none; }
.beez-receipt-item {
	display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 4px 0; align-items: baseline;
}
.beez-receipt-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beez-receipt-item-qty { color: var(--beez-muted); text-align: right; white-space: nowrap; }
.beez-receipt-item-amt { text-align: right; font-weight: 700; white-space: nowrap; }
.beez-receipt-item-note { grid-column: 1 / -1; font-size: 10.5px; color: var(--beez-muted); margin-top: -2px; }
.beez-receipt-totalrow {
	display: flex; justify-content: space-between; align-items: baseline;
	font-size: 15px; font-weight: 800; letter-spacing: .03em;
}
.beez-receipt-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; padding: 2px 0; }
.beez-receipt-row span:first-child { font-weight: 700; letter-spacing: .02em; }
.beez-receipt-thanks {
	text-align: center; font-size: 17px; font-weight: 800; letter-spacing: .04em; margin: 16px 0 4px;
}
.beez-receipt-barcode { display: flex; justify-content: center; margin: 14px 0 2px; }
.beez-receipt-barcode svg { display: block; height: 46px; }
.beez-receipt-barcode-num { text-align: center; font-size: 10.5px; letter-spacing: .12em; color: var(--beez-muted); }
.beez-receipt-footer { text-align: center; font-size: 10.5px; color: var(--beez-muted); margin-top: 10px; }

.beez-receipt-actions {
	display: flex; gap: 10px; padding: 18px 26px 4px;
}
.beez-receipt-actions .beez-btn { flex: 1; justify-content: center; display: flex; align-items: center; }
.beez-btn-outline {
	background: #fff; color: var(--beez-ink); border: 1.5px solid var(--beez-border);
	box-shadow: none;
}
.beez-btn-outline:hover { background: var(--beez-cream); }

@media print {
	body.beez-receipt-printing > *:not(.beez-receipt-overlay) { display: none !important; }
	.beez-receipt-overlay {
		position: static; background: none; padding: 0; display: block;
	}
	.beez-receipt-sheet {
		box-shadow: none; max-width: none; max-height: none; overflow: visible; border-radius: 0; width: 320px; margin: 0 auto;
	}
	.beez-receipt-close, .beez-receipt-actions { display: none !important; }
}

/* -------------------------------------------------- mkt-special panel */
.beez-mkt-special-card .beez-card-head { padding-bottom: 4px; }

.beez-mkt-special-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	align-items: start;
}
@media (max-width: 700px) {
	.beez-mkt-special-layout { grid-template-columns: 1fr; }
}

/* Image upload area taller for a banner */
.beez-mkt-special-preview-col .beez-image-upload-preview.beez-so-image-preview {
	height: 140px;
	aspect-ratio: unset;
}
.beez-mkt-special-preview-col .beez-image-upload { width: 100%; }

/* Live preview of how the banner will look on the menu */
.beez-mkt-special-preview-label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	color: var(--beez-muted, #888);
}
.beez-mkt-special-live-preview { margin-top: 16px; }

.beez-so-banner-preview {
	width: 100%;
	height: 110px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	background-color: var(--beez-surface, #f5f5f5);
	position: relative;
	overflow: hidden;
	border: 1px solid var(--beez-border, #eee);
}
.beez-so-banner-preview .beez-so-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 100%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 12px 16px;
	gap: 4px;
}
.beez-so-banner-badge {
	display: inline-block;
	background: var(--beez-accent, #E8184B);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 6px;
}
.beez-so-banner-title {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Live badge on Special Offers nav item */
.beez-nav-live-badge {
	display: inline-block;
	background: #22c55e;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 1px 5px;
	border-radius: 5px;
	margin-left: 4px;
	vertical-align: middle;
}

/* POS variant picker modal (owner dashboard POS tab + staff board POS tab
   both use this markup/class set — kept here since beez-app.css loads on
   both, see beez-order-app.php's style dependency chain). */
#beezPosVariantPicker {
	display: none; position: fixed; inset: 0; z-index: 9000;
	background: rgba(0,0,0,.45); align-items: center; justify-content: center;
}
.beez-pos-picker-dialog {
	background: var(--beez-cream, #fff); border-radius: 14px;
	padding: 20px 22px 18px; width: min(340px, 92vw); box-shadow: var(--beez-shadow-lg);
}
.beez-pos-picker-title { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.beez-pos-picker-label { font-size: 11.5px; font-weight: 700; color: var(--beez-muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.beez-pos-picker-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.beez-pos-picker-error { color: #c21b3e; font-size: 12px; margin: 0 0 10px; }
.beez-pos-picker-actions { display: flex; gap: 8px; margin-top: 6px; }
.beez-pos-picker-actions .beez-btn { flex: 1; justify-content: center; }

/* Camera barcode scanner overlay (owner dashboard POS + staff board POS) */
.beez-scan-overlay {
	position: fixed; inset: 0; z-index: 9200;
	background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.beez-scan-overlay[hidden] { display: none; }
.beez-scan-dialog {
	background: var(--beez-cream, #fff); border-radius: 16px;
	padding: 18px 20px 20px; width: min(420px, 100%); box-shadow: var(--beez-shadow-lg);
}
.beez-scan-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.beez-scan-dialog-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.beez-scan-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--beez-muted); line-height: 1; padding: 4px; }
.beez-scan-video-wrap {
	position: relative; width: 100%; aspect-ratio: 4/3; background: #111;
	border-radius: 12px; overflow: hidden; margin-bottom: 10px;
}
.beez-scan-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.beez-scan-reticle {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 78%; height: 34%; border: 2.5px solid var(--beez-pink, #E8184B);
	border-radius: 10px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none;
}
.beez-scan-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.beez-scan-status { font-size: 12.5px; color: var(--beez-muted); }
.beez-scan-status.is-error { color: #c21b3e; }
.beez-scan-status.is-success { color: #1a8f4c; font-weight: 700; }

/* Momentary highlight for a row/card jumped to after a barcode scan finds
   its match (menu-availability list, inventory table, ...). */
@keyframes beezRowFlash {
	0%, 100% { background: transparent; }
	25%, 75% { background: rgba(232, 24, 75, .14); }
}
.beez-row-flash { animation: beezRowFlash 1.5s ease-in-out; }

/* ===== STOCK ADJUST BUTTON & MODAL ===== */
.beez-icon-btn-stock { color: #f59e0b; }
.beez-icon-btn-stock:hover { background: rgba(245,158,11,.12); color: #d97706; }

/* Modal overlay — matches beez-scan-overlay */
.beez-modal-overlay {
	position: fixed; inset: 0; z-index: 9999;
	background: rgba(0,0,0,.52); backdrop-filter: blur(3px);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.beez-modal-overlay[hidden] { display: none; }
.beez-modal-overlay .beez-modal {
	display: block;
	background: var(--beez-cream, #fff); border-radius: 16px;
	width: min(520px, 100%); max-height: 90vh; overflow-y: auto;
	box-shadow: var(--beez-shadow-lg);
}
.beez-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px 12px; border-bottom: 1px solid var(--beez-border);
}
.beez-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.beez-modal-close {
	background: none; border: none; font-size: 17px; cursor: pointer;
	color: var(--beez-muted); line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.beez-modal-close:hover { background: var(--beez-bg-alt); }
.beez-modal-body { padding: 20px; }
.beez-input {
	width: 100%; padding: 10px 12px; font-size: 1rem;
	border: 1.5px solid var(--beez-border); border-radius: 8px;
	background: var(--beez-bg); color: var(--beez-text); outline: none;
	box-sizing: border-box;
}
.beez-input:focus { border-color: var(--beez-pink); }
.beez-btn-xs {
	padding: 4px 10px; font-size: 12px; border-radius: 16px;
	white-space: nowrap;
}

/* Stock log table — colour the change column */
#beez-stock-log-list td:nth-child(3) { font-weight: 700; }

/* ======================================================= dashboard notifications ---- */
/* Red badge on Orders nav button */
.beez-app-nav-item { position: relative; }
.beez-dash-order-badge {
	position: absolute; top: 4px; right: 4px;
	min-width: 18px; height: 18px; border-radius: 9px;
	background: #e91e63; color: #fff;
	font-size: 11px; font-weight: 700; line-height: 18px;
	text-align: center; padding: 0 4px;
	pointer-events: none; box-sizing: border-box;
	animation: beez-badge-pop 0.25s ease;
}
@keyframes beez-badge-pop {
	from { transform: scale(0.5); opacity: 0; }
	to   { transform: scale(1);   opacity: 1; }
}

/* ======================================================= notification bell ---- */
.beez-notif-wrap { position: relative; flex: none; }
.beez-notif-bell {
	flex: none; width: 34px; height: 34px; border-radius: 50%; border: none;
	background: var(--beez-cream, #f5f0ef);
	display: flex; align-items: center; justify-content: center; position: relative;
	cursor: pointer; color: var(--beez-ink, #1a1a1a);
	-webkit-tap-highlight-color: transparent; transition: background 0.15s;
}
.beez-notif-bell:hover { background: #f0e6e6; }
.beez-notif-bell.beez-notif-bell-active { background: #fde4ea; }
.beez-notif-bell svg { width: 18px; height: 18px; }
.beez-notif-count {
	position: absolute; top: -3px; right: -3px;
	min-width: 18px; height: 18px; border-radius: 9px;
	background: #e91e63; color: #fff;
	font-size: 11px; font-weight: 800; line-height: 18px;
	text-align: center; padding: 0 4px; box-sizing: border-box;
	border: 2px solid #fff;
}

.beez-notif-panel {
	position: absolute; top: 44px; right: 0; width: 320px; max-width: 88vw;
	background: #fff; border-radius: var(--beez-radius-sm); box-shadow: var(--beez-shadow-lg);
	border: 1px solid var(--beez-border); z-index: 200; overflow: hidden;
	display: none; flex-direction: column;
}
.beez-notif-panel.beez-notif-open { display: flex; }

.beez-notif-panel-head {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 12px 14px; border-bottom: 1px solid var(--beez-border);
}
.beez-notif-panel-head span { font-size: 13px; font-weight: 700; color: var(--beez-ink); }
.beez-notif-markall {
	background: none; border: none; padding: 0; margin: 0;
	font-size: 12px; font-weight: 700; color: var(--beez-pink-dark); cursor: pointer;
	white-space: nowrap;
}
.beez-notif-markall:hover { text-decoration: underline; }
.beez-notif-markall:disabled { color: var(--beez-muted); cursor: default; text-decoration: none; }

.beez-notif-viewall-row {
	display: block; width: 100%; text-align: left; padding: 11px 14px;
	background: none; border: none; border-bottom: 1px solid var(--beez-border);
	font-size: 12.5px; font-weight: 700; color: var(--beez-pink-dark); cursor: pointer;
}
.beez-notif-viewall-row:hover { background: var(--beez-cream); text-decoration: underline; }

.beez-notif-list { max-height: 300px; overflow-y: auto; }
.beez-notif-empty { padding: 28px 14px; text-align: center; color: var(--beez-muted); font-size: 13px; margin: 0; }

.beez-notif-item {
	display: flex; align-items: flex-start; gap: 10px; width: 100%;
	padding: 11px 14px; border-bottom: 1px solid var(--beez-border);
	cursor: pointer; transition: background 0.15s; text-align: left;
}
.beez-notif-item:last-child { border-bottom: none; }
.beez-notif-item:hover { background: var(--beez-cream); }
.beez-notif-item.beez-notif-unread { background: #fff5f7; }
.beez-notif-item-body { flex: 1; min-width: 0; }
.beez-notif-item-title { font-size: 13px; font-weight: 700; color: var(--beez-ink); }
.beez-notif-item.beez-notif-unread .beez-notif-item-title { color: var(--beez-pink-dark); }
.beez-notif-item-sub { font-size: 12px; color: var(--beez-muted); margin-top: 2px; }
.beez-notif-item-dot {
	flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e91e63;
	margin-top: 6px;
}

@media (max-width: 480px) {
	.beez-notif-panel { position: fixed; top: 60px; left: 10px; right: 10px; width: auto; max-width: none; }
}

/* =======================================================================
   OWNER DASHBOARD — MOBILE APP SHELL
   Everything below is scoped to #beezDashApp (never the superadmin panel,
   which shares the same .beez-app shell classes) and only applies at
   phone widths. It replaces the off-canvas sidebar with a bottom tab bar
   + FAB, and restyles the topbar/cards/tables to match the mobile
   prototype (dark topbar, white stat cards with coloured numbers, and
   order/product rows stacked like cards instead of a scrollable table).
   ======================================================================= */
@media (max-width: 640px) {

	/* ---- sidebar is fully replaced by the bottom tab bar on mobile ---- */
	#beezDashApp .beez-app-sidebar,
	#beezDashApp .beez-app-sidebar-backdrop,
	#beezDashApp .beez-app-burger { display: none !important; }

	#beezDashApp.beez-app { display: block; }
	#beezDashApp .beez-app-main { min-height: 100dvh; }
	#beezDashApp .beez-app-content { padding: 14px 12px 100px; }

	/* ---- dark topbar, matching the prototype ---- */
	#beezDashApp .beez-app-topbar {
		background: #111; border-bottom: none; padding: 12px 14px; gap: 10px;
	}
	#beezDashApp .beez-app-topbar-title strong { color: #fff; font-size: 14px; }
	#beezDashApp .beez-app-topbar-title span { color: rgba(255,255,255,.45); font-size: 11px; }
	#beezDashApp .beez-app-topbar-logo { width: 30px; height: 30px; }
	#beezDashApp .beez-filter-select { max-width: 108px; font-size: 11.5px; padding: 6px 10px; }
	#beezDashApp .beez-app-link {
		background: none; padding: 6px; border-radius: 50%; color: rgba(255,255,255,.7);
	}
	#beezDashApp .beez-app-link span { display: none; }
	#beezDashApp .beez-app-link:hover { color: #fff; background: rgba(255,255,255,.1); }
	#beezDashApp .beez-notif-bell { background: none; color: rgba(255,255,255,.7); }
	#beezDashApp .beez-notif-bell:hover,
	#beezDashApp .beez-notif-bell.beez-notif-bell-active { background: rgba(255,255,255,.12); }

	/* ---- overview stat cards: white card + coloured number, not a solid-colour tile ---- */
	#beezDashApp .beez-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
	#beezDashApp .beez-stat-card {
		background: #fff; color: var(--beez-ink); box-shadow: none; border: 1px solid var(--beez-border);
		border-radius: 12px; padding: 14px; flex-direction: column; align-items: flex-start; gap: 0;
	}
	#beezDashApp .beez-stat-icon {
		background: none; width: auto; height: auto; border-radius: 0; font-size: 18px;
		margin-bottom: 6px; justify-content: flex-start;
	}
	#beezDashApp .beez-stat-num { font-size: 20px; color: var(--beez-ink); }
	#beezDashApp .beez-stat-label { font-size: 11px; color: var(--beez-muted); font-weight: 500; margin-top: 3px; }
	#beezDashApp .beez-stat-pink .beez-stat-num   { color: #E8184B; }
	#beezDashApp .beez-stat-purple .beez-stat-num { color: #9c27f2; }
	#beezDashApp .beez-stat-blue .beez-stat-num   { color: #2196f3; }
	#beezDashApp .beez-stat-orange .beez-stat-num,
	#beezDashApp .beez-stat-teal .beez-stat-num   { color: #ff5500; }

	/* ---- cards ---- */
	#beezDashApp .beez-card { padding: 14px; border-radius: 12px; box-shadow: none; margin-bottom: 14px; }
	#beezDashApp .beez-card-head h3 { font-size: 13px; }
	#beezDashApp .beez-chart-wrap { height: 180px; }

	/* ---- data tables become stacked "order-row" style cards ----
	   Every <td> gets a data-th="<column header>" attribute stamped on by
	   JS (see beezLabelTableCells in beez-dashboard.js), which drives both
	   the "Label: value" prefix below and the special-cased columns that
	   mirror the mobile prototype's order/product row layout: name/№
	   pinned first and unlabelled, amount emphasised in pink, status
	   pushed to the top-right, date pushed to its own subdued line. */
	#beezDashApp .beez-card:has(.beez-table-wrap) { padding: 0; overflow: hidden; }
	#beezDashApp .beez-card:has(.beez-table-wrap) > .beez-card-head { padding: 12px 14px; margin-bottom: 0; border-bottom: 1px solid var(--beez-border); }
	#beezDashApp .beez-card:has(.beez-table-wrap) > .beez-toolbar { padding: 12px 14px 0; }
	#beezDashApp .beez-table-wrap { overflow: visible; }

	#beezDashApp .beez-data-table { font-size: 12px; }
	#beezDashApp .beez-data-table thead { display: none; }
	#beezDashApp .beez-data-table,
	#beezDashApp .beez-data-table tbody { display: block; width: 100%; }
	#beezDashApp .beez-data-table tr {
		display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 3px;
		padding: 11px 14px; border-bottom: 1px solid var(--beez-border); background: #fff;
	}
	#beezDashApp .beez-data-table tbody tr:last-child { border-bottom: none; }
	#beezDashApp .beez-data-table tbody tr:hover { background: #fff; }
	#beezDashApp .beez-data-table td {
		display: inline-flex; align-items: center; gap: 4px; padding: 0; border: none;
		font-size: 12px; color: var(--beez-ink);
	}
	#beezDashApp .beez-data-table td[data-th]::before {
		content: attr(data-th) ":"; color: var(--beez-muted); font-weight: 600; font-size: 11px;
	}
	/* name / order number: bold, full-width, no "Label:" prefix */
	#beezDashApp .beez-data-table td[data-th="Нэр"],
	#beezDashApp .beez-data-table td[data-th="№"] {
		order: -3; flex-basis: 100%; font-weight: 700; font-size: 13px;
	}
	#beezDashApp .beez-data-table td[data-th="Нэр"]::before,
	#beezDashApp .beez-data-table td[data-th="№"]::before { content: none; }
	/* category / subtitle line: subdued, own line right under the name */
	#beezDashApp .beez-data-table td[data-th="Ангилал"],
	#beezDashApp .beez-data-table td[data-th="Бүтээгдэхүүн"] {
		order: -2; flex-basis: 100%; color: var(--beez-muted); font-size: 11px;
	}
	#beezDashApp .beez-data-table td[data-th="Ангилал"]::before,
	#beezDashApp .beez-data-table td[data-th="Бүтээгдэхүүн"]::before { content: none; }
	/* status pill / toggle: pinned to the top-right, no label */
	#beezDashApp .beez-data-table td[data-th="Төлөв"] { margin-left: auto; order: -1; }
	#beezDashApp .beez-data-table td[data-th="Төлөв"]::before { content: none; }
	/* amount: bold pink, no label */
	#beezDashApp .beez-data-table td[data-th="Дүн"],
	#beezDashApp .beez-data-table td[data-th="Үнэ"] { font-weight: 700; color: var(--beez-pink); font-size: 13px; }
	#beezDashApp .beez-data-table td[data-th="Дүн"]::before,
	#beezDashApp .beez-data-table td[data-th="Үнэ"]::before { content: none; }
	/* date: subdued, own trailing line */
	#beezDashApp .beez-data-table td[data-th="Огноо"] { color: var(--beez-muted); font-size: 10.5px; order: 9; flex-basis: 100%; }
	#beezDashApp .beez-data-table td[data-th="Огноо"]::before { content: none; }
	/* bulk-select checkboxes: hidden on mobile to match the simplified
	   prototype layout (still fully available on desktop) */
	#beezDashApp .beez-data-table .beez-col-check,
	#beezDashApp #beez-orders-bulk-bar { display: none !important; }
	#beezDashApp .beez-order-delivery-row td { flex-basis: 100%; }

	/* ---- "More" tab (Бусад): card grid + grouped shortcut lists ---- */
	#beezDashApp .beez-mmore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
	#beezDashApp .beez-mmore-card {
		background: #fff; border: 1px solid var(--beez-border); border-radius: 12px; padding: 14px;
		display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
	}
	#beezDashApp .beez-mmore-card-icon { font-size: 22px; }
	#beezDashApp .beez-mmore-card-label { font-size: 13px; font-weight: 700; color: var(--beez-ink); }
	#beezDashApp .beez-mmore-card-sub { font-size: 11px; color: var(--beez-muted); }
	#beezDashApp .beez-mmore-title { font-size: 13px; font-weight: 700; color: var(--beez-ink); margin: 0 0 10px; }
	#beezDashApp .beez-mmore-list {
		background: #fff; border: 1px solid var(--beez-border); border-radius: 12px; overflow: hidden; margin-bottom: 16px;
	}
	#beezDashApp .beez-mmore-item {
		display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%;
		border-bottom: 1px solid var(--beez-border); text-decoration: none; color: var(--beez-ink);
		background: none; border-left: none; border-right: none; border-top: none; text-align: left;
		font-family: inherit; font-size: 14px; font-weight: 600; margin: 0; border-radius: 0;
	}
	#beezDashApp .beez-mmore-list .beez-mmore-item:last-child { border-bottom: none; }
	#beezDashApp .beez-mmore-item:hover { background: var(--beez-cream); color: var(--beez-ink); }
	#beezDashApp .beez-mmore-item-icon { font-size: 18px; width: 24px; text-align: center; flex: none; }
	#beezDashApp .beez-mmore-item-label { flex: 1; }
	#beezDashApp .beez-mmore-item-arrow { color: #ccc; font-size: 18px; flex: none; }
	#beezDashApp .beez-mmore-item-danger,
	#beezDashApp .beez-mmore-item-danger .beez-mmore-item-label,
	#beezDashApp .beez-mmore-item-danger .beez-mmore-item-arrow { color: var(--beez-pink); }

	/* ---- floating "new POS order" button ---- */
	#beezDashApp .beez-mfab {
		display: flex; position: fixed; bottom: 84px; right: 16px; width: 50px; height: 50px;
		border-radius: 50%; background: var(--beez-pink); border: none; color: #fff; font-size: 24px;
		align-items: center; justify-content: center; cursor: pointer; z-index: 120;
		box-shadow: 0 4px 14px rgba(232,24,75,.4); margin: 0; padding: 0;
	}

	/* ---- bottom tab bar ---- */
	#beezDashApp .beez-mnav {
		display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
		background: #fff; border-top: 1px solid var(--beez-border); align-items: stretch;
		padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 130;
	}
	#beezDashApp .beez-mnav-item {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
		gap: 3px; background: none; border: none; color: var(--beez-muted); padding: 8px 4px;
		margin: 0; border-radius: 0; font-weight: 500; position: relative; cursor: pointer;
	}
	#beezDashApp .beez-mnav-item:hover { background: none; color: var(--beez-muted); }
	#beezDashApp .beez-mnav-item.active,
	#beezDashApp .beez-mnav-item.active:hover { background: none; color: var(--beez-pink); box-shadow: none; }
	#beezDashApp .beez-mnav-icon { font-size: 19px; line-height: 1; width: auto; }
	#beezDashApp .beez-mnav-label { font-size: 9.5px; font-weight: 600; }
	#beezDashApp .beez-mnav-dot {
		position: absolute; top: 6px; right: calc(50% - 16px); width: 6px; height: 6px;
		background: var(--beez-pink); border-radius: 50%;
	}
}

/* Hide the mobile-only shell pieces on anything wider than a phone. */
@media (min-width: 641px) {
	#beezDashApp .beez-mnav,
	#beezDashApp .beez-mfab,
	#beezDashApp .beez-mobile-more { display: none !important; }
}
