.nwm-view-toggle {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: var(--rd-theme-surface-hover, #f3f4f6);
	border-radius: 10px;
	margin-bottom: 18px;
}

.nwm-view-toggle-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rd-theme-text-muted, #6b7280);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.nwm-view-toggle-btn.is-active {
	background: var(--rd-theme-surface, #fff);
	color: var(--rd-theme-text, #111827);
	box-shadow: 0 1px 3px var(--rd-theme-shadow, rgba(0, 0, 0, 0.08));
}

.nwm-notice {
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 18px;
	font-size: 13.5px;
	line-height: 1.45;
}

.nwm-notice-warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.nwm-filters-bar {
	margin-bottom: 18px;
}

.nwm-filters-bar .rd-filter-selects {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	min-width: 0;
}

.nwm-filters-bar .nwm-warehouse-select {
	min-width: 200px;
}

.nwm-filters-bar .rd-cat-trigger {
	min-width: 200px;
	height: 34px;
	padding: 0 10px;
}

/* Modals — self-contained so they render correctly even if dashboard modal CSS is stripped */
.nwm-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.45);
}

.nwm-modal-backdrop[hidden] {
	display: none !important;
}

.nwm-modal-backdrop .rd-modal,
.nwm-modal-backdrop .nwm-modal {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.nwm-modal-wide {
	max-width: 520px !important;
}

.nwm-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 0;
}

.nwm-modal-header .rd-modal-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

.nwm-modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #6b7280;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.nwm-modal-close:hover {
	background: #f3f4f6;
	color: #111827;
}

.nwm-modal-backdrop .rd-modal-body {
	padding: 12px 20px 0;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

.nwm-modal-backdrop .rd-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 18px 20px 20px;
}

.nwm-modal-backdrop .rd-form-row {
	margin-bottom: 14px;
}

.nwm-modal-backdrop .rd-form-row:last-child {
	margin-bottom: 0;
}

.nwm-modal-backdrop .rd-form-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.nwm-modal-backdrop .rd-form-input,
.nwm-modal-backdrop .rd-select {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	color: #111827;
	background: #fff;
}

.nwm-modal-backdrop .rd-form-input:focus,
.nwm-modal-backdrop .rd-select:focus {
	outline: none;
	border-color: var(--rd-site-accent, #2563eb);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rd-site-accent, #2563eb) 18%, transparent);
}

.nwm-modal-backdrop .rd-form-input--textarea {
	min-height: 88px;
	resize: vertical;
}

.nwm-modal-backdrop .rd-btn-primary,
.nwm-modal-backdrop .rd-btn-secondary,
.nwm-modal-backdrop .rd-btn-ghost,
.nwm-modal-backdrop .rd-btn-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
}

.nwm-modal-backdrop .rd-btn-primary {
	background: var(--rd-site-accent, #2563eb);
	color: #fff;
}

.nwm-modal-backdrop .rd-btn-ghost,
.nwm-modal-backdrop .rd-btn-secondary {
	background: #fff;
	color: #374151;
	border: 1px solid #d1d5db;
}

.nwm-modal-backdrop .rd-btn-danger {
	background: #dc2626 !important;
	color: #fff;
}

.nwm-modal-wide {
	max-width: 520px;
}

.nwm-modal-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	margin-top: 12px;
}

.nwm-ramus-unit-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.nwm-ramus-unit-row .rd-select {
	flex: 1;
	min-width: 0;
}

.nwm-ramus-unit-row .rd-btn-ghost {
	flex-shrink: 0;
	white-space: nowrap;
}

.nwm-ramus-status {
	margin-top: 6px;
}

.nwm-ramus-status.is-error {
	color: #dc2626;
}

.nwm-pickup-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #111827;
	cursor: pointer;
}

.nwm-pickup-check input {
	margin-top: 2px;
	width: 16px;
	height: 16px;
	accent-color: #2563eb;
	flex-shrink: 0;
}

.nwm-field-hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.45;
}

.nwm-stock-product-name {
	font-weight: 600;
	margin-bottom: 14px;
	color: #111827;
}

.nwm-stock-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.nwm-stock-row {
	display: grid;
	grid-template-columns: 1fr 100px;
	gap: 12px;
	align-items: center;
}

.nwm-stock-row label {
	font-size: 13px;
	color: #374151;
}

.nwm-stock-total {
	font-size: 14px;
	color: #374151;
}

.nwm-row-temporary {
	background: #fffbeb;
}

/* Product row accordion */
.nwm-product-row {
	cursor: pointer;
	transition: background 0.15s ease;
}

.nwm-product-row:hover {
	background: var(--rd-theme-row-hover, #f9fafb);
}

.nwm-product-row:hover td {
	background: transparent;
}

.nwm-product-row.is-open {
	background: var(--rd-theme-surface-hover, #f3f4f6);
}

.nwm-product-row.is-open td {
	background: transparent;
}

.nwm-product-row-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.nwm-product-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--rd-theme-border, #e5e7eb);
	border-radius: 6px;
	background: var(--rd-theme-surface, #fff);
	color: var(--rd-theme-text-muted, #6b7280);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nwm-product-toggle:hover {
	border-color: var(--rd-theme-border, #cbd5e1);
	color: var(--rd-theme-text-secondary, #374151);
	background: var(--rd-theme-surface-hover, #f9fafb);
}

.nwm-product-row.is-open .nwm-product-toggle {
	border-color: #3b82f6;
	background: var(--rd-theme-accent-soft, #eff6ff);
	color: #2563eb;
}

.nwm-product-chevron {
	transition: transform 0.15s ease;
}

.nwm-product-row.is-open .nwm-product-chevron {
	transform: rotate(90deg);
}

.nwm-product-row .rd-product-cell {
	flex: 1;
	min-width: 0;
}

.nwm-product-row .rd-thumb-placeholder {
	color: var(--rd-theme-text-subtle, #d1d5db);
}

.nwm-product-detail-row > td {
	padding: 0;
	border-top: none;
	background: var(--rd-theme-surface-muted, #f8fafc);
	box-shadow: inset 0 2px 6px -4px var(--rd-theme-shadow, rgba(15, 23, 42, 0.25));
}

.nwm-product-locations {
	padding: 16px 20px 20px 54px;
	animation: nwm-detail-in 0.18s ease;
}

@keyframes nwm-detail-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.nwm-product-locations-empty {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 14px 16px;
	font-size: 13px;
	color: var(--rd-theme-text-muted, #6b7280);
	background: var(--rd-theme-surface, #fff);
	border: 1px dashed var(--rd-theme-border, #d1d5db);
	border-radius: 10px;
}

.nwm-product-locations-empty svg {
	color: var(--rd-theme-text-subtle, #9ca3af);
	flex-shrink: 0;
}

.nwm-locations-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.nwm-locations-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rd-theme-text-muted, #64748b);
}

.nwm-locations-count {
	font-size: 12px;
	font-weight: 500;
	color: var(--rd-theme-text-subtle, #94a3b8);
}

.nwm-locations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(312px, 1fr));
	gap: 10px;
	max-width: 988px;
}

.nwm-location-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	background: var(--rd-theme-surface-elevated, #fff);
	border: 1px solid var(--rd-theme-border, #e5e7eb);
	border-radius: 10px;
	box-shadow: 0 1px 2px var(--rd-theme-shadow, rgba(15, 23, 42, 0.04));
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nwm-location-card:hover {
	border-color: var(--rd-theme-border, #cbd5e1);
}

.nwm-location-card.is-empty {
	background: var(--rd-theme-surface-muted, #f8fafc);
	border-style: dashed;
}

.nwm-location-card.is-temporary {
	background: var(--rd-theme-warning-soft, #fffbeb);
	border-color: #fde68a;
}

.nwm-location-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--rd-theme-accent-soft, #eff6ff);
	color: #2563eb;
}

.nwm-location-card.is-empty .nwm-location-icon {
	background: var(--rd-theme-surface-hover, #f1f5f9);
	color: var(--rd-theme-text-subtle, #94a3b8);
}

.nwm-location-card.is-temporary .nwm-location-icon {
	background: #fef3c7;
	color: #b45309;
}

.nwm-location-info {
	flex: 1;
	min-width: 0;
}

.nwm-location-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--rd-theme-text, #111827);
	line-height: 1.35;
	word-break: break-word;
}

.nwm-location-address {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--rd-theme-text-muted, #6b7280);
	line-height: 1.35;
	word-break: break-word;
}

.nwm-location-qty {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	flex-shrink: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--rd-theme-accent-soft, #eff6ff);
	color: #1d4ed8;
}

.nwm-location-card.is-empty .nwm-location-qty {
	background: var(--rd-theme-surface-hover, #f1f5f9);
	color: var(--rd-theme-text-subtle, #94a3b8);
}

.nwm-location-card.is-temporary .nwm-location-qty {
	background: #fef3c7;
	color: #b45309;
}

.nwm-location-qty-value {
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.nwm-location-qty-label {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.75;
}

.rd-btn-danger {
	background: #dc2626 !important;
}

.rd-btn-sm {
	padding: 6px 12px;
	font-size: 13px;
}

.nwm-admin-stock-card {
	margin-top: 0;
}

.nwm-admin-stock-total {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 12px;
}

.nwm-admin-stock-row {
	display: grid;
	grid-template-columns: 1fr 90px;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
}

.nwm-admin-stock-label {
	font-size: 13px;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.nwm-admin-stock-input {
	min-height: 38px;
}

.nwm-admin-stock-warning {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #eef0f3;
}

.nwm-admin-stock-warning .rd-form-label {
	margin-bottom: 6px;
}

.nwm-admin-stock-hint {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #6b7280;
}

.nwm-field-help {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	flex-shrink: 0;
}

.nwm-field-help-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	padding: 0;
	border: 1px solid #d1d5db;
	border-radius: 50%;
	background: #f9fafb;
	color: #6b7280;
	font-size: 11px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1;
	cursor: help;
	transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.nwm-field-help-trigger:hover,
.nwm-field-help-trigger:focus-visible,
.nwm-field-help.is-open .nwm-field-help-trigger {
	border-color: color-mix(in srgb, var(--rd-site-accent, var(--rd-accent, #2563eb)) 45%, #d1d5db);
	color: var(--rd-site-accent, var(--rd-accent, #2563eb));
	background: color-mix(in srgb, var(--rd-site-accent, var(--rd-accent, #2563eb)) 8%, #fff);
	outline: none;
}

.nwm-field-help > .nwm-field-help-tooltip {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.nwm-field-help-tooltip.nwm-field-help-portal {
	position: fixed;
	box-sizing: border-box;
	width: max-content;
	max-width: min(280px, calc(100vw - 24px));
	padding: 9px 11px;
	border-radius: 8px;
	background: #1f2937;
	color: #f9fafb;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	white-space: normal;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 10060;
	transform: none;
}

.nwm-field-help-tooltip.nwm-field-help-portal::before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 6px solid transparent;
}

.nwm-field-help-tooltip.nwm-field-help-portal.is-below::before {
	bottom: 100%;
	left: var(--nwm-help-arrow-left, 50%);
	transform: translateX(-50%);
	border-bottom-color: #1f2937;
}

.nwm-field-help-tooltip.nwm-field-help-portal.is-above::before {
	top: 100%;
	left: var(--nwm-help-arrow-left, 50%);
	transform: translateX(-50%);
	border-top-color: #1f2937;
}

.nwm-field-help-tooltip.nwm-field-help-portal.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

[data-rd-theme="dark"] .nwm-field-help-trigger {
	border-color: var(--rd-theme-border, #334155);
	background: var(--rd-theme-surface, #1f2937);
	color: var(--rd-theme-text-muted, #94a3b8);
}

[data-rd-theme="dark"] .nwm-field-help-trigger:hover,
[data-rd-theme="dark"] .nwm-field-help-trigger:focus-visible,
[data-rd-theme="dark"] .nwm-field-help.is-open .nwm-field-help-trigger {
	border-color: color-mix(in srgb, var(--rd-site-accent, var(--rd-accent, #60a5fa)) 50%, var(--rd-theme-border, #334155));
	color: var(--rd-site-accent, var(--rd-accent, #60a5fa));
	background: color-mix(in srgb, var(--rd-site-accent, var(--rd-accent, #60a5fa)) 12%, var(--rd-theme-surface, #1f2937));
}

.nwm-admin-stock-row--readonly {
	grid-template-columns: 1fr auto;
}

.nwm-admin-stock-value {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 42px;
	padding: 0 4px;
	font-size: 13.5px;
	font-weight: 600;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
}

/* B2B product detail — legacy accordion styles removed; see b2b.css */

/* Action menus */
#nwm-results .rd-action-wrap {
	position: relative;
	display: inline-block;
}

#nwm-results .rd-action-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	border: 1px solid transparent;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
}

#nwm-results .rd-action-trigger:hover,
#nwm-results .rd-action-wrap:has(.rd-action-menu.open) .rd-action-trigger {
	background: #f3f4f6;
	border-color: #e5e7eb;
	color: #111827;
}

#nwm-results .rd-action-menu {
	display: none;
	position: fixed;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	min-width: 160px;
	z-index: 9999;
	overflow: hidden;
}

#nwm-results .rd-action-menu.open {
	display: block;
}

#nwm-results .rd-action-item {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 9px 14px;
	border: none;
	background: transparent;
	color: #374151;
	font-size: 13.5px;
	text-decoration: none;
	cursor: pointer;
	text-align: left;
}

#nwm-results .rd-action-item:hover {
	background: #f3f4f6;
	color: #111827;
}

[data-rd-theme="dark"] #nwm-results .rd-action-trigger {
	color: var(--rd-theme-text-muted);
}

[data-rd-theme="dark"] #nwm-results .rd-action-trigger:hover,
[data-rd-theme="dark"] #nwm-results .rd-action-wrap:has(.rd-action-menu.open) .rd-action-trigger {
	background: var(--rd-theme-surface-hover);
	border-color: var(--rd-theme-border);
	color: var(--rd-theme-text);
}

[data-rd-theme="dark"] #nwm-results .rd-action-menu {
	background: var(--rd-theme-surface-elevated);
	border-color: var(--rd-theme-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

[data-rd-theme="dark"] #nwm-results .rd-action-item {
	color: var(--rd-theme-text-secondary);
}

[data-rd-theme="dark"] #nwm-results .rd-action-item:hover {
	background: var(--rd-theme-surface-hover);
	color: var(--rd-theme-text);
}

[data-rd-theme="dark"] #nwm-results .rd-table strong {
	color: var(--rd-theme-text);
}

[data-rd-theme="dark"] .nwm-notice-warning {
	background: var(--rd-theme-warning-soft);
	border-color: #854d0e;
	color: #fcd34d;
}

[data-rd-theme="dark"] .nwm-filters-bar .rd-cat-trigger {
	background-color: var(--rd-theme-input-bg);
	border-color: var(--rd-theme-border);
	color: var(--rd-theme-text-secondary);
}

[data-rd-theme="dark"] .nwm-filters-bar .rd-cat-trigger:hover,
[data-rd-theme="dark"] .nwm-filters-bar .rd-cat-trigger.active {
	border-color: #3b82f6;
	background: var(--rd-theme-accent-soft);
	color: #93c5fd;
}

[data-rd-theme="dark"] .nwm-filters-bar .rd-cat-trigger svg:first-child,
[data-rd-theme="dark"] .nwm-filters-bar .rd-cat-trigger.active svg:first-child {
	color: #93c5fd;
}

/* Stock journal */
.nwm-journal-card {
	padding: 0;
	overflow: hidden;
}

.nwm-journal-days {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.nwm-journal-day {
	border-bottom: 1px solid var(--rd-theme-border, #e5e7eb);
}

.nwm-journal-day:last-child {
	border-bottom: none;
}

.nwm-journal-day-toggle {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 18px;
	border: none;
	background: var(--rd-theme-surface, #fff);
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease;
}

.nwm-journal-day-toggle:hover {
	background: var(--rd-theme-row-hover, #f9fafb);
}

.nwm-journal-day.is-open .nwm-journal-day-toggle {
	background: var(--rd-theme-surface-hover, #f3f4f6);
	border-bottom: 1px solid var(--rd-theme-border, #e5e7eb);
}

.nwm-journal-day-date {
	font-size: 14px;
	font-weight: 600;
	color: var(--rd-theme-text, #111827);
	letter-spacing: -0.01em;
}

.nwm-journal-day-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--rd-theme-accent-soft, #eef2ff);
	color: #4338ca;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.nwm-journal-day-chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	color: var(--rd-theme-text-muted, #6b7280);
	background: var(--rd-theme-surface, #fff);
	border: 1px solid var(--rd-theme-border, #e5e7eb);
	transition: transform 0.2s ease, background 0.15s ease;
}

.nwm-journal-day-toggle:hover .nwm-journal-day-chevron {
	background: var(--rd-theme-surface-hover, #f9fafb);
}

.nwm-journal-day.is-open .nwm-journal-day-chevron {
	transform: rotate(180deg);
	background: var(--rd-theme-surface, #fff);
}

.nwm-journal-day-panel {
	padding: 12px 14px 16px;
	background: var(--rd-theme-surface-muted, #f9fafb);
}

.nwm-journal-day-loading,
.nwm-journal-detail-loading,
.nwm-journal-day-empty {
	font-size: 13px;
	color: var(--rd-theme-text-muted, #6b7280);
	padding: 10px 4px;
}

.nwm-journal-list {
	background: var(--rd-theme-surface, #fff);
	border: 1px solid var(--rd-theme-border, #e5e7eb);
	border-radius: 8px;
	overflow: hidden;
}

.nwm-journal-list-head,
.nwm-journal-entry {
	display: grid;
	grid-template-columns: minmax(160px, 1.6fr) minmax(96px, 0.9fr) 52px 52px 72px 48px 28px;
	align-items: center;
	gap: 8px 10px;
}

.nwm-journal-list-head {
	padding: 8px 12px;
	background: var(--rd-theme-surface-muted, #f9fafb);
	border-bottom: 1px solid var(--rd-theme-border, #e5e7eb);
}

.nwm-journal-list-head .nwm-journal-col {
	font-size: 11px;
	font-weight: 600;
	color: var(--rd-theme-text-muted, #6b7280);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.nwm-journal-entry {
	width: 100%;
	padding: 10px 12px;
	border: none;
	border-bottom: 1px solid var(--rd-theme-border-light, #f3f4f6);
	background: var(--rd-theme-surface, #fff);
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.nwm-journal-entry:last-child {
	border-bottom: none;
}

.nwm-journal-entry:hover,
.nwm-journal-entry:focus-visible {
	background: var(--rd-theme-row-hover, #f9fafb);
	outline: none;
	box-shadow: inset 3px 0 0 #6366f1;
}

.nwm-journal-col {
	min-width: 0;
}

.nwm-journal-col-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.nwm-journal-col-time {
	font-size: 13px;
	color: var(--rd-theme-text-muted, #6b7280);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.nwm-journal-col-action {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rd-theme-text-subtle, #9ca3af);
}

.nwm-journal-entry:hover .nwm-journal-col-action,
.nwm-journal-entry:focus-visible .nwm-journal-col-action {
	color: #6366f1;
}

.nwm-journal-entry-name {
	display: block;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--rd-theme-text, #111827);
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nwm-journal-entry-meta {
	display: none;
}

.nwm-journal-sku {
	display: inline-block;
	max-width: 100%;
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--rd-theme-surface-hover, #f3f4f6);
	color: var(--rd-theme-text-secondary, #4b5563);
	font-size: 11.5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}

.nwm-journal-muted {
	color: var(--rd-theme-text-subtle, #9ca3af);
	font-size: 13px;
}

.nwm-journal-qty {
	font-size: 13.5px;
	color: var(--rd-theme-text-secondary, #374151);
	font-weight: 500;
}

.nwm-journal-change-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.nwm-journal-change-badge.is-positive {
	background: var(--rd-theme-success-soft, #ecfdf5);
	color: #059669;
}

.nwm-journal-change-badge.is-negative {
	background: var(--rd-theme-danger-soft, #fef2f2);
	color: #dc2626;
}

.nwm-journal-change-badge.is-neutral {
	background: var(--rd-theme-surface-hover, #f3f4f6);
	color: var(--rd-theme-text-muted, #6b7280);
}

.nwm-journal-change.is-positive {
	color: #059669;
	font-weight: 600;
}

.nwm-journal-change.is-negative {
	color: #dc2626;
	font-weight: 600;
}

.nwm-journal-day-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 12px 2px 2px;
	margin-top: 2px;
}

.nwm-journal-more-hint {
	font-size: 12.5px;
	color: var(--rd-theme-text-muted, #6b7280);
	margin: 0;
}

.nwm-journal-detail-product {
	margin: 0 0 6px;
	font-size: 18px;
	color: var(--rd-theme-text, #111827);
}

.nwm-journal-detail-sku {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--rd-theme-text-muted, #6b7280);
}

.nwm-journal-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.nwm-journal-detail-stat {
	background: var(--rd-theme-surface-muted, #f9fafb);
	border: 1px solid var(--rd-theme-border, #e5e7eb);
	border-radius: 8px;
	padding: 12px 14px;
}

.nwm-journal-detail-stat strong {
	color: var(--rd-theme-text, #111827);
}

.nwm-journal-detail-label {
	display: block;
	font-size: 12px;
	color: var(--rd-theme-text-muted, #6b7280);
	margin-bottom: 4px;
}

.nwm-journal-detail-section {
	margin-bottom: 20px;
}

.nwm-journal-detail-section-title {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--rd-theme-text-secondary, #374151);
}

.nwm-journal-detail-meta {
	display: grid;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--rd-theme-border, #e5e7eb);
}

.nwm-journal-detail-meta-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	color: var(--rd-theme-text-secondary, #374151);
}

.nwm-journal-detail-meta-row span {
	color: var(--rd-theme-text-muted, #6b7280);
}

.nwm-journal-detail-meta-row strong {
	color: var(--rd-theme-text, #111827);
	text-align: right;
}

.nwm-journal-doc-link {
	color: var(--rd-theme-accent, #2563eb);
	text-decoration: none;
	font-weight: 600;
}

.nwm-journal-doc-link:hover {
	text-decoration: underline;
}

@media (max-width: 960px) {
	.nwm-journal-list-head,
	.nwm-journal-col-sku,
	.nwm-journal-col-num,
	.nwm-journal-col-time {
		display: none;
	}

	.nwm-journal-entry {
		grid-template-columns: 1fr auto auto;
		gap: 10px;
		padding: 12px;
	}

	.nwm-journal-entry-meta {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 8px;
		margin-top: 4px;
	}

	.nwm-journal-entry-meta-qty,
	.nwm-journal-entry-meta-time {
		font-size: 12px;
		color: #6b7280;
		font-variant-numeric: tabular-nums;
	}

	.nwm-journal-entry-meta-qty::after {
		content: "·";
		margin-left: 8px;
		color: #d1d5db;
	}
}

@media (max-width: 720px) {
	.nwm-journal-detail-grid {
		grid-template-columns: 1fr;
	}

	.nwm-journal-day-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}
