body {
	background: #f6f7fb;
	padding-bottom: 300px;
}

.sticky-top-bar {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, .92);
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	backdrop-filter: blur(8px);
	padding: 5px 0;
	z-index: 1020;
}

.sticky-bottom-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, .92);
	border-top: 1px solid rgba(0, 0, 0, .08);
	backdrop-filter: blur(8px);
	padding: 10px 12px;
	z-index: 1030;
}

.tap-big {
	min-height: 54px;
	font-weight: 900;
}

.tap-small {
	min-height: 35px;
	font-weight: 900;
}

.order-row {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	padding: 10px 0;
	border-top: 1px solid rgba(0, 0, 0, .06);
}

.order-row:first-child {
	border-top: 0;
}

.order-name {
	font-weight: 500;
	width: calc(100% - 150px);
	text-overflow: ellipsis
}

.order-price {
	font-weight: 600;
	white-space: nowrap;
}

.badge-soft {
	background: #eef2ff;
	color: #3730a3;
}

.item-qty {
	color: green;
	margin-left: 6px;
	font-size: 0.9em;
}

/* ซ่อน input จริง */
.choice-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* --- ประเภทออเดอร์: 2x2 big buttons --- */
.type-grid {
	display: grid;
	grid-template-columns: 0.5fr 0.5fr;
	gap: 5px;
}

.type-label {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 50px;
	border-radius: 14px;
	border: 2px solid #e5e7eb;
	background: #fff;
	cursor: pointer;
	transition: all .15s ease;
	user-select: none;
	font-size: large;
}

.type-label .sub {
	font-size: 14px;
	font-weight: 800;
	opacity: .75;
	margin-top: 2px;
}

.choice-input:checked+.type-label {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

/* --- เมนู: ชิปเรียงต่อกัน กว้างตามชื่อ --- */
.menu-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.menu-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 12px;
	border: 2px solid #e5e7eb;
	background: #fff;
	font-weight: 900;
	cursor: pointer;
	transition: all .15s ease;
	user-select: none;

	/* กว้างตามข้อความ */
	width: auto;
	max-width: 100%;
}

.menu-chip:hover {
	border-color: #93c5fd;
}

.choice-input:checked+.menu-chip {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

#qtyMinus,
#qtyPlus {
	min-width: 56px;
	font-weight: 900;
}

#clearNameBtn {
	min-width: 56px;
	font-weight: 900;
}

#receipt {
	display: none;
}

#receiptPdf {
	width: 100vw;
	height: 100vh;
	border: 0;
}

@media print {
	#app-ui {
		display: none !important;
	}

	#receipt {
		display: block !important;
	}

	#receiptPdf {
		width: 100%;
		height: 100%;
	}

	#btnBackFromPrint {
		display: none !important;
	}
}


/* เผื่อบางมือถือ: ตอน “เตรียมพิมพ์” ให้ซ่อน UI เหมือนกัน */
body.printing #app-ui {
	display: none;
}

body.printing #receipt {
	display: block;
}

.menu-item.hidden {
	display: none !important;
}

.menu_type.hidden {
	display: none !important;
}
