.dspp-wrap .nav-tab-wrapper {
  margin-bottom: 18px;
}
.dspp-card {
  background: #fff;
  border: 1px solid #ccd0d4;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  padding: 18px;
  max-width: 1100px;
}
.dspp-grid-2 {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 18px;
  align-items: start;
}
.dspp-form input[type="text"],
.dspp-form input[type="email"],
.dspp-form input[type="password"],
.dspp-form input[type="url"],
.dspp-form input[type="number"],
.dspp-form select,
.dspp-form textarea {
  max-width: 520px;
  width: 100%;
}
.dspp-attribute-row {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dspp-attribute-row input {
  max-width: 220px;
}
.dspp-image-preview img {
  max-width: 120px;
  height: auto;
  display: block;
  margin-bottom: 8px;
  border: 1px solid #ccd0d4;
  padding: 3px;
  background: #fff;
}
.dspp-inline-form {
  display: inline-block;
  margin: 0 3px 3px 0;
}
.dspp-actions .button {
  margin-bottom: 3px;
}
.dspp-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f0f1;
}
.dspp-status-active {
  background: #d1e7dd;
  color: #0f5132;
}
.dspp-status-inactive {
  background: #fff3cd;
  color: #664d03;
}
.dspp-multi-select {
  min-width: 320px;
  min-height: 180px;
}
.dspp-select2-wrap {
  max-width: 520px;
}
.dspp-select2-wrap .select2-container {
  max-width: 520px;
  width: 100% !important;
}
.dspp-select2-wrap .select2-container--default .select2-selection--multiple {
  border-color: #8c8f94;
  min-height: 36px;
}
.dspp-select2-wrap .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}
.dspp-select2-wrap .select2-search__field {
  min-height: 24px;
}
@media (max-width: 960px) {
  .dspp-grid-2 {
    grid-template-columns: 1fr;
  }
}

.dspp-password-field {
  display: flex;
  align-items: center;
  max-width: 520px;
}
.dspp-password-field input[type="password"],
.dspp-password-field input[type="text"] {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  margin: 0;
}
.dspp-password-field .dspp-toggle-password {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  min-height: 30px;
  line-height: 1;
  padding: 0 8px;
}
.dspp-password-field .dashicons {
  font-size: 18px;
  height: 18px;
  line-height: 18px;
  width: 18px;
}
.dspp-tab-content.dspp-is-loading {
  min-height: 160px;
}
.dspp-loading {
  background: #fff;
  border: 1px solid #ccd0d4;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  padding: 20px;
}
.dspp-pagination {
  margin-top: 12px;
}
.dspp-pagination .pagination-links a,
.dspp-pagination .pagination-links span {
  margin-left: 4px;
}

.dspp-frontend-dashboard {
  margin: 24px 0;
}
.dspp-frontend-dashboard .dspp-card {
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}
.dspp-frontend-dashboard h2 {
  margin-top: 0;
}
.dspp-responsive-table {
  overflow-x: auto;
}
.dspp-frontend-dashboard .dspp-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.dspp-frontend-dashboard .dspp-table th,
.dspp-frontend-dashboard .dspp-table td {
  border: 1px solid #dcdcde;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
.dspp-frontend-dashboard .dspp-table th {
  background: #f6f7f7;
}
.dspp-frontend-dashboard input[type="number"] {
  max-width: 140px;
  width: 100%;
}
.dspp-frontend-dashboard .button,
.dspp-frontend-dashboard button.button {
  display: inline-block;
  border: 1px solid #2271b1;
  background: #2271b1;
  color: #fff;
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.dspp-frontend-dashboard .button:hover,
.dspp-frontend-dashboard button.button:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}
.dspp-notice {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-left: 4px solid #00a32a;
  background: #fff;
}
.dspp-notice-success {
  border-left-color: #00a32a;
}
.dspp-frontend-pagination {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.dspp-frontend-pagination .page-numbers {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #dcdcde;
  text-decoration: none;
  margin-right: 4px;
}
.dspp-frontend-pagination .page-numbers.current {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

/* Modern front-end distributor dashboard */
.dspp-modern-dashboard {
  --dspp-primary: #2563eb;
  --dspp-primary-dark: #1d4ed8;
  --dspp-ink: #0f172a;
  --dspp-muted: #64748b;
  --dspp-line: #e2e8f0;
  --dspp-soft: #f8fafc;
  --dspp-success: #16a34a;
  --dspp-danger: #dc2626;
  --dspp-radius: 22px;
  color: var(--dspp-ink);
  font-family: inherit;
  margin: 32px 0;
}
.dspp-modern-dashboard * {
  box-sizing: border-box;
}
.dspp-dashboard-guest {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, .14), transparent 34%), linear-gradient(135deg, #f8fafc, #eef2ff);
  border-radius: 28px;
}
.dspp-modern-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--dspp-radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
  padding: 26px;
  max-width: none;
}
.dspp-login-card {
  max-width: 520px;
  text-align: center;
}
.dspp-login-card h2,
.dspp-dashboard-hero h1,
.dspp-modern-card h2 {
  margin: 0;
  line-height: 1.15;
}
.dspp-login-card h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
}
.dspp-login-card p {
  color: var(--dspp-muted);
  margin: 0 0 22px;
}
.dspp-eyebrow {
  color: var(--dspp-primary);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.dspp-dashboard-hero {
  align-items: center;
  background: radial-gradient(circle at 20% 0%, rgba(96, 165, 250, .36), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a 52%, #2563eb);
  border-radius: 30px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px);
  position: relative;
}
.dspp-dashboard-hero::after {
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  content: '';
  height: 220px;
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
}
.dspp-dashboard-hero > * {
  position: relative;
  z-index: 1;
}
.dspp-dashboard-hero .dspp-eyebrow {
  color: #bfdbfe;
}
.dspp-dashboard-hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 10px;
}
.dspp-dashboard-hero p {
  color: #dbeafe;
  font-size: 17px;
  margin: 0;
  max-width: 720px;
}
.dspp-hero-actions {
  flex: 0 0 auto;
}
.dspp-btn,
.dspp-frontend-dashboard .dspp-btn,
.dspp-frontend-dashboard button.dspp-btn {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 12px 20px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.dspp-btn:hover,
.dspp-frontend-dashboard .dspp-btn:hover,
.dspp-frontend-dashboard button.dspp-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.dspp-btn-primary,
.dspp-frontend-dashboard .dspp-btn-primary,
.dspp-frontend-dashboard button.dspp-btn-primary {
  background: var(--dspp-primary);
  box-shadow: 0 12px 22px rgba(37, 99, 235, .22);
  color: #fff;
}
.dspp-btn-primary:hover,
.dspp-frontend-dashboard .dspp-btn-primary:hover,
.dspp-frontend-dashboard button.dspp-btn-primary:hover {
  background: var(--dspp-primary-dark);
  color: #fff;
}
.dspp-btn-light,
.dspp-frontend-dashboard .dspp-btn-light {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, .34);
}
.dspp-btn-light:hover,
.dspp-frontend-dashboard .dspp-btn-light:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}
.dspp-stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}
.dspp-stat-card {
  background: #fff;
  border: 1px solid var(--dspp-line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  padding: 20px;
}
.dspp-stat-card span {
  color: var(--dspp-muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dspp-stat-card strong {
  color: var(--dspp-ink);
  display: block;
  font-size: 32px;
  line-height: 1;
}
.dspp-dashboard-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
  margin-bottom: 22px;
}
.dspp-card-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.dspp-card-heading h2 {
  color: var(--dspp-ink);
  font-size: 24px;
}
.dspp-card-heading p,
.dspp-card-note {
  color: var(--dspp-muted);
  margin: 8px 0 0;
}
.dspp-avatar {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 18px;
  color: #fff;
  display: flex;
  flex: 0 0 58px;
  font-size: 24px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}
.dspp-detail-list {
  display: grid;
  gap: 12px;
}
.dspp-detail-list div {
  background: var(--dspp-soft);
  border: 1px solid var(--dspp-line);
  border-radius: 16px;
  padding: 14px;
}
.dspp-detail-list span {
  color: var(--dspp-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.dspp-detail-list strong {
  color: var(--dspp-ink);
  overflow-wrap: anywhere;
}
.dspp-modern-form-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.dspp-modern-form-grid label {
  color: var(--dspp-ink);
  display: block;
  font-size: 14px;
  font-weight: 800;
}
.dspp-modern-form-grid input[type="password"] {
  background: #fff;
  border: 1px solid var(--dspp-line);
  border-radius: 14px;
  box-shadow: none;
  color: var(--dspp-ink);
  display: block;
  margin-top: 7px;
  min-height: 46px;
  padding: 10px 13px;
  width: 100%;
}
.dspp-modern-form-grid input[type="password"]:focus,
.dspp-price-input:focus {
  border-color: var(--dspp-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
  outline: none;
}
.dspp-products-modern-card {
  padding: 0;
  overflow: hidden;
}
.dspp-products-heading {
  align-items: center;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--dspp-line);
  margin-bottom: 0;
  padding: 24px 26px;
}
.dspp-modern-table-wrap {
  overflow-x: auto;
}
.dspp-modern-table {
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  width: 100%;
}
.dspp-modern-table th {
  background: #f8fafc;
  border-bottom: 1px solid var(--dspp-line);
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 15px 18px;
  text-align: left;
  text-transform: uppercase;
}
.dspp-modern-table td {
  border-bottom: 1px solid var(--dspp-line);
  color: #334155;
  padding: 16px 18px;
  vertical-align: middle;
}
.dspp-modern-table tbody tr:hover td {
  background: #f8fafc;
}
.dspp-product-media {
  align-items: center;
  display: flex;
  gap: 14px;
}
.dspp-product-thumb {
  align-items: center;
  background: #eef2ff;
  border-radius: 16px;
  color: var(--dspp-primary);
  display: flex;
  flex: 0 0 64px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}
.dspp-product-thumb img {
  height: 64px;
  object-fit: cover;
  width: 64px;
}
.dspp-product-cell strong {
  color: var(--dspp-ink);
  display: block;
  margin-bottom: 4px;
}
.dspp-learn-link {
  color: var(--dspp-primary);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.dspp-learn-link:hover {
  text-decoration: underline;
}
.dspp-price-input,
.dspp-frontend-dashboard input.dspp-price-input[type="number"] {
  background: #fff;
  border: 1px solid var(--dspp-line);
  border-radius: 14px;
  color: var(--dspp-ink);
  min-height: 44px;
  padding: 8px 12px;
  width: 140px;
}
.dspp-toggle-switch {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  margin: 0;
}
.dspp-toggle-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.dspp-toggle-switch span {
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-block;
  height: 26px;
  position: relative;
  transition: background .18s ease;
  width: 48px;
}
.dspp-toggle-switch span::before {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .24);
  content: '';
  height: 20px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform .18s ease;
  width: 20px;
}
.dspp-toggle-switch input:checked + span {
  background: var(--dspp-success);
}
.dspp-toggle-switch input:checked + span::before {
  transform: translateX(22px);
}
.dspp-toggle-switch em {
  color: var(--dspp-muted);
  font-style: normal;
  font-weight: 800;
}
.dspp-empty-state {
  color: var(--dspp-muted);
  padding: 34px !important;
  text-align: center !important;
}
.dspp-bottom-actions {
  padding: 22px 26px 26px;
  text-align: right;
}
.dspp-alert {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  margin-bottom: 18px;
  padding: 15px 18px;
}
.dspp-alert p {
  margin: 0;
}
.dspp-alert-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.dspp-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.dspp-modern-dashboard .dspp-frontend-pagination {
  border-top: 1px solid var(--dspp-line);
  margin: 0;
  padding: 18px 26px 0;
}
.dspp-modern-dashboard .dspp-frontend-pagination .page-numbers {
  border: 1px solid var(--dspp-line);
  border-radius: 999px;
  color: var(--dspp-ink);
  display: inline-flex;
  min-width: 36px;
  padding: 8px 12px;
  text-decoration: none;
}
.dspp-modern-dashboard .dspp-frontend-pagination .page-numbers.current {
  background: var(--dspp-primary);
  border-color: var(--dspp-primary);
  color: #fff;
}
@media (max-width: 900px) {
  .dspp-dashboard-hero,
  .dspp-products-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .dspp-stats-grid,
  .dspp-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .dspp-modern-dashboard {
    margin: 18px 0;
  }
  .dspp-dashboard-hero,
  .dspp-modern-card {
    border-radius: 20px;
    padding: 22px;
  }
  .dspp-stats-grid,
  .dspp-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dspp-products-heading,
  .dspp-bottom-actions {
    padding: 20px;
  }
  .dspp-products-heading .dspp-btn,
  .dspp-bottom-actions .dspp-btn {
    width: 100%;
  }
}

/* Distributor front-end portal with left navigation. */
.dspp-portal-dashboard {
  --dspp-sidebar: #0f172a;
  --dspp-sidebar-soft: rgba(255, 255, 255, .08);
  --dspp-sidebar-text: #cbd5e1;
  --dspp-sidebar-active: #ffffff;
}
.dspp-portal-shell {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 680px;
}
.dspp-portal-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-radius: 30px 0 0 30px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  color: var(--dspp-sidebar-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
}
.dspp-portal-brand {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
}
.dspp-portal-brand span {
  color: #94a3b8;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.dspp-portal-brand strong {
  color: #fff;
  display: block;
  font-size: 16px;
  line-height: 1.3;
  margin-top: 3px;
}
.dspp-portal-avatar {
  align-items: center;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .32);
  color: #fff;
  display: inline-flex;
  flex: 0 0 52px;
  font-size: 22px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}
.dspp-portal-nav {
  display: grid;
  gap: 10px;
}
.dspp-portal-nav a,
.dspp-portal-logout {
  align-items: center;
  border-radius: 16px;
  color: var(--dspp-sidebar-text);
  display: flex;
  font-size: 15px;
  font-weight: 800;
  gap: 11px;
  line-height: 1;
  padding: 15px 16px;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.dspp-portal-nav a:hover,
.dspp-portal-logout:hover,
.dspp-portal-nav a.is-active {
  background: var(--dspp-sidebar-soft);
  color: var(--dspp-sidebar-active);
  transform: translateX(2px);
}
.dspp-portal-nav a.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}
.dspp-portal-nav .dashicons,
.dspp-portal-logout .dashicons {
  font-size: 19px;
  height: 19px;
  width: 19px;
}
.dspp-portal-logout {
  margin-top: auto;
}
.dspp-portal-main {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .06);
  border-left: 0;
  border-radius: 0 30px 30px 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .1);
  min-width: 0;
  padding: 30px;
}
.dspp-portal-topbar {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 24px 26px;
}
.dspp-portal-topbar h1 {
  color: var(--dspp-ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  margin: 4px 0 8px;
}
.dspp-portal-topbar p {
  color: var(--dspp-muted);
  font-size: 15px;
  margin: 0;
}
.dspp-portal-stats {
  margin-bottom: 22px;
}
.dspp-profile-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
.dspp-portal-main .dspp-modern-card,
.dspp-portal-main .dspp-products-modern-card {
  box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}
@media (max-width: 960px) {
  .dspp-portal-shell {
    grid-template-columns: 1fr;
  }
  .dspp-portal-sidebar {
    border-radius: 26px 26px 0 0;
  }
  .dspp-portal-main {
    border-left: 1px solid rgba(15, 23, 42, .06);
    border-radius: 0 0 26px 26px;
  }
  .dspp-portal-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dspp-portal-logout {
    margin-top: 14px;
  }
  .dspp-profile-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .dspp-portal-main,
  .dspp-portal-sidebar {
    padding: 18px;
  }
  .dspp-portal-topbar {
    border-radius: 20px;
    padding: 20px;
  }
  .dspp-portal-nav {
    grid-template-columns: 1fr;
  }
}

/* v1.0.8 compact distributor dashboard theme based on green/orange brand colors. */
.dspp-modern-dashboard {
  --dspp-primary: #0b6b22;
  --dspp-primary-dark: #064f18;
  --dspp-accent: #f28c22;
  --dspp-ink: #253126;
  --dspp-muted: #606a61;
  --dspp-line: #e2e8df;
  --dspp-soft: #f7fbf6;
  --dspp-success: #0b6b22;
  --dspp-danger: #c2410c;
  --dspp-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  margin: 20px auto;
  max-width: 1180px;
}
.dspp-portal-dashboard {
  --dspp-sidebar: #064f18;
  --dspp-sidebar-soft: rgba(255, 255, 255, .12);
  --dspp-sidebar-text: #d9eadc;
  --dspp-sidebar-active: #ffffff;
}
.dspp-portal-shell {
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 560px;
}
.dspp-portal-sidebar {
  background: linear-gradient(180deg, #064f18 0%, #0b3f18 100%);
  border-radius: 22px 0 0 22px;
  padding: 18px;
}
.dspp-portal-brand {
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
}
.dspp-portal-brand strong {
  font-size: 14px;
}
.dspp-portal-avatar {
  background: linear-gradient(135deg, #0b6b22, #f28c22);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(11, 107, 34, .28);
  flex-basis: 44px;
  font-size: 18px;
  height: 44px;
  width: 44px;
}
.dspp-portal-nav {
  gap: 8px;
}
.dspp-portal-nav a,
.dspp-portal-logout {
  border-radius: 13px;
  font-size: 14px;
  gap: 9px;
  padding: 12px 13px;
}
.dspp-portal-nav a.is-active {
  color: #064f18;
}
.dspp-portal-nav a.is-active .dashicons {
  color: #f28c22;
}
.dspp-portal-main {
  background: #f7fbf6;
  border-radius: 0 22px 22px 0;
  padding: 20px;
}
.dspp-portal-topbar {
  border-radius: 18px;
  margin-bottom: 16px;
  padding: 16px 18px;
}
.dspp-eyebrow {
  color: var(--dspp-primary);
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 5px;
}
.dspp-portal-topbar h1 {
  font-size: clamp(22px, 2.3vw, 30px);
  margin: 2px 0 5px;
}
.dspp-portal-topbar p,
.dspp-card-heading p,
.dspp-card-note {
  font-size: 13px;
}
.dspp-stats-grid {
  gap: 12px;
  margin-bottom: 16px;
}
.dspp-stat-card {
  border-radius: 16px;
  padding: 14px 15px;
}
.dspp-stat-card span {
  font-size: 11px;
  margin-bottom: 6px;
}
.dspp-stat-card strong {
  color: var(--dspp-primary);
  font-size: 24px;
}
.dspp-modern-card {
  border-radius: 18px;
  padding: 20px;
}
.dspp-products-modern-card {
  padding: 0;
}
.dspp-products-heading {
  background: linear-gradient(180deg, #ffffff, #f3faf5);
  padding: 16px 18px;
}
.dspp-card-heading h2 {
  color: var(--dspp-primary-dark);
  font-size: 21px;
}
.dspp-btn,
.dspp-frontend-dashboard .dspp-btn,
.dspp-frontend-dashboard button.dspp-btn {
  font-size: 14px;
  min-height: 40px;
  padding: 10px 18px;
}
.dspp-btn-primary,
.dspp-frontend-dashboard .dspp-btn-primary,
.dspp-frontend-dashboard button.dspp-btn-primary {
  background: var(--dspp-primary);
  box-shadow: 0 10px 20px rgba(11, 107, 34, .2);
}
.dspp-btn-primary:hover,
.dspp-frontend-dashboard .dspp-btn-primary:hover,
.dspp-frontend-dashboard button.dspp-btn-primary:hover {
  background: var(--dspp-primary-dark);
}
.dspp-modern-table {
  min-width: 720px;
}
.dspp-modern-table th {
  background: #f3faf5;
  color: #415043;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 11px 14px;
}
.dspp-modern-table td {
  color: #374238;
  font-size: 13px;
  padding: 11px 14px;
}
.dspp-modern-table tbody tr:hover td {
  background: #fbfff8;
}
.dspp-compact-product-table th:nth-child(2),
.dspp-compact-product-table td:nth-child(2) {
  text-align: center;
  width: 92px;
}
.dspp-compact-product-table th:nth-child(3),
.dspp-compact-product-table td:nth-child(3),
.dspp-compact-product-table th:nth-child(4),
.dspp-compact-product-table td:nth-child(4) {
  width: 135px;
}
.dspp-product-title-cell strong {
  color: var(--dspp-primary-dark);
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 3px;
}
.dspp-product-thumb {
  background: #e9f6ec;
  border: 1px solid #cdebd4;
  border-radius: 12px;
  color: var(--dspp-primary);
  flex-basis: 54px;
  height: 54px;
  margin: 0 auto;
  width: 54px;
}
.dspp-product-thumb img {
  height: 54px;
  width: 54px;
}
.dspp-learn-link {
  color: var(--dspp-accent);
  font-size: 12px;
}
.dspp-base-price {
  color: var(--dspp-primary-dark);
  font-weight: 800;
}
.dspp-price-input,
.dspp-frontend-dashboard input.dspp-price-input[type="number"] {
  border-radius: 10px;
  font-size: 13px;
  min-height: 38px;
  padding: 7px 10px;
  width: 112px;
}
.dspp-modern-form-grid input[type="password"]:focus,
.dspp-price-input:focus {
  border-color: var(--dspp-primary);
  box-shadow: 0 0 0 3px rgba(11, 107, 34, .12);
}
.dspp-toggle-switch {
  gap: 8px;
}
.dspp-toggle-switch span {
  height: 22px;
  width: 42px;
}
.dspp-toggle-switch span::before {
  height: 16px;
  width: 16px;
}
.dspp-toggle-switch input:checked + span {
  background: var(--dspp-primary);
}
.dspp-toggle-switch input:checked + span::before {
  transform: translateX(20px);
}
.dspp-toggle-switch em {
  color: var(--dspp-primary-dark);
  font-size: 12px;
}
.dspp-bottom-actions {
  padding: 16px 18px 18px;
}
.dspp-modern-dashboard .dspp-frontend-pagination {
  padding: 14px 18px 0;
}
.dspp-modern-dashboard .dspp-frontend-pagination .page-numbers.current {
  background: var(--dspp-primary);
  border-color: var(--dspp-primary);
}
.dspp-profile-layout {
  gap: 16px;
}
@media (max-width: 960px) {
  .dspp-portal-sidebar {
    border-radius: 22px 22px 0 0;
  }
  .dspp-portal-main {
    border-radius: 0 0 22px 22px;
  }
}

/* v1.0.9 distributor profile password visibility + reset link. */
.dspp-login-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dspp-forgot-link {
  color: var(--dspp-primary-dark, #064f19);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.dspp-forgot-link:hover {
  color: var(--dspp-accent, #f58220);
  text-decoration: underline;
}
.dspp-modern-form-grid .dspp-frontend-password-field {
  align-items: stretch;
  display: flex;
  margin-top: 7px;
  max-width: none;
  width: 100%;
}
.dspp-modern-form-grid .dspp-frontend-password-field input[type="password"],
.dspp-modern-form-grid .dspp-frontend-password-field input[type="text"] {
  background: #fff;
  border: 1px solid var(--dspp-line, #d9e7dc);
  border-radius: 12px 0 0 12px;
  box-shadow: none;
  color: var(--dspp-ink, #1f2933);
  display: block;
  flex: 1 1 auto;
  font-size: 13px;
  margin: 0;
  min-height: 40px;
  padding: 8px 12px;
  width: 100%;
}
.dspp-modern-form-grid .dspp-frontend-password-field input[type="password"]:focus,
.dspp-modern-form-grid .dspp-frontend-password-field input[type="text"]:focus {
  border-color: var(--dspp-primary, #0b6b22);
  box-shadow: 0 0 0 3px rgba(11, 107, 34, .12);
  outline: none;
  position: relative;
  z-index: 2;
}
.dspp-frontend-password-field .dspp-toggle-password {
  align-items: center;
  background: #f3fbf5;
  border: 1px solid var(--dspp-line, #d9e7dc);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  color: var(--dspp-primary-dark, #064f19);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  margin: 0;
  min-height: 40px;
  padding: 0 12px;
  transition: all .18s ease;
}
.dspp-frontend-password-field .dspp-toggle-password:hover,
.dspp-frontend-password-field .dspp-toggle-password:focus {
  background: var(--dspp-primary, #0b6b22);
  color: #fff;
  outline: none;
}
.dspp-password-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dspp-frontend-dashboard .dspp-btn-secondary,
.dspp-frontend-dashboard button.dspp-btn-secondary {
  background: #fff;
  border: 1px solid var(--dspp-line, #d9e7dc);
  color: var(--dspp-primary-dark, #064f19);
}
.dspp-frontend-dashboard .dspp-btn-secondary:hover,
.dspp-frontend-dashboard button.dspp-btn-secondary:hover {
  background: #f3fbf5;
  border-color: var(--dspp-primary, #0b6b22);
  color: var(--dspp-primary-dark, #064f19);
}
.dspp-reset-note {
  margin-top: 12px;
}
