/* ==========================================================================
   Air Premier Dental Lab — lab order form (/lab-order/)
   Loaded only on that page. Uses the portal's existing design tokens and the
   .ngbs-req form primitives; only the page layout and the extras below are
   defined here, so nothing else on the site changes.
   ========================================================================== */

.opl-page {
	background: #ffffff;
}

/* --- Intro ---------------------------------------------------------------- */

.opl-intro {
	padding: 52px 0 8px;
}

.opl-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 44px;
	align-items: start;
}

.opl-intro .ngbs-prose p {
	max-width: 56ch;
}

.opl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.opl-chips li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 7px 13px;
	border: 1px solid #dbe4ee;
	border-radius: 999px;
	background: #f8fbfd;
	font-size: 12.5px;
	font-weight: 600;
	color: #31445c;
}

.opl-chips li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ngbs-teal);
}

.opl-intro-card h3 {
	margin: 0 0 14px;
	font-size: 16px;
}

.opl-small {
	margin: 14px 0 0;
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--ngbs-muted);
}

/* --- Layout --------------------------------------------------------------- */

.opl-body {
	padding: 30px 0 72px;
}

.opl-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 316px;
	gap: 34px;
	align-items: start;
}

.opl-main .ngbs-req {
	max-width: none;
	margin: 0;
}

/* --- Form groups ---------------------------------------------------------- */

.opl-group {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.opl-group + .opl-group {
	padding-top: 22px;
	border-top: 1px solid #eef2f7;
}

.opl-legend {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 4px;
	padding: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--ngbs-navy);
	letter-spacing: -0.01em;
}

.opl-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--ngbs-teal-soft);
	color: var(--ngbs-teal-dark);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.opl-group-hint {
	margin: 0 0 16px 36px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ngbs-muted);
}

.opl-hint {
	font-size: 11.8px;
	line-height: 1.55;
	color: #8a99ab;
}

.opl-form-card .ngbs-req-head {
	margin-bottom: 4px;
}

/* --- Arriving from Dento (chart number pre-filled) ------------------------ */

.opl-emr-note {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: baseline;
	margin: 0 0 18px;
	padding: 11px 14px;
	border: 1px solid #bfe6df;
	border-left: 3px solid var(--ngbs-teal);
	border-radius: 10px;
	background: #f2fbf9;
	font-size: 12.5px;
	line-height: 1.55;
	color: #23564f;
}

.opl-emr-note strong {
	font-weight: 650;
	color: #0f3f39;
}

/* --- File input ----------------------------------------------------------- */

.opl-field-file .opl-file-drop {
	position: relative;
	padding: 16px 18px;
	border: 1px dashed #c9d6e4;
	border-radius: 12px;
	background: #f8fbfd;
	transition: border-color 0.16s ease, background 0.16s ease;
}

.opl-field-file .opl-file-drop:hover,
.opl-field-file .opl-file-drop:focus-within {
	border-color: var(--ngbs-teal);
	background: #f2fbf9;
}

.opl-field-file input[type="file"] {
	width: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 13px;
	color: var(--ngbs-ink);
	cursor: pointer;
}

.opl-field-file input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 9px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--ngbs-navy);
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}

.opl-field-file input[type="file"]::file-selector-button:hover {
	background: var(--ngbs-navy-2);
}

.opl-file-meta {
	display: block;
	margin-top: 8px;
	font-size: 11.8px;
	color: var(--ngbs-muted);
}

.opl-file-meta.is-over {
	color: #b92c3e;
	font-weight: 600;
}

/* --- Actions -------------------------------------------------------------- */

.opl-actions {
	align-items: flex-start;
}

.opl-hotline {
	display: inline-block;
	margin-left: 4px;
	color: #78909f;
}

/* --- Buttons on light backgrounds ---------------------------------------- */

.opl-btn-outline {
	border: 1px solid #c9d6e4;
	background: #ffffff;
	color: var(--ngbs-navy);
}

.opl-btn-outline:hover {
	border-color: var(--ngbs-teal);
	background: var(--ngbs-teal-soft);
	color: var(--ngbs-teal-dark);
}

/* --- Gate ----------------------------------------------------------------- */

.opl-gate .opl-gate-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: var(--ngbs-teal-soft);
	font-size: 19px;
}

.opl-gate h3 {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 800;
	color: var(--ngbs-navy);
}

.opl-gate p {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--ngbs-body);
}

.opl-gate .ngbs-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* --- Receipt -------------------------------------------------------------- */

.opl-receipt {
	padding: 30px 32px 28px;
	border: 1px solid var(--ngbs-line);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 38px rgba(15, 39, 68, 0.06);
}

.opl-receipt-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 22px;
}

.opl-receipt-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ngbs-teal-dark);
}

.opl-receipt-head h3 {
	margin: 4px 0 8px;
	font-size: 21px;
	font-weight: 800;
	color: var(--ngbs-navy);
}

.opl-receipt-head h3 strong {
	color: var(--ngbs-teal-dark);
	letter-spacing: 0.01em;
}

.opl-receipt-head p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--ngbs-body);
}

.opl-summary {
	width: 100%;
	margin: 0 0 22px;
	border-collapse: collapse;
	font-size: 13.5px;
}

.opl-summary th,
.opl-summary td {
	padding: 9px 12px;
	border-bottom: 1px solid #eef2f7;
	text-align: left;
	vertical-align: top;
}

.opl-summary th {
	width: 38%;
	font-size: 12px;
	font-weight: 700;
	color: #6b7c90;
	background: #fafcfe;
}

.opl-summary td {
	color: var(--ngbs-ink);
}

.opl-summary a {
	color: var(--ngbs-teal-dark);
}

/* --- Aside ---------------------------------------------------------------- */

.opl-aside {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: calc(var(--admin-bar, 0px) + 96px);
}

.opl-aside-card {
	padding: 22px 22px 20px;
	border-radius: 16px;
}

.opl-aside-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 800;
	color: var(--ngbs-navy);
}

.opl-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: oplstep;
}

.opl-steps li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 34px;
	counter-increment: oplstep;
}

.opl-steps li:last-child {
	margin-bottom: 0;
}

.opl-steps li::before {
	content: counter(oplstep);
	position: absolute;
	left: 0;
	top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ngbs-teal-soft);
	color: var(--ngbs-teal-dark);
	font-size: 11px;
	font-weight: 800;
}

.opl-steps strong {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	color: var(--ngbs-navy);
}

.opl-steps span {
	display: block;
	font-size: 12.3px;
	line-height: 1.6;
	color: var(--ngbs-muted);
}

.opl-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.opl-list li {
	margin: 0 0 10px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ngbs-muted);
}

.opl-list li:last-child {
	margin-bottom: 0;
}

.opl-list strong {
	display: inline-block;
	min-width: 78px;
	color: var(--ngbs-ink);
}

.opl-aside-contact .opl-small {
	margin-top: 0;
	margin-bottom: 10px;
}

.opl-contact-line {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
}

.opl-contact-line a {
	color: var(--ngbs-teal-dark);
	text-decoration: none;
}

.opl-contact-line a:hover {
	color: var(--ngbs-navy);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1023px) {
	.opl-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.opl-aside {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.opl-aside-contact {
		grid-column: 1 / -1;
	}

	.opl-intro-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}
}

@media (max-width: 781px) {
	.opl-intro {
		padding: 34px 0 4px;
	}

	.opl-body {
		padding: 22px 0 48px;
	}

	.opl-aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.opl-receipt {
		padding: 24px 18px 20px;
		border-radius: 14px;
	}

	.opl-receipt-head {
		flex-direction: column;
		gap: 12px;
	}

	.opl-group-hint {
		margin-left: 0;
	}

	.opl-summary th,
	.opl-summary td {
		padding: 8px 9px;
		font-size: 12.8px;
	}

	.opl-summary th {
		width: 44%;
	}

	.opl-gate .ngbs-hero-actions {
		flex-direction: column;
	}

	.opl-gate .ngbs-hero-actions .ngbs-btn {
		width: 100%;
	}
}

/* ==========================================================================
   My Lab Orders (1.2.0)
   The New Lab Order / My Lab Orders switch at the top of the page and the
   doctor's own case cards. Everything is scoped under .opl-* so no other page
   or theme element changes.
   ========================================================================== */

/* --- View switch ---------------------------------------------------------- */

.opl-tabbar {
	padding: 16px 0 0;
	background: #ffffff;
}

.opl-viewtabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border: 1px solid #e3e9f0;
	border-radius: 999px;
	background: #f4f7fb;
}

.opl-viewtab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 38px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	color: #5d6f84;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.opl-viewtab:hover {
	color: #0f2744;
	background: #e9eff6;
}

.opl-viewtab.is-active {
	background: #0f2744;
	color: #ffffff;
	box-shadow: 0 6px 14px rgba(15, 39, 68, 0.16);
}

.opl-viewtab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e0e7ef;
	color: #46586d;
	font-size: 11px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.opl-viewtab.is-active .opl-viewtab-count {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.opl-viewtab-new {
	display: inline-flex;
	align-items: center;
	height: 19px;
	padding: 0 7px;
	border-radius: 999px;
	background: #0d9488;
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.opl-viewtab.is-active .opl-viewtab-new {
	background: #0d9488;
	color: #ffffff;
}

/* --- Head ----------------------------------------------------------------- */

.opl-body--orders {
	padding: 26px 0 72px;
}

.opl-myorders-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 22px;
}

.opl-myorders-copy h2 {
	margin: 6px 0 8px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: #0f2744;
}

.opl-myorders-copy p {
	max-width: 62ch;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: #3c4c5f;
}

.opl-myorders-new {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	height: 42px;
	padding: 0 18px;
	border-radius: 10px;
	background: #0d9488;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(13, 148, 136, 0.22);
	transition: background-color 0.15s ease;
}

.opl-myorders-new:hover {
	background: #0b7d73;
	color: #ffffff;
}

/* --- Cards ---------------------------------------------------------------- */

.opl-myorders-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.opl-mycase {
	position: relative;
	overflow: hidden;
	border: 1px solid #e3e9f0;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 26px rgba(15, 39, 68, 0.055);
}

.opl-mycase::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #2dd4bf;
}

.opl-mycase--production::before {
	background: #f59e0b;
}

.opl-mycase--ready::before {
	background: #10b981;
}

.opl-mycase--invoiced::before {
	background: #94a3b8;
}

.opl-mycase:target {
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25), 0 12px 26px rgba(15, 39, 68, 0.08);
}

.opl-mycase-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 18px;
	padding: 16px 22px 14px 26px;
	border-bottom: 1px solid #eef2f7;
}

.opl-mycase-id {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.opl-mycase-ref {
	font-size: 15.5px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #0f2744;
	font-variant-numeric: tabular-nums;
}

.opl-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e6f6f4;
	color: #0b5f57;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.opl-status-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.opl-status-pill--production {
	background: #fff4e2;
	color: #a2560a;
}

.opl-status-pill--ready {
	background: #e7f8f0;
	color: #0a7250;
}

.opl-status-pill--invoiced {
	background: #eef2f7;
	color: #46586d;
}

.opl-mycase-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 12.5px;
	color: #6b7c90;
}

.opl-mycase-dates strong {
	font-weight: 700;
	color: #1b2a3d;
}

.opl-mycase-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 286px;
	gap: 26px;
	padding: 18px 24px 20px 26px;
}

.opl-mycase-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 22px;
	margin: 0;
}

.opl-mycase-fact dt {
	margin: 0 0 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #93a3b5;
}

.opl-mycase-fact dd {
	margin: 0;
	font-size: 13.2px;
	font-weight: 600;
	line-height: 1.5;
	color: #1b2a3d;
	overflow-wrap: anywhere;
}

.opl-mycase-side {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-left: 22px;
	border-left: 1px dashed #dde6f0;
}

.opl-mycase-label {
	display: block;
	margin-bottom: 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #93a3b5;
}

.opl-mycase-file {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #d7e4e1;
	border-radius: 12px;
	background: #f4fbfa;
	color: #1b2a3d;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.opl-mycase-file:hover {
	border-color: #0d9488;
	background: #eaf7f5;
}

.opl-mycase-file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: #0d9488;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
}

.opl-mycase-file-text {
	min-width: 0;
}

.opl-mycase-file-text strong {
	display: block;
	font-size: 12.8px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opl-mycase-file-text span {
	display: block;
	font-size: 11.5px;
	color: #6b7c90;
}

.opl-mycase-cloud {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	color: #0b7d73;
	text-decoration: none;
}

.opl-mycase-cloud:hover {
	color: #0f2744;
	text-decoration: underline;
}

.opl-mycase-notes p {
	margin: 0;
	font-size: 12.8px;
	line-height: 1.6;
	color: #3c4c5f;
}

.opl-mycase-none {
	margin: 0;
	font-size: 12px;
	color: #93a3b5;
}

.opl-mycase-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 15px 24px 16px 26px;
	border-top: 1px solid #eef2f7;
	background: #fafcfe;
}

.opl-mycase-invoice {
	width: 100%;
}

.opl-mycase-invoice-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	font-size: 14px;
}

.opl-mycase-invoice-line a {
	color: #0f2744;
	font-weight: 800;
	text-decoration: none;
}

.opl-mycase-invoice-line a:hover {
	color: #0b7d73;
	text-decoration: underline;
}

.opl-mycase-fee {
	font-size: 16px;
	font-weight: 800;
	color: #0b7d73;
	font-variant-numeric: tabular-nums;
}

.opl-mycase-pending {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: #6b7c90;
}

/* --- Empty state and pages ------------------------------------------------ */

.opl-myorders-empty {
	padding: 52px 28px 54px;
	border: 1px dashed #cfdbe8;
	border-radius: 18px;
	background: #ffffff;
	text-align: center;
}

.opl-myorders-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: #e6f6f4;
	color: #0b7d73;
	font-size: 22px;
}

.opl-myorders-empty h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	color: #0f2744;
}

.opl-myorders-empty p {
	max-width: 52ch;
	margin: 0 auto 20px;
	font-size: 13.5px;
	line-height: 1.65;
	color: #6b7c90;
}

.opl-myorders-pages {
	margin-top: 22px;
	text-align: center;
	font-size: 13px;
	color: #46586d;
}

.opl-myorders-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	margin: 0 2px;
	padding: 0 10px;
	border: 1px solid #e3e9f0;
	border-radius: 9px;
	background: #ffffff;
	color: #46586d;
	font-weight: 700;
	text-decoration: none;
}

.opl-myorders-pages .page-numbers.current,
.opl-myorders-pages .page-numbers:hover {
	border-color: #0d9488;
	color: #0b7d73;
}

.opl-myorders-pages .page-numbers.current {
	background: #e6f6f4;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1023px) {
	.opl-mycase-body {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.opl-mycase-side {
		padding-left: 0;
		padding-top: 16px;
		border-left: 0;
		border-top: 1px dashed #dde6f0;
	}
}

@media (max-width: 781px) {
	.opl-tabbar {
		padding: 12px 0 0;
	}

	.opl-viewtabs {
		display: flex;
		width: 100%;
	}

	.opl-viewtab {
		flex: 1 1 0;
		padding: 0 10px;
		font-size: 12.8px;
	}

	.opl-body--orders {
		padding: 20px 0 48px;
	}

	.opl-myorders-copy h2 {
		font-size: 22px;
	}

	.opl-myorders-new {
		width: 100%;
		justify-content: center;
	}

	.opl-mycase-top {
		padding: 14px 16px 12px 20px;
	}

	.opl-mycase-body {
		padding: 16px 16px 18px 20px;
	}

	.opl-mycase-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 16px;
	}

	.opl-mycase-foot {
		padding: 14px 16px 15px 20px;
	}

	.opl-myorders-empty {
		padding: 40px 20px 42px;
	}
}
