.ops-time-tracker {
	max-width: 100%;
	padding: 18px;
}

.ops-time-reference-location {
	background: #fff;
	border: 1px solid #9caab5;
	border-radius: 8px;
	margin: 16px 0;
	overflow: hidden;
}

.ops-time-reference-location > header {
	align-items: center;
	background: #f4f7f9;
	border-bottom: 1px solid #9caab5;
	display: flex;
	justify-content: space-between;
	padding: 14px 18px;
}

.ops-time-reference-location > header span,
.ops-time-reference-location > header p {
	color: #657682;
	font-size: 12px;
	margin: 0;
}

.ops-time-reference-location > header h2 {
	color: #111;
	font-size: 30px;
	margin: 2px 0 0;
}

.ops-time-reference-actions {
	text-align: right;
}

.ops-time-reference-actions a {
	color: #176da3;
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	margin-top: 4px;
}

.ops-time-reference-table-scroll,
.ops-time-week-matrix-scroll {
	max-width: 100%;
	overflow-x: auto;
}

.ops-time-reference-table {
	border-collapse: collapse;
	font-size: 12px;
	min-width: 1050px;
	width: 100%;
}

.ops-time-reference-table th,
.ops-time-reference-table td {
	border: 1px solid #7b8790;
	font-variant-numeric: tabular-nums;
	padding: 6px 7px;
	text-align: center;
}

.ops-time-reference-table thead th {
	background: #e9eef2;
	color: #111;
	font-weight: 700;
	position: sticky;
	top: 0;
	z-index: 2;
}

.ops-time-reference-table tbody th {
	background: #f8f9fa;
	min-width: 120px;
	text-align: left;
}

.ops-time-reference-table .ops-time-method {
	min-width: 245px;
	text-align: left;
	white-space: normal;
}

.ops-time-reference-table .ops-time-actual {
	color: #214b98;
	font-weight: 700;
}

.ops-time-total-row th,
.ops-time-total-row td,
.ops-time-grand-total-row th,
.ops-time-grand-total-row td {
	background: #edf1f4 !important;
	font-weight: 800;
}

.ops-time-grand-total-row th,
.ops-time-grand-total-row td {
	border-top-width: 2px;
}

.ops-time-utilization-row th,
.ops-time-utilization-row td {
	background: #f9fafb;
	font-weight: 700;
}

.ops-time-premium-row:first-of-type th,
.ops-time-premium-row:first-of-type td {
	border-top-width: 3px;
}

.ops-time-ratio-good {
	color: #15743b;
	font-weight: 800;
}

.ops-time-ratio-bad {
	color: #b42318;
	font-weight: 800;
}

.ops-time-category-link {
	align-items: center;
	color: #176da3;
	display: inline-flex;
	font-weight: 800;
	gap: 5px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ops-time-category-link:hover,
.ops-time-category-link:focus {
	color: #0c4d78;
}

.ops-time-category-link i {
	font-size: 10px;
}

.ops-time-detail-back {
	margin: 0 0 10px;
}

.ops-time-detail-back a {
	color: #176da3;
	font-size: 13px;
	font-weight: 700;
}

.ops-time-detail-location {
	background: #fff;
	border: 1px solid #9caab5;
	border-radius: 8px;
	margin: 16px 0;
	overflow: hidden;
}

.ops-time-detail-location > header {
	background: #f4f7f9;
	border-bottom: 1px solid #9caab5;
	padding: 12px 16px;
}

.ops-time-detail-location > header span {
	color: #657682;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.ops-time-detail-location > header h2 {
	color: #153f64;
	font-size: 21px;
	margin: 2px 0 0;
}

.ops-time-detail-summary {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(130px, 1fr));
	padding: 12px 14px 2px;
}

.ops-time-detail-summary > div {
	background: #f8fafb;
	border: 1px solid #d4dde4;
	border-left: 4px solid #2474a8;
	border-radius: 5px;
	padding: 9px 11px;
}

.ops-time-detail-summary span {
	color: #5d6e7c;
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.ops-time-detail-summary strong {
	color: #153f64;
	font-size: 20px;
	font-variant-numeric: tabular-nums;
}

.ops-time-detail-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	padding: 12px 14px;
}

.ops-time-detail-table {
	border: 2px solid #4f5f6b;
	border-collapse: collapse;
	font-family: "Arial Narrow", Arial, sans-serif;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	min-width: 1180px;
	table-layout: fixed;
	width: 100%;
}

.ops-time-detail-table caption {
	border: 1px solid #667784;
	border-bottom: 0;
	caption-side: top;
	color: #111;
	font-size: 13px;
	font-weight: 700;
	padding: 7px;
	text-align: center;
}

.ops-time-detail-table caption small {
	color: #536675;
	display: block;
	font-size: 10px;
	font-weight: 400;
	margin-top: 2px;
}

.ops-time-detail-table th,
.ops-time-detail-table td {
	background: #fff;
	border: 1px solid #667784;
	padding: 7px 5px;
	text-align: center;
	vertical-align: middle;
	white-space: normal;
}

.ops-time-detail-table thead th {
	background: #f3f4f5;
	font-weight: 700;
	line-height: 1.25;
	position: sticky;
	top: 0;
	z-index: 2;
}

.ops-time-detail-table th:first-child {
	min-width: 120px;
	text-align: center;
	width: 10%;
}

.ops-time-detail-table th:last-child,
.ops-time-detail-table td:last-child {
	width: 11%;
}

.ops-time-detail-day strong,
.ops-time-detail-day small {
	display: block;
}

.ops-time-detail-day strong {
	font-size: 12px;
}

.ops-time-detail-day small {
	color: #334b5d;
	font-size: 10px;
	line-height: 1.25;
	margin-top: 3px;
}

.ops-time-detail-entry-job {
	color: #153f64;
	display: block;
	font-weight: 800;
	margin-bottom: 1px;
}

.ops-time-detail-week-total {
	background: #f3f4f5 !important;
}

.ops-time-detail-outside {
	background: #eef1f3 !important;
	color: #83909a;
}

.ops-time-detail-empty {
	color: #657682;
	font-style: italic;
	padding: 18px !important;
	text-align: center !important;
}

.ops-time-reference-subsection {
	border-top: 1px solid #b8c3cb;
	padding: 14px;
}

.ops-time-reference-subsection h3 {
	color: #153f64;
	font-size: 18px;
	margin: 0 0 9px;
}

.ops-time-period-summary,
.ops-time-week-matrix {
	border-collapse: collapse;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	margin-bottom: 10px;
	width: 100%;
}

.ops-time-period-summary th,
.ops-time-period-summary td,
.ops-time-week-matrix th,
.ops-time-week-matrix td {
	border: 1px solid #7b8790;
	padding: 6px;
	text-align: center;
}

.ops-time-period-summary thead th,
.ops-time-week-matrix thead th {
	background: #eef2f5;
	font-weight: 700;
}

.ops-time-period-summary thead th:first-child {
	min-width: 185px;
	text-align: left;
}

.ops-time-period-summary small,
.ops-time-week-matrix small {
	display: block;
	font-size: 10px;
	font-weight: 400;
	margin-top: 2px;
}

.ops-time-week-matrix {
	min-width: 760px;
}

.ops-time-week-matrix th:first-child {
	min-width: 175px;
	text-align: left;
}

.ops-time-week-matrix tbody th {
	display: flex;
	justify-content: space-between;
}

.ops-time-week-matrix tbody th strong {
	margin-left: 8px;
	white-space: nowrap;
}

.ops-time-rework-link {
	color: #176da3;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ops-time-rework-link:hover,
.ops-time-rework-link:focus {
	color: #0d466c;
}

.ops-time-other-row th,
.ops-time-other-row td {
	background: #f7f8f9;
}

.ops-time-matrix-total th,
.ops-time-matrix-total td {
	background: #e2e8ed;
	font-weight: 800;
}

@media (max-width: 700px) {
	.ops-time-reference-location > header {
		align-items: flex-start;
		gap: 8px;
	}

	.ops-time-reference-location > header h2 {
		font-size: 24px;
	}
}

@media print {
	.ops-time-reference-location {
		border: 0;
		break-after: page;
	}

	.ops-time-reference-table-scroll,
	.ops-time-week-matrix-scroll {
		overflow: visible;
	}

	.ops-time-reference-table,
	.ops-time-week-matrix {
		font-size: 7px;
		min-width: 0;
	}

	.ops-time-reference-table th,
	.ops-time-reference-table td,
	.ops-time-period-summary th,
	.ops-time-period-summary td,
	.ops-time-week-matrix th,
	.ops-time-week-matrix td {
		padding: 3px;
	}
}

.ops-time-hero {
	background: linear-gradient(135deg, #153f64, #2474a8);
	border-radius: 10px;
	color: #fff;
	margin-bottom: 14px;
	padding: 20px 24px;
}

.ops-time-hero h1 {
	font-size: 27px;
	margin: 2px 0 6px;
}

.ops-time-hero p {
	margin: 0;
	max-width: 900px;
}

.ops-time-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.ops-time-filter {
	align-items: end;
	background: #fff;
	border: 1px solid #d9e1e8;
	border-radius: 8px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(160px, 1fr)) minmax(235px, auto) auto;
	padding: 14px;
}

.ops-time-filter label {
	display: grid;
	gap: 5px;
}

.ops-time-filter label span {
	color: #364b5d;
	font-size: 12px;
	font-weight: 700;
}

.ops-time-date-note {
	color: #536675;
	font-size: 11px;
	line-height: 1.2;
}

.ops-time-filter input,
.ops-time-filter select,
.ops-time-filter button {
	border: 1px solid #aebbc6;
	border-radius: 5px;
	box-sizing: border-box;
	font: inherit;
	min-height: 38px;
	padding: 7px 9px;
	width: 100%;
}

.ops-time-filter button {
	background: #176da3;
	border-color: #176da3;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	white-space: nowrap;
}

.ops-time-filter .ops-time-export-link {
	align-items: center;
	align-self: end;
	background: #fff;
	border: 1px solid #176da3;
	border-radius: 5px;
	box-sizing: border-box;
	color: #176da3;
	display: flex;
	font-weight: 700;
	gap: 7px;
	justify-content: center;
	min-height: 38px;
	padding: 7px 12px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.ops-time-filter .ops-time-export-link:hover,
.ops-time-filter .ops-time-export-link:focus {
	background: #eef6fb;
	color: #0d466c;
}

.ops-time-period-note {
	color: #536675;
	font-size: 13px;
	margin: 10px 2px;
}

.ops-time-summary {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(130px, 1fr));
	margin: 12px 0;
}

.ops-time-summary > div {
	background: #fff;
	border: 1px solid #d9e1e8;
	border-left: 4px solid #2474a8;
	border-radius: 7px;
	padding: 12px 14px;
}

.ops-time-summary span,
.ops-time-location-total span {
	color: #5d6e7c;
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.ops-time-summary strong {
	color: #153f64;
	font-size: 23px;
}

.ops-time-location {
	background: #fff;
	border: 1px solid #d9e1e8;
	border-radius: 8px;
	margin: 14px 0;
	overflow: hidden;
}

.ops-time-location-heading {
	align-items: center;
	background: #f4f7f9;
	border-bottom: 1px solid #d9e1e8;
	display: flex;
	justify-content: space-between;
	padding: 12px 16px;
}

.ops-time-location-heading h2,
.ops-time-location-heading p {
	margin: 0;
}

.ops-time-location-heading h2 {
	color: #153f64;
	font-size: 20px;
}

.ops-time-location-heading p {
	color: #647583;
	font-size: 12px;
}

.ops-time-location-total {
	text-align: right;
}

.ops-time-location-total strong {
	color: #153f64;
	font-size: 19px;
}

.ops-time-table-scroll {
	max-width: 100%;
	overflow-x: auto;
}

.ops-time-table {
	border-collapse: separate;
	border-spacing: 0;
	font-size: 12px;
	width: 100%;
}

.ops-time-table th,
.ops-time-table td {
	border-bottom: 1px solid #dde4ea;
	border-right: 1px solid #e4e9ed;
	padding: 7px 8px;
	text-align: right;
	white-space: nowrap;
}

.ops-time-table thead th {
	background: #153f64;
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 4;
}

.ops-time-type-column,
.ops-time-type-cell {
	left: 0;
	min-width: 155px;
	position: sticky;
	text-align: left !important;
	z-index: 2;
}

.ops-time-name-column,
.ops-time-name-cell {
	left: 171px;
	min-width: 175px;
	position: sticky;
	text-align: left !important;
	z-index: 2;
}

.ops-time-table thead .ops-time-type-column,
.ops-time-table thead .ops-time-name-column {
	z-index: 6;
}

.ops-time-type-cell,
.ops-time-name-cell {
	background: #fff;
}

.ops-time-budget-row:nth-child(even) td,
.ops-time-budget-row:nth-child(even) th {
	background: #f9fbfc;
}

.ops-time-company-row th {
	background: #dce9f2;
	color: #153f64;
	font-size: 13px;
	text-align: left;
}

.ops-time-type-total th,
.ops-time-type-total td {
	background: #eef3f6;
	font-weight: 700;
}

.ops-time-company-total th,
.ops-time-company-total td {
	background: #cbdde9;
	color: #123b5c;
	font-weight: 800;
}

.ops-time-row-total,
.ops-time-total-column {
	background: #f2f6f8;
	font-weight: 700;
}

.ops-time-number {
	display: inline-block;
	font-variant-numeric: tabular-nums;
	min-width: 52px;
}

.ops-time-warning,
.ops-time-empty {
	color: #725817;
	padding: 18px;
}

.ops-time-source {
	background: #f7f8f9;
	border-left: 4px solid #8aa7bc;
	color: #536675;
	font-size: 12px;
	margin-top: 14px;
	padding: 10px 12px;
}

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

	.ops-time-summary {
		grid-template-columns: repeat(2, minmax(130px, 1fr));
	}

	.ops-time-detail-summary {
		grid-template-columns: repeat(3, minmax(100px, 1fr));
	}
}

@media (max-width: 540px) {
	.ops-time-tracker {
		padding: 8px;
	}

	.ops-time-filter,
	.ops-time-summary,
	.ops-time-detail-summary {
		grid-template-columns: 1fr;
	}

	.ops-time-location-heading {
		align-items: flex-start;
		gap: 8px;
	}
}

@media print {
	.ops-time-filter,
	.ops-time-period-note,
	.ops-time-detail-back {
		display: none;
	}

	.ops-time-table-scroll {
		overflow: visible;
	}

	.ops-time-table {
		font-size: 8px;
		min-width: 0 !important;
	}

	.ops-time-detail-location {
		border: 0;
		break-after: page;
	}

	.ops-time-detail-table-scroll {
		overflow: visible;
		padding: 8px 0;
	}

	.ops-time-detail-table {
		font-size: 7px;
		min-width: 0;
	}

	.ops-time-detail-table th,
	.ops-time-detail-table td {
		padding: 3px;
		position: static;
	}

	.ops-time-table th,
	.ops-time-table td {
		padding: 3px;
		position: static;
	}
}
