@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

:root {
	--ns-bg: #f7f9fc;
	--ns-surface: #ffffff;
	--ns-ink: #1c2430;
	--ns-muted: #6b7c8f;
	--ns-line: #e6edf3;
	--ns-accent: #2f7db8;
	--ns-accent-dark: #256a9c;
	--ns-accent-soft: #eef5fa;
	--ns-danger: #b54a42;
	--ns-sidebar-w: 232px;
	--ns-header-h: 60px;
}

body.nizva-system-page {
	margin: 0;
	background: var(--ns-bg);
}

.ns-app {
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	min-height: 100vh;
	color: var(--ns-ink);
	-webkit-font-smoothing: antialiased;
}

.ns-view {
	min-height: 100vh;
	box-sizing: border-box;
}

.ns-view[hidden] {
	display: none !important;
}

.ns-boot {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ns-bg);
}

.ns-boot__spinner {
	width: 28px;
	height: 28px;
	border: 2px solid var(--ns-line);
	border-top-color: var(--ns-accent);
	border-radius: 50%;
	animation: ns-spin 0.7s linear infinite;
}

@keyframes ns-spin {
	to { transform: rotate(360deg); }
}

/* Login */
.ns-login {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: var(--ns-bg);
}

.ns-login__card {
	width: 100%;
	max-width: 360px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 12px;
	padding: 28px 24px;
}

.ns-login__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
}

.ns-login__mark,
.ns-shell__brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--ns-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.95rem;
	flex-shrink: 0;
}

.ns-login__title,
.ns-shell__brand-name {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
}

.ns-login__subtitle {
	margin: 0 0 22px;
	color: var(--ns-muted);
	font-size: 0.9rem;
}

.ns-login__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ns-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--ns-muted);
}

.ns-field input {
	font: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--ns-ink);
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
	outline: none;
}

.ns-field input:focus {
	border-color: var(--ns-accent);
}

.ns-field textarea {
	font: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--ns-ink);
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
	outline: none;
	resize: vertical;
	min-height: 72px;
}

.ns-field textarea:focus {
	border-color: var(--ns-accent);
}

.ns-field .ns-select,
.ns-select {
	font: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--ns-ink);
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
	outline: none;
	width: 100%;
}

.ns-field .ns-select:focus,
.ns-select:focus {
	border-color: var(--ns-accent);
}

.ns-customer-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ns-customer-form__lead {
	margin: 0 0 4px;
	font-size: 0.88rem;
	color: var(--ns-muted);
}

.ns-mobile-lookup {
	position: relative;
	display: flex;
	align-items: center;
}

.ns-mobile-lookup input {
	flex: 1;
	padding-inline-end: 40px;
}

.ns-mobile-lookup.is-loading input {
	border-color: var(--ns-accent);
	background: var(--ns-accent-soft);
}

.ns-mobile-lookup__spinner {
	position: absolute;
	inset-inline-end: 12px;
	width: 18px;
	height: 18px;
	border: 2px solid var(--ns-line);
	border-top-color: var(--ns-accent);
	border-radius: 50%;
	animation: ns-spin 0.7s linear infinite;
	flex-shrink: 0;
}

.ns-customer-details {
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: opacity 0.2s ease;
}

.ns-customer-details.is-lookup-loading {
	opacity: 0.55;
	pointer-events: none;
}

.ns-customer-details.is-lookup-loading .ns-field input,
.ns-customer-details.is-lookup-loading .ns-field textarea,
.ns-customer-details.is-lookup-loading .ns-field select {
	background: var(--ns-bg);
}

.ns-customer-lookup {
	margin: 0;
	font-size: 0.8rem;
	color: var(--ns-muted);
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 1.25rem;
}

.ns-customer-lookup.is-success {
	color: #1a7f4b;
}

.ns-customer-lookup.is-error {
	color: var(--ns-danger);
}

.ns-customer-lookup.is-loading {
	color: var(--ns-accent);
}

.ns-customer-lookup.is-muted {
	color: var(--ns-muted);
}

.ns-form-error {
	margin: 0;
	color: var(--ns-danger);
	font-size: 0.85rem;
}

.ns-btn {
	font: inherit;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 10px 14px;
	cursor: pointer;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: transparent;
	color: var(--ns-ink);
}

.ns-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.ns-btn--primary {
	background: var(--ns-accent);
	color: #fff;
	border-color: var(--ns-accent);
}

.ns-btn--primary:hover:not(:disabled) {
	background: var(--ns-accent-dark);
	border-color: var(--ns-accent-dark);
}

.ns-btn--logout {
	color: var(--ns-muted);
	border-color: var(--ns-line);
	padding-inline: 10px;
	background: #fff;
}

.ns-btn--logout:hover {
	color: var(--ns-danger);
	border-color: #e8cfcb;
}

.ns-icon-btn {
	border: 1px solid var(--ns-line);
	background: #fff;
	border-radius: 8px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ns-ink);
	padding: 0;
}

/* Shell */
.ns-shell {
	display: flex;
	min-height: 100vh;
	background: var(--ns-bg);
}

.ns-shell__sidebar {
	width: var(--ns-sidebar-w);
	background: var(--ns-surface);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	z-index: 40;
	border-left: 1px solid var(--ns-line);
}

.ns-shell__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 16px;
	border-bottom: 1px solid var(--ns-line);
}

.ns-shell__nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 10px;
	flex: 1;
}

.ns-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--ns-muted);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	padding: 9px 10px;
	border-radius: 8px;
	cursor: pointer;
	text-align: right;
}

.ns-nav-item[hidden],
.ns-nav-item.is-role-hidden {
	display: none !important;
}

.ns-nav-item__icon {
	display: inline-flex;
	color: inherit;
}

.ns-nav-item:hover:not(:disabled) {
	background: var(--ns-accent-soft);
	color: var(--ns-accent);
}

.ns-nav-item.is-active {
	background: var(--ns-accent-soft);
	color: var(--ns-accent);
}

.ns-nav-item:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ns-shell__sidebar-foot {
	padding: 12px 10px 14px;
	border-top: 1px solid var(--ns-line);
}

.ns-shell__mini-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
}

.ns-shell__mini-user-meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ns-shell__mini-user-meta strong {
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ns-shell__mini-user-meta span {
	font-size: 0.75rem;
	color: var(--ns-muted);
}

.ns-shell__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ns-shell__header {
	height: var(--ns-header-h);
	min-height: var(--ns-header-h);
	background: var(--ns-surface);
	border-bottom: 1px solid var(--ns-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 18px;
	position: sticky;
	top: 0;
	z-index: 30;
	overflow-x: clip;
}

.ns-shell__header-start,
.ns-shell__header-end {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex-shrink: 1;
}

.ns-shell__menu-toggle {
	display: none;
}

.ns-shell__page-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.ns-datetime {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.84rem;
	color: var(--ns-muted);
	white-space: nowrap;
}

.ns-datetime__time {
	font-variant-numeric: tabular-nums;
	color: var(--ns-ink);
	font-weight: 500;
}

.ns-datetime__sep {
	opacity: 0.5;
}

.ns-shell__user {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.ns-shell__user-meta {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.ns-shell__user-meta strong {
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

.ns-shell__user-meta span {
	font-size: 0.75rem;
	color: var(--ns-muted);
}

.ns-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ns-accent-soft);
	color: var(--ns-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.85rem;
	overflow: hidden;
	flex-shrink: 0;
	border: 1px solid var(--ns-line);
}

.ns-avatar--sm {
	width: 32px;
	height: 32px;
}

.ns-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ns-shell__content {
	padding: 24px 22px 36px;
	flex: 1;
}

.ns-welcome {
	margin-bottom: 20px;
}

.ns-welcome h2 {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 600;
}

.ns-welcome p {
	margin: 0;
	color: var(--ns-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

#ns-dash-sales[hidden],
#ns-dash-sales.is-role-hidden,
#ns-dash-reviews[hidden],
#ns-dash-reviews.is-role-hidden {
	display: none !important;
}

.ns-dash {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 20px;
}

.ns-dash.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.ns-dash-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ns-dash-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	cursor: pointer;
	text-align: right;
	font: inherit;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
	min-height: 92px;
}

.ns-dash-stat:hover,
.ns-dash-stat:focus-visible {
	border-color: var(--ns-accent);
	background: var(--ns-accent-soft);
	outline: none;
}

.ns-dash-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--ns-accent-soft);
	color: var(--ns-accent);
	margin-bottom: 2px;
}

.ns-dash-stat__label {
	font-size: 0.74rem;
	color: var(--ns-muted);
}

.ns-dash-stat__value {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ns-ink);
	line-height: 1.3;
}

.ns-dash-stat__sub {
	font-size: 0.72rem;
	color: var(--ns-muted);
}

.ns-dash-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--ns-line);
}

.ns-dash-banner[hidden] {
	display: none !important;
}

.ns-dash-banner--excellent {
	background: #eef8f0;
	border-color: #b8dfc4;
}

.ns-dash-banner--weak {
	background: #fdf3f2;
	border-color: #f0c4bf;
}

.ns-dash-banner--same {
	background: var(--ns-accent-soft);
	border-color: #c5dced;
}

.ns-dash-banner__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
}

.ns-dash-banner--excellent .ns-dash-banner__icon {
	background: #d4edd9;
}

.ns-dash-banner--weak .ns-dash-banner__icon {
	background: #fde0dc;
}

.ns-dash-banner--same .ns-dash-banner__icon {
	background: #dceaf5;
}

.ns-dash-banner__body strong {
	display: block;
	font-size: 0.92rem;
	margin-bottom: 4px;
}

.ns-dash-banner__body p {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.65;
	color: var(--ns-muted);
}

.ns-dash-chart {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
}

.ns-dash-chart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.ns-dash-chart__head h3 {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
}

.ns-dash-chart__change {
	font-size: 0.78rem;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--ns-accent-soft);
	color: var(--ns-accent-dark);
	white-space: nowrap;
}

.ns-dash-chart__change.is-up {
	background: #eef8f0;
	color: #1f7a3f;
}

.ns-dash-chart__change.is-down {
	background: #fdf3f2;
	color: #b42318;
}

.ns-dash-chart__change.is-neutral {
	background: #f3f5f8;
	color: var(--ns-muted);
}

.ns-dash-bars {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: end;
	min-height: 140px;
}

.ns-dash-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.ns-dash-bar__track {
	width: 100%;
	max-width: 72px;
	height: 100px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: #f3f6fa;
	border-radius: 10px 10px 6px 6px;
	padding: 6px;
}

.ns-dash-bar__fill {
	width: 100%;
	max-width: 48px;
	border-radius: 8px 8px 4px 4px;
	background: #94b8d4;
	min-height: 4px;
	transition: height 0.35s ease;
}

.ns-dash-bar__fill--today {
	background: linear-gradient(180deg, #2F7DB8 0%, #256A9C 100%);
}

.ns-dash-bar__label {
	font-size: 0.78rem;
	color: var(--ns-muted);
}

.ns-dash-bar__value {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ns-ink);
	text-align: center;
	line-height: 1.4;
}

.ns-dash-chart__total {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ns-accent-dark);
	background: var(--ns-accent-soft);
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.ns-dash-line-chart {
	width: 100%;
}

.ns-dash-week-graph {
	width: 100%;
	padding: 4px 0 0;
}

.ns-dash-line-chart__svg {
	width: 100%;
	height: auto;
	display: block;
	max-height: 118px;
}

.ns-dash-line-chart__day {
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-size: 11px;
	fill: var(--ns-muted);
}

.ns-dash-line-chart__day.is-today {
	fill: var(--ns-accent-dark);
	font-weight: 700;
}

.ns-dash-line-chart__day.is-future {
	fill: #b8c4d0;
}

.ns-dash-line-chart__base {
	stroke: #e6edf3;
	stroke-width: 1;
}

.ns-dash-line-chart__line {
	fill: none;
	stroke: #2F7DB8;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ns-dash-line-chart__dot {
	fill: #fff;
	stroke: #2F7DB8;
	stroke-width: 1.75;
}

.ns-dash-line-chart__dot.is-today {
	fill: #2F7DB8;
	stroke: #256A9C;
	stroke-width: 2;
}

.ns-dash-line-chart__empty {
	margin: 0;
	padding: 24px 0;
	text-align: center;
	font-size: 0.84rem;
	color: var(--ns-muted);
}

.ns-btn--logout[hidden] {
	display: none !important;
}

.ns-dash-shortcuts {
	margin-top: 4px;
}

.ns-dash-shortcuts__title {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 600;
}

.ns-dash-shortcuts__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ns-dash-shortcut {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ns-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ns-dash-shortcut:hover,
.ns-dash-shortcut:focus-visible {
	border-color: var(--ns-accent);
	background: var(--ns-accent-soft);
	outline: none;
}

.ns-dash-shortcut--primary {
	background: var(--ns-accent);
	border-color: var(--ns-accent);
	color: #fff;
}

.ns-dash-shortcut--primary:hover,
.ns-dash-shortcut--primary:focus-visible {
	background: var(--ns-accent-dark);
	border-color: var(--ns-accent-dark);
	color: #fff;
}

.ns-dash-shortcut__icon {
	display: inline-flex;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.ns-dash-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ns-dash-shortcuts__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ns-announcements {
	margin-bottom: 20px;
}

.ns-announcements[hidden] {
	display: none !important;
}

.ns-announcements__head h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 600;
}

.ns-announcements__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ns-announce-card {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-right: 3px solid var(--ns-accent);
}

.ns-announce-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.ns-announce-card__head strong {
	font-size: 0.92rem;
	font-weight: 600;
}

.ns-announce-card__time {
	flex-shrink: 0;
	font-size: 0.74rem;
	color: var(--ns-muted);
}

.ns-announce-card__body {
	margin: 0 0 12px;
	font-size: 0.86rem;
	line-height: 1.7;
	color: var(--ns-ink);
	white-space: pre-wrap;
}

.ns-modules {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.ns-module {
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	padding: 16px;
}

.ns-module__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.ns-module__icon {
	color: var(--ns-accent);
	display: inline-flex;
}

.ns-module__status {
	font-size: 0.72rem;
	color: var(--ns-muted);
}

.ns-module h3 {
	margin: 0 0 6px;
	font-size: 0.98rem;
	font-weight: 600;
}

.ns-module p {
	margin: 0;
	color: var(--ns-muted);
	font-size: 0.86rem;
	line-height: 1.55;
}

.ns-module--action {
	cursor: pointer;
	text-align: right;
	font: inherit;
	width: 100%;
	color: inherit;
}

.ns-module--action:hover {
	border-color: var(--ns-accent);
}

.ns-btn--ghost {
	background: #fff;
	border-color: var(--ns-line);
	color: var(--ns-ink);
}

.ns-btn--ghost:hover:not(:disabled) {
	border-color: var(--ns-accent);
	color: var(--ns-accent);
}

.ns-btn--sm {
	padding: 8px 12px;
	font-size: 0.86rem;
}

.ns-btn--danger {
	background: #fff;
	border: 1px solid #e8b4b0;
	color: var(--ns-danger);
}

.ns-btn--danger:hover:not(:disabled) {
	background: #fdf3f2;
	border-color: var(--ns-danger);
}

.ns-cart-message {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 0.82rem;
	line-height: 1.65;
	background: var(--ns-accent-soft);
	color: var(--ns-ink);
	border: 1px solid var(--ns-line);
}

.ns-cart-message.is-error {
	background: #fdf3f2;
	border-color: #e8b4b0;
	color: var(--ns-danger);
}

.ns-cart-message[hidden] {
	display: none !important;
}

.ns-cart-line--invalid {
	padding: 10px;
	margin-bottom: 8px;
	border-bottom: 0;
	background: #fdf3f2;
	border: 1px solid #e8b4b0;
	border-radius: 12px;
}

.ns-cart-line__issue {
	display: block;
	margin-top: 4px;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--ns-danger);
	font-weight: 600;
}

.ns-cart-btn {
	position: relative;
	border: 1px solid var(--ns-line);
	background: #fff;
	border-radius: 8px;
	width: 40px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ns-ink);
}

.ns-cart-btn span {
	position: absolute;
	top: -6px;
	left: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--ns-accent);
	color: #fff;
	font-size: 0.68rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ns-order-toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.ns-order-search {
	flex: 1;
	min-width: 200px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	padding: 0 12px;
	background: #fff;
	color: var(--ns-muted);
}

.ns-order-search input {
	flex: 1;
	border: 0;
	outline: 0;
	font: inherit;
	padding: 10px 0;
	background: transparent;
	color: var(--ns-ink);
}

.ns-order-select {
	font: inherit;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	padding: 0 12px;
	height: 42px;
	background: #fff;
	color: var(--ns-ink);
	min-width: 160px;
}

.ns-order-message {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--ns-accent-soft);
	color: var(--ns-accent-dark);
	font-size: 0.88rem;
}

.ns-order-message.is-success {
	background: #edf7ed;
	color: #1a7f4b;
	border: 1px solid #b8dcc0;
}

.ns-order-message.is-error {
	background: #f8eceb;
	color: var(--ns-danger);
}

.ns-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	align-items: stretch;
}

@media (min-width: 981px) {
	.ns-product-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}
}

.ns-products-loading,
.ns-empty-products {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	padding: 40px 0;
	color: var(--ns-muted);
}

.ns-product-card {
	background: #fff;
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ns-product-card--oos {
	opacity: 0.92;
}

.ns-product-card--oos .ns-product-card__gallery {
	filter: grayscale(1);
}

.ns-product-card--oos .ns-product-card__body {
	opacity: 0.75;
}

.ns-product-card__badge-oos {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(28, 36, 48, 0.72);
	color: #fff;
}

.ns-product-card__gallery {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f1f5f9;
	overflow: hidden;
}

.ns-product-card__slides {
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.ns-product-card__slides img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	user-select: none;
}

.ns-product-card__slides img.is-active {
	opacity: 1;
}

.ns-product-card__placeholder {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ns-muted);
	font-size: 0.85rem;
}

.ns-slide-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ns-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 1px 3px rgba(28, 36, 48, 0.12);
	z-index: 2;
}

.ns-slide-nav--prev { right: 6px; }
.ns-slide-nav--next { left: 6px; }

.ns-slide-dots {
	position: absolute;
	bottom: 6px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 3px;
	max-width: 80%;
	margin: 0 auto;
	z-index: 2;
}

.ns-slide-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	flex-shrink: 0;
}

.ns-slide-dot.is-active {
	background: #fff;
	width: 4px;
	height: 4px;
}

.ns-product-card__body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	gap: 0;
}

.ns-product-card__meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 0;
}

.ns-product-card__footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 8px;
}

.ns-product-card__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(0.92rem * 1.45 * 2);
}

.ns-product-card__pack,
.ns-product-card__stock,
.ns-product-card__hint {
	margin: 0;
	font-size: 0.8rem;
	color: var(--ns-muted);
}

.ns-product-card__stock {
	min-height: 1.25em;
	line-height: 1.25;
}

.ns-product-card__hint {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ns-accent);
	min-height: 1.35em;
}

.ns-product-card__price {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ns-accent);
}

.ns-product-card__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
}

.ns-pack-picks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 2px;
}

.ns-pack-pick {
	font: inherit;
	font-size: 0.78rem;
	font-weight: 500;
	border: 1px solid var(--ns-line);
	background: #fff;
	color: var(--ns-ink);
	border-radius: 8px;
	padding: 6px 8px;
	cursor: pointer;
	line-height: 1;
}

.ns-pack-pick:hover:not(:disabled) {
	border-color: var(--ns-accent);
	color: var(--ns-accent);
}

.ns-pack-pick.is-active {
	background: var(--ns-accent-soft);
	border-color: var(--ns-accent);
	color: var(--ns-accent);
}

.ns-pack-pick.is-extra {
	display: none;
}

.ns-pack-picks.is-expanded .ns-pack-pick.is-extra {
	display: inline-flex;
}

.ns-pack-pick--more {
	min-width: 36px;
	letter-spacing: 1px;
}

.ns-btn--block {
	width: 100%;
	margin-top: 6px;
}

.ns-pack-stepper {
	display: none;
}

.ns-step-btn {
	display: none;
}

.ns-pack-input {
	display: none;
}

.ns-pack-unit {
	display: none;
}

.ns-order-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
	color: var(--ns-muted);
	font-size: 0.88rem;
}

.ns-cart-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(360px, 92vw);
	background: #fff;
	border-right: 1px solid var(--ns-line);
	z-index: 100050;
	display: none;
	flex-direction: column;
	box-shadow: 0 0 0 1px var(--ns-line);
}

.ns-cart-drawer.is-checking .ns-cart-drawer__head,
.ns-cart-drawer.is-checking .ns-cart-drawer__body,
.ns-cart-drawer.is-checking .ns-cart-drawer__foot {
	pointer-events: none;
}

.ns-cart-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(255, 255, 255, 0.92);
}

.ns-cart-overlay[hidden] {
	display: none !important;
}

.ns-cart-overlay__card {
	text-align: center;
	max-width: 260px;
}

.ns-cart-overlay__title {
	display: block;
	margin: 12px 0 6px;
	font-size: 0.92rem;
	color: var(--ns-ink);
}

.ns-cart-overlay__text {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: var(--ns-muted);
}

.ns-cart-drawer.is-open,
.ns-cart-drawer:not([hidden]) {
	display: flex !important;
}

.ns-cart-drawer[hidden] {
	display: none !important;
}

.ns-cart-drawer__head,
.ns-cart-drawer__foot {
	padding: 14px 16px;
	border-bottom: 1px solid var(--ns-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ns-cart-drawer__foot {
	border-bottom: 0;
	border-top: 1px solid var(--ns-line);
	flex-direction: column;
	align-items: stretch;
}

.ns-cart-drawer__body {
	flex: 1;
	overflow: auto;
	padding: 12px;
}

#ns-cart-items.is-loading {
	pointer-events: none;
}

.ns-cart-line--skeleton {
	pointer-events: none;
}

.ns-cart-skeleton__thumb,
.ns-cart-skeleton__line,
.ns-cart-skeleton__qty {
	background: linear-gradient(90deg, #eef2f6 0%, #f7f9fc 45%, #eef2f6 90%);
	background-size: 200% 100%;
	animation: ns-cart-shimmer 1.2s ease-in-out infinite;
	border-radius: 8px;
}

.ns-cart-skeleton__thumb {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 10px;
}

.ns-cart-skeleton__meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.ns-cart-skeleton__line {
	height: 10px;
}

.ns-cart-skeleton__line--title {
	width: 72%;
	height: 12px;
}

.ns-cart-skeleton__line--sub {
	width: 42%;
}

.ns-cart-skeleton__line--price {
	width: 36%;
}

.ns-cart-skeleton__actions {
	display: flex;
	align-items: center;
}

.ns-cart-skeleton__qty {
	width: 88px;
	height: 32px;
	border-radius: 999px;
}

@keyframes ns-cart-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

.ns-skeleton__line,
.ns-skeleton__box,
.ns-skeleton__pill,
.ns-skeleton__btn {
	background: linear-gradient(90deg, #eef2f6 0%, #f7f9fc 45%, #eef2f6 90%);
	background-size: 200% 100%;
	animation: ns-cart-shimmer 1.2s ease-in-out infinite;
	border-radius: 8px;
	display: block;
}

.ns-skeleton__line--label {
	height: 10px;
	width: 58%;
}

.ns-skeleton__line--value {
	height: 14px;
	width: 42%;
	margin-top: 2px;
}

.ns-skeleton__line--xs {
	height: 8px;
	width: 46%;
}

.ns-skeleton__line--sm {
	height: 10px;
	width: 62%;
}

.ns-skeleton__line--md {
	height: 10px;
	width: 74%;
}

.ns-skeleton__line--chip-label {
	height: 9px;
	width: 52px;
}

.ns-skeleton__line--chip-value {
	height: 12px;
	width: 20px;
}

.ns-skeleton__line--task-title {
	height: 12px;
	width: 68%;
}

.ns-skeleton__line--balance {
	height: 28px;
	width: 72px;
	border-radius: 10px;
}

.ns-skeleton__line--stat {
	height: 16px;
	width: 48px;
	margin-top: 2px;
}

.ns-skeleton__line--rules {
	height: 10px;
	width: 100%;
	margin-bottom: 8px;
}

.ns-skeleton__line--rules-short {
	height: 10px;
	width: 72%;
}

.ns-skeleton__line--stars-amount {
	height: 12px;
	width: 72px;
	flex-shrink: 0;
}

.ns-skeleton__line--stars-note {
	height: 10px;
	width: 88%;
	margin-bottom: 10px;
}

.ns-skeleton__line--stars-meta {
	height: 8px;
	width: 96px;
}

.ns-skeleton__cell-stack {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ns-skeleton__box {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	flex-shrink: 0;
}

.ns-skeleton__pill {
	height: 24px;
	width: 72px;
	border-radius: 999px;
	flex-shrink: 0;
}

.ns-skeleton__pill--badge {
	width: 88px;
	height: 22px;
}

.ns-skeleton__btn {
	height: 30px;
	width: 88px;
	border-radius: 8px;
}

.ns-reports-stat--skeleton {
	pointer-events: none;
}

.ns-reports-stat--skeleton .ns-skeleton__line {
	border-radius: 6px;
}

.ns-reports-table__row--skeleton td {
	vertical-align: middle;
}

.ns-reports-table-wrap--skeleton {
	pointer-events: none;
}

.ns-tasks-stat--skeleton {
	pointer-events: none;
}

.ns-task-card--skeleton {
	pointer-events: none;
	border-right: 3px solid #eef2f6;
}

.ns-stars-item--skeleton {
	pointer-events: none;
}

.ns-stars-item--skeleton .ns-stars-item__meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.ns-stars-item--skeleton .ns-stars-item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.ns-stars-summary.is-skeleton-loading .ns-stars-summary__icon {
	position: relative;
	color: transparent;
}

.ns-stars-summary.is-skeleton-loading .ns-stars-summary__icon::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 14px;
	background: linear-gradient(90deg, #eef2f6 0%, #f7f9fc 45%, #eef2f6 90%);
	background-size: 200% 100%;
	animation: ns-cart-shimmer 1.2s ease-in-out infinite;
}

.ns-stars-summary.is-skeleton-loading .ns-stars-summary__label {
	color: transparent;
	position: relative;
}

.ns-stars-summary.is-skeleton-loading .ns-stars-summary__label::before {
	content: '';
	position: absolute;
	inset: 0;
	width: 72px;
	height: 10px;
	border-radius: 6px;
	background: linear-gradient(90deg, #eef2f6 0%, #f7f9fc 45%, #eef2f6 90%);
	background-size: 200% 100%;
	animation: ns-cart-shimmer 1.2s ease-in-out infinite;
}

.ns-stars-summary.is-skeleton-loading .ns-stars-stat > span {
	color: transparent;
}

.ns-stars-summary.is-skeleton-loading .ns-stars-stat > span::before {
	content: '';
	position: absolute;
	inset: 0;
	width: 64px;
	height: 9px;
	border-radius: 6px;
	background: linear-gradient(90deg, #eef2f6 0%, #f7f9fc 45%, #eef2f6 90%);
	background-size: 200% 100%;
	animation: ns-cart-shimmer 1.2s ease-in-out infinite;
}

.ns-cart-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--ns-line);
}

.ns-cart-line img,
.ns-cart-line__ph {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	background: #f1f5f9;
	flex-shrink: 0;
}

.ns-cart-line__meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ns-cart-line__meta strong {
	font-size: 0.86rem;
	font-weight: 600;
}

.ns-cart-line__meta span {
	font-size: 0.78rem;
	color: var(--ns-muted);
}

.ns-cart-line__price {
	font-weight: 600;
	color: var(--ns-accent);
	margin-top: 2px;
}

.ns-cart-line__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.ns-cart-qty {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	background: #fff;
}

.ns-cart-qty__btn {
	border: 0;
	background: transparent;
	width: 28px;
	height: 28px;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	color: var(--ns-accent);
}

.ns-cart-qty__btn:hover {
	background: var(--ns-accent-soft);
}

.ns-cart-qty__val {
	min-width: 44px;
	font-weight: 600;
	font-size: 0.8rem;
	color: var(--ns-ink);
}

.ns-cart-qty__val small {
	font-weight: 500;
	font-size: 0.68rem;
	color: var(--ns-muted);
}

.ns-invoice-summary {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.84rem;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	overflow: hidden;
}

.ns-invoice-summary td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--ns-line);
}

.ns-invoice-summary tr:last-child td {
	border-bottom: 0;
}

.ns-invoice-summary td:first-child {
	color: var(--ns-muted);
}

.ns-invoice-summary td:last-child {
	text-align: right;
	font-weight: 600;
	color: var(--ns-ink);
}

.ns-invoice-summary__total td {
	background: var(--ns-accent-soft);
	color: var(--ns-accent);
	font-size: 0.92rem;
}

.ns-invoice-summary__total td:last-child {
	font-weight: 700;
}

.ns-cart-drawer__foot .ns-btn--block {
	margin-top: 10px;
}

/* مودال تأیید فاکتور */
.ns-invoice-modal {
	position: fixed;
	inset: 0;
	z-index: 100060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ns-invoice-modal[hidden] {
	display: none !important;
}

body.ns-invoice-open {
	overflow: hidden;
}

.ns-invoice-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 36, 48, 0.45);
}

.ns-invoice-modal__dialog {
	position: relative;
	width: min(520px, 100%);
	max-height: min(88vh, 720px);
	background: #fff;
	border: 1px solid var(--ns-line);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(28, 36, 48, 0.18);
}

.ns-invoice-modal__head {
	padding: 14px 16px;
	border-bottom: 1px solid var(--ns-line);
	font-size: 0.95rem;
}

.ns-invoice-modal__head-text {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ns-invoice-modal__step {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--ns-muted);
	background: var(--ns-accent-soft);
	padding: 4px 10px;
	border-radius: 999px;
}

.ns-invoice-modal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 10px 16px;
	font-size: 0.78rem;
	color: var(--ns-muted);
	border-bottom: 1px solid var(--ns-line);
	background: var(--ns-accent-soft);
}

.ns-invoice-modal__meta[hidden] {
	display: none !important;
}

.ns-invoice-modal__alert {
	margin: 0 20px 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.84rem;
	line-height: 1.5;
	background: var(--ns-accent-soft);
	color: var(--ns-ink);
	border: 1px solid var(--ns-line);
}

.ns-invoice-modal__alert[hidden] {
	display: none !important;
}

.ns-invoice-modal__alert.is-error {
	background: #fdeeee;
	border-color: #e8b4b0;
	color: var(--ns-danger);
}

.ns-invoice-modal__alert.is-success {
	background: #edf7ed;
	border-color: #b8dcc0;
	color: #2d6a3a;
}

.ns-invoice-modal__body {
	flex: 1;
	overflow: auto;
	padding: 12px 16px;
}

.ns-invoice-page {
	display: none;
}

.ns-invoice-page.is-active {
	display: block;
}

.ns-invoice-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.82rem;
	margin-bottom: 12px;
}

.ns-invoice-table thead th {
	padding: 8px 6px;
	text-align: center;
	font-weight: 600;
	color: var(--ns-muted);
	border-bottom: 1px solid var(--ns-line);
	background: #f8fafc;
}

.ns-invoice-table thead th:first-child {
	text-align: right;
}

.ns-invoice-table tbody td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--ns-line);
	text-align: center;
	vertical-align: middle;
}

.ns-invoice-table__name {
	text-align: right;
	font-weight: 500;
	color: var(--ns-ink);
}

.ns-invoice-modal__foot {
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	border-top: 1px solid var(--ns-line);
}

.ns-invoice-modal__foot .ns-btn {
	flex: 1;
}

.ns-invoice-modal__foot .ns-btn[hidden] {
	display: none;
}

.ns-invoice-overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(247, 249, 252, 0.92);
	backdrop-filter: blur(2px);
}

.ns-invoice-overlay[hidden] {
	display: none !important;
}

.ns-invoice-overlay__card {
	width: 100%;
	max-width: 320px;
	text-align: center;
	padding: 24px 20px;
	border-radius: 12px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
}

.ns-invoice-overlay__card--success {
	border-color: #b8dcc0;
	background: #f8fcf9;
}

.ns-invoice-overlay__spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	margin-bottom: 14px;
	border: 2px solid var(--ns-line);
	border-top-color: var(--ns-accent);
	border-radius: 50%;
	animation: ns-spin 0.7s linear infinite;
}

.ns-invoice-overlay__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #edf7ed;
	color: #1a7f4b;
}

.ns-invoice-overlay__title {
	display: block;
	margin-bottom: 8px;
	font-size: 1rem;
	color: var(--ns-ink);
}

.ns-invoice-overlay__text {
	margin: 0 0 8px;
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--ns-muted);
}

.ns-invoice-overlay__meta {
	margin: 0 0 16px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--ns-ink);
}

.ns-invoice-modal__dialog.is-busy .ns-invoice-modal__foot .ns-btn,
.ns-invoice-modal__dialog.is-busy .ns-invoice-modal__body,
.ns-invoice-modal__dialog.is-busy .ns-invoice-modal__head,
.ns-invoice-modal__dialog.is-busy .ns-invoice-modal__meta,
.ns-invoice-modal__dialog.is-busy .ns-invoice-modal__alert {
	pointer-events: none;
	user-select: none;
}

.ns-payment-step__lead {
	margin: 0 0 14px;
	font-size: 0.88rem;
	color: var(--ns-muted);
	line-height: 1.5;
}

.ns-payment-options {
	display: grid;
	gap: 10px;
	margin-bottom: 14px;
}

.ns-payment-opt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	background: var(--ns-surface);
	cursor: pointer;
	text-align: right;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ns-payment-opt:hover {
	border-color: var(--ns-accent);
}

.ns-payment-opt.is-active {
	border-color: var(--ns-accent);
	background: var(--ns-accent-soft);
}

.ns-payment-opt__title {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ns-ink);
}

.ns-payment-opt__desc {
	font-size: 0.78rem;
	color: var(--ns-muted);
	line-height: 1.45;
}

.ns-payment-hint {
	margin: 0;
	font-size: 0.8rem;
	color: var(--ns-muted);
	line-height: 1.5;
}

.ns-payment-total {
	margin: 10px 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ns-ink);
}

.ns-cart-note {
	margin: 8px 0 0;
	font-size: 0.78rem;
	color: var(--ns-muted);
	line-height: 1.5;
}

.ns-cart-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(28, 36, 48, 0.28);
	z-index: 100040;
	display: none;
}

.ns-cart-backdrop.is-open,
.ns-cart-backdrop:not([hidden]) {
	display: block !important;
}

.ns-cart-backdrop[hidden] {
	display: none !important;
}

.ns-shell__backdrop {
	display: none;
}

@media (max-width: 980px) {
	.ns-shell__sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		right: 0;
		left: auto;
		transform: translateX(105%);
		transition: transform 0.2s ease;
	}

	.ns-shell.is-sidebar-open .ns-shell__sidebar {
		transform: translateX(0);
	}

	.ns-shell__menu-toggle {
		display: inline-flex;
	}

	.ns-shell__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(28, 36, 48, 0.28);
		z-index: 35;
	}

	.ns-shell__backdrop[hidden] {
		display: none !important;
	}

	.ns-shell__user-meta {
		display: none;
	}

	.ns-shell__page-title {
		display: none;
	}
}

@media (max-width: 640px) {
	.ns-shell__header {
		padding: 0 12px;
	}

	.ns-shell__content {
		padding: 18px 14px 28px;
	}

	.ns-modules {
		grid-template-columns: 1fr;
	}

	.ns-datetime__date {
		display: none;
	}

	.ns-datetime__sep {
		display: none;
	}

	.ns-btn--logout span {
		display: none;
	}

	.ns-product-grid {
		grid-template-columns: 1fr;
	}

	.ns-reports-filter {
		padding: 7px 10px;
		font-size: 0.78rem;
	}
}

/* افزودن به سبد — مینیمال */
.ns-btn--add {
	margin-top: 6px;
	padding: 7px 12px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--ns-accent);
	background: transparent;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	align-self: flex-start;
	width: 100%;
}

.ns-btn--add:hover:not(:disabled) {
	border-color: var(--ns-accent);
	background: var(--ns-accent-soft);
}

.ns-btn--add:disabled {
	opacity: 0.45;
}

/* لایت‌باکس تصویر محصول */
.ns-lightbox {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: rgba(28, 36, 48, 0.88);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ns-lightbox[hidden] {
	display: none !important;
}

body.ns-lightbox-open {
	overflow: hidden;
}

.ns-lightbox__close {
	position: absolute;
	top: 16px;
	left: 16px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 8px;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ns-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.18);
}

.ns-lightbox__stage {
	max-width: min(92vw, 720px);
	max-height: 78vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ns-lightbox__stage img {
	max-width: 100%;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 6px;
}

.ns-lightbox__caption {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	text-align: center;
	max-width: min(92vw, 720px);
}

.ns-cart-wrap[hidden] {
	display: none !important;
}

/* گزارشات و عملکرد */
.ns-reports-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.ns-reports-filters {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
}

.ns-reports-filter {
	border: 0;
	background: transparent;
	color: var(--ns-muted);
	font: inherit;
	font-size: 0.84rem;
	padding: 8px 14px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.ns-reports-filter:hover {
	color: var(--ns-ink);
	background: var(--ns-accent-soft);
}

.ns-reports-filter.is-active {
	background: var(--ns-accent);
	color: #fff;
}

.ns-reports-period-label {
	margin: 0;
	font-size: 0.82rem;
	color: var(--ns-muted);
}

.ns-reports-advanced-wrap {
	margin-bottom: 14px;
}

.ns-reports-advanced-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	background: var(--ns-surface);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ns-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ns-reports-advanced-toggle:hover,
.ns-reports-advanced-toggle.is-open {
	border-color: var(--ns-accent);
	background: var(--ns-accent-soft);
	color: var(--ns-accent-dark);
}

.ns-reports-advanced-toggle__icon {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.ns-reports-advanced-toggle.is-open .ns-reports-advanced-toggle__icon {
	transform: rotate(180deg);
}

.ns-reports-advanced {
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	padding: 14px;
	margin-top: 8px;
}

.ns-reports-advanced[hidden] {
	display: none !important;
}

.ns-reports-advanced__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}

.ns-field--compact {
	gap: 4px;
	margin: 0;
}

.ns-field--compact label {
	font-size: 0.76rem;
	color: var(--ns-muted);
}

.ns-field--compact input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	font-size: 0.84rem;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
}

.ns-field--compact input:focus {
	outline: none;
	border-color: var(--ns-accent);
	box-shadow: 0 0 0 2px var(--ns-accent-soft);
}

.ns-reports-advanced__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.ns-reports-filter-hint {
	margin: 0 0 12px;
	padding: 8px 12px;
	font-size: 0.82rem;
	color: var(--ns-accent-dark);
	background: var(--ns-accent-soft);
	border-radius: 8px;
}

.ns-reports-filter-hint[hidden] {
	display: none !important;
}

.ns-reports-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.ns-reports-stat {
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 0;
}

.ns-reports-stat__label {
	font-size: 0.74rem;
	color: var(--ns-muted);
}

.ns-reports-stat__value {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ns-ink);
	line-height: 1.35;
}

.ns-reports-tabs {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--ns-line);
	width: 100%;
}

.ns-reports-tab {
	border: 0;
	background: transparent;
	color: var(--ns-muted);
	font: inherit;
	font-size: 0.88rem;
	padding: 10px 14px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	cursor: pointer;
}

.ns-reports-tab.is-active {
	color: var(--ns-accent);
	border-bottom-color: var(--ns-accent);
	font-weight: 600;
}

.ns-reports-message {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.88rem;
	background: var(--ns-accent-soft);
	color: var(--ns-accent-dark);
}

.ns-reports-message.is-error {
	background: #fdf0ef;
	color: var(--ns-danger);
}

.ns-reports-content {
	position: relative;
	min-height: 120px;
}

.ns-reports-content.is-loading {
	pointer-events: none;
}

.ns-reports-empty {
	margin: 0;
	padding: 28px 16px;
	text-align: center;
	color: var(--ns-muted);
	font-size: 0.9rem;
	background: var(--ns-surface);
	border: 1px dashed var(--ns-line);
	border-radius: 10px;
}

.ns-reports-table-wrap {
	overflow-x: auto;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
}

.ns-reports-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.86rem;
}

.ns-reports-table th,
.ns-reports-table td {
	padding: 12px 14px;
	text-align: right;
	border-bottom: 1px solid var(--ns-line);
	vertical-align: top;
}

.ns-reports-table th {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ns-muted);
	background: #fbfcfe;
	white-space: nowrap;
}

.ns-reports-table tbody tr:last-child td {
	border-bottom: 0;
}

.ns-reports-cell-main {
	font-weight: 500;
	color: var(--ns-ink);
}

.ns-reports-cell-sub {
	margin-top: 2px;
	font-size: 0.78rem;
	color: var(--ns-muted);
}

.ns-reports-badges {
	margin-top: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.ns-reports-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 500;
	background: var(--ns-accent-soft);
	color: var(--ns-accent-dark);
}

.ns-reports-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
	color: var(--ns-muted);
	font-size: 0.88rem;
}

#ns-panel-reports.is-reports-loading .ns-reports-filters,
#ns-panel-reports.is-reports-loading .ns-reports-tabs {
	opacity: 0.7;
}

@media (max-width: 900px) {
	.ns-reports-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ns-reports-stats {
		grid-template-columns: 1fr;
	}

	.ns-reports-advanced__grid {
		grid-template-columns: 1fr;
	}

	.ns-reports-table thead {
		display: none;
	}

	.ns-reports-table tr {
		display: block;
		padding: 12px 14px;
		border-bottom: 1px solid var(--ns-line);
	}

	.ns-reports-table tbody tr:last-child {
		border-bottom: 0;
	}

	.ns-reports-table td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 6px 0;
		border-bottom: 0;
	}

	.ns-reports-table td::before {
		content: attr(data-label);
		color: var(--ns-muted);
		font-size: 0.78rem;
		flex-shrink: 0;
	}
}

body.ns-report-invoice-open {
	overflow: hidden;
}

.ns-report-invoice-dialog {
	width: min(520px, 100%);
	max-height: min(88vh, 720px);
	box-shadow: 0 12px 40px rgba(28, 36, 48, 0.18);
}

.ns-report-invoice-customer {
	margin-bottom: 12px;
}

.ns-report-invoice-customer__badge {
	margin: 0 0 8px;
}

.ns-report-invoice-customer__table {
	margin-bottom: 0;
}

#ns-report-invoice-modal .ns-invoice-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

#ns-report-invoice-modal .ns-icon-btn {
	flex-shrink: 0;
}

#ns-report-invoice-modal .ns-invoice-modal__body {
	padding-top: 0;
}

#ns-report-invoice-modal .ns-invoice-table {
	margin-bottom: 12px;
}

.ns-stars-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, #fff9eb 0%, #fff3d6 100%);
	color: #9a7209;
	border: 1px solid #ecd99a;
	font-size: 0.84rem;
	font-weight: 600;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ns-featured-badge {
	position: relative;
	overflow: hidden;
	margin-bottom: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, #fff8e6 0%, #fffdf8 45%, #eef5fa 100%);
	border: 1px solid #e8cf84;
	box-shadow: 0 8px 18px rgba(201, 146, 10, 0.08);
}

.ns-featured-badge[hidden] {
	display: none !important;
}

.ns-featured-badge__glow {
	position: absolute;
	inset: -30% auto auto -20%;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 214, 102, 0.35) 0%, rgba(255, 214, 102, 0) 70%);
	pointer-events: none;
}

.ns-featured-badge__content {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ns-featured-badge__icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #ffd86b 0%, #f0b429 100%);
	color: #fff;
	box-shadow: 0 4px 10px rgba(201, 146, 10, 0.25);
}

.ns-featured-badge__text {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.65;
	color: var(--ns-ink);
}

.ns-featured-badge__text span {
	font-weight: 700;
	color: #9a7209;
}

.ns-stars-panel {
	max-width: 760px;
}

.ns-stars-summary {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.ns-stars-summary__hero,
.ns-stars-summary__stats {
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 16px;
	padding: 16px;
}

.ns-stars-summary__hero {
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(135deg, #fffdf8 0%, var(--ns-soft) 100%);
}

.ns-stars-summary__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: #fff7e0;
	color: #c9920a;
	border: 1px solid #f0dfa8;
	flex-shrink: 0;
}

.ns-stars-summary__label {
	display: block;
	font-size: 0.82rem;
	color: var(--ns-muted);
	margin-bottom: 4px;
}

.ns-stars-summary__value {
	font-size: 2.1rem;
	line-height: 1.1;
	color: #9a7209;
	font-weight: 700;
}

.ns-stars-summary__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-content: center;
}

.ns-stars-stat {
	background: var(--ns-bg);
	border: 1px solid var(--ns-line);
	border-radius: 12px;
	padding: 12px;
}

.ns-stars-stat span {
	display: block;
	font-size: 0.78rem;
	color: var(--ns-muted);
	margin-bottom: 4px;
	position: relative;
}

.ns-stars-stat strong {
	font-size: 1.15rem;
	color: var(--ns-ink);
}

.ns-stars-rules-card {
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 16px;
}

.ns-stars-rules-card__title {
	margin: 0 0 6px;
	font-size: 0.82rem;
	color: var(--ns-primary);
	font-weight: 600;
}

.ns-stars-rules-card__text {
	margin: 0;
	font-size: 0.86rem;
	color: var(--ns-muted);
	line-height: 1.6;
}

.ns-stars-section-title {
	margin: 0 0 12px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ns-ink);
}

.ns-stars-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ns-stars-item {
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 14px;
	padding: 14px 16px;
	transition: border-color 0.15s ease;
}

.ns-stars-item:hover {
	border-color: #c9dceb;
}

.ns-stars-item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.ns-stars-item__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 600;
	background: var(--ns-soft);
	color: var(--ns-primary);
}

.ns-stars-item__badge--invoice { background: #eef5fa; color: #256a9c; }
.ns-stars-item__badge--customer { background: #edf8f0; color: #2d7a46; }
.ns-stars-item__badge--survey { background: #f3eef8; color: #6b4c9a; }
.ns-stars-item__badge--audit { background: #eef5fa; color: #2f7db8; }
.ns-stars-item__badge--receipt { background: #eef5fa; color: #2f7db8; }
.ns-stars-item__badge--bonus { background: #fff7e6; color: #9a7209; }
.ns-stars-item__badge--deduction { background: #fdf0ef; color: #b54a42; }
.ns-stars-item__badge--redeem { background: #f3f0fa; color: #6b4c9a; }

.ns-stars-item__amount {
	font-size: 1rem;
	white-space: nowrap;
}

.ns-stars-item__amount.is-positive { color: #2d7a46; }
.ns-stars-item__amount.is-negative { color: #b54a42; }

.ns-stars-item__note {
	margin: 0 0 8px;
	font-size: 0.86rem;
	color: var(--ns-ink);
	line-height: 1.5;
}

.ns-stars-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 0.78rem;
	color: var(--ns-muted);
}

.ns-stars-empty {
	text-align: center;
	padding: 36px 16px;
	border: 1px dashed var(--ns-line);
	border-radius: 14px;
	background: var(--ns-surface);
	color: var(--ns-muted);
}

.ns-stars-empty__icon {
	display: block;
	font-size: 1.6rem;
	color: #d4c48a;
	margin-bottom: 8px;
}

.ns-stars-empty p {
	margin: 0;
	font-size: 0.88rem;
}

.ns-stars-message {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--ns-soft);
	color: var(--ns-primary);
	font-size: 0.86rem;
	margin-bottom: 12px;
}

.ns-stars-message.is-error {
	background: #fdf0ef;
	color: #b54a42;
}

.ns-stars-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}

.ns-stars-list.is-loading {
	pointer-events: none;
}

@media (max-width: 720px) {
	.ns-stars-summary {
		grid-template-columns: 1fr;
	}

	.ns-stars-item__head {
		flex-direction: column;
		align-items: flex-start;
	}
}

.ns-panel-lead {
	margin: 0 0 16px;
	font-size: 0.9rem;
	color: var(--ns-muted);
}

.ns-tasks-summary {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.ns-tasks-stat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 999px;
}

.ns-tasks-stat span {
	font-size: 0.76rem;
	color: var(--ns-muted);
}

.ns-tasks-stat strong {
	font-size: 0.92rem;
	color: var(--ns-accent-dark);
	font-weight: 700;
}

.ns-tasks-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 80px;
}

.ns-tasks-list.is-loading {
	pointer-events: none;
}

.ns-task-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-right: 3px solid var(--ns-accent);
	border-radius: 10px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ns-task-card.is-done {
	background: #f8fbfd;
	border-color: #dceaf5;
	border-right-color: #8eb8d8;
	opacity: 0.92;
}

.ns-task-card__check {
	position: relative;
	display: flex;
	align-items: center;
	margin: 2px 0 0;
	cursor: pointer;
}

.ns-task-card__check input {
	position: absolute;
	opacity: 0;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.ns-task-card__box {
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--ns-line);
	border-radius: 6px;
	background: #fff;
	display: block;
}

.ns-task-card__check input:checked + .ns-task-card__box {
	background: var(--ns-primary);
	border-color: var(--ns-primary);
	box-shadow: inset 0 0 0 2px #fff;
}

.ns-task-card__body {
	flex: 1;
	min-width: 0;
}

.ns-task-card__title {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ns-ink);
	margin-bottom: 2px;
	line-height: 1.45;
}

.ns-task-card.is-done .ns-task-card__title {
	color: var(--ns-muted);
	text-decoration: line-through;
	text-decoration-color: rgba(107, 124, 143, 0.45);
}

.ns-task-card__desc {
	margin: 0;
	font-size: 0.8rem;
	color: var(--ns-muted);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ns-task-card__status {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ns-accent-dark);
	background: var(--ns-accent-soft);
	padding: 4px 8px;
	border-radius: 999px;
	white-space: nowrap;
}

.ns-task-card.is-done .ns-task-card__status {
	color: #5a7a94;
	background: #eef5fa;
}

.ns-support-panel {
	max-width: 760px;
}

.ns-support-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.ns-support-checked {
	font-size: 0.78rem;
	color: var(--ns-muted);
}

.ns-support-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 120px;
}

.ns-support-content.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.ns-support-card {
	padding: 16px 18px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
}

.ns-support-card--note {
	background: var(--ns-soft);
	border-color: #d8e8f4;
}

.ns-support-card__title {
	margin: 0 0 12px;
	font-size: 0.92rem;
	color: var(--ns-ink);
}

.ns-support-dl {
	margin: 0;
}

.ns-support-row {
	display: grid;
	grid-template-columns: minmax(120px, 38%) 1fr;
	gap: 8px 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--ns-line);
}

.ns-support-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ns-support-row dt {
	margin: 0;
	font-size: 0.8rem;
	color: var(--ns-muted);
}

.ns-support-row dd {
	margin: 0;
	font-size: 0.86rem;
	color: var(--ns-ink);
	line-height: 1.5;
}

.ns-support-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 600;
}

.ns-support-badge.is-ok {
	background: #e8f5ec;
	color: #2f7a4a;
}

.ns-support-badge.is-error {
	background: #fdf0ef;
	color: #b54a42;
}

.ns-support-badge.is-unknown {
	background: #f3f5f8;
	color: var(--ns-muted);
}

.ns-support-hint {
	display: block;
	margin-top: 4px;
	font-size: 0.76rem;
	color: var(--ns-muted);
}

.ns-support-tips {
	margin: 0;
	padding: 0 18px 0 0;
	color: var(--ns-muted);
	font-size: 0.84rem;
	line-height: 1.7;
}

.ns-support-credits {
	margin-top: 24px;
	padding: 18px 16px;
	text-align: center;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
}

.ns-support-credits__title {
	margin: 0 0 6px;
	font-size: 0.78rem;
	color: var(--ns-muted);
}

.ns-support-credits__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--ns-primary);
}

.ns-support-credits__season {
	margin: 4px 0 0;
	font-size: 0.82rem;
	color: var(--ns-muted);
}

@media (max-width: 720px) {
	.ns-support-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* —— Review reports / audit (staff role) —— */
.ns-review-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ns-review-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ns-review-tab {
	appearance: none;
	border: 1px solid var(--ns-line);
	background: var(--ns-surface);
	color: var(--ns-muted);
	font: inherit;
	font-size: 0.86rem;
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
}

.ns-review-tab.is-active {
	border-color: var(--ns-primary);
	background: var(--ns-soft);
	color: var(--ns-primary);
	font-weight: 600;
}

.ns-review-tab__count {
	margin-inline-start: 4px;
	font-variant-numeric: tabular-nums;
}

.ns-review-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	padding: 12px;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
}

.ns-review-filters .ns-field--compact {
	flex: 1 1 140px;
	min-width: 120px;
	margin: 0;
}

.ns-review-filters__actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.ns-review-content {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ns-review-group {
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	overflow: hidden;
}

.ns-review-group__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--ns-line);
	background: var(--ns-bg);
}

.ns-review-group__head img,
.ns-review-group__ph,
.ns-review-card__product img {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--ns-soft);
}

.ns-review-group__ph {
	display: block;
}

.ns-review-group__head div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ns-review-group__head strong {
	font-size: 0.95rem;
	color: var(--ns-ink);
}

.ns-review-group__head span {
	font-size: 0.78rem;
	color: var(--ns-muted);
}

.ns-review-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
}

.ns-review-group > .ns-review-list {
	padding: 12px 14px;
}

.ns-review-card {
	padding: 12px;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	background: var(--ns-surface);
}

.ns-review-card--audit,
.ns-review-card--staff {
	background: var(--ns-surface);
}

.ns-review-card__product {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ns-line);
}

.ns-review-card__product div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.ns-review-card__product strong {
	font-size: 0.9rem;
	color: var(--ns-ink);
}

.ns-review-card__product span {
	font-size: 0.76rem;
	color: var(--ns-muted);
}

.ns-review-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.ns-review-card__type {
	font-size: 0.76rem;
	color: var(--ns-primary);
	font-weight: 600;
}

.ns-review-card__stars {
	display: inline-flex;
	gap: 1px;
	letter-spacing: 0;
	flex-shrink: 0;
}

.ns-review-star {
	color: #d5dde6;
	font-size: 0.92rem;
	line-height: 1;
}

.ns-review-star.is-on {
	color: #e6a817;
}

.ns-review-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	font-size: 0.8rem;
	color: var(--ns-muted);
	margin-bottom: 6px;
}

.ns-review-card__meta strong {
	color: var(--ns-ink);
	font-weight: 600;
}

.ns-review-card__comment {
	margin: 0 0 8px;
	font-size: 0.88rem;
	line-height: 1.65;
	color: var(--ns-ink);
	white-space: pre-wrap;
}

.ns-review-card__auditors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: var(--ns-muted);
	margin-bottom: 8px;
}

.ns-review-auditor {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--ns-soft);
	color: var(--ns-primary);
	font-size: 0.76rem;
}

.ns-review-card__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 4px;
}

.ns-review-staff {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ns-review-staff img,
.ns-review-staff__ph {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ns-soft);
	flex-shrink: 0;
}

.ns-review-staff__ph {
	display: block;
}

.ns-review-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.ns-review-chip {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.74rem;
	font-weight: 500;
}

.ns-review-chip--ok {
	background: #e8f5ec;
	color: #2f7a4a;
}

.ns-review-chip--bad {
	background: #fdf0ef;
	color: #b54a42;
}

.ns-receipts-card {
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 480px;
}

.ns-receipts-search {
	display: flex;
	gap: 8px;
	align-items: center;
}

.ns-receipts-input {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 10px;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	background: #fff;
	color: var(--ns-muted);
}

.ns-receipts-input input,
.ns-receipts-field input,
.ns-receipts-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	padding: 8px 10px;
	font: inherit;
	font-size: 0.92rem;
	color: var(--ns-ink);
	background: #fff;
}

.ns-receipts-input input {
	border: 0;
	padding: 8px 0;
	background: transparent;
	min-width: 0;
}

.ns-receipts-input:focus-within {
	border-color: var(--ns-accent);
}

.ns-receipts-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border: 0;
	border-radius: 8px;
	background: var(--ns-accent);
	color: #fff;
	cursor: pointer;
}

.ns-receipts-icon-btn:hover:not(:disabled) {
	background: var(--ns-accent-dark);
}

.ns-receipts-icon-btn:disabled {
	cursor: wait;
	opacity: 0.85;
}

.ns-receipts-icon-btn.is-loading svg {
	display: none;
}

.ns-receipts-icon-btn.is-loading::after {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ns-spin 0.7s linear infinite;
}

.ns-receipts-panel .ns-customer-lookup.is-loading::before {
	content: '';
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	border: 2px solid var(--ns-line);
	border-top-color: var(--ns-accent);
	border-radius: 50%;
	animation: ns-spin 0.7s linear infinite;
}

.ns-receipts-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--ns-line);
}

.ns-receipts-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.ns-receipts-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ns-receipts-field > span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--ns-muted);
	font-size: 0.78rem;
}

.ns-receipts-field textarea {
	resize: vertical;
	min-height: 64px;
}

.ns-receipts-upload__actions {
	display: flex;
	gap: 8px;
}

.ns-receipts-file {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	background: var(--ns-accent-soft);
	color: var(--ns-accent-dark);
	font-size: 0.85rem;
	cursor: pointer;
}

.ns-receipts-submit {
	min-height: 38px;
	padding: 8px 12px;
	font-size: 0.9rem;
}

.ns-receipts-preview {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border: 1px solid var(--ns-line);
	border-radius: 8px;
	background: var(--ns-bg);
}

@media (max-width: 720px) {
	.ns-receipts-fields {
		grid-template-columns: 1fr;
	}

	.ns-review-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.ns-review-filters__actions {
		width: 100%;
	}

	.ns-review-filters__actions .ns-btn {
		flex: 1;
	}

	.ns-review-card__product {
		flex-wrap: wrap;
	}

	.ns-wr-item {
		grid-template-columns: 1fr;
	}

	.ns-wr-item__actions,
	.ns-wr-edit__actions {
		width: 100%;
	}

	.ns-wr-item__actions .ns-btn,
	.ns-wr-edit__actions .ns-btn,
	.ns-wr-edit .ns-receipts-file {
		flex: 1;
	}
}

.ns-wr-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.ns-wr-range {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.ns-wr-range .ns-field span {
	font-size: 0.76rem;
	color: var(--ns-muted);
}

.ns-wr-search {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ns-wr-search .ns-receipts-input {
	flex: 1;
	min-width: 0;
}

.ns-wr-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ns-wr-item {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
	gap: 6px 12px;
	align-items: center;
	background: var(--ns-surface);
	border: 1px solid var(--ns-line);
	border-radius: 10px;
	padding: 12px 14px;
}

.ns-wr-item__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ns-wr-item__name {
	color: var(--ns-ink);
	font-size: 0.92rem;
	font-weight: 600;
}

.ns-wr-item__mobile,
.ns-wr-item__date {
	color: var(--ns-muted);
	font-size: 0.82rem;
}

.ns-wr-item__actions,
.ns-wr-edit__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.ns-wr-edit .ns-receipts-field input,
.ns-wr-edit .ns-receipts-field textarea {
	width: 100%;
	box-sizing: border-box;
}

.ns-wr-edit {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--ns-line);
}

.ns-wr-edit[hidden] {
	display: none !important;
}

.ns-wr-empty {
	margin: 0;
	color: var(--ns-muted);
	font-size: 0.86rem;
}

.ns-wr-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
}

.ns-wr-pager span {
	color: var(--ns-muted);
	font-size: 0.82rem;
}
