html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.page { min-height: 100%; display: flex; flex-direction: column; }
.topbar { padding: 12px 16px; border-bottom: 1px solid #e5e5e5; display: flex; gap: 8px; align-items: baseline; }
.content { padding: 16px; }
.muted { color: #666; font-size: 0.9em; }

/* Screen fitting — see pos-fit.js, which scales #anansi-app to make the layout fit short shop monitors.
   These rules exist because viewport units ignore that scaling: inside a wrapper zoomed to 0.75, `100vh` still
   resolves against the unzoomed viewport, so a min-h-screen shell renders three-quarters as tall as the screen
   and leaves a dead band across the bottom. --anansi-app-h is the viewport height expressed in the zoomed
   content's own coordinate space, so pointing the vh-based rules at it makes the shell exactly fill the
   screen again. Only active while fitting is on; at zoom 1 the attribute is absent and Tailwind's own rules
   apply untouched. */
html[data-anansi-fit] .min-h-screen { min-height: var(--anansi-app-h); }
html[data-anansi-fit] .h-screen { height: var(--anansi-app-h); }
/* Arbitrary-value heights on the help panel and the mobile bet slip — same correction, kept proportional. */
html[data-anansi-fit] .max-h-\[85vh\] { max-height: calc(var(--anansi-app-h) * 0.85); }
html[data-anansi-fit] .max-h-\[88vh\] { max-height: calc(var(--anansi-app-h) * 0.88); }

/* Touch-screen ergonomics: only apply when a coarse pointer is present. */
@media (pointer: coarse) {
	.content { padding: 20px; }

	button { min-height: 44px; }
	input, select, textarea {
		min-height: 44px;
		font-size: 16px; /* avoids iOS zoom-on-focus */
	}

	table th, table td {
		padding-top: 12px;
		padding-bottom: 12px;
	}
}

@media print {
	.pos-manager-no-print {
		display: none !important;
	}

	.pos-reports-root {
		display: block !important;
	}

	.pos-reports-no-print {
		display: none !important;
	}

	body {
		background: #fff !important;
	}
}
