/* T160 (owner 3/11, rebuilt): the app dashboard — one screen for customer, staff and manager, floating windows instead
   of new pages. Root variables only. */
.mzs-dash {
	display: grid;
	gap: var(--s-4);
	max-inline-size: 40rem;
	margin-inline: auto;
	padding: var(--s-3) var(--s-4) calc(var(--dock-h) + var(--safe-bottom) + var(--s-3));
}

.mzs-dash__top {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: var(--s-3);
}

.mzs-dash__me {
	display: grid;
	place-items: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	border-radius: 50%;
	background: var(--c-night);
	color: var(--c-gold-night);
	font-weight: var(--fw-bold);
	text-decoration: none;
}

.mzs-dash__hello {
	display: grid;
	min-inline-size: 0;
}

.mzs-dash__hello small {
	color: var(--c-ink-2);
	font-size: var(--fs-tiny);
}

.mzs-dash__hello b {
	overflow: hidden;
	font-size: var(--fs-lead);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mzs-dash__sec {
	display: inline-flex;
	align-items: center;
	gap: var(--s-1);
	padding: var(--s-1) var(--s-3);
	border-radius: var(--r-pill);
	background: var(--c-gold-soft);
	color: var(--c-gold-text);
	font-size: var(--fs-micro);
	font-weight: var(--fw-semi);
	text-decoration: none;
}

.mzs-dash__bell {
	display: grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border: var(--b-1);
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-ink);
}

.mzs-dash__card {
	display: grid;
	gap: var(--s-4);
	padding: var(--s-4);
	border-radius: var(--r-lg);
	background: var(--c-night);
	color: var(--c-on-night);
}

.mzs-dash__card-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--s-3);
}

.mzs-dash__card-row small {
	display: block;
	color: var(--c-on-night-2);
	font-size: var(--fs-tiny);
}

.mzs-dash__card-row b {
	color: var(--c-gold-night);
	font-size: var(--fs-h2);
	line-height: 1.1;
}

.mzs-dash__level {
	display: inline-flex;
	align-items: center;
	gap: var(--s-1);
	padding: var(--s-1) var(--s-3);
	border-radius: var(--r-pill);
	background: var(--c-gold-glow);
	color: var(--c-gold-night);
	font-size: var(--fs-tiny);
	font-weight: var(--fw-semi);
}

.mzs-dash__card-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-2);
}

.mzs-dash__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-1);
	min-block-size: 2.75rem;
	padding-inline: var(--s-2);
	border: 1px solid var(--c-gold-glow);
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--c-on-night);
	font: inherit;
	font-size: var(--fs-tiny);
	font-weight: var(--fw-semi);
	text-decoration: none;
	cursor: pointer;
}

.mzs-dash__pill--gold {
	border-color: var(--c-gold-night);
	background: var(--c-gold-night);
	color: var(--c-night);
}

.mzs-dash__panel {
	display: grid;
	gap: var(--s-3);
	padding: var(--s-4);
	border: var(--b-1);
	border-radius: var(--r-lg);
	background: var(--c-surface);
}

.mzs-dash__panel--bare {
	padding: 0;
	border: 0;
	background: none;
}

.mzs-dash__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.mzs-dash__head h2 {
	margin: 0;
	font-size: var(--fs-body);
}

.mzs-dash__head a {
	color: var(--c-gold-text);
	font-size: var(--fs-small);
	font-weight: var(--fw-semi);
	text-decoration: none;
}

.mzs-dash__ico {
	display: grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border-radius: var(--r-sm);
	background: var(--c-gold-soft);
	color: var(--c-gold-text);
}

.mzs-dash__line {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--s-3);
	padding-block-end: var(--s-3);
	border-block-end: var(--b-1);
	color: var(--c-ink);
	text-decoration: none;
}

.mzs-dash__line small {
	display: block;
	color: var(--c-ink-2);
	font-size: var(--fs-tiny);
}

.mzs-dash__line svg:last-child {
	transform: scaleX(var(--dir-x));
}

.mzs-dash__trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-2);
}

.mzs-dash__trio a,
.mzs-dash__trio button {
	display: grid;
	justify-items: center;
	gap: var(--s-2);
	padding: var(--s-2) var(--s-1);
	border: 0;
	border-radius: var(--r-md);
	background: none;
	color: var(--c-ink);
	font: inherit;
	font-size: var(--fs-tiny);
	font-weight: var(--fw-semi);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.mzs-dash__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-2);
}

.mzs-dash__stats--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mzs-dash__stats a {
	display: grid;
	gap: var(--s-1);
	padding: var(--s-3) var(--s-2);
	border-radius: var(--r-md);
	background: var(--c-paper);
	color: var(--c-ink);
	text-align: center;
	text-decoration: none;
}

.mzs-dash__stats b {
	color: var(--c-gold-text);
	font-size: var(--fs-h3);
	font-variant-numeric: tabular-nums;
}

.mzs-dash__stats small {
	color: var(--c-ink-2);
	font-size: var(--fs-micro);
	line-height: 1.3;
}

.mzs-dash__strip {
	display: flex;
	gap: var(--s-3);
	margin: 0 calc(var(--s-4) * -1);
	padding: 0 var(--s-4) var(--s-1);
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.mzs-dash__strip li {
	display: grid;
	flex: 0 0 8.5rem;
	gap: var(--s-1);
	font-size: var(--fs-tiny);
}

.mzs-dash__strip small {
	color: var(--c-gold-text);
	font-weight: var(--fw-semi);
}

.mzs-dash__img {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--r-md);
	background: var(--c-gold-soft);
}

.mzs-dash__img img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.mzs-dash__muted {
	margin: 0;
	color: var(--c-ink-2);
	font-size: var(--fs-small);
}

/* floating windows */
.mzs-dash__sheet {
	position: fixed;
	inset: 0;
	z-index: var(--z-sheet);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: var(--s-3) var(--s-3) calc(var(--safe-bottom) + var(--s-3));
	background: var(--c-scrim);
}

.mzs-dash__sheet[hidden] {
	display: none;
}

.mzs-dash__box {
	display: grid;
	gap: var(--s-3);
	inline-size: min(100%, 30rem);
	max-block-size: 85vh;
	overflow: auto;
	padding: var(--s-4);
	border-radius: var(--r-xl);
	background: var(--c-surface);
	box-shadow: var(--shadow-1);
	text-align: center;
}

.mzs-dash__box-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: start;
}

.mzs-dash__x {
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: var(--c-paper);
	color: var(--c-ink);
	font-size: var(--fs-lead);
	cursor: pointer;
}

.mzs-dash__tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-1);
	padding: var(--s-1);
	border-radius: var(--r-pill);
	background: var(--c-paper);
}

.mzs-dash__tabs--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mzs-dash__tabs button {
	min-block-size: 2.5rem;
	border: 0;
	border-radius: var(--r-pill);
	background: none;
	color: var(--c-ink-2);
	font: inherit;
	font-size: var(--fs-micro);
	font-weight: var(--fw-semi);
	cursor: pointer;
}

.mzs-dash__tabs button[aria-selected="true"] {
	background: var(--c-surface);
	color: var(--c-ink);
	box-shadow: var(--shadow-1);
}

.mzs-dash__pane {
	display: grid;
	justify-items: center;
	gap: var(--s-3);
}

.mzs-dash__pane[hidden] {
	display: none;
}

.mzs-dash__pane p {
	margin: 0;
}

.mzs-dash__qr {
	display: grid;
	place-items: center;
	inline-size: 12rem;
	min-block-size: 12rem;
	padding: var(--s-2);
	border-radius: var(--r-md);
	background: var(--c-paper);
}

.mzs-dash__big-ico {
	display: grid;
	place-items: center;
	inline-size: 4rem;
	block-size: 4rem;
	border-radius: 50%;
	background: var(--c-gold-soft);
	color: var(--c-gold-text);
}

.mzs-dash__shops {
	display: grid;
	gap: var(--s-2);
	text-align: start;
}

.mzs-dash__shop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	padding: var(--s-3);
	border: var(--b-1);
	border-radius: var(--r-md);
}

.mzs-dash__shop span {
	display: grid;
}

.mzs-dash__shop small {
	color: var(--c-ink-2);
	font-size: var(--fs-tiny);
}

/* T262 (approved 4/11): the Tareeq al-Janna card on the app home (campaign green + gold) */
.mzs-tjcard {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	margin: 0 0 var(--s-4);
	padding: var(--s-3) var(--s-4);
	border-radius: var(--r-xl);
	background: var(--c-tj-green);
	color: var(--c-on-tj);
	text-decoration: none;
	box-shadow: 0 10px 24px var(--c-shadow);
}

.mzs-tjcard__mark {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 2px solid var(--c-gold-night);
	border-radius: var(--r-pill);
	color: var(--c-gold-night);
	font-size: var(--fs-h3);
	font-weight: var(--fw-bold);
}

.mzs-tjcard__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: var(--lh-tight);
}

.mzs-tjcard__text b {
	color: var(--c-gold-night);
	font-size: var(--fs-body);
}

.mzs-tjcard__text small {
	color: var(--c-on-tj);
	font-size: var(--fs-tiny);
	opacity: 0.85;
}

.mzs-tjcard__new {
	flex: none;
	padding: 0 var(--s-2);
	border-radius: var(--r-pill);
	background: var(--c-gold-night);
	color: var(--c-tj-green);
	font-size: var(--fs-tiny);
	font-weight: var(--fw-bold);
	line-height: 1.5rem;
}

.mzs-tjcard__go {
	display: inline-flex;
	flex: none;
	color: var(--c-gold-night);
}

[dir="rtl"] .mzs-tjcard__go svg {
	transform: scaleX(-1);
}

/* ---------- T337 (owner approved the app home preview round 2, 9/11): customer face / work face ---------- */
.mzh { display: grid; gap: var(--s-4); }
.mzh button { font: inherit; }
.mzh-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.mzh-hi { display: flex; align-items: center; gap: var(--s-3); color: inherit; text-decoration: none; min-width: 0; }
.mzh-hi small { display: block; color: var(--c-ink-2); font-size: var(--fs-small); }
.mzh-hi b { display: block; font-size: var(--fs-h3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzh-avatar { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--c-gold); color: var(--c-on-gold); font-weight: var(--fw-bold); }
.mzh-bell { position: relative; display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-paper); color: var(--c-ink); }
.mzh-dot { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 1.15rem; height: 1.15rem; padding: 0 5px; border-radius: var(--r-pill); background: var(--c-bad); color: var(--c-paper); font-size: var(--fs-micro); line-height: 1.15rem; text-align: center; }
.mzh-card, .mzh-shift { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-xl); background: var(--c-night); color: var(--c-on-night-2); }
.mzh-card small, .mzh-shift small { display: block; font-size: var(--fs-small); }
.mzh-card__pts { display: block; margin-block: 2px; color: var(--c-on-night); font-size: var(--fs-h1); }
.mzh-card__mark { flex: none; width: 3rem; height: 3rem; padding: 6px; border: 1px solid var(--c-night-line-strong); border-radius: var(--r-md); }
.mzh-shift b { display: block; margin-block: 2px; color: var(--c-on-night); font-size: var(--fs-h3); }
.mzh-shift__dot { flex: none; width: .9rem; height: .9rem; border-radius: 50%; background: var(--c-on-night-3); box-shadow: 0 0 0 4px var(--c-night-line); }
.mzh-shift__dot.is-on { background: var(--c-ok); box-shadow: 0 0 0 4px var(--c-ok-bg); }
.mzh-big { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.mzh-big__btn { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-paper); color: var(--c-ink); text-align: start; text-decoration: none; cursor: pointer; }
.mzh-big__btn svg { color: var(--c-gold-text); }
.mzh-big__btn b { font-size: var(--fs-body); }
.mzh-big__btn small { color: var(--c-ink-2); font-size: var(--fs-small); }
.mzh-big__btn--gold { border-color: transparent; background: var(--c-gold); color: var(--c-on-gold); }
.mzh-big__btn--gold svg, .mzh-big__btn--gold small { color: var(--c-on-gold); }
.mzh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.mzh-grid > a, .mzh-grid > button, .mzh-ws__row > a, .mzh-ws__row > button { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-1); padding: var(--s-3) var(--s-1); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); color: var(--c-ink); font-size: var(--fs-tiny); text-align: center; text-decoration: none; cursor: pointer; }
.mzh-grid svg, .mzh-ws__row svg { color: var(--c-gold-text); }
.mzh-badge { display: inline-block; min-width: 1.25rem; padding: 0 6px; border-radius: var(--r-pill); background: var(--c-bad); color: var(--c-paper); font-size: var(--fs-micro); line-height: 1.25rem; text-align: center; vertical-align: middle; }
.mzh-badge--abs { position: absolute; top: 4px; inset-inline-end: 6px; }
.mzh-last { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--c-ok); border-radius: var(--r-md); background: var(--c-ok-bg); color: var(--c-ink); text-decoration: none; }
.mzh-last__ico { display: grid; flex: none; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); background: var(--c-paper); color: var(--c-ok); }
.mzh-last b { display: block; font-size: var(--fs-small); }
.mzh-last small { color: var(--c-ink-2); font-size: var(--fs-tiny); }
.mzh-switchbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-lg); background: var(--c-surface); }
.mzh-switchbar__tab { display: flex; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--s-2); border: 0; border-radius: var(--r-md); background: transparent; color: var(--c-ink-2); font-weight: var(--fw-bold); cursor: pointer; }
.mzh-switchbar__tab.is-on { background: var(--c-paper); color: var(--c-ink); box-shadow: 0 1px 4px var(--c-shadow); }
.mzh-switchbar__tab.is-locked { opacity: .55; cursor: not-allowed; }
.mzh-note { display: flex; align-items: center; gap: var(--s-2); margin: 0; color: var(--c-ink-2); font-size: var(--fs-tiny); }
.mzh-ws { display: grid; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--c-info); border-radius: var(--r-lg); background: var(--c-info-bg); }
.mzh-ws__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.mzh-ws__head small { color: var(--c-ink-2); font-size: var(--fs-tiny); }
.mzh-ws__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
@media (max-width: 360px) { .mzh-grid, .mzh-ws__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- T337: welcome sheet (consent) + terms page, approved previews 9/11 ---------- */
.mzh-save { position: fixed; inset-inline: var(--s-3); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; gap: var(--s-3); max-width: 26rem; margin-inline: auto; padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-xl); background: var(--c-paper); box-shadow: 0 12px 30px var(--c-shadow); }
.mzh-save__ico { display: grid; flex: none; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-md); background: var(--c-gold-soft); color: var(--c-gold-text); }
.mzh-save__txt b { display: block; font-size: var(--fs-body); }
.mzh-save__txt p { margin: var(--s-1) 0 var(--s-3); color: var(--c-ink-2); font-size: var(--fs-small); }
.mzh-save__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mzh-save__more { display: inline-block; margin-top: var(--s-2); color: var(--c-gold-text); font-size: var(--fs-tiny); text-decoration: underline; }
.mzh-list { display: grid; gap: var(--s-2); }
.mzh-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); cursor: pointer; }
.mzh-opt__txt b { display: block; }
.mzh-opt__txt small { display: block; color: var(--c-ink-2); font-size: var(--fs-small); }
.mzh-opt__txt em { display: inline-block; margin-top: var(--s-1); padding: 1px var(--s-2); border-radius: var(--r-sm); background: var(--c-gold-soft); color: var(--c-gold-text); font-size: var(--fs-micro); font-style: normal; }
.mzh-opt input.mzh-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; min-width: 46px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--c-line); cursor: pointer; }
.mzh-opt input.mzh-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-paper); box-shadow: 0 1px 3px var(--c-shadow); transition: inset-inline-start .15s; }
.mzh-opt input.mzh-switch:checked { background: var(--c-gold); }
.mzh-opt input.mzh-switch:checked::after { inset-inline-start: 21px; }
.mzh-opt input.mzh-switch:disabled { opacity: .7; cursor: default; }
.mzh-opt input.mzh-switch:focus-visible { outline: 2px solid var(--c-gold-text); outline-offset: 2px; }
.mzh-terms { padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); }
.mzh-terms h2 { margin: var(--s-2) 0 var(--s-1); font-size: var(--fs-body); }
.mzh-terms p { margin: 0 0 var(--s-2); color: var(--c-ink-2); font-size: var(--fs-small); }
.mzh-terms a { color: var(--c-gold-text); }
.mzh-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (prefers-reduced-motion: reduce) { .mzh-opt input.mzh-switch::after { transition: none; } }

/* T337 (preview t337-app-staff2): quick actions of the work face */
.mzh-fast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.mzh-fast > a, .mzh-fast > button { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); padding: var(--s-3) var(--s-1); border: 2px solid var(--c-gold); border-radius: var(--r-md); background: var(--c-paper); color: var(--c-ink); font-size: var(--fs-tiny); font-weight: var(--fw-bold); text-align: center; text-decoration: none; cursor: pointer; }
.mzh-fast > .is-hot { background: var(--c-gold-soft); }
.mzh-fast svg { color: var(--c-gold-text); }

/* T434: the short notice after a face switch */
.mzs-facetoast { position: fixed; inset-inline: var(--s-4); bottom: calc(var(--dock-h, 4rem) + var(--s-4) + var(--safe-bottom, 0px)); z-index: var(--z-toast, 1000); max-width: 22rem; margin-inline: auto; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-night); color: var(--c-on-night); font-size: var(--fs-small); font-weight: var(--fw-bold); text-align: center; box-shadow: 0 12px 28px var(--c-shadow); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.mzs-facetoast.is-on { opacity: 1; transform: none; }
.mzs-dash[aria-busy="true"] { opacity: .6; transition: opacity .15s; }

/* T185 + T443: «Link my printed card» on the customer Home */
.mzh-linkcard { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px dashed var(--c-gold); border-radius: var(--r-md); background: var(--c-paper); color: var(--c-ink); text-decoration: none; }
.mzh-linkcard svg { flex: none; color: var(--c-gold-text); }
.mzh-linkcard span { display: grid; gap: 2px; }
.mzh-linkcard small { color: var(--c-ink-2); font-size: var(--fs-small); }
.mzh-big > :only-child { grid-column: 1 / -1; } /* owner 11/11: one big button alone takes the row (the scan button moved to the bar) */
.mzh-fast > :only-child { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: var(--s-2); font-size: var(--fs-small); } /* owner 11/11: the scan / till buttons moved to the bar */
