/* Aaveq POS – back office and checkout. Light and dark (follows the device), works from 360 px. */

:root {
	--aq-navy: #133652;
	--aq-navy-2: #1c4a6e;
	--aq-accent: #1f7a8c;
	--aq-bg: #f4f6f8;
	--aq-surface: #ffffff;
	--aq-surface-2: #eef1f4;
	--aq-text: #17202a;
	--aq-muted: #5b6875;
	--aq-line: #d8dee4;
	--aq-ok: #1a7f4b;
	--aq-ok-bg: #e3f4ea;
	--aq-warn: #8a5a00;
	--aq-warn-bg: #fff3d6;
	--aq-error: #b42318;
	--aq-error-bg: #fde8e6;
	--aq-info-bg: #e6f1f8;
	--aq-radius: 10px;
	--aq-shadow: 0 4px 18px rgba(16, 24, 40, 0.08);
	--aq-primary: #133652;
	--aq-primary-2: #1c4a6e;
	--aq-logo: url("../img/logo-192.png");
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--aq-bg: #0f1419;
		--aq-surface: #182029;
		--aq-surface-2: #212b36;
		--aq-text: #e6ebf0;
		--aq-muted: #9aa8b5;
		--aq-line: #2e3a46;
		--aq-accent: #5cc2d6;
		--aq-ok: #6fd39c;
		--aq-ok-bg: #173826;
		--aq-warn: #f3c56b;
		--aq-warn-bg: #3a2e12;
		--aq-error: #ff8f84;
		--aq-error-bg: #3d1c19;
		--aq-info-bg: #16303f;
		--aq-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
		--aq-primary: #24718f;
		--aq-primary-2: #2d86a8;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.aq {
	background: var(--aq-bg);
	color: var(--aq-text);
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: var(--aq-accent); }
h1, h2 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--aq-surface-2); padding: 0.1em 0.35em; border-radius: 4px; word-break: break-all; }
.aq-muted { color: var(--aq-muted); font-size: 0.9em; }
.aq-grow { flex: 1; }
.aq-loading { padding: 3rem 1rem; text-align: center; color: var(--aq-muted); }
[hidden] { display: none !important; }

/* Brand */
.aq-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; color: inherit; text-decoration: none; white-space: nowrap; }
.aq-brand__logo { width: 32px; height: 32px; background: var(--aq-logo) center / contain no-repeat; flex: none; }

/* Buttons */
.aq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	min-height: 40px; padding: 0.5rem 1rem; border: 1px solid var(--aq-primary); border-radius: 8px;
	background: var(--aq-primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.aq-btn:hover, .aq-btn:focus-visible { background: var(--aq-primary-2); }
.aq-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.aq-btn--ghost { background: transparent; color: var(--aq-text); border-color: var(--aq-line); }
.aq-btn--ghost:hover, .aq-btn--ghost:focus-visible { background: var(--aq-surface-2); }
.aq-btn--danger { background: var(--aq-error); border-color: var(--aq-error); }
.aq-btn--small { min-height: 32px; padding: 0.25rem 0.7rem; font-size: 0.9em; }
.aq-btn--big { min-height: 52px; padding: 0.7rem 1.4rem; font-size: 1.05rem; width: 100%; }
.aq-text-danger { color: var(--aq-error) !important; }
.aq-icon-btn { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; padding: 0.3rem 0.5rem; cursor: pointer; border-radius: 6px; }
.aq-link-btn { background: none; border: 0; color: var(--aq-accent); font: inherit; cursor: pointer; padding: 0.3rem 0; align-self: flex-start; }
.aq-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }
.aq-row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
:focus-visible { outline: 3px solid var(--aq-accent); outline-offset: 2px; }

/* Badges and alerts */
.aq-badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.aq-badge--ok { background: var(--aq-ok-bg); color: var(--aq-ok); }
.aq-badge--warn { background: var(--aq-warn-bg); color: var(--aq-warn); }
.aq-badge--error { background: var(--aq-error-bg); color: var(--aq-error); }
.aq-badge--muted { background: var(--aq-surface-2); color: var(--aq-muted); }
.aq-alert { padding: 0.7rem 0.9rem; border-radius: 8px; margin: 0 0 1rem; }
.aq-alert--error { background: var(--aq-error-bg); color: var(--aq-error); }
.aq-alert--warn { background: var(--aq-warn-bg); color: var(--aq-warn); }
.aq-alert--info { background: var(--aq-info-bg); }

/* ---------------- Back office ---------------- */
.aq-shell { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.aq-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 1.2rem; background: var(--aq-navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.aq-top__site { opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.aq-user { position: relative; }
.aq-user summary { cursor: pointer; list-style: none; padding: 0.35rem 0.6rem; border-radius: 6px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-user summary::-webkit-details-marker { display: none; }
.aq-user summary::after { content: " ▾"; }
.aq-user__menu { position: absolute; right: 0; top: 110%; background: var(--aq-surface); color: var(--aq-text); border: 1px solid var(--aq-line); border-radius: 8px; box-shadow: var(--aq-shadow); min-width: 200px; padding: 0.35rem; display: flex; flex-direction: column; z-index: 50; }
.aq-user__menu a { padding: 0.5rem 0.7rem; color: inherit; text-decoration: none; border-radius: 6px; }
.aq-user__menu a:hover { background: var(--aq-surface-2); }
.aq-nav { background: var(--aq-surface); border-right: 1px solid var(--aq-line); padding: 0.9rem 0.6rem; display: flex; flex-direction: column; gap: 1px; }
.aq-nav__link { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.7rem; border-radius: 8px; color: var(--aq-text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.aq-nav__link:hover { background: var(--aq-surface-2); }
.aq-nav__link.is-active { background: var(--aq-primary); color: #fff; }
.aq-nav__ico { display: inline-flex; flex: 0 0 18px; color: var(--aq-muted); }
.aq-nav__link:hover .aq-nav__ico { color: var(--aq-text); }
.aq-nav__link.is-active .aq-nav__ico { color: #fff; }
.aq-nav__head { margin: 0.9rem 0 0.2rem; padding: 0 0.7rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aq-muted); }
.aq-nav__wp .aq-nav__ico { display: none; }
.aq-main { padding: 1.5rem; max-width: 1100px; width: 100%; min-width: 0; }
.aq-only-small { display: none; }
.aq-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.aq-page-head h1 { margin: 0; }
.aq-page-head .aq-actions { margin: 0; }
.aq-lead { color: var(--aq-muted); max-width: 70ch; margin: 0 0 1.2rem; }

.aq-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.aq-card { display: block; background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: var(--aq-radius); padding: 1rem 1.1rem; color: inherit; text-decoration: none; }
a.aq-card:hover { border-color: var(--aq-accent); }
.aq-card__title { color: var(--aq-muted); font-size: 0.85rem; }
.aq-card__value { font-size: 1.35rem; font-weight: 700; margin-top: 0.2rem; }
.aq-card__sub { color: var(--aq-muted); font-size: 0.85rem; margin-top: 0.2rem; }
.aq-panel { background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: var(--aq-radius); padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.aq-panel--soft { background: var(--aq-surface-2); border-style: dashed; }
.aq-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; margin: 0; }
.aq-dl dt { color: var(--aq-muted); }
.aq-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.aq-feed { list-style: none; margin: 0; padding: 0; }
.aq-feed li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--aq-line); }
.aq-feed li:last-child { border-bottom: 0; }
.aq-empty { padding: 2rem 1rem; text-align: center; color: var(--aq-muted); background: var(--aq-surface); border: 1px dashed var(--aq-line); border-radius: var(--aq-radius); }

.aq-table-wrap { background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: var(--aq-radius); overflow: hidden; }
.aq-table { width: 100%; border-collapse: collapse; }
.aq-table th, .aq-table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--aq-line); vertical-align: middle; }
.aq-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--aq-muted); background: var(--aq-surface-2); }
.aq-table tr:last-child td { border-bottom: 0; }

/* Forms */
.aq-form { display: flex; flex-direction: column; gap: 0.9rem; }
.aq-form--wide { max-width: 760px; gap: 0; }
.aq-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.aq-field label { font-weight: 600; }
.aq-help { margin: 0; color: var(--aq-muted); font-size: 0.88em; }
.aq input[type=text], .aq input[type=password], .aq input[type=number], .aq input[type=email], .aq input[type=tel], .aq input[type=url], .aq input[type=date], .aq input[type=time], .aq input:not([type]), .aq select, .aq textarea {
	width: 100%; min-height: 42px; padding: 0.5rem 0.7rem; border: 1px solid var(--aq-line); border-radius: 8px;
	background: var(--aq-surface); color: var(--aq-text); font: inherit;
}
.aq input[type=number] { max-width: 140px; }
.aq-prefix { display: flex; align-items: stretch; border: 1px solid var(--aq-line); border-radius: 8px; overflow: hidden; background: var(--aq-surface); }
.aq-prefix span { padding: 0.5rem 0.6rem; background: var(--aq-surface-2); color: var(--aq-muted); white-space: nowrap; flex: 0 1 auto; max-width: 60%; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; display: block; line-height: 1.6; }
.aq-prefix input { border: 0 !important; border-radius: 0 !important; min-width: 0; flex: 1 1 8rem; }
.aq-check { display: flex; align-items: flex-start; gap: 0.4rem; margin: 0 0 0.7rem; cursor: pointer; }
.aq-check input { margin-top: 0.3rem; width: 18px; height: 18px; flex: none; }
.aq-check.is-disabled { opacity: 0.55; cursor: not-allowed; }
.aq-check.is-fixed { cursor: default; color: var(--aq-muted, #5b6b7a); }
.aq-actions--sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--aq-bg) 30%); padding: 1rem 0; margin: 0; }

/* Modal and toasts */
.aq-overlay { position: fixed; inset: 0; background: rgba(8, 15, 22, 0.55); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 100; }
.aq-modal { background: var(--aq-surface); color: var(--aq-text); border-radius: 14px; box-shadow: var(--aq-shadow); width: 100%; max-width: 480px; max-height: calc(100vh - 2rem); overflow: auto; }
.aq-modal--wide { max-width: 720px; }
.aq-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--aq-line); }
.aq-modal__head h2 { margin: 0; }
.aq-modal__body { padding: 1.2rem; }
.aq-toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 0.5rem; z-index: 200; width: min(92vw, 420px); }
.aq-toast { background: var(--aq-primary); color: #fff; padding: 0.7rem 1rem; border-radius: 8px; box-shadow: var(--aq-shadow); transition: opacity 0.4s; }
.aq-toast--error { background: var(--aq-error); }
.aq-toast.is-out { opacity: 0; }

/* Pairing dialog */
.aq-pair { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; }
.aq-pair__qr svg { display: block; width: 220px; height: 220px; border-radius: 8px; }
.aq-pair__text ol { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.aq-pair__text li { margin-bottom: 0.4rem; }
.aq-pair__code { font: 700 2.2rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.12em; margin: 0.4rem 0 0.6rem; }
.aq-pair.is-expired .aq-pair__qr, .aq-pair.is-expired .aq-pair__code { opacity: 0.25; filter: grayscale(1); }

@media (max-width: 760px) {
	.aq-shell { grid-template-columns: 1fr; }
	.aq-only-small { display: inline-block; }
	.aq-top { padding: 0.5rem 0.8rem; gap: 0.5rem; }
	.aq-top__site { display: none; }
	.aq-nav { display: none; position: sticky; top: 52px; z-index: 15; border-right: 0; border-bottom: 1px solid var(--aq-line); }
	.nav-open .aq-nav { display: flex; }
	.aq-main { padding: 1rem 0.8rem; }
	.aq-user summary { max-width: 34vw; }
	.aq-pair { grid-template-columns: 1fr; justify-items: center; text-align: left; }
	.aq-pair__qr svg { width: 200px; height: 200px; }
	/* Tables become cards */
	.aq-table thead { display: none; }
	.aq-table, .aq-table tbody, .aq-table tr, .aq-table td { display: block; width: 100%; }
	.aq-table tr { border-bottom: 1px solid var(--aq-line); padding: 0.4rem 0; }
	.aq-table tr:last-child { border-bottom: 0; }
	.aq-table td { border: 0; padding: 0.3rem 0.9rem; }
	.aq-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--aq-muted); text-transform: uppercase; letter-spacing: 0.03em; }
	.aq-row-actions { justify-content: flex-start; }
	.aq-dl { grid-template-columns: 1fr; gap: 0.1rem; }
	.aq-dl dd { margin-bottom: 0.5rem; }
}

/* ---------------- Checkout ---------------- */
.aq--pos { overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
.aq--pos input { -webkit-user-select: text; user-select: text; }
.aq-pos { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.aq-pos__top { position: relative; z-index: 40; display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 1rem; padding-top: max(0.6rem, env(safe-area-inset-top)); background: var(--aq-navy); color: #fff; }
.aq-pos__loc { opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aq-pos__user { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; white-space: nowrap; min-width: 0; }
.aq-pos__top > * { min-width: 0; }
.aq-pos__top .aq-brand, .aq-pos__top .aq-net { flex: none; }
.aq-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.aq-pos__top .aq-brand { max-width: 40%; flex-shrink: 1; }
.aq-pos__center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.aq-pos-card { background: var(--aq-surface); border-radius: 16px; box-shadow: var(--aq-shadow); padding: 1.6rem; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 0.9rem; }
.aq-pos-card--wide { max-width: 720px; }
.aq-pos-card h1 { margin: 0; text-align: center; }
.aq-pos-card p { margin: 0; text-align: center; color: var(--aq-muted); }
.aq-pos-card__logo { width: 88px; height: 88px; background: var(--aq-logo) center / contain no-repeat; align-self: center; }
.aq-code-input { text-align: center; font: 700 1.8rem/1 ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: 0.15em; text-transform: uppercase; min-height: 60px !important; }
.aq-net { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 999px; white-space: nowrap; }
.aq-net::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.aq-net.is-on { background: rgba(111, 211, 156, 0.18); color: #8ee0b2; }
.aq-net.is-off { background: #f3c56b; color: #3a2e12; }

.aq-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.8rem; }
.aq-person { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem 0.5rem; background: var(--aq-surface-2); border: 1px solid var(--aq-line); border-radius: 12px; color: inherit; font: inherit; cursor: pointer; }
.aq-person:hover, .aq-person:focus-visible { border-color: var(--aq-accent); }
.aq-person__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--aq-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; align-self: center; }
.aq-person__avatar--big { width: 72px; height: 72px; font-size: 1.4rem; }
.aq-person__name { font-weight: 600; text-align: center; overflow-wrap: anywhere; }

.aq-pin { align-items: stretch; }
.aq-dots { display: flex; justify-content: center; gap: 0.7rem; min-height: 22px; }
.aq-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--aq-muted); }
.aq-dot.is-full { background: var(--aq-text); border-color: var(--aq-text); }
.aq-pin__msg { min-height: 1.5em; text-align: center; color: var(--aq-error); font-weight: 600; }
.aq-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.aq-key { min-height: 64px; border: 1px solid var(--aq-line); border-radius: 12px; background: var(--aq-surface-2); color: var(--aq-text); font-family: inherit; font-size: 1.5rem; font-weight: 600; line-height: 1; cursor: pointer; touch-action: manipulation; }
.aq-key:active { transform: scale(0.97); }
.aq-key--soft { font-size: 1.3rem; }
.aq-key--ok { background: var(--aq-primary); border-color: var(--aq-primary); color: #fff; font-size: 1.1rem; }
.aq-key--ok:disabled { opacity: 0.45; }

@media (max-width: 420px) {
	.aq-pos-card { padding: 1.1rem; }
	.aq-pos__loc { display: none; }
	.aq-pos__top { gap: 0.5rem; padding-left: 0.7rem; padding-right: 0.7rem; }
	.aq-pos__top .aq-brand > .aq-ellipsis { display: none; }
	.aq-pos__user .aq-badge { font-size: 0.7rem; padding: 0.1rem 0.4rem; }
	.aq-key { min-height: 56px; }
}

/* ---------------- Selling (0.2) ---------------- */
.aq-user--pos summary { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 46vw; font-weight: 600; }
.aq-user__menu button { background: none; border: 0; text-align: left; font: inherit; color: inherit; padding: 0.55rem 0.7rem; border-radius: 6px; cursor: pointer; }
.aq-user__menu button:hover { background: var(--aq-surface-2); }
.aq-net.has-queue.is-on { background: rgba(243, 197, 107, 0.2); color: #f3c56b; }

.aq-sell { flex: 1; display: grid; grid-template-columns: 1fr minmax(300px, 380px); min-height: 0; }
.aq-sell__products { display: flex; flex-direction: column; min-width: 0; padding: 0.8rem; gap: 0.7rem; overflow: auto; max-height: calc(100dvh - 52px); }
.aq-sell__tools { display: flex; gap: 0.5rem; }
.aq .aq-scan { min-height: 46px; font-size: 1rem; }
.aq-cats { display: flex; gap: 0.4rem; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.2rem; scrollbar-width: thin; }
.aq-cat { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.4rem 0.95rem; border-radius: 999px; border: 1px solid var(--aq-line); background: var(--aq-surface); color: var(--aq-text); font: inherit; font-weight: 600; cursor: pointer; }
.aq-cat[style]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }
.aq-cat.is-active { background: var(--aq-primary); border-color: var(--aq-primary); color: #fff; }
.aq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; align-content: start; }
.aq-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 0.4rem; min-height: 92px; padding: 0.7rem 0.75rem 0.65rem; text-align: left; border: 1px solid var(--aq-line); border-top: 5px solid var(--tile, var(--aq-line)); border-radius: 12px; background: var(--aq-surface); color: var(--aq-text); font: inherit; cursor: pointer; touch-action: manipulation; }
.aq-tile:active { transform: scale(0.98); }
.aq-tile:hover { border-color: var(--aq-accent); border-top-color: var(--tile, var(--aq-accent)); }
.aq-tile__name { font-weight: 600; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.aq-tile__price { color: var(--aq-muted); font-variant-numeric: tabular-nums; }
.aq-tile__more { position: absolute; right: 0.55rem; top: 0.3rem; color: var(--aq-muted); font-weight: 700; line-height: 1; }
.aq-tile:has(.aq-tile__more) .aq-tile__name { padding-right: 0.9rem; }
.aq-grid .aq-empty { grid-column: 1 / -1; }

.aq-cart { display: flex; flex-direction: column; background: var(--aq-surface); border-left: 1px solid var(--aq-line); max-height: calc(100dvh - 52px); min-height: 0; }
.aq-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem 0.4rem; }
.aq-cart__head h2 { margin: 0; }
.aq-cart__empty { color: var(--aq-muted); padding: 1rem; text-align: center; flex: 1; }
.aq-lines { list-style: none; margin: 0; padding: 0 0.6rem; flex: 1; overflow: auto; }
.aq-line { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: center; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--aq-line); }
.aq-line__text { min-width: 0; display: flex; flex-direction: column; }
.aq-line__name { font-weight: 600; overflow-wrap: anywhere; }
.aq-line__opts { color: var(--aq-muted); font-size: 0.85em; }
.aq-line__sum { font-variant-numeric: tabular-nums; min-width: 5.5em; text-align: right; }
.aq-qty { display: inline-flex; align-items: center; border: 1px solid var(--aq-line); border-radius: 999px; overflow: hidden; }
.aq-qty button { width: 34px; height: 34px; border: 0; background: var(--aq-surface-2); color: var(--aq-text); font-size: 1.1rem; cursor: pointer; touch-action: manipulation; }
.aq-qty span { min-width: 1.8em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.aq-cart__foot { border-top: 1px solid var(--aq-line); padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 0.35rem; }
.aq-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-variant-numeric: tabular-nums; }
.aq-sum strong { font-size: 1.35rem; }
.aq-sum--small { color: var(--aq-muted); font-size: 0.9em; }
.aq-sum--small strong { font-size: 1rem; color: var(--aq-text); }
.aq-cart__btns { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.aq-cart__btns .aq-btn--ghost { min-height: 52px; }
.aq-btn--pay { flex: 1; font-size: 1.15rem; }
.aq-cartbar { display: none; }

/* Options dialog */
.aq-opts h3 { font-size: 1rem; margin: 0.9rem 0 0.5rem; }
.aq-opts h3:first-child { margin-top: 0; }
.aq-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.aq-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; min-height: 48px; min-width: 96px; padding: 0.45rem 0.9rem; border: 2px solid var(--aq-line); border-radius: 10px; background: var(--aq-surface); color: var(--aq-text); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.aq-chip small { font-weight: 400; color: var(--aq-muted); font-variant-numeric: tabular-nums; }
.aq-chip.is-on { border-color: var(--aq-primary); background: var(--aq-info-bg); }

/* Payment */
.aq-pay { display: flex; flex-direction: column; gap: 0.9rem; }
.aq-pay__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.aq-pay__total strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.aq-pay__methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.aq-paybtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; min-height: 130px; border: 2px solid var(--aq-line); border-radius: 14px; background: var(--aq-surface-2); color: var(--aq-text); font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.aq-paybtn:hover, .aq-paybtn:focus-visible { border-color: var(--aq-primary); }
.aq-paybtn small { font-size: 0.85rem; font-weight: 400; color: var(--aq-muted); }
.aq-paybtn__icon { font-size: 2rem; line-height: 1; }
.aq .aq-pay__input { font-size: 1.6rem; min-height: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.aq-pay__change { font-size: 1.3rem; font-weight: 700; color: var(--aq-ok); min-height: 1.6em; }
.aq-pay__change.is-bad { color: var(--aq-error); }

/* Receipt and day list */
.aq-done { align-items: stretch; }
.aq-done__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--aq-ok-bg); color: var(--aq-ok); font-size: 2rem; display: flex; align-items: center; justify-content: center; align-self: center; }
.aq-done__change { font-size: 1.5rem; font-weight: 700; color: var(--aq-text) !important; }
.aq-receipt { display: flex; flex-direction: column; gap: 0.3rem; background: var(--aq-surface-2); border-radius: 10px; padding: 0.9rem 1rem; font-variant-numeric: tabular-nums; }
.aq-receipt__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.1rem; margin-bottom: 0.4rem; font-size: 0.92em; }
.aq-receipt__lines { list-style: none; margin: 0 0 0.4rem; padding: 0 0 0.4rem; border-bottom: 1px dashed var(--aq-line); }
.aq-receipt__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; }
.aq-receipt__lines li > span:first-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.aq-receipt__lines small { color: var(--aq-muted); }
.aq-receipt__sync { margin: 0.4rem 0 0 !important; font-size: 0.85em; color: var(--aq-muted); text-align: center; }
.aq-day__list { list-style: none; margin: 0.6rem 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.aq-day__list button { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.8rem; align-items: center; padding: 0.6rem 0.4rem; border: 0; border-bottom: 1px solid var(--aq-line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.aq-ok { color: var(--aq-ok); }
.aq-wait { color: var(--aq-warn); }

@media (max-width: 760px) {
	.aq-sell { grid-template-columns: 1fr; }
	.aq-sell__products { max-height: none; padding-bottom: 5rem; }
	.aq-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
	.aq-cart { position: fixed; inset: 0; z-index: 50; transform: translateY(100%); transition: transform 0.2s ease; max-height: none; border-left: 0; }
	.aq-cart.is-open { transform: none; }
	.aq-cartbar { position: fixed; left: 0.7rem; right: 0.7rem; bottom: calc(0.7rem + env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 1.1rem; border: 0; border-radius: 14px; background: var(--aq-primary); color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; box-shadow: var(--aq-shadow); cursor: pointer; }
	.aq-cartbar[hidden] { display: none; }
	.aq-pay__methods { grid-template-columns: 1fr; }
	.aq-paybtn { min-height: 92px; }
	.aq-user--pos summary { max-width: 38vw; }
}
@media (prefers-reduced-motion: reduce) { .aq-cart { transition: none; } }

/* ---------------- Back office 0.2: products and sales ---------------- */
.aq-tabs { display: flex; gap: 0.3rem; box-shadow: inset 0 -1px 0 var(--aq-line); margin: 0 0 1rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.aq-tab { padding: 0.55rem 0.9rem; color: var(--aq-muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.aq-tab.is-active { color: var(--aq-text); border-bottom-color: var(--aq-primary); }
.aq-toolbar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: flex-end; margin-bottom: 1rem; }
.aq-toolbar .aq-field { margin: 0; min-width: 150px; }
.aq .aq-search { max-width: 360px; }
.aq input[type=search], .aq input[type=date] { width: 100%; min-height: 42px; padding: 0.5rem 0.7rem; border: 1px solid var(--aq-line); border-radius: 8px; background: var(--aq-surface); color: var(--aq-text); font: inherit; }
.aq input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--aq-line); border-radius: 8px; background: var(--aq-surface); }
.aq .aq-num { text-align: right; font-variant-numeric: tabular-nums; }
.aq-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.aq-sub { border-top: 1px solid var(--aq-line); padding-top: 0.8rem; }
.aq-sub h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.aq-rows { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; margin-top: 0.5rem; }
.aq-row { display: grid; grid-template-columns: 2fr 1fr 1.4fr auto; gap: 0.4rem; width: 100%; align-items: center; }
.aq-row:has(> input:nth-of-type(2):last-of-type) { grid-template-columns: 2fr 1fr auto; }
.aq-checks { display: flex; flex-direction: column; gap: 0.2rem; }
.aq-swatch-row { display: inline-flex; align-items: center; gap: 0.5rem; }
.aq-swatch { width: 16px; height: 16px; border-radius: 4px; background: var(--aq-line); flex: none; }
.aq-card--warn { border-color: var(--aq-error); }
.aq-card--warn .aq-card__value { color: var(--aq-error); }
.aq-hash code { font-size: 0.75em; }
.aq-detail { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 760px) {
	.aq-row { grid-template-columns: 1fr 1fr auto; }
	.aq-row > input:first-child { grid-column: 1 / -1; }
	.aq-row:has(> input:nth-of-type(2):last-of-type) { grid-template-columns: 1fr auto; }
	.aq-toolbar .aq-field { flex: 1 1 140px; }
}

/* ---------------- Checkout 0.3: drawer, split payment, refund, reports ---------------- */
.aq-training { position: sticky; top: 0; z-index: 30; padding: 0.35rem 1rem; background: repeating-linear-gradient(45deg, #b45309, #b45309 12px, #92400e 12px, #92400e 24px); color: #fff; font-weight: 700; text-align: center; letter-spacing: 0.04em; }
.aq-count__rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.35rem 1rem; margin: 0.8rem 0; }
.aq-count__row { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem 6.5rem; align-items: center; gap: 0.6rem; padding: 0.15rem 0; }
.aq-count__d { font-weight: 600; min-width: 0; }
.aq .aq-count__n { min-height: 44px; text-align: right; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.aq-count__sub { text-align: right; color: var(--aq-muted); font-variant-numeric: tabular-nums; }
.aq-count__total { font-size: 1.3rem; }
.aq-paid { list-style: none; margin: 0 0 0.8rem; padding: 0; border: 1px solid var(--aq-line); border-radius: 10px; }
.aq-paid li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.6rem; align-items: center; padding: 0.4rem 0.4rem 0.4rem 0.8rem; border-bottom: 1px solid var(--aq-line); }
.aq-paid li:last-child { border-bottom: 0; }
.aq-paid li span:first-child { overflow-wrap: anywhere; }
.aq-mpqr { display: block; width: min(240px, 70vw); height: auto; margin: 0.5rem auto; border-radius: 12px; background: #fff; padding: 8px; }
.aq-tile--gift { background: var(--aq-surface-2); border-style: dashed; }
.aq-line.is-done { opacity: 0.55; }
.aq-lines--refund { margin: 0.8rem 0; }
.aq-report h3 { margin: 0.9rem 0 0.3rem; font-size: 0.95rem; color: var(--aq-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.aq-receipt.is-training { border: 2px dashed #b45309; }
.aq-pay__methods:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) {
	.aq-count__row { grid-template-columns: minmax(0, 1fr) 4.5rem 5.5rem; gap: 0.4rem; }
	.aq-count__rows { grid-template-columns: 1fr; }
	.aq-paid li { grid-template-columns: minmax(0, 1fr) auto auto; }
}
.aq-badge--info { background: var(--aq-surface-2); color: var(--aq-primary); }
.aq-more { margin: 0.8rem 0; }
.aq-more > summary { cursor: pointer; font-weight: 600; padding: 0.3rem 0; }

/* ---------------- 0.4: equipment, printing, customer display ---------------- */
.aq-actions--split { justify-content: space-between; align-items: center; }
.aq-actions--split > :only-child { margin-left: auto; }
.aq-actions--left { justify-content: flex-start; align-items: center; }
.aq-equip { display: grid; gap: 0.4rem; }
.aq-equip__sec { padding: 0.2rem 0 0.9rem; border-bottom: 1px solid var(--aq-line); }
.aq-equip__sec:last-child { border-bottom: 0; }
.aq-equip__sec h3 { margin: 0.4rem 0; }
.aq-equip__sec p { margin: 0.3rem 0; }
.aq-equip select { min-height: 44px; max-width: 100%; }

/* The receipt for the print dialog: hidden on screen, the only thing printed. */
#aq-print { display: none; }
/* 48 columns on 72 mm (80 mm paper) and 32 on 48 mm (58 mm paper): 1.5 mm per character = 2.5 mm type. */
.aq-paper { font-family: "Courier New", Courier, "Liberation Mono", monospace; color: #000; background: #fff; width: 72mm; margin: 0 auto; font-size: 2.5mm; line-height: 1.3; }
.aq-paper--58 { width: 48mm; }
.aq-paper__doc { padding: 2mm 0 6mm; break-after: page; page-break-after: always; }
.aq-paper__doc:last-child { break-after: auto; page-break-after: auto; }
.aq-paper__l { white-space: pre; overflow: hidden; }
.aq-paper__l.is-center { text-align: center; }
.aq-paper__img { text-align: center; margin: 0.2rem 0; }
.aq-paper__img img { max-width: 100%; height: auto; image-rendering: pixelated; }
.aq-paper__l.is-right { text-align: right; }
.aq-paper__l.is-bold { font-weight: 700; }
.aq-paper__l.is-big { font-size: 1.95em; line-height: 1.2; }
@media print {
	@page receipt80 { margin: 0; } /* the size comes from the receipt printer driver */
	@page receipt58 { margin: 0; }
	@page report { size: A4 portrait; margin: 14mm 14mm 16mm; }
	.aq-paper { page: receipt80; }
	.aq-paper--58 { page: receipt58; }
	#aq-print.aq-print--page { page: report; }
	html, body { background: #fff !important; }
	body.aq > *:not(#aq-print), body > *:not(#aq-print) { display: none !important; }
	#aq-print { display: block !important; }
}

/* Customer display (/kasse/#display) */
.aq-display-mode { background: var(--aq-navy); }
.aq-cd { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--aq-bg); color: var(--aq-text); }
.aq-cd__top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: var(--aq-navy); color: #fff; }
.aq-cd__logo { width: 44px; height: 44px; background: var(--aq-logo) center / contain no-repeat; flex: none; }
.aq-cd__name { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.aq-cd__full { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 8px; padding: 0.4rem 0.8rem; font: inherit; cursor: pointer; }
.aq-cd__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem clamp(1rem, 5vw, 4rem); gap: 1.5rem; }
.aq-cd__welcome, .aq-cd__center { text-align: center; font-size: clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.aq-cd__big { font-size: clamp(2.5rem, 9vw, 6rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.aq-cd__lines { list-style: none; margin: 0; padding: 0; font-size: clamp(1.1rem, 2.6vw, 1.8rem); }
.aq-cd__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--aq-line); font-variant-numeric: tabular-nums; }
.aq-cd__lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.aq-cd__total { display: flex; justify-content: space-between; align-items: baseline; font-size: clamp(1.6rem, 4vw, 3rem); }
.aq-cd__total strong { font-size: 1.6em; font-variant-numeric: tabular-nums; }
.aq-cd__qr { width: min(320px, 60vw); height: auto; background: #fff; padding: 10px; border-radius: 14px; }
.aq-cd__mp, .aq-cd__change { font-size: clamp(1.2rem, 3vw, 2.2rem); font-weight: 700; }

/* 0.4.1: product pictures on the tiles */
.aq-tile--img { padding-top: 0; overflow: hidden; }
.aq-tile__img { display: block; width: calc(100% + 1.5rem); max-width: none; margin: 0 -0.75rem 0.1rem; aspect-ratio: 4 / 3; object-fit: cover; background: var(--aq-surface-2); pointer-events: none; user-select: none; }
.aq-tile--img .aq-tile__more { top: auto; bottom: 0.6rem; }
.aq-tile__ph { display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; text-transform: uppercase; color: var(--tile, var(--aq-muted)); background: color-mix(in srgb, var(--tile, var(--aq-muted)) 14%, var(--aq-surface)); }
.aq-pimg { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.aq-pimg__box { width: 120px; height: 120px; border-radius: 12px; border: 1px dashed var(--aq-line); background: var(--aq-surface-2) center / cover no-repeat; display: grid; place-items: center; color: var(--aq-muted); font-size: 0.85rem; text-align: center; flex: none; overflow: hidden; }
.aq-pimg__box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aq-pimg__btns { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.aq-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: block; background: var(--aq-surface-2); }

/* 0.5: WordPress admin at the bottom of the menu (administrators only) */
.aq-nav__link--quiet { color: var(--aq-muted); font-weight: 400; font-size: 0.95rem; }
.aq-nav__wp { margin-top: auto; border-top: 1px solid var(--aq-line); border-radius: 0 0 8px 8px; padding-top: 0.8rem; }
@media (max-width: 760px) { .aq-nav__wp { margin-top: 0.4rem; } }

/* 0.5: X/Z report as a page (back office), also printed on A4 */
.aq-zr__tools { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.4rem; margin: -0.4rem 0 0.6rem; }
.aq-zr { display: grid; gap: 1rem; }
.aq-zr__head { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; align-items: flex-start; }
.aq-zr__kicker { color: var(--aq-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.aq-zr__title { margin: 0.1rem 0 0; font-size: 1.5rem; }
.aq-zr__meta { display: grid; grid-template-columns: auto auto; gap: 0.15rem 0.8rem; margin: 0; font-size: 0.92rem; }
.aq-zr__meta dt { color: var(--aq-muted); }
.aq-zr__meta dd { margin: 0; }
.aq-zr__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.aq-zr__tile { border: 1px solid var(--aq-line); border-radius: 12px; padding: 0.75rem 0.9rem; background: var(--aq-surface); min-width: 0; }
.aq-zr__label { color: var(--aq-muted); font-size: 0.82rem; }
.aq-zr__value { font-size: 1.35rem; font-weight: 750; font-variant-numeric: tabular-nums; margin-top: 0.15rem; overflow-wrap: anywhere; }
.aq-zr__sub { color: var(--aq-muted); font-size: 0.8rem; margin-top: 0.15rem; }
.aq-zr__tile.is-ok { border-color: color-mix(in srgb, #15803d 45%, var(--aq-line)); background: color-mix(in srgb, #15803d 8%, var(--aq-surface)); }
.aq-zr__tile.is-warn { border-color: color-mix(in srgb, #b45309 45%, var(--aq-line)); background: color-mix(in srgb, #b45309 8%, var(--aq-surface)); }
.aq-zr__tile.is-bad { border-color: color-mix(in srgb, #b91c1c 50%, var(--aq-line)); background: color-mix(in srgb, #b91c1c 9%, var(--aq-surface)); }
.aq-zr__tile.is-ok .aq-zr__value { color: #15803d; }
.aq-zr__tile.is-warn .aq-zr__value { color: #b45309; }
.aq-zr__tile.is-bad .aq-zr__value { color: #b91c1c; }
.aq-zr__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.aq-zr__sec { border: 1px solid var(--aq-line); border-radius: 12px; padding: 0.8rem 0.95rem; min-width: 0; }
.aq-zr__sec h3 { margin: 0 0 0.45rem; font-size: 0.8rem; color: var(--aq-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.aq-zr__sec h3:not(:first-child) { margin-top: 0.9rem; }
.aq-zr__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; font-variant-numeric: tabular-nums; }
.aq-zr__row span:first-child { min-width: 0; overflow-wrap: anywhere; }
.aq-zr__row span:last-child { white-space: nowrap; }
.aq-zr__row.is-total { border-top: 1px solid var(--aq-line); margin-top: 0.25rem; padding-top: 0.4rem; font-weight: 700; }
.aq-zr__row.is-ok span:last-child { color: #15803d; }
.aq-zr__row.is-warn span:last-child { color: #b45309; }
.aq-zr__row.is-bad span:last-child { color: #b91c1c; }
.aq-zr__bar { margin-bottom: 0.35rem; }
.aq-zr__track { height: 6px; border-radius: 99px; background: var(--aq-surface-2); overflow: hidden; }
.aq-zr__track span { display: block; height: 100%; border-radius: 99px; background: var(--aq-accent, #2c7a8c); }
.aq-zr__note { margin: 0; }
.aq-zr__foot { color: var(--aq-muted); font-size: 0.8rem; display: none; }
@media (max-width: 760px) {
	.aq-zr__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aq-zr__grid { grid-template-columns: minmax(0, 1fr); }
	.aq-zr__value { font-size: 1.15rem; }
}
@media print {
	#aq-print.aq-print--page { color: #111; background: #fff; font-size: 10.5pt; }
	#aq-print.aq-print--page .aq-zr { --aq-surface: #fff; --aq-surface-2: #eceff3; --aq-line: #cfd6de; --aq-muted: #555; --aq-text: #111; color: #111; }
	#aq-print.aq-print--page .aq-zr__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	#aq-print.aq-print--page .aq-zr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#aq-print.aq-print--page .aq-zr__sec, #aq-print.aq-print--page .aq-zr__tile { break-inside: avoid; }
	#aq-print.aq-print--page .aq-zr__foot { display: block; }
	#aq-print.aq-print--page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------- 0.5: restaurant on the till ---------------- */
.aq-seg { display: inline-flex; gap: 0.2rem; padding: 0.25rem; border-radius: 12px; background: var(--aq-surface-2); margin: 0 0 0.7rem; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.aq-seg__b { border: 0; background: transparent; color: var(--aq-text); font: inherit; font-weight: 600; padding: 0.55rem 0.95rem; border-radius: 9px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.aq-seg__b.is-on { background: var(--aq-surface); box-shadow: var(--aq-shadow); color: var(--aq-primary); }
.aq-rest { padding: 0.8rem; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.aq-rest__body { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; min-height: 0; }
.aq-empty--big { padding: 3rem 1rem; }

/* Floor plan: tables placed in percent of the plan */
.aq-plan { position: relative; flex: 1; min-height: 420px; border-radius: 14px; background: var(--aq-surface); border: 1px solid var(--aq-line); background-image: radial-gradient(var(--aq-line) 1px, transparent 1px); background-size: 24px 24px; }
.aq-tbl { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; padding: 0.3rem; border-radius: 12px; border: 2px solid var(--aq-line); background: var(--aq-surface); color: var(--aq-text); font: inherit; cursor: pointer; overflow: hidden; touch-action: manipulation; }
.aq-tbl--round { border-radius: 50%; }
.aq-tbl__name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.aq-tbl__info { font-size: 0.78rem; color: var(--aq-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.aq-tbl__call { position: absolute; top: 3px; right: 5px; font-size: 1.15rem; animation: aq-call 1.2s ease-in-out infinite; }
.aq-tbl__waiter { position: absolute; top: 4px; left: 5px; min-width: 1.6rem; padding: 0.05rem 0.3rem; border-radius: 999px; background: var(--aq-info-bg); color: var(--aq-text); font-size: 0.72rem; font-weight: 700; }
.aq-tbl.is-call { border-color: var(--aq-warn, #b26a00); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aq-warn, #b26a00) 35%, transparent); }
@keyframes aq-call { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .aq-tbl__call { animation: none; } }
.aq-calls { display: grid; gap: 0.4rem; margin: 0 0 0.7rem; }
.aq-calls__i { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border-radius: 10px; border: 1px solid var(--aq-warn, #b26a00); background: var(--aq-warn-bg, #fff4e0); }
.aq-calls__i.is-bill { border-color: var(--aq-primary); background: var(--aq-info-bg); }
.aq-calls__text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem; }
.aq-calls__text small { flex-basis: 100%; }
.aq-openbtn.is-closed { border-color: var(--aq-danger, #c0392b); }
.aq-floor__tools { flex-wrap: wrap; }
.aq-tbl.is-busy { border-color: var(--aq-accent); background: color-mix(in srgb, var(--aq-accent) 14%, var(--aq-surface)); }
.aq-tbl.is-ready { border-color: var(--aq-ok); background: var(--aq-ok-bg); animation: aq-pulse 1.6s ease-in-out infinite; }
.aq-tbl.is-bill { border-color: var(--aq-warn); background: var(--aq-warn-bg); }
.aq-tbl:active { transform: scale(0.97); }
@keyframes aq-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--aq-ok) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .aq-tbl.is-ready { animation: none; } }
.aq-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--aq-muted); font-size: 0.85rem; }
.aq-legend__i::before { content: ''; display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 4px; margin-right: 0.35rem; vertical-align: -0.1rem; border: 2px solid var(--aq-line); background: var(--aq-surface); }
.aq-legend__i.is-busy::before { border-color: var(--aq-accent); background: color-mix(in srgb, var(--aq-accent) 14%, var(--aq-surface)); }
.aq-legend__i.is-ready::before { border-color: var(--aq-ok); background: var(--aq-ok-bg); }
.aq-legend__i.is-bill::before { border-color: var(--aq-warn); background: var(--aq-warn-bg); }
@media (max-width: 700px) {
	/* On a phone the plan becomes a grid of tables */
	.aq-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem; padding: 0.5rem; min-height: 0; background-image: none; align-content: start; }
	.aq-tbl { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; min-height: 88px; }
	.aq-tbl--round { border-radius: 12px; }
}

/* Takeaway and delivery cards */
.aq-ocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; }
.aq-ocard { display: flex; flex-direction: column; gap: 0.3rem; text-align: left; padding: 0.8rem; border-radius: 12px; border: 1px solid var(--aq-line); border-left: 5px solid var(--aq-accent); background: var(--aq-surface); color: var(--aq-text); font: inherit; cursor: pointer; min-width: 0; }
.aq-ocard.is-ready { border-left-color: var(--aq-ok); }
.aq-ocard__top, .aq-ocard__foot { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.aq-ocard__lines { color: var(--aq-muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.aq-ocard__addr { white-space: pre-line; font-size: 0.88rem; }

/* Status chips */
.aq-st { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 99px; background: var(--aq-surface-2); color: var(--aq-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.aq-st--sent { background: var(--aq-info-bg); color: var(--aq-primary); }
.aq-st--ready { background: var(--aq-ok-bg); color: var(--aq-ok); }
.aq-st--served { background: var(--aq-surface-2); color: var(--aq-muted); }
.aq-st--paid { background: var(--aq-ok-bg); color: var(--aq-ok); }

/* The order in the basket */
.aq-order__head { gap: 0.5rem; align-items: flex-start; flex-wrap: wrap; }
.aq-order__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aq-order__title h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.aq-ordermenu summary { list-style: none; cursor: pointer; padding: 0.3rem 0.7rem; border-radius: 8px; border: 1px solid var(--aq-line); font-weight: 800; }
.aq-ordermenu summary::-webkit-details-marker { display: none; }
.aq-line__tap { all: unset; display: flex; flex-direction: column; gap: 0.15rem; cursor: pointer; min-width: 0; }
.aq-line__tap:focus-visible { outline: 2px solid var(--aq-accent); outline-offset: 2px; border-radius: 6px; }
.aq-line__note { color: var(--aq-warn); font-weight: 600; font-size: 0.85rem; }
.aq-line__state { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.aq-lines--order .aq-line.is-served .aq-line__name, .aq-lines--order .aq-line.is-paid .aq-line__name { color: var(--aq-muted); }
.aq-guests { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.5rem; }
.aq-chip--big { min-height: 56px; font-size: 1.15rem; justify-content: center; }
.aq-split { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.2rem 0 0.8rem; }
.aq-split > .aq-chip:not(.aq-chip--small) { min-width: 56px; align-items: center; justify-content: center; }
.aq-split__each { font-weight: 700; }

/* ---------------- Kitchen screen ---------------- */
.aq-kds-mode { background: var(--aq-bg); }
.aq-kds__top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; min-width: 0; }
.aq-kds__st-names { font-weight: 700; color: #fff; }
.aq-kds__info { display: flex; align-items: center; gap: 0.6rem; color: #fff; }
.aq-kds { padding: 0.8rem; }
.aq-kds__board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; align-items: start; }
.aq-kds__empty { grid-column: 1 / -1; text-align: center; color: var(--aq-muted); padding: 4rem 1rem; font-size: 1.3rem; }
.aq-kds__card { background: var(--aq-surface); border: 1px solid var(--aq-line); border-top: 8px solid var(--aq-accent); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; }
.aq-kds__card.is-slow { border-top-color: #d99a00; }
.aq-kds__card.is-late { border-top-color: var(--aq-error); }
.aq-kds__card.is-ready { border-top-color: var(--aq-ok); }
.aq-kds__head { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 0.8rem 0.1rem; font-size: 1.15rem; }
.aq-kds__head strong { overflow-wrap: anywhere; }
.aq-kds__age { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.aq-kds__card.is-late .aq-kds__age { color: var(--aq-error); }
.aq-kds__meta { color: var(--aq-muted); font-size: 0.85rem; padding: 0 0.8rem 0.4rem; }
.aq-kds__note { margin: 0 0.8rem 0.4rem; padding: 0.4rem 0.6rem; border-radius: 8px; background: var(--aq-warn-bg); color: var(--aq-warn); font-weight: 600; }
.aq-kds__lines { list-style: none; margin: 0; padding: 0 0.4rem; }
.aq-kds__line { display: grid; grid-template-columns: 2.2rem 1fr 1.6rem; gap: 0.5rem; align-items: start; width: 100%; text-align: left; padding: 0.6rem 0.4rem; border: 0; border-top: 1px solid var(--aq-line); background: transparent; color: var(--aq-text); font: inherit; cursor: pointer; min-height: 48px; }
.aq-kds__qty { font-size: 1.35rem; font-weight: 800; text-align: center; }
.aq-kds__what { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.aq-kds__name { font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.aq-kds__opts { color: var(--aq-muted); }
.aq-kds__lnote { color: var(--aq-warn); font-weight: 700; }
.aq-kds__void { color: var(--aq-error); font-weight: 800; }
.aq-kds__st { color: var(--aq-muted); font-size: 0.8rem; }
.aq-kds__tick { color: var(--aq-ok); font-size: 1.4rem; font-weight: 800; }
.aq-kds__line.is-ready .aq-kds__name { text-decoration: line-through; color: var(--aq-muted); }
.aq-kds__line.is-void { opacity: 0.7; cursor: default; }
.aq-kds__line.is-void .aq-kds__name { text-decoration: line-through; }
.aq-kds__btns { padding: 0.6rem 0.8rem 0.8rem; }
.aq-kds__btns .aq-btn { width: 100%; }

/* Back office: floor plan editor */
.aq-pe__areas { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.8rem; }
.aq-pe__areas .aq-cats { margin: 0; }
.aq-pe { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem; align-items: start; }
.aq-pe__plan { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; border: 1px solid var(--aq-line); background: var(--aq-surface); background-image: radial-gradient(var(--aq-line) 1px, transparent 1px); background-size: 20px 20px; touch-action: none; user-select: none; }
.aq-pe__plan .aq-tbl { cursor: grab; }
.aq-pe__plan .aq-tbl:active { cursor: grabbing; }
.aq-pe__plan .aq-tbl.is-sel { border-color: var(--aq-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aq-accent) 35%, transparent); }
.aq-pe__side { border: 1px solid var(--aq-line); border-radius: 12px; padding: 0.9rem; background: var(--aq-surface); }
.aq-pe__side h3 { margin-top: 0; }
.aq-pe__side input[type=range] { width: 100%; }
.aq-fieldset { border: 1px solid var(--aq-line); border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0 0 0.9rem; }
.aq-fieldset legend { font-weight: 600; padding: 0 0.3rem; }
@media (max-width: 900px) { .aq-pe { grid-template-columns: minmax(0, 1fr); } .aq-pe__plan { aspect-ratio: 4 / 5; } }

/* ---------------- 0.5.1: the guests' menu page (QR on the table) ---------------- */
.aqg { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--aq-bg); }
.aqg__top { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; background: var(--aq-navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.aqg__title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.aqg__title strong { overflow-wrap: anywhere; }
.aqg__title span { opacity: 0.85; font-size: 0.9rem; }
.aqg__main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 1rem 1rem 6rem; }
.aqg__lead { color: var(--aq-muted); margin: 0 0 0.8rem; }
.aqg__calls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0 0 0.9rem; }
.aqg__call { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 48px; padding: 0.55rem 0.7rem; border: 2px solid var(--aq-line); border-radius: 12px; background: var(--aq-surface); color: var(--aq-text); font: inherit; font-weight: 600; cursor: pointer; }
.aqg__call.is-on { border-color: var(--aq-ok, #1e8e5a); background: var(--aq-ok-bg, #e6f5ec); color: var(--aq-text); cursor: default; opacity: 1; }
.aqg__done .aqg__calls { width: min(420px, 100%); margin: 1rem auto 0; }
.aqg__cats { position: sticky; top: 62px; z-index: 10; background: var(--aq-bg); padding: 0.4rem 0; margin: 0 0 0.6rem; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }
.aqg__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.aqg__item { display: grid; grid-template-columns: 72px 1fr auto; grid-template-rows: auto auto; column-gap: 0.8rem; align-items: center; width: 100%; padding: 0.6rem; border: 1px solid var(--aq-line); border-radius: 14px; background: var(--aq-surface); color: var(--aq-text); font: inherit; text-align: left; cursor: pointer; }
.aqg__img { grid-row: 1 / 3; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--aq-surface-2); display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: var(--aq-muted); }
.aqg__name { font-weight: 700; overflow-wrap: anywhere; }
.aqg__price { color: var(--aq-muted); font-variant-numeric: tabular-nums; grid-column: 2; }
.aqg__add { grid-row: 1 / 3; grid-column: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--aq-primary); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; }
.aqg__bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(1rem, env(safe-area-inset-bottom)); width: min(728px, calc(100% - 2rem)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 0; border-radius: 14px; background: var(--aq-primary); color: #fff; font: inherit; font-weight: 700; box-shadow: var(--aq-shadow); cursor: pointer; z-index: 30; }
.aqg__qtyrow { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 0.6rem 0; }
.aqg__qty { font-size: 1.4rem; font-weight: 800; min-width: 2ch; text-align: center; }
.aqg__msg { padding: 3rem 1.2rem; text-align: center; max-width: 520px; margin: 0 auto; }
.aqg__done { text-align: center; }
.aqg__status { list-style: none; padding: 0; margin: 1rem 0; text-align: left; border: 1px solid var(--aq-line); border-radius: 12px; background: var(--aq-surface); }
.aqg__status li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--aq-line); }
.aqg__status li:last-child { border-bottom: 0; }
.aqg__status li.is-ready strong { color: var(--aq-ok); }
.aqg__status li.is-void strong { color: var(--aq-error); }

/* 0.5.1: guest orders and reservations on the till */
.aq-tbl.is-guest { border-color: #7c3aed; background: color-mix(in srgb, #7c3aed 13%, var(--aq-surface)); animation: aq-pulse-g 1.6s ease-in-out infinite; }
@keyframes aq-pulse-g { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, #7c3aed 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .aq-tbl.is-guest { animation: none; } }
.aq-tbl.is-booked { border-style: dashed; border-color: var(--aq-warn); }
.aq-tbl__res { font-size: 0.75rem; font-weight: 700; color: var(--aq-warn); white-space: nowrap; }
.aq-legend__i.is-guest::before { border-color: #7c3aed; background: color-mix(in srgb, #7c3aed 13%, var(--aq-surface)); }
.aq-legend__i.is-booked::before { border-style: dashed; border-color: var(--aq-warn); }
.aq-st--guest { background: color-mix(in srgb, #7c3aed 14%, var(--aq-surface)); color: #6d28d9; }
.aq-floor__tools { margin: 0; }
.aq-res__list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.aq-res__item { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; padding: 0.6rem 0; border-top: 1px solid var(--aq-line); }
.aq-res__item.is-no_show, .aq-res__item.is-cancelled, .aq-res__item.is-done { opacity: 0.6; }
.aq-res__time { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.aq-res__who { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.aq-res__btns { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.aq-res__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.aq-chip.is-small { opacity: 0.6; }
@media (max-width: 560px) { .aq-res__item { grid-template-columns: 3rem minmax(0, 1fr); } .aq-res__btns { grid-column: 1 / -1; justify-content: flex-start; } .aq-res__row { grid-template-columns: 1fr 1fr; } }
.aq-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 1rem; }

/* QR codes for the tables (screen and A4) */
.aq-qrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.aq-qrs__card { border: 1px dashed var(--aq-line); border-radius: 12px; padding: 0.8rem; text-align: center; background: #fff; color: #111; break-inside: avoid; }
.aq-qrs__site { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #555; }
.aq-qrs__code svg { width: 100%; max-width: 170px; height: auto; display: block; margin: 0.4rem auto; }
.aq-qrs__table { font-size: 1.5rem; font-weight: 800; }
.aq-qrs__how { font-size: 0.85rem; }
.aq-qrs__url { font-size: 0.65rem; color: #666; overflow-wrap: anywhere; margin-top: 0.3rem; }
@media print {
	#aq-print.aq-print--page .aq-qrs { grid-template-columns: repeat(3, 1fr); gap: 6mm; }
	#aq-print.aq-print--page .aq-qrs__card { border-color: #999; }
}

/* ---------- Shop (0.6): stock on tiles, open-price keys, exchange ---------- */
.aq-toast--warn { background: var(--aq-warn); color: #fff; }
@media (prefers-color-scheme: dark) { .aq-toast--warn { color: #1b1404; } }
.aq-tile__stock { align-self: flex-start; font-size: 0.78rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--aq-surface-2); color: var(--aq-muted); font-variant-numeric: tabular-nums; }
.aq-tile__stock.is-low { background: var(--aq-warn-bg); color: var(--aq-warn); }
.aq-tile__stock.is-out { background: var(--aq-error-bg, #fde8e8); color: var(--aq-error); }
.aq-tile--open { background: var(--aq-surface-2); border-style: dashed; }
.aq-exbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--aq-warn-bg); color: var(--aq-warn); font-weight: 600; }
.aq-line--back .aq-line__opts { color: var(--aq-warn); font-weight: 600; }

/* ---------- Back office: stock, quick keys, labels (0.6) ---------- */
.aq .aq-input--small { width: 7.5rem; min-height: 38px; padding: 0.35rem 0.55rem; }
.aq-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; overflow-wrap: anywhere; }
.aq-card--btn { text-align: left; font: inherit; cursor: pointer; width: 100%; }
.aq-card--btn:hover { border-color: var(--aq-accent); }
.aq-card--btn.is-warn { border-color: var(--aq-warn); }
.aq-card--btn.is-warn .aq-card__value { color: var(--aq-warn); }
.aq-finder { position: relative; max-width: 560px; }
.aq-finder .aq-search { width: 100%; }
.aq-hits { list-style: none; margin: 0.3rem 0 0; padding: 0; border-radius: 10px; overflow: hidden; }
.aq-hits:not(:empty) { border: 1px solid var(--aq-line); background: var(--aq-surface); }
.aq-hits li + li { border-top: 1px solid var(--aq-line); }
.aq-hits li.aq-muted { padding: 0.6rem 0.8rem; }
.aq-hits button { display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.6rem 0.8rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.aq-hits button:hover, .aq-hits button:focus-visible { background: var(--aq-surface-2); }
.aq-qtyin { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.aq-rules { display: grid; gap: 0.6rem; margin-bottom: 0.8rem; }
.aq-rule { display: grid; grid-template-columns: 6rem 1fr 1fr auto; gap: 0.6rem; align-items: end; padding: 0.6rem 0.7rem; border: 1px solid var(--aq-line); border-radius: 10px; }
.aq-rule .aq-field { margin: 0; }
.aq-rule .aq-icon-btn { margin-bottom: 0.3rem; }
@media (max-width: 640px) {
	.aq-rule { grid-template-columns: 1fr 1fr; }
	.aq-rule .aq-field:first-child { grid-column: 1 / -1; }
}
.aq-inline { display: flex; gap: 0.5rem; align-items: center; }
.aq-inline > input { flex: 1; min-width: 0; }
.aq-inline > .aq-btn { flex: none; }
.aq-qks { display: grid; gap: 0.5rem; }
.aq-qk { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) 46px auto; gap: 0.5rem; align-items: center; padding: 0.45rem 0.6rem; border: 1px solid var(--aq-line); border-radius: 10px; background: var(--aq-surface); }
.aq-qk__order { display: flex; }
.aq-qk__order .aq-icon-btn { font-size: 1.1rem; padding: 0.25rem 0.35rem; }
.aq-qk__order .aq-icon-btn:disabled { opacity: 0.3; cursor: default; }
.aq-qk__what { min-width: 0; overflow-wrap: anywhere; }
.aq-qk input[type="color"] { width: 46px; height: 38px; padding: 2px; }
.aq-qks__preview { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.aq-qks__preview .aq-tile { cursor: default; min-height: 72px; }
@media (max-width: 640px) {
	.aq-qk { grid-template-columns: auto minmax(0, 1fr) auto; }
	.aq-qk > input[type="text"] { grid-column: 2 / 3; }
	.aq-qk > input[type="color"] { grid-column: 3; grid-row: 2; }
	.aq-qk > .aq-icon-btn { grid-column: 3; grid-row: 1; }
}
.aq-lbllist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.aq-lbllist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 0.6rem; align-items: center; padding: 0.5rem 0.7rem; border: 1px solid var(--aq-line); border-radius: 10px; background: var(--aq-surface); }
.aq-lbllist li > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
	.aq-lbllist li { grid-template-columns: minmax(0, 1fr) auto; }
	.aq-lbllist li > div { grid-column: 1 / -1; }
}
.aq-lblprev__scroll { overflow: auto; max-height: 70vh; padding: 0.8rem; border-radius: 10px; background: var(--aq-surface-2); }
.aq-lbls { display: grid; gap: 0.8rem; justify-content: start; color: #000; }
.aq-lblsheet { display: grid; width: 210mm; height: 297mm; box-sizing: border-box; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); align-content: start; }
.aq-lblroll { display: flex; }
.aq-lbls:not(:has(.aq-lblsheet)) { grid-template-columns: repeat(auto-fill, var(--lw)); }
.aq-lbl { width: var(--lw); height: var(--lh); box-sizing: border-box; padding: 2mm 2.5mm 1.5mm; background: #fff; color: #000; display: flex; flex-direction: column; overflow: hidden; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; outline: 1px dashed #c8ced6; outline-offset: -1px; }
.aq-lbl--empty { background: repeating-linear-gradient(45deg, #fff, #fff 4px, #f1f3f5 4px, #f1f3f5 8px); }
.aq-lbl__name { font-weight: 700; font-size: 3.1mm; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aq-lbl__var { font-size: 2.6mm; line-height: 1.2; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aq-lbl__price { flex: 1; display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; column-gap: 1.2mm; font-weight: 800; font-size: 6.5mm; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aq-lbl__price small { font-size: 2.8mm; font-weight: 600; }
.aq-lbl__code { flex: none; height: 13mm; display: flex; justify-content: center; }
.aq-lbl__code svg { height: 100%; width: auto; max-width: 100%; }
.aq-lbl.is-nocode .aq-lbl__price { font-size: 7mm; }
.aq-lbl.is-noprice .aq-lbl__code { height: 16mm; margin-top: auto; }
.fmt-r50x30 .aq-lbl__code, .fmt-r62x29 .aq-lbl__code { height: 10mm; }
.fmt-r50x30 .aq-lbl__price, .fmt-r62x29 .aq-lbl__price { font-size: 5mm; }
.fmt-a4-3x7 .aq-lbl, .fmt-a4-3x8 .aq-lbl { padding: 2.5mm 4mm 2mm; }
.fmt-r58x40 .aq-lbl__code { height: 14mm; }
.fmt-r58x40 .aq-lbl__price { font-size: 7mm; }
@media print {
	@page lbl-a4 { size: A4 portrait; margin: 0; }
	@page lbl-50x30 { size: 50mm 30mm; margin: 0; }
	@page lbl-58x40 { size: 58mm 40mm; margin: 0; }
	@page lbl-62x29 { size: 62mm 29mm; margin: 0; }
	#aq-print.aq-print--labels.fmt-a4-3x8, #aq-print.aq-print--labels.fmt-a4-3x7 { page: lbl-a4; }
	#aq-print.aq-print--labels.fmt-r50x30 { page: lbl-50x30; }
	#aq-print.aq-print--labels.fmt-r58x40 { page: lbl-58x40; }
	#aq-print.aq-print--labels.fmt-r62x29 { page: lbl-62x29; }
	#aq-print.aq-print--labels .aq-lbls { display: block; }
	#aq-print.aq-print--labels .aq-lblsheet { box-shadow: none; break-after: page; page-break-after: always; overflow: hidden; }
	#aq-print.aq-print--labels .aq-lblroll { break-after: page; page-break-after: always; }
	#aq-print.aq-print--labels .aq-lblsheet:last-child, #aq-print.aq-print--labels .aq-lblroll:last-child { break-after: auto; page-break-after: auto; }
	#aq-print.aq-print--labels .aq-lbl { outline: 0; }
	#aq-print.aq-print--labels .aq-lbl--empty { background: none; }
	#aq-print.aq-print--labels * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Accounting (0.7.1) */
.aq-progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; margin: 0 0 1rem; }
.aq-prog { min-height: 48px; padding: 0.5rem 0.7rem; border: 1px solid var(--aq-line); border-radius: 10px; background: var(--aq-surface); color: var(--aq-text); font: inherit; font-weight: 600; cursor: pointer; }
.aq-prog:hover { border-color: var(--aq-accent); }
.aq-prog.is-active { border-color: var(--aq-primary); box-shadow: inset 0 0 0 2px var(--aq-primary); }
.aq-block { display: block; margin: 0.15rem 0 0; font-weight: 400; }
.aq-details { margin: 0 0 1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--aq-line); border-radius: 10px; background: var(--aq-surface-2); }
.aq-details > summary { cursor: pointer; font-weight: 600; }
.aq-steps { margin: 0.6rem 0 0.4rem; padding-left: 1.3rem; }
.aq-steps li { margin: 0 0 0.35rem; }
.aq-steps a { overflow-wrap: anywhere; }

/* Online orders (0.8.0) */
.aq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-invalid { border-color: var(--aq-error) !important; box-shadow: 0 0 0 2px var(--aq-error-bg); }
.aqo--embed { min-height: 0; }
.aqo--embed .aqg__top { position: static; }
.aqo--embed .aqg__cats { top: 0; }
.aqo__info { white-space: pre-line; margin: 0 0 0.8rem; }
.aqo__kind { margin: 0 0 0.6rem; }
.aqo__kind .aq-seg__b { min-width: 7.5rem; }
.aqo__last { display: block; text-decoration: none; margin: 0 0 0.8rem; }
.aqo__hours { margin: 1.4rem 0 0; font-size: 0.9rem; }
.aqo__form h1 { margin: 0.6rem 0; }
.aqo__box { margin: 1rem 0; padding: 0.9rem 1rem; border: 1px solid var(--aq-line); border-radius: 14px; background: var(--aq-surface); }
.aqo__box h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.aqo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
.aqo__wide { grid-column: 1 / -1; }
.aqo__grid > .aq-help { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 520px) { .aqo__grid { grid-template-columns: 1fr; } }
.aqo__radio { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.7rem 0.8rem; margin: 0 0 0.5rem; border: 1px solid var(--aq-line); border-radius: 10px; cursor: pointer; }
.aqo__radio.is-on { border-color: var(--aq-primary); box-shadow: inset 0 0 0 1px var(--aq-primary); }
.aqo__radio input { margin-top: 0.25rem; width: 18px; height: 18px; flex: none; }
.aqo__radio small { display: block; color: var(--aq-muted); }
.aqo__pick { display: grid; grid-template-columns: 2fr 1fr; gap: 0.6rem; }
.aqo__pick select { min-height: 46px; width: 100%; }
.aqo__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aqo__sums .aq-alert { margin-top: 0.6rem; }
.aqo__status { text-align: center; }
.aqo__status .aqo__box, .aqo__status .aq-alert { text-align: left; }
.aqo__big { font-size: 1.2rem; font-weight: 700; margin: 0.4rem 0 1rem; }
.aqo__steps { list-style: none; display: flex; justify-content: space-between; gap: 0.3rem; padding: 0; margin: 1.2rem 0; counter-reset: s; }
.aqo__steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--aq-muted); position: relative; text-align: center; }
.aqo__steps li::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--aq-line); z-index: 0; }
.aqo__steps li:first-child::before { display: none; }
.aqo__steps li.is-done::before, .aqo__steps li.is-now::before { background: var(--aq-primary); }
.aqo__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--aq-surface-2); border: 3px solid var(--aq-line); position: relative; z-index: 1; }
.aqo__steps li.is-done .aqo__dot { background: var(--aq-primary); border-color: var(--aq-primary); }
.aqo__steps li.is-now { color: var(--aq-text); font-weight: 700; }
.aqo__steps li.is-now .aqo__dot { border-color: var(--aq-primary); background: var(--aq-surface); box-shadow: 0 0 0 4px var(--aq-warn-bg); }
.aqo__lines { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.aqo__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--aq-line); }
.aqo__lines small { display: block; color: var(--aq-muted); }
.aq-btn--ok { background: var(--aq-ok); border-color: var(--aq-ok); color: #fff; }
.aq-chips--big .aq-chip { min-height: 52px; padding: 0.6rem 1rem; font-size: 1rem; }
.aq-st--online { background: var(--aq-warn-bg); color: var(--aq-warn); }
.aq-online { margin: 0 0 0.6rem; padding: 0.7rem 0.8rem; border-radius: 12px; border: 1px solid var(--aq-line); background: var(--aq-surface-2); display: grid; gap: 0.45rem; }
.aq-online.is-received { border-color: var(--aq-warn); background: var(--aq-warn-bg); }
.aq-online__top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-weight: 600; }
.aq-online__who { display: flex; flex-direction: column; gap: 0.2rem; }
.aq-online__who a { text-align: left; overflow-wrap: anywhere; }
.aq-online__note { font-weight: 700; }
.aq-ocard.is-online-new { border-color: var(--aq-warn); box-shadow: 0 0 0 2px var(--aq-warn); animation: aq-pulse 1.6s ease-in-out infinite; }
@keyframes aq-pulse { 50% { box-shadow: 0 0 0 5px var(--aq-warn-bg); } }
@media (prefers-reduced-motion: reduce) { .aq-ocard.is-online-new { animation: none; } }
.aq-orders__tools { flex-wrap: wrap; }
.aq-onlinepause { margin-left: auto; position: relative; }
.aq-onlinepause > summary { list-style: none; }
.aq-onlinepause > summary::-webkit-details-marker { display: none; }
.aq-alert--muted { background: var(--aq-surface-2); color: var(--aq-muted); }
.aq-days { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; }
.aq-check--inline { margin: 0; }
.aq-zones { display: grid; gap: 0.6rem; margin: 0 0 0.6rem; }
.aq-zone { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr 1fr auto; gap: 0.6rem; align-items: end; padding: 0.6rem; border: 1px solid var(--aq-line); border-radius: 10px; }
.aq-zone .aq-field { margin: 0; }
@media (max-width: 720px) { .aq-zone { grid-template-columns: 1fr 1fr; } .aq-zone > .aq-field:nth-child(2) { grid-column: 1 / -1; } .aq-zone > button { justify-self: end; grid-column: 2; } }
.aq-online__pay { font-size: 0.92rem; color: var(--aq-muted); }
.aq-online__pay.is-paid { color: var(--aq-ok); font-weight: 700; }
.aqo__paybox { border-color: var(--aq-warn); background: var(--aq-warn-bg); }
.aqo__paid { color: var(--aq-ok); font-weight: 700; }
.aq-subpanel { margin: 0 0 1rem; padding: 0.8rem 1rem; border: 1px solid var(--aq-line); border-radius: 12px; background: var(--aq-surface-2); }
.aq-subpanel h4 { margin: 0 0 0.6rem; }

/* Recipes (0.9.0) */
.aq-recipe { padding: 0.6rem 0; border-top: 1px dashed var(--aq-line); }
.aq-recipe:first-child { border-top: 0; }
.aq-recipe h4 { margin: 0 0 0.4rem; }
.aq-recipe__lines { list-style: none; margin: 0 0 0.4rem; padding: 0; display: grid; gap: 0.4rem; }
.aq-recipe__lines li { display: grid; grid-template-columns: minmax(0, 1fr) 6rem auto 5.5rem auto; gap: 0.5rem; align-items: center; }
.aq-recipe__lines select { min-width: 0; }
.aq-recipe__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.aq-recipe__sum { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .aq-recipe__lines li { grid-template-columns: 1fr 5rem auto; } .aq-recipe__lines li > span.aq-num { grid-column: 1 / 3; } }
.aq-actions--tight { gap: 0.3rem; flex-wrap: wrap; }

/* Purchasing (0.9.1) */
.aq-polines { list-style: none; margin: 0.4rem 0; padding: 0; display: grid; gap: 0.45rem; }
.aq-poline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 6rem auto; gap: 0.5rem; align-items: center; }
.aq-poline select { min-width: 0; }
.aq-poline > .aq-num { text-align: right; }
.aq-poline__qty { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
@media (max-width: 720px) { .aq-poline { grid-template-columns: 1fr 1fr; padding-bottom: 0.45rem; border-bottom: 1px dashed var(--aq-line); } .aq-poline > select { grid-column: 1 / -1; } }
.aq-printdoc h1 { font-size: 16pt; margin: 0 0 12pt; }
.aq-printdoc__text { font: inherit; white-space: pre-wrap; margin: 0; }
.aq .aq-poline .aq-poline__qty input { width: 6.5rem; }
@media (max-width: 720px) { .aq .aq-poline .aq-poline__qty input { width: 100%; } .aq-poline__qty { min-width: 0; } }
a.aq-cat { text-decoration: none; }

/* Customers (0.10.0) */
.aq-custchip { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.92rem; min-width: 0; }
.aq-custchip .aq-link-btn { font-weight: 700; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-custbtn { margin-left: auto; }
.aq-cart__head .aq-custchip { margin-left: auto; }
.aq-pay__cust { margin-top: 0.6rem; }
.aq-custlist { list-style: none; margin: 0.6rem 0; padding: 0; display: grid; gap: 0.4rem; max-height: 50vh; overflow: auto; }
.aq-custlist__b { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.8rem; padding: 0.6rem 0.8rem; border: 1px solid var(--aq-line); border-radius: 10px; background: var(--aq-surface); color: var(--aq-text); font: inherit; text-align: left; cursor: pointer; }
.aq-custlist__b .aq-muted { grid-column: 1; font-size: 0.88rem; }
.aq-custlist__b > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; font-weight: 700; }
.aq-checks--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.1rem 1rem; max-height: 14rem; overflow: auto; }
.aq-custcard { width: 85.6mm; height: 54mm; box-sizing: border-box; padding: 4mm 5mm; border: 0.3mm solid #999; border-radius: 3mm; display: flex; flex-direction: column; justify-content: space-between; color: #111; background: #fff; }
.aq-custcard__co { font-weight: 800; font-size: 12pt; }
.aq-custcard__name { font-size: 11pt; }
.aq-custcard__code svg { width: 100%; height: 18mm; }

/* ------------------------------------------------------------------ */
/* 0.10.1 Self-service kiosk                                            */
/* ------------------------------------------------------------------ */
html.aq-kiosk body { overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
html.aq-kiosk input, html.aq-kiosk textarea { -webkit-user-select: text; user-select: text; }
.aqk { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--aq-bg); color: var(--aq-text); font-size: 1.05rem; }
.aqk__top { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.2rem; background: var(--aq-primary); color: #fff; }
.aqk__top .aq-brand__logo { width: 36px; height: 36px; flex: none; }
.aqk__co { font-size: 1.2rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aqk__mode { padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 700; white-space: nowrap; }
.aqk__mode--inline { display: inline-block; background: var(--aq-surface-2); color: var(--aq-text); margin: 0 0 0.8rem; }
.aqk__full { color: #fff; }
.aqk__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 1.2rem; text-align: center; }
.aqk__center .aq-btn--big { width: auto; min-width: 240px; }
.aqk__hello { font-size: clamp(2rem, 6vw, 3.4rem); margin: 0; }
.aqk__lead { font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: var(--aq-muted); margin: 0; max-width: 36rem; }
.aqk__strong { color: var(--aq-text); font-weight: 600; }
.aqk__muted { color: var(--aq-muted); margin: 0; }
.aqk__choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; width: min(760px, 100%); margin-top: 1rem; }
.aqk__big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; min-height: clamp(150px, 30vh, 280px); padding: 1.2rem; border: 2px solid var(--aq-line); border-radius: 20px; background: var(--aq-surface); color: var(--aq-text); font: inherit; font-size: clamp(1.3rem, 3.6vw, 2rem); font-weight: 700; cursor: pointer; box-shadow: var(--aq-shadow); }
.aqk__big:active { transform: scale(0.98); border-color: var(--aq-primary); }
.aqk__big:focus-visible, .aqk__tile:focus-visible, .aqk__cat:focus-visible { outline: 3px solid var(--aq-accent); outline-offset: 2px; }
.aqk__icon { font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; }
.aqk__cats { display: flex; gap: 0.5rem; padding: 0.8rem 1.2rem; overflow-x: auto; overflow-y: hidden; background: var(--aq-surface); border-bottom: 1px solid var(--aq-line); scrollbar-width: none; }
.aqk__cat { flex: none; min-height: 48px; padding: 0.5rem 1.2rem; border: 1px solid var(--aq-line); border-radius: 999px; background: var(--aq-surface); color: var(--aq-text); font: inherit; font-weight: 600; cursor: pointer; }
.aqk__cat.is-on { background: var(--aq-primary); border-color: var(--aq-primary); color: #fff; }
.aqk__main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1rem 1.2rem 7rem; box-sizing: border-box; }
.aqk__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.9rem; }
.aqk__tile { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0 0.8rem; border: 1px solid var(--aq-line); border-radius: 16px; background: var(--aq-surface); color: var(--aq-text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; box-shadow: var(--aq-shadow); }
.aqk__tile:active { transform: scale(0.98); }
.aqk__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--aq-surface-2); }
.aqk__img--none { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 700; color: var(--aq-muted); }
.aqk__name { padding: 0 0.8rem; font-weight: 700; line-height: 1.25; }
.aqk__price { padding: 0 0.8rem; color: var(--aq-muted); font-weight: 600; margin-top: auto; }
.aqk__foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 1.2rem max(0.8rem, env(safe-area-inset-bottom)); background: var(--aq-surface); border-top: 1px solid var(--aq-line); z-index: 30; }
.aqk__foot > .aq-btn { flex: none; min-height: 56px; }
.aqk__bar { flex: 1; min-width: 0; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.6rem 1.2rem; border: 0; border-radius: 14px; background: var(--aq-primary); color: #fff; font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.aqk__bar[hidden] { display: none; }
.aqk__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aqk__form { max-width: 760px; padding-bottom: 2rem; }
.aqk__form h1 { margin: 0.4rem 0 0.4rem; }
.aqk__back { min-height: 44px; font-size: 1.05rem; }
.aqk__lines .aq-line { padding: 0.8rem 0; }
.aqk__qty button { width: 48px; height: 48px; font-size: 1.4rem; }
.aqk__sum { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-top: 2px solid var(--aq-line); font-size: 1.4rem; }
.aqk__name-field input { min-height: 52px; font-size: 1.15rem; }
.aqk__pay { margin: 0.8rem 0; }
.aqk__opt { display: flex; align-items: center; gap: 0.8rem; padding: 1rem; margin: 0 0 0.6rem; border: 2px solid var(--aq-line); border-radius: 14px; background: var(--aq-surface); cursor: pointer; font-weight: 600; font-size: 1.1rem; }
.aqk__opt.is-on { border-color: var(--aq-primary); }
.aqk__opt input { width: 22px; height: 22px; flex: none; }
.aqk__opt small { display: block; font-weight: 400; color: var(--aq-muted); font-size: 0.9rem; }
.aqk__note { color: var(--aq-muted); }
.aqk-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; width: 100%; }
.aqk__form .aqk-actions .aq-btn--big { width: 100%; }
.aqk__send { min-height: 64px; font-size: 1.25rem; }
.aqk__number { font-size: clamp(6rem, 30vw, 14rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--aq-primary); font-variant-numeric: tabular-nums; }
.aqk-still { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(10, 16, 24, 0.6); z-index: 1000; }
.aqk-still__box { width: min(520px, 100%); padding: 2rem 1.5rem; border-radius: 20px; background: var(--aq-surface); color: var(--aq-text); text-align: center; box-shadow: var(--aq-shadow); }
.aqk-still__box h2 { margin: 0 0 0.6rem; font-size: 1.8rem; }
.aqk-still__box .aq-btn--big { width: auto; min-width: 180px; }
html.aq-kiosk .aq-modal .aq-btn--big { min-height: 60px; font-size: 1.15rem; }
@media (prefers-color-scheme: dark) {
	.aqk__number { color: var(--aq-accent); }
	.aqk__top { background: var(--aq-surface); border-bottom: 1px solid var(--aq-line); }
	.aqk__cat.is-on, .aqk__bar { background: var(--aq-accent); border-color: var(--aq-accent); color: #0f1419; }
	.aqk__opt.is-on { border-color: var(--aq-accent); }
}
@media (max-width: 520px) {
	.aqk__choose { grid-template-columns: 1fr; }
	.aqk__big { min-height: 120px; flex-direction: row; }
	.aqk__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
	.aqk__foot > .aq-btn { padding: 0.5rem 0.8rem; }
	.aqk__mode { font-size: 0.85rem; }
}
/* Back office: the kiosk list */
.aq .aq-kiosk { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.aq .aq-kiosk__form { flex: 1; min-width: 0; }
.aq .aq-kiosk__qr { flex: none; width: 140px; background: #fff; padding: 6px; border-radius: 8px; }
.aq .aq-kiosk__qr svg { width: 100%; height: auto; display: block; }
@media (max-width: 700px) { .aq .aq-kiosk { flex-direction: column; } .aq .aq-kiosk__qr { width: 120px; } }
html.aq-kiosk .aq-toasts { bottom: auto; top: 5rem; }

/* 0.10.2 Integrations */
.aq .aq-break { overflow-wrap: anywhere; word-break: break-word; }
.aq .aq-code { margin: 0.6rem 0; padding: 0.8rem 1rem; border-radius: 8px; background: var(--aq-surface-2); color: var(--aq-text); font: 0.85rem/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; }
.aq .aq-apiref { margin-top: 1.2rem; }
.aq .aq-apiref summary { cursor: pointer; font-weight: 600; }
.aq .aq-apiref code { overflow-wrap: anywhere; }
.aq .aq-hook h3 { margin: 1.2rem 0 0.4rem; }
.aq .aq-msgkind textarea { width: 100%; box-sizing: border-box; }
.aq .aq-msgkind .aq-check { margin-bottom: 0.4rem; }
/* 0.10.5 Product descriptions on the menu */
.aqg__desc { display: block; margin-top: 0.15rem; font-weight: 400; font-size: 0.85rem; color: var(--aq-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aqg__desc--full { display: block; -webkit-line-clamp: unset; font-size: 0.95rem; margin: 0 0 0.8rem; }
.aqk__desc { display: -webkit-box; margin-top: 0.2rem; font-weight: 400; font-size: 0.85rem; color: var(--aq-muted); line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aq .aq-ai-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.aq .aq-ai-row textarea { flex: 1; min-width: 0; }
.aq .aq-ai-answer { white-space: pre-wrap; line-height: 1.5; margin: 0.6rem 0 0; padding: 0.8rem 1rem; border-radius: 8px; background: var(--aq-surface-2); }
.aq .aq-ai-qs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.aq .aq-help { overflow-wrap: anywhere; }
.aq .aq-actions select { width: auto; max-width: 100%; }

/* 0.11.0 Hotel on the till */
.aq-hotel__tools { margin-bottom: 0.6rem; flex-wrap: wrap; }
.aq-hotel__h { margin: 1rem 0 0.5rem; font-size: 1rem; }
.aq-staycard { cursor: default; }
.aq-staycard.is-arrive { border-left-color: var(--aq-warn); }
.aq-staycard.is-in { border-left-color: var(--aq-ok); }
.aq-staycard.is-leaving { border-left-color: var(--aq-error); }
.aq-staycard .aq-actions { margin-top: 0.3rem; flex-wrap: wrap; }
.aq-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.6rem; margin-bottom: 0.6rem; }
.aq-roomtile { display: flex; flex-direction: column; gap: 0.2rem; align-items: flex-start; padding: 0.8rem; min-height: 96px; border-radius: 12px; border: 1px solid var(--aq-line); border-top: 6px solid var(--aq-ok); background: var(--aq-surface); color: var(--aq-text); font: inherit; text-align: left; cursor: pointer; }
.aq-roomtile strong { font-size: 1.3rem; }
.aq-roomtile small { color: var(--aq-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.aq-roomtile.is-dirty { border-top-color: var(--aq-warn); }
.aq-roomtile.is-inspect { border-top-color: var(--aq-accent); }
.aq-roomtile.is-out_of_order { border-top-color: var(--aq-error); opacity: 0.75; }
.aq-roompick .aq-chip { flex-direction: column; }
.aq-roompick .aq-chip small { display: block; font-weight: 400; color: var(--aq-muted); }

/* 0.11.0 Hotel in the back office */
.aq .aq-hcal-wrap { overflow-x: auto; border: 1px solid var(--aq-line); border-radius: 10px; background: var(--aq-surface); }
.aq .aq-hcal { display: grid; min-width: max-content; font-size: 0.85rem; }
.aq .aq-hcal__room, .aq .aq-hcal__day, .aq .aq-hcal__cell { border-right: 1px solid var(--aq-line); border-bottom: 1px solid var(--aq-line); min-height: 40px; box-sizing: border-box; }
.aq .aq-hcal__room { position: sticky; left: 0; z-index: 2; background: var(--aq-surface); padding: 0.4rem 0.6rem; font-weight: 600; display: flex; flex-direction: column; justify-content: center; }
.aq .aq-hcal__room small { font-weight: 400; color: var(--aq-muted); }
.aq .aq-hcal__day { padding: 0.3rem; text-align: center; background: var(--aq-surface-2); font-weight: 600; }
.aq .aq-hcal__day.is-today { color: var(--aq-accent); }
.aq .aq-hcal__day.is-weekend, .aq .aq-hcal__cell.is-weekend { background: var(--aq-surface-2); }
.aq .aq-hcal__cell { background: transparent; border-top: 0; border-left: 0; cursor: pointer; padding: 0; }
.aq .aq-hcal__cell:hover { background: var(--aq-info-bg); }
.aq .aq-hcal__stay { z-index: 1; margin: 4px 2px; padding: 0.25rem 0.5rem; border: 0; border-radius: 6px; background: var(--aq-accent); color: #fff; font: inherit; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.aq .aq-hcal__stay.is-in { background: var(--aq-ok); }
.aq .aq-hcal__stay.is-leaving { background: var(--aq-warn); }
.aq .aq-hcal-nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
@media (prefers-color-scheme: dark) { .aq .aq-hcal__stay { color: #0f1419; } }

/* Rooms on the website (0.11.1) */
.aqr__dates { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .aqr__dates { grid-template-columns: 1fr 1fr; } .aqr__dates > :last-child { grid-column: 1 / -1; } }
.aqr__types { list-style: none; margin: 0; padding: 0; }
.aqr__type p { margin: 0.2rem 0 0.7rem; }
.aqr__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.3rem 1rem; }
.aqr__head h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.aqr__price { text-align: right; display: flex; flex-direction: column; margin-left: auto; }
.aqr__price strong { font-size: 1.15rem; }
.aqr__price small { color: var(--aq-muted); }

/* Uppik CRM (0.12.0) */
.aq-uppik__part { margin: 0.6rem 0 0.2rem; }
.aq-uppik__part .aq-help { margin: 0.15rem 0 0 1.8rem; }
.aq-uppik__groups { flex-wrap: wrap; }
.aq input:disabled, .aq select:disabled, .aq textarea:disabled { background: var(--aq-surface-2); color: var(--aq-muted); cursor: not-allowed; opacity: 1; }

/* Open the checkout from the back office (0.13.1) */
.aq-top__till { margin-left: auto; white-space: nowrap; }
.aq-tillpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.6rem; margin: 0.6rem 0 1rem; }
.aq-tillpick .aq-btn { flex-direction: column; align-items: flex-start; text-align: left; }
.aq-tillpick small { color: var(--aq-muted); font-weight: 400; }

/* ---------------- 0.14.0: the guests' menu ---------------- */
.aq-checks--row { flex-direction: row; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.aqg__main--menu { max-width: 1200px; }
.aqm__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 0.4rem; }
.aqm__search { flex: 1 1 280px; max-width: 560px; min-height: 46px; padding: 0.6rem 0.9rem; border: 1px solid var(--aq-line); border-radius: 12px; background: var(--aq-surface); color: var(--aq-text); font: inherit; }
.aqm__search:focus { outline: 3px solid color-mix(in srgb, var(--aq-primary) 35%, transparent); outline-offset: 0; border-color: var(--aq-primary); }
.aqm__filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.aqm__filter { min-height: 40px; min-width: 0; padding: 0.35rem 0.85rem; border-width: 1px; border-radius: 999px; flex-direction: row; align-items: center; font-size: 0.92rem; }
.aqm__filter.is-on { background: var(--aq-primary); border-color: var(--aq-primary); color: #fff; }
.aqm__nav { position: sticky; top: 62px; z-index: 10; display: flex; gap: 0.4rem; margin: 0 -1rem 0.4rem; padding: 0.5rem 1rem; background: var(--aq-bg); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex-wrap: nowrap; }
.aqm__nav::-webkit-scrollbar { display: none; }
.aqm__nav .aq-cat { text-decoration: none; white-space: nowrap; }
.aqm__count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.35rem; border-radius: 999px; background: var(--aq-surface-2); color: var(--aq-muted); font-size: 0.78rem; font-weight: 700; }
.aq-cat.is-active .aqm__count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.aqo--embed .aqm__nav { top: 0; }
.aqm__sec { scroll-margin-top: 130px; margin: 0 0 1.6rem; }
.aqo--embed .aqm__sec { scroll-margin-top: 70px; }
.aqm__h { font-size: 1.3rem; margin: 0.6rem 0 0.7rem; }
.aqm__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.aqm__card { display: flex; gap: 0.9rem; width: 100%; height: 100%; padding: 0.8rem; border: 1px solid var(--aq-line); border-radius: 14px; background: var(--aq-surface); color: var(--aq-text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.aqm__card:hover:not(:disabled) { border-color: var(--aq-primary); box-shadow: var(--aq-shadow); }
.aqm__card:disabled { cursor: default; opacity: 0.75; }
.aqm__img { flex: none; width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--aq-surface-2); display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; color: var(--aq-muted); }
.aqm__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.aqm__name { font-weight: 700; overflow-wrap: anywhere; }
.aqm__desc { color: var(--aq-muted); font-size: 0.9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aqm__tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.aqm__marks { display: flex; flex-direction: column; gap: 0.3rem; }
.aqm__allergens { font-size: 0.82rem; color: var(--aq-muted); }
.aqm__tag { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--aq-surface-2); color: var(--aq-muted); }
.aqm__tag--vegetarian, .aqm__tag--vegan { background: color-mix(in srgb, var(--aq-ok) 16%, transparent); color: var(--aq-ok); }
.aqm__tag--gluten_free, .aqm__tag--lactose_free { background: color-mix(in srgb, var(--aq-warn) 16%, transparent); color: var(--aq-warn); }
.aqm__tag--spicy { background: color-mix(in srgb, #c0392b 15%, transparent); color: #c0392b; }
.aqm__tag--spicy::before { content: "🌶 "; }
@media (prefers-color-scheme: dark) { .aqm__tag--spicy { color: #ff8a7a; } }
.aqm__dtags { margin: -0.3rem 0 0.8rem; }
.aqm__foot { margin-top: auto; padding-top: 0.3rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.aqm__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.aqm__add { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--aq-primary); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; }
.aqm__none { text-align: center; padding: 2rem 1rem; color: var(--aq-muted); }
@media (max-width: 480px) { .aqm__img { width: 80px; height: 80px; } .aqm__card { padding: 0.65rem; gap: 0.7rem; } }
@media (prefers-reduced-motion: reduce) { .aqm__card { transition: none; } }
@media (max-width: 600px) { .aqm__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem; } .aqm__filters::-webkit-scrollbar { display: none; } .aqm__filter { flex: none; } .aqm__search { max-width: none; } }

/* ---------------- 0.15.0: Website in the back office ---------------- */
.aq-radio-cards { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.aq-radio-card { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; border: 2px solid var(--aq-line); border-radius: 12px; background: var(--aq-surface); cursor: pointer; }
.aq-radio-card:has(input:checked) { border-color: var(--aq-primary); background: color-mix(in srgb, var(--aq-primary) 7%, var(--aq-surface)); }
.aq-radio-card input { margin-top: 0.25rem; flex: none; }
.aq-radio-card span { display: flex; flex-direction: column; gap: 0.2rem; }
.aq-radio-card small { color: var(--aq-muted); line-height: 1.4; }
.aq-radio-card.is-disabled { opacity: 0.6; cursor: default; }
.aq-codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.aq-codes code { background: var(--aq-surface-2); padding: 0.15rem 0.45rem; border-radius: 6px; font-size: 0.92rem; user-select: all; }
.aq-photos { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: 0.6rem; }
.aqo--bare .aqg__top { display: none; }
.aqo--bare .aqm__nav { top: 0; }
.aq-pimg--wide .aq-pimg__box { width: 200px; height: 120px; }
.aqm__nav .aq-cat.is-empty { opacity: 0.4; cursor: default; }

/* 0.15.3: on a phone the till's view tabs wrap instead of hiding Hotel and Quick sale off-screen, and product names are not split oddly. */
@media (max-width: 600px) {
	.aq-seg--views { display: flex; flex-wrap: wrap; overflow: visible; }
	.aq-seg--views .aq-seg__b { flex: 1 1 auto; padding: 0.5rem 0.7rem; }
	.aq-tile__name { font-size: 0.82rem; }
}

/* 0.16.0: a product's locations */
.aq-locrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; padding: 0.45rem 0; border-top: 1px solid var(--aq-line); }
.aq-locrow:first-of-type { border-top: 0; }
.aq-locprices { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.aq-locprice { display: flex; align-items: center; gap: 0.35rem; }
.aq-form .aq-locprice input { width: 8rem; min-width: 0; }

/* 0.16.1: which location the stock pages show */
.aq-locbar { display: flex; align-items: center; gap: 0.6rem; margin: -0.3rem 0 1rem; }
.aq-locbar label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.aq-locbar select { min-width: 12rem; }

/* 0.16.2: choosing the place to order from */
.aqo__h { font-size: 1.35rem; margin: 0.4rem 0 1rem; }
.aqo__places { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.aqo__place { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; width: 100%; text-align: left; font: inherit; color: var(--aq-text); background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: 14px; padding: 1rem 1.1rem; cursor: pointer; min-height: 44px; }
.aqo__place:hover, .aqo__place:focus-visible { border-color: var(--aq-primary); }
.aqo__place strong { font-size: 1.1rem; }
.aqo__place-state { font-weight: 600; color: var(--aq-muted); }
.aqo__place.is-open .aqo__place-state { color: var(--aq-ok, #1b7f4b); }
.aqo__change { margin: 0 0 0.8rem; }
.aq-moreloc { margin: 0 0 0.6rem; }

/* 0.17.0: the overview – key figures, charts and lists. One chart hue (validated: light #0a7fa3,
   dark #22b8d8), last month a dashed grey line, grid and axes recessive. */
:root { --aq-chart: #0a7fa3; --aq-chart-fill: rgba(10, 127, 163, 0.12); --aq-chart-then: #8a96a3; }
@media (prefers-color-scheme: dark) { :root { --aq-chart: #22b8d8; --aq-chart-fill: rgba(34, 184, 216, 0.14); --aq-chart-then: #6b7886; } }
.aq-dash__date { color: var(--aq-muted); font-size: 0.92rem; align-self: center; }
.aq-dash__alert { display: block; text-decoration: none; margin: 0 0 0.8rem; }
.aq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.2rem; }
.aq-kpi { display: flex; flex-direction: column; gap: 0.25rem; background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: var(--aq-radius); padding: 1rem 1.1rem; color: inherit; text-decoration: none; min-width: 0; }
a.aq-kpi:hover { border-color: var(--aq-accent); }
.aq-kpi__title { color: var(--aq-muted); font-size: 0.9rem; }
.aq-kpi__value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.aq-kpi__delta { font-size: 0.85rem; font-weight: 600; }
.aq-kpi__delta.is-up { color: var(--aq-ok); }
.aq-kpi__delta.is-down { color: var(--aq-error); }
.aq-kpi__delta.is-none { color: var(--aq-muted); font-weight: 400; }
.aq-kpi__since { color: var(--aq-muted); font-weight: 400; }
.aq-dash__grid { display: grid; gap: 1rem; margin: 0 0 1.2rem; }
.aq-dash__grid > .aq-panel { margin: 0; min-width: 0; }
.aq-dash__grid--main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.aq-dash__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aq-dash__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aq-dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.aq-dash__head h2 { margin: 0 0 0.2rem; font-size: 1rem; color: var(--aq-muted); font-weight: 600; }
.aq-dash__big { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.aq-dash__side { text-align: right; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; }
.aq-dash__title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.aq-dash__title a { font-size: 0.9rem; }
.aq-panel h2 { font-size: 1.05rem; }
.aq-chart { position: relative; }
.aq-chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.aq-chart__grid { stroke: var(--aq-line); stroke-width: 1; }
.aq-chart__base { stroke: var(--aq-line); stroke-width: 1; }
.aq-chart__tick { fill: var(--aq-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.aq-chart__line { fill: none; stroke: var(--aq-chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.aq-chart__line--then { stroke: var(--aq-chart-then); stroke-dasharray: 5 4; }
.aq-chart__area { fill: var(--aq-chart-fill); stroke: none; }
.aq-chart__dot { fill: var(--aq-chart); stroke: var(--aq-surface); stroke-width: 2; }
.aq-chart__cross { stroke: var(--aq-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.aq-chart__bar { fill: var(--aq-chart); opacity: 0.85; }
.aq-chart__bar.is-now { opacity: 1; }
.aq-chart rect[tabindex]:focus { outline: none; }
.aq-chart rect[tabindex]:focus-visible { stroke: var(--aq-accent); stroke-width: 1; }
.aq-chart__tip { position: absolute; pointer-events: none; z-index: 3; background: var(--aq-surface); color: var(--aq-text); border: 1px solid var(--aq-line); border-radius: 8px; box-shadow: var(--aq-shadow); padding: 0.4rem 0.6rem; font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aq-chart__legend { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.6rem 0 0.4rem; font-size: 0.85rem; color: var(--aq-muted); }
.aq-chart__key { display: inline-flex; align-items: center; gap: 0.4rem; }
.aq-chart__swatch { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--aq-chart); }
.aq-chart__swatch--then { border-top: 2px dashed var(--aq-chart-then); }
.aq-chart__data { margin-top: 0.4rem; font-size: 0.85rem; }
.aq-chart__data summary { cursor: pointer; color: var(--aq-muted); }
.aq-chart__data table { margin-top: 0.4rem; }
.aq-table--tight td, .aq-table--tight th { padding: 0.25rem 0.5rem; }
.aq-nowlist, .aq-recent, .aq-toplist, .aq-meter-list { list-style: none; margin: 0; padding: 0; }
.aq-nowlist li a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--aq-line); color: inherit; text-decoration: none; }
.aq-nowlist li:first-child a { border-top: 0; }
.aq-nowlist li a:hover span:first-child { text-decoration: underline; }
.aq-nowlist li a.is-warn strong { color: var(--aq-warn); }
.aq-nowlist strong { font-variant-numeric: tabular-nums; }
.aq-recent li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 0.6rem; align-items: center; padding: 0.45rem 0; border-top: 1px solid var(--aq-line); }
.aq-recent li:first-child { border-top: 0; }
.aq-recent__time { color: var(--aq-muted); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.aq-toplist li { display: grid; grid-template-columns: 40px 1fr auto; gap: 0.7rem; align-items: center; padding: 0.45rem 0; border-top: 1px solid var(--aq-line); }
.aq-toplist li:first-child { border-top: 0; }
.aq-toplist img, .aq-toplist__ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--aq-surface-2); display: grid; place-items: center; font-weight: 700; color: var(--aq-muted); }
.aq-meter-list li { padding: 0.45rem 0; }
.aq-meter-list__row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.aq-meter { height: 8px; border-radius: 4px; background: var(--aq-surface-2); overflow: hidden; }
.aq-meter i { display: block; height: 100%; background: var(--aq-chart); border-radius: 4px; }
.aq-empty--small { padding: 1rem; font-size: 0.92rem; }
@media (max-width: 1100px) {
	.aq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aq-dash__grid--main, .aq-dash__grid--three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.aq-kpis { gap: 0.6rem; }
	.aq-kpi { padding: 0.8rem; }
	.aq-kpi__value { font-size: 1.25rem; }
	.aq-dash__grid--two { grid-template-columns: minmax(0, 1fr); }
	.aq-dash__side { text-align: left; }
}
.aq-scope { display: inline-flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: center; margin: -0.4rem 0 1rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--aq-info-bg); color: var(--aq-text); font-size: 0.92rem; }

/* 0.18.0: Kitchen – kitchen tickets and kitchens */
.aq-kot-chips { margin-bottom: 1rem; }
.aq-kot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; align-items: start; }
.aq-kot { display: flex; flex-direction: column; background: var(--aq-surface); border: 1px solid var(--aq-line); border-top: 4px solid var(--aq-warn); border-radius: var(--aq-radius); padding: 0.9rem 1rem; min-width: 0; }
.aq-kot.is-ready { border-top-color: var(--aq-accent); }
.aq-kot.is-served { border-top-color: var(--aq-ok); }
.aq-kot.is-cancelled { border-top-color: var(--aq-line); opacity: 0.8; }
.aq-kot__head { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.aq-kot__no { font-size: 1.05rem; }
.aq-kot__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; font-size: 0.85rem; color: var(--aq-muted); text-align: right; }
.aq-kot__sub { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; margin: 0.6rem 0; padding-bottom: 0.6rem; border-bottom: 1px dashed var(--aq-line); font-size: 0.88rem; color: var(--aq-muted); }
.aq-kot__lines { list-style: none; margin: 0 0 0.6rem; padding: 0; background: var(--aq-bg); border-radius: 8px; }
.aq-kot__lines li { padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--aq-line); display: flex; gap: 0.3rem; }
.aq-kot__lines li:last-child { border-bottom: 0; }
.aq-kot__lines li span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.aq-kot__lines small, .aq-kot__lines em { font-size: 0.82rem; color: var(--aq-muted); }
.aq-kot__lines li.is-void span > :first-child { text-decoration: line-through; }
.aq-kot__lines li.is-void { color: var(--aq-muted); }
.aq-kot__lines li.is-ready strong, .aq-kot__lines li.is-served strong { color: var(--aq-ok); }
.aq-kot__foot { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: auto; }
.aq-kitchens { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.aq-kitchen { background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: var(--aq-radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.aq-kitchen.is-off { opacity: 0.7; }
.aq-kitchen__head { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.aq-kitchen__head h2 { margin: 0; font-size: 1.1rem; }
.aq-kitchen__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0; font-size: 0.88rem; color: var(--aq-muted); }
.aq-kitchen__items { border-top: 1px solid var(--aq-line); padding-top: 0.6rem; }
.aq-kitchen__itemshead { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.aq-kitchen__items ul { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.aq-kitchen__items li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.35rem 0.5rem; border-radius: 6px; }
.aq-kitchen__items li:nth-child(odd) { background: var(--aq-bg); }
.aq-kitchen__pick { max-height: 60vh; overflow-y: auto; margin: 0.6rem 0; }
.aq-reasons { display: flex; flex-direction: column; gap: 0.5rem; max-width: 520px; margin-bottom: 0.8rem; }
.aq-reasons input { flex: 1; min-width: 0; }
.aq-kotprint { font-family: "Courier New", Courier, monospace; color: #000; width: 72mm; font-size: 11pt; }
.aq-kotprint h1 { font-size: 16pt; margin: 0 0 2mm; }
.aq-kotprint p { margin: 0 0 1.5mm; }
@media print { #aq-print.aq-print--ticket { page: receipt80; } }
@media (max-width: 600px) {
	.aq-kot-grid, .aq-kitchens { grid-template-columns: minmax(0, 1fr); }
}

/* 0.19.0: Reports and Orders */
.aq-reports { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.aq-rnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 1rem; }
.aq-rnav__link { padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--aq-text); text-decoration: none; font-size: 0.95rem; }
.aq-rnav__link:hover { background: var(--aq-surface); }
.aq-rnav__link.is-active { background: var(--aq-primary); color: #fff; font-weight: 600; }
.aq-rnav__pick { display: none; width: 100%; min-height: 44px; }
.aq-reports__title { margin: 0 0 0.8rem; font-size: 1.3rem; }
.aq-filters { display: flex; flex-wrap: wrap; gap: 0.7rem 0.9rem; align-items: flex-end; background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: var(--aq-radius); padding: 0.9rem 1rem; margin-bottom: 1rem; }
.aq-filters .aq-field { margin: 0; min-width: 140px; }
.aq-filters .aq-inline { display: flex; gap: 0.4rem; align-items: center; }
.aq-filters input[type="time"] { width: 7.2rem; }
.aq-report__period { margin: 0 0 0.6rem; }
.aq-kpis--report { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.aq-kpis--report .aq-kpi__value { font-size: 1.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aq-kpis--report .aq-kpi__value.is-text { font-size: 1.1rem; white-space: normal; }
.aq-rtable td.is-date { white-space: nowrap; }
.aq-toolbar--split { justify-content: space-between; align-items: center; }
.aq-table-wrap--scroll { overflow-x: auto; }
.aq-rtable th.is-num, .aq-rtable td.is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aq-rtable tfoot td { font-weight: 700; background: var(--aq-surface-2); border-top: 2px solid var(--aq-line); }
.aq-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.aq-rbars { display: grid; gap: 0.35rem; }
.aq-rbars__row { display: grid; grid-template-columns: minmax(90px, 200px) minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; font-size: 0.9rem; }
.aq-rbars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-rbars__track { height: 12px; background: var(--aq-bg); border-radius: 6px; overflow: hidden; }
.aq-rbars__bar { display: block; height: 100%; background: var(--aq-accent); border-radius: 6px; }
.aq-rbars__value { font-variant-numeric: tabular-nums; color: var(--aq-muted); }
.aq-rprint { color: #000; font-size: 9.5pt; }
.aq-rprint h1 { font-size: 15pt; margin: 0 0 2mm; }
.aq-rprint table { width: 100%; border-collapse: collapse; margin-top: 3mm; }
.aq-rprint th, .aq-rprint td { border-bottom: 0.2mm solid #999; padding: 1.2mm 1.5mm; text-align: left; }
.aq-rprint .is-num { text-align: right; }
.aq-rprint tfoot td { font-weight: 700; border-top: 0.4mm solid #000; }
.aq-ocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.aq-ocard { display: flex; flex-direction: column; gap: 0.7rem; text-align: left; background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: var(--aq-radius); padding: 0.9rem 1rem; color: var(--aq-text); font: inherit; cursor: pointer; min-width: 0; }
.aq-ocard:hover { border-color: var(--aq-accent); }
.aq-ocard.is-void { opacity: 0.75; }
.aq-ocard__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; }
.aq-ocard__table { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.4rem; border-radius: 10px; background: var(--aq-info-bg); font-weight: 700; }
.aq-ocard.is-open .aq-ocard__table { background: var(--aq-warn-bg); }
.aq-ocard__no { display: flex; flex-direction: column; min-width: 0; }
.aq-ocard__no small, .aq-ocard__bottom small { color: var(--aq-muted); }
.aq-ocard__mid { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.9rem; color: var(--aq-muted); padding-bottom: 0.6rem; border-bottom: 1px dashed var(--aq-line); }
.aq-ocard__bottom { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.aq-ocard__bottom strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.aq-ocard__bottom small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-odetail__amt { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) {
	.aq-reports { grid-template-columns: minmax(0, 1fr); }
	.aq-rnav { display: none; }
	.aq-rnav__pick { display: block; }
}
@media (max-width: 600px) {
	.aq-filters .aq-field { min-width: 0; flex: 1 1 45%; }
	.aq-rbars__row { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) auto; }
	.aq-ocards { grid-template-columns: minmax(0, 1fr); }
	.aq-rtable tfoot { display: table-footer-group; }
}

/* 0.20.0: Expenses and Payments */
.aq-dues { display: flex; flex-direction: column; gap: 0; }
.aq-dues__left { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.aq-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 0.21.0: menus on the till, allergens, sorting */
.aq-menus { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0 0 0.5rem; }
.aq-menutab { flex: none; min-height: 36px; padding: 0.3rem 0.85rem; border-radius: 8px; border: 1px dashed var(--aq-line); background: transparent; color: var(--aq-text); font: inherit; font-size: 0.9rem; cursor: pointer; }
.aq-menutab.is-active { border-style: solid; border-color: var(--aq-accent); background: var(--aq-info-bg); font-weight: 600; }
.aq-allergens { margin: 0 0 0.6rem; padding: 0.5rem 0.7rem; border-radius: 8px; background: var(--aq-warn-bg); color: var(--aq-warn); font-size: 0.92rem; }
.aq-checks--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 0.8rem; }
.aq-sortlist { list-style: none; margin: 0.5rem 0; padding: 0; max-height: 55vh; overflow-y: auto; border: 1px solid var(--aq-line); border-radius: var(--aq-radius); }
.aq-sortlist li { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--aq-line); background: var(--aq-surface); cursor: grab; }
.aq-sortlist li:last-child { border-bottom: 0; }
.aq-sortlist__grip { color: var(--aq-muted); }
.aq-sortlist__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 0.22.0: the order in one place, discount, charges and tips */
.aq-obar { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; padding: 0.5rem 0.9rem; border-bottom: 1px solid var(--aq-line); background: var(--aq-surface-2); font-size: 0.9rem; }
.aq-obar__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.aq-obar__sel { min-height: 34px; padding: 0.2rem 0.5rem; max-width: 11rem; }
.aq-qty--small button { width: 30px; height: 30px; min-height: 30px; }
.aq-cart__btns--order { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.aq-cart__btns--order .aq-btn--pay { grid-column: 1 / -1; }
.aq-pay__extras { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: -0.2rem 0 0.8rem; }
.aq-chip--small { min-height: 36px; min-width: 0; padding: 0.3rem 0.75rem; flex-direction: row; align-items: center; font-size: 0.92rem; }
.aq-pay__base { font-size: 0.88rem; margin-left: auto; }
.aq-charge { border: 1px solid var(--aq-line); border-radius: 8px; padding: 0.5rem 0.6rem; margin-bottom: 0.5rem; }
.aq-charge .aq-row { flex-wrap: wrap; }
.aq-charge .aq-row input[type="text"]:first-child { flex: 2 1 10rem; min-width: 0; }
.aq-charge .aq-row .aq-num { flex: 1 1 5rem; min-width: 0; }
.aq-charge .aq-row select { flex: 0 0 auto; width: auto; }
.aq-charge__more { margin-top: 0.4rem; align-items: center; }

/* 0.23.0: the order board for the guests (a TV in the shop) */
body.is-board { background: #0d1b26; }
.aq-board { min-height: 100vh; display: flex; flex-direction: column; color: #f2f6f9; background: #0d1b26; font-size: clamp(16px, 1.6vw, 28px); }
.aq-board__top { display: flex; align-items: center; gap: 0.8rem; padding: 0.8em 1.2em; background: #13293a; }
.aq-board__top strong { font-size: 1.2em; }
.aq-board__clock { margin-left: auto; font-variant-numeric: tabular-nums; opacity: 0.8; }
.aq-board__cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #22394b; }
.aq-board__col { background: #0d1b26; padding: 1em 1.2em; }
.aq-board__col h2 { margin: 0 0 0.8em; font-size: 1.3em; text-transform: uppercase; letter-spacing: 0.04em; color: #9fb6c6; }
.aq-board__col.is-ready h2 { color: #6fd39c; }
.aq-board__col ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5em, 1fr)); gap: 0.6em; }
.aq-board__col li { display: flex; flex-direction: column; align-items: center; padding: 0.5em 0.3em; border-radius: 12px; background: #17324a; }
.aq-board__col.is-ready li { background: #1d5a3c; animation: aq-board-in 0.6s ease-out; }
.aq-board__col li strong { font-size: 2.4em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.aq-board__col li span { font-size: 0.75em; opacity: 0.85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-board__none { opacity: 0.5; font-size: 2em; margin: 0; }
.aq-board--msg { align-items: center; justify-content: center; text-align: center; padding: 2rem; }
@keyframes aq-board-in { from { transform: scale(0.85); opacity: 0.3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aq-board__col.is-ready li { animation: none; } }
@media (max-width: 600px) { .aq-board__cols { grid-template-columns: 1fr; } }
/* 0.23.0: booking times per weekday */
.aq-week { display: grid; gap: 0.35rem; margin: 0.4rem 0 0.8rem; }
.aq-week__row { display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 8rem) auto minmax(0, 8rem); align-items: center; gap: 0.4rem; }
.aq-week__row input[type="time"] { width: 100%; min-width: 0; }
@media (max-width: 560px) { .aq-week__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .aq-week__day { grid-column: 1 / -1; } }
/* 0.23.0: choose a table for a reservation on a small floor plan */
.aq-resmap { margin: -0.3rem 0 0.9rem; }
.aq-resmap__plan { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--aq-line); border-radius: 10px; background: var(--aq-bg); overflow: hidden; }
.aq-resmap__t { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.1rem; border: 2px solid var(--aq-line); border-radius: 8px; background: var(--aq-surface); color: var(--aq-text); font: inherit; font-size: 0.8rem; cursor: pointer; overflow: hidden; }
.aq-resmap__t small { font-size: 0.68rem; color: var(--aq-muted); white-space: nowrap; }
.aq-resmap__t.is-round { border-radius: 50%; }
.aq-resmap__t.is-small { opacity: 0.55; }
.aq-resmap__t.is-busy { background: var(--aq-line); cursor: not-allowed; opacity: 0.6; }
.aq-resmap__t.is-on { border-color: var(--aq-primary); background: var(--aq-info-bg); box-shadow: 0 0 0 2px var(--aq-primary); }
.aq-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.aq-panel__head h2 { margin: 0; }
.aq-obar__ref { width: 9rem; min-height: 34px; padding: 0.2rem 0.5rem; }
.aq-ocard__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.2rem 0; }
.aq-paybtn--first { border-color: var(--aq-primary); }
.aq-plat input[type="text"]:first-child { flex: 1 1 10rem; min-width: 0; }
.aq-plat .aq-num { flex: 0 0 5rem; width: 5rem; }
/* 0.25.0: short lists on the overview */
.aq-dash__sub { margin: 1rem 0 0.4rem; font-size: 0.95rem; color: var(--aq-muted); }
.aq-minilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.aq-minilist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--aq-line); font-size: 0.92rem; }
.aq-minilist li.is-done { opacity: 0.65; }
.aq-minilist__num { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
