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

.ops-unit-storage-filter {
	align-items: end;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
}

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

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

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

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

.ops-unit-storage-summary {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-unit-storage-summary-card {
	border: solid 1px #cfd8df;
	border-left-width: 5px;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 14px;
}

.ops-unit-storage-summary-card small {
	color: #596873;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
}

.ops-unit-storage-summary-card b {
	font-size: clamp(24px, 2.1vw, 34px);
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	margin-top: 4px;
}

.ops-unit-storage-summary-card span {
	color: #52616c;
	font-size: 12px;
	margin-top: 3px;
}

.ops-unit-storage-summary-low {
	background: #edf8f0;
	border-left-color: #218739;
}

.ops-unit-storage-summary-high {
	background: #fcecec;
	border-left-color: #b3261e;
}

.ops-unit-storage-summary-average {
	background: #edf5fb;
	border-left-color: #2274a5;
}

.ops-unit-storage-chart-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.ops-unit-storage-chart {
	display: block;
	height: 320px;
	min-width: 760px;
	width: 100%;
}

.ops-unit-storage-chart-grid {
	stroke: #d9e0e5;
	stroke-width: 1;
}

.ops-unit-storage-chart-axis {
	stroke: #53616b;
	stroke-width: 1.2;
}

.ops-unit-storage-chart-bar {
	fill: #1976bf;
}

.ops-unit-storage-chart-bar:hover {
	fill: #0d5e9f;
}

.ops-unit-storage-chart-tick,
.ops-unit-storage-chart-month {
	fill: #4d5a64;
	font-size: 11px;
}

.ops-unit-storage-chart-value {
	fill: #1d2a33;
	font-size: 11px;
	font-weight: bold;
}

.ops-unit-storage-chart-axis-label {
	fill: #33424d;
	font-size: 12px;
	font-weight: bold;
}

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

.ops-unit-storage-table {
	font-size: 12px;
	table-layout: fixed;
	width: 100%;
}

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

.ops-unit-storage-table th:nth-child(1) { width: 12%; }
.ops-unit-storage-table th:nth-child(2) { width: 14%; }
.ops-unit-storage-table th:nth-child(3) { width: 26%; }
.ops-unit-storage-table th:nth-child(4),
.ops-unit-storage-table th:nth-child(5) { width: 15%; }
.ops-unit-storage-table th:nth-child(6) { width: 18%; }

.ops-unit-storage-table td {
	overflow-wrap: anywhere;
	vertical-align: middle;
}

.ops-unit-storage-table tbody tr:nth-child(even) td:not(.ops-unit-storage-days) {
	background: #f8fafb;
}

.ops-unit-storage-table td:nth-child(4),
.ops-unit-storage-table td:nth-child(5),
.ops-unit-storage-table td:nth-child(6) {
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.ops-unit-storage-table td:nth-child(2) a {
	font-weight: bold;
}

.ops-unit-storage-date-source {
	color: #5c6871;
	display: block;
	font-size: 10px;
	font-weight: normal;
	margin-top: 2px;
}

.ops-unit-storage-days {
	font-size: 15px;
	font-weight: bold;
}

.ops-unit-storage-days-good {
	background: #d7f0dc !important;
	color: #155d2a;
}

.ops-unit-storage-days-warning {
	background: #ffe6bd !important;
	color: #824b00;
}

.ops-unit-storage-days-bad {
	background: #f7cfd2 !important;
	color: #842029;
}

.ops-unit-storage-days-neutral {
	background: #eef1f3 !important;
	color: #3e4a53;
}

.ops-unit-storage-sort-link {
	color: inherit;
	display: inline-flex;
	gap: 5px;
	justify-content: center;
	text-decoration: underline;
}

.ops-unit-storage-empty {
	color: #68737c;
	font-style: italic;
	padding: 18px !important;
	text-align: center !important;
}

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

@media (max-width: 1150px) {
	.ops-unit-storage-filter {
		grid-template-columns: repeat(3, minmax(170px, 1fr));
	}
}

@media (max-width: 760px) {
	.ops-unit-storage-filter,
	.ops-unit-storage-summary {
		grid-template-columns: 1fr;
	}

	.ops-unit-storage-table {
		min-width: 760px;
	}
}

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

	.ops-unit-storage-table-wrap,
	.ops-unit-storage-chart-wrap {
		overflow: visible;
	}

	.ops-unit-storage-table th {
		position: static;
	}
}
