/* Multivendor Marketplace — vendor dashboard & registration
   Scoped under .mvmp-dash. Uses CSS logical properties for RTL/LTR parity. */

.mvmp-dash {
	--mvmp-bg: #f7f8fa;
	--mvmp-card: #ffffff;
	--mvmp-ink: #111827;
	--mvmp-muted: #6b7280;
	--mvmp-line: #e5e7eb;
	--mvmp-accent: #111827;
	--mvmp-accent-ink: #ffffff;
	--mvmp-radius: 12px;
	--mvmp-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.1);

	box-sizing: border-box;
	color: var(--mvmp-ink);
	font-size: 15px;
	line-height: 1.55;
	max-width: 1100px;
	margin-inline: auto;
}

.mvmp-dash *,
.mvmp-dash *::before,
.mvmp-dash *::after { box-sizing: border-box; }

/* Header ------------------------------------------------------------- */
.mvmp-dash__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: var(--mvmp-card);
	border: 1px solid var(--mvmp-line);
	border-radius: var(--mvmp-radius);
	box-shadow: var(--mvmp-shadow);
	margin-block-end: 18px;
}

.mvmp-dash__brand { display: flex; align-items: center; gap: 14px; }
.mvmp-dash__logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.mvmp-dash__store { margin: 0; font-size: 18px; font-weight: 700; }
.mvmp-dash__viewlink { font-size: 13px; color: var(--mvmp-muted); text-decoration: none; }
.mvmp-dash__viewlink:hover { color: var(--mvmp-ink); }

/* Layout ------------------------------------------------------------- */
.mvmp-dash__body {
	display: grid;
	grid-template-columns: 210px 1fr;
	gap: 18px;
	align-items: start;
}

.mvmp-dash__nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--mvmp-card);
	border: 1px solid var(--mvmp-line);
	border-radius: var(--mvmp-radius);
	padding: 8px;
	box-shadow: var(--mvmp-shadow);
	position: sticky;
	top: 20px;
}

.mvmp-dash__navlink {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--mvmp-muted);
	font-weight: 500;
	transition: background .15s, color .15s;
}
.mvmp-dash__navlink:hover { background: #f3f4f6; color: var(--mvmp-ink); }
.mvmp-dash__navlink.is-active { background: var(--mvmp-accent); color: var(--mvmp-accent-ink); }

.mvmp-dash__content {
	background: var(--mvmp-card);
	border: 1px solid var(--mvmp-line);
	border-radius: var(--mvmp-radius);
	padding: 24px;
	box-shadow: var(--mvmp-shadow);
	min-height: 320px;
}

.mvmp-dash__footer {
	text-align: center;
	color: var(--mvmp-muted);
	font-size: 12px;
	padding: 18px 0 4px;
}
.mvmp-dash__footer a { color: var(--mvmp-ink); text-decoration: none; }

/* Headings ----------------------------------------------------------- */
.mvmp-h1 { font-size: 22px; font-weight: 700; margin: 0 0 18px; }
.mvmp-h2 { font-size: 17px; font-weight: 700; margin: 26px 0 12px; }
.mvmp-lead { color: var(--mvmp-muted); margin: 0 0 18px; }
.mvmp-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 18px; }
.mvmp-head-row .mvmp-h1 { margin: 0; }

/* Buttons ------------------------------------------------------------ */
.mvmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 9px;
	border: 1px solid var(--mvmp-line);
	background: #fff;
	color: var(--mvmp-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform .05s, box-shadow .15s, background .15s;
}
.mvmp-btn:hover { box-shadow: var(--mvmp-shadow); }
.mvmp-btn:active { transform: translateY(1px); }
.mvmp-btn--primary { background: var(--mvmp-accent); color: var(--mvmp-accent-ink); border-color: var(--mvmp-accent); }
.mvmp-btn--ghost { background: transparent; }
.mvmp-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Notices ------------------------------------------------------------ */
.mvmp-notice {
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid var(--mvmp-line);
	background: #f9fafb;
	margin-block-end: 16px;
	font-size: 14px;
}
.mvmp-notice a { color: var(--mvmp-ink); font-weight: 600; }
.mvmp-notice--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.mvmp-notice--pending { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.mvmp-notice--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Stats -------------------------------------------------------------- */
.mvmp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-block-end: 20px; }
.mvmp-stats--3 { grid-template-columns: repeat(3, 1fr); }
.mvmp-stat {
	background: #fafafa;
	border: 1px solid var(--mvmp-line);
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mvmp-stat__label { font-size: 12px; color: var(--mvmp-muted); text-transform: uppercase; letter-spacing: .03em; }
.mvmp-stat__value { font-size: 20px; font-weight: 700; }

.mvmp-quick { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tables ------------------------------------------------------------- */
.mvmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mvmp-table thead th {
	text-align: start;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--mvmp-muted);
	padding: 10px 12px;
	border-block-end: 1px solid var(--mvmp-line);
}
.mvmp-table tbody td { padding: 12px; border-block-end: 1px solid var(--mvmp-line); vertical-align: middle; }
.mvmp-prodcell { display: flex; align-items: center; gap: 10px; }
.mvmp-prodcell img { border-radius: 8px; }
.mvmp-prodcell a { text-decoration: none; color: var(--mvmp-ink); font-weight: 600; }
.mvmp-actions { white-space: nowrap; }
.mvmp-link { text-decoration: none; color: var(--mvmp-ink); font-weight: 600; margin-inline-end: 12px; }
.mvmp-link--danger { color: #b91c1c; }
.mvmp-muted { color: var(--mvmp-muted); font-size: 12px; }

/* Status pills (shared look with admin) ------------------------------ */
.mvmp-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.mvmp-status--pending   { background: #fef3c7; color: #92400e; }
.mvmp-status--approved,
.mvmp-status--paid      { background: #dcfce7; color: #166534; }
.mvmp-status--rejected  { background: #fee2e2; color: #991b1b; }
.mvmp-status--requested { background: #dbeafe; color: #1e40af; }

/* Dots --------------------------------------------------------------- */
.mvmp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-inline-end: 6px; }
.mvmp-dot--ok { background: #22c55e; }
.mvmp-dot--off { background: #cbd5e1; }

/* Empty states ------------------------------------------------------- */
.mvmp-empty { text-align: center; padding: 40px 20px; color: var(--mvmp-muted); }
.mvmp-empty p { margin-block-end: 14px; }

/* Forms -------------------------------------------------------------- */
.mvmp-form { max-width: 640px; }
.mvmp-field { margin-block-end: 16px; }
.mvmp-field > label { display: block; font-weight: 600; font-size: 13px; margin-block-end: 6px; }
.mvmp-field input[type="text"],
.mvmp-field input[type="email"],
.mvmp-field input[type="password"],
.mvmp-field input[type="number"],
.mvmp-field textarea,
.mvmp-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mvmp-line);
	border-radius: 9px;
	font: inherit;
	color: var(--mvmp-ink);
	background: #fff;
}
.mvmp-field input:focus,
.mvmp-field textarea:focus {
	outline: none;
	border-color: var(--mvmp-accent);
	box-shadow: 0 0 0 3px rgba(17,24,39,.08);
}
.mvmp-field input[type="file"] { font: inherit; }
.mvmp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mvmp-req { color: #dc2626; }
.mvmp-hint { color: var(--mvmp-muted); font-size: 13px; margin: 6px 0 0; }
.mvmp-current-img { margin-block-end: 8px; }
.mvmp-form__actions { display: flex; gap: 10px; margin-block-start: 8px; }
.mvmp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.mvmp-check { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; }
.mvmp-code { display: inline-block; background: #f3f4f6; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.mvmp-sep { border: none; border-block-start: 1px solid var(--mvmp-line); margin: 20px 0; }

/* Payout / Stripe cards ---------------------------------------------- */
.mvmp-payout-card,
.mvmp-stripe-card {
	background: #fafafa;
	border: 1px solid var(--mvmp-line);
	border-radius: 12px;
	padding: 22px;
	margin-block-end: 12px;
}
.mvmp-payout-amount { display: block; font-size: 28px; font-weight: 800; margin-block: 4px 12px; }
.mvmp-stripe-status { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-block-end: 8px; }
.mvmp-stripe-status--ok strong { color: #166534; }

/* Auth / registration card ------------------------------------------- */
.mvmp-auth-card {
	max-width: 560px;
	margin-inline: auto;
	background: var(--mvmp-card);
	border: 1px solid var(--mvmp-line);
	border-radius: var(--mvmp-radius);
	padding: 30px;
	box-shadow: var(--mvmp-shadow);
}
.mvmp-authswitch { text-align: center; color: var(--mvmp-muted); margin-block-start: 16px; }
.mvmp-authswitch a { color: var(--mvmp-ink); font-weight: 600; }

/* Responsive --------------------------------------------------------- */
@media (max-width: 782px) {
	.mvmp-dash__body { grid-template-columns: 1fr; }
	.mvmp-dash__nav { flex-direction: row; flex-wrap: wrap; position: static; }
	.mvmp-dash__navlink { flex: 1 1 auto; text-align: center; }
	.mvmp-stats, .mvmp-stats--3 { grid-template-columns: 1fr 1fr; }
	.mvmp-grid-2 { grid-template-columns: 1fr; }
}
