/* ==========================================================================
   Air Premier Dental Lab — Lab Desk (/lab-desk/)
   Loaded only on that page. Deep navy and teal, the same palette as the
   doctor portal; everything is scoped under .opl-desk so no other page and no
   theme element changes.
   ========================================================================== */

.opl-lab-desk-page .page-title,
.opl-lab-desk-page .entry-header,
.opl-lab-desk-page .hero-section {
	display: none;
}

.opl-lab-desk-page {
	background: #f4f7fb;
}

.opl-desk {
	--opl-navy: var(--ngbs-navy, #0f2744);
	--opl-navy-2: var(--ngbs-navy-2, #16345c);
	--opl-teal: var(--ngbs-teal, #0d9488);
	--opl-teal-dark: var(--ngbs-teal-dark, #0b7d73);
	--opl-teal-soft: var(--ngbs-teal-soft, #e6f6f4);
	--opl-ink: var(--ngbs-ink, #1b2a3d);
	--opl-body: var(--ngbs-body, #3c4c5f);
	--opl-muted: var(--ngbs-muted, #6b7c90);
	--opl-line: var(--ngbs-line, #e3e9f0);

	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 18px 56px;
	color: var(--opl-body);
	font-size: 15px;
	line-height: 1.6;
}

.opl-desk *,
.opl-desk *::before,
.opl-desk *::after {
	box-sizing: border-box;
}

/* --- Hero ---------------------------------------------------------------- */

.opl-desk-hero {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	background: linear-gradient(135deg, #0b1f38 0%, #0f2744 46%, #123a5c 100%);
	color: #e8eef7;
	box-shadow: 0 22px 44px rgba(15, 39, 68, 0.24);
}

.opl-desk-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -140px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle at center, rgba(13, 148, 136, 0.34), rgba(13, 148, 136, 0) 68%);
	pointer-events: none;
}

/* Top bar: who is signed in, and the way out. Kept above the hero copy so the
   account name and Log out sit at the right edge on every width. */
.opl-desk-herobar {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
	padding: 14px 36px 13px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.045);
}

.opl-desk-herobar-user {
	min-width: 0;
	flex: 1 1 auto;
	margin: 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: #a9bdd4;
}

.opl-desk-herobar-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	border-radius: 50%;
	background: #2dd4bf;
	vertical-align: 1px;
}

.opl-desk-herobar-user strong {
	display: inline-block;
	max-width: 100%;
	font-weight: 700;
	color: #ffffff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.opl-desk-logout {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	height: 34px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	color: #eaf1f9;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.opl-desk-logout:hover,
.opl-desk-logout:focus-visible {
	border-color: #ffffff;
	background: #ffffff;
	color: var(--opl-navy);
}

.opl-desk-logout svg {
	flex: 0 0 auto;
}

.opl-desk-herobar + .opl-desk-hero-inner {
	padding-top: 26px;
}

.opl-desk-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
	gap: 34px;
	align-items: end;
	padding: 34px 36px 32px;
}

.opl-desk-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #5eead4;
}

.opl-desk-hero h1 {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.opl-desk-hero-copy p {
	max-width: 46ch;
	margin: 0;
	font-size: 14.5px;
	line-height: 1.65;
	color: #c3d2e4;
}

.opl-desk-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.opl-desk-tile {
	position: relative;
	padding: 14px 16px 13px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
}

.opl-desk-tile span {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a9bdd4;
}

.opl-desk-tile strong {
	display: block;
	margin-top: 2px;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 800;
	color: #ffffff;
}

.opl-desk-tile--received {
	border-left: 3px solid #2dd4bf;
}

.opl-desk-tile--production {
	border-left: 3px solid #f59e0b;
}

.opl-desk-tile--ready {
	border-left: 3px solid #34d399;
}

.opl-desk-tile--invoiced {
	border-left: 3px solid #94a3b8;
}

/* --- Body ---------------------------------------------------------------- */

.opl-desk-body {
	margin-top: 26px;
}

/* --- Flash --------------------------------------------------------------- */

.opl-desk-flash {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 0 0 18px;
	padding: 14px 18px;
	border: 1px solid #b6e3dc;
	border-left: 4px solid var(--opl-teal);
	border-radius: 12px;
	background: #f0fbf9;
	font-size: 13.5px;
	color: #14514b;
}

.opl-desk-flash strong {
	font-size: 13.5px;
	font-weight: 800;
	color: #0b4a44;
}

.opl-desk-flash--warn {
	border-color: #f2d3a2;
	border-left-color: #d97706;
	background: #fff8ec;
	color: #7c4a06;
}

.opl-desk-flash--warn strong {
	color: #7c3f04;
}

.opl-desk-flash-extra {
	flex-basis: 100%;
	color: #3f5a55;
}

/* --- Toolbar ------------------------------------------------------------- */

.opl-desk-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	padding: 10px 12px;
	border: 1px solid var(--opl-line);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(15, 39, 68, 0.05);
}

.opl-desk-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.opl-desk-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--opl-body);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.opl-desk-tab:hover {
	background: #f2f6fb;
	color: var(--opl-navy);
}

.opl-desk-tab.is-active {
	background: var(--opl-navy);
	color: #ffffff;
}

.opl-desk-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 21px;
	height: 21px;
	padding: 0 6px;
	border-radius: 999px;
	background: #eef3f9;
	font-size: 11.5px;
	font-weight: 700;
	color: #4b6076;
}

.opl-desk-tab.is-active .opl-desk-tab-count {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.opl-desk-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.opl-desk-search input[type="search"] {
	width: 258px;
	max-width: 100%;
	height: 40px;
	padding: 0 13px;
	border: 1px solid #cfdae7;
	border-radius: 10px;
	background: #fbfdff;
	font-size: 13.5px;
	color: var(--opl-ink);
}

.opl-desk-search input[type="search"]:focus {
	border-color: var(--opl-teal);
	background: #ffffff;
	outline: 2px solid rgba(13, 148, 136, 0.18);
	outline-offset: 1px;
}

.opl-desk-search button {
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--opl-navy);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.opl-desk-search button:hover {
	background: var(--opl-navy-2);
}

.opl-desk-clear {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--opl-teal-dark);
	text-decoration: none;
}

.opl-desk-search-note {
	margin: 14px 2px 0;
	font-size: 13px;
	color: var(--opl-muted);
}

.opl-desk-search-note strong {
	color: var(--opl-ink);
}

/* --- Case list ----------------------------------------------------------- */

.opl-desk-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 16px;
}

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

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

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

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

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

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

.opl-case-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-case-id {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.opl-case-ref {
	font-size: 15.5px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--opl-navy);
	font-variant-numeric: tabular-nums;
}

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

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

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

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

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

.opl-case-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 12.5px;
	color: var(--opl-muted);
}

.opl-case-dates strong {
	font-weight: 700;
	color: var(--opl-ink);
}

/* --- Case body ----------------------------------------------------------- */

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

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

.opl-fact {
	min-width: 0;
}

.opl-fact--wide {
	grid-column: span 1;
}

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

.opl-fact dd {
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--opl-ink);
	overflow-wrap: anywhere;
}

.opl-fact dd a {
	color: var(--opl-teal-dark);
	text-decoration: none;
}

.opl-fact dd a:hover {
	text-decoration: underline;
}

/* --- Side: files and notes ----------------------------------------------- */

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

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

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

.opl-file-link:hover {
	border-color: var(--opl-teal);
	background: #eaf7f5;
}

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

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

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

.opl-file-text span {
	display: block;
	font-size: 11.5px;
	color: var(--opl-muted);
}

.opl-cloud-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--opl-teal-dark);
	text-decoration: none;
}

.opl-cloud-link:hover {
	color: var(--opl-navy);
	text-decoration: underline;
}

.opl-case-notes p {
	margin: 0;
	font-size: 12.8px;
	line-height: 1.6;
	color: var(--opl-body);
}

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

/* --- Case foot: status + invoice ---------------------------------------- */

.opl-case-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 28px;
	padding: 15px 24px 16px 26px;
	border-top: 1px solid #eef2f7;
	background: #fafcfe;
}

.opl-case-form {
	margin: 0;
}

.opl-case-form--status {
	flex: 0 1 330px;
}

.opl-case-form--invoice {
	flex: 0 1 400px;
}

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

.opl-case-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.opl-case-controls select {
	height: 42px;
	flex: 0 1 auto;
	width: auto;
	max-width: 230px;
	min-width: 168px;
	padding: 0 34px 0 12px;
	border: 1px solid #cfdae7;
	border-radius: 10px;
	background-color: #ffffff;
	font-size: 13.5px;
	color: var(--opl-ink);
}

.opl-case-controls select:focus {
	border-color: var(--opl-teal);
	outline: 2px solid rgba(13, 148, 136, 0.18);
	outline-offset: 1px;
}

.opl-fee {
	display: inline-flex;
	align-items: center;
	flex: 0 1 auto;
	width: 190px;
	height: 42px;
	padding: 0 4px 0 12px;
	border: 1px solid #cfdae7;
	border-radius: 10px;
	background: #ffffff;
}

.opl-fee:focus-within {
	border-color: var(--opl-teal);
	outline: 2px solid rgba(13, 148, 136, 0.18);
	outline-offset: 1px;
}

.opl-fee-symbol {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--opl-muted);
}

.opl-fee input[type="number"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 38px;
	padding: 0 10px;
	border: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 700;
	color: var(--opl-navy);
	font-variant-numeric: tabular-nums;
}

.opl-fee input[type="number"]:focus {
	outline: none;
}

.opl-fee input::-webkit-outer-spin-button,
.opl-fee input::-webkit-inner-spin-button {
	margin-left: 4px;
}

.opl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.opl-btn--ghost {
	border-color: #cfdae7;
	background: #ffffff;
	color: var(--opl-navy);
}

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

.opl-btn--primary {
	background: var(--opl-teal);
	color: #ffffff;
	box-shadow: 0 6px 14px rgba(13, 148, 136, 0.24);
}

.opl-btn--primary:hover {
	background: var(--opl-teal-dark);
}

.opl-btn.is-busy {
	opacity: 0.62;
	cursor: progress;
}

/* --- Invoiced summary ---------------------------------------------------- */

.opl-case-invoiced {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	width: 100%;
}

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

.opl-case-invoice-line a,
.opl-case-invoice-line strong {
	color: var(--opl-navy);
	font-weight: 800;
	text-decoration: none;
}

.opl-case-invoice-line a:hover {
	color: var(--opl-teal-dark);
	text-decoration: underline;
}

.opl-case-invoice-amount {
	font-size: 16px;
	font-weight: 800;
	color: var(--opl-teal-dark);
	font-variant-numeric: tabular-nums;
}

.opl-desk-inline-error {
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: #b45309;
}

/* --- Empty state --------------------------------------------------------- */

.opl-desk-empty {
	margin-top: 18px;
	padding: 48px 28px 50px;
	border: 1px dashed #cfdbe8;
	border-radius: 18px;
	background: #ffffff;
	text-align: center;
}

.opl-desk-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: var(--opl-teal-soft);
	color: var(--opl-teal-dark);
	font-size: 22px;
}

.opl-desk-empty h2 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	color: var(--opl-navy);
}

.opl-desk-empty p {
	max-width: 52ch;
	margin: 0 auto;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--opl-muted);
}

/* --- Pagination ---------------------------------------------------------- */

.opl-desk-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 24px;
	font-size: 13px;
}

.opl-desk-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--opl-line);
	border-radius: 9px;
	background: #ffffff;
	color: var(--opl-body);
	text-decoration: none;
}

.opl-desk-pages .page-numbers.current {
	border-color: var(--opl-navy);
	background: var(--opl-navy);
	color: #ffffff;
}

/* --- Gate (sign in / not allowed) --------------------------------------- */

.opl-desk--gate {
	max-width: 720px;
	padding-top: 26px;
}

.opl-desk-gate-card {
	padding: 34px 34px 30px;
	border: 1px solid var(--opl-line);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(15, 39, 68, 0.08);
}

.opl-desk-gate-card h1 {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--opl-navy);
}

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

.opl-desk-gate-note {
	margin: 0 0 16px;
	padding: 11px 14px;
	border: 1px solid #b6e3dc;
	border-left: 3px solid var(--opl-teal);
	border-radius: 10px;
	background: #f0fbf9;
	font-size: 13px;
	font-weight: 600;
	color: #14514b;
}

.opl-desk-gate-card a {
	color: var(--opl-teal-dark);
	font-weight: 600;
}

.opl-desk-gate-card form {
	margin: 20px 0 4px;
}

.opl-desk-gate-card form p {
	margin: 0 0 14px;
}

.opl-desk-gate-card label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #93a3b5;
}

.opl-desk-gate-card input[type="text"],
.opl-desk-gate-card input[type="password"] {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cfdae7;
	border-radius: 10px;
	background: #fbfdff;
	font-size: 14px;
	color: var(--opl-ink);
}

.opl-desk-gate-card input[type="text"]:focus,
.opl-desk-gate-card input[type="password"]:focus {
	border-color: var(--opl-teal);
	background: #ffffff;
	outline: 2px solid rgba(13, 148, 136, 0.18);
	outline-offset: 1px;
}

.opl-desk-gate-card input[type="checkbox"] {
	margin-right: 6px;
}

.opl-desk-gate-card input[type="submit"] {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 10px;
	background: var(--opl-teal);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.opl-desk-gate-card input[type="submit"]:hover {
	background: var(--opl-teal-dark);
}

.opl-desk-gate-foot {
	margin: 18px 0 0;
	font-size: 12.5px;
	color: var(--opl-muted);
}

/* --- Admin list status pill --------------------------------------------- */

.opl-admin-status {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	background: #e6f6f4;
	color: #0b5f57;
}

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

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

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

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

@media (max-width: 1024px) {
	.opl-desk-hero-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
		padding: 30px 28px 28px;
	}

	.opl-desk-hero h1 {
		font-size: 30px;
	}

	.opl-case-body {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

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

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

@media (max-width: 781px) {
	.opl-desk {
		padding: 6px 14px 44px;
		font-size: 14px;
	}

	.opl-desk-hero {
		border-radius: 16px;
	}

	.opl-desk-herobar {
		padding: 11px 20px 10px;
		gap: 8px 12px;
	}

	.opl-desk-herobar-lead {
		display: none;
	}

	.opl-desk-logout {
		height: 32px;
		padding: 0 12px;
		font-size: 12px;
	}

	.opl-desk-hero-inner {
		padding: 24px 20px 22px;
	}

	.opl-desk-herobar + .opl-desk-hero-inner {
		padding-top: 20px;
	}

	.opl-desk-hero h1 {
		font-size: 26px;
	}

	.opl-desk-hero-copy p {
		font-size: 13.5px;
	}

	.opl-desk-tile {
		padding: 11px 13px;
	}

	.opl-desk-tile strong {
		font-size: 22px;
	}

	.opl-desk-toolbar {
		padding: 8px;
		border-radius: 14px;
	}

	.opl-desk-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		width: 100%;
		padding-bottom: 2px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.opl-desk-tabs::-webkit-scrollbar {
		display: none;
	}

	.opl-desk-tab {
		flex: 0 0 auto;
		padding: 8px 11px;
		font-size: 12.5px;
	}

	.opl-desk-search {
		width: 100%;
	}

	.opl-desk-search input[type="search"] {
		flex: 1 1 auto;
		width: 0;
	}

	.opl-case {
		border-radius: 14px;
	}

	.opl-case-top {
		padding: 13px 16px 12px 19px;
	}

	.opl-case-ref {
		font-size: 14.5px;
	}

	.opl-case-dates {
		font-size: 11.8px;
	}

	.opl-case-body {
		padding: 15px 16px 16px 19px;
	}

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

	.opl-fact--wide {
		grid-column: span 2;
	}

	.opl-case-foot {
		padding: 14px 16px 16px 19px;
		gap: 14px;
	}

	.opl-case-form--status,
	.opl-case-form--invoice {
		flex: 1 1 100%;
	}

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

	.opl-case-controls select,
	.opl-fee,
	.opl-btn {
		width: 100%;
	}

	.opl-case-controls select {
		min-width: 0;
	}

	.opl-fee input[type="number"] {
		flex: 1 1 auto;
		width: 0;
	}

	.opl-desk-gate-card {
		padding: 24px 20px 22px;
		border-radius: 16px;
	}
}
