/**
 * Amber Flyer Manager - Team Portal (login + dashboard shell).
 * Independent of the public site's theme - no header/footer chrome.
 */

:root {
	--amber-primary: #1BB24B;
	--amber-accent-light: #5BE688;
	--amber-ink: #0D1615;
	--amber-secondary-text: #727A72;
	--amber-surface: #F4F7F4;
	--amber-divider: #EBEBEB;
	--amber-sidebar: #0D1615;
	--amber-sidebar-active: #17342B;
}

.amber-portal-body {
	margin: 0;
	background: var(--amber-surface);
	font-family: 'Inter', -apple-system, sans-serif;
	color: var(--amber-ink);
	-webkit-font-smoothing: antialiased;
}

/* ---- Login ---- */

.amber-login-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--amber-ink);
	padding: 24px;
}

.amber-login-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 20px;
	padding: 44px 40px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.amber-login-logo {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: var(--amber-primary);
	text-decoration: none;
	margin-bottom: 28px;
}

.amber-login-logo span {
	color: var(--amber-ink);
	font-weight: 600;
}

.amber-login-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--amber-secondary-text);
	margin: 0 0 8px;
}

.amber-login-title {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 28px;
	letter-spacing: -0.02em;
}

.amber-login-notice {
	background: #FFF8E6;
	border: 1px solid #F2A81D;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 14px;
}

.amber-login-notice a {
	color: var(--amber-primary);
	font-weight: 600;
}

.amber-login-error {
	background: #FDECEC;
	border: 1px solid #E5484D;
	color: #8B1E1E;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
}

.amber-login-form {
	display: flex;
	flex-direction: column;
}

.amber-login-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--amber-secondary-text);
	margin: 16px 0 6px;
}

.amber-login-input {
	height: 48px;
	border: 1px solid var(--amber-divider);
	border-radius: 10px;
	padding: 0 14px;
	font-size: 15px;
	font-family: inherit;
	color: var(--amber-ink);
}

.amber-login-input:focus {
	outline: none;
	border-color: var(--amber-primary);
	box-shadow: 0 0 0 3px rgba(27, 178, 75, 0.15);
}

.amber-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--amber-secondary-text);
	margin: 18px 0 4px;
}

.amber-login-submit {
	height: 52px;
	border: none;
	border-radius: 10px;
	background: var(--amber-primary);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 18px;
}

.amber-login-submit:hover {
	background: #17a044;
}

.amber-login-lost {
	text-align: center;
	margin: 18px 0 0;
	font-size: 14px;
}

.amber-login-lost a,
.amber-login-return {
	color: var(--amber-secondary-text);
	text-decoration: none;
}

.amber-login-lost a:hover,
.amber-login-return:hover {
	color: var(--amber-primary);
}

.amber-login-return {
	display: block;
	text-align: center;
	margin-top: 24px;
	font-size: 13px;
	font-weight: 600;
}

/* ---- Manager shell ---- */

.amber-portal-shell {
	display: flex;
	min-height: 100vh;
}

.amber-portal-sidebar {
	width: 285px;
	flex-shrink: 0;
	background: var(--amber-sidebar);
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	flex-direction: column;
	padding: 28px 20px;
	position: sticky;
	top: 0;
	height: 100vh;
}

.amber-portal-brand {
	display: flex;
	flex-direction: column;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amber-portal-brand-name {
	font-size: 19px;
	font-weight: 800;
	color: #fff;
}

.amber-portal-brand-sub {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 2px;
}

.amber-portal-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.amber-portal-nav-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 14px;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.amber-portal-nav-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.amber-portal-nav-item.is-active {
	background: var(--amber-sidebar-active);
	color: #fff;
}

.amber-portal-nav-badge {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.04em;
	background: var(--amber-accent-light);
	color: var(--amber-ink);
	padding: 2px 6px;
	border-radius: 5px;
}

.amber-portal-sidebar-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 16px;
	margin-top: 16px;
}

.amber-portal-user {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.amber-portal-user-initials {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--amber-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	flex-shrink: 0;
}

.amber-portal-user-info {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.amber-portal-user-name {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amber-portal-user-role {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
}

.amber-portal-logout {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	font-size: 16px;
	flex-shrink: 0;
}

.amber-portal-logout:hover {
	color: #fff;
}

.amber-portal-public-link {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.amber-portal-public-link:hover {
	color: #fff;
}

/* ---- Main content ---- */

.amber-portal-main {
	flex: 1;
	min-width: 0; /* allow a wide child (e.g. the Products table's scroll wrapper) to scroll within itself instead of stretching this flex item past the viewport */
	padding: 40px 48px;
	max-width: 1400px;
}

.amber-portal-main--centered {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.amber-denied-card {
	background: #fff;
	border-radius: 16px;
	padding: 48px;
	max-width: 420px;
	text-align: center;
	box-shadow: 0 12px 30px rgba(13, 22, 21, 0.08);
}

.amber-denied-card h1 {
	font-size: 22px;
	margin: 0 0 12px;
}

.amber-denied-card p {
	color: var(--amber-secondary-text);
	margin: 0 0 24px;
}

.amber-portal-topbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 28px;
}

.amber-portal-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--amber-secondary-text);
	margin: 0 0 6px;
}

.amber-portal-h1 {
	font-size: 32px;
	font-weight: 800;
	margin: 0;
	letter-spacing: -0.02em;
}

.amber-portal-topbar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.amber-portal-status-pill {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: #fff;
	border: 1px solid var(--amber-divider);
	color: var(--amber-secondary-text);
	padding: 8px 14px;
	border-radius: 999px;
}

.amber-portal-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 18px;
	border-radius: 8px;
	background: var(--amber-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.amber-portal-btn-primary:hover {
	background: #17a044;
}

.amber-portal-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 28px;
}

.amber-portal-stat {
	background: #fff;
	border: 1px solid var(--amber-divider);
	border-radius: 14px;
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
}

.amber-portal-stat--accent {
	background: var(--amber-primary);
	border-color: var(--amber-primary);
	color: #fff;
}

.amber-portal-stat-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
}

.amber-portal-stat-num {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.3;
	margin-top: 4px;
}

.amber-portal-stat-caption {
	font-size: 12px;
	opacity: 0.65;
	margin-top: 4px;
}

.amber-portal-columns {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 20px;
	align-items: start;
}

.amber-portal-card {
	background: #fff;
	border: 1px solid var(--amber-divider);
	border-radius: 14px;
	padding: 24px;
}

.amber-portal-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 16px;
}

.amber-portal-card-head h2,
.amber-portal-card--actions h2 {
	font-size: 17px;
	margin: 0 0 4px;
}

.amber-portal-card-head p {
	font-size: 13px;
	color: var(--amber-secondary-text);
	margin: 0;
}

.amber-portal-view-all {
	font-size: 13px;
	font-weight: 700;
	color: var(--amber-primary);
	text-decoration: none;
	white-space: nowrap;
}

.amber-portal-empty {
	color: var(--amber-secondary-text);
	font-size: 14px;
	padding: 20px 0;
}

.amber-portal-flyer-list {
	display: flex;
	flex-direction: column;
}

.amber-portal-flyer-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--amber-divider);
}

.amber-portal-flyer-row:first-child {
	border-top: none;
}

.amber-portal-flyer-thumb {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--amber-surface);
}

.amber-portal-flyer-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.amber-portal-flyer-thumb-empty {
	display: block;
	width: 100%;
	height: 100%;
}

.amber-portal-flyer-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.amber-portal-flyer-info strong {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amber-portal-flyer-info span {
	font-size: 12px;
	color: var(--amber-secondary-text);
}

.amber-portal-flyer-dates {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	color: var(--amber-secondary-text);
	text-align: right;
	flex-shrink: 0;
}

.amber-portal-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}

.amber-portal-badge.is-published { background: #E4F6EA; color: #17a044; }
.amber-portal-badge.is-draft { background: var(--amber-surface); color: var(--amber-secondary-text); }
.amber-portal-badge.is-pending { background: #FFF3D6; color: #8a6416; }
.amber-portal-badge.is-archived { background: #EFEAFB; color: #5b3fa8; }
.amber-portal-badge.is-expired { background: #FDECEC; color: #8B1E1E; }

.amber-portal-flyer-chevron {
	color: var(--amber-secondary-text);
	text-decoration: none;
	font-size: 20px;
	flex-shrink: 0;
}

.amber-portal-quick-action {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--amber-divider);
	text-decoration: none;
	color: var(--amber-ink);
}

.amber-portal-quick-action:first-of-type {
	border-top: none;
}

.amber-portal-quick-icon {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--amber-surface);
	color: var(--amber-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	flex-shrink: 0;
}

.amber-portal-quick-action span:nth-child(2) {
	flex: 1;
	font-size: 13px;
	color: var(--amber-secondary-text);
	line-height: 1.5;
}

.amber-portal-quick-action strong {
	color: var(--amber-ink);
	font-size: 14px;
}

.amber-portal-quick-arrow {
	color: var(--amber-secondary-text);
	flex-shrink: 0;
}

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

@media (max-width: 1024px) {
	.amber-portal-columns {
		grid-template-columns: 1fr;
	}
	.amber-portal-stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.amber-portal-shell {
		flex-direction: column;
	}
	.amber-portal-sidebar {
		width: 100%;
		height: auto;
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		padding: 16px 20px;
	}
	.amber-portal-brand {
		border-bottom: none;
		padding-bottom: 0;
		margin-bottom: 0;
		margin-right: auto;
	}
	.amber-portal-nav {
		flex-direction: row;
		overflow-x: auto;
		width: 100%;
		order: 3;
		gap: 4px;
		padding-top: 12px;
		margin-top: 12px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		-webkit-overflow-scrolling: touch;
	}
	.amber-portal-nav-item {
		white-space: nowrap;
		flex-shrink: 0;
	}
	.amber-portal-sidebar-footer {
		border-top: none;
		padding-top: 0;
		margin-top: 0;
		display: flex;
		align-items: center;
		gap: 16px;
	}
	.amber-portal-user {
		margin-bottom: 0;
	}
	.amber-portal-main {
		padding: 24px 20px;
	}
}

@media (max-width: 767px) {
	.amber-portal-stats {
		grid-template-columns: 1fr;
	}
	.amber-portal-flyer-row {
		flex-wrap: wrap;
	}
	.amber-portal-flyer-dates {
		text-align: left;
	}
	.amber-login-card {
		padding: 32px 24px;
	}
}

/* =================================================================
   Create Flyer wizard (Campaign / Products / Generate / Publish)
   ================================================================= */

.amber-wizard-stepper {
	display: flex;
	align-items: center;
	margin-bottom: 28px;
}

.amber-wizard-step {
	display: flex;
	align-items: center;
	gap: 10px;
}

.amber-wizard-step-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	flex-shrink: 0;
	background: #fff;
	border: 2px solid var(--amber-divider);
	color: var(--amber-secondary-text);
}

.amber-wizard-step-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--amber-secondary-text);
	white-space: nowrap;
}

.amber-wizard-step-line {
	width: 48px;
	height: 2px;
	background: var(--amber-divider);
	margin: 0 12px;
	flex-shrink: 0;
}

.amber-wizard-step--current .amber-wizard-step-circle {
	background: var(--amber-primary);
	border-color: var(--amber-primary);
	color: #fff;
}

.amber-wizard-step--current .amber-wizard-step-label {
	color: var(--amber-ink);
}

.amber-wizard-step--done .amber-wizard-step-circle {
	background: var(--amber-primary);
	border-color: var(--amber-primary);
	color: #fff;
}

.amber-wizard-step--done .amber-wizard-step-line {
	background: var(--amber-primary);
}

.amber-wizard-step--done .amber-wizard-step-label {
	color: var(--amber-ink);
}

.amber-wizard-body {
	padding-bottom: 40px;
}

.amber-wizard-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 20px;
	align-items: start;
}

.amber-wizard-grid--preview {
	grid-template-columns: 1fr 1fr;
}

.amber-wizard-card {
	max-width: 100%;
}

.amber-wizard-section-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 22px;
}

.amber-wizard-section-num {
	font-size: 12px;
	font-weight: 800;
	color: var(--amber-primary);
	background: var(--amber-surface);
	border-radius: 8px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.amber-wizard-section-head h2 {
	font-size: 18px;
	margin: 0 0 4px;
}

.amber-wizard-section-head p {
	font-size: 13px;
	color: var(--amber-secondary-text);
	margin: 0;
}

.amber-wizard-section-head button {
	margin-left: auto;
}

.amber-wizard-section-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--amber-primary);
	margin: 0 0 8px;
}

/* Fields */

.amber-field-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--amber-ink);
	margin: 18px 0 6px;
}

.amber-field-label:first-child {
	margin-top: 0;
}

.amber-field-required {
	color: var(--amber-secondary-text);
	font-weight: 500;
	text-transform: none;
	font-size: 11px;
}

.amber-field-input {
	width: 100%;
	height: 46px;
	border: 1px solid var(--amber-divider);
	border-radius: 10px;
	padding: 0 14px;
	font-size: 14px;
	font-family: inherit;
	color: var(--amber-ink);
	background: #fff;
	box-sizing: border-box;
}

textarea.amber-field-input {
	height: auto;
	padding: 12px 14px;
	resize: vertical;
}

.amber-field-input:focus {
	outline: none;
	border-color: var(--amber-primary);
	box-shadow: 0 0 0 3px rgba(27, 178, 75, 0.15);
}

.amber-field-help {
	font-size: 12px;
	color: var(--amber-secondary-text);
	margin: 6px 0 0;
}

.amber-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.amber-wizard-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--amber-divider);
	flex-wrap: wrap;
}

.amber-wizard-actions--end {
	justify-content: flex-end;
}

.amber-portal-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 18px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--amber-divider);
	color: var(--amber-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}

.amber-portal-btn-secondary:hover {
	border-color: var(--amber-primary);
	color: var(--amber-primary);
}

/* Selected store panel */

.amber-store-panel {
	position: sticky;
	top: 24px;
}

.amber-store-panel-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amber-secondary-text);
	margin: 0 0 14px;
}

.amber-store-panel-empty {
	color: var(--amber-secondary-text);
	font-size: 14px;
}

.amber-store-panel-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--amber-primary);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	margin-bottom: 12px;
}

.amber-store-panel-photo {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 14px;
}

.amber-store-panel-photo img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.amber-store-panel-name {
	font-size: 18px;
	margin: 0 0 4px;
}

.amber-store-panel-type {
	font-size: 12px;
	color: var(--amber-secondary-text);
	margin: 0 0 10px;
}

.amber-store-panel-address {
	font-size: 13px;
	color: var(--amber-secondary-text);
	margin: 0 0 12px;
	line-height: 1.5;
}

.amber-store-panel-divider {
	border: none;
	border-top: 1px solid var(--amber-divider);
	margin: 18px 0;
}

.amber-store-panel-template {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
}

.amber-store-panel-capacity {
	font-size: 12px;
	color: var(--amber-secondary-text);
	margin: 0;
}

/* Products step */

.amber-product-toolbar {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
}

.amber-product-toolbar .amber-field-input {
	margin: 0;
}

#amber-product-search {
	flex: 1;
}

#amber-product-category {
	max-width: 220px;
}

.amber-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	max-height: 640px;
	overflow-y: auto;
	padding: 4px;
}

.amber-product-card {
	position: relative;
	border: 1.5px solid var(--amber-divider);
	border-radius: 12px;
	padding: 12px;
	cursor: pointer;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.amber-product-card.is-selected {
	border-color: var(--amber-primary);
	background: #F3FBF5;
}

.amber-product-selected-mark {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--amber-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
}

.amber-product-card-image {
	height: 90px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--amber-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.amber-product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.amber-product-card-noimage {
	font-size: 11px;
	color: var(--amber-secondary-text);
}

.amber-product-card-name {
	font-size: 13px;
	line-height: 1.3;
	margin-bottom: 2px;
}

.amber-product-card-meta {
	font-size: 11px;
	color: var(--amber-secondary-text);
	margin-bottom: 10px;
}

.amber-price-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: auto;
}

.amber-price-row label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--amber-secondary-text);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.amber-price-row input {
	height: 32px;
	border: 1px solid var(--amber-divider);
	border-radius: 6px;
	padding: 0 8px;
	font-size: 12px;
	font-family: inherit;
}

.amber-product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--amber-ink);
}

#amber-page-estimate {
	color: var(--amber-secondary-text);
	font-weight: 500;
}

/* Modal (Add Product / Publish confirmation) */

.amber-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(13, 22, 21, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

/* Bug fix: the native [hidden] attribute was being silently overridden by
   the display:flex rule above, so every modal using this class rendered
   open by default on page load instead of only when JS shows it. */
.amber-modal-backdrop[hidden] {
	display: none;
}

.amber-modal {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
}

.amber-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.amber-modal-head h3 {
	font-size: 18px;
	margin: 0;
}

.amber-modal-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--amber-secondary-text);
}

.amber-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--amber-divider);
}

.amber-modal-error {
	color: #8B1E1E;
	font-size: 13px;
	margin-top: 12px;
}

.amber-modal-body {
	text-align: center;
}

.amber-publish-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #FFF3D6;
	color: #8a6416;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 800;
	margin: 0 auto 14px;
}

.amber-modal-store-name {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 4px;
}

.amber-modal-store-address {
	font-size: 13px;
	color: var(--amber-secondary-text);
	margin: 0 0 16px;
}

.amber-modal-check-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	text-align: left;
	font-size: 13px;
	background: var(--amber-surface);
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 8px;
}

/* Generate / Preview step */

.amber-check-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 4px 0 8px;
}

.amber-check-row {
	font-size: 14px;
	color: var(--amber-ink);
}

.amber-check-row strong {
	font-weight: 700;
}

.amber-preview-panel {
	position: sticky;
	top: 24px;
	background: #fff;
	border: 1px solid var(--amber-divider);
	border-radius: 14px;
	padding: 20px;
	text-align: center;
}

.amber-preview-frame {
	border-radius: 10px;
	overflow: hidden;
	background: var(--amber-surface);
	margin-bottom: 12px;
}

.amber-preview-frame img {
	width: 100%;
	display: block;
}

.amber-preview-pages {
	font-size: 12px;
	color: var(--amber-secondary-text);
	margin: 0 0 12px;
}

/* Publish step */

.amber-publish-check {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--amber-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 16px;
}

.amber-publish-check--big {
	width: 60px;
	height: 60px;
	font-size: 28px;
	margin: 0 auto 20px;
}

.amber-publish-copy {
	font-size: 14px;
	color: var(--amber-secondary-text);
	line-height: 1.6;
	margin: 8px 0 20px;
}

.amber-destination-card {
	background: var(--amber-surface);
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 8px;
}

.amber-destination-card strong {
	display: block;
	font-size: 15px;
	margin: 4px 0 2px;
}

.amber-destination-card span {
	font-size: 13px;
	color: var(--amber-secondary-text);
}

.amber-destination-photo {
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 10px;
}

.amber-destination-photo img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.amber-wizard-done {
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
}

.amber-wizard-done h2 {
	font-size: 22px;
	margin: 0 0 20px;
}

.amber-wizard-done .amber-check-rows {
	text-align: left;
	background: var(--amber-surface);
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 8px;
}

.amber-wizard-done .amber-wizard-actions {
	justify-content: center;
	border-top: none;
	padding-top: 0;
}

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

@media (max-width: 1024px) {
	.amber-wizard-grid,
	.amber-wizard-grid--preview {
		grid-template-columns: 1fr;
	}
	.amber-store-panel,
	.amber-preview-panel {
		position: static;
	}
	.amber-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.amber-field-row {
		grid-template-columns: 1fr;
	}
	.amber-product-grid {
		grid-template-columns: repeat(2, 1fr);
		max-height: none;
	}
	.amber-product-toolbar {
		flex-direction: column;
	}
	#amber-product-category {
		max-width: none;
	}
	.amber-wizard-stepper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.amber-wizard-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.amber-wizard-actions a,
	.amber-wizard-actions button {
		justify-content: center;
	}
}

/* =================================================================
   Flyers list + detail
   ================================================================= */

.amber-portal-flyer-row--link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.amber-portal-flyer-row--link:hover {
	background: var(--amber-surface);
	border-radius: 8px;
}

.amber-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 20px;
}

.amber-filter-bar .amber-field-input {
	width: auto;
	flex: 1;
	min-width: 160px;
	height: 42px;
}

.amber-detail-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 16px 0 20px;
}

.amber-detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--amber-divider);
}

.amber-detail-row span {
	color: var(--amber-secondary-text);
}

.amber-store-mapping-confirmed {
	background: #E4F6EA;
	color: #17a044;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
}

@media (max-width: 767px) {
	.amber-filter-bar {
		flex-direction: column;
		align-items: stretch;
	}
	.amber-filter-bar .amber-field-input {
		width: 100%;
	}
}

/* =================================================================
   Products library
   ================================================================= */

.amber-product-grid--library {
	max-height: none;
	grid-template-columns: repeat(5, 1fr);
}

.amber-product-card--library {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.amber-product-card-status {
	align-self: flex-start;
	margin-bottom: 8px;
}

.amber-product-card-price {
	margin-top: 8px;
	font-size: 12px;
	display: flex;
	gap: 6px;
	align-items: baseline;
}

.amber-product-card-price s {
	color: var(--amber-secondary-text);
}

.amber-product-card-price strong {
	color: var(--amber-primary);
}

@media (max-width: 1024px) {
	.amber-product-grid--library {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.amber-product-grid--library {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* =================================================================
   Stores / Templates / Archive / Settings
   ================================================================= */

.amber-templates-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.amber-portal-flyer-row form {
	margin-left: 8px;
}

.amber-portal-flyer-row form button {
	height: 34px;
	padding: 0 12px;
	font-size: 12px;
}

@media (max-width: 767px) {
	.amber-templates-grid {
		grid-template-columns: 1fr;
	}
	.amber-portal-flyer-row {
		flex-wrap: wrap;
	}
}

/* =================================================================
   Product library redesign (matches supplied reference screenshot)
   ================================================================= */

.amber-product-summary-card {
	background: var(--amber-sidebar);
	color: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	display: flex;
	align-items: center;
	gap: 32px;
	margin-bottom: 20px;
}

.amber-product-summary-count {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.amber-product-summary-number {
	font-size: 44px;
	font-weight: 800;
	color: var(--amber-accent-light);
	line-height: 1;
}

.amber-product-summary-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.85);
}

.amber-product-summary-copy {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.6;
	margin: 0;
	padding-left: 28px;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.amber-product-toolbar--library {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.amber-product-toolbar--library .amber-field-input {
	width: auto;
	flex-shrink: 0;
}

.amber-product-toolbar--library #amber-library-search {
	flex: 1;
	min-width: 220px;
}

#amber-library-category {
	width: 220px;
}

.amber-field-input--compact {
	width: 190px;
}

.amber-product-count-pill {
	font-size: 13px;
	font-weight: 700;
	color: var(--amber-secondary-text);
	white-space: nowrap;
	padding: 0 4px;
}

.amber-product-count-pill span {
	color: var(--amber-primary);
}

.amber-product-grid--library {
	max-height: none;
	grid-template-columns: repeat(4, 1fr);
}

.amber-library-card {
	position: relative;
	border: 1px solid var(--amber-divider);
	border-radius: 14px;
	padding: 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.amber-library-card-status {
	align-self: flex-end;
	margin-bottom: 10px;
}

.amber-library-card-image {
	height: 130px;
	border-radius: 10px;
	background: var(--amber-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 12px;
}

.amber-library-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.amber-library-card-noimage {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--amber-secondary-text);
}

.amber-library-card-meta {
	font-size: 11px;
	font-weight: 700;
	color: var(--amber-primary);
	margin: 0 0 4px;
}

.amber-library-card-name {
	font-size: 14px;
	line-height: 1.35;
	margin-bottom: 2px;
}

.amber-library-card-pack {
	font-size: 12px;
	color: var(--amber-secondary-text);
}

.amber-library-card-divider {
	border-top: 1px solid var(--amber-divider);
	margin: 12px 0;
}

.amber-library-card-prices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.amber-library-card-prices span {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--amber-secondary-text);
	margin-bottom: 3px;
}

.amber-library-card-prices strong {
	font-size: 13px;
	color: var(--amber-ink);
}

.amber-library-card-offer {
	color: var(--amber-primary) !important;
}

.amber-library-card-edit {
	font-size: 13px;
	font-weight: 700;
	color: var(--amber-primary);
	text-decoration: none;
}

.amber-portal-pagination {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.amber-pagination-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.amber-pagination-status {
	font-size: 13px;
	color: var(--amber-secondary-text);
}

@media (max-width: 1200px) {
	.amber-product-grid--library {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1024px) {
	.amber-product-summary-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.amber-product-summary-copy {
		padding-left: 0;
		border-left: none;
	}
}

@media (max-width: 900px) {
	.amber-product-grid--library {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.amber-product-grid--library {
		grid-template-columns: 1fr;
	}
	.amber-product-toolbar--library {
		flex-direction: column;
		align-items: stretch;
	}
	.amber-field-input--compact {
		max-width: none;
	}
}

/* =================================================================
   Edit Product modal (matches supplied reference screenshot)
   ================================================================= */

/* .amber-library-card-edit is now a <button> instead of an <a> - reset
   button chrome so it still reads as the same green text link. */
.amber-library-card-edit {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.amber-edit-modal {
	max-width: 520px;
}

.amber-edit-modal .amber-field-label {
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.05em;
}

.amber-edit-image-preview-wrap {
	width: 100%;
	height: 220px;
	border: 1px solid var(--amber-divider);
	border-radius: 12px;
	background: var(--amber-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 10px;
}

.amber-edit-image-preview-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#amber-edit-image-preview-empty {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--amber-secondary-text);
}

.amber-edit-modal .amber-field-help {
	margin-top: 6px;
	margin-bottom: 0;
}


/* =================================================================
   Template preview thumbnails (Templates page + Create Flyer step 1)
   ================================================================= */

.amber-template-preview {
	width: 100%;
	border: 1px solid var(--amber-divider);
	border-radius: 10px;
	overflow: hidden;
	background: var(--amber-surface);
	margin-bottom: 4px;
}

.amber-template-preview img {
	display: block;
	width: 100%;
	height: auto;
}

.amber-template-preview--panel {
	margin: 6px 0 10px;
}
/* ---------------------------------------------------------------
   Promotions (portal admin screen)
   --------------------------------------------------------------- */

.amber-promo-notice {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 16px;
}
.amber-promo-notice.is-success { background: #E4F6EA; color: #17a044; }
.amber-promo-notice.is-error { background: #FDECEC; color: #8B1E1E; }
.amber-promo-notice.is-warning { background: #FFF8E6; color: #8a6d1f; border: 1px solid #F2A81D; }

.amber-promo-table-wrap {
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--amber-divider);
	border-radius: 12px;
}

.amber-promo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 920px;
}

.amber-promo-table th {
	text-align: left;
	padding: 12px 14px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--amber-secondary-text);
	border-bottom: 1px solid var(--amber-divider);
	white-space: nowrap;
}

.amber-promo-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--amber-divider);
	vertical-align: middle;
}

.amber-promo-table tbody tr:last-child td { border-bottom: none; }

.amber-promo-table tbody tr[draggable="true"] { cursor: grab; }
.amber-promo-table tbody tr[draggable="true"]:active { cursor: grabbing; }

.amber-promo-col-order { width: 56px; }

.amber-promo-position-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	border-radius: 7px;
	background: var(--amber-surface);
	font-weight: 700;
	color: var(--amber-ink);
}

.amber-promo-table img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 6px;
	background: var(--amber-surface);
}

.amber-promo-noimage {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: var(--amber-surface);
}

.amber-promo-dates { white-space: nowrap; color: var(--amber-secondary-text); }

.amber-promo-actions {
	white-space: nowrap;
	text-align: right;
}

.amber-promo-edit-btn,
.amber-promo-delete-btn {
	border: 1px solid var(--amber-divider);
	background: #fff;
	border-radius: 7px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
.amber-promo-edit-btn:hover { border-color: var(--amber-primary); color: var(--amber-primary); }
.amber-promo-delete-btn {
	margin-left: 6px;
	color: #8B1E1E;
	width: 30px;
	line-height: 1;
}
.amber-promo-delete-btn:hover { border-color: #8B1E1E; background: #FDECEC; }

/* Add/edit modal extras */

.amber-promo-product-results {
	margin-top: 6px;
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid var(--amber-divider);
	border-radius: 10px;
}

.amber-promo-product-result {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
}
.amber-promo-product-result:hover { background: var(--amber-surface); }
.amber-promo-product-result img,
.amber-promo-product-result-noimg {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: contain;
	background: var(--amber-surface);
	flex-shrink: 0;
}
.amber-promo-product-result-empty {
	padding: 10px 12px;
	font-size: 13px;
	color: var(--amber-secondary-text);
}

.amber-promo-selected-product {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--amber-surface);
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.amber-promo-change-product {
	background: none;
	border: none;
	color: var(--amber-primary);
	font-weight: 700;
	cursor: pointer;
	font-size: 12px;
	font-family: inherit;
	white-space: nowrap;
}

.amber-modal--wide { max-width: 960px; width: 92vw; }

.amber-promo-preview-body {
	max-height: 75vh;
	overflow-y: auto;
	background: var(--amber-surface);
	border-radius: 12px;
	padding: 4px;
}


/* ---- Manual Flyer Upload additions ---- */

.amber-method-toggle {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.amber-method-toggle-option {
	flex: 1 1 0;
	text-align: center;
	padding: 14px 16px;
	border: 1.5px solid var(--amber-divider);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--amber-ink);
	text-decoration: none;
	background: #fff;
}

.amber-method-toggle-option.is-active {
	border-color: var(--amber-primary);
	background: var(--amber-surface);
	color: var(--amber-primary);
}

.amber-upload-pages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
	margin: 18px 0;
	min-height: 40px;
}

.amber-upload-page {
	position: relative;
	border: 1px solid var(--amber-divider);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	cursor: grab;
}

.amber-upload-page.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.amber-upload-page-placeholder {
	border: 2px dashed var(--amber-primary);
	border-radius: 10px;
	background: var(--amber-surface);
}

.amber-upload-page-number {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
	background: var(--amber-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.amber-upload-page img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: contain;
	background: var(--amber-surface);
}

.amber-upload-page-actions {
	display: flex;
	gap: 6px;
	padding: 8px;
	border-top: 1px solid var(--amber-divider);
}

.amber-upload-page-actions .amber-portal-btn-secondary {
	height: 32px;
	padding: 0 10px;
	font-size: 12px;
	flex: 1 1 0;
	justify-content: center;
	cursor: pointer;
}

.amber-upload-add-page {
	cursor: pointer;
}

.amber-upload-status {
	margin-top: 10px;
	font-size: 13px;
	color: var(--amber-secondary-text);
	min-height: 18px;
}

.amber-upload-status.is-error {
	color: #C0392B;
	font-weight: 600;
}

/* Upload Existing Flyer - Review screen (Step 02): the SAME page-card
   grid the old page-by-page uploader used, but these cards are never
   draggable/editable - just a read-only confirmation that every PDF
   page was detected in the right order - so the pointer must not look
   grabbable and the per-card Replace/Delete action row never applies. */
.amber-upload-page--readonly {
	cursor: default;
}
@media (max-width: 600px) {
	.amber-method-toggle {
		flex-direction: column;
	}
	.amber-upload-pages {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
}

/* ==========================================================================
   Products Management — data table
   Fixed column widths (except Product Name, which takes the remaining
   space) so Item Code/Barcode/Category can never visually collide with
   their neighbours, however long the values are. Horizontal scroll on
   narrow screens instead of squeezing columns.
   ========================================================================== */

.amber-product-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid var(--amber-divider);
	border-radius: 12px;
}

.amber-product-table {
	width: 100%;
	min-width: 1180px;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 13px;
}

.amber-product-table th,
.amber-product-table td {
	box-sizing: border-box;
	padding: 14px 16px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid var(--amber-divider);
	overflow: hidden;
}

.amber-product-table th {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--amber-secondary-text);
	white-space: nowrap;
	background: var(--amber-surface);
}

.amber-product-table tbody tr:last-child td {
	border-bottom: none;
}

.amber-product-table tbody tr:hover {
	background: var(--amber-surface);
}

/* Column widths: IMAGE / ITEM CODE / PRODUCT NAME / BARCODE / PACK /
   CATEGORY / STATUS / ACTION. Product Name is the only flexible column -
   everything else is fixed, so it naturally absorbs whatever width is
   left (comfortably 30-35%+ on normal desktop widths). */
.amber-product-table th:nth-child(1),
.amber-product-table td:nth-child(1) {
	width: 90px;
}
.amber-product-table th:nth-child(2),
.amber-product-table td:nth-child(2) {
	width: 150px;
}
.amber-product-table th:nth-child(3),
.amber-product-table td:nth-child(3) {
	width: auto;
	min-width: 280px;
}
.amber-product-table th:nth-child(4),
.amber-product-table td:nth-child(4) {
	width: 180px;
}
.amber-product-table th:nth-child(5),
.amber-product-table td:nth-child(5) {
	width: 90px;
	text-align: center;
}
.amber-product-table th:nth-child(6),
.amber-product-table td:nth-child(6) {
	width: 160px;
}
.amber-product-table th:nth-child(7),
.amber-product-table td:nth-child(7) {
	width: 110px;
}
.amber-product-table th:nth-child(8),
.amber-product-table td:nth-child(8) {
	width: 90px;
}

/* Item Code / Barcode: keep the full value readable, wrap rather than
   truncate if a value is unusually long for its column. */
.amber-product-table td:nth-child(2),
.amber-product-table td:nth-child(4) {
	color: var(--amber-secondary-text);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

/* These classes sit directly on <td> elements, so they must NOT change the
   cell's display (flex/block would pull the cell out of table layout and
   break its height, vertical centring and bottom border). Only the content
   inside the cell is laid out here. */
.amber-product-table tbody td {
	height: 84px;
}

.amber-product-row-image img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 6px;
	background: var(--amber-surface);
}

.amber-product-row-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	background: var(--amber-surface);
	color: var(--amber-secondary-text);
	font-size: 10px;
	text-align: center;
	line-height: 1.2;
}

.amber-product-row-name {
	font-weight: 600;
	color: var(--amber-ink);
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: normal;
}

.amber-product-row-edit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 14px;
	border-radius: 8px;
	border: 1px solid var(--amber-divider);
	background: #fff;
	color: var(--amber-ink);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.amber-product-row-edit:hover {
	background: var(--amber-surface);
}

@media (max-width: 900px) {
	.amber-product-table {
		font-size: 12.5px;
	}
}