/* BITZO staff panels (admin, franchise, partner, production, sales) — on top of Tabler / Bootstrap 5.3 */
:root {
	--tblr-font-sans-serif: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--tblr-primary: #d7141a;
	--tblr-primary-rgb: 215, 20, 26;
	--tblr-link-color: #d7141a;
	--tblr-link-color-rgb: 215, 20, 26;
	--tblr-border-radius: 10px;
	/* Panel design system (P-01): one set of tokens for every staff panel. Brand red stays #d7141a (logo + shop). */
	--bz-red: #d7141a;
	--bz-red-dark: #a50f14;
	--bz-red-soft: #fdecec;
	--bz-ink: #171717;
	--bz-ink-2: #3b3b45;
	--bz-muted: #6b7280;
	--bz-muted-2: #8b90a0;
	--bz-line: #e8eaf0;
	--bz-page: #f5f6fa;
	--bz-hover: #f6f7fa;
	--bz-ok: #16a34a;   --bz-ok-soft: #e8f6ee;   --bz-ok-ink: #15803d;
	--bz-warn: #f59e0b; --bz-warn-soft: #fef4e2; --bz-warn-ink: #b45309;
	--bz-bad: #dc2626;  --bz-bad-soft: #fdeaea;  --bz-bad-ink: #b91c1c;
	--bz-info: #2563eb; --bz-info-soft: #e8effd; --bz-info-ink: #1d4ed8;
	--bz-mute-soft: #f1f2f5;
	--bz-side-w: 264px;
	--bz-radius: 16px;
	--bz-r-ctl: 10px;
	--bz-h-ctl: 40px;
	--bz-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 18px rgba(17, 24, 39, .05);
	--bz-focus: 0 0 0 .2rem rgba(215, 20, 26, .14);
	--tblr-body-bg: #f5f6fa;
}
html, body { font-family: var(--tblr-font-sans-serif); }
body { background: var(--bz-page); color: var(--bz-ink); font-size: .9rem; }
a { text-decoration: none; }
h1, h2, h3, h4, .card-title, .page-title { font-weight: 700; color: var(--bz-ink); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--bz-r-ctl); font-weight: 600; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.btn-sm { min-height: 32px; }
.btn:focus-visible { box-shadow: var(--bz-focus); }
.btn-outline-secondary, .btn-secondary, .btn-light, .btn-white { --tblr-btn-bg: #fff; --tblr-btn-color: var(--bz-ink); --tblr-btn-border-color: var(--bz-line); --tblr-btn-hover-bg: var(--bz-hover); --tblr-btn-hover-color: var(--bz-ink); --tblr-btn-hover-border-color: #d7dae3; }
.btn-danger, .btn-outline-danger { --tblr-btn-border-color: var(--bz-bad); }
.btn-primary, .bz-btn {
	--tblr-btn-bg: var(--bz-red); --tblr-btn-border-color: var(--bz-red); --tblr-btn-color: #fff;
	--tblr-btn-hover-bg: var(--bz-red-dark); --tblr-btn-hover-border-color: var(--bz-red-dark); --tblr-btn-hover-color: #fff;
	--tblr-btn-active-bg: var(--bz-red-dark); --tblr-btn-active-border-color: var(--bz-red-dark);
	--tblr-btn-disabled-bg: var(--bz-red); --tblr-btn-disabled-border-color: var(--bz-red);
	box-shadow: 0 4px 12px rgba(215, 20, 26, .22);
}
.bz-btn { background: var(--bz-red); color: #fff; border: 0; padding: .7rem 1rem; font-size: .95rem; }
.bz-btn:hover { background: var(--bz-red-dark); color: #fff; }
.btn-outline-primary { --tblr-btn-color: var(--bz-red); --tblr-btn-border-color: var(--bz-red); --tblr-btn-hover-bg: var(--bz-red); --tblr-btn-hover-border-color: var(--bz-red); --tblr-btn-active-bg: var(--bz-red-dark); }
.btn-ghost-primary { --tblr-btn-color: var(--bz-red); --tblr-btn-hover-bg: var(--bz-red-soft); --tblr-btn-hover-color: var(--bz-red); }
.text-primary { color: var(--bz-red) !important; }
.bg-primary { background-color: var(--bz-red) !important; }
.bg-primary-lt { background-color: var(--bz-red-soft) !important; color: var(--bz-red) !important; }

/* ---------- App shell ---------- */
.bz-app { min-height: 100vh; }
.bz-side {
	position: fixed; inset: 0 auto 0 0; width: var(--bz-side-w); background: #fff; border-right: 1px solid var(--bz-line);
	display: flex; flex-direction: column; z-index: 1040; transition: width .2s ease, transform .2s ease;
}
.bz-side-brand { display: flex; align-items: center; gap: .5rem; padding: 1rem 1rem .75rem; }
.bz-side-logo { height: 34px; width: auto; }
.bz-side-icon { display: none; width: 34px; height: 34px; border-radius: 9px; }
body.bz-mini .bz-side-icon { display: block; }
.bz-portal-pill { background: var(--bz-red-soft); color: var(--bz-red); font-size: .62rem; font-weight: 700; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 50rem; white-space: nowrap; }
.bz-side-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; scrollbar-width: thin; }
.bz-side-head { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--bz-muted-2); padding: 1.1rem .5rem .45rem; white-space: nowrap; }
.bz-side-link { display: flex; align-items: center; gap: .75rem; padding: .45rem .5rem; margin-bottom: 2px; border-radius: 12px; color: var(--bz-ink); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.bz-side-link:hover { background: var(--bz-hover); color: var(--bz-ink); }
.bz-side-link.active { background: var(--bz-red-soft); color: var(--bz-red); font-weight: 600; }
.bz-side-text { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.bz-side-caret { font-size: .9rem; }
.bz-side-foot { border-top: 1px solid var(--bz-line); padding: .5rem .75rem; }
.bz-side-backdrop { display: none; }

.bz-tile { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 1.15rem; }
.bz-tile-lg { width: 46px; height: 46px; border-radius: 13px; font-size: 1.45rem; }
.bz-tone-red { background: #fdecec; color: #d7141a; }
.bz-tone-blue { background: #e8f1fe; color: #2563eb; }
.bz-tone-purple { background: var(--bz-red-soft); color: var(--bz-red); } /* was violet; brand red since P-01 */
.bz-tone-green { background: #e7f7ee; color: #16a34a; }
.bz-tone-orange { background: #fff1e5; color: #ea580c; }
.bz-tone-pink { background: #fde9f1; color: #db2777; }
.bz-tone-teal { background: #e3f6f5; color: #0d9488; }
.bz-tone-yellow { background: #fef6dc; color: #ca8a04; }
.bz-tone-indigo { background: var(--bz-info-soft); color: var(--bz-info); }
.bz-tone-cyan { background: #e2f6fb; color: #0891b2; }

.bz-main { margin-left: var(--bz-side-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin .2s ease; }
.bz-content { flex: 1; padding: 1.25rem 1.5rem 2rem; max-width: 1680px; width: 100%; }
.bz-foot { padding: 1rem 1.5rem; color: #9aa0ad; font-size: .78rem; }

/* collapsed sidebar (desktop) */
body.bz-mini { --bz-side-w: 78px; }
body.bz-mini .bz-side-text, body.bz-mini .bz-side-head, body.bz-mini .bz-portal-pill, body.bz-mini .bz-side-caret, body.bz-mini .bz-side-logo { display: none; }
body.bz-mini .bz-side-brand { justify-content: center; }
body.bz-mini .bz-side-link { justify-content: center; }
body.bz-mini #bz-collapse { margin: 0 auto !important; }

@media (max-width: 991.98px) {
	.bz-side { transform: translateX(-100%); width: 280px; box-shadow: 0 0 40px rgba(0,0,0,.15); }
	body.bz-side-open .bz-side { transform: none; }
	body.bz-side-open .bz-side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 12, 25, .45); z-index: 1035; }
	.bz-main { margin-left: 0; }
	.bz-content { padding: 1rem; }
}

/* ---------- Top bar ---------- */
.bz-top { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bz-line); }
.bz-icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--bz-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--bz-ink); }
.bz-icon-btn:hover { background: var(--bz-hover); }
.bz-search { position: relative; flex: 0 1 480px; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--bz-line); border-radius: 12px; padding: 0 .75rem; height: 42px; background: #fff; }
.bz-search > .ti { color: var(--bz-muted-2); font-size: 1.1rem; }
.bz-search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font-size: .88rem; }
.bz-search kbd { background: #f1f2f6; color: var(--bz-muted); border: 1px solid var(--bz-line); box-shadow: none; font-size: .68rem; font-weight: 600; }
.bz-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--bz-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(16,24,40,.12); max-height: 380px; overflow-y: auto; display: none; padding: .35rem; }
.bz-search-results.show { display: block; }
.bz-search-results a { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 10px; color: var(--bz-ink); }
.bz-search-results a.on, .bz-search-results a:hover { background: var(--bz-red-soft); }
.bz-search-results small { color: var(--bz-muted-2); margin-left: auto; }
.bz-outlet { align-items: center; gap: .35rem; background: var(--bz-red-soft); color: var(--bz-red); font-weight: 600; font-size: .8rem; padding: .35rem .75rem; border-radius: 50rem; }
.bz-round { width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.bz-round-red { background: #fdecec; color: var(--bz-red); }
.bz-round-purple { background: var(--bz-red-soft); color: var(--bz-red); }
.bz-dot-count { position: absolute; top: -4px; right: -4px; background: var(--bz-red); color: #fff; border: 2px solid #fff; border-radius: 50rem; font-size: .62rem; font-weight: 700; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.bz-user { display: inline-flex; align-items: center; gap: .55rem; border: 0; background: #fff6e8; border-radius: 50rem; padding: .3rem .8rem .3rem .3rem; color: var(--bz-ink); }
.bz-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--bz-red); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bz-avatar-lg { width: 46px; height: 46px; font-size: 1.15rem; }
.bz-role { background: #ffe1c7; color: #b4410b; font-size: .62rem; font-weight: 700; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 50rem; }
.bz-menu { border: 1px solid var(--bz-line); border-radius: 16px; box-shadow: 0 16px 40px rgba(16,24,40,.14); padding: .5rem; min-width: 300px; }
.bz-menu-head { font-weight: 700; padding: .5rem .6rem .6rem; }
.bz-alert-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 12px; color: var(--bz-ink); }
.bz-alert-item:hover { background: var(--bz-hover); color: var(--bz-ink); }
.bz-profile-menu { width: 330px; }
.bz-profile-head { display: flex; align-items: center; gap: .7rem; padding: .6rem .6rem .8rem; border-bottom: 1px solid var(--bz-line); margin-bottom: .35rem; }
.bz-status-pill { display: inline-flex; align-items: center; gap: .35rem; background: #e7f7ee; color: #15803d; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 50rem; white-space: nowrap; }
.bz-status-pill span { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.bz-menu-row { display: flex; align-items: center; gap: .8rem; padding: .55rem .6rem; border-radius: 12px; color: var(--bz-ink); font-weight: 500; }
.bz-menu-row:hover { background: var(--bz-hover); color: var(--bz-ink); }

/* ---------- Page header ---------- */
.bz-page-head { margin-bottom: 1.25rem; }
.bz-page-title { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.bz-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .2rem 0 0; font-size: .78rem; color: var(--bz-muted-2); }
.bz-crumbs li + li::before { content: '›'; margin-right: .35rem; }
.bz-crumbs a { color: var(--bz-muted-2); }
.bz-crumbs a:hover { color: var(--bz-red); }
.bz-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--bz-line); border-radius: var(--bz-radius); box-shadow: var(--bz-shadow); }
.card-header { border-bottom: 1px solid var(--bz-line); padding: 1rem 1.25rem; background: transparent; }
.card-footer { border-top: 1px solid var(--bz-line); background: #fafbfc; border-radius: 0 0 var(--bz-radius) var(--bz-radius); }
.card-title { font-size: 1rem; }
.card-sm .card-body { padding: 1rem 1.1rem; }
/* Equal-height cards only when a column holds one card; stacked cards keep their own height (P-04). */
.row-cards > [class*='col'] > .card:only-child { height: 100%; }
.row-cards > [class*='col'] > .card:not(:only-child) { height: auto; margin-bottom: 1rem; }
/* Tabler stat tiles (avatar + number) look like KPI cards */
.card .avatar { border-radius: 12px; width: 44px; height: 44px; font-size: 1.3rem; }
.card .avatar.bg-primary, .card .avatar.bg-red { background: #fdecec !important; color: #d7141a !important; }
.card .avatar.bg-success, .card .avatar.bg-green { background: #e7f7ee !important; color: #16a34a !important; }
.card .avatar.bg-azure, .card .avatar.bg-blue, .card .avatar.bg-info { background: #e8f1fe !important; color: #2563eb !important; }
.card .avatar.bg-purple, .card .avatar.bg-indigo { background: var(--bz-red-soft) !important; color: var(--bz-red) !important; }
.card .avatar.bg-warning, .card .avatar.bg-orange, .card .avatar.bg-yellow { background: #fff1e5 !important; color: #ea580c !important; }
.card .avatar.bg-pink { background: #fde9f1 !important; color: #db2777 !important; }
.card .avatar.bg-teal, .card .avatar.bg-cyan { background: #e3f6f5 !important; color: #0d9488 !important; }

.bz-kpi { background: #fff; border: 1px solid var(--bz-line); border-radius: var(--bz-radius); box-shadow: var(--bz-shadow); padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: flex-start; height: 100%; color: var(--bz-ink); transition: transform .12s ease, box-shadow .12s ease; }
a.bz-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.08); color: var(--bz-ink); }
.bz-kpi .v { font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.bz-kpi .l { color: var(--bz-muted); font-size: .85rem; margin-top: .1rem; }
.bz-chg { display: inline-flex; align-items: center; gap: .15rem; font-size: .7rem; font-weight: 700; border-radius: 50rem; padding: .1rem .45rem; margin-top: .35rem; background: #f1f2f6; color: #6b7280; }
.bz-chg.up { background: #e7f7ee; color: #15803d; }
.bz-chg.down { background: #fdecec; color: #d7141a; }
.bz-section-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.bz-section-title small { font-weight: 500; color: var(--bz-muted-2); font-size: .8rem; margin-left: .35rem; }

/* ---------- Tables ---------- */
.table { --tblr-table-border-color: var(--bz-line); }
.table thead th, .card-table thead th { background: #f6f7fa; color: var(--bz-muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 0; padding-top: .85rem; padding-bottom: .85rem; white-space: nowrap; }
.card-table thead th:first-child { border-top-left-radius: 12px; }
.card-table thead th:last-child { border-top-right-radius: 12px; }
.table > :not(caption) > * > * { padding-left: 1rem; padding-right: 1rem; }
.table tbody tr:hover > * { background: #fbfbfd; }
/* Report tables: comfortable rows, clear headers and totals (all panels) */
.card-table > tbody > tr > td { padding-top: .7rem; padding-bottom: .7rem; }
.card-table.table-sm > tbody > tr > td { padding-top: .55rem; padding-bottom: .55rem; }
.table td.text-end, .table th.text-end, .table tfoot td { font-variant-numeric: tabular-nums; }
.card > .table-responsive:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.card > .card-table:last-child > :last-child > tr:last-child > *, .card > .table-responsive:last-child > .card-table > :last-child > tr:last-child > * { border-bottom: 0; }
.table tfoot tr > *, .table tr.bz-total > * { background: #f6f7fa; font-weight: 700; color: var(--bz-ink, #171717); border-top: 2px solid var(--bz-line); border-bottom: 0; padding-top: .8rem; padding-bottom: .8rem; }
.table tr.bz-group > * { background: #fafafc; color: var(--bz-ink-2, #3b3b45); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.table tr.bz-subtotal > * { font-weight: 600; background: #fdfdfe; border-bottom: 2px solid var(--bz-line); }
.bz-code { display: inline-block; min-width: 3.1em; margin-right: .6rem; padding: .1rem .4rem; border-radius: 6px; background: #f3f4f7; color: var(--bz-muted, #6b7280); font: 600 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.bz-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #f3f4f7; color: var(--bz-muted, #6b7280); font-size: .75rem; font-weight: 700; }
.bz-rank.top { background: var(--bz-red-soft, #fdecec); color: var(--bz-red, #d7141a); }
.card > .table-responsive > .bz-report, .card > .bz-report { margin-bottom: 0; }
.card .dt-container .row:first-child, .card .dt-container .row:last-child { padding: .85rem 1.1rem; margin: 0; }
.card .dt-container table.dataTable { margin: 0 !important; }
table.dataTable td { vertical-align: middle; }
.dt-container .dt-search input, .dt-container .dt-length select { border-radius: 10px; border: 1px solid var(--bz-line); }
.dt-container .dt-paging .page-link { border-radius: 10px !important; margin: 0 2px; border: 0; }
.dt-container .dt-paging .page-item.active .page-link { background: var(--bz-red); color: #fff; }
.table-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; background: #f4f5f8; }
.table-thumb-empty { display: inline-flex; align-items: center; justify-content: center; color: #9aa0ad; }

/* ---------- Badges & status ---------- */
/* P-01: solid Tabler badges (bg-success, bg-danger…) are shown in the soft status style used across all panels. */
.badge.bg-success, .badge.bg-green { background: var(--bz-ok-soft) !important; color: var(--bz-ok-ink) !important; }
.badge.bg-danger, .badge.bg-red { background: var(--bz-bad-soft) !important; color: var(--bz-bad-ink) !important; }
.badge.bg-warning, .badge.bg-yellow, .badge.bg-orange { background: var(--bz-warn-soft) !important; color: var(--bz-warn-ink) !important; }
.badge.bg-info, .badge.bg-azure, .badge.bg-blue, .badge.bg-primary-lt { background: var(--bz-info-soft) !important; color: var(--bz-info-ink) !important; }
.badge.bg-secondary, .badge.bg-dark, .badge.bg-muted { background: var(--bz-mute-soft) !important; color: var(--bz-muted) !important; }
.badge.bg-purple, .badge.bg-indigo, .badge.bg-purple-lt, .badge.bg-indigo-lt { background: var(--bz-red-soft) !important; color: var(--bz-red-dark) !important; }
/* Status badge from status_badge() — same colour for the same status on every screen. */
.bz-st { display: inline-flex; align-items: center; gap: .35rem; border-radius: 50rem; padding: .22rem .65rem; font-size: .74rem; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.bz-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.bz-st-ok { background: var(--bz-ok-soft); color: var(--bz-ok-ink); }
.bz-st-warn { background: var(--bz-warn-soft); color: var(--bz-warn-ink); }
.bz-st-bad { background: var(--bz-bad-soft); color: var(--bz-bad-ink); }
.bz-st-info { background: var(--bz-info-soft); color: var(--bz-info-ink); }
.bz-st-mute { background: var(--bz-mute-soft); color: var(--bz-muted); }
.badge { border-radius: 50rem; font-weight: 700; letter-spacing: .02em; padding: .38em .75em; }
.badge.bg-success-lt, .badge.bg-green-lt { background: #e7f7ee !important; color: #15803d !important; }
.badge.bg-danger-lt, .badge.bg-red-lt { background: #fdecec !important; color: #c81419 !important; }
.badge.bg-warning-lt, .badge.bg-yellow-lt, .badge.bg-orange-lt { background: #fff4e0 !important; color: #b45309 !important; }
.badge.bg-secondary-lt { background: #f1f2f6 !important; color: var(--bz-muted) !important; }
.badge.bg-blue-lt, .badge.bg-azure-lt, .badge.bg-info-lt { background: #e8f1fe !important; color: #1d4ed8 !important; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: var(--bz-line); min-height: 40px; }
.form-control:focus, .form-select:focus { border-color: #f3a5a7; box-shadow: var(--bz-focus); }
.form-label { font-weight: 600; font-size: .82rem; color: var(--bz-ink-2); }
.form-control::placeholder { color: #9aa0ad; }
.invalid-feedback { font-size: .78rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--bz-bad); }
.form-check-input:checked { background-color: var(--bz-red); border-color: var(--bz-red); }
.modal-content { border-radius: 18px; border: 0; }
.modal-header { border-bottom: 1px solid var(--bz-line); }
.modal-footer { border-top: 1px solid var(--bz-line); }
.nav-tabs .nav-link.active { color: var(--bz-red); border-bottom-color: var(--bz-red); }

/* Horizontal pill tabs (settings etc.) */
.bz-tabs { display: flex; gap: .4rem; overflow-x: auto; background: #fff; border: 1px solid var(--bz-line); border-radius: var(--bz-radius); padding: .45rem; box-shadow: var(--bz-shadow); scrollbar-width: thin; }
.bz-tabs a, .bz-tabs button { border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .55rem .9rem; border-radius: 11px; color: #4b5060; font-weight: 600; font-size: .84rem; }
.bz-tabs a:hover, .bz-tabs button:hover { background: var(--bz-hover); color: var(--bz-ink); }
.bz-tabs a.active, .bz-tabs button.active, .bz-tabs button.active:hover { background: var(--bz-red); color: #fff; box-shadow: 0 4px 12px rgba(215, 20, 26, .25); }

/* Select2 / misc from before */
.select2-container { width: 100% !important; }
.select2-container--open { z-index: 2000; }
.select2-container--bootstrap-5 .select2-selection { border-radius: 10px; border-color: var(--bz-line); min-height: 40px; }
.image-tile { position: relative; width: 120px; }
.image-tile img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--bz-line); }
.image-tile .btn-remove { position: absolute; top: 4px; right: 4px; }
.image-tile .badge-primary-img { position: absolute; left: 4px; bottom: 4px; }
.perm-matrix th, .perm-matrix td { white-space: nowrap; }
.perm-matrix thead th { position: sticky; top: 0; background: #f6f7fa; z-index: 1; }
.bitzo-brand { font-weight: 700; letter-spacing: .08em; font-size: 1.35rem; color: var(--bz-red); }

/* ---------- Login ---------- */
body.bz-auth { min-height: 100vh; background: radial-gradient(1200px 600px at 20% 10%, #2b1f3a 0%, #17121f 55%, #0f0b15 100%); display: flex; }
.bz-auth-wrap { margin: auto; width: 100%; max-width: 440px; padding: 2rem 1rem; }
.bz-auth-card { background: #fff; border-radius: 22px; padding: 2.25rem 2rem 2rem; border-top: 5px solid var(--bz-red); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.bz-auth-logo { height: 56px; width: auto; margin-bottom: .75rem; }
.bz-role-pill { display: inline-block; background: var(--bz-red-soft); color: var(--bz-red); font-weight: 700; font-size: .72rem; letter-spacing: .08em; padding: .35rem .9rem; border-radius: 50rem; }
.bz-auth-title { text-align: center; font-size: 1.45rem; margin: 1rem 0 .25rem; }
.bz-auth-sub { text-align: center; color: #6b7280; font-size: .9rem; margin-bottom: 1.5rem; }
.bz-label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .35rem; color: #1d1b26; }
.bz-input { background: #eef3fd; border: 1px solid #dfe6f5; border-radius: 12px; height: 46px; font-size: .95rem; }
.bz-input:focus { background: #fff; }
.bz-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--bz-muted-2); font-size: 1.15rem; }
.bz-link { color: var(--bz-red); font-weight: 600; font-size: .85rem; }
.bz-link:hover { color: var(--bz-red-dark); }
.bz-auth-foot { text-align: center; color: rgba(255,255,255,.45); font-size: .75rem; margin-top: 1.25rem; }

@media print {
	.bz-side, .bz-top, .bz-foot { display: none !important; }
	.bz-main { margin: 0; }
	body { background: #fff; }
}

/* ---------- Filters popup ---------- */
.bzf .modal-header { padding: 1.25rem 1.5rem; }
.bzf .modal-body { padding: 1.5rem; }
.bzf .form-control, .bzf .form-select { min-height: 46px; border-radius: 12px; }
.bzf .bzf-q { background: #f1f2f6; border: 1px solid var(--bz-line); color: #2b2d38; font-weight: 500; }
.bzf .bzf-q.active, .bzf .bzf-q:hover { background: var(--bz-red); color: #fff; border-color: var(--bz-red); }
.btn-filters { background: #fff; border: 1px solid var(--bz-line); }

/* ---------- Mobile tables: each row becomes a card ---------- */
@media (max-width: 767.98px) {
	table.bz-cards thead { display: none; }
	table.bz-cards, table.bz-cards tbody, table.bz-cards tr, table.bz-cards td { display: block; width: 100% !important; }
	table.bz-cards tr { border: 1px solid var(--bz-line); border-radius: 14px; margin: 0 0 .75rem; padding: .35rem .25rem; background: #fff; box-shadow: var(--bz-shadow); }
	table.bz-cards td { border: 0 !important; padding: .35rem .75rem !important; display: flex; align-items: flex-start; gap: .75rem; text-align: right !important; justify-content: space-between; min-height: 0; }
	table.bz-cards td::before { content: attr(data-label); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--bz-muted-2); text-align: left; flex: 0 0 38%; padding-top: .15rem; }
	table.bz-cards td[data-label=""]::before { display: none; }
	table.bz-cards td[data-label=""] { justify-content: flex-end; }
	table.bz-cards td[colspan] { justify-content: center; text-align: center !important; }
	table.bz-cards td[colspan]::before { display: none; }
	table.bz-cards tbody tr:hover > * { background: transparent; }
	.card > .table-responsive > table.bz-cards, .card .dt-container table.bz-cards { padding: .75rem; background: #f4f5f8; }
	.card .dt-container .row:first-child, .card .dt-container .row:last-child { padding: .5rem .75rem; }
	.bz-page-actions { width: 100%; }
	.bz-page-actions > .btn { flex: 1 1 auto; }
	.bz-content { padding: .75rem; }
	.bz-top { padding: .6rem .75rem; }
	.bz-search kbd { display: none; }
}

/* Bootstrap tabs inside panels look like the BITZO pill tabs */
.bz-content .nav-tabs { display: flex; flex-wrap: nowrap; gap: .4rem; overflow-x: auto; background: #fff; border: 1px solid var(--bz-line); border-radius: var(--bz-radius); padding: .45rem; box-shadow: var(--bz-shadow); scrollbar-width: thin; }
.bz-content .card-header .nav-tabs, .bz-content .nav-tabs.card-header-tabs { box-shadow: none; margin: 0; }
.bz-content .nav-tabs .nav-item { margin: 0; }
.bz-content .nav-tabs .nav-link { border: 0 !important; margin: 0; white-space: nowrap; padding: .55rem .9rem; border-radius: 11px; color: #4b5060; font-weight: 600; font-size: .84rem; background: transparent; }
.bz-content .nav-tabs .nav-link:hover { background: var(--bz-hover); color: var(--bz-ink); }
.bz-content .nav-tabs .nav-link.active { background: var(--bz-red); color: #fff; box-shadow: 0 4px 12px rgba(215, 20, 26, .25); }
.bz-content .nav-tabs .nav-link.active::after { display: none; }

/* No underline on links (Tabler adds one on hover) */
:root { --tblr-link-hover-decoration: none; --tblr-link-decoration: none; }
a, a:hover, a:focus, a:active, .btn:hover, .dropdown-item:hover, .nav-link:hover { text-decoration: none !important; }

/* ===== P-02 shared layout (all staff panels) ===== */
.bz-side-nav { padding: .25rem .65rem 1rem; }
.bz-side-head { display: flex; align-items: center; width: 100%; border: 0; background: transparent; cursor: pointer; font-size: .66rem; padding: 1rem .55rem .4rem; color: var(--bz-muted-2); }
.bz-side-head span { flex: 1; text-align: left; }
.bz-side-head .ti { font-size: .85rem; transition: transform .15s ease; }
.bz-side-head:hover { color: var(--bz-ink-2); }
.bz-side-head:focus-visible { outline: none; box-shadow: var(--bz-focus); border-radius: 8px; }
.bz-side-grp.closed .bz-side-items { display: none; }
.bz-side-grp.closed .bz-side-head .ti { transform: rotate(-90deg); }
.bz-side-link { gap: .65rem; padding: .5rem .6rem; border-radius: 10px; color: var(--bz-ink-2); font-size: .875rem; }
.bz-side-ic { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--bz-muted-2); font-size: 1.15rem; }
.bz-side-link:hover .bz-side-ic { color: var(--bz-ink); }
.bz-side-link.active { background: var(--bz-red); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(215, 20, 26, .22); }
.bz-side-link.active .bz-side-ic, .bz-side-link.active:hover .bz-side-ic { color: #fff; }
.bz-side-link.active:hover { background: var(--bz-red-dark); color: #fff; }
.bz-side-link:focus-visible { outline: none; box-shadow: var(--bz-focus); }
.bz-side-logout { color: var(--bz-bad); } .bz-side-logout .bz-side-ic { color: var(--bz-bad); }
body.bz-mini .bz-side-items { display: block !important; }
body.bz-mini .bz-side-link { padding: .5rem; }
/* top bar */
.bz-round-plain { background: #fff; border: 1px solid var(--bz-line); color: var(--bz-ink-2); }
.bz-round-red { background: var(--bz-red-soft); }
.bz-user { background: #fff; border: 1px solid var(--bz-line); }
.bz-user:hover { background: var(--bz-hover); }
.bz-role { background: var(--bz-red-soft); color: var(--bz-red-dark); }
.bz-tile-plain { background: var(--bz-hover); color: var(--bz-ink-2); }
/* page header */
.bz-page-desc { margin: .3rem 0 0; color: var(--bz-muted); font-size: .84rem; max-width: 70ch; }
.bz-title-row { display: flex; align-items: center; gap: .5rem; }
.bz-info { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--bz-red-soft, #fdecec); color: var(--bz-red, #d7141a);
	display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; cursor: help; transition: background .12s, color .12s; }
.bz-info:hover, .bz-info:focus-visible { background: var(--bz-red, #d7141a); color: #fff; outline: none; }
.bz-tip.wide { max-width: 320px; padding: .55rem .8rem; font-size: .8rem; line-height: 1.45; border-radius: 10px; }
.bz-page-head .bz-tile-lg { background: var(--bz-red-soft); color: var(--bz-red); }
@media (max-width: 575.98px) {
	.bz-top { padding: .6rem .9rem; gap: .5rem; }
	.bz-search { flex: 1 1 0; min-width: 0; height: 40px; }
	.bz-top > .ms-auto { flex: none; }
	.bz-page-head .bz-tile-lg { display: none; }
	.bz-page-actions { width: 100%; }
	.bz-page-actions .btn { flex: 1 1 auto; }
}
/* Views use .min-w-0 for text columns that must shrink (Tabler doesn't define it). */
.min-w-0 { min-width: 0 !important; }
/* Summary cards on phones: smaller icon, numbers may wrap instead of pushing the page wider. */
.bz-kpi > div { min-width: 0; }
.bz-kpi .fs-3, .bz-kpi .v { overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
	.bz-kpi { padding: .8rem .85rem; gap: .6rem; }
	.bz-kpi .bz-tile-lg { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 10px; }
	.bz-kpi .fs-3 { font-size: 1.05rem !important; }
}

/* ===== P-03 components ===== */
/* Phone table cards: title first, no empty labels, actions at the bottom right */
@media (max-width: 767.98px) {
	table.bz-cards tr { display: flex !important; flex-wrap: wrap; padding: .55rem .35rem; }
	table.bz-cards td { flex: 1 1 100%; }
	table.bz-cards td.bz-card-title { order: -2; font-weight: 600; font-size: .92rem; text-align: left !important; justify-content: flex-start; padding-bottom: .5rem !important; margin-bottom: .2rem; border-bottom: 1px solid var(--bz-line) !important; }
	table.bz-cards td.bz-card-title::before, table.bz-cards td.bz-card-plain::before, table.bz-cards td.bz-card-actions::before, table.bz-cards td.bz-card-full::before { display: none; }
	table.bz-cards td.bz-card-plain { flex: 0 0 auto; order: -3; justify-content: flex-start; padding-right: 0 !important; }
	table.bz-cards td.bz-card-plain:empty { display: none !important; }
	table.bz-cards td.bz-card-actions { order: 9; justify-content: flex-end; gap: .4rem; border-top: 1px solid var(--bz-line) !important; margin-top: .3rem; padding-top: .55rem !important; }
	table.bz-cards td.bz-card-full { justify-content: center; text-align: center !important; }
	table.bz-cards tr:has(> td.bz-card-full) { box-shadow: none; border-style: dashed; }
	.dt-container .row { row-gap: .5rem; }
	.dt-container .dt-search, .dt-container .dt-search input { width: 100%; margin-left: 0 !important; }
}
/* Empty and loading states */
.bz-empty { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.75rem 1rem; color: var(--bz-muted); text-align: center; }
.bz-empty .ti { font-size: 2rem; color: #c3c7d1; }
.bz-empty b { color: var(--bz-ink-2); font-weight: 600; }
.bz-empty span { font-size: .82rem; }
div.dt-processing { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.bz-loading { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--bz-line); border-radius: 50rem; padding: .45rem .9rem; font-size: .82rem; font-weight: 600; color: var(--bz-ink-2); box-shadow: var(--bz-shadow); }
.bz-loading .spinner-border { color: var(--bz-red); }
div.dt-processing > div:not(.bz-loading) { display: none; }
.bz-skeleton { display: block; height: .9rem; border-radius: 6px; background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 50%, #eef0f4 75%); background-size: 200% 100%; animation: bzsk 1.2s infinite linear; }
@keyframes bzsk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .bz-skeleton { animation: none; } }
/* Dialogs (all SweetAlert pop-ups): one look */
.swal2-popup { font-family: var(--tblr-font-sans-serif) !important; border-radius: 18px !important; padding: 1.4rem 1.25rem 1.25rem !important; }
.swal2-title { font-size: 1.2rem !important; color: var(--bz-ink) !important; font-weight: 700 !important; }
.swal2-html-container { color: var(--bz-muted) !important; font-size: .92rem !important; }
.swal2-actions { gap: .5rem; }
.swal2-styled { border-radius: var(--bz-r-ctl) !important; font-weight: 600 !important; font-size: .9rem !important; padding: .6rem 1.1rem !important; margin: 0 !important; box-shadow: none !important; }
.swal2-styled.swal2-confirm { background: var(--bz-red) !important; color: #fff !important; }
.swal2-styled.swal2-confirm:hover { background: var(--bz-red-dark) !important; }
.swal2-styled.swal2-cancel, .swal2-styled.swal2-deny { background: #fff !important; color: var(--bz-ink) !important; border: 1px solid var(--bz-line) !important; }
.swal2-styled:focus-visible { box-shadow: var(--bz-focus) !important; }
.swal2-input, .swal2-textarea, .swal2-select { border-radius: var(--bz-r-ctl) !important; border: 1px solid var(--bz-line) !important; font-size: .92rem !important; box-shadow: none !important; }
.swal2-input:focus, .swal2-textarea:focus { border-color: #f3a5a7 !important; box-shadow: var(--bz-focus) !important; }
.swal2-icon.swal2-warning { border-color: var(--bz-warn) !important; color: var(--bz-warn) !important; }
.swal2-toast { border-radius: 12px !important; box-shadow: 0 10px 30px rgba(17, 24, 39, .14) !important; }
/* Side drawer (Bitzo.drawer) */
.bz-drawer { width: min(440px, 100vw) !important; border-left: 1px solid var(--bz-line); }
.bz-drawer-lg { width: min(640px, 100vw) !important; }
.bz-drawer .offcanvas-header { border-bottom: 1px solid var(--bz-line); padding: 1rem 1.25rem; }
.bz-drawer .offcanvas-title { font-size: 1.05rem; font-weight: 700; }
.bz-drawer .offcanvas-body { padding: 1.25rem; }
.bz-drawer-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .85rem 1.25rem; border-top: 1px solid var(--bz-line); background: #fff; }
/* Filters pop-up becomes a bottom sheet on phones */
@media (max-width: 575.98px) {
	.bzf-modal .modal-dialog { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; max-height: 88vh; align-items: flex-end; }
	.bzf-modal .modal-content { border-radius: 20px 20px 0 0; max-height: 88vh; }
	.bzf-modal .modal-body { padding: 1rem; overflow-x: hidden; }
	.bzf-modal .modal-footer { position: sticky; bottom: 0; background: #fff; }
}
@media (max-width: 575.98px) {
	.bz-page-actions .btn-group { display: flex; width: 100%; }
	.bz-page-actions .btn-group > .btn { flex: 1 1 0; min-width: 0; padding-left: .5rem; padding-right: .5rem; }
}

/* ===== P-04 pilots ===== */
.bz-tab-n { display: inline-block; min-width: 1.4em; margin-left: .3rem; padding: 0 .4rem; border-radius: 50rem; background: var(--bz-hover); color: var(--bz-muted); font-size: .72rem; font-weight: 700; line-height: 1.6; }
.bz-tabs .active .bz-tab-n { background: rgba(255, 255, 255, .22); color: #fff; }
/* Money position: assets / receivables / liabilities */
.bz-mp { height: 100%; border: 1px solid var(--bz-line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.bz-mp-h { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; color: #fff; font-weight: 600; }
.bz-mp-h .ti { font-size: 1.15rem; }
.bz-mp-h small { margin-left: auto; font-weight: 500; opacity: .85; font-size: .72rem; }
.bz-mp-asset .bz-mp-h { background: var(--bz-red); }
.bz-mp-rcv .bz-mp-h { background: #ea580c; }
.bz-mp-lia .bz-mp-h { background: #475569; }
.bz-mp-list { list-style: none; margin: 0; padding: .35rem .9rem; }
.bz-mp-list li { display: flex; gap: .75rem; justify-content: space-between; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--bz-line); font-size: .84rem; }
.bz-mp-list li:last-child { border-bottom: 0; }
.bz-mp-list li span { min-width: 0; }
.bz-mp-list li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bz-mp-list li.is-zero b { color: var(--bz-muted-2); font-weight: 500; }
.bz-mp-tot { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem .9rem; border-top: 1px dashed var(--bz-line); font-size: .86rem; font-weight: 700; margin-top: auto; }
.bz-mp-tot b { font-variant-numeric: tabular-nums; }
.bz-mp-extra { background: var(--bz-hover); border-top: 1px solid var(--bz-line); }
/* Order timeline */
.bz-tl { list-style: none; margin: 0; padding: .5rem 1.1rem 1rem; }
.bz-tl li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: .75rem; padding: .6rem 0; }
.bz-tl li::before { content: ""; position: absolute; left: 12px; top: 2.1rem; bottom: -.4rem; width: 2px; background: var(--bz-line); }
.bz-tl li:last-child::before { display: none; }
.bz-tl .ic { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem; position: relative; z-index: 1; }
.bz-tl .ic.ok { background: var(--bz-ok); } .bz-tl .ic.warn { background: var(--bz-warn); } .bz-tl .ic.bad { background: var(--bz-bad); } .bz-tl .ic.info { background: var(--bz-info); } .bz-tl .ic.mute { background: var(--bz-muted-2); }
.bz-tl small { color: var(--bz-muted); }
.bz-tl .when { font-size: .76rem; color: var(--bz-muted); white-space: nowrap; }
/* Order summary strip */
.bz-sum { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; padding: .9rem 1.1rem; }
.bz-sum .st { display: flex; flex-wrap: wrap; gap: .4rem; }
.bz-sum dl { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; }
.bz-sum dt { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bz-muted-2); }
.bz-sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bz-sum .act { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.card-title .ti.bz-h-ic { color: var(--bz-red); margin-right: .35rem; }
@media (max-width: 575.98px) { .bz-sum .act { margin-left: 0; width: 100%; } .bz-sum .act .btn { flex: 1 1 auto; } }
/* Card headers wrap on phones so toolbars (filters, buttons) never push the page wider (P-05). */
@media (max-width: 767.98px) {
	.card-header { flex-wrap: wrap; row-gap: .5rem; }
	.card-header > .ms-auto, .card-header .card-actions { max-width: 100%; flex-wrap: wrap; }
}
/* Tab strips never grow wider than their box; extra tabs scroll inside the strip. */
.bz-tabs { max-width: 100%; min-width: 0; }
.card-header > .bz-tabs { flex: 0 1 auto; }

/* ===== P-06 store counters (franchise POS) ===== */
.bill-line .input-group { width: 132px !important; flex: none; }
.bill-line .input-group .btn-icon { width: 40px; min-height: 40px; }
.bill-line .input-group .form-control { min-height: 40px; font-weight: 700; font-size: .95rem; }
.bill-line .fw-medium { font-size: .92rem; }
@media (max-width: 575.98px) { .bill-line .d-flex { flex-wrap: wrap; } .bill-line .flex-grow-1 { flex-basis: 100%; } }
/* Buttons that hold several lines (POS product tiles): stack the lines, don't sit them side by side.
   P-01 made .btn a horizontal flex box for icon + label; these opt out (P-06 fix). */
.btn.btn-stack, .btn.js-pick { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .15rem; white-space: normal; min-height: 64px; }
.btn.js-pick .fw-medium { white-space: normal; overflow: visible; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
/* Role tag in the top bar stays on one line; on narrower screens it is shown only inside the profile menu (P-06). */
.bz-role { white-space: nowrap; }
@media (max-width: 1199.98px) { .bz-user .bz-role { display: none !important; } }

/* ===== Row action buttons + tooltips (2026-11-16) =====
   panel.js turns every button / link inside a table cell into .btn.bz-act: one size, one shape, colour by intent.
   Desktop: icon only, the name shows as a tooltip. Phone cards: icon + name (no hover on touch). */
.btn.bz-act { --a: var(--bz-ink-2, #3b3b45); --a-bg: #f3f4f7; --a-line: var(--bz-line);
	display: inline-flex; align-items: center; justify-content: center; gap: .35rem; height: 32px; min-width: 32px; padding: 0 .5rem; margin: 0;
	border: 1px solid var(--a-line); border-radius: 9px; background: #fff; color: var(--a); font-size: .8rem; font-weight: 600; line-height: 1; white-space: nowrap;
	text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; vertical-align: middle; }
.btn.bz-act i.ti { font-size: 1.05rem; line-height: 1; }
.btn.bz-act:hover, .btn.bz-act:focus-visible { background: var(--a-bg); border-color: color-mix(in srgb, var(--a) 35%, var(--bz-line)); color: var(--a); text-decoration: none; }
.btn.bz-act:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 22%, transparent); }
.btn.bz-act:active { transform: translateY(1px); }
.btn.bz-act:disabled, .btn.bz-act.disabled { opacity: .45; pointer-events: none; }
.bz-act-icon { width: 32px; padding: 0; }
.bz-act-icon .bz-act-l { display: none; }
.bz-act-primary { --a: var(--bz-red, #d7141a); --a-bg: #fdecec; }
.bz-act-danger { --a: #dc2626; --a-bg: #fdeaea; }
.bz-act-success { --a: #15803d; --a-bg: #e8f6ee; }
.bz-act-warning { --a: #b45309; --a-bg: #fef4e2; }
.bz-act-info { --a: #2563eb; --a-bg: #e8effd; }
.bz-acts { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
td .btn-list:has(> .btn.bz-act) { gap: 6px !important; flex-wrap: nowrap; }
td .btn-list:has(> .btn.bz-act) > * { margin: 0 !important; }
/* Tooltip */
.bz-tip { position: fixed; z-index: 2000; pointer-events: none; max-width: 240px; padding: .35rem .6rem; border-radius: 8px; background: #171717; color: #fff;
	font: 500 .75rem/1.3 'Poppins', system-ui, sans-serif; box-shadow: 0 6px 18px rgba(17, 24, 39, .22); opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; }
.bz-tip.on { opacity: 1; transform: none; }
.bz-tip::after { content: ''; position: absolute; left: var(--tip-x, 50%); top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #171717; }
.bz-tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #171717; }
@media (prefers-reduced-motion: reduce) { .bz-tip { transition: none; } }
/* Phone cards: show the name next to the icon, bigger touch targets */
@media (max-width: 767.98px) {
	table.bz-cards td.bz-card-actions { flex-wrap: wrap; }
	table.bz-cards .btn.bz-act { height: 38px; min-width: 38px; padding: 0 .7rem; }
	table.bz-cards .bz-act-icon { width: auto; }
	table.bz-cards .bz-act-icon .bz-act-l { display: inline; }
	table.bz-cards td .btn-list:has(> .btn.bz-act) { flex-wrap: wrap; justify-content: flex-end; }
}

/* ===================== Top-menu layout: franchise & Food Corner panels (NP-04) ===================== */
body.bz-topnav { background: #f6f7fb; }
body.bz-topnav .bz-main { margin-left: 0; background: radial-gradient(1200px 260px at 15% 0, #fdeeee 0, rgba(253,238,238,0) 70%), radial-gradient(900px 240px at 85% 0, #fff3ec 0, rgba(255,243,236,0) 70%); background-repeat: no-repeat; }
body.bz-topnav .bz-content { max-width: 1760px; margin: 0 auto; padding: 1.25rem 1.75rem 2rem; }
@media (min-width: 992px) { body.bz-topnav .bz-side, body.bz-topnav .bz-side-backdrop { display: none !important; } }
.bz-tnav { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: .9rem; height: 68px; padding: 0 1.5rem; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bz-line); box-shadow: 0 2px 14px rgba(16,24,40,.04); }
.bz-tnav-brand { display: flex; align-items: center; gap: .55rem; padding-right: 1.1rem; margin-right: .2rem; border-right: 1px solid var(--bz-line); height: 40px; text-decoration: none; flex: none; }
.bz-tnav-brand img { height: 36px; width: auto; }
.bz-tnav-menu { flex: 1 1 auto; min-width: 0; align-items: center; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.bz-tnav-menu::-webkit-scrollbar { display: none; }
.bz-tnav-link { display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 .95rem; border-radius: 12px; color: var(--bz-ink-2); font-weight: 500; font-size: .9rem; white-space: nowrap; transition: background .12s, color .12s; }
.bz-tnav-link .ti { font-size: 1.2rem; color: var(--bz-muted); transition: color .12s; }
.bz-tnav-link:hover { background: var(--bz-red-soft); color: var(--bz-red); text-decoration: none; }
.bz-tnav-link:hover .ti { color: var(--bz-red); }
.bz-tnav-link.active { background: linear-gradient(135deg, #e3262c, var(--bz-red-dark)); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(215,20,26,.28); }
.bz-tnav-link.active .ti { color: #fff; }
.bz-tnav-link:focus-visible { outline: none; box-shadow: var(--bz-focus); }
.bz-tnav-right { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex: none; }
.bz-tnav-right > .ms-auto { margin-left: 0 !important; }
.bz-tnav-outlet { align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--bz-ink-2); background: #f5f6fa; border: 1px solid var(--bz-line); border-radius: 50rem; padding: .3rem .7rem; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-tnav-search { flex: none; border: 0; padding: 0; height: auto; background: none; }
.bz-tnav-search input { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); width: 0; opacity: 0; pointer-events: none; height: 40px; border: 1px solid var(--bz-line) !important; border-radius: 12px; background: #fff !important; padding: 0 .8rem; transition: width .18s ease, opacity .18s ease; box-shadow: 0 8px 24px rgba(16,24,40,.08); }
.bz-tnav-search.open input { width: 280px; opacity: 1; pointer-events: auto; }
.bz-tnav-search .bz-search-results { left: auto; right: 0; width: 340px; }
/* Desktop widths where the full labels do not fit: icons only (name shows as a tooltip), the active page keeps its label. */
@media (min-width: 992px) and (max-width: 1439.98px) {
	.bz-tnav { gap: .6rem; padding: 0 1rem; }
	.bz-tnav-link { padding: 0 .7rem; }
	.bz-tnav-link:not(.active) span { display: none; }
}
@media (max-width: 991.98px) {
	.bz-tnav { height: 60px; padding: 0 .75rem; gap: .5rem; }
	.bz-tnav-brand { border-right: 0; padding-right: 0; }
	.bz-tnav-brand img { height: 30px; }
	.bz-tnav-search.open input { width: min(62vw, 260px); }
	.bz-tnav-search .bz-search-results { width: min(86vw, 340px); }
	body.bz-topnav .bz-content { padding: 1rem; }
}
@media (max-width: 575.98px) { .bz-tnav-brand .bz-portal-pill { display: none; } .bz-tnav-right { gap: .35rem; } }
@media print { .bz-tnav { display: none !important; } }
/* Page header on top-menu panels */
body.bz-topnav .bz-page-head .bz-tile-lg { background: #fff; color: var(--bz-red); box-shadow: 0 4px 14px rgba(215,20,26,.12); border: 1px solid #f8d4d5; }
body.bz-topnav .bz-page-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; }
body.bz-topnav .card { border-radius: 18px; border-color: #eceef4; box-shadow: 0 4px 18px rgba(16,24,40,.05); }
/* Keep every menu link visible: the shop name chip only on very wide screens; name / role pill shrink first. */
.bz-tnav-outlet { display: none !important; }
@media (min-width: 2100px) { .bz-tnav-outlet { display: inline-flex !important; } }
@media (min-width: 992px) and (max-width: 2099.98px) { .bz-tnav .bz-user .bz-role { display: none !important; } }
@media (min-width: 992px) and (max-width: 1699.98px) { .bz-tnav .bz-user > .fw-semibold { display: none !important; } }
