/*
 * Vendor Dashboard CSS
 * Advanced Multi-Vendor Marketplace for PrestaShop
 */

/* ─── Custom Properties ──────────────────────────────────────────────────────── */
:root {
  --mp-primary:       #2d7dd2;
  --mp-primary-dark:  #1a5fa8;
  --mp-primary-light: #e8f2fc;
  --mp-success:       #28a745;
  --mp-warning:       #ffc107;
  --mp-danger:        #dc3545;
  --mp-info:          #17a2b8;

  --mp-sidebar-width:  260px;
  --mp-topbar-height:  60px;
  --mp-border:         #e2e8f0;
  --mp-bg:             #f0f4f8;
  --mp-card-bg:        #ffffff;
  --mp-text:           #1a202c;
  --mp-text-muted:     #718096;
  --mp-sidebar-bg:     #1a202c;
  --mp-sidebar-text:   #cbd5e0;
  --mp-sidebar-active: var(--mp-primary);

  --mp-radius:  8px;
  --mp-shadow:  0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --mp-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}

/* ─── Reset / Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.mp-vendor-dashboard {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 14px;
  color: var(--mp-text);
  background: var(--mp-bg);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────────── */
.mp-sidebar {
  width: var(--mp-sidebar-width);
  min-height: 100vh;
  background: var(--mp-sidebar-bg);
  color: var(--mp-sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mp-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mp-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.mp-logo-icon {
  width: 36px; height: 36px;
  background: var(--mp-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.mp-logo-text {
  font-size: 15px;
  font-weight: 600;
}

.mp-sidebar-vendor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mp-vendor-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.mp-vendor-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.mp-vendor-info strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.mp-vendor-role {
  font-size: 11px;
  color: var(--mp-primary);
  text-transform: capitalize;
}

/* Nav */
.mp-nav-list { list-style: none; padding: 12px 0; }

.mp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--mp-sidebar-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  font-size: 13.5px;
  position: relative;
}

.mp-nav-link:hover,
.mp-nav-item.active .mp-nav-link {
  background: rgba(255,255,255,.07);
  color: #fff;
}

.mp-nav-item.active .mp-nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--mp-primary);
  border-radius: 0 2px 2px 0;
}

.mp-nav-link i { width: 18px; text-align: center; }

.mp-badge {
  background: var(--mp-danger);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
  font-weight: 600;
}

.mp-sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.mp-back-store {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mp-sidebar-text);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.15s;
}

.mp-back-store:hover { color: #fff; }

.mp-sidebar-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-back-store-danger { color: #f8b4b4; }
.mp-back-store-danger:hover { color: #fff; }

/* ─── Main Content ───────────────────────────────────────────────────────────── */
.mp-main {
  flex: 1;
  margin-left: var(--mp-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

/* ─── Top Bar ────────────────────────────────────────────────────────────────── */
.mp-topbar {
  height: var(--mp-topbar-height);
  background: var(--mp-card-bg);
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0; z-index: 100;
  box-shadow: var(--mp-shadow);
}

.mp-topbar-title { flex: 1; font-weight: 600; }

.mp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-notif-btn {
  position: relative;
  color: var(--mp-text-muted);
  font-size: 18px;
  text-decoration: none;
  padding: 4px;
}

.mp-notif-btn .mp-badge {
  position: absolute;
  top: -4px; right: -4px;
  font-size: 10px;
  padding: 0 4px;
  min-width: 16px;
  height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* User Menu */
.mp-user-menu { position: relative; }

.mp-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mp-text);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--mp-radius);
  transition: background 0.15s;
}

.mp-user-btn:hover { background: var(--mp-bg); }

.mp-chevron { font-size: 10px; }

.mp-user-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-md);
  min-width: 180px;
  z-index: 300;
  display: none;
}

.mp-user-dropdown.open { display: block; }

.mp-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--mp-text);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.1s;
}

.mp-user-dropdown a:hover { background: var(--mp-bg); }

.mp-divider { border: none; border-top: 1px solid var(--mp-border); margin: 4px 0; }

/* ─── Alerts ─────────────────────────────────────────────────────────────────── */
.mp-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 24px;
  border-left: 4px solid;
  font-size: 13.5px;
}

.mp-alert ul { margin: 0; padding-left: 16px; }

.mp-alert-danger  { background: #fff5f5; border-color: var(--mp-danger);  color: #c53030; }
.mp-alert-success { background: #f0fff4; border-color: var(--mp-success); color: #276749; }
.mp-alert-warning { background: #fffbeb; border-color: var(--mp-warning); color: #744210; }
.mp-alert-info    { background: #ebf8ff; border-color: var(--mp-info);    color: #2c5282; }

/* ─── Content Area ───────────────────────────────────────────────────────────── */
.mp-content {
  flex: 1;
  padding: 24px;
}

.mp-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.mp-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mp-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-page-title i { color: var(--mp-primary); }
.mp-highlight { color: var(--mp-primary); }

.mp-product-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 720px;
}

.mp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mp-primary);
}

.mp-soft-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mp-text-muted);
}

/* ─── Stats Grid ─────────────────────────────────────────────────────────────── */
.mp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mp-stat-card {
  background: var(--mp-card-bg);
  border-radius: var(--mp-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--mp-shadow);
  border-left: 4px solid var(--mp-primary);
}

.mp-stat-revenue  { border-left-color: #4299e1; }
.mp-stat-orders   { border-left-color: #ed8936; }
.mp-stat-products { border-left-color: #9f7aea; }
.mp-stat-pending  { border-left-color: #f6c90e; }
.mp-stat-commission { border-left-color: #38b2ac; }
.mp-stat-earnings { border-left-color: var(--mp-success); }

.mp-stat-icon {
  width: 48px; height: 48px;
  background: var(--mp-primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--mp-primary);
  flex-shrink: 0;
}

.mp-stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.mp-stat-label {
  font-size: 12px;
  color: var(--mp-text-muted);
  margin-top: 2px;
}

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.mp-card {
  background: var(--mp-card-bg);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  overflow: hidden;
}

.mp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mp-border);
}

.mp-card-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.mp-card-title i { color: var(--mp-primary); }

.mp-card-link {
  font-size: 12px;
  color: var(--mp-primary);
  text-decoration: none;
}

.mp-card-link:hover { text-decoration: underline; }

.mp-card-body {
  padding: 20px;
}

.mp-product-form .mp-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.mp-product-form .mp-card-header {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.95));
}

.mp-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--mp-border);
  background: #fafafa;
}

/* ─── Tables ─────────────────────────────────────────────────────────────────── */
.mp-table-responsive { overflow-x: auto; }

.mp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.mp-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mp-text-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--mp-border);
  white-space: nowrap;
}

.mp-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mp-border);
  vertical-align: middle;
}

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

.mp-table tbody tr:hover td { background: #fafafa; }

/* ─── Status Badges ──────────────────────────────────────────────────────────── */
.mp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.mp-approval-approved, .mp-vendor-approved, .mp-payout-paid   { background: #f0fff4; color: #276749; }
.mp-approval-pending,  .mp-vendor-pending,  .mp-payout-pending { background: #fffbeb; color: #744210; }
.mp-approval-rejected, .mp-vendor-rejected, .mp-payout-failed  { background: #fff5f5; color: #c53030; }
.mp-approval-draft                                              { background: #f7fafc; color: #4a5568; }
.mp-approval-disabled, .mp-vendor-suspended                     { background: #f0f4f8; color: #718096; }
.mp-payout-processing                                           { background: #ebf8ff; color: #2c5282; }
.mp-req-approved  { background: #f0fff4; color: #276749; }
.mp-req-pending   { background: #fffbeb; color: #744210; }
.mp-req-rejected  { background: #fff5f5; color: #c53030; }

/* ─── Action Buttons ─────────────────────────────────────────────────────────── */
.mp-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.mp-icon-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--mp-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-text-muted);
  font-size: 13px;
  transition: all 0.15s;
  text-decoration: none;
}

.mp-icon-btn:hover         { background: var(--mp-bg); color: var(--mp-text); border-color: #c1cdd6; }
.mp-icon-btn.mp-btn-danger { color: var(--mp-danger); }
.mp-icon-btn.mp-btn-danger:hover { background: #fff5f5; border-color: var(--mp-danger); }
.mp-icon-btn.mp-btn-success { color: var(--mp-success); }
.mp-icon-btn.mp-btn-success:hover { background: #f0fff4; border-color: var(--mp-success); }
.mp-icon-btn.mp-btn-warning { color: var(--mp-warning); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--mp-radius);
  border: 1px solid transparent;
  background: #fff;
  color: var(--mp-text);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,125,210,.14);
}

.btn-primary,
.mp-btn-primary {
  background: var(--mp-primary);
  color: #fff !important;
  border-color: var(--mp-primary);
}

.btn-primary:hover,
.mp-btn-primary:hover { background: var(--mp-primary-dark); border-color: var(--mp-primary-dark); }

.btn-secondary,
.btn-light {
  background: #fff;
  color: var(--mp-text);
  border-color: var(--mp-border);
}

.btn-secondary:hover,
.btn-light:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--mp-text);
}

.btn-success {
  background: #f0fff4;
  color: #166534;
  border-color: rgba(34, 197, 94, 0.28);
}

.btn-success:hover {
  background: var(--mp-success);
  border-color: var(--mp-success);
  color: #fff;
}

.btn-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.32);
}

.btn-warning:hover {
  background: var(--mp-warning);
  border-color: var(--mp-warning);
  color: #1f2937;
}

.btn-danger {
  background: #fff5f5;
  color: #b91c1c;
  border-color: rgba(220, 53, 69, 0.28);
}

.btn-danger:hover {
  background: var(--mp-danger);
  border-color: var(--mp-danger);
  color: #fff;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  background: transparent;
}

.btn-outline-primary {
  color: var(--mp-primary);
  border-color: rgba(45,125,210,.36);
}

.btn-outline-primary:hover {
  background: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--mp-text);
  border-color: var(--mp-border);
}

.btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--mp-text);
}

.btn-outline-danger {
  color: var(--mp-danger);
  border-color: rgba(220, 53, 69, 0.34);
}

.btn-outline-danger:hover {
  background: var(--mp-danger);
  border-color: var(--mp-danger);
  color: #fff;
}

.btn-link {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--mp-primary);
  font-weight: 600;
}

.btn-link:hover {
  color: var(--mp-primary-dark);
  transform: none;
}

.btn-sm {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-lg,
.mp-btn-lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
}

.w-100 {
  width: 100%;
}

.text-muted {
  color: var(--mp-text-muted);
}

.small {
  font-size: 85%;
}

.text-end {
  text-align: right;
}

.p-0 {
  padding: 0 !important;
}

.mp-section-stack {
  display: grid;
  gap: 18px;
}

.mp-split-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mp-product-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mp-product-summary-copy {
  min-width: 0;
}

.mp-product-thumbnail {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-text-muted);
  flex-shrink: 0;
}

.mp-product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-product-thumbnail.is-empty {
  color: #94a3b8;
}

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.mp-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--mp-text);
}

.mp-label.required::after {
  content: ' *';
  color: var(--mp-danger);
}

.mp-input, .mp-select, .mp-textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  font-size: 13.5px;
  color: var(--mp-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.mp-input:focus, .mp-select:focus, .mp-textarea:focus {
  outline: none;
  border-color: var(--mp-primary);
  box-shadow: 0 0 0 3px rgba(45,125,210,.12);
}

.mp-textarea { resize: vertical; }

.mp-input-group {
  display: flex;
  align-items: stretch;
}

.mp-input-addon {
  padding: 9px 12px;
  background: #f7fafc;
  border: 1px solid var(--mp-border);
  border-right: none;
  border-radius: var(--mp-radius) 0 0 var(--mp-radius);
  font-size: 13px;
  color: var(--mp-text-muted);
}

.mp-input-group .mp-input { border-radius: 0 var(--mp-radius) var(--mp-radius) 0; }

.mp-char-count { font-size: 11px; color: var(--mp-text-muted); text-align: right; margin-top: 3px; }

.mp-form-feedback {
  margin-bottom: 16px;
}

/* ─── Upload Zone ────────────────────────────────────────────────────────────── */
.mp-upload-zone {
  border: 2px dashed var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.mp-upload-zone:hover { border-color: var(--mp-primary); }

.mp-upload-zone.drag-over {
  border-color: var(--mp-primary);
  background: rgba(48, 112, 246, 0.06);
  box-shadow: 0 0 0 4px rgba(48, 112, 246, 0.12);
}

.mp-upload-zone-lg {
  padding: 24px 18px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.mp-upload-preview {
  width: 80px; height: 80px;
  border-radius: var(--mp-radius);
  background: var(--mp-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  overflow: hidden;
}

.mp-upload-preview img { width: 100%; height: 100%; object-fit: cover; }

.mp-banner-preview { width: 100%; height: 60px; }

.mp-file-input { display: none; }

/* Image Preview Grid */
.mp-image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mp-img-thumb-preview, .mp-img-thumb {
  width: 70px; height: 70px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--mp-border);
}

.mp-img-thumb-preview img, .mp-img-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.mp-img-cover { border-color: var(--mp-primary); }

.mp-img-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--mp-primary);
  color: #fff;
  font-size: 10px;
  text-align: center;
  padding: 2px;
}

.mp-sticky-stack {
  position: sticky;
  top: calc(var(--mp-topbar-height) + 20px);
}

.mp-media-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbff;
  margin-bottom: 16px;
}

.mp-media-summary-count {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.mp-media-card {
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mp-media-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.mp-media-card.is-cover {
  border-color: var(--mp-primary);
  box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.14);
}

.mp-media-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
}

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

.mp-media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}

.mp-media-kind {
  font-size: 11px;
  font-weight: 600;
  color: var(--mp-text-muted);
}

.mp-cover-toggle {
  border: 1px solid var(--mp-border);
  background: #fff;
  color: var(--mp-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mp-cover-toggle:hover {
  border-color: var(--mp-primary);
  color: var(--mp-primary);
}

.mp-media-card.is-cover .mp-cover-toggle {
  background: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #fff;
}

.mp-upload-progress {
  margin-top: 14px;
  margin-bottom: 14px;
}

.mp-upload-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.mp-upload-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mp-primary), #60a5fa);
  transition: width 0.2s ease;
}

.mp-upload-progress-text {
  margin-top: 8px;
  font-size: 12px;
  color: var(--mp-text-muted);
}

.mp-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--mp-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--mp-text-muted);
}

.mp-product-type-shell {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.8fr);
  gap: 20px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.95));
}

.mp-product-type-copy h2 {
  margin: 6px 0 10px;
  font-size: 24px;
}

.mp-product-type-copy p {
  margin: 0;
  color: var(--mp-text-muted);
  line-height: 1.6;
}

.mp-product-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mp-product-type-option {
  margin: 0;
}

.mp-product-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-product-type-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 156px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mp-product-type-card i {
  font-size: 22px;
  color: var(--mp-primary);
}

.mp-product-type-card strong {
  font-size: 16px;
}

.mp-product-type-card small {
  color: var(--mp-text-muted);
  line-height: 1.5;
}

.mp-product-type-option input:checked + .mp-product-type-card {
  border-color: var(--mp-primary);
  box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.14), 0 20px 45px rgba(45, 125, 210, 0.16);
  transform: translateY(-2px);
}

.mp-product-workspace {
  display: grid;
  gap: 18px;
}

.mp-form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  background: rgba(255,255,255,.9);
  position: sticky;
  top: 12px;
  z-index: 4;
}

.mp-form-tab {
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: #fff;
  color: var(--mp-text-muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}

.mp-form-tab.active,
.mp-form-tab:hover {
  background: var(--mp-primary);
  color: #fff;
  border-color: var(--mp-primary);
}

.mp-form-panel {
  display: grid;
  gap: 16px;
}

.mp-form-panel[hidden] {
  display: none;
}

.mp-form-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  background: linear-gradient(135deg, rgba(239,246,255,.92), rgba(248,250,252,.96));
}

.mp-form-submit-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-form-submit-copy span {
  color: var(--mp-text-muted);
  font-size: 13px;
}

.mp-form-submit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mp-dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mp-inline-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
}

.mp-inline-check label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.mp-inline-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.mp-combination-picker {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.mp-combination-group {
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(203, 213, 225, 0.8);
}

.mp-combination-group h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.mp-attribute-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-attribute-chip {
  margin: 0;
}

.mp-attribute-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-attribute-chip span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: #fff;
  cursor: pointer;
  transition: all .18s ease;
}

.mp-attribute-chip input:checked + span {
  background: rgba(45, 125, 210, 0.1);
  color: var(--mp-primary);
  border-color: rgba(45, 125, 210, 0.6);
}

.mp-combination-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.mp-combination-empty {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.85);
  color: var(--mp-text-muted);
  background: rgba(248,250,252,.85);
}

.mp-combination-table td .mp-input {
  min-width: 110px;
}

.mp-pack-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mp-pack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 48px;
  gap: 12px;
  align-items: center;
}

/* ─── Modals ─────────────────────────────────────────────────────────────────── */
.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-modal[hidden] { display: none; }

.mp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.mp-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow-md);
  width: 100%;
  max-width: 500px;
  margin: 16px;
  overflow: hidden;
}

.mp-modal-lg { max-width: 700px; }

.mp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mp-border);
}

.mp-modal-title { font-size: 16px; font-weight: 600; margin: 0; }
.mp-modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--mp-text-muted); }
.mp-modal-body  { padding: 20px; }
.mp-modal-footer { padding: 16px 20px; border-top: 1px solid var(--mp-border); display: flex; justify-content: flex-end; gap: 8px; }

/* ─── Filter / Tabs ──────────────────────────────────────────────────────────── */
.mp-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.mp-tab-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--mp-border);
  background: #fff;
  color: var(--mp-text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
  cursor: pointer;
}

.mp-tab-btn:hover, .mp-tab-btn.active {
  background: var(--mp-primary);
  color: #fff;
  border-color: var(--mp-primary);
}

/* ─── Pagination ─────────────────────────────────────────────────────────────── */
.mp-pagination-wrap {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mp-page-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--mp-border);
  border-radius: 6px;
  color: var(--mp-text);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
}

.mp-page-btn:hover, .mp-page-btn.active {
  background: var(--mp-primary);
  color: #fff;
  border-color: var(--mp-primary);
}

/* ─── Orders Mini ────────────────────────────────────────────────────────────── */
.mp-order-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--mp-border);
}

.mp-order-mini-row:last-child { border-bottom: none; }

.mp-order-ref { font-weight: 600; display: block; }
.mp-order-customer { font-size: 12px; color: var(--mp-text-muted); }
.mp-order-amount { font-weight: 600; display: block; }

/* ─── Notifications ──────────────────────────────────────────────────────────── */
.mp-notif-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mp-border);
}

.mp-notif-item:last-child { border-bottom: none; }
.mp-notif-unread { background: #fafcff; }

.mp-notif-icon { font-size: 20px; flex-shrink: 0; padding-top: 2px; }
.mp-notif-title { font-weight: 600; font-size: 13.5px; }
.mp-notif-message { font-size: 13px; color: var(--mp-text-muted); margin-top: 2px; }
.mp-notif-date { margin-top: 4px; }

/* ─── Staff ──────────────────────────────────────────────────────────────────── */
.mp-staff-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mp-border);
  gap: 16px;
  flex-wrap: wrap;
}

.mp-staff-info { display: flex; align-items: center; gap: 14px; }

.mp-staff-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--mp-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.mp-staff-name { font-weight: 600; font-size: 13.5px; }
.mp-staff-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mp-role-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--mp-primary-light);
  color: var(--mp-primary);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

/* ─── Permissions ────────────────────────────────────────────────────────────── */
.mp-perms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.mp-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.mp-toggle-switch {
  position: relative;
  width: 40px; height: 22px;
  flex-shrink: 0;
}

.mp-toggle-label input { display: none; }

.mp-toggle-switch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 11px;
  transition: background 0.2s;
}

.mp-toggle-switch::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.mp-toggle-label input:checked + .mp-toggle-switch::before { background: var(--mp-primary); }
.mp-toggle-label input:checked + .mp-toggle-switch::after  { transform: translateX(18px); }

.mp-toggle-text { font-size: 13px; }

/* ─── Collapsible Sections ───────────────────────────────────────────────────── */
.mp-collapsible { overflow: hidden; transition: max-height 0.3s ease; }
.mp-collapsed   { max-height: 0 !important; padding: 0 !important; }

/* ─── Info Box ───────────────────────────────────────────────────────────────── */
.mp-info-box {
  background: var(--mp-primary-light);
  border: 1px solid #bee3f8;
  border-radius: var(--mp-radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #2b6cb0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-info-box a { color: var(--mp-primary); }

/* ─── Rejection Note ─────────────────────────────────────────────────────────── */
.mp-rejection-note {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: var(--mp-radius);
  padding: 12px;
  font-size: 13px;
  color: #c53030;
}

/* ─── Quick Actions ──────────────────────────────────────────────────────────── */
.mp-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--mp-text);
}

.mp-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.mp-quick-btn {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--mp-text);
  transition: all 0.2s;
  display: block;
  box-shadow: var(--mp-shadow);
}

.mp-quick-btn:hover {
  border-color: var(--mp-primary);
  box-shadow: 0 0 0 3px rgba(45,125,210,.12);
  color: var(--mp-primary);
}

.mp-quick-btn i {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--mp-primary);
}

.mp-quick-btn span { font-size: 13px; font-weight: 500; }

/* ─── Empty States ───────────────────────────────────────────────────────────── */
.mp-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--mp-text-muted);
  gap: 12px;
  text-align: center;
}

.mp-empty-state-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--mp-text-muted);
}

/* ─── Sidebar Overlay (mobile) ───────────────────────────────────────────────── */
.mp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .mp-sidebar {
    transform: translateX(-100%);
  }

  .mp-sidebar.open {
    transform: translateX(0);
  }

  .mp-sidebar-overlay.open {
    display: block;
  }

  .mp-main {
    margin-left: 0;
  }

  .mp-sidebar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: none;
    border: 1px solid var(--mp-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: var(--mp-text);
  }

  .mp-content { padding: 16px; }
}

/* ─── UI Refresh Layer ──────────────────────────────────────────────────────── */
.mp-vendor-dashboard {
  background:
    radial-gradient(circle at top left, rgba(45,125,210,.12), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.mp-sidebar {
  background:
    linear-gradient(180deg, rgba(8,22,46,.98) 0%, rgba(12,28,58,.98) 45%, rgba(20,39,74,.98) 100%),
    radial-gradient(circle at top, rgba(93, 141, 255, .16), transparent 34%);
  box-shadow: 24px 0 60px rgba(8, 22, 46, .24);
}

.mp-sidebar-header,
.mp-sidebar-vendor,
.mp-sidebar-footer {
  border-color: rgba(255,255,255,.09);
}

.mp-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(45,125,210,.28);
}

.mp-nav-link {
  margin: 3px 12px;
  padding: 12px 14px;
  border-radius: 12px;
}

.mp-nav-item.active .mp-nav-link,
.mp-nav-link:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(45,125,210,.2));
}

.mp-main {
  position: relative;
}

.mp-topbar {
  height: 72px;
  padding: 0 28px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.mp-topbar-title {
  font-size: 1rem;
  color: #334155;
}

.mp-content {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px;
}

.mp-alert {
  margin: 18px auto 0;
  width: min(100%, 1440px);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
}

.mp-page-header {
  margin-bottom: 26px;
}

.mp-page-title {
  font-size: clamp(1.7rem, 1.2rem + 1vw, 2.25rem);
  letter-spacing: -.03em;
}

.mp-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mp-stats-grid {
  gap: 18px;
}

.mp-stat-card {
  min-height: 124px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, .9);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
  position: relative;
  overflow: hidden;
}

.mp-stat-card::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .08);
}

.mp-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.mp-card {
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15,23,42,.07);
  background: rgba(255,255,255,.96);
}

.mp-card-header,
.mp-card-footer {
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
}

.mp-orders-mini {
  display: flex;
  flex-direction: column;
}

.mp-order-mini-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--mp-border);
}

.mp-order-mini-row:hover {
  background: rgba(248,250,252,.75);
}

.mp-order-mini-info,
.mp-order-mini-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-order-ref {
  font-weight: 700;
  color: #0f172a;
}

.mp-order-amount {
  font-weight: 700;
  color: var(--mp-primary);
}

.mp-status-paid,
.mp-status-completed,
.mp-status-approved {
  background: #f0fff4;
  color: #166534;
}

.mp-status-pending,
.mp-status-awaiting,
.mp-status-processing {
  background: #fffbeb;
  color: #92400e;
}

.mp-status-unpaid,
.mp-status-rejected,
.mp-status-cancelled {
  background: #fff5f5;
  color: #b91c1c;
}

.mp-quick-actions {
  margin-top: 8px;
}

.mp-quick-actions-grid {
  gap: 14px;
}

.mp-quick-btn {
  border-radius: 18px;
  padding: 22px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
}

.mp-quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(45,125,210,.12);
}

.mp-empty-state,
.mp-empty-state-page {
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(248,250,252,.96));
}

@media (max-width: 991.98px) {
  .mp-content,
  .mp-alert {
    width: 100%;
  }

  .mp-sticky-stack {
    position: static;
  }

  .mp-product-type-shell {
    grid-template-columns: 1fr;
  }

  .mp-product-type-grid,
  .mp-dimension-grid,
  .mp-split-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-form-submit-bar,
  .mp-combination-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .mp-topbar {
    padding: 0 16px;
  }

  .mp-content {
    padding: 18px 16px 28px;
  }

  .mp-stats-grid {
    grid-template-columns: 1fr;
  }

  .mp-page-actions {
    width: 100%;
  }

  .mp-page-actions .mp-btn-primary {
    width: 100%;
    justify-content: center;
  }

  .mp-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-product-type-grid,
  .mp-dimension-grid,
  .mp-pack-row,
  .mp-split-form-grid {
    grid-template-columns: 1fr;
  }

  .mp-form-tabs {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .mp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-page-header { flex-direction: column; align-items: flex-start; }
  .mp-media-grid { grid-template-columns: 1fr; }
}

/* ─── Tooltip ────────────────────────────────────────────────────────────────── */
.mp-tooltip-trigger { cursor: pointer; position: relative; }

.mp-tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  max-width: 250px;
  white-space: normal;
}

.mp-tooltip-trigger:hover::after { opacity: 1; }
