#toasts {
	position: fixed;
	right: 10px;
	top: 5px;
	z-index: 1001;
}
#toasts > * {
	background-color: #000A;
	border-radius: 10px;
	clear: both;
	color: white;
	cursor: zoom-out;
	float: right;
	margin-top: 5px;
	padding: 3px 6px;
}
.modal-box.count {
	max-width: 44rem;
}
.count-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
	gap: .4rem;
}
.count-row {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-variant-numeric: tabular-nums;
}
.count-row span {
	min-width: 3.2rem;
	text-align: right;
	color: var(--muted);
}
.count-row input {
	width: 100%;
	min-height: 40px;
	padding: 0 .5rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--well);
	color: var(--text);
	text-align: right;
}
.count-checks {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: .6rem 0;
}
.count-check {
	padding: .25rem .7rem;
	border-radius: 999px;
	border: 1px solid var(--accent-dark);
	background: color-mix(in srgb, var(--primary) 16%, var(--surface));
	font-size: .85rem;
}
.count-check--off {
	border-color: var(--error);
	background: color-mix(in srgb, var(--error) 18%, var(--surface));
}
.count-result {
	width: 100%;
	border-collapse: collapse;
}
.count-result th,
.count-result td {
	padding: .4rem .5rem;
	border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
	text-align: left;
}
.count-result .r,
.count-result td.r {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.count-result .count-off {
	color: var(--error);
	font-weight: 700;
}
:root {
	--bg: #0e1116;
	--surface: #161b23;
	--text: #eef2f6;
	--muted: #8fa1b3;
	--border: #29313d;
	--primary: #2e9e6b;
	--on-primary: #ffffff;
	--warn: #d9a13c;
	--error: #b3404a;
	--panel: var(--surface);
	--panel-hi: color-mix(in srgb, var(--surface) 88%, white);
	--line: var(--border);
	--accent: var(--primary);
	--accent-hi: color-mix(in srgb, var(--primary) 82%, white);
	--accent-dark: color-mix(in srgb, var(--primary) 70%, black);
	--danger: var(--error);
	--amber: var(--warn);
	--shade: color-mix(in srgb, var(--surface) 62%, black);
	--well: color-mix(in srgb, var(--surface) 74%, black);
	--head: 46px;
	--actions: 72px;
	--tabs: 54px;
}
*,
::before,
::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html,
body {
	height: 100%;
	overflow: hidden;
	overscroll-behavior: none;
}
body {
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.35;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
button,
input {
	font: inherit;
	color: inherit;
}
button {
	touch-action: manipulation;
}
main.pos {
	display: grid;
	grid-template-columns: 352px 1fr;
	grid-template-rows: var(--head) 1fr;
	grid-template-areas: "head head" "order card";
	height: 100vh;
}
.pos-head {
	grid-area: head;
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: 0 .8rem;
	background: var(--shade);
	border-bottom: 1px solid var(--line);
}
.pos-head__station {
	font-weight: 650;
	letter-spacing: .01em;
}
.pos-head__day {
	color: var(--muted);
	font-size: .88rem;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border-left: 1px solid var(--line);
	padding-left: .9rem;
}
.pos-head__clock {
	font-variant-numeric: tabular-nums;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--muted);
}
.pos-head__form {
	display: contents;
}
.pos-order {
	grid-area: order;
	display: grid;
	grid-template-rows: 1fr var(--actions);
	border-right: 1px solid var(--line);
	background: var(--panel);
	min-height: 0;
	min-width: 0;
	overflow: hidden;
}
#bon {
	overflow-y: auto;
	scrollbar-width: none;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
#bon::-webkit-scrollbar {
	display: none;
}
.bon {
	width: 100%;
	border-collapse: collapse;
}
.bon td {
	padding: .45rem .5rem;
	border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
	vertical-align: middle;
}
.bon__qty {
	width: 1%;
	white-space: nowrap;
}
.bon__qty form {
	display: flex;
	align-items: center;
	gap: .2rem;
}
.bon__qty span {
	min-width: 1.7rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}
.bon__title {
	line-height: 1.3;
	cursor: pointer;
}
.bon__amount {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.qty {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-hi);
	color: color-mix(in srgb, var(--text) 55%, var(--muted));
	font-size: 1.05rem;
	cursor: pointer;
}
.qty:active {
	background: var(--line);
	color: var(--text);
}
.bon-child td {
	padding-top: 0;
	border-bottom: 0;
}
.bon__title--child {
	padding-left: 1.6rem;
	color: var(--muted);
	font-size: .84rem;
	cursor: default;
}
.bon-child .bon__amount {
	color: var(--muted);
	font-size: .84rem;
}
.bon__discount {
	display: block;
	color: var(--amber);
	font-size: .78rem;
}
.bon__empty {
	padding: 1.4rem .9rem;
	color: var(--muted);
	font-size: .92rem;
}
.bon-totals {
	margin-top: auto;
	padding: .6rem .7rem .7rem;
	border-top: 1px solid var(--line);
	background: var(--well);
}
.bon-totals__tax {
	display: flex;
	justify-content: space-between;
	font-size: .8rem;
	color: color-mix(in srgb, var(--text) 62%, var(--muted));
	font-variant-numeric: tabular-nums;
	padding: .1rem 0;
}
.bon-totals__sum {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: .4rem;
	padding-top: .5rem;
	border-top: 1px solid var(--line);
	font-size: 1.65rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
}
.pos-actions {
	display: grid;
	grid-template-columns: 1fr 1fr 1.15fr 1.5fr;
	gap: .35rem;
	padding: .4rem;
	border-top: 1px solid var(--line);
	background: var(--well);
}
.pos-actions form {
	display: contents;
}
.pos-actions .btn {
	min-width: 0;
	padding: 0 .45rem;
	font-size: .88rem;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 1rem;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--panel-hi);
	color: var(--text);
	font-size: .92rem;
	font-weight: 550;
	cursor: pointer;
	text-decoration: none;
}
.btn:active {
	background: var(--line);
}
.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-primary);
}
.btn-primary:active {
	background: var(--accent-hi);
}
.btn-slim {
	min-height: 34px;
	padding: 0 .75rem;
	font-size: .84rem;
	color: color-mix(in srgb, var(--text) 55%, var(--muted));
}
.btn-slim:active {
	color: var(--text);
}
.btn-pay {
	background: var(--accent);
	border-color: var(--accent-dark);
	color: var(--on-primary);
	font-size: 1.06rem;
	font-weight: 700;
	letter-spacing: .01em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-pay:active {
	background: var(--accent-hi);
}
.btn-pay:disabled {
	background: var(--panel-hi);
	border-color: var(--line);
	color: var(--muted);
	box-shadow: none;
}
.pos-card {
	grid-area: card;
	display: grid;
	grid-template-rows: var(--tabs) 1fr;
	min-height: 0;
}
.pos-tabs {
	display: flex;
	align-items: stretch;
	gap: .25rem;
	padding: .4rem .5rem 0;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--line);
	background: var(--shade);
}
.pos-tabs::-webkit-scrollbar {
	display: none;
}
.pos-tab {
	flex: 0 0 auto;
	padding: 0 .85rem;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 8px 8px 0 0;
	background: transparent;
	color: var(--muted);
	font-size: .9rem;
	font-weight: 550;
	cursor: pointer;
	white-space: nowrap;
}
.pos-tab:active {
	color: var(--text);
}
.pos-tab.active {
	color: var(--text);
	background: var(--panel);
	border-bottom-color: var(--tab, #{var(--accent)});
}
.pos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	grid-auto-rows: 96px;
	gap: .45rem;
	padding: .55rem;
	overflow-y: auto;
	scrollbar-width: none;
	align-content: start;
	min-height: 0;
	background: var(--panel);
}
.pos-grid::-webkit-scrollbar {
	display: none;
}
.pos-btn__form {
	display: contents;
}
.pos-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .12rem;
	padding: .5rem .55rem .45rem .7rem;
	border: 1px solid color-mix(in srgb, var(--btn, #{var(--accent)}) 45%, var(--border));
	border-radius: 10px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--btn, #{var(--accent)}) 30%, var(--surface)), color-mix(in srgb, var(--btn, #{var(--accent)}) 13%, var(--surface)));
	cursor: pointer;
	text-align: left;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.pos-btn:active {
	background: color-mix(in srgb, var(--btn, #{var(--accent)}) 45%, var(--surface));
}
.pos-btn::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--btn, #{var(--accent)});
	opacity: .85;
}
.pos-btn__parent {
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--text) 55%, var(--muted));
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pos-btn__label {
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.22;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.pos-btn__price {
	margin-top: auto;
	align-self: flex-end;
	font-size: .82rem;
	font-weight: 600;
	color: var(--text);
	font-variant-numeric: tabular-nums;
	background: color-mix(in srgb, var(--text) 14%, transparent);
	padding: .05rem .45rem;
	border-radius: 999px;
}
.pos-btn__img {
	position: absolute;
	left: .55rem;
	bottom: .3rem;
	width: 44px;
	height: 44px;
	object-fit: contain;
	pointer-events: none;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.theme-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .5rem;
}
.theme-pick {
	min-height: 48px;
	padding: 0 .6rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel-hi);
	color: var(--text);
	font-size: .9rem;
	font-weight: 550;
	cursor: pointer;
}
.theme-pick.active {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-primary);
}
.grid-empty {
	grid-column: 1 / -1;
	padding: 1.5rem;
	color: var(--muted);
}
.pos-gate {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	padding: 2rem;
	background: var(--bg);
}
.gate-box {
	width: 100%;
	max-width: 26rem;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 1.8rem;
	display: grid;
	gap: 1rem;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.gate-box h1 {
	font-size: 1.35rem;
	letter-spacing: -.01em;
}
.gate-box p {
	color: var(--muted);
	font-size: .9rem;
}
.gate-actions {
	display: grid;
	gap: .5rem;
}
.gate-box form {
	display: grid;
	gap: .8rem;
}
.gate-box label {
	display: grid;
	gap: .35rem;
	font-size: .85rem;
	color: var(--muted);
}
.gate-box input {
	min-height: 48px;
	padding: 0 .75rem;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--well);
}
.gate-error {
	padding: .6rem .75rem;
	border-radius: 9px;
	background: color-mix(in srgb, var(--error) 30%, black);
	border: 1px solid color-mix(in srgb, var(--error) 55%, black);
	color: color-mix(in srgb, var(--error) 35%, white);
	font-size: .85rem;
}
#modal {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--panel);
	color: var(--text);
	padding: 0;
	max-width: 27rem;
	width: calc(100% - 2rem);
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	scrollbar-width: none;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
#modal::-webkit-scrollbar {
	display: none;
}
#modal::backdrop {
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(2px);
}
.modal-box {
	padding: 1.3rem;
	display: grid;
	gap: .95rem;
}
.modal-box h2 {
	font-size: 1.2rem;
	letter-spacing: -.01em;
}
.modal-sub {
	color: var(--muted);
	font-size: .88rem;
	margin-top: -.7rem;
}
.modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5rem;
}
.modal-actions form {
	display: contents;
}
.modal-box input[type="text"] {
	min-height: 46px;
	padding: 0 .75rem;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--well);
}
.modal-box label {
	display: grid;
	gap: .3rem;
	font-size: .85rem;
	color: var(--muted);
}
.kasopmaak {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .3rem .8rem;
	font-variant-numeric: tabular-nums;
	padding: .7rem .8rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--well);
}
.kasopmaak dt {
	color: var(--muted);
}
.kasopmaak dd {
	text-align: right;
	font-weight: 600;
}
.opt-group {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: .7rem;
	display: grid;
	gap: .55rem;
}
.opt-group legend {
	padding: 0 .4rem;
	color: var(--muted);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.opt-row {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}
.opt-row form {
	display: contents;
}
.opt-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem;
}
.opt-pill {
	position: relative;
}
.opt-pill input {
	position: absolute;
	opacity: 0;
	inset: 0;
}
.opt-pill span {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 .9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--panel-hi);
	font-size: .9rem;
	cursor: pointer;
}
.opt-pill input:checked + span {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-primary);
	font-weight: 600;
}
.opt-name {
	min-height: 46px;
	padding: 0 1rem;
	border: 1px solid var(--line);
	border-left: 4px solid var(--sport, #{var(--line)});
	border-radius: 9px;
	background: var(--panel-hi);
	font-weight: 550;
	cursor: pointer;
}
.opt-name:active {
	background: var(--line);
}
.pay-open {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 1.05rem;
}
.pay-open strong {
	font-size: 2rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
}
.pay-note {
	color: var(--muted);
	font-size: .82rem;
}
.pay-input {
	min-height: 56px;
	padding: 0 .85rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--well);
	font-size: 1.6rem;
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
	width: 100%;
}
.pay-quick {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .45rem;
}
.pay-pad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .45rem;
}
.pad {
	min-height: 54px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel-hi);
	font-size: 1.25rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}
.pad:active {
	background: var(--line);
}
.pad-wide {
	grid-column: 1 / -1;
	font-size: .95rem;
	color: var(--muted);
}
.pay-methods {
	grid-template-columns: 1fr 1fr;
}
.done-change {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: .9rem 1rem;
	border: 1px solid var(--accent-dark);
	border-radius: 10px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 22%, var(--surface)), color-mix(in srgb, var(--primary) 10%, var(--surface)));
}
.done-change strong {
	font-size: 2.4rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.receipt {
	font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
	font-size: .8rem;
	line-height: 1.5;
	background: #fbfaf3;
	color: #17181a;
	padding: 1.1rem .9rem;
	border-radius: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.tab-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .45rem;
}
.tab-list form {
	display: contents;
}
.tab-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .05rem .55rem;
	padding: .6rem .75rem .55rem .85rem;
	border: 1px solid var(--line);
	border-left: 4px solid var(--sport, #{var(--line)});
	border-radius: 10px;
	background: var(--panel-hi);
	cursor: pointer;
	text-align: left;
}
.tab-card:active {
	background: var(--line);
}
.tab-card__name {
	grid-column: 1;
	grid-row: 1;
	font-weight: 650;
}
.tab-card__meta {
	grid-column: 1;
	font-size: .74rem;
	color: var(--muted);
}
.tab-card__amount {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	font-size: 1.05rem;
}
.tab-rounds {
	width: 100%;
	border-collapse: collapse;
	font-size: .86rem;
}
.tab-rounds td {
	padding: .35rem .4rem;
	border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
	vertical-align: top;
	font-variant-numeric: tabular-nums;
}
.tab-rounds__lines {
	width: 100%;
	color: var(--muted);
}
dialog {
	position: fixed;
	inset: 0;
	margin: auto;
	height: fit-content;
}
dialog.phlo-dialog {
	width: min(420px, calc(100vw - 4rem));
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--panel);
	color: var(--text);
	padding: 1.4rem;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
}
dialog.phlo-dialog::backdrop {
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(2px);
}
.phlo-dialog__message {
	margin: 0 0 1.1rem;
	font-size: 1.05rem;
	line-height: 1.45;
	overflow-wrap: break-word;
}
.phlo-dialog__input {
	width: 100%;
	font: inherit;
	padding: .6rem .7rem;
	margin-bottom: 1.1rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--bg);
	color: var(--text);
}
.phlo-dialog__actions {
	display: flex;
	gap: .6rem;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	list-style: none;
}
.phlo-dialog__actions button {
	font: inherit;
	min-width: 96px;
	min-height: 44px;
	padding: .5rem 1rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--panel-hi);
	color: var(--text);
	cursor: pointer;
}
.phlo-dialog__actions button[value="1"] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-primary);
	font-weight: 600;
}
.pos-btn__was {
	align-self: flex-end;
	font-size: .7rem;
	color: var(--muted);
	text-decoration: line-through;
	font-variant-numeric: tabular-nums;
}
.pay-extra {
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.display {
	display: grid;
	grid-template-rows: 64px 1fr;
	height: 100vh;
	background: var(--bg);
}
.display-head {
	display: flex;
	align-items: center;
	padding: 0 1.4rem;
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}
.display-head__name {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: .02em;
}
#display-bon {
	overflow-y: auto;
	scrollbar-width: none;
	padding: 1rem 1.4rem;
	display: flex;
	flex-direction: column;
}
.display-welcome {
	margin: auto;
	font-size: 2.6rem;
	font-weight: 700;
	color: var(--muted);
}
.display-lines {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.35rem;
}
.display-lines td {
	padding: .5rem .4rem;
	border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
	vertical-align: top;
}
.display-lines__qty {
	width: 3.5rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.display-lines__amount {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.display-benefit {
	display: flex;
	justify-content: space-between;
	margin-top: .9rem;
	padding: .6rem .9rem;
	border: 1px solid var(--accent-dark);
	border-radius: 10px;
	background: color-mix(in srgb, var(--primary) 14%, var(--surface));
	font-size: 1.25rem;
}
.display-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: .9rem;
	padding-top: .9rem;
	border-top: 2px solid var(--border);
	font-size: 1.6rem;
}
.display-total strong {
	font-size: 2.6rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.display-done {
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
}
.display-done .display-total {
	border-top: 0;
	gap: 1.4rem;
}
