.active-jobs-shop-hero,
.active-jobs-shop-location {
	box-sizing: border-box;
	max-width: none;
	width: 100%;
}

.active-jobs-shop-location {
	border-top: 4px solid var(--ops-home-color, #1f4f7a);
}

.active-jobs-shop-location-heading {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.active-jobs-shop-location-heading h2 {
	margin: 0 0 2px;
}

.active-jobs-shop-location-heading span {
	color: #5a6872;
	font-size: 13px;
}

.active-jobs-shop-location-heading > strong {
	background: #e7f0f7;
	border: 1px solid #9bb8cf;
	border-radius: 999px;
	color: #173f60;
	font-size: 13px;
	padding: 7px 12px;
	white-space: nowrap;
}

.active-jobs-shop-filters small {
	color: #5a6872;
	display: block;
	font-size: 11px;
	margin-top: 3px;
}

.active-jobs-shop-summary-wrap {
	max-width: 620px;
}

.active-jobs-shop-summary-wrap h3,
.active-jobs-shop-location > h3 {
	margin: 14px 0 8px;
}

.active-jobs-shop-summary-table {
	font-variant-numeric: tabular-nums;
}

.active-jobs-shop-summary-table th {
	background: #d9e8f5;
}

.active-jobs-shop-detail-scroll {
	border: 1px solid #aebbc4;
	max-height: 70vh;
	max-width: 100%;
	overflow: auto;
	position: relative;
	width: 100%;
}

.active-jobs-shop-detail-table {
	font-size: clamp(10px, 0.78vw, 14px);
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
	min-width: calc(1075px + (var(--active-jobs-month-count) * 60px));
	table-layout: fixed;
	width: 100%;
}

.active-jobs-shop-detail-table th,
.active-jobs-shop-detail-table td {
	box-sizing: border-box;
	overflow-wrap: anywhere;
	padding: 5px;
	text-align: center;
	vertical-align: middle;
}

.active-jobs-shop-detail-table thead {
	position: sticky;
	top: 0;
	z-index: 6;
}

.active-jobs-shop-detail-table thead th {
	background: #d9e8f5;
	background-clip: padding-box;
}

.active-jobs-shop-detail-table thead tr:first-child th {
	background: #c7dceb;
	color: #163a59;
}

.active-jobs-shop-detail-table thead tr:last-child th {
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.16);
}

.active-jobs-shop-detail-table tbody tr:nth-child(even) td {
	background: #f5f8fa;
}

.active-jobs-shop-detail-table tbody tr:hover td {
	background: #edf6fc;
}

.active-jobs-shop-detail-table .active-jobs-shop-job-column {
	left: 0;
	position: sticky;
	width: 85px;
	z-index: 3;
}

.active-jobs-shop-detail-table thead .active-jobs-shop-job-column {
	z-index: 8;
}

.active-jobs-shop-detail-table tbody .active-jobs-shop-job-column {
	background: #ffffff;
	box-shadow: 3px 0 5px rgba(30, 45, 55, 0.12);
	font-weight: 700;
	text-align: left;
}

.active-jobs-shop-detail-table tbody tr:nth-child(even) .active-jobs-shop-job-column {
	background: #f5f8fa;
}

.active-jobs-shop-detail-table tbody .active-jobs-shop-job-column a {
	color: #164d78;
	text-decoration: underline;
}

.active-jobs-shop-detail-table .active-jobs-shop-date-column {
	width: 110px;
}

.active-jobs-shop-detail-table .active-jobs-shop-customer-column {
	text-align: left;
	width: 170px;
}

.active-jobs-shop-detail-table .active-jobs-shop-material-column {
	text-align: left;
	vertical-align: top;
	width: 220px;
}

.active-jobs-shop-detail-table .active-jobs-shop-days-column {
	width: 80px;
}

.active-jobs-shop-detail-table .active-jobs-shop-efficiency-column {
	width: 100px;
}

.active-jobs-shop-detail-table .active-jobs-shop-labor-used-column {
	width: 100px;
}

.active-jobs-shop-detail-table .active-jobs-shop-month-column {
	padding-left: 3px;
	padding-right: 3px;
	width: 60px;
}

.active-jobs-shop-efficiency-good {
	color: #18743a;
}

.active-jobs-shop-efficiency-warning {
	color: #c45d00;
}

.active-jobs-shop-efficiency-bad {
	color: #a8202a;
}

.active-jobs-shop-metric-unavailable {
	color: #747d84;
	font-size: 0.9em;
}

.active-jobs-shop-detail-table .active-jobs-shop-month-column small {
	color: #526675;
	display: block;
	font-size: 0.82em;
	font-weight: 600;
	margin-top: 2px;
}

.active-jobs-shop-detail-table .active-jobs-shop-total-column {
	width: 100px;
}

.active-jobs-shop-detail-table td.active-jobs-shop-hours {
	background: #e5f5ea;
	color: #12633a;
	font-weight: 800;
}

.active-jobs-shop-detail-table tfoot th,
.active-jobs-shop-detail-table tfoot td {
	background: #dce9f1;
	border-top: 2px solid #6f8798;
	font-weight: 800;
	position: sticky;
	bottom: 0;
	z-index: 4;
}

.active-jobs-shop-empty {
	background: #f3f6f8;
	border: 1px solid #c6d0d6;
	border-radius: 4px;
	padding: 12px;
}

.active-jobs-shop-method {
	max-width: none;
}

@media (max-width: 700px) {
	.active-jobs-shop-location-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.active-jobs-shop-location-heading > strong {
		white-space: normal;
	}

	.active-jobs-shop-summary-wrap {
		max-width: none;
	}
}
