/* Driver dispatch order — screen + print */

.nh-dispatch-lookup {
	max-width: 760px;
	margin: 0 auto 2rem;
	padding: 0 1rem;
}

.nh-dispatch-lookup__hero {
	padding: 2rem;
	margin-bottom: 1.5rem;
}

.nh-dispatch-lookup__hero h2 {
	margin: 0 0 0.5rem;
	color: var(--nh-navy, #0f172a);
}

.nh-dispatch-lookup__form {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

.nh-dispatch-lookup__field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #374151;
}

.nh-dispatch-lookup__input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
}

.nh-dispatch-lookup__input--short {
	max-width: 140px;
	font-family: ui-monospace, monospace;
	letter-spacing: 0.15em;
}

#nh-do-dispatch {
	font-family: ui-monospace, monospace;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nh-dispatch-lookup__msg {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
}

.nh-dispatch-lookup__msg--err {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* Document */
.nh-dispatch-doc {
	max-width: 820px;
	margin: 0 auto;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	font-size: 0.95rem;
	color: #1f2937;
}

.nh-dispatch-print-body {
	margin: 0;
	padding: 1rem;
	background: #f3f4f6;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nh-dispatch-doc__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 3px solid var(--nh-primary, #b50101);
}

.nh-dispatch-doc__eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--nh-primary, #b50101);
}

.nh-dispatch-doc__header h1 {
	margin: 0;
	font-size: 1.4rem;
	color: #0f172a;
}

.nh-dispatch-doc__office {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	color: #4b5563;
}

.nh-dispatch-doc__number-box {
	text-align: right;
	padding: 0.75rem 1rem;
	background: #f5f0e8;
	border: 2px solid #d9cfc0;
	border-radius: 8px;
	min-width: 180px;
}

.nh-dispatch-doc__number-box span {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6b7280;
}

.nh-dispatch-doc__number-box strong {
	display: block;
	font-family: ui-monospace, monospace;
	font-size: 1.35rem;
	color: var(--nh-primary, #b50101);
}

.nh-dispatch-doc__number-box small {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	color: #6b7280;
}

.nh-dispatch-doc__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.nh-dispatch-doc__card {
	padding: 0.85rem 1rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.nh-dispatch-doc__card h3 {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
}

.nh-dispatch-doc__card p {
	margin: 0.2rem 0;
}

.nh-dispatch-doc__locations {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.nh-dispatch-doc__location {
	padding: 1rem;
	border-radius: 8px;
	border-left: 4px solid #9ca3af;
	background: #f9fafb;
}

.nh-dispatch-doc__location--pickup {
	border-left-color: #22c55e;
}

.nh-dispatch-doc__location--dropoff {
	border-left-color: #ef4444;
}

.nh-dispatch-doc__location h3 {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	text-transform: uppercase;
}

.nh-dispatch-doc__location p {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
}

.nh-dispatch-doc__route {
	display: flex;
	gap: 2rem;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	background: #eff6ff;
	border-radius: 8px;
}

.nh-dispatch-doc__pricing h3,
.nh-dispatch-doc__checklist h3,
.nh-dispatch-doc__notes h3 {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #374151;
}

.nh-dispatch-doc__pricing table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

.nh-dispatch-doc__pricing td {
	padding: 0.4rem 0;
	border-bottom: 1px solid #e5e7eb;
}

.nh-dispatch-doc__pricing td:last-child {
	text-align: right;
	width: 100px;
	font-weight: 600;
}

.nh-dispatch-doc__total td {
	font-weight: 700;
	border-top: 2px solid #374151;
}

.nh-dispatch-doc__checklist ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem 1rem;
}

.nh-dispatch-doc__checklist li {
	font-size: 0.88rem;
}

.nh-dispatch-doc__check {
	display: inline-block;
	width: 1.2em;
	font-family: monospace;
}

.nh-dispatch-doc__checklist em {
	color: #6b7280;
	font-style: normal;
	margin-left: 0.25rem;
}

.nh-dispatch-doc__lines div {
	height: 1.75rem;
	border-bottom: 1px solid #d1d5db;
	margin-bottom: 0.5rem;
}

.nh-dispatch-doc__footer {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px dashed #d1d5db;
	font-size: 0.8rem;
	color: #6b7280;
	text-align: center;
}

.nh-dispatch-doc__actions {
	margin-top: 1.25rem;
	text-align: center;
}

@media (max-width: 640px) {
	.nh-dispatch-doc__grid,
	.nh-dispatch-doc__locations,
	.nh-dispatch-doc__checklist ul {
		grid-template-columns: 1fr;
	}

	.nh-dispatch-doc__header {
		flex-direction: column;
	}
}

@media print {
	body.nh-dispatch-print-body {
		background: #fff;
		padding: 0;
	}

	.nh-dispatch-lookup,
	.nh-no-print {
		display: none !important;
	}

	body:not(.nh-dispatch-print-body) .nh-dispatch-lookup {
		display: none;
	}

	body:not(.nh-dispatch-print-body) .nh-dispatch-doc,
	body:not(.nh-dispatch-print-body) .nh-dispatch-doc * {
		visibility: hidden;
	}

	body:not(.nh-dispatch-print-body) .nh-dispatch-doc {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}

	body:not(.nh-dispatch-print-body) #nh-dispatch-print,
	body:not(.nh-dispatch-print-body) #nh-dispatch-print * {
		visibility: visible;
	}

	.nh-dispatch-doc {
		border: none;
		box-shadow: none;
		padding: 0;
		max-width: 100%;
	}
}
