.incident-dashboard-hero,
.incident-form-hero,
.incident-workflow-heading,
.incident-section-heading {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
}

.incident-dashboard-hero h2,
.incident-form-hero h2,
.incident-section-heading h2,
.incident-workflow-heading h2 {
	margin-bottom: 5px;
}

.incident-dashboard-hero p,
.incident-form-hero p,
.incident-section-heading p,
.incident-workflow-heading p {
	margin-bottom: 0;
}

.incident-new-button {
	flex: 0 0 auto;
}

.incident-message {
	margin-bottom: 14px;
}

.incident-dashboard-metrics {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(180px, 1fr));
	margin-bottom: 14px;
}

.incident-dashboard-metrics .panel {
	margin-bottom: 0;
	text-align: center;
}

.incident-dashboard-metrics span,
.incident-dashboard-metrics strong {
	display: block;
}

.incident-dashboard-metrics span {
	color: #53616d;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

.incident-dashboard-metrics strong {
	color: var(--ops-home-color, #1f4f7a);
	font-size: 30px;
	margin-top: 5px;
}

.incident-dashboard-metrics .incident-overdue-metric strong {
	color: #b42318;
}

.incident-timeline-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(160px, 1fr));
	margin: 12px 0;
}

.incident-timeline-grid > div {
	align-items: center;
	border: solid #ccd4da 1px;
	border-left-width: 5px;
	border-radius: 4px;
	display: grid;
	gap: 3px 9px;
	grid-template-columns: auto 1fr;
	padding: 10px 12px;
}

.incident-timeline-grid i {
	grid-row: 1 / 3;
}

.incident-timeline-grid span {
	color: #58636d;
	font-size: 12px;
}

.incident-timeline-high {
	border-left-color: #c92a2a !important;
}

.incident-timeline-high i {
	color: #c92a2a;
}

.incident-timeline-medium {
	border-left-color: #e67700 !important;
}

.incident-timeline-medium i {
	color: #e67700;
}

.incident-timeline-low {
	border-left-color: #d1a900 !important;
}

.incident-timeline-low i {
	color: #d1a900;
}

.incident-location-panel {
	margin-top: 14px;
}

.incident-summary-table {
	min-width: 900px;
}

.incident-summary-table th:first-child {
	width: 105px;
}

.incident-summary-table th:nth-child(2) {
	width: 155px;
}

.incident-summary-table th:nth-child(4) {
	width: 155px;
}

.incident-summary-table th:nth-child(5) {
	width: 125px;
}

.incident-summary-table th:last-child {
	width: 75px;
}

.incident-summary-description {
	max-width: 460px;
	white-space: normal;
}

.incident-risk,
.incident-status {
	align-items: center;
	border: solid transparent 1px;
	border-radius: 999px;
	display: inline-flex;
	font-size: 11px;
	font-weight: bold;
	gap: 5px;
	padding: 4px 8px;
	white-space: nowrap;
}

.incident-risk-high {
	background: #fff1f0;
	border-color: #f3b8b5;
	color: #a61b14;
}

.incident-risk-medium {
	background: #fff4e6;
	border-color: #f2c48d;
	color: #a24b00;
}

.incident-risk-low {
	background: #fffbe6;
	border-color: #e5d267;
	color: #806600;
}

.incident-status-open {
	background: #eaf4ff;
	border-color: #a9cae8;
	color: #155589;
}

.incident-status-overdue {
	background: #fff1f0;
	border-color: #f3b8b5;
	color: #a61b14;
}

.incident-status-closed {
	background: #edf8ef;
	border-color: #afd6b6;
	color: #256b32;
}

.incident-report-form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.incident-report-form fieldset:disabled {
	opacity: 0.78;
}

.incident-form-panel {
	border: solid #1e2933 1px;
	border-radius: 2px;
	margin-bottom: 14px;
	padding-top: 46px;
	position: relative;
}

.incident-form-section-title {
	background: #263744;
	border-bottom: solid #1e2933 1px;
	color: #ffffff;
	font-size: 14px;
	font-weight: bold;
	left: 0;
	letter-spacing: 0.02em;
	padding: 10px 14px;
	position: absolute;
	right: 0;
	text-transform: uppercase;
	top: 0;
}

.incident-form-panel label {
	color: #26313a;
	display: block;
	font-size: 12px;
	font-weight: bold;
	margin-bottom: 11px;
}

.incident-form-panel input[type="text"],
.incident-form-panel input[type="date"],
.incident-form-panel input[type="time"],
.incident-form-panel input[type="datetime-local"],
.incident-form-panel input[type="file"],
.incident-form-panel select,
.incident-form-panel textarea {
	background: #ffffff;
	border: solid #9aa6af 1px;
	border-radius: 2px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 13px;
	margin-top: 4px;
	padding: 8px;
	width: 100%;
}

.incident-form-panel textarea {
	line-height: 1.4;
	resize: vertical;
}

.incident-form-panel small {
	color: #5c6872;
	display: block;
	font-weight: normal;
	margin-top: 4px;
}

.incident-form-grid {
	display: grid;
	gap: 10px 14px;
}

.incident-form-grid-two {
	grid-template-columns: repeat(2, minmax(200px, 1fr));
}

.incident-form-grid-three {
	grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.incident-form-grid-four {
	grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.incident-form-subsection {
	border-top: solid #c5ccd2 1px;
	margin: 5px 0 12px;
	padding-top: 10px;
}

.incident-block-label {
	margin-bottom: 7px !important;
}

.incident-checkbox-grid {
	display: grid;
	gap: 7px 14px;
	grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.incident-checkbox-grid label {
	align-items: flex-start;
	display: flex;
	font-weight: normal;
	gap: 7px;
	margin: 0;
}

.incident-checkbox-grid input {
	flex: 0 0 auto;
	margin: 2px 0 0;
}

.incident-injury-status-grid {
	grid-template-columns: repeat(2, minmax(180px, 1fr));
	max-width: 560px;
}

.incident-injury-status-grid label {
	background: #f3f6f8;
	border: solid #c5ccd2 1px;
	border-radius: 3px;
	padding: 9px 11px;
}

.incident-employee-report[hidden] {
	display: none !important;
}

.incident-risk-panel {
	border-left-width: 7px;
}

.incident-risk-panel-high {
	border-left-color: #c92a2a;
}

.incident-risk-panel-medium {
	border-left-color: #e67700;
}

.incident-risk-panel-low {
	border-left-color: #d1a900;
}

.incident-risk-deadline {
	background: #f3f6f8;
	border: solid #ccd4da 1px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
	padding: 9px 11px;
}

.incident-corrective-panel {
	border-color: #627583;
}

.incident-required-note {
	background: #fff7df;
	border: solid #e7cd80 1px;
	border-radius: 3px;
	padding: 9px 11px;
}

.incident-form-actions {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin: 14px 0;
}

.incident-form-actions .button:first-child {
	margin-right: auto;
}

.incident-existing-attachments {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(260px, 1fr));
	margin-bottom: 14px;
}

.incident-existing-attachments > div {
	background: #ffffff;
	border: solid #cbd3d9 1px;
	border-radius: 4px;
	padding: 14px;
}

.incident-existing-attachments h4 {
	margin: 0 0 10px;
}

.incident-work-area-gallery {
	display: grid;
	gap: 9px;
	grid-template-columns: repeat(3, minmax(100px, 1fr));
}

.incident-work-area-image {
	border: solid #c5ccd2 1px;
	border-radius: 3px;
	color: #263744;
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.incident-work-area-image img {
	display: block;
	height: 120px;
	object-fit: cover;
	width: 100%;
}

.incident-work-area-image span {
	display: block;
	font-size: 10px;
	overflow: hidden;
	padding: 6px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.incident-attachment-list {
	margin-bottom: 0;
	padding-left: 19px;
}

.incident-attachment-list li {
	margin-bottom: 7px;
}

.incident-empty-note {
	color: #66717a;
	font-style: italic;
}

.incident-workflow-panel {
	border-top: solid var(--ops-home-color, #1f4f7a) 4px;
}

.incident-due-banner {
	background: #eef3f7;
	border: solid #c5d1db 1px;
	border-radius: 3px;
	margin: 12px 0;
	padding: 10px 12px;
}

.incident-workflow-panel .status-warn ul {
	margin-bottom: 0;
}

.incident-verification-panel {
	border-left: solid var(--ops-home-color, #1f4f7a) 5px;
	max-width: 760px;
}

.incident-verification-panel label {
	display: block;
	margin-bottom: 12px;
}

.incident-verification-stage-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(190px, 1fr));
	margin-top: 13px;
}

.incident-verification-stage-grid > div {
	background: #f6f7f8;
	border: solid #c5ccd2 1px;
	border-radius: 4px;
	min-height: 130px;
	padding: 14px 14px 14px 54px;
	position: relative;
}

.incident-verification-stage-grid > div > span {
	align-items: center;
	background: #7b8790;
	border-radius: 50%;
	color: #ffffff;
	display: flex;
	font-size: 16px;
	font-weight: bold;
	height: 30px;
	justify-content: center;
	left: 13px;
	position: absolute;
	top: 13px;
	width: 30px;
}

.incident-verification-stage-grid h3 {
	margin: 1px 0 6px;
}

.incident-verification-stage-grid p {
	font-size: 12px;
	line-height: 1.45;
	margin: 8px 0 0;
}

.incident-verification-stage-grid > .incident-stage-ready {
	background: #eef5fb;
	border-color: #7ca6c8;
}

.incident-verification-stage-grid > .incident-stage-ready > span {
	background: #1f6fa8;
}

.incident-verification-stage-grid > .incident-stage-complete {
	background: #eef8f1;
	border-color: #76ae84;
}

.incident-verification-stage-grid > .incident-stage-complete > span {
	background: #2f8541;
}

.incident-verification-stage-grid > .incident-stage-locked {
	color: #68737b;
}
.incident-approval-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(240px, 1fr));
	margin-top: 13px;
}

.incident-approval-grid > div {
	border: solid #c5ccd2 1px;
	border-radius: 4px;
	padding: 13px;
}

.incident-approval-grid h3 {
	margin: 0 0 5px;
}

.incident-approval-grid form {
	margin-top: 9px;
}

.incident-approval-grid button {
	width: 100%;
}

.incident-scan-controls,
.incident-scan-review-heading {
	align-items: flex-end;
	display: flex;
	gap: 14px;
	justify-content: space-between;
}

.incident-scan-controls label { flex: 1 1 auto; margin-bottom: 0; }
.incident-scan-controls button,
.incident-scan-review-heading button { flex: 0 0 auto; white-space: nowrap; }
.incident-scan-review-heading { align-items: center; margin-bottom: 10px; }
.incident-scan-review-heading h3,
.incident-scan-review-heading p { margin: 0; }
.incident-scan-review-heading p { color: #5c6872; font-size: 12px; margin-top: 4px; }
.incident-scan-table-wrap { border: solid #aab4bc 1px; margin-top: 12px; max-height: 680px; overflow: auto; }
.incident-scan-table { border-collapse: collapse; font-size: 12px; width: 100%; }
.incident-scan-table th,
.incident-scan-table td { border: solid #c5ccd2 1px; padding: 7px; text-align: left; vertical-align: top; }
.incident-scan-table thead th { background: #263744; color: #ffffff; position: sticky; top: 0; z-index: 2; }
.incident-scan-table tbody > tr > th { min-width: 205px; width: 25%; }
.incident-scan-table input,
.incident-scan-table select,
.incident-scan-table textarea {
	background: #ffffff;
	border: solid #9aa6af 1px;
	border-radius: 2px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 12px;
	margin: 0;
	min-width: 260px;
	padding: 7px;
	width: 100%;
}
.incident-scan-table select[multiple] { min-height: 88px; }
.incident-scan-table textarea { line-height: 1.35; resize: vertical; }
.incident-scan-section-row th { background: #dce7ef; color: #1d3445; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.incident-scan-review-only { background: #f3f4f5; }
.incident-scan-review-only th small,
.incident-scan-source small { color: #68737b; display: block; font-size: 10px; font-weight: normal; margin-top: 4px; }
.incident-scan-source { min-width: 135px; width: 18%; }
.incident-scan-warnings { background: #fff8e6; border: solid #d6a543 1px; border-radius: 3px; margin: 10px 0; padding: 10px 12px; }
.incident-scan-warnings ul { margin: 6px 0 0 18px; }
.incident-scan-populate-status { color: #245f34; font-weight: bold; margin-top: 10px; }

@media (max-width: 950px) {
	.incident-form-grid-four,
	.incident-checkbox-grid {
		grid-template-columns: repeat(2, minmax(160px, 1fr));
	}
}

@media (max-width: 700px) {
	.incident-dashboard-hero,
	.incident-form-hero,
	.incident-workflow-heading,
	.incident-scan-controls,
	.incident-scan-review-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.incident-dashboard-metrics,
	.incident-timeline-grid,
	.incident-form-grid-two,
	.incident-form-grid-three,
	.incident-form-grid-four,
	.incident-checkbox-grid,
	.incident-existing-attachments,
	.incident-verification-stage-grid,
	.incident-approval-grid {
		grid-template-columns: 1fr;
	}

	.incident-new-button,
	.incident-form-actions > *,
	.incident-scan-controls button,
	.incident-scan-review-heading button {
		box-sizing: border-box;
		width: 100%;
	}

	.incident-form-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.incident-work-area-gallery {
		grid-template-columns: repeat(2, minmax(100px, 1fr));
	}
}

@media print {
	.nav,
	.incident-form-actions,
	.incident-new-button,
	.incident-approval-grid form,
	.incident-report-form input[type="file"],
	.incident-scan-panel,
	.incident-scan-review {
		display: none;
	}

	.incident-form-panel,
	.incident-workflow-panel {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}

