/* ============================================================
   VEDIK HAAT — VENDOR PANEL STYLESHEET
   ============================================================ */

/* ── Vendor Panel Layout ── */
.vp-body {
  background: #f5f0ea;
  min-height: 100vh;
}

.vp-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
  max-width: 1600px;
  margin: 0 auto;
}

/* ── Top Bar ── */
.vp-topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,253,249,.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(42,22,7,.06);
}

.vp-topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(14px,3vw,24px);
  height: 60px;
  max-width: 1600px;
  margin: 0 auto;
}

.vp-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.vp-topbar-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.vp-topbar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.vp-topbar-title span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.vp-topbar-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
  flex-shrink: 0;
}

.vp-topbar-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.vp-topbar-search input {
  width: 100%;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  padding: 0 36px 0 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}

.vp-topbar-search input:focus {
  border-color: var(--saffron);
  background: #fff;
}

.vp-topbar-search i {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.vp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.vp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mid);
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  position: relative;
}

.vp-icon-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.vp-icon-btn .vp-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--saffron);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s;
  margin-left: 4px;
}

.vp-user-btn:hover {
  border-color: var(--saffron);
}

.vp-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--saffron-dark);
  flex-shrink: 0;
  overflow: hidden;
}

.vp-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-user-info strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.vp-user-info small {
  font-size: 10.5px;
  color: var(--muted);
}

/* ── Sidebar ── */
.vp-sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
  flex-shrink: 0;
}

.vp-sidebar::-webkit-scrollbar { width: 3px; }
.vp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 3px;
}

.vp-sidebar-inner {
  padding: 16px 12px 40px;
}

.vp-nav-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(185, 185, 185);
  padding: 8px 10px 8px;
}

.vp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 11.5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, backdrop-filter 0.15s, box-shadow 0.15s;
    margin-bottom: 2px;
    white-space: nowrap;
}

.vp-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.vp-nav-item:hover {
  background: rgba(255, 170, 113, 0.2);
  backdrop-filter: blur(10px);       
  -webkit-backdrop-filter: blur(10px);       
  border: 1px solid rgba(255, 255, 255, 0.3);   
  box-shadow: 0 4px 12px rgba(255, 170, 113, 0.2);   
  color: var(--ink);                                   
}

.vp-nav-item.active {
  background: var(--saffron);
  color: #fff;
  font-weight: 600;
}

.vp-nav-item .vp-nav-badge {
  margin-left: auto;
  background: var(--saffron);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.vp-nav-item.active .vp-nav-badge {
  background: rgba(255,255,255,.25);
}

.vp-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* ── Main Content ── */
.vp-main {
  padding: clamp(20px,3vw,32px) clamp(16px,3vw,28px);
  min-width: 0;
}

/* ── Page Header ── */
.vp-page-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px,3vw,28px);
  flex-wrap: wrap;
}

.vp-page-hdr-left h1 {
  font-size: clamp(20px,3vw,26px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.vp-page-hdr-left h1 em {
  color: var(--saffron);
  font-style: normal;
}

.vp-page-hdr-left p {
  font-size: 13px;
  color: var(--muted);
}

.vp-page-hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Stat Cards ── */
.vp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(12px,2vw,18px);
  margin-bottom: clamp(20px,3vw,28px);
}

.vp-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(16px,2.5vw,22px);
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.vp-stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.vp-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 16px 16px 0 0;
}

.vp-stat-card.green::before { background: linear-gradient(90deg, var(--forest), var(--forest-mid)); }
.vp-stat-card.blue::before  { background: linear-gradient(90deg, #2980b9, #3498db); }
.vp-stat-card.red::before   { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.vp-stat-card.gold::before  { background: linear-gradient(90deg, var(--gold), #f0c040); }

.vp-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.vp-stat-icon.saffron { background: var(--saffron-light); color: var(--saffron); }
.vp-stat-icon.green   { background: var(--forest-light); color: var(--forest); }
.vp-stat-icon.blue    { background: #EBF5FB; color: #2980b9; }
.vp-stat-icon.red     { background: #FDEDEC; color: #c0392b; }
.vp-stat-icon.gold    { background: var(--gold-light); color: var(--gold); }

.vp-stat-value {
  font-size: clamp(22px,3vw,28px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 5px;
}

.vp-stat-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.vp-stat-change {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.vp-stat-change.up   { background: var(--forest-light); color: var(--forest); }
.vp-stat-change.down { background: #FDEDEC; color: #c0392b; }

/* ── Card ── */
.vp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: clamp(16px,2.5vw,22px);
}

.vp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  flex-wrap: wrap;
}

.vp-card-head h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vp-card-head h3 i {
  color: var(--saffron);
  font-size: 14px;
}

.vp-card-body {
  padding: 20px;
}

/* ── Tables ── */
.vp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 600px;
}

.vp-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  white-space: nowrap;
}

.vp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0ece5;
  color: var(--ink-mid);
  vertical-align: middle;
}

.vp-table tr:last-child td {
  border-bottom: none;
}

.vp-table tr:hover td {
  background: #faf7f3;
}

.vp-table .order-id {
  font-weight: 700;
  color: var(--saffron);
  font-size: 12.5px;
}

.vp-table .product-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-table .product-thumb img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.vp-table .product-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.vp-table .product-sku {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Status Badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pending    { background: #FEF9E7; color: #B7770D; }
.status-confirmed  { background: #EBF5FB; color: #2471A3; }
.status-packed     { background: #F0F3FA; color: #5D6D7E; }
.status-shipped    { background: #EAF6FF; color: #1A6EAB; }
.status-delivered  { background: var(--forest-light); color: var(--forest); }
.status-cancelled  { background: #FDEDEC; color: #922B21; }
.status-returned   { background: #FEF5E7; color: #935116; }
.status-low-stock  { background: #FEF9E7; color: #B7770D; }
.status-in-stock   { background: var(--forest-light); color: var(--forest); }
.status-out-stock  { background: #FDEDEC; color: #922B21; }
.status-approved   { background: var(--forest-light); color: var(--forest); }
.status-rejected   { background: #FDEDEC; color: #922B21; }
.status-processing { background: #F0F3FA; color: #5D6D7E; }
.status-paid       { background: var(--forest-light); color: var(--forest); }
.status-draft      { background: #f0ece5; color: var(--muted); }

/* ── Action Buttons ── */
.vp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  min-height: 40px;
  white-space: nowrap;
}

.vp-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.vp-btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  box-shadow: 0 4px 14px rgba(194,106,18,.25);
}

.vp-btn-forest {
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: #fff;
}

.vp-btn-outline {
  background: #fff;
  border: 1.5px solid var(--border) !important;
  color: var(--ink-mid);
}

.vp-btn-outline:hover {
  border-color: var(--saffron) !important;
  color: var(--saffron);
}

.vp-btn-danger {
  background: #FDEDEC;
  color: #922B21;
  border: 1.5px solid #F1948A !important;
}

.vp-btn-danger:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b !important;
}

.vp-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 32px;
  border-radius: 8px;
}

.vp-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* ── Forms ── */
.vp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.vp-form-grid.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.vp-form-grid.cols-1 {
  grid-template-columns: 1fr;
}

.vp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vp-field.full {
  grid-column: 1 / -1;
}

.vp-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mid);
}

.vp-label .req {
  color: #c0392b;
  margin-left: 2px;
}

.vp-input,
.vp-select,
.vp-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  min-height: 42px;
}

.vp-input:focus,
.vp-select:focus,
.vp-textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(194,106,18,.08);
}

.vp-input.error,
.vp-select.error,
.vp-textarea.error {
  border-color: #c0392b;
}

.vp-input-hint {
  font-size: 11.5px;
  color: var(--muted);
}

.vp-input-error {
  font-size: 11.5px;
  color: #c0392b;
  display: none;
}

.vp-input-error.show {
  display: block;
}

.vp-textarea {
  resize: vertical;
  min-height: 100px;
}

.vp-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A7560' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

/* ── Upload zones ── */
.vp-upload-zone {
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.vp-upload-zone:hover {
  border-color: var(--saffron);
  background: var(--saffron-light);
}

.vp-upload-zone.active {
  border-color: var(--saffron);
  background: rgba(194,106,18,.05);
}

.vp-upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--saffron);
  margin: 0 auto 12px;
}

.vp-upload-zone h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.vp-upload-zone p {
  font-size: 12px;
  color: var(--muted);
}

.vp-upload-zone input[type="file"] {
  display: none;
}

/* Image preview grid */
.vp-img-preview-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.vp-img-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.vp-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-img-preview-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  border: none;
  transition: background .15s;
}

.vp-img-preview-remove:hover {
  background: #c0392b;
}

/* ── Variant Row ── */
.vp-variant-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: flex-end;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}

.vp-variant-remove {
  width: 36px;
  height: 42px;
  border: 1.5px solid #F1948A;
  background: #FDEDEC;
  color: #922B21;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .15s;
  flex-shrink: 0;
}

.vp-variant-remove:hover {
  background: #c0392b;
  color: #fff;
}

/* ── KYC Document Cards ── */
.vp-kyc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.vp-kyc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vp-kyc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--saffron-light);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.vp-kyc-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.vp-kyc-card p {
  font-size: 12px;
  color: var(--muted);
}

.vp-kyc-status {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Charts placeholder ── */
.vp-chart-wrap {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 0;
}

.vp-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: #5a7f2b4a;
    border: 1px solid #89ca36;
    opacity: 1.85;
    transition: opacity .2s;
    min-height: 4px;
    cursor: pointer;
    padding: 20px;
}

.vp-bar:hover {
  opacity: 1;
}

.vp-bar.secondary {
  background: linear-gradient(180deg, var(--forest), var(--forest-mid));
}

.vp-chart-labels {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.vp-chart-labels span {
  flex: 1;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

.vp-chart-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.vp-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-mid);
}

.vp-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

div#lowStockList {
    padding: 0px 25px !important;
}

/* ── Notification items ── */
.vp-notif-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

time {
    font-size: 13px;
}

.vp-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #f0ece5;
  transition: background .15s;
  cursor: pointer;
}

.vp-notif-item:last-child {
  border-bottom: none;
}

.vp-notif-item:hover {
  background: #faf7f3;
}

.vp-notif-item.unread {
  background: var(--cream);
}

.vp-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  flex-shrink: 0;
  margin-top: 6px;
}

.vp-notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.vp-notif-content strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.vp-notif-content p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.vp-notif-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}

/* ── Low stock progress ── */
.vp-stock-bar {
  height: 6px;
  background: #f0ece5;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}

.vp-stock-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--forest);
  transition: width .4s;
}

.vp-stock-fill.warn  { background: #E67E22; }
.vp-stock-fill.crit  { background: #c0392b; }

/* ── Timeline ── */
.vp-timeline {
  position: relative;
  padding-left: 26px;
}

.vp-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.vp-tl-item {
  position: relative;
  margin-bottom: 18px;
}

.vp-tl-item:last-child {
  margin-bottom: 0;
}

.vp-tl-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.vp-tl-dot.done {
  background: var(--forest);
  box-shadow: 0 0 0 1px var(--forest-light);
}

.vp-tl-dot.active {
  background: var(--saffron);
  box-shadow: 0 0 0 3px rgba(194,106,18,.15);
}

.vp-tl-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.vp-tl-time {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.vp-tl-note {
  font-size: 12.5px;
  color: var(--ink-mid);
  margin-top: 4px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

/* ── Invoice section ── */
.vp-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.vp-invoice-from strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.vp-invoice-from p,
.vp-invoice-to p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.vp-invoice-meta {
  text-align: right;
}

.vp-invoice-meta strong {
  font-size: 15px;
  color: var(--saffron);
}

.vp-invoice-meta p {
  font-size: 12px;
  color: var(--muted);
}

/* ── Profile sections ── */
.vp-profile-banner {
    position: relative;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 2px dashed #d9d9d9;
    margin-bottom: 0;
}

.vp-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-profile-banner-edit {
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.vp-profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -40px;
  margin-left: 20px;
  margin-bottom: 12px;
}

.vp-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  display: block;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.vp-profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--saffron-dark);
  box-shadow: var(--shadow);
}

.vp-profile-avatar-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  background: var(--saffron);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  border: 2px solid #fff;
}

/* ── Auth pages ── */
.vp-auth-body {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vp-auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px,4vw,48px) var(--pad-x);
}

.vp-auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  padding: clamp(28px,4vw,44px);
}

.vp-auth-card-wide {
  max-width: 880px;
}

.vp-auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  text-align: center;
}

.vp-auth-logo img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.vp-auth-logo h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.vp-auth-logo p {
  font-size: 13px;
  color: var(--muted);
}

.vp-auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
}

.vp-auth-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}

.vp-auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.vp-auth-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.vp-auth-footer-link a {
  color: var(--saffron);
  font-weight: 600;
  text-decoration: none;
}

.vp-auth-footer-link a:hover {
  text-decoration: underline;
}

/* ── Onboarding steps ── */
.vp-onboard-steps {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;  
}

.vp-onboard-steps::-webkit-scrollbar { display: none; }

.vp-onboard-step {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.vp-onboard-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0ece5;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: all .25s;
}

.vp-onboard-step.done .vp-onboard-step-num {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.vp-onboard-step.active .vp-onboard-step-num {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-color: var(--saffron);
  color: #fff;
  box-shadow: 0 4px 12px rgba(194,106,18,.3);
}

.vp-onboard-step-label {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.vp-onboard-step.active .vp-onboard-step-label { color: var(--saffron); }
.vp-onboard-step.done  .vp-onboard-step-label  { color: var(--forest); }

.vp-onboard-step-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
  flex-shrink: 0;
}

.vp-onboard-step.done + .vp-onboard-step .vp-onboard-step-line,
.vp-onboard-step-line.done {
  background: var(--forest);
}

/* ── Quick actions row ── */
.vp-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.vp-quick-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  cursor: pointer;
}

.vp-quick-action:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-light);
}

.vp-quick-action i {
  font-size: 15px;
  color: var(--saffron);
}

/* ── Mobile sidebar toggle ── */
.vp-sidebar-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-mid);
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color .15s;
}

.vp-sidebar-toggle:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.vp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 290;
  backdrop-filter: blur(4px);
}

.vp-sidebar-overlay.open {
  display: block;
}

/* ── Earnings summary ── */
.vp-earnings-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.vp-earn-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.vp-earn-card .vp-earn-val {
  font-size: clamp(20px,3vw,26px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.vp-earn-card .vp-earn-label {
  font-size: 12px;
  color: var(--muted);
}

.vp-earn-card.highlight {
  background: linear-gradient(135deg, #1a3008, var(--forest));
  border-color: var(--forest);
}

.vp-earn-card.highlight .vp-earn-val,
.vp-earn-card.highlight .vp-earn-label {
  color: #fff;
}



/* ══════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════════ */

.vp-chart-wrap {
  height: 180px;
  align-items: flex-end;
  gap: 5px;
  padding: 0;
}
.vp-bar {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: var(--saffron);
  border: none;
  opacity: 1;
  transition: filter .18s, transform .18s;
  min-height: 4px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.vp-bar:hover {
  filter: brightness(1.12);
  transform: scaleY(1.03);
  transform-origin: bottom;
}
.vp-bar-val {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
}
.vp-bar:hover .vp-bar-val { opacity: 1; }

/* ── Row layout helpers ── */
.vp-dash-row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
.vp-dash-row-2 { grid-template-columns: 1fr 1fr; }
.vp-dash-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.vp-dash-row .vp-card { margin-bottom: 0; }

/* ── Badge label ── */
.vp-badge-label {
  font-size: 11px;
  font-weight: 700;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ══════════════════
   REVENUE PERFORMANCE
   ══════════════════ */
.vp-perf-numbers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.vp-perf-val {
  font-size: clamp(24px,3.5vw,32px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.vp-perf-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.vp-perf-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}
.vp-perf-arrow--up   { background: var(--forest-light); color: var(--forest); }
.vp-perf-arrow--down { background: #FDEDEC; color: #c0392b; }
.vp-perf-prev {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin-bottom: 12px;
}
.vp-perf-prev strong { color: var(--ink); font-weight: 600; }

/* Progress bar */
.vp-progress-wrap { margin-bottom: 14px; }
.vp-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.vp-progress-meta span:last-child { font-weight: 700; color: var(--forest); }
.vp-progress-track {
  height: 8px;
  background: #f0ece5;
  border-radius: 10px;
  overflow: hidden;
}
.vp-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--forest), var(--forest-mid));
  width: 0;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.vp-progress-fill.saffron {
  background: linear-gradient(90deg, var(--saffron), var(--gold));
}
.vp-progress-fill.red {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
}
.vp-perf-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.vp-perf-mini { text-align: center; }
.vp-perf-mini strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.vp-perf-mini span { font-size: 11px; color: var(--muted); }

/* ══════════════════
   SETTLEMENT SUMMARY
   ══════════════════ */
.vp-settle-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--forest);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  color: #fff;
}
.vp-settle-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.vp-settle-next-label { font-size: 11px; opacity: .7; }
.vp-settle-next-date  { font-size: 14px; font-weight: 700; }
.vp-settle-next-amt   { font-size: 20px; font-weight: 700; margin-left: auto; }
.vp-settle-rows { display: flex; flex-direction: column; gap: 0; }
.vp-settle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid #f0ece5;
  color: var(--ink-mid);
}
.vp-settle-row:last-child { border-bottom: none; }
.vp-settle-row span { display: flex; align-items: center; gap: 7px; }
.vp-settle-row strong { color: var(--ink); font-weight: 700; }

/* ══════════════════
   STORE SCORE
   ══════════════════ */
.vp-score-overall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.vp-score-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.vp-score-metric:last-child { margin-bottom: 0; }
.vp-score-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.vp-score-icon.green  { background: var(--forest-light); color: var(--forest); }
.vp-score-icon.blue   { background: #EBF5FB; color: #2980b9; }
.vp-score-icon.saffron{ background: var(--saffron-light); color: var(--saffron); }
.vp-score-icon.red    { background: #FDEDEC; color: #c0392b; }
.vp-score-info { flex: 1; min-width: 0; }
.vp-score-name { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.vp-score-track {
  height: 6px;
  background: #f0ece5;
  border-radius: 10px;
  overflow: hidden;
}
.vp-score-pct {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-mid);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════
   REVENUE TREND (Canvas)
   ══════════════════ */
.vp-trend-kpis {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.vp-trend-kpi {
  background: var(--cream);
  padding: 14px 16px;
  text-align: center;
}
.vp-trend-kpi-val {
  display: block;
  font-size: clamp(16px,2.5vw,22px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.vp-trend-kpi-val.up   { color: var(--forest); }
.vp-trend-kpi-val.down { color: #c0392b; }
.vp-trend-kpi-label { font-size: 11px; color: var(--muted); }
.vp-trend-chart-outer { position: relative; width: 100%; }
.vp-trend-canvas {
  width: 100%;
  height: 220px;
  display: block;
  cursor: crosshair;
}
.vp-trend-tooltip {
  position: absolute;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12.5px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  display: none;
  z-index: 10;
  transform: translate(-50%,-110%);
}
.vp-trend-tooltip strong { display: block; font-size: 11px; opacity: .6; margin-bottom: 2px; color:#fff; }
.vp-trend-xlabels {
  display: flex;
  margin-top: 6px;
}
.vp-trend-xlabels span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

/* ══════════════════
   ORDER STATUS ANALYTICS
   ══════════════════ */
.vp-os-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.vp-os-item:last-child { margin-bottom: 0; }
.vp-os-label {
  width: 76px;
  font-size: 12.5px;
  color: var(--ink-mid);
  font-weight: 500;
  flex-shrink: 0;
}
.vp-os-track {
  flex: 1;
  height: 10px;
  background: #f0ece5;
  border-radius: 10px;
  overflow: hidden;
}
.vp-os-fill {
  height: 100%;
  border-radius: 10px;
  width: 0;
  transition: width 1s .2s cubic-bezier(.4,0,.2,1);
}
.vp-os-count {
  width: 28px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.vp-os-pct {
  width: 32px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

/* ══════════════════
   SALES VS ORDERS dual bars
   ══════════════════ */
.vp-dual-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
}
.vp-dual-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}
.vp-dual-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  width: 100%;
  justify-content: center;
  flex: 1;
}
.vp-dual-bar {
  width: 12px;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: filter .18s;
  cursor: pointer;
}
.vp-dual-bar:hover { filter: brightness(1.15); }
.vp-dual-bar.rev { background: linear-gradient(180deg, var(--saffron), var(--gold)); }
.vp-dual-bar.ord { background: linear-gradient(180deg, var(--forest), var(--forest-mid)); }
.vp-dual-label {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding-top: 4px;
}
.vp-dual-legend {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ══════════════════
   TOP PRODUCTS TABLE
   ══════════════════ */
.vp-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
}
.vp-rank-1 { background: #FFF0B3; color: #7A5C00; }
.vp-rank-2 { background: #F0F0F0; color: #555; }
.vp-rank-3 { background: #FFE8D9; color: #7A2E00; }
.vp-rank-n { background: var(--cream); color: var(--muted); }
.vp-mini-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}
.vp-mini-trend.up   { background: var(--forest-light); color: var(--forest); }
.vp-mini-trend.down { background: #FDEDEC; color: #c0392b; }

/* ══════════════════
   CATEGORY PERFORMANCE
   ══════════════════ */
.vp-cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.vp-cat-item:last-child { margin-bottom: 0; }
.vp-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.vp-cat-info { flex: 1; min-width: 0; }
.vp-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.vp-cat-name span { font-size: 11.5px; font-weight: 700; color: var(--ink-mid); }
.vp-cat-track {
  height: 7px;
  background: #f0ece5;
  border-radius: 10px;
  overflow: hidden;
}
.vp-cat-fill {
  height: 100%;
  border-radius: 10px;
  width: 0;
  transition: width 1s .3s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════
   INVENTORY HEALTH
   ══════════════════ */
.vp-inv-donut {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.vp-inv-donut-svg { width: 90px; height: 90px; flex-shrink: 0; }
.vp-inv-legend { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.vp-inv-leg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.vp-inv-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  margin-right: 6px;
}
.vp-inv-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.vp-inv-stat-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.vp-inv-stat-box strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.vp-inv-stat-box span { font-size: 11px; color: var(--muted); }

/* ══════════════════
   CUSTOMER INSIGHTS
   ══════════════════ */
.vp-cust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.vp-cust-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.vp-cust-box strong {
  display: block;
  font-size: clamp(18px,3vw,24px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.vp-cust-box span { font-size: 11.5px; color: var(--muted); }
.vp-cust-box.highlight strong { color: var(--forest); }
.vp-cust-aov {
  background: linear-gradient(135deg, var(--saffron-light), #fff);
  border: 1px solid rgba(194,106,18,.18);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vp-cust-aov-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--saffron-dark);
}
.vp-cust-aov-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vp-cust-returning {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-mid);
}
.vp-cust-ret-bar { flex: 1; height: 8px; background: #f0ece5; border-radius: 10px; overflow: hidden; }
.vp-cust-ret-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  width: 0;
  transition: width 1s .5s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════
   GEO CITIES
   ══════════════════ */
.vp-geo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.vp-geo-item:last-child { margin-bottom: 0; }
.vp-geo-rank {
  width: 22px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  flex-shrink: 0;
}
.vp-geo-info { flex: 1; min-width: 0; }
.vp-geo-city { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.vp-geo-track { height: 6px; background: #f0ece5; border-radius: 10px; overflow: hidden; }
.vp-geo-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  width: 0;
  transition: width .9s .3s cubic-bezier(.4,0,.2,1);
}
.vp-geo-amt {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.vp-geo-orders { font-size: 10.5px; color: var(--muted); }

/* ══════════════════
   WEEKLY SUMMARY
   ══════════════════ */
.vp-week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vp-week-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
}
.vp-week-box.full { grid-column: span 2; background: var(--forest-light); border-color: rgba(71,106,30,.18); }
.vp-week-box-icon { font-size: 18px; margin-bottom: 8px; color: var(--saffron); }
.vp-week-box.full .vp-week-box-icon { color: var(--forest); }
.vp-week-box strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.vp-week-box.full strong { font-size: 22px; color: var(--forest); }
.vp-week-box span { font-size: 11.5px; color: var(--muted); }
.vp-week-box.full span { color: var(--forest); opacity: .8; }
.vp-week-compare {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
}

/* ══════════════════
   ACTIVITY TIMELINE
   ══════════════════ */
.vp-act-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f0ece5;
  transition: background .12s;
  cursor: default;
}
.vp-act-item:last-child { border-bottom: none; }
.vp-act-item:hover { background: #faf7f3; }
.vp-act-left { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.vp-act-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.vp-act-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  min-height: 16px;
}
.vp-act-item:last-child .vp-act-line { display: none; }
.vp-act-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.vp-act-body strong { font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 1px; }
.vp-act-body p { font-size: 12px; color: var(--muted); line-height: 1.4; }
.vp-act-time { font-size: 10.5px; color: var(--muted); white-space: nowrap; margin-left: auto; padding-top: 3px; flex-shrink: 0; }

/* ══════════════════
   UPCOMING TASKS
   ══════════════════ */
.vp-task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece5;
}
.vp-task-item:last-child { border-bottom: none; }
.vp-task-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  transition: all .15s;
}
.vp-task-check:hover { border-color: var(--saffron); background: var(--saffron-light); }
.vp-task-check.done { border-color: var(--forest); background: var(--forest); color: #fff; }
.vp-task-body { flex: 1; min-width: 0; }
.vp-task-title { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.vp-task-sub   { font-size: 11.5px; color: var(--muted); }
.vp-task-priority {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
}
.vp-task-priority.high   { background: #FDEDEC; color: #922B21; }
.vp-task-priority.medium { background: #FEF9E7; color: #B7770D; }
.vp-task-priority.low    { background: var(--forest-light); color: var(--forest); }

/* ── Dashboard responsive overrides ── */
@media (max-width: 1200px) {
  .vp-dash-row-3 { grid-template-columns: 1fr 1fr; }
  .vp-trend-kpis { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1023px) {
  .vp-dash-row-2 { grid-template-columns: 1fr; }
  .vp-dash-row-3 { grid-template-columns: 1fr; }
  .vp-trend-kpis { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 479px) {
  .vp-trend-kpis { grid-template-columns: 1fr 1fr; }
  .vp-cust-grid  { grid-template-columns: 1fr 1fr; }
  .vp-inv-stats  { grid-template-columns: 1fr; }
  .vp-week-grid  { grid-template-columns: 1fr; }
  .vp-week-box.full { grid-column: span 1; }
}



/* ── Responsive ── */
@media (max-width: 1023px) {
  .vp-wrap {
    grid-template-columns: 1fr;
  }

  .vp-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    z-index: 295;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    width: 240px;
  }

  .vp-sidebar.open {
    transform: translateX(0);
  }

  .vp-sidebar-toggle {
    display: flex;
  }

  .vp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .vp-form-grid {
    grid-template-columns: 1fr;
  }

  .vp-form-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .vp-variant-row {
    grid-template-columns: 1fr 1fr;
  }

  .vp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-page-hdr {
    flex-direction: column;
    gap: 12px;
  }

  .vp-invoice-header {
    flex-direction: column;
  }

  .vp-invoice-meta {
    text-align: left;
  }

  .vp-auth-card {
    padding: clamp(20px,5vw,32px);
  }

  .vp-topbar-search {
    display: none;
  }
}

@media (max-width: 479px) {
  .vp-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .vp-quick-actions {
    gap: 8px;
  }

  .vp-quick-action span {
    display: none;
  }

  .vp-quick-action {
    padding: 10px 12px;
  }
}


.vp-sales-chart-wrap {
  position: relative;
  height: 230px;
  width: 100%;
  padding: 6px 4px;
}

.vp-sales-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── Sales Overview: premium widget (additions only) ── */
.vp-sales-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.vp-sales-stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.vp-sales-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--saffron), var(--gold));
}

.vp-sales-stat.green::before { background: linear-gradient(180deg, var(--forest), var(--forest-mid)); }

.vp-sales-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}

.vp-sales-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  font-family: 'Outfit', sans-serif;
}

.vp-sales-stat-sub {
  font-size: 11.5px;
  margin-top: 3px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vp-sales-stat-sub.up   { color: var(--forest); }
.vp-sales-stat-sub.down { color: #c0392b; }

/* Chart canvas */
.vp-sales-chart-wrap {
  position: relative;
  height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 28px 4px 6px;
}

.vp-sales-bar-col {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.vp-sales-bar {
  width: 60%;
  max-width: 38px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--saffron) 65%, var(--saffron-dark) 100%);
  position: relative;
  transition: filter .2s, transform .2s;
  cursor: pointer;
  min-height: 6px;
}

.vp-sales-bar:hover {
  filter: brightness(1.08);
  transform: scaleY(1.01);
}

.vp-sales-bar.is-best {
  background: linear-gradient(180deg, #ffd76a 0%, var(--gold) 60%, var(--saffron) 100%);
  box-shadow: 0 0 0 2px var(--gold-light);
}

.vp-sales-bar-tip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink);
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 5;
  font-family: 'Outfit', sans-serif;
}

.vp-sales-bar-tip strong {
  display: block;
  color: var(--gold-light);
  font-size: 12.5px;
}

.vp-sales-bar-col:hover .vp-sales-bar-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.vp-sales-orders-svg {
  position: absolute;
  top: 28px; left: 4px; right: 4px; bottom: 6px;
  width: calc(100% - 8px);
  height: calc(100% - 34px);
  pointer-events: none;
  overflow: visible;
}

.vp-sales-orders-line {
  fill: none;
  stroke: var(--forest);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-sales-orders-dot {
  fill: var(--forest);
  stroke: #fff;
  stroke-width: 1.5;
}

.vp-sales-badge-best {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--saffron-dark);
  background: var(--gold-light);
  padding: 1px 6px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Bottom summary row */
.vp-sales-summary {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.vp-sales-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-sales-summary-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.vp-sales-summary-icon.saffron { background: var(--saffron-light); color: var(--saffron); }
.vp-sales-summary-icon.green   { background: var(--forest-light); color: var(--forest); }

.vp-sales-summary-text .label {
  font-size: 11px;
  color: var(--muted);
}

.vp-sales-summary-text .value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 768px) {
  .vp-sales-stats { grid-template-columns: repeat(2, 1fr); }
}