* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: #0b1120;
	color: #f8fafc;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.ops-shell[data-theme="light"]) {
	background: #f1f5f9;
	color: #0f172a;
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	align-items: center;
	background: #155eef;
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 650;
	gap: 8px;
	justify-content: center;
	padding: 0 14px;
	white-space: nowrap;
}

button:hover {
	background: #1249bd;
}

input {
	background: #fff;
	border: 1px solid #c9d3e0;
	border-radius: 6px;
	color: #172033;
	min-height: 38px;
	padding: 8px 10px;
	width: 100%;
}

select,
textarea {
	background: #fff;
	border: 1px solid #c9d3e0;
	border-radius: 6px;
	color: #172033;
	padding: 8px 10px;
	width: 100%;
}

textarea {
	min-height: 84px;
	resize: vertical;
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

label {
	color: #536176;
	display: grid;
	font-size: 12px;
	font-weight: 700;
	gap: 6px;
	letter-spacing: 0;
}

.ops-shell {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	min-height: 100vh;
}

.ops-nav {
	background: #111827;
	color: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 26px;
	height: 100vh;
	overflow-y: auto;
	padding: 22px 16px;
	position: sticky;
	top: 0;
}

.brand {
	align-items: center;
	display: flex;
	gap: 12px;
	min-height: 44px;
}

.brand-logo {
	display: block;
	flex: 0 0 auto;
	height: 42px;
	object-fit: contain;
	width: 42px;
}

.brand strong,
.brand span {
	display: block;
}

.brand span {
	color: #a7b0c0;
	font-size: 12px;
	margin-top: 2px;
}

.ops-nav nav {
	display: grid;
	gap: 6px;
}

.mobile-nav-toggle {
	align-items: center;
	background: transparent;
	border: 1px solid rgba(148, 163, 184, 0.34);
	border-radius: 8px;
	color: #f8fafc;
	cursor: pointer;
	display: none;
	font: inherit;
	font-weight: 650;
	gap: 10px;
	min-height: 40px;
	padding: 0 12px;
}

.mobile-nav-toggle-icon,
.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
	background: currentColor;
	content: "";
	display: block;
	height: 2px;
	transition: transform 120ms ease;
	width: 18px;
}

.mobile-nav-toggle-icon {
	position: relative;
}

.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
	left: 0;
	position: absolute;
}

.mobile-nav-toggle-icon::before {
	top: -6px;
}

.mobile-nav-toggle-icon::after {
	top: 6px;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon {
	background: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.ops-nav nav a {
	align-items: center;
	background: transparent;
	border-radius: 6px;
	color: #cbd5e1;
	display: inline-flex;
	font-weight: 650;
	gap: 8px;
	justify-content: flex-start;
	min-height: 38px;
	padding: 0 12px;
	text-decoration: none;
}

.ops-nav nav a:hover,
.ops-nav nav a.active {
	background: #243044;
	color: #fff;
}

.nav-drawer {
	display: grid;
	gap: 4px;
}

.nav-drawer-trigger {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #cbd5e1;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 650;
	justify-content: space-between;
	min-height: 38px;
	padding: 0 12px;
	text-align: left;
	width: 100%;
}

.nav-drawer-trigger:hover,
.nav-drawer-trigger.active {
	background: #243044;
	color: #fff;
}

.nav-drawer-chevron {
	display: inline-flex;
	flex: 0 0 auto;
	transform: rotate(0);
	transition: transform 120ms ease;
}

.nav-drawer-chevron svg {
	fill: none;
	height: 16px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 16px;
}

.nav-drawer-trigger[aria-expanded="true"] .nav-drawer-chevron {
	transform: rotate(90deg);
}

.nav-drawer-items {
	border-left: 1px solid rgba(148, 163, 184, 0.25);
	display: grid;
	gap: 4px;
	margin-left: 14px;
	padding-left: 8px;
}

.ops-nav nav .nav-drawer-items a {
	font-size: 0.88rem;
	min-height: 34px;
	padding-left: 12px;
}

.ops-main {
	align-content: start;
	display: grid;
	gap: 18px;
	grid-auto-rows: max-content;
	min-width: 0;
	padding: 24px;
}

.ops-header {
	align-items: end;
	background: #f4f6f8;
	border-bottom: 1px solid #d7dee8;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(220px, 1fr) minmax(360px, 620px);
	margin: -24px -24px 0;
	padding: 24px;
	position: sticky;
	top: 0;
	z-index: 20;
}

.eyebrow {
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 6px;
	text-transform: uppercase;
}

h1,
h2,
p {
	margin: 0;
}

h1 {
	font-size: 30px;
	line-height: 1.1;
}

/* Blazor focuses the page heading after navigation for screen-reader announcements.
   The heading is not interactive, so it should not show a browser focus ring. */
.ops-header h1:focus,
.ops-header h1:focus-visible {
	outline: none;
}

h2 {
	font-size: 16px;
	line-height: 1.2;
}

.api-card {
	align-items: end;
	background: #fff;
	border: 1px solid #d7dee8;
	border-radius: 8px;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) auto auto;
	padding: 12px;
}

.message {
	align-self: start;
	border-radius: 6px;
	display: inline-flex;
	max-width: 100%;
	font-weight: 650;
	line-height: 1.35;
	padding: 12px 14px;
}

.page-message-row {
	align-items: start;
	display: flex;
	min-height: 0;
}

.message.success {
	background: #dcfce7;
	color: #14532d;
}

.message.error {
	background: #fee2e2;
	color: #7f1d1d;
	white-space: pre-wrap;
}

.metric-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.metric,
.panel,
.products-panel {
	background: #fff;
	border: 1px solid #d7dee8;
	border-radius: 8px;
}

.metric {
	display: grid;
	gap: 8px;
	min-height: 94px;
	padding: 16px;
}

.metric span,
.result-grid span {
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.metric strong {
	font-size: 30px;
	line-height: 1;
}

.dashboard-metric-grid {
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.dashboard-metric-grid .metric {
	gap: 6px;
	min-height: 72px;
	padding: 12px 14px;
}

.dashboard-metric-grid .metric span {
	font-size: 11px;
	line-height: 1.1;
}

.dashboard-metric-grid .metric strong {
	font-size: 22px;
	line-height: 1;
}

.dashboard-toolbar {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 14px 16px;
}

.dashboard-toolbar p {
	color: var(--replenor-muted);
	font-size: 13px;
	margin-top: 3px;
}

.dashboard-selector {
	display: grid;
	gap: 6px;
	min-width: min(360px, 100%);
}

.dashboard-toolbar-actions,
.dashboard-widget-controls,
.dashboard-widget-controls > div {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.custom-dashboard-grid {
	display: grid;
	gap: 12px;
	grid-auto-flow: row dense;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.custom-dashboard-widget {
	background: var(--replenor-card);
	border: 1px solid var(--replenor-border-soft);
	border-radius: 10px;
	box-shadow: var(--replenor-shadow);
	grid-column: span var(--dashboard-widget-width);
	min-width: 0;
	overflow: hidden;
}

.dashboard-widget-controls {
	background: var(--replenor-surface);
	border-bottom: 1px solid var(--replenor-border-soft);
	justify-content: space-between;
	min-height: 42px;
	padding: 6px 10px;
}

.dashboard-widget-controls strong {
	font-size: 12px;
}

.dashboard-kpi-widget {
	display: grid;
	gap: 7px;
	min-height: 104px;
	padding: 16px;
}

.dashboard-kpi-widget span {
	color: var(--replenor-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.dashboard-kpi-widget strong {
	font-size: 30px;
	line-height: 1;
}

.dashboard-kpi-widget small {
	color: var(--replenor-muted);
	font-size: 12px;
}

.dashboard-widget-heading {
	align-items: center;
	border-bottom: 1px solid var(--replenor-border-soft);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 14px 16px;
}

.dashboard-widget-heading span,
.dashboard-widget-heading a {
	color: var(--replenor-muted);
	font-size: 12px;
}

.dashboard-widget-heading a {
	color: var(--replenor-accent);
	font-weight: 700;
	text-decoration: none;
}

.dashboard-empty-state {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	min-height: 240px;
	padding: 32px;
	text-align: center;
}

.dashboard-empty-state span {
	color: var(--replenor-muted);
	font-size: 13px;
}

.dashboard-widget-editor {
	background-color: var(--replenor-card, #151f2e) !important;
	border: 1px solid var(--replenor-border, rgba(148, 163, 184, 0.34));
	box-shadow: 0 18px 48px rgba(2, 6, 23, 0.48);
	color: var(--replenor-text, #f8fafc);
	isolation: isolate;
	max-height: min(720px, calc(100dvh - 32px));
	overflow: auto;
	width: min(560px, calc(100dvw - 32px));
}

.dashboard-widget-editor-body {
	display: grid;
	gap: 14px;
	padding: 18px;
}

.panel {
	min-width: 0;
	overflow: hidden;
}

.page-stack {
	display: grid;
	gap: 24px;
	min-width: 0;
}

.page-stack > * {
	min-width: 0;
}

.products-panel {
	min-width: 0;
	overflow: hidden;
}

.panel.empty {
	color: #64748b;
	font-weight: 650;
	padding: 24px;
}

.panel-heading,
.action-panel {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 16px;
}

.action-panel {
	padding-block: 8px;
}

.panel-heading {
	border-bottom: 1px solid #e3e8ef;
}

.panel-heading span,
.action-panel p {
	color: #64748b;
	font-size: 13px;
}

.panel-heading-copy {
	min-width: 0;
}

.panel-heading-copy p {
	color: #64748b;
	font-size: 13px;
	line-height: 1.35;
	margin: 3px 0 0;
}

.privacy-empty-state {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	min-height: 220px;
	padding: 32px 24px;
	text-align: center;
	white-space: normal;
	width: 100%;
}

.privacy-empty-state svg {
	fill: none;
	height: 32px;
	stroke: var(--replenor-muted);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.75;
	width: 32px;
}

.privacy-empty-state span {
	color: var(--replenor-muted);
	font-size: 13px;
	max-width: 480px;
}

.privacy-request-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.action-panel h2 {
	font-size: 15px;
}

.action-panel p {
	line-height: 1.2;
}

.action-row,
.table-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.action-row {
	justify-content: flex-end;
}

.forecast-action-panel {
	align-items: stretch;
	flex-direction: column;
	padding-block: 16px;
}

.forecast-action-panel .action-row {
	justify-content: flex-start;
}

.forecast-date-range {
	padding-top: 4px;
}

.forecast-filter-header {
	align-items: center;
	border-bottom: 1px solid var(--replenor-border-soft);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 16px;
}

.forecast-filter-header p {
	color: var(--replenor-muted);
	font-size: 13px;
	margin-top: 3px;
}

.forecast-header-actions,
.forecast-custom-row,
.forecast-save-row,
.forecast-saved-filter-meta,
.forecast-delete-confirmation {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.forecast-delete-confirmation strong {
	font-size: 13px;
}

.forecast-filter-grid {
	align-items: end;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	padding: 16px;
}

.forecast-filter-grid .compact-filter,
.forecast-filter-control {
	max-width: none;
	width: 100%;
}

.forecast-reorder-filter {
	align-items: center;
	display: flex;
	min-height: 40px;
	padding-bottom: 2px;
}

.forecast-custom-row,
.forecast-save-row {
	border-top: 1px solid var(--replenor-border-soft);
	padding: 12px 16px 16px;
}

.forecast-custom-row .compact-filter {
	width: min(220px, 100%);
}

.forecast-save-row .mud-input-control {
	width: min(320px, 100%);
}

.forecast-saved-filter-meta {
	border-top: 1px solid var(--replenor-border-soft);
	justify-content: space-between;
	padding: 8px 16px;
}

.forecast-saved-filter-meta span {
	color: var(--replenor-muted);
	font-size: 12px;
}

.action-row label {
	min-width: 104px;
}

.table-toolbar {
	border-bottom: 1px solid #e3e8ef;
	padding: 10px 16px;
}

.table-toolbar > *,
.action-row > * {
	flex: 0 0 auto;
}

.compact-filter {
	width: 140px;
}

.search-filter {
	width: 220px;
}

.product-search-progress {
	align-items: center;
	color: #475569;
	display: inline-flex;
	font-size: 13px;
	gap: 7px;
	min-width: 96px;
}

.wide-filter {
	width: 190px;
}

.signed-out-nav {
	justify-content: flex-start;
}

.signed-out-nav-message {
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	display: grid;
	gap: 8px;
	padding-top: 22px;
}

.signed-out-nav-message strong {
	font-size: 0.92rem;
}

.signed-out-nav-message span {
	color: #a7b2c3;
	font-size: 0.82rem;
	line-height: 1.5;
}

.signed-out-main {
	align-items: center;
	background: var(--replenor-bg);
	display: flex;
	justify-content: center;
	min-height: 100vh;
	padding: 32px;
}

.signed-out-card {
	align-items: center;
	background: var(--replenor-surface);
	border: 1px solid var(--replenor-border);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 520px;
	padding: 42px;
	text-align: center;
}

.signed-out-card h1,
.signed-out-card p {
	margin: 0;
}

.signed-out-card > p:not(.eyebrow) {
	color: var(--replenor-muted);
	line-height: 1.65;
}

.session-expired-notice {
	background: rgba(245, 158, 11, 0.14);
	border: 1px solid rgba(245, 158, 11, 0.32);
	border-radius: 8px;
	color: #fbbf24;
	font-size: 0.88rem;
	line-height: 1.5;
	padding: 11px 13px;
	width: 100%;
}

.ops-shell[data-theme="light"] .session-expired-notice {
	color: #92400e;
}

.shopify-login-link {
	background: var(--replenor-primary);
	border-radius: 8px;
	color: #052e1b;
	font-weight: 750;
	margin-top: 8px;
	padding: 11px 18px;
	text-decoration: none;
}

.shopify-login-link:hover {
	filter: brightness(1.08);
}

.printer-settings-card {
	display: grid;
}

.printer-settings-grid {
	padding: 16px;
}

.printer-settings-actions {
	border-top: 1px solid #e3e8ef;
	padding: 12px 16px;
}

.agent-key-content {
	align-items: center;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 16px;
}

.login-shell {
	align-items: center;
	background: #0f172a;
	display: flex;
	justify-content: center;
	min-height: 100dvh;
	padding: 24px;
}

.login-card {
	background: #fff;
	border: 1px solid #d7dee8;
	border-radius: 10px;
	display: grid;
	gap: 24px;
	max-width: 420px;
	padding: 32px;
	width: 100%;
}

.login-brand { color: #0f172a; }
.login-card h1 { color: #0f172a; font-size: 24px; margin-bottom: 8px; }
.login-card p { color: #64748b; }
.login-links { display: flex; justify-content: space-between; }
.login-links a { color: #0284c7; font-weight: 650; }
.login-help { border-top: 1px solid #e2e8f0; font-size: 13px; padding-top: 16px; }

.team-member-form {
	align-items: end;
	grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(140px, .75fr) auto;
	padding: 16px;
}

.pager-page-size {
	width: 84px;
}

.compact-filter,
.search-filter,
.pager-page-size {
	margin: 0;
}

.action-row .compact-filter {
	width: 120px;
}

.action-row .mud-input-control {
	margin: 0 !important;
	min-height: 0;
}

.action-row .mud-input-control-input-container {
	min-height: 40px;
}

.action-row .mud-input-root,
.action-row .mud-input-outlined {
	min-height: 40px !important;
}

.action-row .mud-input-slot,
.action-row .mud-select-input {
	font-size: 14px;
	line-height: 20px;
	padding-bottom: 5px !important;
	padding-top: 5px !important;
}

.action-row .mud-input-label {
	font-size: 12px;
	line-height: 1;
}

.action-row .mud-input-adornment {
	height: 32px;
	margin-top: 0;
}

.action-row .mud-button-root {
	min-height: 38px;
	padding-block: 0;
}

.po-filter-toolbar {
	gap: 10px;
	flex-wrap: nowrap;
}

.po-filter-toolbar .compact-filter {
	width: 180px;
}

.table-toolbar .date-filter.mud-input-control,
.table-toolbar .date-filter .mud-input-control {
	margin: 0 !important;
	min-height: 0;
}

.table-toolbar .date-filter .mud-input-control-input-container {
	min-height: 48px;
}

.table-toolbar .date-filter .mud-input-root,
.table-toolbar .date-filter .mud-input-outlined {
	min-height: 48px !important;
}

.table-toolbar .date-filter .mud-input-slot {
	font-size: 14px;
	line-height: 20px;
	padding-bottom: 8px !important;
	padding-top: 8px !important;
}

.table-toolbar .date-filter .mud-input-label {
	font-size: 12px;
	line-height: 1;
}

.table-toolbar .date-filter .mud-input-adornment,
.table-toolbar .date-filter .mud-picker-input-button {
	height: 32px;
	margin-top: 0;
	width: 32px;
}

.po-filter-toolbar .mud-button-root {
	flex: 0 0 auto;
	white-space: nowrap;
}

.product-list-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 18px;
}

.bulk-action-bar {
	background: rgba(16, 185, 129, 0.08);
	gap: 12px;
}

.bulk-action-bar label {
	min-width: 130px;
}

.table-wrap {
	overflow-x: auto;
}

.products-workbench {
	display: grid;
	gap: 0;
	grid-template-columns: 1fr;
}

.products-workbench .table-wrap {
	border-right: 0;
}

tr.selected-row td {
	background: #eef6ff;
}

.product-editor-heading {
	align-items: center;
	border-bottom: 1px solid #e3e8ef;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 14px 16px;
}

.product-editor-actions {
	align-items: center;
	border-top: 1px solid #e3e8ef;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding: 14px 16px;
}

.modal-backdrop {
	align-items: center;
	background: rgba(15, 23, 42, 0.54);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 100;
}

.product-edit-modal {
	border-radius: 8px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: min(760px, calc(100vh - 48px));
	max-width: 1280px;
	width: min(1180px, calc(100vw - 48px));
	overflow: hidden;
}

.inventory-transfer-modal {
	border-radius: 8px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: min(520px, calc(100vh - 48px));
	width: min(640px, calc(100vw - 48px));
	overflow: hidden;
}

.forecast-detail-modal {
	border-radius: 8px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: min(680px, calc(100vh - 48px));
	width: min(860px, calc(100vw - 48px));
	overflow: hidden;
}

.purchase-order-modal {
	border-radius: 8px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: min(820px, calc(100vh - 48px));
	max-width: 1480px;
	min-width: 0;
	overflow: hidden;
	width: min(1480px, calc(100vw - 48px));
}

.manual-purchase-order-modal {
	border-radius: 8px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: min(760px, calc(100vh - 48px));
	overflow: hidden;
	width: min(1120px, calc(100vw - 48px));
}

.purchase-order-close-modal {
	border-radius: 8px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: min(420px, calc(100vh - 48px));
	overflow: hidden;
	width: min(560px, calc(100vw - 48px));
}

.supplier-detail-modal {
	border-radius: 8px;
	display: grid;
	max-height: min(860px, calc(100vh - 48px));
	max-width: 1240px;
	min-width: min(1120px, calc(100vw - 48px));
	overflow: hidden;
}

.product-edit-modal .mud-tabs-panels {
	min-height: 0;
	overflow: auto;
}

.product-edit-modal .mud-tabs {
	min-height: 0;
	overflow: visible;
}

.purchase-order-modal .modal-tab-content,
.supplier-detail-modal .modal-tab-content {
	overflow: auto;
}

.purchase-order-modal .modal-tab-content {
	min-height: 0;
}

.purchase-order-lines-grid .mud-table-container {
	max-height: none !important;
	overflow-x: auto;
	overflow-y: visible;
}

.purchase-order-lines-grid .mud-table {
	min-width: 1120px;
	table-layout: auto;
}

.purchase-order-lines-grid .mud-table-cell {
	white-space: nowrap;
}

.purchase-order-lines-grid .mud-table-cell:nth-child(1) {
	min-width: 220px;
	white-space: normal;
}

.purchase-order-lines-grid .mud-table-cell:nth-child(2) {
	min-width: 120px;
}

.purchase-order-lines-grid .mud-table-cell:nth-child(3) {
	min-width: 160px;
}

.purchase-order-lines-grid .mud-table-cell:nth-child(n+4):nth-child(-n+6) {
	min-width: 105px;
}

.purchase-order-lines-grid .mud-table-cell:nth-child(7) {
	min-width: 120px;
}

.purchase-order-lines-grid .mud-table-cell:nth-child(n+8) {
	min-width: 110px;
}
.mud-tabs-tabbar-content {
	padding-bottom: 10px;
}
.modal-tab-content {
	padding: 22px !important;
}
.product-edit-modal .modal-tab-content {
	padding: 22px;
}

.inventory-transfer-modal .modal-tab-content {
	padding: 22px;
}

.forecast-detail-modal .modal-tab-content {
	padding: 22px;
}

.purchase-order-close-modal .modal-tab-content {
	padding: 22px;
}

.manual-po-content {
	display: grid;
	gap: 16px;
	overflow: auto;
}

.manual-po-fields {
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(220px, 1fr) minmax(200px, 1.2fr) minmax(180px, 240px) minmax(160px, 220px);
}

.modal-help-text {
	color: var(--replenor-muted);
	font-size: 0.92rem;
	line-height: 1.45;
	margin: 0 0 16px;
}

.product-edit-modal .mud-input-control {
	margin-bottom: 4px;
}

.transfer-summary {
	color: #94a3b8;
	font-size: 0.9rem;
}

.po-summary-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, minmax(130px, 1fr));
	margin-bottom: 16px;
}

.po-summary-grid div {
	background: #f8fafc;
	border: 1px solid #e3e8ef;
	border-radius: 6px;
	display: grid;
	gap: 6px;
	padding: 12px;
}

.po-summary-grid span {
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.po-summary-grid strong {
	color: #172033;
	font-size: 16px;
	line-height: 1.15;
}

.order-detail-layout {
	align-items: start;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.order-detail-main {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.order-summary-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.order-summary-grid div,
.order-info-card {
	background: #f8fafc;
	border: 1px solid #e3e8ef;
	border-radius: 8px;
}

.order-summary-grid div {
	display: grid;
	gap: 5px;
	padding: 10px 12px;
}

.order-summary-grid span {
	color: #64748b;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.order-summary-grid strong {
	color: #172033;
	font-size: 14px;
	line-height: 1.2;
}

.order-detail-side {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.order-info-card {
	display: grid;
	gap: 7px;
	padding: 14px;
}

.order-info-card h3,
.order-info-card h4 {
	color: #172033;
	font-size: 13px;
	line-height: 1.2;
	margin: 0;
}

.order-info-card h4 {
	margin-top: 8px;
}

.order-info-card p {
	color: #536176;
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
	overflow-wrap: anywhere;
}

.order-info-card strong {
	color: #172033;
}

.receipt-quantity-input {
	max-width: 88px;
	min-width: 72px;
}

.po-receiving-feedback {
	align-items: center;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	color: #1e3a8a;
	display: flex;
	gap: 12px;
	margin: 0 22px 16px;
	padding: 12px 14px;
}

.po-receiving-feedback > div {
	display: grid;
	gap: 2px;
}

.po-receiving-feedback span {
	color: #475569;
	font-size: 13px;
}

.product-cell {
	display: grid;
	gap: 3px;
	min-width: 220px;
}

.product-cell-layout {
	align-items: center;
	display: flex;
	gap: 12px;
	min-width: 280px;
}

.product-thumbnail {
	background: var(--replenor-surface, #f8fafc);
	border: 1px solid var(--replenor-border-soft, #e2e8f0);
	border-radius: 8px;
	flex: 0 0 44px;
	height: 44px;
	object-fit: cover;
	width: 44px;
}

.product-thumbnail-placeholder {
	align-items: center;
	color: var(--replenor-muted, #64748b);
	display: flex;
	font-size: 0.8rem;
	font-weight: 800;
	justify-content: center;
}

.product-cell strong,
.money-stack strong {
	color: #172033;
	font-size: 14px;
	line-height: 1.25;
}

.money-stack {
	display: grid;
	gap: 3px;
	min-width: 96px;
}

.inline-edit {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(74px, 92px));
}

.inline-edit label {
	gap: 4px;
}

.inline-edit input {
	min-height: 34px;
	padding: 6px 8px;
}

.stacked-edit {
	display: grid;
	gap: 8px;
	min-width: 150px;
}

.stacked-edit.wide {
	min-width: 280px;
}

.stacked-edit label {
	gap: 4px;
}

.stacked-edit input,
.stacked-edit select,
.stacked-edit textarea {
	min-height: 34px;
	padding: 6px 8px;
}

.row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 240px;
}

.product-detail-row td {
	background: #f8fafc;
	padding: 0;
}

.product-detail {
	display: grid;
	gap: 0;
}

.tab-panel {
	background: #fff;
	padding: 14px;
}

.product-form-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-width: 0;
}

.api-card .mud-input-control,
.product-form-grid .mud-input-control,
.product-media-grid .mud-input-control,
.inventory-tab-grid .mud-input-control,
.inline-edit-row .mud-input-control,
.metadata-add-row .mud-input-control,
.modal-tab-content .mud-input-control {
	width: 100%;
}

.product-media-grid {
	align-items: start;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
	min-width: 0;
}

.product-image-placeholder {
	display: grid;
	gap: 12px;
}

.image-box {
	align-content: center;
	aspect-ratio: 1 / 1;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	display: grid;
	justify-items: center;
	padding: 18px;
	text-align: center;
}

.image-box span {
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.image-box strong {
	color: #172033;
	font-size: 15px;
	margin-top: 4px;
}

.product-form-grid.compact-grid {
	grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.product-form-grid .span-2 {
	grid-column: 1 / -1;
}

.inventory-tab-grid {
	align-items: center;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(140px, 1fr));
}

.inventory-location-select {
	min-width: 220px;
}

.kit-tab .inline-edit-row {
	margin-bottom: 18px;
}

.metadata-tab {
	display: grid;
	gap: 16px;
}

.metadata-add-row {
	align-items: end;
	grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
	margin-bottom: 0;
}

.metadata-grid .mud-input-control {
	margin: 0;
	min-width: 120px;
}

.metadata-empty-state {
	background: #f8fafc;
	border: 1px solid #e3e8ef;
	border-radius: 8px;
	display: grid;
	gap: 4px;
	padding: 18px;
}

.product-toggle-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	grid-column: 1 / -1;
}

.inventory-adjust {
	border-top: 1px solid var(--replenor-border-soft, #e3e8ef);
	display: grid;
	gap: 12px;
	grid-column: 1 / -1;
	grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.4fr) minmax(200px, 2fr);
	padding-top: 12px;
}

.inventory-adjust-heading,
.inventory-adjust-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	grid-column: 1 / -1;
}

.inventory-adjust-heading span,
.inventory-adjust-actions span {
	color: var(--replenor-muted, #64748b);
	font-size: 13px;
}

.inventory-adjust-actions {
	justify-content: space-between;
}

@media (max-width: 720px) {
	.inventory-adjust {
		grid-template-columns: 1fr;
	}
}

.product-toggle-row .mud-checkbox {
	min-width: max-content;
}

.inventory-snapshot {
	background: #f8fafc;
	border: 1px solid #e3e8ef;
	border-radius: 6px;
	display: grid;
	gap: 4px;
	min-height: 64px;
	padding: 10px 12px;
}

.inventory-snapshot span {
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.inventory-snapshot strong {
	font-size: 18px;
	line-height: 1.1;
}

.pager {
	align-items: center;
	border-top: 1px solid #e3e8ef;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 12px 16px;
}

.pager-meta,
.pager-actions {
	align-items: center;
	display: flex;
	gap: 10px;
}

.pager-meta {
	color: #64748b;
	font-size: 13px;
	font-weight: 650;
}

.pager-actions label {
	align-items: center;
	display: flex;
	flex-direction: row;
	gap: 8px;
}

.pager-actions select,
.pager-actions .pager-page-size {
	width: 84px;
}

table {
	border-collapse: collapse;
	min-width: 860px;
	width: 100%;
}

th,
td {
	border-bottom: 1px solid #e3e8ef;
	padding: 12px 16px;
	text-align: left;
	vertical-align: middle;
}

th {
	background: #f8fafc;
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

td {
	font-size: 14px;
}

td span {
	color: #64748b;
	display: block;
	font-size: 12px;
	margin-top: 2px;
}

.pill {
	border-radius: 999px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 6px 9px;
}

.pill.good {
	background: #dcfce7;
	color: #166534;
}

.pill.danger {
	background: #fee2e2;
	color: #991b1b;
}

.pill.neutral {
	background: #e8eef7;
	color: #334155;
}

.pill.warning {
	background: #fef3c7;
	color: #92400e;
}

.pill.info {
	background: #e0f2fe;
	color: #075985;
}

.result-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(220px, 1fr));
	padding: 16px;
}

.result-grid div {
	background: #f8fafc;
	border: 1px solid #e3e8ef;
	border-radius: 6px;
	display: grid;
	gap: 6px;
	padding: 14px;
}

.compact-table-wrap table {
	min-width: 760px;
}

.supplier-table th,
.supplier-table td {
	padding: 9px 14px;
}

.supplier-table td {
	font-size: 13px;
}

.supplier-table td strong {
	display: block;
	font-size: 13px;
	line-height: 1.2;
}

.supplier-table .pill {
	margin-bottom: 2px;
}

.table-action-cell {
	text-align: right;
	width: 96px;
}

.supplier-mapping-table {
	min-width: 1180px;
}

.supplier-mapping-table td:nth-child(2) {
	min-width: 180px;
}

.supplier-mapping-table td:nth-child(3) {
	min-width: 150px;
}

.supplier-mapping-table td:nth-child(4),
.supplier-mapping-table td:nth-child(5) {
	min-width: 96px;
}

.forecast-grid .mud-table-root {
	min-width: 0;
	table-layout: fixed;
	width: 100%;
}

.forecast-grid .mud-table-cell {
	overflow: hidden;
	padding-inline: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.forecast-grid button[aria-label="Column options"] {
	display: none;
}

.forecast-grid .mud-table-cell:nth-child(1) {
	width: 45%;
}

.forecast-grid .mud-table-cell:nth-child(2) {
	width: 22%;
}

.forecast-grid .mud-table-cell:nth-child(3) {
	width: 33%;
}

.forecast-empty-state {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	min-height: 150px;
	padding: 24px;
	text-align: center;
	white-space: normal;
	width: 100%;
}

.forecast-grid .mud-table-cell[colspan] {
	white-space: normal;
	width: auto;
}

.forecast-empty-state span {
	color: #64748b;
	font-size: 13px;
}

.forecast-detail-content {
	display: grid;
	gap: 16px;
	overflow: auto;
}

.forecast-detail-hero {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forecast-detail-hero div,
.forecast-detail-grid div,
.forecast-reason {
	background: rgba(148, 163, 184, 0.08);
	border: 1px solid var(--replenor-border-soft, #e3e8ef);
	border-radius: 8px;
	display: grid;
	gap: 6px;
	padding: 12px;
}

.forecast-detail-hero span,
.forecast-detail-grid span,
.forecast-reason span {
	color: var(--replenor-muted, #64748b);
	font-size: 12px;
	font-weight: 700;
}

.forecast-detail-hero strong {
	font-size: 28px;
	line-height: 1;
}

.forecast-note,
.forecast-steps {
	border: 1px solid var(--replenor-border-soft, #e3e8ef);
	border-radius: 8px;
	display: grid;
	gap: 6px;
	padding: 12px;
}

.forecast-note {
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.45);
}

.forecast-steps {
	background: rgba(148, 163, 184, 0.08);
}

.forecast-steps ol {
	display: grid;
	gap: 4px;
	margin: 0;
	padding-left: 20px;
}

.season-list,
.season-form {
	display: grid;
	gap: 10px;
}

.season-row {
	align-items: center;
	border: 1px solid var(--replenor-border-soft, #e3e8ef);
	border-radius: 8px;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 10px 12px;
}

.season-row > div:first-child {
	display: grid;
	gap: 2px;
}

.season-row span {
	color: var(--replenor-muted, #64748b);
	font-size: 13px;
}

.season-form {
	border-top: 1px solid var(--replenor-border-soft, #e3e8ef);
	padding-top: 12px;
}

.season-date-row {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.forecast-detail-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-shell {
	--replenor-bg: #0b1120;
	--replenor-surface: #101826;
	--replenor-card: #151f2e;
	--replenor-card-raised: #1b2738;
	--replenor-border: rgba(148, 163, 184, 0.34);
	--replenor-border-soft: rgba(148, 163, 184, 0.18);
	--replenor-text: #f8fafc;
	--replenor-muted: #a7b2c3;
	--replenor-subtle: #7f8ea3;
	--replenor-primary: #10b981;
	--replenor-primary-hover: #059669;
	--replenor-accent: #0ea5e9;
	--replenor-info: #38bdf8;
	--replenor-success: #22c55e;
	--replenor-warning: #f59e0b;
	--replenor-danger: #ef4444;
	--replenor-row-hover: rgba(14, 165, 233, 0.08);
	--replenor-selected: rgba(16, 185, 129, 0.12);
	--replenor-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
	--replenor-nav-bg: #070d19;
	--replenor-nav-border: rgba(148, 163, 184, 0.18);
	--replenor-nav-text: #f8fafc;
	--replenor-nav-muted: #cbd5e1;
	background: var(--replenor-bg);
	color: var(--replenor-text);
	grid-template-columns: 260px minmax(0, 1fr);
}

.ops-shell[data-theme="light"] {
	--replenor-bg: #f1f5f9;
	--replenor-surface: #f8fafc;
	--replenor-card: #ffffff;
	--replenor-card-raised: #f8fafc;
	--replenor-border: #cbd5e1;
	--replenor-border-soft: #e2e8f0;
	--replenor-text: #0f172a;
	--replenor-muted: #475569;
	--replenor-subtle: #64748b;
	--replenor-primary: #047857;
	--replenor-primary-hover: #065f46;
	--replenor-accent: #0369a1;
	--replenor-info: #075985;
	--replenor-success: #166534;
	--replenor-warning: #92400e;
	--replenor-danger: #b91c1c;
	--replenor-row-hover: rgba(16, 185, 129, 0.08);
	--replenor-selected: #d1fae5;
	--replenor-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body:has(.ops-shell[data-theme="dark"]),
body:has(.ops-shell[data-theme="dark"]) .mud-application,
body:has(.ops-shell[data-theme="dark"]) .mud-layout,
body:has(.ops-shell[data-theme="dark"]) .mud-main-content {
	background: #0b1120;
	color: #f8fafc;
}

.ops-shell button,
.ops-shell .mud-button-root {
	border-radius: 8px;
	box-shadow: none;
}

.ops-shell .mud-button-filled-primary,
.ops-shell .mud-button-filled-secondary,
.ops-shell .mud-button-filled-success,
.ops-shell .mud-button-filled-error,
.ops-shell .mud-button-filled-info,
.ops-shell .mud-button-filled-warning,
.ops-shell .mud-button-filled-primary .mud-button-label,
.ops-shell .mud-button-filled-secondary .mud-button-label,
.ops-shell .mud-button-filled-success .mud-button-label,
.ops-shell .mud-button-filled-error .mud-button-label,
.ops-shell .mud-button-filled-info .mud-button-label,
.ops-shell .mud-button-filled-warning .mud-button-label {
	color: #ffffff !important;
}

.ops-shell button:not(.mud-button-root):not(.mud-icon-button):not(.nav-drawer-trigger):not(.mobile-nav-toggle) {
	background: var(--replenor-primary);
	color: #ffffff;
}

.ops-shell button:not(.mud-button-root):not(.mud-icon-button):not(.nav-drawer-trigger):not(.mobile-nav-toggle):hover {
	background: var(--replenor-primary-hover);
}

.ops-shell input,
.ops-shell select,
.ops-shell textarea {
	background: #0f172a;
	border-color: var(--replenor-border);
	border-radius: 8px;
	color: var(--replenor-text);
}

.ops-shell[data-theme="light"] input,
.ops-shell[data-theme="light"] select,
.ops-shell[data-theme="light"] textarea {
	background: #ffffff;
}

.ops-shell input::placeholder,
.ops-shell textarea::placeholder {
	color: var(--replenor-subtle);
}

.ops-shell label,
.ops-shell .eyebrow,
.ops-shell .metric span,
.ops-shell .result-grid span,
.ops-shell .panel-heading span,
.ops-shell .action-panel p,
.ops-shell .pager-meta,
.ops-shell td span,
.ops-shell .inventory-snapshot span,
.ops-shell .po-summary-grid span,
.ops-shell .image-box span {
	color: var(--replenor-muted);
}

.ops-shell .image-box strong {
	color: var(--replenor-text);
}

.ops-nav {
	background: var(--replenor-nav-bg);
	border-right: 1px solid var(--replenor-nav-border);
	color: var(--replenor-nav-text);
	padding: 24px 16px;
}

.brand span {
	color: var(--replenor-nav-muted);
	line-height: 1.25;
	max-width: 170px;
}

.ops-nav nav a {
	border-radius: 8px;
	color: var(--replenor-nav-muted);
}

.ops-nav nav a:hover,
.ops-nav nav a.active {
	background: rgba(16, 185, 129, 0.11);
	color: var(--replenor-nav-text);
}

.ops-nav .nav-drawer-trigger {
	color: var(--replenor-nav-muted);
}

.ops-nav .nav-drawer-trigger:hover,
.ops-nav .nav-drawer-trigger.active {
	background: rgba(16, 185, 129, 0.11);
	color: var(--replenor-nav-text);
}

.ops-main,
.ops-header {
	background: var(--replenor-bg);
}

.ops-main {
	padding: 24px;
}

.ops-header {
	align-items: center;
	border-bottom-color: var(--replenor-border-soft);
	min-height: 64px;
}

.api-card,
.metric,
.panel,
.products-panel,
.tab-panel,
.result-grid div,
.inventory-snapshot,
.po-summary-grid div,
.order-summary-grid div,
.order-info-card,
.image-box {
	background: var(--replenor-card);
	border-color: var(--replenor-border-soft);
	box-shadow: var(--replenor-shadow);
	color: var(--replenor-text);
}

.api-card {
	border-radius: 10px;
	grid-template-columns: auto minmax(220px, 1fr) auto auto;
}

.metric,
.result-grid div,
.inventory-snapshot,
.po-summary-grid div,
.order-summary-grid div,
.order-info-card,
.image-box {
	background: var(--replenor-card-raised);
}

.theme-switch {
	align-self: center;
	white-space: nowrap;
}

.metric,
.panel,
.products-panel {
	border-radius: 10px;
}

.panel-heading,
.table-toolbar,
.product-editor-heading {
	border-bottom-color: var(--replenor-border-soft);
}

.product-editor-actions,
.pager {
	border-top-color: var(--replenor-border-soft);
}

.table-wrap {
	background: var(--replenor-card);
}

th,
td {
	border-bottom-color: var(--replenor-border-soft);
}

th {
	background: var(--replenor-surface);
	color: var(--replenor-muted);
	position: sticky;
	top: 0;
	z-index: 1;
}

td {
	color: var(--replenor-text);
}

tbody tr:hover td {
	background: var(--replenor-row-hover);
}

tr.selected-row td,
.product-detail-row td {
	background: var(--replenor-selected);
}

.product-cell strong,
.money-stack strong,
.po-summary-grid strong,
.order-summary-grid strong,
.order-info-card h3,
.order-info-card h4,
.order-info-card strong {
	color: var(--replenor-text);
}

.order-summary-grid span,
.order-info-card p {
	color: var(--replenor-muted);
}

.modal-backdrop {
	background: rgba(2, 6, 23, 0.72);
}

.product-edit-modal,
.purchase-order-modal {
	background: var(--replenor-card);
	border: 1px solid var(--replenor-border);
	border-radius: 12px;
	box-shadow: 0 18px 48px rgba(2, 6, 23, 0.36);
	color: var(--replenor-text);
}

.message {
	border: 1px solid transparent;
	border-radius: 8px;
	min-height: 0;
	width: fit-content;
}

.message.success {
	background: rgba(34, 197, 94, 0.14);
	border-color: rgba(34, 197, 94, 0.34);
	color: var(--replenor-success);
}

.message.error {
	background: rgba(239, 68, 68, 0.14);
	border-color: rgba(239, 68, 68, 0.34);
	color: var(--replenor-danger);
}

.pill.good {
	background: rgba(34, 197, 94, 0.16);
	color: var(--replenor-success);
}

.pill.danger {
	background: rgba(239, 68, 68, 0.16);
	color: var(--replenor-danger);
}

.pill.neutral {
	background: rgba(148, 163, 184, 0.18);
	color: var(--replenor-muted);
}

.pill.warning {
	background: rgba(245, 158, 11, 0.18);
	color: var(--replenor-warning);
}

.pill.info {
	background: rgba(56, 189, 248, 0.18);
	color: var(--replenor-info);
}

.mud-popover,
.mud-paper,
.mud-dialog,
.mud-card {
	border-radius: 10px !important;
}

.mud-input-control {
	color: var(--replenor-text);
}

.ops-shell .mud-paper,
.ops-shell .mud-dialog,
.ops-shell .mud-dialog-content,
.ops-shell .mud-dialog-actions,
.ops-shell .mud-popover {
	background-color: var(--replenor-card) !important;
	border: 1px solid var(--replenor-border-soft);
	color: var(--replenor-text);
}

.ops-shell .mud-input,
.ops-shell .mud-input-root,
.ops-shell .mud-input-outlined,
.ops-shell .mud-picker-input-button {
	background-color: #0f172a !important;
	color: var(--replenor-text) !important;
}

.ops-shell .mud-input-control {
	background-color: transparent !important;
	border-radius: 8px;
	min-width: 0;
	overflow: visible;
}

.ops-shell .mud-input-control-input-container {
	background-color: transparent !important;
	min-width: 0;
}

.ops-shell .mud-input-root,
.ops-shell .mud-input-outlined {
	border-radius: 8px !important;
	min-width: 0;
	overflow: visible;
}

.ops-shell .mud-input-slot,
.ops-shell .mud-select-input,
.ops-shell .mud-autocomplete {
	background-color: transparent !important;
	min-width: 0;
}

.ops-shell[data-theme="light"] .mud-input,
.ops-shell[data-theme="light"] .mud-input-root,
.ops-shell[data-theme="light"] .mud-input-outlined,
.ops-shell[data-theme="light"] .mud-picker-input-button {
	background-color: #ffffff !important;
	color: var(--replenor-text) !important;
}

.ops-shell .mud-input,
.ops-shell .mud-input-slot,
.ops-shell .mud-input-control-input-container {
	color: var(--replenor-text) !important;
}

.ops-shell .mud-checkbox .mud-typography {
	overflow: visible;
	white-space: nowrap;
}

.ops-shell .mud-input-outlined-border {
	border-color: var(--replenor-border) !important;
}

.ops-shell .mud-input-label,
.ops-shell .mud-typography,
.ops-shell .mud-switch-label {
	color: var(--replenor-muted);
}

body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-label,
body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-label.mud-input-label-focused,
body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-label.mud-focused {
	color: #a7b2c3 !important;
}

body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-underline::before,
body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-underline::after {
	border-bottom-color: rgba(148, 163, 184, 0.34) !important;
}

body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input,
body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-root,
body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-slot,
body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-select-input {
	color: #f8fafc !important;
}

body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-control {
	margin: 0 !important;
	max-width: 240px;
	min-width: 0;
	width: 100%;
}

body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-root,
body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-slot,
body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-select-input {
	font-size: 14px;
	min-height: 32px;
}

body:has(.ops-shell[data-theme="dark"]) .mud-popover .mud-input-label {
	font-size: 12px;
	line-height: 1.1;
}

.ops-shell .mud-tabs-toolbar {
	background-color: var(--replenor-card);
	border-bottom: 1px solid var(--replenor-border-soft);
}

.ops-shell .mud-tab {
	color: var(--replenor-muted);
}

.ops-shell .mud-tab.mud-tab-active {
	color: var(--replenor-primary);
}

.ops-shell .replenor-grid {
	background: var(--replenor-card);
	border-top: 1px solid var(--replenor-border-soft);
	color: var(--replenor-text);
	min-width: 0;
}

.ops-shell .replenor-grid .mud-table,
.ops-shell .replenor-grid .mud-table-container,
.ops-shell .replenor-grid .mud-data-grid {
	background: var(--replenor-card);
	color: var(--replenor-text);
}

.ops-shell .replenor-grid .mud-table-container {
	max-height: min(68vh, 720px);
	overflow: auto;
}

.ops-shell .replenor-grid .mud-table-head,
.ops-shell .replenor-grid .mud-table-head .mud-table-cell {
	background: var(--replenor-surface);
	color: var(--replenor-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	position: sticky;
	text-transform: uppercase;
	top: 0;
	z-index: 3;
}

.ops-shell .replenor-grid .mud-table-cell {
	border-bottom: 1px solid var(--replenor-border-soft);
	color: var(--replenor-text);
	font-size: 13px;
	padding: 9px 14px;
}

.ops-shell .replenor-grid .mud-table-row:hover .mud-table-cell {
	background: var(--replenor-row-hover);
}

.ops-shell .replenor-grid.clickable-grid .mud-table-body .mud-table-row {
	cursor: pointer;
}

.shopify-category-picker {
	position: relative;
	z-index: 20;
}

.shopify-category-label {
	background: var(--replenor-card);
	color: var(--replenor-text);
	font-size: 12px;
	left: 14px;
	line-height: 1;
	padding: 0 4px;
	position: absolute;
	top: -6px;
	z-index: 2;
}

.shopify-category-trigger {
	align-items: center;
	background: #0f172a !important;
	border: 1px solid #334155;
	border-radius: 8px;
	color: var(--replenor-text);
	display: flex;
	font: inherit;
	gap: 12px;
	height: 58px;
	justify-content: space-between;
	padding: 0 14px;
	text-align: left;
	width: 100%;
}

.shopify-category-trigger:hover {
	border-color: #64748b;
}

.shopify-category-trigger span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shopify-category-popover-panel {
	background: #151f2e;
	border: 1px solid rgba(148, 163, 184, 0.34);
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
	color: #f8fafc;
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr);
	inline-size: 100%;
	max-block-size: min(48dvb, 24rem);
	overflow: hidden;
}

.shopify-category-search {
	align-items: center;
	background: #101826;
	border-bottom: 1px solid rgba(148, 163, 184, 0.18);
	display: flex;
	gap: 10px;
	padding: 10px 12px;
}

.shopify-category-search .mud-icon-root {
	color: #a7b2c3;
}

.shopify-category-search .mud-input-control {
	flex: 1 1 auto;
	min-width: 0;
}

.shopify-category-breadcrumb {
	align-items: center;
	background: #151f2e;
	border-bottom: 1px solid rgba(148, 163, 184, 0.18);
	display: flex;
	gap: 6px;
	min-height: 38px;
	overflow-x: auto;
	padding: 7px 12px;
	white-space: nowrap;
}

.shopify-category-breadcrumb button {
	background: transparent !important;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--replenor-accent) !important;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	min-height: 0;
	padding: 0;
	width: auto;
}

.shopify-category-breadcrumb span {
	color: #a7b2c3;
	display: inline;
}

.shopify-category-list {
	min-block-size: 0;
	overflow-y: auto;
	padding: 6px 0;
}

.shopify-category-row {
	align-items: center;
	background: transparent !important;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #f8fafc !important;
	display: flex;
	font: inherit;
	gap: 12px;
	justify-content: space-between;
	min-height: 36px;
	padding: 8px 12px 8px 24px;
	text-align: left;
	width: 100%;
}

.shopify-category-row:hover {
	background: rgba(14, 165, 233, 0.08) !important;
	color: #f8fafc !important;
}

.shopify-category-current {
	color: #10b981 !important;
	font-weight: 700;
}

.shopify-category-empty {
	color: #a7b2c3;
	padding: 16px;
}

.ops-shell[data-theme="light"] .shopify-category-label {
	background: #ffffff;
}

.ops-shell[data-theme="light"] .shopify-category-trigger {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #0f172a;
}

body:has(.ops-shell[data-theme="light"]) .shopify-category-popover-panel {
	background: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
	color: #0f172a;
}

body:has(.ops-shell[data-theme="light"]) .shopify-category-search,
body:has(.ops-shell[data-theme="light"]) .shopify-category-breadcrumb {
	background: #ffffff;
	border-bottom-color: #e2e8f0;
}

body:has(.ops-shell[data-theme="light"]) .shopify-category-row {
	color: #0f172a !important;
}

body:has(.ops-shell[data-theme="light"]) .shopify-category-row:hover {
	background: #f1f5f9 !important;
}

.ops-shell .replenor-grid .mud-table-sort-label,
.ops-shell .replenor-grid .mud-table-pagination,
.ops-shell .replenor-grid .mud-data-grid-filter-header-cell,
.ops-shell .replenor-grid .mud-icon-button {
	color: var(--replenor-muted);
}

.ops-shell .replenor-grid .mud-icon-button {
	background: transparent !important;
	border-radius: 6px;
	box-shadow: none;
	color: var(--replenor-muted) !important;
	height: 28px;
	min-height: 28px;
	min-width: 28px;
	padding: 4px;
	width: 28px;
}

.ops-shell .replenor-grid .mud-icon-button:hover {
	background: rgba(148, 163, 184, 0.14) !important;
	color: var(--replenor-text) !important;
}

.ops-shell .replenor-grid .mud-table-sort-label:hover {
	color: var(--replenor-text);
}

.ops-shell .replenor-grid .mud-table-body .mud-table-cell strong {
	color: var(--replenor-text);
}

.ops-shell .replenor-grid .mud-table-body .mud-table-cell span:not(.pill):not(.mud-button-label) {
	color: var(--replenor-muted);
	display: block;
	font-size: 12px;
	margin-top: 2px;
}

.ops-shell .replenor-grid .mud-table-body .mud-table-cell .pill {
	display: inline-flex;
	margin-top: 0;
}

.ops-shell .replenor-grid .mud-input,
.ops-shell .replenor-grid .mud-input-root,
.ops-shell .replenor-grid .mud-input-outlined {
	background-color: #0f172a !important;
}

.ops-shell[data-theme="light"] .replenor-grid .mud-input,
.ops-shell[data-theme="light"] .replenor-grid .mud-input-root,
.ops-shell[data-theme="light"] .replenor-grid .mud-input-outlined {
	background-color: #ffffff !important;
}

@media (max-width: 980px) {
	.ops-shell {
		grid-template-columns: 1fr;
	}

	.ops-nav {
		height: auto;
		overflow-y: visible;
		position: static;
	}

	.ops-nav:not(.signed-out-nav) {
		align-items: center;
		display: grid;
		gap: 12px;
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 16px 24px;
	}

	.mobile-nav-toggle {
		display: inline-flex;
	}

	.ops-nav nav {
		display: none;
		grid-column: 1 / -1;
		grid-template-columns: 1fr;
		padding-top: 4px;
	}

	.ops-nav nav.mobile-nav-open {
		display: grid;
	}

	.nav-drawer-items {
		margin-left: 14px;
	}

	.ops-header,
	.api-card,
	.metric-grid {
		grid-template-columns: 1fr;
	}

	.action-panel {
		align-items: stretch;
		flex-direction: column;
	}

	.forecast-filter-header {
		align-items: stretch;
		flex-direction: column;
	}

	.forecast-header-actions > * {
		flex: 1 1 auto;
	}

	.forecast-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.custom-dashboard-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.custom-dashboard-widget {
		grid-column: span 1;
	}

	.dashboard-wide-widget {
		grid-column: 1 / -1;
	}

	.po-filter-toolbar {
		flex-wrap: wrap;
	}

	.product-list-toolbar {
		flex-wrap: wrap;
	}

	.po-filter-toolbar .compact-filter {
		flex: 1 1 180px;
		max-width: 100%;
		width: auto;
	}

	.action-row {
		justify-content: flex-start;
	}

	.pager {
		align-items: stretch;
		flex-direction: column;
	}

	.pager-meta,
	.pager-actions {
		flex-wrap: wrap;
	}

	.product-form-grid,
	.product-form-grid.compact-grid,
	.product-media-grid,
	.inventory-tab-grid,
	.products-workbench,
	.order-detail-layout,
	.order-summary-grid {
		grid-template-columns: 1fr;
	}

	.products-workbench .table-wrap {
		border-left: 0;
		border-right: 0;
	}

	.modal-backdrop {
		align-items: stretch;
		padding: 12px;
	}

	.product-edit-modal {
		max-height: calc(100vh - 24px);
		min-width: 0;
		width: 100%;
	}

	.purchase-order-modal {
		max-height: calc(100vh - 24px);
		min-width: 0;
		width: 100%;
	}

	.supplier-detail-modal {
		max-height: calc(100vh - 24px);
		min-width: 0;
		width: 100%;
	}

	.po-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.row-actions {
		min-width: 0;
	}
}

#blazor-error-ui {
	background: #fee2e2;
	bottom: 0;
	box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.16);
	color: #7f1d1d;
	display: none;
	left: 0;
	padding: 12px 16px;
	position: fixed;
	right: 0;
	z-index: 1000;
}

#blazor-error-ui .dismiss {
	cursor: pointer;
	float: right;
	font-weight: 800;
}

@media (max-width: 620px) {
	.forecast-filter-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.custom-dashboard-grid {
		grid-template-columns: 1fr;
	}

	.custom-dashboard-widget {
		grid-column: 1;
	}
}

/* Phone layout: keep MudBlazor controls touch-friendly and dense data usable. */
@media (max-width: 620px) {
	html {
		overflow-x: hidden;
	}

	.ops-shell {
		min-height: 100dvh;
	}

	.ops-nav:not(.signed-out-nav) {
		gap: 10px;
		padding: max(10px, env(safe-area-inset-top)) 12px 10px;
		position: sticky;
		top: 0;
		z-index: 40;
	}

	.brand {
		min-width: 0;
	}

	.brand-logo {
		height: 36px;
		width: 36px;
	}

	.brand > div {
		min-width: 0;
	}

	.brand span {
		display: none;
	}

	.mobile-nav-toggle {
		gap: 6px;
		min-height: 44px;
		padding-inline: 12px;
	}

	.ops-nav nav {
		max-height: calc(100dvh - 66px - env(safe-area-inset-top));
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-bottom: max(8px, env(safe-area-inset-bottom));
		scrollbar-gutter: stable;
	}

	.ops-nav nav a,
	.nav-drawer-trigger,
	.ops-nav nav .nav-drawer-items a {
		min-height: 44px;
	}

	.ops-main {
		gap: 12px;
		padding: 12px;
	}

	.ops-header {
		align-items: stretch;
		gap: 12px;
		margin: -12px -12px 0;
		min-height: 0;
		padding: 14px 12px;
		position: static;
	}

	.ops-header h1 {
		font-size: clamp(1.45rem, 7vw, 1.75rem);
	}

	.api-card {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding: 10px;
	}

	.api-card > span:not(.pill) {
		flex: 1 1 calc(100% - 100px);
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.api-card > span:not(.pill) + span:not(.pill) {
		display: none;
	}

	.api-card .theme-switch {
		margin-right: auto;
	}

	.api-card .mud-button-root {
		min-height: 44px;
	}

	.page-stack {
		gap: 16px;
	}

	.panel-heading,
	.action-panel,
	.product-editor-heading,
	.forecast-filter-header {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.action-row,
	.table-toolbar,
	.product-list-toolbar,
	.po-filter-toolbar,
	.forecast-header-actions,
	.forecast-custom-row,
	.forecast-save-row,
	.billing-actions {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.action-row > *,
	.table-toolbar > *,
	.product-list-toolbar > *,
	.po-filter-toolbar > *,
	.forecast-header-actions > *,
	.forecast-custom-row > *,
	.forecast-save-row > * {
		max-width: none;
		width: 100%;
	}

	.action-row .mud-button-root,
	.table-toolbar .mud-button-root,
	.product-list-toolbar .mud-button-root,
	.po-filter-toolbar .mud-button-root,
	.forecast-header-actions .mud-button-root,
	.billing-actions .mud-button-root {
		min-height: 44px;
		width: 100%;
	}

	.compact-filter,
	.search-filter,
	.wide-filter,
	.po-filter-toolbar .compact-filter,
	.forecast-custom-row .compact-filter,
	.forecast-save-row .mud-input-control {
		max-width: none;
		width: 100%;
	}

	.ops-shell .mud-tabs-tabbar {
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
	}

	.ops-shell .mud-tab {
		min-height: 44px;
		white-space: nowrap;
	}

	.table-wrap,
	.ops-shell .replenor-grid .mud-table-container {
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
	}

	.ops-shell .replenor-grid .mud-table {
		min-width: max-content;
	}

	.ops-shell .replenor-grid .mud-table-cell {
		padding: 11px 12px;
	}

	.ops-shell .replenor-grid .mud-icon-button {
		height: 44px;
		min-height: 44px;
		min-width: 44px;
		width: 44px;
	}

	.ops-shell .replenor-grid .mud-table-pagination-toolbar {
		align-items: center;
		flex-wrap: wrap;
		height: auto;
		justify-content: flex-end;
		min-height: 52px;
	}

	.modal-backdrop {
		padding: 0;
	}

	.product-edit-modal,
	.inventory-transfer-modal,
	.forecast-detail-modal,
	.purchase-order-modal,
	.manual-purchase-order-modal,
	.purchase-order-close-modal,
	.supplier-detail-modal {
		border-radius: 0;
		height: 100dvh;
		max-height: 100dvh;
		max-width: none;
		min-width: 0;
		width: 100%;
	}

	.modal-tab-content,
	.product-edit-modal .modal-tab-content,
	.inventory-transfer-modal .modal-tab-content,
	.forecast-detail-modal .modal-tab-content,
	.purchase-order-close-modal .modal-tab-content {
		padding: 16px 12px !important;
	}

	.product-editor-actions {
		padding-bottom: max(14px, env(safe-area-inset-bottom));
	}

	.product-editor-actions .mud-button-root {
		min-height: 44px;
	}

	.forecast-detail-grid,
	.manual-po-fields,
	.po-summary-grid,
	.order-summary-grid,
	.initial-import-counts,
	.initial-import-activity,
	.onboarding-steps {
		grid-template-columns: 1fr;
	}

	.page-session-loading {
		min-height: 60dvh;
		padding: 16px;
	}
}

.page-session-loading {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: calc(100vh - 150px);
	padding: 24px;
}

.session-account-placeholder {
	display: grid;
	gap: 7px;
	min-width: 190px;
}

.session-account-placeholder span {
	background: rgba(148, 163, 184, 0.18);
	border-radius: 999px;
	display: block;
	height: 12px;
	width: 190px;
}

.session-account-placeholder span:last-child {
	width: 140px;
}

.session-loading-card {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: center;
}

.product-detail-image {
	border-radius: 8px;
	height: 100%;
	max-height: 360px;
	object-fit: contain;
	width: 100%;
}

.session-loading-card strong {
	font-size: 1.35rem;
}

.session-loading-card > span:last-child {
	color: #a7b2c3;
}

.session-loading-spinner {
	animation: session-loading-spin 0.8s linear infinite;
	border: 3px solid rgba(148, 163, 184, 0.28);
	border-radius: 50%;
	border-top-color: #10b981;
	height: 30px;
	width: 30px;
}

@keyframes session-loading-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.session-loading-spinner {
		animation-duration: 1.8s;
	}
}

.billing-panel {
	display: grid;
	gap: 20px;
	max-width: 900px;
	padding: 24px;
}

.initial-import-panel {
	display: grid;
	gap: 16px;
	padding: 24px;
}

.initial-import-progress {
	accent-color: var(--replenor-primary, #10b981);
	height: 8px;
	width: 100%;
}

.initial-import-counts {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.initial-import-counts span {
	background: var(--surface-muted, rgba(148, 163, 184, 0.1));
	border-radius: 8px;
	color: var(--replenor-muted, #64748b);
	display: grid;
	font-size: 0.86rem;
	gap: 3px;
	padding: 14px;
}

.initial-import-counts strong {
	color: var(--replenor-text, #0f172a);
	font-size: 1.25rem;
}

.ops-shell.onboarding-shell {
	display: block;
}

.onboarding-shell .ops-nav {
	border-bottom: 1px solid var(--replenor-nav-border);
	border-right: 0;
	height: auto;
	overflow: visible;
	padding: 18px 24px;
	position: static;
}

.onboarding-shell .ops-main {
	margin: 0 auto;
	max-width: 1180px;
}

.onboarding-page {
	display: grid;
	gap: 18px;
	margin: 0 auto;
	max-width: 980px;
}

.onboarding-hero {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: auto minmax(0, 1fr);
	padding: 8px 2px;
}

.onboarding-hero h2 {
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	margin-bottom: 8px;
}

.onboarding-hero p:last-child,
.onboarding-footnote {
	color: var(--replenor-muted, #64748b);
	line-height: 1.55;
}

.onboarding-footnote {
	font-size: 0.9rem;
	text-align: center;
}

.onboarding-steps {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.onboarding-step {
	align-items: center;
	border: 1px solid var(--replenor-border, rgba(148, 163, 184, 0.25));
	border-radius: 8px;
	display: grid;
	gap: 10px;
	grid-template-columns: auto minmax(0, 1fr);
	opacity: 0.58;
	padding: 12px;
}

.onboarding-step > span {
	align-items: center;
	background: rgba(148, 163, 184, 0.18);
	border-radius: 50%;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 800;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.onboarding-step div,
.initial-import-activity > div {
	display: grid;
	gap: 3px;
}

.onboarding-step small,
.initial-import-activity span {
	color: var(--replenor-muted, #64748b);
	font-size: 0.78rem;
}

.onboarding-step.active,
.onboarding-step.complete {
	opacity: 1;
}

.onboarding-step.active {
	border-color: var(--replenor-primary, #10b981);
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.onboarding-step.complete > span {
	background: #166534;
	color: #fff;
}

.onboarding-step.failed {
	border-color: #ef4444;
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.initial-import-activity {
	border-top: 1px solid var(--replenor-border, rgba(148, 163, 184, 0.2));
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-top: 16px;
}

@media (max-width: 760px) {
	.onboarding-steps,
	.initial-import-counts,
	.initial-import-activity {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.onboarding-hero {
		align-items: start;
	}
}

.billing-details {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.billing-details > div {
	background: var(--surface-muted, rgba(148, 163, 184, 0.1));
	border-radius: 8px;
	display: grid;
	gap: 4px;
	padding: 14px;
}

.billing-details span {
	color: var(--text-secondary, #64748b);
	font-size: 0.82rem;
}

.billing-plan-summary {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.billing-plan-summary > div {
	border: 1px solid var(--border, #475569);
	border-radius: 8px;
	display: grid;
	gap: 4px;
	padding: 16px;
}

.billing-plan-summary span,
.billing-diagnostic {
	color: var(--text-secondary, #94a3b8);
	font-size: 0.82rem;
}

.billing-features h3 {
	font-size: 0.95rem;
	margin: 0 0 10px;
}

.billing-features ul {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.billing-features li::before {
	color: var(--primary, #10b981);
	content: "✓";
	font-weight: 700;
	margin-right: 8px;
}

.billing-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.billing-actions a {
	text-decoration: none;
}

.status {
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 5px 10px;
}

.status.good {
	background: rgba(16, 185, 129, 0.15);
	color: #047857;
}

.status.danger {
	background: rgba(239, 68, 68, 0.14);
	color: #b91c1c;
}

.status.muted,
.message.warning {
	background: rgba(245, 158, 11, 0.14);
	color: #92400e;
}

@media (max-width: 620px) {
	.billing-panel,
	.initial-import-panel {
		padding: 16px 12px;
	}

	.onboarding-steps,
	.initial-import-counts,
	.initial-import-activity {
		grid-template-columns: 1fr;
	}

	.ops-header {
		gap: 8px;
		padding-block: 10px;
	}

	.api-card {
		align-items: center;
		display: grid;
		gap: 4px 8px;
		grid-template-columns: auto minmax(0, 1fr) auto;
		padding: 6px 10px;
	}

	.api-card .theme-switch {
		grid-column: 1;
		margin: 0;
	}

	.api-card > span:not(.pill),
	.api-card > .session-account-placeholder {
		grid-column: 2 / -1;
		width: auto;
	}

	.api-card > .mud-button-root {
		padding-inline: 12px;
	}

	.api-card > .pill {
		justify-self: start;
	}
}
