/*
 * Supplier Dashboard — self-contained styles, no external libraries.
 * Theme: matched to the N Factor Designs brand — ivory background,
 * serif display headings, charcoal text, warm gold accent.
 */

.sdash-wrap {
	--sdash-ink: #2b2a27;        /* charcoal text */
	--sdash-muted: #8a8378;      /* warm grey */
	--sdash-paper: #fdfcfa;      /* card background */
	--sdash-ivory: #f7f4ee;      /* page-tint background */
	--sdash-line: #e8e2d8;       /* soft border */
	--sdash-gold: #b08d4f;       /* accent */
	--sdash-gold-dark: #96753c;
	--sdash-serif: Georgia, "Times New Roman", "Palatino Linotype", serif;

	max-width: 1040px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
	color: var(--sdash-ink);
}

/* Headings — serif, like the site's display type */
.sdash-title {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 6px;
	font-family: var(--sdash-serif);
	font-weight: 400;
	letter-spacing: 0.01em;
}

.sdash-card h3 {
	margin: 0 0 14px;
	font-family: var(--sdash-serif);
	font-weight: 400;
	font-size: 19px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--sdash-line);
}

.sdash-muted {
	color: var(--sdash-muted);
	margin-top: 0;
}

.sdash-back {
	color: var(--sdash-gold-dark);
	text-decoration: none;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 12px;
}

.sdash-back:hover {
	color: var(--sdash-ink);
}

/* Notices */
.sdash-notice {
	padding: 12px 16px;
	border: 1px solid var(--sdash-line);
	border-left: 3px solid var(--sdash-gold);
	background: var(--sdash-paper);
	border-radius: 3px;
	margin: 0 0 18px;
}

.sdash-notice-success {
	border-left-color: #5d7d54;
	background: #f4f7f1;
}

.sdash-notice-warn {
	border-left-color: #b3702e;
	background: #faf4ec;
}

/* Tables */
.sdash-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 18px;
	background: var(--sdash-paper);
	border: 1px solid var(--sdash-line);
}

.sdash-table th,
.sdash-table td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--sdash-line);
	vertical-align: middle;
}

.sdash-table thead th {
	background: var(--sdash-ivory);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sdash-muted);
	white-space: nowrap;
}

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

.sdash-table tbody tr:hover {
	background: #fbf9f4;
}

.sdash-table a {
	color: var(--sdash-gold-dark);
	text-decoration: none;
}

.sdash-table a:hover {
	color: var(--sdash-ink);
}

/* Product thumbnails in the order list */
.sdash-thumbs {
	display: inline-flex;
	align-items: center;
}

.sdash-thumb {
	display: inline-flex;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--sdash-paper);
	box-shadow: 0 0 0 1px var(--sdash-line);
	background: var(--sdash-ivory);
	margin-left: -12px;
}

.sdash-thumb:first-child {
	margin-left: 0;
}

.sdash-thumb .sdash-thumb-img,
.sdash-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sdash-thumb-more {
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--sdash-gold-dark);
}

/* ---- Single order layout: items main column + sidebar ---- */
.sdash-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 18px;
	align-items: start;
}

.sdash-single-side .sdash-card {
	margin-bottom: 18px;
}

/* Item rows: big image beside details */
.sdash-items {
	display: flex;
	flex-direction: column;
}

.sdash-item {
	display: flex;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid var(--sdash-line);
}

.sdash-item:first-child {
	padding-top: 4px;
}

.sdash-item:last-child {
	border-bottom: 0;
	padding-bottom: 4px;
}

.sdash-item-media {
	flex: 0 0 300px;
	max-width: 300px;
}

.sdash-wrap .sdash-item-img,
.sdash-item-media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
	border: 1px solid var(--sdash-line);
	background: var(--sdash-ivory);
}

.sdash-item-img-link {
	display: block;
	transition: opacity 0.15s ease;
}

.sdash-item-img-link:hover {
	opacity: 0.85;
}

.sdash-img-hint {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sdash-muted);
}

.sdash-item-info {
	flex: 1 1 auto;
	min-width: 0;
}

.sdash-item-name {
	margin: 0 0 8px;
	font-family: var(--sdash-serif);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.35;
}

.sdash-item-meta {
	color: var(--sdash-muted);
	font-size: 14px;
	margin-bottom: 10px;
}

.sdash-item-meta ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sdash-item-facts {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	margin: 0;
	padding: 12px 0 0;
	border-top: 1px dashed var(--sdash-line);
}

.sdash-item-facts dt {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sdash-muted);
	margin: 0 0 2px;
}

.sdash-item-facts dd {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

/* Status badge */
.sdash-status {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--sdash-ivory);
	color: var(--sdash-ink);
	border: 1px solid var(--sdash-line);
	white-space: nowrap;
}

.sdash-status-processing {
	background: #eef2f7;
	color: #3d5a80;
	border-color: #d5dfe9;
}

.sdash-status-completed {
	background: #f0f5ec;
	color: #5d7d54;
	border-color: #d9e4d2;
}

.sdash-status-on-hold {
	background: #faf3e6;
	color: #a5722a;
	border-color: #ecdcc0;
}

.sdash-status-cancelled,
.sdash-status-refunded,
.sdash-status-failed {
	background: #f9eeec;
	color: #a04a3f;
	border-color: #ecd4d0;
}

/* Buttons — gold accent like the site's CTAs.
   High-specificity selectors so theme/Elementor button styles don't override. */
.sdash-wrap .sdash-btn,
.sdash-wrap button.sdash-btn,
.sdash-wrap a.sdash-btn {
	display: inline-block;
	padding: 10px 26px;
	border: 1px solid var(--sdash-gold);
	background: var(--sdash-gold);
	background-image: none;
	color: #fff;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	box-shadow: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.sdash-wrap .sdash-btn:hover,
.sdash-wrap .sdash-btn:focus,
.sdash-wrap button.sdash-btn:hover,
.sdash-wrap button.sdash-btn:focus {
	background: var(--sdash-gold-dark);
	border-color: var(--sdash-gold-dark);
	color: #fff;
}

.sdash-wrap .sdash-btn-small,
.sdash-wrap a.sdash-btn-small {
	padding: 5px 14px;
	font-size: 11px;
	background: transparent;
	color: var(--sdash-gold-dark);
}

.sdash-wrap .sdash-btn-small:hover,
.sdash-wrap .sdash-btn-small:focus {
	background: var(--sdash-gold);
	color: #fff;
}

/* Cards / columns */
.sdash-columns {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.sdash-columns .sdash-card {
	flex: 1 1 300px;
}

.sdash-card {
	border: 1px solid var(--sdash-line);
	border-radius: 4px;
	background: var(--sdash-paper);
	padding: 20px;
	margin-bottom: 18px;
}

.sdash-address {
	font-style: normal;
	line-height: 1.7;
}

/* Form */
.sdash-form .sdash-field {
	margin: 0 0 16px;
}

.sdash-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 13px;
	letter-spacing: 0.04em;
}

.sdash-form input[type="number"],
.sdash-form select {
	width: 100%;
	max-width: 340px;
	padding: 9px 12px;
	border: 1px solid var(--sdash-line);
	border-radius: 3px;
	background: #fff;
	color: var(--sdash-ink);
	font-size: 15px;
}

.sdash-form input[type="number"]:focus,
.sdash-form select:focus {
	outline: 2px solid var(--sdash-gold);
	outline-offset: 1px;
	border-color: var(--sdash-gold);
}

/* Pagination */
.sdash-pagination {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.sdash-page {
	display: inline-block;
	padding: 5px 13px;
	border: 1px solid var(--sdash-line);
	border-radius: 3px;
	text-decoration: none;
	color: var(--sdash-ink);
	background: var(--sdash-paper);
}

.sdash-page:hover {
	border-color: var(--sdash-gold);
	color: var(--sdash-gold-dark);
}

.sdash-page-current {
	background: var(--sdash-gold);
	border-color: var(--sdash-gold);
	color: #fff;
	pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
	.sdash-single {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.sdash-table thead {
		display: none;
	}

	.sdash-table tr {
		display: block;
		border: 1px solid var(--sdash-line);
		border-radius: 4px;
		margin-bottom: 12px;
		padding: 8px 0;
		background: var(--sdash-paper);
	}

	.sdash-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		border: 0;
		padding: 7px 14px;
	}

	.sdash-table td[data-label]::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: 11px;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--sdash-muted);
		flex-shrink: 0;
	}

	/* Item rows stack: full-width image above details */
	.sdash-item {
		flex-direction: column;
		gap: 12px;
	}

	.sdash-item-media {
		flex-basis: auto;
		max-width: 100%;
	}
}
