html {
    font-family: 'Segoe UI', sans-serif;
}

:root {
	--page-bg: #f5f5f0;
	--surface: #ffffff;
	--surface-strong: #ece8de;
	--text: #1c1f1b;
	--muted: #60655d;
	--border: #d7d2c7;
	--primary: #11683f;
	--primary-text: #ffffff;
	--secondary: #2f4858;
	--secondary-text: #ffffff;
	--danger: #a32f25;
	--disabled-bg: #dedbd2;
	--disabled-text: #73766f;
	--alert-bg: #fff2ee;
	--focus: #f5b642;
	--shadow: 0 14px 36px rgba(28, 31, 27, 0.12);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--page-bg: #111315;
		--surface: #1c2023;
		--surface-strong: #252b2f;
		--text: #f2f2ed;
		--muted: #b8bdb5;
		--border: #3a4247;
		--primary: #35a56d;
		--primary-text: #07120c;
		--secondary: #d28b35;
		--secondary-text: #171009;
		--danger: #e06050;
		--disabled-bg: #2b3033;
		--disabled-text: #8f9690;
		--alert-bg: #321f1d;
		--focus: #ffd05a;
		--shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--page-bg);
	color: var(--text);
}

a,
button,
input,
select,
textarea {
	font: inherit;
}

a,
button {
	touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 4px solid var(--focus);
	outline-offset: 3px;
}

.home-shell {
	width: min(1120px, 100%);
	min-height: calc(100vh - 52px);
	margin: 0 auto;
	padding: clamp(16px, 4vw, 36px);
}

.login-view {
	min-height: calc(100vh - 124px);
	display: grid;
	align-items: center;
}

.login-panel {
	width: min(520px, 100%);
	margin: 0 auto;
	padding: clamp(22px, 5vw, 36px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.home-kicker {
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
}

.page-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
}

.page-breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-breadcrumb a img {
	width: 18px;
	height: 18px;
}

.page-breadcrumb-separator {
	opacity: 0.6;
}

.home-shell h1 {
	margin: 0;
	font-size: 2.6rem;
	line-height: 1;
	letter-spacing: 0;
}

.home-shell h2 {
	margin: 0 0 12px;
	font-size: 1.15rem;
	letter-spacing: 0;
}

.login-form {
	display: grid;
	gap: 12px;
	margin-top: 28px;
}

.login-form label {
	font-weight: 700;
}

.login-form input,
.login-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
	width: 100%;
	min-height: 58px;
	padding: 0 16px;
	background: var(--surface-strong);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	font-size: 1.1rem;
}

.form-row[hidden] {
	display: none;
}

.product-links-field select[multiple] {
	min-height: 126px;
	padding: 8px;
	background-image: none;
}

.product-links-field small {
	display: block;
	margin-top: 6px;
	color: var(--muted);
}

.admin-form textarea {
	min-height: 130px;
	padding-top: 14px;
	padding-bottom: 14px;
	resize: vertical;
}

.login-form select,
.admin-form select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
	background-position: calc(100% - 22px) 24px, calc(100% - 14px) 24px;
	background-size: 8px 8px, 8px 8px;
	background-repeat: no-repeat;
	padding-right: 44px;
}

.form-alert {
	margin: 20px 0 0;
	padding: 14px 16px;
	background: var(--alert-bg);
	color: var(--text);
	border: 2px solid var(--danger);
	border-radius: 8px;
	font-weight: 700;
}

.form-alert-success {
	background: var(--surface-strong);
	border-color: var(--primary);
}

.form-alert-info {
	background: var(--surface-strong);
	border-color: var(--secondary);
}

.caisse-notification {
	position: fixed;
	top: max(14px, env(safe-area-inset-top));
	left: 50%;
	z-index: 2001;
	width: min(calc(100% - 28px), 460px);
	padding: 13px 18px;
	transform: translate(-50%, 0);
	border: 2px solid var(--border);
	border-radius: 999px;
	box-shadow: var(--shadow);
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	animation: caisse-notification-in 180ms ease-out;
}

.caisse-notification-success {
	background: var(--primary);
	color: var(--primary-text);
	border-color: var(--primary);
}

.caisse-notification-error {
	background: var(--alert-bg);
	color: var(--text);
	border-color: var(--danger);
}

@keyframes caisse-notification-in {
	from {
		opacity: 0;
		transform: translate(-50%, -14px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.caisse-notification {
		animation: none;
	}
}

.create-user-panel {
	margin: 0 auto;
}

.page-actions,
.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.event-form-actions {
	justify-content: space-between;
}

.event-delete-form {
	display: flex;
	justify-content: flex-start;
	margin-top: 16px;
}

.event-delete-link {
	color: var(--danger);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.admin-panel,
.admin-empty {
	width: 100%;
	padding: clamp(18px, 4vw, 28px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.table-scroll {
	overflow-x: auto;
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}

.admin-table th,
.admin-table td {
	padding: 12px 10px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.admin-table th {
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
}

.admin-empty {
	display: grid;
	gap: 14px;
	place-items: start;
}

.admin-empty p {
	margin: 0;
	color: var(--muted);
}

.admin-form {
	display: grid;
	gap: 18px;
	margin-top: 22px;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.form-row {
	display: grid;
	gap: 8px;
}

.form-row label,
.emoji-field-label {
	font-weight: 700;
}

.emoji-field {
	display: grid;
	gap: 10px;
}

.emoji-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
	gap: 10px;
}

.emoji-option {
	min-height: 62px;
	display: grid;
	place-items: center;
	position: relative;
	padding: 8px;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
	cursor: pointer;
}

.emoji-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.emoji-option span {
	font-size: 2rem;
	line-height: 1;
}

.emoji-option .emoji-none {
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 900;
	text-transform: uppercase;
}

.emoji-option:has(input:checked),
.emoji-option.is-selected {
	background: var(--surface);
	border-color: var(--primary);
	box-shadow: inset 0 0 0 2px var(--primary);
}

.emoji-option:focus-within {
	outline: 4px solid var(--focus);
	outline-offset: 3px;
}

.product-list {
	display: grid;
	gap: 12px;
}

.product-row {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.product-thumb {
	width: 82px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: var(--surface-strong);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--muted);
	font-size: 2rem;
	font-weight: 800;
	text-transform: uppercase;
}

.product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-thumb .product-thumb-emoji {
	font-size: 2.55rem;
	line-height: 1;
	text-transform: none;
}

.product-row-main {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.product-row-title {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.product-row-title h2 {
	margin: 0;
	overflow-wrap: anywhere;
}

.meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px 16px;
	color: var(--muted);
}

.meta-grid span {
	display: grid;
	gap: 2px;
}

.meta-grid strong {
	color: var(--text);
}

.category-color-dot {
	width: 18px;
	aspect-ratio: 1;
	display: inline-block;
	flex: 0 0 auto;
	background: var(--category-color, var(--primary));
	border: 1px solid var(--border);
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.category-color-meta strong {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.category-color-field {
	min-height: 58px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
}

.category-color-field input[type="color"] {
	width: 58px;
	min-height: 42px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.category-color-field strong {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.category-toggle {
	min-height: 58px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
	font-weight: 800;
}

.category-toggle input {
	width: 22px;
	min-height: 22px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	accent-color: var(--primary);
}

.status-pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	font-size: 0.85rem;
	font-weight: 800;
}

.status-active {
	background: var(--surface-strong);
	color: var(--primary);
}

.status-disabled {
	background: var(--disabled-bg);
	color: var(--disabled-text);
}

.product-row-actions {
	display: flex;
	justify-content: flex-end;
}

.event-list,
.event-product-list,
.transaction-list {
	display: grid;
	gap: 12px;
}

.event-row,
.transaction-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.event-row-main,
.transaction-row-main {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.event-row-actions {
	display: flex;
	justify-content: flex-end;
}

.event-row-actions form {
	margin: 0;
}

.user-list-row {
	color: inherit;
	text-decoration: none;
}

.user-list-row:hover,
.user-list-row:focus-visible {
	border-color: var(--primary);
}

.user-manage-panel {
	margin-bottom: 18px;
}

.user-manage-section {
	display: grid;
	gap: 12px;
	margin-bottom: 24px;
}

.user-manage-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.user-manage-section-header h2 {
	margin: 0;
}

.user-manage-section-header form {
	margin: 0;
}

.status-pending {
	background: var(--surface-strong);
	color: var(--secondary);
}

.status-running {
	background: var(--surface-strong);
	color: var(--primary);
}

.status-ended {
	background: var(--disabled-bg);
	color: var(--disabled-text);
}

.transaction-items {
	margin: 0;
	color: var(--muted);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.transaction-row.is-voided .product-row-title h2,
.transaction-row.is-voided .meta-grid strong,
.transaction-row.is-voided .transaction-items {
	text-decoration: line-through;
}

.transaction-row.is-voided {
	opacity: 0.76;
}

.transaction-void-note {
	display: grid;
	gap: 6px;
	padding: 12px;
	background: var(--surface-strong);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.transaction-void-note p {
	margin: 0;
	color: var(--muted);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.transaction-void-form {
	width: min(320px, 100%);
	display: grid;
	gap: 8px;
	margin: 0;
}

.transaction-void-form label {
	font-weight: 800;
}

.transaction-void-form textarea {
	width: 100%;
	min-height: 92px;
	padding: 12px;
	background: var(--surface-strong);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	resize: vertical;
}

.event-stats-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 18px;
	padding: 6px;
	background: var(--surface-strong);
	border: 1px solid var(--border);
	border-radius: 10px;
}

.event-stats-shell h1 .status-pill {
	vertical-align: middle;
	margin-left: 8px;
	font-size: 0.45em;
}

.ardoise-payment-pane h3 {
	margin: 0;
}

.ardoise-pane-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ardoise-list {
	display: grid;
	gap: 8px;
	max-height: 260px;
	overflow-y: auto;
	margin-top: 14px;
}

.ardoise-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px;
	text-align: left;
	background: var(--surface-strong);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 9px;
	cursor: pointer;
}

.ardoise-row.is-selected,
.ardoise-row:hover {
	border-color: var(--accent);
}

.ardoise-row span {
	display: grid;
	gap: 3px;
}

.ardoise-row small {
	color: var(--muted);
}

.ardoise-payment-pane:not(.is-settlement-selection) .ardoise-settlement-options {
	display: none;
}

.ardoise-payment-pane.is-settlement-selection .ardoise-pane-heading {
	display: none;
}

.payment-modal.is-ardoise-settlement-selection .payment-modal-total {
	display: none;
}

.ardoise-selection {
	margin: 12px 0 0;
	font-weight: 800;
}

.ardoise-stats-row {
	align-items: center;
}

.caisse-ardoise-link {
	display: block;
	margin: 10px auto 0;
	padding: 4px 8px;
	background: transparent;
	color: var(--muted);
	border: 0;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: underline;
	cursor: pointer;
}

.caisse-ardoise-link:hover,
.caisse-ardoise-link:focus-visible {
	color: var(--accent);
}

.form-row-checkbox .checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.event-stats-tab {
	min-height: 52px;
	padding: 12px 16px;
	background: transparent;
	color: var(--muted);
	border: 0;
	border-radius: 7px;
	font-weight: 900;
	cursor: pointer;
}

.event-stats-tab.is-current {
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.stats-tab-panel[hidden] {
	display: none;
}

.stats-summary,
.stats-payment-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.stats-metric {
	display: grid;
	gap: 8px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.stats-metric span,
.stats-metric small {
	color: var(--muted);
	font-weight: 800;
}

.stats-metric strong {
	font-size: 1.45rem;
	line-height: 1;
}

.stats-volume-panel,
.stats-breakdown-panel,
.stats-payment-panel,
.stats-transactions-panel,
.stats-inventory-panel {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.stats-panel-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.stats-panel-header h2,
.stats-breakdown-panel h2,
.stats-payment-panel h2,
.stats-transactions-panel h2,
.stats-inventory-panel h2 {
	margin: 0;
}

.stats-panel-description {
	margin: 6px 0 0;
	color: var(--muted);
	font-weight: 700;
}

.stats-inventory-list {
	display: grid;
	gap: 8px;
}

.stats-inventory-row {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	background: var(--surface-strong);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 8px;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.stats-inventory-row:hover,
.stats-inventory-row:focus-visible {
	border-color: var(--primary);
}

.stats-inventory-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	background: var(--surface);
	border-radius: 8px;
	overflow: hidden;
}

.stats-inventory-icon > span {
	font-size: 1.8rem;
	line-height: 1;
}

.stats-inventory-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.stats-inventory-row > span:not(.status-pill):not(.stats-inventory-icon) {
	color: var(--muted);
	font-weight: 800;
}

.stats-inventory-modal[hidden] {
	display: none;
}

.stats-inventory-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.48);
}

.stats-inventory-modal-panel {
	width: min(480px, 100%);
	display: grid;
	gap: 14px;
	padding: 24px;
	background: var(--surface);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.stats-inventory-modal-panel h2,
.stats-inventory-current {
	margin: 0;
}

.stats-inventory-current {
	color: var(--muted);
	font-weight: 800;
}

.stats-inventory-movements {
	display: grid;
	gap: 8px;
	padding: 12px;
	background: var(--surface-strong);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.stats-inventory-movements h3,
.stats-inventory-movements p {
	margin: 0;
}

.stats-inventory-movements h3 {
	font-size: 1rem;
}

.stats-inventory-movements ul {
	display: grid;
	gap: 4px;
	max-height: 150px;
	overflow-y: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stats-inventory-movements li {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 12px;
	padding: 6px 8px;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 700;
	border-bottom: 1px solid var(--border);
}

.stats-inventory-movements li strong {
	color: var(--text);
	text-align: right;
}

.stats-inventory-no-movements {
	color: var(--muted);
	font-weight: 700;
}

.stats-inventory-adjust-form {
	display: grid;
	gap: 8px;
}

.stats-inventory-adjust-form label {
	font-weight: 800;
}

.stats-inventory-adjust-form input {
	width: 100%;
	min-height: 52px;
	padding: 0 12px;
	background: var(--surface-strong);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
}

.stats-inventory-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
	margin-top: 6px;
}

.stats-panel-header span {
	color: var(--muted);
	font-weight: 800;
}

.stats-chart {
	width: 100%;
	min-height: 260px;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
}

.stats-volume-chart-wrap {
	position: relative;
	min-width: 0;
}

.stats-axis {
	stroke: var(--border);
	stroke-width: 2;
}

.stats-scale-line,
.stats-scale-tick {
	stroke: var(--border);
	stroke-width: 1;
	opacity: 0.72;
}

.stats-volume-bar {
	fill: var(--primary);
	cursor: pointer;
	outline: none;
}

.stats-volume-bar:hover,
.stats-volume-bar:focus,
.stats-volume-bar.is-selected {
	fill: var(--secondary);
}

.stats-chart-label,
.stats-chart-empty {
	fill: var(--muted);
	font-weight: 800;
}

.stats-scale-label {
	font-size: 0.82rem;
}

.stats-chart-tooltip {
	position: absolute;
	z-index: 2;
	display: grid;
	gap: 4px;
	max-width: min(260px, calc(100% - 16px));
	padding: 10px 12px;
	background: var(--text);
	color: var(--surface);
	border-radius: 8px;
	box-shadow: var(--shadow);
	font-size: 0.9rem;
	line-height: 1.25;
	pointer-events: none;
}

.stats-chart-tooltip[hidden] {
	display: none;
}

.stats-chart-tooltip strong,
.stats-chart-tooltip span {
	overflow-wrap: anywhere;
}

.stats-breakdowns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.stats-row-list {
	display: grid;
	gap: 8px;
}

.stats-data-row {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	background: var(--surface-strong);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	text-align: left;
}

.stats-data-row span {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.stats-data-row strong {
	overflow-wrap: anywhere;
}

.stats-data-row small {
	color: var(--muted);
	font-weight: 800;
}

.stats-data-row b {
	white-space: nowrap;
}

.stats-data-row.is-selected {
	border-color: var(--primary);
	background: var(--surface);
}

.stats-export-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

.event-products-panel {
	display: grid;
	gap: 14px;
}

.event-edit-section {
	display: grid;
	gap: 18px;
	margin-top: 22px;
	padding: 20px;
	background: var(--surface-strong);
	border: 1px solid var(--border);
	border-radius: 12px;
}

.event-edit-section-heading {
	display: grid;
	gap: 4px;
}

.event-edit-section-heading p,
.event-edit-section-heading h3 {
	margin: 0;
}

.event-edit-section-heading h3 {
	font-size: 1.2rem;
}

.event-edit-section .form-grid {
	margin: 0;
}

.event-product-row {
	display: grid;
	grid-template-columns: 112px minmax(240px, 0.9fr) minmax(0, 1.6fr);
	gap: 14px;
	align-items: stretch;
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.event-product-toggle {
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
	font-weight: 800;
}

.event-product-toggle input {
	width: 18px;
	height: 18px;
	min-height: 18px;
	padding: 0;
	flex: 0 0 18px;
}

.event-product-main {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-width: 0;
}

.event-product-main .product-thumb {
	width: 72px;
}

.event-product-title {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.event-product-title h3 {
	margin: 0;
	overflow-wrap: anywhere;
	font-size: 1.05rem;
}

.event-product-title span {
	color: var(--muted);
	font-weight: 700;
}

.event-product-fields {
	display: grid;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
	gap: 12px;
}

.event-product-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
	padding-top: 2px;
}

.event-labels-action {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: var(--muted);
	border: 1px solid var(--border);
	border-radius: 7px;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.event-labels-action:hover,
.event-labels-action:focus-visible {
	background: var(--surface-strong);
	color: var(--text);
	border-color: var(--primary);
}

.labels-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.labels-toolbar h1 {
	margin: 0;
}

.labels-print-note {
	margin: 8px 0 0;
	color: var(--muted);
	font-weight: 700;
}

.labels-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.labels-start-number {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-weight: 700;
}

.labels-start-number input {
	width: 68px;
	min-height: 42px;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
}

.label-sheet {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: repeat(8, minmax(0, 1fr));
	gap: 0;
	min-height: 900px;
	padding: 10px;
	background: var(--surface-strong);
	border: 1px solid var(--border);
}

.payment-label {
	position: relative;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 4px;
	min-width: 0;
	padding: 10px;
	background: var(--category-color, #ffffff);
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
	color: #111111;
	border: 1px solid #fff;
	text-align: center;
}

.payment-label-number {
	position: absolute;
	top: 5px;
	left: 7px;
	font-size: 0.75rem;
	font-weight: 900;
	line-height: 1;
}

.payment-label p,
.payment-label h2 {
	margin: 0;
}

.payment-label-event,
.payment-label-redeem {
	font-size: 0.72rem;
	/*! font-weight: 700; */
}

.payment-label-event {
	overflow: hidden;
	max-width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.payment-label-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
}

.payment-label-icon span {
	font-size: 2rem;
	line-height: 1;
}

.payment-label-icon img {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.payment-label h2 {
	max-width: 100%;
	overflow-wrap: anywhere;
	font-size: clamp(0.9rem, 1.6vw, 1.15rem);
}

.caisse-event-section {
	display: grid;
	gap: 12px;
	margin-bottom: 24px;
}

.caisse-event-section h2 {
	margin: 0;
}

.caisse-event-open {
	display: grid;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.caisse-event-open:active {
	transform: translateY(1px);
}

.caisse-event-row {
	grid-template-columns: minmax(0, 1fr) auto;
}

.caisse-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 18px;
	align-items: start;
}

.caisse-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.category-filter-bar {
	grid-column: 1 / -1;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.category-filter {
	min-height: 48px;
	flex: 0 0 auto;
	padding: 10px 14px;
	background: var(--surface-strong);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	font-weight: 900;
}

.category-filter.is-selected {
	background: var(--primary);
	color: var(--primary-text);
	border-color: var(--primary);
}

.caisse-product {
	display: grid;
	gap: 10px;
	padding: 12px;
	background: var(--surface);
	border: 2px solid var(--border);
	border-radius: 8px;
}

.caisse-product.is-filtered-out,
.caisse-product[hidden] {
	display: none;
}

.caisse-product.is-selected {
	border-color: var(--primary);
}

.caisse-product.is-low-stock {
	border-color: var(--focus);
}

.caisse-product.is-out-of-stock {
	opacity: 0.72;
}

.caisse-product-add {
	width: 100%;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 0;
	background: transparent;
	color: var(--text);
	border: 0;
	text-align: left;
}

.caisse-product-add:disabled {
	cursor: not-allowed;
}

.caisse-product-add .product-thumb {
	width: 72px;
}

.caisse-product-info {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.caisse-product-info strong {
	overflow-wrap: anywhere;
	font-size: 1.08rem;
}

.caisse-product-info small {
	color: var(--muted);
	font-weight: 700;
}

.caisse-product-info span {
	font-weight: 900;
}

.caisse-product-controls {
	display: grid;
	grid-template-columns: 64px minmax(64px, 1fr) 64px;
	gap: 8px;
	align-items: center;
}

.caisse-product-controls button,
.caisse-quantity {
	min-height: 58px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	font-size: 1.45rem;
	font-weight: 900;
}

.caisse-product-controls button {
	background: var(--secondary);
	color: var(--secondary-text);
	border: 0;
}

.caisse-product-controls button:disabled {
	background: var(--disabled-bg);
	color: var(--disabled-text);
	cursor: not-allowed;
}

.linked-product-controls button[data-linked-product-reset] {
	background: var(--muted);
	color: var(--surface-strong);
	font-size: 1.1rem;
	font-weight: 700;
}

.caisse-quantity {
	background: var(--surface-strong);
	border: 2px solid var(--border);
	color: var(--text);
}

.caisse-stock {
	min-height: 24px;
	margin: 0;
	color: var(--muted);
	font-weight: 800;
}

.caisse-summary {
	position: sticky;
	top: 16px;
	display: grid;
	gap: 16px;
	padding: 18px;
	background: var(--surface);
	border: 2px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.caisse-sidebar {
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 18px;
	position: sticky;
	top: 16px;
}

.caisse-sidebar .caisse-summary {
	position: static;
}

.caisse-recent-transactions {
	display: grid;
	gap: 10px;
	padding: 16px;
	background: var(--surface);
	border: 2px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.caisse-section-heading h2 {
	margin: 0;
	font-size: 1.15rem;
}

.caisse-recent-list {
	display: grid;
	gap: 6px;
}

.caisse-recent-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 8px;
	align-items: center;
	width: 100%;
	padding: 10px;
	background: var(--surface-strong);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 6px;
	text-align: left;
	cursor: pointer;
}

.caisse-recent-row:hover,
.caisse-recent-row:focus-visible {
	border-color: var(--primary);
}

.caisse-recent-row span {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.caisse-recent-row small {
	color: var(--muted);
	font-weight: 700;
}

.caisse-recent-row > strong {
	white-space: nowrap;
}

.caisse-recent-row.is-voided,
.caisse-recent-row.is-voided strong {
	text-decoration: line-through;
	opacity: 0.72;
}

.caisse-recent-empty {
	margin: 0;
	color: var(--muted);
	font-weight: 700;
}

.caisse-history-link {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.transaction-detail-modal[hidden] {
	display: none;
}

.transaction-detail-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.48);
}

.transaction-detail-panel {
	width: min(520px, 100%);
	max-height: calc(100vh - 32px);
	display: grid;
	gap: 16px;
	overflow-y: auto;
	padding: clamp(18px, 4vw, 26px);
	background: var(--surface);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.transaction-detail-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	color: var(--muted);
}

.transaction-detail-meta span {
	display: grid;
	gap: 2px;
}

.transaction-detail-meta strong {
	color: var(--text);
}

.transaction-detail-void-form {
	display: grid;
	gap: 8px;
	margin: 0;
}

.transaction-detail-void-form textarea {
	width: 100%;
	min-height: 90px;
	padding: 10px 12px;
	background: var(--surface-strong);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	font: inherit;
	resize: vertical;
}

.caisse-total {
	margin-top: 4px;
	font-size: 2.2rem;
	font-weight: 900;
	line-height: 1;
}

.payment-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.payment-options label {
	min-height: 58px;
	display: grid;
	place-items: center;
	position: relative;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
	font-weight: 900;
}

.payment-options input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.payment-options label:has(input:checked),
.payment-options label.is-selected {
	background: var(--primary);
	color: var(--primary-text);
	border-color: var(--primary);
}

.caisse-lines {
	display: grid;
	gap: 8px;
	min-height: 44px;
}

.caisse-lines p {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	color: var(--muted);
	font-weight: 700;
}

.caisse-lines strong {
	color: var(--text);
	white-space: nowrap;
}

.payment-modal[hidden] {
	display: none;
}

.caisse-fullscreen-modal[hidden] {
	display: none;
}

.caisse-fullscreen-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.48);
}

.caisse-fullscreen-modal-panel {
	width: min(440px, 100%);
	display: grid;
	gap: 14px;
	padding: clamp(18px, 4vw, 26px);
	background: var(--surface);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.caisse-fullscreen-modal-panel h2,
.caisse-fullscreen-modal-panel p {
	margin: 0;
}

.caisse-fullscreen-modal-panel > p:not(.home-kicker) {
	color: var(--muted);
	font-weight: 700;
}

.payment-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.48);
}

.payment-modal-panel {
	width: min(520px, 100%);
	max-height: calc(100vh - 32px);
	display: grid;
	gap: 16px;
	overflow-y: auto;
	padding: clamp(18px, 4vw, 26px);
	background: var(--surface);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.payment-modal-header h2 {
	margin: 0;
	font-size: 1.25rem;
}

.linked-products-list {
	display: grid;
	gap: 10px;
	max-height: 320px;
	overflow-y: auto;
}

.linked-product-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
	cursor: pointer;
}

.linked-product-controls {
	flex: 0 0 248px;
	grid-template-columns: 52px minmax(56px, 1fr) 52px 52px;
}

.free-price-keypad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 12px;
}

.free-price-keypad button {
	min-height: 54px;
	font-size: 1.25rem;
}

.linked-product-row span {
	display: grid;
	gap: 3px;
}

.linked-product-row small {
	color: var(--muted);
	font-weight: 700;
}

.linked-product-row.is-out-of-stock strong {
	color: var(--danger);
	text-decoration: line-through;
}

.linked-product-row.is-out-of-stock small {
	color: var(--danger);
}


.payment-modal-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
	font-weight: 900;
}

.payment-modal-total strong,
.payment-pane-message strong {
	font-size: 2rem;
	line-height: 1;
}

.payment-pane {
	display: grid;
	gap: 12px;
}

.payment-pane[hidden] {
	display: none;
}

.cash-received-field {
	font-weight: 800;
}

.payment-pane input {
	width: 100%;
	min-height: 58px;
	padding: 0 16px;
	background: var(--surface-strong);
	color: var(--text);
	border: 2px solid var(--border);
	border-radius: 8px;
	font-size: 1.35rem;
	font-weight: 900;
}

.cash-change {
	min-height: 46px;
	display: grid;
	place-items: center;
	padding: 10px;
	background: var(--surface-strong);
	border: 2px solid var(--primary);
	border-radius: 8px;
	font-size: 1.25rem;
	font-weight: 900;
}

.cash-change.is-missing {
	border-color: var(--danger);
}

.cash-keypad {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.cash-keypad button {
	min-height: 54px;
	background: var(--secondary);
	color: var(--secondary-text);
	border: 0;
	border-radius: 8px;
	font-size: 1.25rem;
	font-weight: 900;
}

.payment-pane-message {
	padding: 16px;
	background: var(--surface-strong);
	border: 2px solid var(--border);
	border-radius: 8px;
	text-align: center;
}

.payment-pane-message p {
	margin: 0 0 12px;
	color: var(--muted);
	font-weight: 800;
}

.payment-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.payment-modal-actions .touch-button:disabled {
	background: var(--disabled-bg);
	color: var(--disabled-text);
	cursor: not-allowed;
}

.touch-button.touch-button-small {
	min-height: 48px;
	padding: 12px 16px;
	font-size: 0.95rem;
}

.touch-button.touch-button-disabled {
	background: var(--disabled-bg);
	color: var(--disabled-text);
	border: 2px dashed var(--border);
	cursor: not-allowed;
}

.touch-button,
.home-action {
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 20px;
	border: 0;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	font-weight: 800;
	line-height: 1.15;
}

.touch-button-primary,
.home-action-primary {
	background: var(--primary);
	color: var(--primary-text);
}

.touch-button-secondary,
.home-action-standard {
	background: var(--secondary);
	color: var(--secondary-text);
}

.touch-button-danger {
	background: var(--danger);
	color: #ffffff;
}

.caisse-fullscreen-toggle {
	width: 64px;
	min-width: 64px;
	padding: 12px;
	background: var(--surface-strong);
	color: #ffffff;
}

.caisse-fullscreen-toggle img {
	width: 30px;
	height: 30px;
	/*! filter: invert(1); */
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.touch-button-stats {
	background: #6d3cc8;
	color: #ffffff;
}

.touch-button:active,
.home-action:active {
	transform: translateY(1px);
}

.home-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.home-header-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.user-status {
	position: relative;
	display: grid;
	gap: 4px;
	min-width: 180px;
	padding: 12px 14px;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 8px;
	font: inherit;
	text-align: right;
	cursor: pointer;
}

.user-status:hover,
.user-status:focus-visible {
	border-color: var(--accent);
}

.user-menu {
	position: relative;
}

.user-menu-caret {
	position: absolute;
	right: 10px;
	bottom: 5px;
	color: var(--muted);
	font-size: 1rem;
}

.user-menu-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	display: grid;
	min-width: 190px;
	padding: 6px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.user-menu-panel[hidden] {
	display: none;
}

.user-menu-panel a {
	padding: 10px 12px;
	color: var(--text);
	border-radius: 5px;
	font-weight: 700;
	text-decoration: none;
}

.user-menu-panel a:hover,
.user-menu-panel a:focus-visible {
	background: var(--surface-strong);
}

.user-menu-panel .user-menu-logout {
	margin-top: 4px;
	border-top: 1px solid var(--border);
	color: var(--danger);
}

.user-status span {
	color: var(--muted);
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.user-status strong {
	font-size: 1.05rem;
}

.home-actions {
	display: grid;
	gap: 22px;
}

.home-event-row {
	align-items: start;
}

.home-event-actions {
	display: grid;
	gap: 8px;
	justify-items: end;
}

.home-event-actions-primary,
.home-event-actions-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.home-event-action-main {
	min-width: 112px;
}

.home-event-action-link {
	color: var(--muted);
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.home-event-action-link:hover,
.home-event-action-link:focus-visible {
	color: var(--text);
}

.home-admin-panel {
	margin-top: 28px;
}

.action-group {
	padding: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
}

.home-action-disabled {
	background: var(--disabled-bg);
	color: var(--disabled-text);
	border: 2px dashed var(--border);
	cursor: not-allowed;
}

.home-action-disabled small {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
}

.session-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 28px;
}

footer {
	padding: 16px;
	color: var(--muted);
	text-align: center;
}

@media (max-width: 980px) {
	.caisse-form {
		grid-template-columns: 1fr;
	}

	.caisse-summary {
		position: static;
	}

	.caisse-sidebar {
		position: static;
	}

	.event-product-row {
		grid-template-columns: 1fr;
	}

	.event-product-toggle {
		min-height: 64px;
		justify-content: flex-start;
	}

	.event-product-fields {
		grid-template-columns: repeat(2, minmax(140px, 1fr));
	}

	.labels-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.labels-actions {
		justify-content: stretch;
		align-items: center;
	}

	.labels-start-number {
		justify-content: space-between;
		flex: 1 1 100%;
	}

	.labels-actions .touch-button {
		flex: 1 1 0;
	}

	.stats-breakdowns {
		grid-template-columns: 1fr;
	}

	.stats-inventory-modal-actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.home-shell {
		padding: 14px;
	}

	.home-header {
		display: grid;
	}

	.home-header-actions {
		width: 100%;
		justify-content: stretch;
	}

	.home-header-actions .touch-button {
		flex: 1 1 100%;
	}

	.user-status {
		width: 100%;
		text-align: left;
	}

	.home-shell h1 {
		font-size: 2rem;
	}

	.event-stats-tab {
		padding: 10px 8px;
		font-size: 0.9rem;
	}

	.stats-inventory-row {
		grid-template-columns: 42px minmax(0, 1fr) auto;
	}

	.stats-inventory-row .status-pill {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.action-group {
		padding: 14px;
	}

	.action-grid {
		grid-template-columns: 1fr;
	}

	.page-actions,
	.form-actions {
		width: 100%;
		justify-content: stretch;
	}

	.page-actions .touch-button,
	.form-actions .touch-button {
		flex: 1 1 100%;
	}

	.product-row {
		grid-template-columns: 72px minmax(0, 1fr);
		align-items: start;
	}

	.product-thumb {
		width: 72px;
	}

	.product-row-actions {
		grid-column: 1 / -1;
	}

	.product-row-actions .touch-button {
		width: 100%;
	}

	.event-row,
	.transaction-row {
		grid-template-columns: 1fr;
	}

	.event-row-actions,
	.event-row-actions .touch-button {
		width: 100%;
	}

	.home-event-actions {
		justify-items: stretch;
	}

	.home-event-actions-primary,
	.home-event-actions-links {
		width: 100%;
		justify-content: flex-start;
	}

	.home-event-actions-links {
		padding-top: 2px;
	}

	.event-row-actions form {
		width: 100%;
	}

	.transaction-void-form {
		width: 100%;
	}

	.user-manage-section-header {
		display: grid;
	}

	.user-manage-section-header form,
	.user-manage-section-header .touch-button {
		width: 100%;
	}

	.event-product-fields {
		grid-template-columns: 1fr;
	}

	.caisse-products {
		grid-template-columns: 1fr;
	}

	.caisse-total {
		font-size: 1.9rem;
	}

	.payment-options {
		grid-template-columns: 1fr;
	}

	.payment-modal-actions {
		grid-template-columns: 1fr;
	}

	.stats-panel-header,
	.stats-data-row {
		display: grid;
	}

	.stats-export-actions,
	.stats-export-actions .touch-button {
		width: 100%;
	}

	.session-actions,
	.session-actions .touch-button {
		width: 100%;
	}
}

@media print {
	@page {
		size: A4;
		margin: 10mm;
	}

	body {
		background: #ffffff;
	}

	body > footer,
	.labels-toolbar {
		display: none !important;
	}

	.labels-page {
		width: 190mm;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.label-sheet {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: repeat(8, 1fr);
		gap: 0;
		height: 277mm;
		min-height: 0;
		padding: 0;
		background: #ffffff;
		border: 0;
	}

	.payment-label {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		min-height: 0;
		padding: 0.5mm 1mm;
		gap: 0;
		overflow: hidden;
		break-inside: avoid;
	}

	.payment-label-number {
		top: 1mm;
		left: 1.5mm;
		font-size: 0.65rem;
	}

	.payment-label-event,
	.payment-label-redeem {
		font-size: 0.6rem;
	}

	.payment-label-icon {
		width: 100%;
		height: 15mm;
		min-height: 15mm;
		flex: 0 0 15mm;
	}

	.payment-label-icon span {
		font-size: 12mm;
	}

	.payment-label-icon img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
	}

	.payment-label h2 {
		max-height: 8mm;
		font-size: 0.85rem;
		line-height: 1.05;
		overflow: hidden;
	}

}

@media (forced-colors: active) {
	.touch-button,
	.home-action,
	.login-panel,
	.action-group,
	.user-status,
	.login-form input,
	.login-form select,
	.admin-form input,
	.admin-form select,
	.admin-form textarea,
	.admin-panel,
	.admin-empty,
	.product-row,
	.event-row,
	.transaction-row,
		.stats-metric,
		.stats-volume-panel,
		.stats-chart-tooltip,
		.stats-breakdown-panel,
		.stats-payment-panel,
		.stats-transactions-panel,
		.stats-inventory-panel,
		.event-stats-tabs,
		.stats-data-row,
		.event-product-row,
	.event-product-toggle,
	.caisse-product,
	.caisse-summary,
	.caisse-quantity,
	.category-filter,
	.payment-options label,
	.payment-modal-panel,
	.payment-modal-total,
	.payment-pane input,
	.cash-change,
	.payment-pane-message,
	.product-thumb,
	.emoji-option,
	.form-alert {
		border: 2px solid ButtonText;
	}
}

#modale {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.4);
	display: none;
	justify-content: center;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: all 1.3s ease;
	z-index: 999;
}

#modale.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

#modale-content {
	background: white;
	border-radius: 10px;
	padding: 20px;
	max-width: 90%;
	max-height: 80%;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	transform: translateY(10px) scale(0.95);
	opacity: 0;
	transition: all 1.25s ease;
	display: flex;
	flex-direction: column;
	color: #000;
}

#modale.open #modale-content {
	transform: translateY(50) scale(1);
	opacity: 1;
}

#modale-content > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    color: #000;
}

#modale-content .title {
	display: flex;
	flex: 1;
	justify-content: center;
	height: 30px;
	font-weight: bold;
}

#modale-content li:last-child {
	border-bottom: none;
}
