.fulfillment-table {
	display: grid;
	grid-template-columns: min-content min-content min-content auto min-content;
	gap: 2px;
}
.fulfillment-table > div {
	white-space: nowrap;
	padding: 2px 4px;
}
.fulfillment-table .fulfillment-header {
	font-weight: bold;
	background-color: #ccc;
}
.mobile-fulfillment-table {
	display: none;
}
.fulfillment-actions {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 15px;
}
.fulfillment-actions > div {
	text-align: center;
	cursor: pointer;
	padding: 5px;
	color: #06a;
	border-radius: 5px;
	font-size: 12px;
	line-height: 1.2;
}
.fulfillment-cell:nth-child(10n + 6),
.fulfillment-cell:nth-child(10n + 7),
.fulfillment-cell:nth-child(10n + 8),
.fulfillment-cell:nth-child(10n + 9),
.fulfillment-cell:nth-child(10n + 10) {
	background-color: #efefef;
}

.fulfillment-error {
	border: solid 1px red;
	padding: 20px;
	border-radius: 5px;
	color: red;
}

.fulfillment-popup {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(3px);
	z-index: 100;
}
.fulfillment-popup-content {
	position: absolute;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	max-width: calc(100vw - 30px);
	width: 500px;
	border: solid 1px #ccc;
	box-shadow: 0 0 18px rgba(0, 0, 0, 0.3);
	background: #fff;
	padding: 30px;
	border-radius: 10px;
	box-sizing: border-box;
}
.fulfillment-popup-close {
	position: absolute;
	top: 0;
	right: 0;
	padding: 6px;
	color: #f00;
	cursor: pointer;
	font-size: 20px;
}
.fulfillment-products {
	display: grid;
	grid-template-columns: min-content auto;
	gap: 5px;
}
.fulfillment-products > div {
	white-space: nowrap;
}
.fulfillment-qty {
	text-align: right;
}

@media (max-width: 799px) {
	.fulfillment-table {
		display: none;
	}

	.mobile-fulfillment-table {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.fulfillment-order {
		padding: 5px;
		border: solid 1px #ccc;
		border-radius: 5px;
		display: grid;
		gap: 5px;
		grid-template-columns: min-content auto;
	}
	.fulfillment-label {
		font-weight: bold;
		white-space: nowrap;
	}
	.fulfillment-row {
		display: flex;
		flex-wrap: nowrap;
	}
	.fulfillment-actions {
		grid-column: span 2;
	}
}
