.ops-receiving-heading {
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
}

.ops-receiving-heading h2,
.ops-receiving-heading p {
	margin-bottom: 0;
}

.ops-receiving-filter {
	align-items: end;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
}

.ops-receiving-filter label {
	display: grid;
	font-size: 12px;
	font-weight: bold;
	gap: 4px;
}

.ops-receiving-filter input,
.ops-receiving-filter select,
.ops-receiving-filter button {
	box-sizing: border-box;
	min-height: 38px;
	width: 100%;
}

.ops-receiving-filter input,
.ops-receiving-filter select {
	background: #ffffff;
	border: solid #aeb9c3 1px;
	border-radius: 4px;
	padding: 7px;
}

.ops-receiving-filter button {
	white-space: nowrap;
}

.ops-receiving-summary {
	align-items: stretch;
	border-top: solid var(--ops-accent-color, #f4b942) 4px;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(250px, 0.8fr) minmax(520px, 2fr);
}

.ops-receiving-average {
	align-items: center;
	background: #eaf4fb;
	border: solid #9cc3dd 1px;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 14px;
	text-align: center;
}

.ops-receiving-average small {
	font-weight: bold;
}

.ops-receiving-average b {
	color: #174e72;
	font-size: 38px;
	line-height: 1.1;
	margin-top: 4px;
}

.ops-receiving-average span {
	color: #52616c;
	font-size: 12px;
}

.ops-receiving-summary-detail {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(190px, 1fr));
}

.ops-receiving-summary-detail span {
	background: #f7f9fb;
	border: solid #d5dde4 1px;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px;
}

.ops-receiving-summary-detail small {
	color: #5c6871;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
}

.ops-receiving-summary-detail b {
	font-size: 15px;
	margin-top: 3px;
}

.ops-receiving-table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.ops-receiving-table {
	font-size: 12px;
	table-layout: fixed;
}

.ops-receiving-table th {
	background: #dce8f1;
	position: sticky;
	top: 0;
	z-index: 2;
}

.ops-receiving-table th:nth-child(1) { width: 7%; }
.ops-receiving-table th:nth-child(2) { width: 9%; }
.ops-receiving-table th:nth-child(3) { width: 8%; }
.ops-receiving-table th:nth-child(4) { width: 14%; }
.ops-receiving-table th:nth-child(5) { width: 11%; }
.ops-receiving-table th:nth-child(6),
.ops-receiving-table th:nth-child(7) { width: 9%; }
.ops-receiving-table th:nth-child(8) { width: 8%; }
.ops-receiving-table th:nth-child(9) { width: 25%; }

.ops-receiving-table td {
	overflow-wrap: anywhere;
	vertical-align: top;
}

.ops-receiving-table tbody tr:nth-child(even) td {
	background: #f8fafb;
}

.ops-receiving-table a {
	font-weight: bold;
}

.ops-receiving-days {
	font-size: 15px;
	font-weight: bold;
	text-align: center !important;
}

.ops-receiving-negative {
	background: #f8d7da !important;
	color: #842029;
}

.ops-receiving-notes {
	line-height: 1.35;
	white-space: normal;
}

.ops-receiving-muted,
.ops-receiving-empty {
	color: #69727a;
}

.ops-receiving-empty {
	padding: 18px !important;
	text-align: center !important;
}

.ops-receiving-method summary {
	cursor: pointer;
	font-weight: bold;
}

@media (max-width: 1050px) {
	.ops-receiving-filter {
		grid-template-columns: repeat(2, minmax(180px, 1fr));
	}

	.ops-receiving-summary {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 650px) {
	.ops-receiving-filter,
	.ops-receiving-summary-detail {
		grid-template-columns: 1fr;
	}

	.ops-receiving-table {
		font-size: 11px;
		min-width: 900px;
	}
}

@media print {
	.ops-receiving-filter,
	.nav,
	.footer {
		display: none !important;
	}

	.ops-receiving-table-wrap {
		overflow: visible;
	}

	.ops-receiving-table {
		font-size: 9px;
	}

	.ops-receiving-table th {
		position: static;
	}
}
