.itp-dashboard-header {
	border-top: 4px solid #1f4f7a;
}

.itp-dashboard-header h2,
.itp-form-heading h2,
.itp-plan-heading h3 {
	margin-bottom: 4px;
}

.itp-dashboard-header p,
.itp-form-heading p,
.itp-plan-heading p {
	margin-top: 0;
	color: #59636d;
}

.itp-message {
	margin: 12px 0;
}

.itp-dashboard-table th:last-child,
.itp-dashboard-table td:last-child {
	white-space: nowrap;
}

.itp-empty {
	padding: 28px !important;
	text-align: center !important;
	color: #6b7280;
}

.button.button-small {
	padding: 5px 8px;
	font-size: 12px;
}

.button.button-secondary {
	background: #66717d;
}

.itp-form-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	border-top: 4px solid #1f4f7a;
}

.itp-form-heading .button {
	flex: 0 0 auto;
}

.itp-form input,
.itp-form select,
.itp-form textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #9aa0a6;
	border-radius: 2px;
	background: #fff9df;
	color: #17202a;
	font: inherit;
	padding: 6px 7px;
}

.itp-form input:focus,
.itp-form select:focus,
.itp-form textarea:focus {
	outline: 2px solid rgba(31, 79, 122, .25);
	border-color: #1f4f7a;
}

.itp-form textarea {
	resize: vertical;
	min-height: 44px;
}

.itp-document {
	padding: 0;
	overflow: hidden;
	border: 1px solid #555;
}

.itp-document-title {
	display: grid;
	grid-template-columns: minmax(150px, 1fr) minmax(320px, 2fr) minmax(150px, 1fr);
	align-items: center;
	background: #d9dde1;
	border-bottom: 2px solid #50555a;
	text-align: center;
}

.itp-document-title > * {
	margin: 0;
	padding: 12px;
	border-right: 1px solid #73777b;
}

.itp-document-title > *:last-child {
	border-right: 0;
}

.itp-document-title h2 {
	font-size: 24px;
	letter-spacing: .04em;
}

.itp-document-title span {
	font-weight: 700;
}

.itp-core-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(180px, 1fr));
	gap: 0;
	background: #b7bcc1;
}

.itp-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 8px;
	border-right: 1px solid #8a8f94;
	border-bottom: 1px solid #8a8f94;
}

.itp-field > span {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .025em;
}

.itp-entry-panel {
	padding: 0;
	overflow: hidden;
}

.itp-entry-panel summary {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	padding: 13px 16px;
	background: #d1d4d7;
	border-bottom: 1px solid #7b8085;
}

.itp-entry-panel summary span {
	color: #5e656c;
	font-size: 12px;
}

.itp-entry-content {
	padding: 14px;
	background: #e8e9ea;
}

.itp-entry-section {
	margin-bottom: 15px;
	border: 1px solid #858b90;
	background: #d9dbdd;
}

.itp-entry-section:last-child {
	margin-bottom: 0;
}

.itp-entry-section > h3,
.itp-entry-section > div > h3 {
	margin: 0;
	padding: 8px 10px;
	background: #9da2a7;
	border-bottom: 1px solid #73787d;
	font-size: 15px;
}

.itp-entry-matrix {
	width: 100%;
	min-width: 660px;
	border-collapse: collapse;
}

.itp-entry-matrix th,
.itp-entry-matrix td {
	border: 1px solid #858b90;
	padding: 5px;
	text-align: left;
}

.itp-entry-matrix th {
	width: 40%;
	background: #d2d4d5;
}

.itp-entry-matrix thead th {
	background: #b8bcc0;
	text-align: center;
}

.itp-entry-matrix .itp-shell-heading,
.itp-shell-cell {
	background: #f4d6d2;
}

.itp-entry-matrix .itp-tube-heading,
.itp-tube-cell {
	background: #d7e9f7;
}

.itp-entry-split {
	display: grid;
	grid-template-columns: 1fr 1.35fr;
	gap: 0;
}

.itp-entry-split > div:first-child {
	border-right: 1px solid #858b90;
}

.itp-field-grid {
	display: grid;
	background: #d9dbdd;
}

.itp-field-grid-two {
	grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.itp-coating-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.itp-coating-card:first-child {
	border-right: 1px solid #858b90;
}

.itp-coating-card h4 {
	margin: 0;
	padding: 8px 10px;
	background: #c2c5c8;
	border-bottom: 1px solid #858b90;
}

.itp-plan-panel {
	padding: 0;
	overflow: hidden;
}

.itp-plan-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 16px;
	background: #d1d4d7;
	border-bottom: 2px solid #565b60;
}

.itp-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 5px;
	max-width: 620px;
}

.itp-legend span {
	padding: 4px 6px;
	border: 1px solid #a3a7aa;
	background: #fff;
	font-size: 11px;
}

.itp-plan-scroll {
	max-height: 72vh;
	overflow: auto;
}

.itp-plan-table {
	width: 100%;
	min-width: 1450px;
	border-collapse: collapse;
	font-size: 12px;
}

.itp-plan-table th,
.itp-plan-table td {
	border: 1px solid #73777a;
	padding: 4px;
	vertical-align: top;
}

.itp-plan-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #b7bcc1;
	text-align: center;
}

.itp-plan-table thead tr:nth-child(2) th {
	top: 31px;
}

.itp-plan-table .itp-ai-heading,
.itp-ai-cell {
	background: #f5c18c;
}

.itp-plan-table .itp-sheco-heading,
.itp-sheco-cell {
	background: #b9d8ef;
}

.itp-plan-table .itp-client-heading,
.itp-client-cell {
	background: #fff1a8;
}

.itp-plan-table .itp-govt-heading,
.itp-govt-cell {
	background: #c6e5bd;
}

.itp-plan-table td:nth-child(3) {
	min-width: 265px;
}

.itp-plan-table td:nth-child(4) {
	min-width: 245px;
}

.itp-plan-table td:nth-child(n+5) {
	min-width: 130px;
}

.itp-plan-table input,
.itp-plan-table select,
.itp-plan-table textarea {
	background: rgba(255, 255, 255, .78);
	font-size: 11px;
}

.itp-plan-table input + input,
.itp-plan-table textarea + textarea {
	margin-top: 4px;
}

.itp-activity-detail {
	color: #4c5660;
}

.itp-number {
	width: 48px;
	text-align: center;
	font-weight: 700;
	background: #e3e5e7;
}

.itp-notes-row th {
	background: #d5d7d9;
	text-align: right;
}

.itp-notes-row td {
	background: #ededed;
}

.itp-save-bar {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	position: sticky;
	bottom: 0;
	z-index: 5;
	border-top: 3px solid #1f4f7a;
	box-shadow: 0 -3px 10px rgba(0, 0, 0, .12);
}

.itp-save-bar .button {
	border: 0;
	cursor: pointer;
	font: inherit;
}

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

	.itp-entry-split,
	.itp-coating-grid {
		grid-template-columns: 1fr;
	}

	.itp-entry-split > div:first-child,
	.itp-coating-card:first-child {
		border-right: 0;
		border-bottom: 1px solid #858b90;
	}

	.itp-plan-heading {
		flex-direction: column;
	}

	.itp-legend {
		justify-content: flex-start;
	}
}

@media (max-width: 700px) {
	.itp-form-heading,
	.itp-document-title {
		display: block;
	}

	.itp-core-grid,
	.itp-field-grid-two {
		grid-template-columns: 1fr;
	}

	.itp-document-title > * {
		border-right: 0;
		border-bottom: 1px solid #73777b;
	}

	.itp-entry-panel summary {
		flex-direction: column;
	}
}


.itp-dashboard-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.itp-pdf-button {
	background: #a11d2b;
}

.itp-delete-form {
	display: inline-flex;
	margin: 0 0 0 4px;
}

.itp-delete-button {
	background: #8f1d1d;
}

.itp-form-heading-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
}

.itp-scan-link,
.itp-scan-button {
	background: #166a5a;
}

.itp-drawing-scan-panel {
	padding: 0;
	overflow: hidden;
	border-left: 4px solid #166a5a;
}

.itp-drawing-scan-panel summary {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	padding: 12px 15px;
	background: #d8e8e4;
	border-bottom: 1px solid #7d9d95;
}

.itp-drawing-scan-panel summary span {
	color: #4f625e;
	font-size: 12px;
}

.itp-drawing-scan-content {
	display: grid;
	grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.5fr) auto;
	align-items: end;
	gap: 14px;
	padding: 14px;
	background: #edf4f2;
}

.itp-drawing-file-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-weight: 700;
}

.itp-drawing-file-field > span {
	font-size: 12px;
	text-transform: uppercase;
}

.itp-drawing-file-field input[type="file"] {
	background: #fff;
}

.itp-drawing-scan-copy p {
	margin: 0 0 5px;
}

.itp-drawing-scan-copy small {
	display: block;
	color: #52615e;
	line-height: 1.35;
}

.itp-drawing-scan-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 7px;
}

.itp-drawing-scan-actions .button {
	margin: 0;
	white-space: nowrap;
}

.itp-drawing-scan-actions .button:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.itp-add-notes-status {
	max-width: 250px;
	color: #52615e;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
}

.itp-add-notes-status.is-good {
	color: #176747;
}

.itp-add-notes-status.is-warn {
	color: #9a4b16;
}

.itp-drawing-review-panel {
	padding: 0;
	overflow: hidden;
	border-left: 4px solid #3f5f8f;
}

.itp-drawing-review-panel summary {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	padding: 12px 15px;
	background: #dce6f4;
	border-bottom: 1px solid #8fa4c1;
}

.itp-drawing-review-panel summary span {
	color: #52657e;
	font-size: 12px;
}

.itp-drawing-review-content {
	display: grid;
	gap: 14px;
	padding: 14px;
	background: #f3f6fa;
}

.itp-review-metadata {
	margin: 0;
	color: #4c5e75;
	font-size: 12px;
	font-weight: 700;
}

.itp-review-warnings {
	padding: 10px 12px;
	border: 1px solid #d2a63c;
	background: #fff5d6;
}

.itp-review-warnings ul {
	margin: 5px 0 0 18px;
	padding: 0;
}

.itp-review-section h3 {
	margin: 0;
	padding: 8px 10px;
	background: #647d9f;
	color: #fff;
	font-size: 14px;
}

.itp-review-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	background: #fff;
}

.itp-review-table th,
.itp-review-table td {
	padding: 5px;
	border: 1px solid #aeb9c7;
	vertical-align: top;
}

.itp-review-table thead th {
	background: #d9e2ef;
	color: #24344a;
	font-size: 11px;
	text-align: left;
	white-space: nowrap;
}

.itp-review-table tbody th {
	min-width: 145px;
	background: #e9eef5;
	text-align: left;
}

.itp-review-table input,
.itp-review-table select,
.itp-review-table textarea {
	width: 100%;
	min-width: 95px;
	box-sizing: border-box;
}

.itp-review-nozzle-table input {
	min-width: 110px;
}

.itp-review-notes-table textarea {
	min-width: 420px;
	resize: vertical;
}

.itp-review-source {
	min-width: 145px;
	background: #f7f9fc;
}

.itp-review-source-page {
	display: block;
	font-weight: 700;
	color: #2c4d79;
}

.itp-review-source small {
	display: block;
	margin-top: 2px;
	color: #627187;
	line-height: 1.25;
}
.itp-line-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(260px, 1fr));
	gap: 10px;
	padding: 10px;
}

.itp-line-group {
	border: 1px solid #9a9ea2;
	background: #cfd2d4;
}

.itp-line-group h4 {
	margin: 0;
	padding: 7px 9px;
	background: #b8bcc0;
	border-bottom: 1px solid #92969a;
}

.itp-numbered-line {
	display: grid;
	grid-template-columns: 26px minmax(140px, 1fr) minmax(85px, .42fr) minmax(120px, .55fr);
	align-items: center;
	gap: 5px;
	padding: 3px 6px;
	border-bottom: 1px solid #b3b6b9;
}

.itp-numbered-line:last-child {
	border-bottom: 0;
}

.itp-numbered-line span {
	font-size: 11px;
	font-weight: 700;
	text-align: right;
}

.itp-numbered-line input {
	min-width: 0;
}

.itp-numbered-line-header {
	background: #e5e7e9;
	padding-top: 5px;
	padding-bottom: 5px;
}

.itp-numbered-line-header span {
	font-size: 10px;
	text-align: center;
}

.itp-form input[readonly] {
	background: #e8eef3;
	font-weight: 700;
}

.itp-temperature-wrap {
	display: grid;
	grid-template-columns: minmax(90px, 1fr) auto;
	align-items: center;
	gap: 7px;
}

.itp-temperature-c {
	min-width: 62px;
	font-weight: 700;
	white-space: nowrap;
}

.itp-pwht-hidden .itp-pwht-value-wrap,
.itp-pwht-row-hidden {
	display: none;
}

.itp-pwht-hidden {
	background: #eceeef !important;
}

.itp-exclude-cell {
	width: 62px;
	min-width: 62px !important;
	background: #f0f1f2;
	text-align: center;
}

.itp-exclude-cell label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 700;
}

.itp-exclude-cell input {
	width: auto;
	margin: 0;
}

.itp-responsibility-heading-input {
	border: 1px dashed rgba(0, 0, 0, .45) !important;
	background: rgba(255, 255, 255, .7) !important;
	font-weight: 700 !important;
	text-align: center;
}

@media (max-width: 1050px) {
	.itp-line-groups,
	.itp-drawing-scan-content {
		grid-template-columns: 1fr;
	}

	.itp-drawing-scan-actions {
		justify-self: start;
	}
}

@media (max-width: 700px) {
	.itp-form-heading-actions {
		justify-content: flex-start;
	}

	.itp-drawing-scan-panel summary,
	.itp-drawing-review-panel summary {
		flex-direction: column;
	}

	.itp-numbered-line:not(.itp-numbered-line-header) {
		grid-template-columns: 26px minmax(0, 1fr);
	}

	.itp-numbered-line:not(.itp-numbered-line-header) input {
		grid-column: 2;
	}

	.itp-numbered-line-header {
		display: none;
	}
}
