/*
 * Just Vege Control – panel styles.
 * Brand: charcoal #151719, lime green #84DC31, silver #C0C0C0, off-white #F7F8F5.
 * Made for a kitchen tablet first: big touch targets, high contrast, nothing that moves
 * unless it tells you something.
 */

@font-face {
	font-family: "Gabarito";
	font-style: normal;
	font-display: swap;
	font-weight: 400 900;
	src: url("fonts/gabarito-latin.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Gabarito";
	font-style: normal;
	font-display: swap;
	font-weight: 400 900;
	src: url("fonts/gabarito-latin-ext.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/hanken-grotesk-latin.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/hanken-grotesk-latin-ext.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ink: #151719;
	--ink-2: #24272b;
	--ink-3: #3a3e44;
	--green: #84dc31;
	--green-2: #72c823;
	--green-ink: #2f6a0a;
	--green-soft: #eef8e3;
	--silver: #c0c0c0;
	--bg: #f7f8f5;
	--surface: #fff;
	--line: #e2e4de;
	--line-2: #cfd2cb;
	--text: #151719;
	--muted: #5b6168;
	--amber: #9a5b00;
	--amber-bg: #fff3dc;
	--amber-line: #f2b544;
	--red: #b42318;
	--red-2: #9a1d14;
	--red-bg: #fdecea;
	--blue: #1d4f9c;
	--blue-bg: #e9f0fb;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(21, 23, 25, 0.06), 0 4px 14px rgba(21, 23, 25, 0.06);
	--top-h: 68px;
	--font-head: "Gabarito", system-ui, sans-serif;
	--font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.45 var(--font-body);
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

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

:focus-visible {
	outline: 3px solid var(--green);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.ctl-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ctl-skip {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	background: var(--green);
	color: var(--ink);
	font-weight: 700;
}

.ctl-skip:focus {
	top: 10px;
}

/* ------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------ */

.ctl-top {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: var(--top-h);
	padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
	background: var(--ink);
	color: #fff;
}

.ctl-top__brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.ctl-top__brand img {
	display: block;
	width: auto;
	height: 46px;
}

.ctl-top__brand span {
	color: var(--green);
	font: 700 15px/1 var(--font-head);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ctl-nav {
	display: flex;
	flex: 1;
	gap: 6px;
	min-width: 0;
}

.ctl-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	color: #e8e9e6;
	font: 600 17px/1 var(--font-head);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 160ms ease, color 160ms ease;
}

.ctl-nav__link:hover {
	background: var(--ink-3);
	color: #fff;
}

.ctl-nav__link.is-active {
	background: var(--green);
	color: var(--ink);
}

.ctl-nav__badge {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--amber-line);
	color: var(--ink);
	font: 800 14px/1 var(--font-body);
}

.ctl-nav__link.is-active .ctl-nav__badge {
	background: var(--ink);
	color: var(--green);
}

.ctl-top__tools {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.ctl-tool {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 16px;
	border: 2px solid var(--ink-3);
	border-radius: 999px;
	background: transparent;
	color: #e8e9e6;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}

.ctl-tool::-webkit-details-marker {
	display: none;
}

.ctl-tool:hover {
	border-color: var(--silver);
}

.ctl-tool:active {
	transform: scale(0.97);
}

.ctl-tool.is-on {
	border-color: var(--green);
	color: var(--green);
}

.ctl-tool.is-blocked {
	border-color: var(--amber-line);
	background: var(--amber-line);
	color: var(--ink);
}

.ctl-user {
	position: relative;
}

.ctl-user__avatar {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--green);
	color: var(--ink);
	font-weight: 800;
	font-size: 14px;
}

.ctl-user__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	display: grid;
	min-width: 220px;
	padding: 6px;
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transform-origin: top right;
	animation: ctl-pop 160ms var(--ease-out);
}

.ctl-user__menu a {
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
}

.ctl-user__menu a:hover {
	background: var(--bg);
}

@keyframes ctl-pop {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}

/* ------------------------------------------------------------------
 * Layout, titles, shared pieces
 * ------------------------------------------------------------------ */

.ctl-main {
	padding: 22px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
	outline: 0;
}

.ctl-page {
	max-width: 1100px;
	margin: 0 auto;
}

.ctl-page__bar,
.ctl-board__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-bottom: 14px;
}

.ctl-title {
	margin: 0;
	font: 800 30px/1.1 var(--font-head);
	letter-spacing: -0.01em;
}

.ctl-page__lead {
	max-width: 70ch;
	margin: 0 0 20px;
	color: var(--muted);
}

.ctl-loading,
.ctl-muted {
	color: var(--muted);
}

.ctl-loading {
	padding: 40px 0;
	text-align: center;
}

.ctl-empty {
	padding: 36px 20px;
	border: 2px dashed var(--line-2);
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
}

.ctl-empty--error {
	border-color: var(--red);
	background: var(--red-bg);
	color: var(--red-2);
}

.ctl-count {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 30px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font: 800 15px/1 var(--font-body);
}

.ctl-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 28px;
	padding: 0 11px;
	border-radius: 999px;
	background: #eceee9;
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.ctl-chip .ctl-icon {
	width: 16px;
	height: 16px;
}

.ctl-chip--pickup {
	background: var(--green-soft);
	color: var(--green-ink);
}

.ctl-chip--delivery {
	background: var(--blue-bg);
	color: var(--blue);
}

.ctl-chip--catering {
	background: var(--ink);
	color: var(--green);
}

.ctl-chip--extra {
	background: var(--amber-bg);
	color: var(--amber);
}

.ctl-chip--stage-new {
	background: var(--amber-line);
	color: var(--ink);
}

.ctl-chip--stage-accepted {
	background: var(--green);
	color: var(--ink);
}

.ctl-chip--stage-ready {
	background: var(--ink);
	color: #fff;
}

.ctl-chip--stage-done,
.ctl-chip--muted {
	background: #eceee9;
	color: var(--muted);
}

.ctl-chip--stage-closed {
	background: var(--red-bg);
	color: var(--red-2);
}

.ctl-chip--stage-waiting {
	background: var(--blue-bg);
	color: var(--blue);
}

.ctl-pay--waiting,
.ctl-pay--unpaid {
	color: var(--amber);
	font-weight: 700;
}

.ctl-pay--refunded {
	color: var(--red-2);
}

/* ------------------------------------------------------------------
 * Buttons and form controls
 * ------------------------------------------------------------------ */

.ctl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font: 700 16px/1.15 var(--font-body);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}

.ctl-btn:active:not(:disabled) {
	transform: scale(0.97);
}

.ctl-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ctl-btn--primary {
	background: var(--green);
	color: var(--ink);
}

.ctl-btn--primary:hover:not(:disabled) {
	background: var(--green-2);
}

.ctl-btn--secondary {
	background: var(--ink);
	color: #fff;
}

.ctl-btn--secondary:hover:not(:disabled) {
	background: var(--ink-3);
}

.ctl-btn--ghost {
	border-color: var(--line-2);
	background: transparent;
}

.ctl-btn--ghost:hover:not(:disabled) {
	border-color: var(--ink);
}

.ctl-btn--danger {
	background: var(--red);
	color: #fff;
}

.ctl-btn--danger:hover:not(:disabled) {
	background: var(--red-2);
}

.ctl-btn--danger-ghost {
	border-color: #e7b7b2;
	background: transparent;
	color: var(--red);
}

.ctl-btn--danger-ghost:hover:not(:disabled) {
	border-color: var(--red);
	background: var(--red-bg);
}

.ctl-btn--pick {
	min-height: 42px;
	padding: 0 14px;
	border-color: var(--line-2);
	font-size: 15px;
}

.ctl-btn--pick.is-on {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--green);
}

.ctl-btn--lg {
	min-height: 56px;
	padding: 0 26px;
	font-size: 17px;
}

.ctl-btn--block {
	width: 100%;
}

.ctl-btn.is-busy {
	cursor: progress;
}

.ctl-btn.is-busy::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: ctl-spin 600ms linear infinite;
}

@keyframes ctl-spin {
	to {
		transform: rotate(360deg);
	}
}

.ctl-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.ctl-iconbtn:hover {
	background: var(--bg);
	color: var(--red);
}

.ctl-field {
	display: grid;
	gap: 6px;
	margin: 0 0 16px;
}

.ctl-field__label {
	font-weight: 700;
}

.ctl-field__help {
	color: var(--muted);
	font-size: 14px;
}

.ctl-input {
	width: 100%;
	min-height: 50px;
	padding: 11px 14px;
	border: 2px solid var(--line-2);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 17px;
	transition: border-color 160ms ease;
}

.ctl-input:hover {
	border-color: var(--silver);
}

.ctl-input:focus {
	border-color: var(--ink);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(132, 220, 49, 0.55);
}

textarea.ctl-input {
	min-height: 0;
	resize: vertical;
}

.ctl-input--time {
	width: 140px;
	font-weight: 700;
}

.ctl-input--money {
	max-width: 200px;
	font-weight: 700;
}

.ctl-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 14px;
	font-weight: 600;
	cursor: pointer;
}

.ctl-check input {
	flex: none;
	width: 24px;
	height: 24px;
	margin: 0;
	accent-color: var(--ink);
}

.ctl-check small {
	display: block;
	color: var(--muted);
	font-weight: 400;
}

.ctl-radios .ctl-check {
	margin-bottom: 8px;
}

.ctl-eta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ctl-picks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ctl-callout {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	background: var(--bg);
	border: 1px solid var(--line);
}

.ctl-callout--warn {
	border-color: var(--amber-line);
	background: var(--amber-bg);
	font-weight: 600;
}

.ctl-callout--note {
	border: 2px solid var(--amber-line);
	background: var(--amber-bg);
}

.ctl-callout--note h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font: 700 15px/1.2 var(--font-body);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ctl-callout--note p {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	white-space: pre-line;
}

.ctl-inline-error,
.ctl-dialog__error {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	background: var(--red-bg);
	color: var(--red-2);
	font-weight: 600;
}

/* ------------------------------------------------------------------
 * Board
 * ------------------------------------------------------------------ */

.ctl-board__updated {
	margin: 0 0 0 auto;
	color: var(--muted);
	font-size: 14px;
}

.ctl-board__tabs {
	display: none;
}

.ctl-board__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.ctl-col {
	min-height: 60vh;
	padding: 12px;
	border-radius: 18px;
	background: #eef0eb;
}

.ctl-col--new {
	background: #fbf1df;
}

.ctl-col__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 2px 4px 12px;
}

.ctl-col__head h2 {
	margin: 0;
	font: 800 21px/1.1 var(--font-head);
}

.ctl-col--new .ctl-count {
	background: var(--amber-line);
	color: var(--ink);
}

.ctl-col--accepted .ctl-count {
	background: var(--green);
	color: var(--ink);
}

.ctl-col__list {
	display: grid;
	gap: 12px;
}

.ctl-col__empty {
	margin: 0;
	padding: 28px 10px;
	color: var(--muted);
	text-align: center;
}

.ctl-card {
	position: relative;
	padding: 14px 16px 14px 20px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.ctl-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	background: var(--line-2);
}

.ctl-card--new::before {
	background: var(--amber-line);
}

.ctl-card--accepted::before {
	background: var(--green);
}

.ctl-card--ready::before {
	background: var(--ink);
}

.ctl-card--new {
	border-color: var(--amber-line);
}

.ctl-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 10px;
}

.ctl-card__link {
	text-decoration: none;
}

/* The whole card opens the order; its buttons stay clickable on top. */
.ctl-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ctl-card__link:focus-visible {
	outline: 0;
}

.ctl-card__link:focus-visible::after {
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 3px var(--green);
}

.ctl-card:hover {
	border-color: var(--line-2);
}

.ctl-card__num {
	font: 800 24px/1 var(--font-head);
}

.ctl-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.ctl-card__when {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 4px 8px;
	margin: 10px 0 2px;
	font-size: 18px;
	font-weight: 700;
}

.ctl-card__when.is-asap {
	color: var(--amber);
}

.ctl-card__eta {
	grid-column: 2;
	justify-self: start;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--green-soft);
	color: var(--green-ink);
	font-size: 14px;
}

.ctl-card__who {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0 0 8px;
	color: var(--muted);
}

.ctl-card__guests {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--ink);
	font-weight: 700;
}

.ctl-card__items {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 16px;
	font-weight: 600;
}

.ctl-card__items li {
	padding: 3px 0;
	border-top: 1px solid var(--line);
}

.ctl-card__items li:first-child {
	border-top: 0;
}

.ctl-card__more {
	color: var(--muted);
	font-weight: 500;
}

.ctl-card__note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	background: var(--amber-bg);
	color: var(--amber);
	font-size: 14px;
	font-weight: 700;
}

.ctl-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}

.ctl-card__pay,
.ctl-card__age {
	display: grid;
	font-size: 14px;
	line-height: 1.3;
}

.ctl-card__pay strong {
	font-size: 17px;
}

.ctl-card__paylabel,
.ctl-card__age {
	color: var(--muted);
}

.ctl-card__action {
	position: relative;
	z-index: 1;
	margin-left: auto;
}

.ctl-card__action .ctl-btn {
	min-height: 52px;
	padding: 0 24px;
	font-size: 17px;
}

/* ------------------------------------------------------------------
 * Lists (catering, all orders, quotes)
 * ------------------------------------------------------------------ */

.ctl-day {
	margin-bottom: 26px;
}

.ctl-day__title {
	margin: 0 0 10px;
	font: 800 20px/1.2 var(--font-head);
}

.ctl-rows {
	display: grid;
	gap: 8px;
}

.ctl-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto auto;
	align-items: center;
	gap: 10px 16px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.ctl-row:hover {
	border-color: var(--line-2);
}

.ctl-row__link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	text-decoration: none;
}

a.ctl-row__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

a.ctl-row__link:focus-visible {
	outline: 0;
}

a.ctl-row__link:focus-visible::after {
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 3px var(--green);
}

.ctl-row__num {
	flex: none;
	min-width: 64px;
	font: 800 19px/1 var(--font-head);
}

.ctl-row__main {
	display: grid;
	min-width: 0;
}

.ctl-row__main span {
	overflow: hidden;
	color: var(--muted);
	font-size: 15px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ctl-row__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 5px;
}

.ctl-row__pay {
	display: grid;
	min-width: 120px;
	font-size: 14px;
	text-align: right;
}

.ctl-row__pay span {
	color: var(--muted);
}

.ctl-row__action {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 8px;
}

.ctl-row--quote.is-needs {
	border-color: var(--amber-line);
	background: #fffbf3;
}

.ctl-row--quote.is-closed {
	opacity: 0.75;
}

.ctl-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	position: relative;
}

.ctl-search .ctl-input {
	padding-left: 46px;
}

.ctl-search__icon {
	position: absolute;
	left: 16px;
	color: var(--muted);
	pointer-events: none;
}

.ctl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.ctl-filter {
	min-height: 42px;
	padding: 0 16px;
	border: 2px solid var(--line-2);
	border-radius: 999px;
	background: transparent;
	font-weight: 700;
	cursor: pointer;
}

.ctl-filter.is-on {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.ctl-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
}

/* ------------------------------------------------------------------
 * One order
 * ------------------------------------------------------------------ */

.ctl-detail {
	max-width: 1280px;
	margin: 0 auto;
}

.ctl-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	margin-bottom: 6px;
	color: var(--muted);
	font-weight: 700;
	text-decoration: none;
}

.ctl-back:hover {
	color: var(--ink);
}

.ctl-detail__head {
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}

.ctl-detail__titles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.ctl-detail__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.ctl-detail__when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
	font-size: 19px;
}

.ctl-detail__when small {
	color: var(--muted);
	font-size: 15px;
}

.ctl-detail__when span {
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--green-soft);
	color: var(--green-ink);
	font-size: 15px;
	font-weight: 700;
}

.ctl-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
	gap: 18px;
	align-items: start;
}

.ctl-detail__main,
.ctl-detail__side {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.ctl-detail__side {
	position: sticky;
	top: calc(var(--top-h) + 16px);
}

.ctl-panel {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.ctl-panel__title {
	margin: 0 0 12px;
	font: 800 18px/1.2 var(--font-head);
}

.ctl-panel--actions {
	border: 2px solid var(--ink);
}

.ctl-actions {
	display: grid;
	gap: 10px;
}

.ctl-actions--more {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.ctl-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 16px 0 0;
}

.ctl-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	font-weight: 700;
}

.ctl-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ctl-line {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.ctl-line:first-child {
	border-top: 0;
	padding-top: 0;
}

.ctl-line__qty {
	min-width: 44px;
	font: 800 22px/1.1 var(--font-head);
}

.ctl-line__main {
	display: grid;
	gap: 2px;
}

.ctl-line__main strong {
	font-size: 18px;
}

.ctl-line__meta {
	color: var(--muted);
}

.ctl-line__refunded {
	color: var(--red-2);
	font-weight: 700;
}

.ctl-line__total {
	display: grid;
	justify-items: end;
	font-weight: 700;
	white-space: nowrap;
}

.ctl-line__total s {
	color: var(--muted);
	font-weight: 500;
}

.ctl-line.is-removed .ctl-line__main strong,
.ctl-line.is-removed .ctl-line__qty {
	color: var(--muted);
	text-decoration: line-through;
}

.ctl-lines--edit .ctl-line {
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
}

.ctl-line.is-changed {
	margin: 0 -10px;
	padding-right: 10px;
	padding-left: 10px;
	border-radius: var(--radius-sm);
	background: var(--amber-bg);
}

.ctl-line.is-added {
	margin: 0 -10px 6px;
	padding: 10px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--green-soft);
}

.ctl-dl {
	display: grid;
	gap: 0;
	margin: 0;
}

.ctl-dl > div {
	display: grid;
	grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid var(--line);
}

.ctl-dl > div:first-child {
	border-top: 0;
	padding-top: 0;
}

.ctl-dl dt {
	color: var(--muted);
}

.ctl-dl dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.ctl-snap {
	margin-bottom: 12px;
}

.ctl-snap__title {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ctl-snap ul {
	margin: 0;
	padding-left: 20px;
	font-size: 17px;
	font-weight: 600;
}

.ctl-refunds {
	margin: 12px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.ctl-refunds li {
	margin-bottom: 8px;
}

.ctl-refunds small {
	display: block;
	color: var(--muted);
}

.ctl-noteform {
	display: grid;
	gap: 10px;
	margin-bottom: 16px;
}

.ctl-noteform .ctl-check {
	margin: 0;
}

.ctl-noteform .ctl-btn {
	justify-self: start;
}

.ctl-notes {
	display: grid;
	gap: 8px;
	max-height: 420px;
	margin: 0;
	padding: 0;
	overflow: auto;
	list-style: none;
}

.ctl-note {
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	background: var(--bg);
}

.ctl-note.is-customer {
	background: var(--blue-bg);
}

.ctl-note__text {
	margin: 0 0 4px;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.ctl-note__meta {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

/* Changing dishes */

.ctl-edit .ctl-panel {
	margin-bottom: 16px;
}

.ctl-edit__foot {
	position: sticky;
	bottom: 0;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin: 0 -16px;
	padding: 14px 16px max(14px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	background: rgba(247, 248, 245, 0.96);
}

.ctl-stepper {
	display: inline-flex;
	align-items: center;
	border: 2px solid var(--line-2);
	border-radius: 999px;
	background: var(--surface);
}

.ctl-stepper__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

.ctl-stepper__btn:hover {
	background: var(--bg);
}

.ctl-stepper__btn:active {
	transform: scale(0.94);
}

.ctl-stepper__value {
	min-width: 34px;
	font: 800 20px/1 var(--font-head);
	text-align: center;
}

.ctl-plan {
	margin: 0 0 16px;
	padding-left: 20px;
	font-size: 17px;
}

.ctl-plan li {
	margin-bottom: 4px;
}

.ctl-picker {
	display: grid;
	gap: 6px;
	max-height: 38vh;
	margin: 12px 0;
	overflow: auto;
}

.ctl-picker__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 54px;
	padding: 8px 14px;
	border: 2px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	text-align: left;
	cursor: pointer;
}

.ctl-picker__item span {
	display: grid;
}

.ctl-picker__item small {
	color: var(--muted);
}

.ctl-picker__item.is-on {
	border-color: var(--ink);
	background: var(--green-soft);
}

.ctl-picker__item:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ctl-picker__price {
	flex: none;
	font-weight: 700;
}

.ctl-picker__name {
	margin: 4px 0 12px;
	font: 800 19px/1.2 var(--font-head);
}

.ctl-optgroup {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.ctl-optgroup legend {
	margin-bottom: 8px;
	font-weight: 800;
}

.ctl-optgroup legend small {
	color: var(--muted);
	font-weight: 500;
}

/* ------------------------------------------------------------------
 * Dialog and toast
 * ------------------------------------------------------------------ */

.ctl-dialog {
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.ctl-dialog--wide {
	width: min(760px, calc(100vw - 24px));
}

.ctl-dialog[open] {
	animation: ctl-dialog-in 200ms var(--ease-out);
}

.ctl-dialog::backdrop {
	background: rgba(21, 23, 25, 0.6);
}

@keyframes ctl-dialog-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}

.ctl-dialog__inner {
	display: flex;
	flex-direction: column;
	max-height: calc(100dvh - 24px);
}

.ctl-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 6px 22px;
}

.ctl-dialog__title {
	margin: 0;
	font: 800 23px/1.2 var(--font-head);
}

.ctl-dialog__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--bg);
	cursor: pointer;
}

.ctl-dialog__body {
	padding: 10px 22px 6px;
	overflow: auto;
}

.ctl-dialog__intro {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 17px;
}

.ctl-dialog__foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 22px max(18px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
}

.ctl-toast {
	position: fixed;
	left: 50%;
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 50;
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100vw - 24px);
	pointer-events: none;
}

.ctl-toast__item {
	padding: 14px 20px;
	border-radius: 14px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

@starting-style {
	.ctl-toast__item {
		opacity: 0;
		transform: translateY(12px);
	}
}

.ctl-toast__item.is-out {
	opacity: 0;
	transform: translateY(12px);
}

.ctl-toast__item.is-ok {
	border-left: 6px solid var(--green);
}

.ctl-toast__item.is-new {
	background: var(--amber-line);
	color: var(--ink);
	font-size: 18px;
}

.ctl-toast__item.is-error {
	background: var(--red);
}

/* ------------------------------------------------------------------
 * Sign-in page
 * ------------------------------------------------------------------ */

.ctl-login {
	display: grid;
	min-height: 100vh;
	min-height: 100dvh;
	place-items: center;
	padding: 24px 16px;
	background: var(--ink);
}

.ctl-login__box {
	width: min(420px, 100%);
	padding: 32px 28px;
	border-radius: 22px;
	background: var(--surface);
	text-align: center;
}

.ctl-login__logo {
	display: block;
	width: 120px;
	height: auto;
	margin: -2px auto 10px;
	padding: 12px;
	border-radius: 16px;
	background: var(--ink);
	box-sizing: content-box;
}

.ctl-login__title {
	margin: 0 0 22px;
	font: 800 26px/1.2 var(--font-head);
}

.ctl-login__form {
	text-align: left;
}

.ctl-login__msg {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	background: var(--red-bg);
	color: var(--red-2);
	font-weight: 600;
	text-align: left;
}

.ctl-login__msg.is-info {
	background: var(--amber-bg);
	color: var(--amber);
}

.ctl-login__help {
	margin: 18px 0 0;
}

.ctl-login__help a {
	color: var(--muted);
	font-weight: 600;
}

/* ------------------------------------------------------------------
 * Smaller screens
 * ------------------------------------------------------------------ */

@media (max-width: 1100px) {
	.ctl-tool__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.ctl-tool {
		padding: 0 12px;
	}

	/* One column: what to do first, then the dishes, then customer, payment and notes. */
	.ctl-detail__grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.ctl-detail__side {
		display: contents;
	}

	.ctl-detail__side > .ctl-panel {
		order: 1;
	}

	.ctl-detail__side > .ctl-panel--actions {
		order: -1;
	}
}

@media (max-width: 1000px) {
	.ctl-board__tabs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		margin-bottom: 12px;
		padding: 5px;
		border-radius: 999px;
		background: #e6e8e2;
	}

	.ctl-board__tab {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 50px;
		padding: 0 10px;
		border: 0;
		border-radius: 999px;
		background: transparent;
		font: 700 16px/1 var(--font-head);
		cursor: pointer;
	}

	.ctl-board__tab .ctl-count {
		min-width: 26px;
		height: 26px;
		font-size: 14px;
	}

	.ctl-board__tab.is-on {
		background: var(--surface);
		box-shadow: var(--shadow);
	}

	.ctl-board__tab--new .ctl-count {
		background: var(--amber-line);
		color: var(--ink);
	}

	.ctl-board__cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.ctl-col {
		display: none;
		min-height: 0;
		padding: 0;
		background: transparent;
	}

	.ctl-col.is-on {
		display: block;
	}

	.ctl-col__head {
		display: none;
	}

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

	.ctl-row__chips {
		grid-column: 1;
		justify-content: flex-start;
	}

	.ctl-row__pay {
		grid-row: 1;
		grid-column: 2;
	}

	.ctl-row__action {
		grid-column: 2;
		justify-content: flex-end;
	}
}

@media (max-width: 760px) {
	:root {
		--top-h: 60px;
	}

	.ctl-top {
		gap: 10px;
	}

	.ctl-top__brand img {
		height: 40px;
	}

	/* Navigation moves to a bar at the bottom, where thumbs are. */
	.ctl-nav {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 20;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 4px;
		padding: 6px 6px max(6px, env(safe-area-inset-bottom));
		background: var(--ink);
	}

	.ctl-nav__link {
		justify-content: center;
		min-height: 52px;
		padding: 0 6px;
		font-size: 14px;
		white-space: normal;
		text-align: center;
	}

	.ctl-nav__badge {
		min-width: 22px;
		height: 22px;
		font-size: 12px;
	}

	.ctl-main {
		padding-top: 16px;
		padding-bottom: 110px;
	}

	.ctl-toast {
		bottom: calc(84px + env(safe-area-inset-bottom));
	}

	.ctl-title {
		font-size: 25px;
	}

	.ctl-board__updated {
		margin-left: 0;
	}

	.ctl-search .ctl-btn {
		display: none;
	}

	.ctl-row {
		padding: 12px;
	}

	.ctl-row__pay {
		min-width: 0;
	}

	.ctl-row__action:empty {
		display: none;
	}

	.ctl-dl > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.ctl-dialog__foot .ctl-btn {
		flex: 1;
		padding: 0 14px;
	}

	.ctl-edit__foot {
		bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.ctl-edit__foot .ctl-btn {
		flex: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		transition-duration: 1ms !important;
	}
}

@media print {
	.ctl-top,
	.ctl-nav,
	.ctl-toast {
		display: none;
	}
}

/* 1.1.0: installable app – the install button and the instructions. */
.ctl-tool--install {
	border-color: var(--green);
	background: var(--green);
	color: var(--ink);
}

.ctl-tool--install:hover {
	border-color: var(--green);
	filter: brightness(1.06);
}

.ctl-help__part + .ctl-help__part {
	margin-top: 18px;
}

.ctl-help__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
}

.ctl-help__list {
	margin: 0;
	padding-left: 1.4em;
}

.ctl-help__list li + li {
	margin-top: 6px;
}

/* Installed and opened from the home screen: room for the system bars. */
.is-app .ctl-top {
	padding-top: max(8px, env(safe-area-inset-top));
}
