/* Customer wholesale dashboard — account + order history */

.wff-dash {
  --dash-radius: 0.75rem;
  --dash-border: #e5e7eb;
  --dash-muted: #6b7280;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1rem 3rem;
}

.wff-hidden {
  display: none !important;
}

.wff-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .wff-dash {
    padding: 2rem 1.5rem 4rem;
  }
}

.wff-dash-header {
  margin-bottom: 1.5rem;
}

.wff-dash-header h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #5b21b6;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.wff-dash-header p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.wff-dash-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f3f4f6;
  border-radius: 0.625rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 24rem;
}

.wff-dash-tab {
  flex: 1;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dash-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.wff-dash-tab[aria-selected='true'] {
  background: #fff;
  color: #5b21b6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wff-dash-panel {
  display: none;
}

.wff-dash-panel[data-active='true'] {
  display: block;
}

.wff-dash-card {
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.wff-dash-card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(180deg, rgba(91, 33, 182, 0.04) 0%, #fff 100%);
}

.wff-dash-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wff-dash-card-head h2 {
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #5b21b6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wff-dash-card-body {
  padding: 1.25rem;
}

.wff-dash-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

.wff-dash-input,
.wff-dash-select {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  background: #f9fafb;
  border: 1px solid var(--dash-border);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wff-dash-input:focus,
.wff-dash-select:focus {
  border-color: #af69ee;
  box-shadow: 0 0 0 3px rgba(175, 105, 238, 0.2);
  background: #fff;
}

.wff-dash-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: #5b21b6;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.wff-dash-btn-primary:hover {
  background: #6d28d9;
}

.wff-dash-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wff-dash-btn-ghost {
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5b21b6;
  background: #fff;
  border: 1px solid rgba(91, 33, 182, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
}

.wff-dash-btn-ghost:hover {
  background: rgba(91, 33, 182, 0.05);
}

.wff-dash-filters {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.wff-dash-filter-primary,
.wff-dash-filter-secondary {
  display: grid;
  gap: 0.875rem;
}

.wff-dash-filter-primary {
  margin-bottom: 0.875rem;
}

@media (min-width: 768px) {
  .wff-dash-filter-primary {
    grid-template-columns: 1fr 1fr;
  }

  .wff-dash-filter-secondary {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
  }
}

.wff-dash-filter-grid {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .wff-dash-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wff-dash-filter-grid {
    grid-template-columns: 1.4fr 1.4fr 0.7fr 0.7fr 0.5fr;
    align-items: end;
  }
}

.wff-dash-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.wff-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.8125rem;
  color: var(--dash-muted);
}

.wff-dash-toolbar strong {
  color: #111827;
}

.wff-dash-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #f3f4f6;
}

.wff-dash-page-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: 0.5rem;
  cursor: pointer;
}

.wff-dash-page-btn:hover:not(:disabled) {
  border-color: #af69ee;
  color: #5b21b6;
}

.wff-dash-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wff-dash-page-btn[aria-current='page'] {
  background: #5b21b6;
  border-color: #5b21b6;
  color: #fff;
}

.wff-dash-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wff-dash-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.wff-dash-table thead {
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.wff-dash-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border-bottom: 1px solid var(--dash-border);
}

.wff-dash-table th.text-center {
  text-align: center;
}

.wff-dash-table th.text-right {
  text-align: right;
}

.wff-dash-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.wff-dash-table tbody tr:hover {
  background: #fafafa;
}

.wff-dash-order-link {
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.wff-dash-order-link .date {
  font-weight: 700;
  color: #111827;
}

.wff-dash-order-link .num {
  font-size: 0.6875rem;
  font-family: ui-monospace, monospace;
  color: #9ca3af;
}

.wff-dash-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0.25rem;
  border: 1px solid;
}

.wff-dash-badge--fulfilled {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.wff-dash-badge--ready {
  background: #fdf2f8;
  color: #be185d;
  border-color: #f9a8d4;
}

.wff-dash-badge--placed {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.wff-dash-badge--processing {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.wff-dash-badge--cancelled {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.wff-dash-badge--default {
  background: #f9fafb;
  color: #4b5563;
  border-color: #e5e7eb;
}

.wff-dash-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.wff-dash-detail-row td {
  background: #f9fafb;
  padding: 0 !important;
  border-bottom: 1px solid #e5e7eb;
}

.wff-dash-detail-inner {
  padding: 1rem 1.25rem 1.25rem;
}

.wff-dash-line-table {
  width: 100%;
  font-size: 0.8125rem;
  border: 1px solid var(--dash-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.wff-dash-line-table th,
.wff-dash-line-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.wff-dash-line-table thead {
  background: #f9fafb;
}

.wff-dash-mobile-list {
  display: none;
}

@media (max-width: 767px) {
  .wff-dash-table-wrap {
    display: none;
  }

  .wff-dash-mobile-list {
    display: block;
  }
}

.wff-dash-order-card {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.wff-dash-order-card:last-child {
  border-bottom: none;
}

.wff-dash-order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wff-dash-order-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.wff-dash-order-card-meta dt {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.wff-dash-order-card-meta dd {
  margin: 0;
  font-weight: 600;
  color: #374151;
}

.wff-dash-loading {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--dash-muted);
}

.wff-dash-loading-spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  border: 2px solid #e5e7eb;
  border-top-color: #5b21b6;
  border-radius: 50%;
  animation: wff-dash-spin 0.7s linear infinite;
}

@keyframes wff-dash-spin {
  to {
    transform: rotate(360deg);
  }
}

.wff-dash-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--dash-muted);
  font-size: 0.875rem;
}

.wff-dash-footnote {
  margin-top: 0.75rem;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.5;
  text-align: center;
}

.wff-dash-line-search-hint {
  font-size: 0.6875rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.wff-dash-line-search-status {
  font-size: 0.75rem;
  color: #5b21b6;
  font-weight: 600;
}

.wff-dash-account-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .wff-dash-account-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wff-dash-account-section {
  background: #fafafa;
  border: 1px solid #eef2f7;
  border-radius: 0.75rem;
  padding: 1rem;
}

.wff-dash-account-section--wide,
.wff-dash-account-help {
  grid-column: 1 / -1;
}

.wff-dash-section-title {
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b21b6;
}

.wff-dash-account-grid-compact {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .wff-dash-account-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
}

.wff-dash-input-readonly,
.wff-dash-input-readonly:focus {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #e5e7eb;
  box-shadow: none;
  cursor: not-allowed;
}

.wff-dash-readonly-value {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.wff-dash-help-text {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #6b7280;
}

.wff-dash-account-help {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ede9fe;
  border-radius: 0.75rem;
  background: #fbfaff;
}

.wff-dash-account-help p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #4b5563;
}

.wff-dash-feedback {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.wff-dash-feedback.is-success {
  color: #059669;
}

.wff-dash-feedback.is-error {
  color: #dc2626;
}

/* Deploy-aligned dashboard design: separated filter/table cards */
#customer-dashboard-pane .wff-dash,
#customer-dashboard-pane .wff-dash * {
  box-sizing: border-box;
}

#customer-dashboard-pane .wff-dash {
  --purple: #5b21b6;
  --lavender: #af69ee;
  --pink: #db2777;
  --text: #1e293b;
  --muted: #64748b;
  --subtle: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 0.75rem;
  --fast: 0.18s ease;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 3rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

#customer-dashboard-pane .wff-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#customer-dashboard-pane .wff-hidden {
  display: none !important;
}

#customer-dashboard-pane .wff-dash-header {
  margin-bottom: 1.5rem;
}

#customer-dashboard-pane .wff-dash-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--purple);
  margin: 0;
  letter-spacing: -0.02em;
}

#customer-dashboard-pane .wff-dash-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

#customer-dashboard-pane .wff-dash-tabs {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  background: #eef1f6;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

#customer-dashboard-pane .wff-dash-tab {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--fast);
}

#customer-dashboard-pane .wff-dash-tab:hover {
  color: var(--purple);
}

#customer-dashboard-pane .wff-dash-tab[aria-selected='true'] {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#customer-dashboard-pane .wff-dash-panel {
  display: none;
}

#customer-dashboard-pane .wff-dash-panel[data-active='true'] {
  display: block;
}

#customer-dashboard-pane .wff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#customer-dashboard-pane .wff-card + .wff-card {
  margin-top: 1.5rem;
}

#customer-dashboard-pane .wff-orders-gap {
  margin-top: 1.25rem;
}

#customer-dashboard-pane .wff-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, rgba(91, 33, 182, 0.03), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}

#customer-dashboard-pane .wff-card-head h2 {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#customer-dashboard-pane .wff-card-head h2 svg {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.7;
}

#customer-dashboard-pane .wff-account-badge {
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

#customer-dashboard-pane .wff-filters-body {
  padding: 1rem 1.5rem;
}

#customer-dashboard-pane .wff-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

#customer-dashboard-pane .wff-filter-row + .wff-filter-row {
  margin-top: 0.75rem;
}

#customer-dashboard-pane .wff-filter-cell {
  flex: 1;
  min-width: 140px;
}

#customer-dashboard-pane .wff-filter-cell--grow {
  flex: 2;
  min-width: 200px;
}

#customer-dashboard-pane .wff-label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  margin-bottom: 0.3rem;
}

#customer-dashboard-pane .wff-input,
#customer-dashboard-pane .wff-select {
  display: block;
  width: 100%;
  height: 2.35rem;
  padding: 0 0.7rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  transition: border-color var(--fast), box-shadow var(--fast);
}

#customer-dashboard-pane .wff-input:focus,
#customer-dashboard-pane .wff-select:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(175, 105, 238, 0.1);
}

#customer-dashboard-pane .wff-btn-clear,
#customer-dashboard-pane .wff-btn-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.35rem;
  width: 100%;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--fast);
}

#customer-dashboard-pane .wff-btn-clear {
  color: var(--purple);
  background: #fff;
  border: 1px solid var(--border);
}

#customer-dashboard-pane .wff-btn-clear:hover {
  border-color: var(--lavender);
  background: #faf8ff;
}

#customer-dashboard-pane .wff-btn-refresh {
  color: #fff;
  background: var(--purple);
  border: 1px solid var(--purple);
}

#customer-dashboard-pane .wff-btn-refresh:hover:not(:disabled) {
  background: #6d28d9;
  border-color: #6d28d9;
}

#customer-dashboard-pane .wff-btn-refresh:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#customer-dashboard-pane .wff-line-search-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lavender);
}

#customer-dashboard-pane .wff-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid #f1f5f9;
}

#customer-dashboard-pane .wff-loading {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

#customer-dashboard-pane .wff-loading-spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  border: 2.5px solid #e2e8f0;
  border-top-color: var(--lavender);
  border-radius: 50%;
  animation: wff-spin 0.7s linear infinite;
}

#customer-dashboard-pane .wff-search-loading {
  min-height: 18rem;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  color: var(--muted);
}

#customer-dashboard-pane .wff-search-loading-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  color: #fff;
  background: var(--purple);
  border: 0.4rem solid #ede9fe;
  border-radius: 50%;
  animation: wff-search-orbit 1.15s ease-in-out infinite;
}

#customer-dashboard-pane .wff-search-loading-orbit svg {
  width: 1.15rem;
  height: 1.15rem;
}

#customer-dashboard-pane .wff-search-loading-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

#customer-dashboard-pane .wff-search-loading-count {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

#customer-dashboard-pane .wff-search-loading-track {
  width: min(22rem, 80%);
  height: 0.35rem;
  margin: 1.1rem auto 0;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}

#customer-dashboard-pane .wff-search-loading-bar {
  width: 0;
  height: 100%;
  background: var(--pink);
  border-radius: inherit;
  transition: width 0.18s ease;
}

@keyframes wff-search-orbit {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-0.35rem) rotate(8deg);
  }
}

@keyframes wff-spin {
  to {
    transform: rotate(360deg);
  }
}

#customer-dashboard-pane .wff-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}

#customer-dashboard-pane .wff-empty--error {
  color: #dc2626;
}

#customer-dashboard-pane .wff-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.6875rem;
  color: var(--subtle);
  text-align: center;
  line-height: 1.5;
  padding: 0 1rem;
}

#customer-dashboard-pane .wff-table-wrap {
  overflow-x: auto;
}

#customer-dashboard-pane #customer-orders-cards.wff-dash-mobile-list {
  display: none;
}

@media (max-width: 767px) {
  #customer-dashboard-pane .wff-table-wrap.wff-dash-table-wrap {
    display: none;
  }

  #customer-dashboard-pane #customer-orders-cards.wff-dash-mobile-list {
    display: block;
  }

  #customer-dashboard-pane .wff-dash-order-card .wff-detail-cell {
    padding: 0;
  }
}

#customer-dashboard-pane .wff-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

#customer-dashboard-pane .wff-order-table thead {
  background: var(--bg);
}

#customer-dashboard-pane .wff-order-table th {
  padding: 0.6rem 1rem;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

#customer-dashboard-pane .wff-order-table th.wff-th-right {
  text-align: right;
}

#customer-dashboard-pane .wff-order-table th.wff-th-center,
#customer-dashboard-pane .wff-order-table td.wff-th-center {
  text-align: center;
}

#customer-dashboard-pane .wff-order-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

#customer-dashboard-pane .wff-order-table tbody tr.wff-order-row {
  cursor: pointer;
  transition: background var(--fast);
}

#customer-dashboard-pane .wff-order-table tbody tr.wff-order-row:hover {
  background: rgba(91, 33, 182, 0.02);
}

#customer-dashboard-pane .wff-cell-date {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text);
}

#customer-dashboard-pane .wff-cell-ordernum {
  font-size: 0.6875rem;
  font-family: ui-monospace, 'Cascadia Mono', monospace;
  color: var(--subtle);
}

#customer-dashboard-pane .wff-cell-fulfill {
  font-size: 0.75rem;
  color: var(--muted);
}

#customer-dashboard-pane .wff-total-in-details {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--lavender);
  white-space: nowrap;
}

#customer-dashboard-pane .wff-cell-total {
  font-weight: 700;
  font-size: 0.875rem;
  text-align: right;
  white-space: nowrap;
  color: var(--text);
}

#customer-dashboard-pane .wff-total-est {
  margin-left: 0.2rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
  vertical-align: baseline;
}

#customer-dashboard-pane .wff-detail-total-value .wff-total-est {
  font-size: 0.6875rem;
}

#customer-dashboard-pane .wff-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}

#customer-dashboard-pane .wff-badge--fulfilled {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

#customer-dashboard-pane .wff-badge--historical {
  background: #faf6f1;
  color: #7c5c3b;
  border-color: #e8d9c8;
  cursor: help;
}

#customer-dashboard-pane .wff-status-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  outline: none;
}

/* Fixed so the bubble escapes past-orders / table overflow clipping. */
#customer-dashboard-pane .wff-status-tip__bubble {
  display: none;
  position: fixed;
  z-index: 2200;
  left: 0;
  top: 0;
  width: min(16.5rem, calc(100vw - 1.5rem));
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: #4a3728;
  color: #faf6f1;
  border: 1px solid #6b5344;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(74, 55, 40, 0.28);
  pointer-events: none;
  transform: translate(-50%, -100%);
}

#customer-dashboard-pane .wff-status-tip__bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #4a3728;
}

#customer-dashboard-pane .wff-status-tip__bubble.wff-status-tip__bubble--below {
  transform: translate(-50%, 0);
}

#customer-dashboard-pane .wff-status-tip__bubble.wff-status-tip__bubble--below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #4a3728;
}

#customer-dashboard-pane .wff-status-tip:hover .wff-status-tip__bubble,
#customer-dashboard-pane .wff-status-tip:focus-visible .wff-status-tip__bubble,
#customer-dashboard-pane .wff-status-tip.is-open .wff-status-tip__bubble {
  display: block;
}

#customer-dashboard-pane .wff-badge--ready {
  background: #fdf2f8;
  color: #be185d;
  border-color: #f9a8d4;
}

#customer-dashboard-pane .wff-badge--placed {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #c4b5fd;
}

#customer-dashboard-pane .wff-badge--processing {
  background: #fefce8;
  color: #a16207;
  border-color: #fde68a;
}

#customer-dashboard-pane .wff-badge--cancelled {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

#customer-dashboard-pane .wff-badge--default {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

#customer-dashboard-pane .wff-cell-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

#customer-dashboard-pane .wff-btn-ghost {
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--purple);
  background: #fff;
  border: 1px solid rgba(91, 33, 182, 0.18);
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--fast);
}

#customer-dashboard-pane .wff-btn-ghost:hover {
  background: rgba(91, 33, 182, 0.04);
  border-color: rgba(91, 33, 182, 0.3);
}

#customer-dashboard-pane .wff-detail-cell {
  padding: 0 !important;
}

/* ─── Order detail side drawer ─── */
.wff-drawer-locked {
  overflow: hidden !important;
}

#customer-dashboard-pane .wff-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background 0.28s ease, visibility 0s linear 0.28s;
}

#customer-dashboard-pane .wff-drawer-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.5);
  transition: background 0.28s ease;
}

#customer-dashboard-pane .wff-drawer {
  width: 68%;
  max-width: 1200px;
  min-width: 0;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  outline: none;
}

#customer-dashboard-pane .wff-drawer-overlay.is-open .wff-drawer {
  transform: translateX(0);
}

#customer-dashboard-pane .wff-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: #fff;
  flex-shrink: 0;
}

#customer-dashboard-pane .wff-drawer-eyebrow {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

#customer-dashboard-pane .wff-drawer-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

#customer-dashboard-pane .wff-drawer-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.6rem;
}

#customer-dashboard-pane .wff-drawer-sub .wff-badge {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

#customer-dashboard-pane .wff-drawer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

#customer-dashboard-pane .wff-drawer-meta-item svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2.25;
}

#customer-dashboard-pane .wff-drawer-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background var(--fast);
}

#customer-dashboard-pane .wff-drawer-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

#customer-dashboard-pane .wff-drawer-close svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.5;
}

#customer-dashboard-pane .wff-drawer-track {
  flex-shrink: 0;
  padding: 1.1rem 1.5rem 0.25rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

#customer-dashboard-pane .wff-drawer-track.wff-hidden {
  display: none;
}

#customer-dashboard-pane .wff-drawer-track .wff-current-card-caption {
  margin-top: 0.65rem;
  text-align: center;
}

#customer-dashboard-pane .wff-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#customer-dashboard-pane .wff-drawer-body .wff-detail-wrap {
  margin: 1.15rem 1.5rem 1.75rem;
  box-shadow: none;
  animation: none;
}

#customer-dashboard-pane .wff-drawer-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}

#customer-dashboard-pane .wff-drawer-foot:empty {
  display: none;
}

@media (max-width: 767px) {
  #customer-dashboard-pane .wff-drawer {
    width: 100%;
    max-width: none;
  }

  #customer-dashboard-pane .wff-drawer-head {
    padding: 1rem 1.15rem 0.85rem;
  }

  #customer-dashboard-pane .wff-drawer-track,
  #customer-dashboard-pane .wff-drawer-foot {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  #customer-dashboard-pane .wff-drawer-body .wff-detail-wrap {
    margin: 1rem 1.15rem 1.5rem;
  }
}

#customer-dashboard-pane .wff-detail-wrap {
  margin: 0.65rem 1rem 1rem;
  border: 1px solid #d4d0e8;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.07);
  animation: wff-slideDown 0.2s ease;
}

@keyframes wff-slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Horizontal scroll so every column stays reachable on narrow screens */
#customer-dashboard-pane .wff-detail-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#customer-dashboard-pane .wff-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

/* Keep plant columns readable; forces the scroll container to scroll
   only when the viewport is too narrow to show them all. */
#customer-dashboard-pane .wff-detail-scroll > .wff-detail-table {
  min-width: 560px;
}

#customer-dashboard-pane .wff-detail-scroll > .wff-detail-table--extra {
  min-width: 380px;
}

#customer-dashboard-pane .wff-detail-table thead {
  background: var(--purple);
}

#customer-dashboard-pane .wff-detail-table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#customer-dashboard-pane .wff-detail-table th.wff-dt-right {
  text-align: right;
}

#customer-dashboard-pane .wff-detail-table th.wff-dt-center {
  text-align: center;
}

#customer-dashboard-pane .wff-detail-table td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #ece8f5;
  vertical-align: middle;
}

#customer-dashboard-pane .wff-detail-table tbody tr:last-child td {
  border-bottom: none;
}

#customer-dashboard-pane .wff-detail-table tbody tr:hover {
  background: rgba(91, 33, 182, 0.015);
}

#customer-dashboard-pane .wff-detail-table--plants tbody tr:last-child td {
  border-bottom: 1px solid #ece8f5;
}

#customer-dashboard-pane .wff-detail-extra-block {
  border-top: 2px dashed #d4d0e8;
  background: #faf9fd;
}

#customer-dashboard-pane .wff-detail-extra-heading {
  padding: 0.6rem 0.75rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#customer-dashboard-pane .wff-detail-extra-heading::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.875rem;
  background: var(--lavender);
  border-radius: 2px;
  flex-shrink: 0;
}

#customer-dashboard-pane .wff-detail-table--extra thead {
  background: var(--purple);
}

#customer-dashboard-pane .wff-detail-table--extra .wff-dt-extra-desc {
  font-weight: 600;
  color: #334155;
}

#customer-dashboard-pane .wff-detail-extra-line td {
  background: #faf9fd;
}

#customer-dashboard-pane .wff-detail-extra-line:hover td {
  background: rgba(91, 33, 182, 0.04);
}

#customer-dashboard-pane .wff-detail-totals-block {
  border-top: 1px solid #d4d0e8;
  padding: 0.85rem 1rem 1rem;
  background: #f8f7fc;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#customer-dashboard-pane .wff-detail-totals-inner {
  width: 100%;
  max-width: 18rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#customer-dashboard-pane .wff-detail-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
}

#customer-dashboard-pane .wff-detail-totals-label {
  color: var(--muted);
  font-weight: 500;
}

#customer-dashboard-pane .wff-detail-totals-value {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

#customer-dashboard-pane .wff-detail-totals-value--discount {
  color: #b45309;
}

#customer-dashboard-pane .wff-detail-totals-row--grand {
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 2px solid #c4b8e8;
}

#customer-dashboard-pane .wff-detail-totals-row--grand .wff-detail-totals-label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

#customer-dashboard-pane .wff-detail-totals-row--grand .wff-detail-totals-value {
  font-size: 1.5rem;
  color: var(--purple);
}

#customer-dashboard-pane .wff-detail-totals-note {
  margin-top: 0.4rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--subtle);
  text-align: right;
}

#customer-dashboard-pane .wff-dt-plant {
  font-weight: 600;
  color: #334155;
}

#customer-dashboard-pane .wff-dt-variety,
#customer-dashboard-pane .wff-dt-pot,
#customer-dashboard-pane .wff-dt-price {
  color: var(--muted);
}

#customer-dashboard-pane .wff-dt-pot {
  font-size: 0.6875rem;
}

#customer-dashboard-pane .wff-dt-qty {
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

#customer-dashboard-pane .wff-dt-price,
#customer-dashboard-pane .wff-dt-linetotal {
  text-align: right;
  white-space: nowrap;
}

#customer-dashboard-pane .wff-dt-linetotal {
  font-weight: 700;
  color: var(--text);
}

/* Weight-billed hard goods: the $/lb rate and the weighed lbs behind the charge. */
#customer-dashboard-pane .wff-dt-rate-unit {
  font-weight: 400;
  opacity: 0.7;
}

#customer-dashboard-pane .wff-dt-weight-note {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.75;
  white-space: nowrap;
}

#customer-dashboard-pane .wff-dt-tbd {
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: help;
  border-bottom: 1px dotted currentColor;
}

#customer-dashboard-pane .wff-dt-note-inline {
  display: block;
  max-width: 16rem;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6375rem;
  font-style: italic;
  color: var(--lavender);
  line-height: 1.3;
}

#customer-dashboard-pane .wff-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.85rem 1rem 1rem;
  background: #f8f7fc;
  border-top: 1px solid #d4d0e8;
}

#customer-dashboard-pane .wff-detail-total-label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

#customer-dashboard-pane .wff-detail-total-value {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
}

#customer-dashboard-pane .wff-detail-total-note {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--subtle);
  text-align: right;
}

#customer-dashboard-pane .wff-detail-placeholder {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--subtle);
}

#customer-dashboard-pane .wff-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid #f1f5f9;
}

#customer-dashboard-pane .wff-page-btn {
  min-width: 2.1rem;
  min-height: 2.1rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  cursor: pointer;
  transition: all var(--fast);
}

#customer-dashboard-pane .wff-page-btn:hover:not(:disabled) {
  border-color: var(--lavender);
  color: var(--purple);
}

#customer-dashboard-pane .wff-page-btn[aria-current='page'] {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

#customer-dashboard-pane .wff-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#customer-dashboard-pane .wff-page-ellipsis {
  padding: 0 0.3rem;
  color: var(--subtle);
  font-size: 0.75rem;
}

#customer-dashboard-pane .wff-card-body {
  padding: 1.5rem;
}

#customer-dashboard-pane .wff-card-intro {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

#customer-dashboard-pane .wff-account-grid {
  display: grid;
  gap: 1rem;
}

#customer-dashboard-pane .wff-account-section {
  background: #fafafa;
  border: 1px solid #eef2f7;
  border-radius: 0.75rem;
  padding: 1rem;
}

#customer-dashboard-pane .wff-account-section--wide,
#customer-dashboard-pane .wff-account-help {
  grid-column: 1 / -1;
}

#customer-dashboard-pane .wff-section-title {
  margin-bottom: 0.75rem;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

#customer-dashboard-pane .wff-account-grid-compact {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 768px) {
  #customer-dashboard-pane .wff-account-grid {
    grid-template-columns: 1fr 1fr;
  }

  #customer-dashboard-pane .wff-account-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
}

#customer-dashboard-pane .wff-account-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

#customer-dashboard-pane .wff-order-view-options {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

#customer-dashboard-pane .wff-order-view-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}

#customer-dashboard-pane .wff-order-view-option:hover {
  border-color: #c4b5fd;
  background: #fbfaff;
}

#customer-dashboard-pane .wff-order-view-option:has(input:checked) {
  border-color: var(--purple);
  background: #faf8ff;
}

#customer-dashboard-pane .wff-order-view-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#customer-dashboard-pane .wff-order-view-radio {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

#customer-dashboard-pane .wff-order-view-option input:checked + .wff-order-view-radio {
  border-color: var(--purple);
  background: var(--purple);
}

#customer-dashboard-pane .wff-order-view-option strong,
#customer-dashboard-pane .wff-order-view-option small {
  display: block;
}

#customer-dashboard-pane .wff-order-view-option strong {
  color: #334155;
  font-size: 0.8125rem;
}

#customer-dashboard-pane .wff-order-view-option small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
}

#customer-dashboard-pane .wff-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--purple);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all var(--fast);
  box-shadow: 0 2px 4px rgba(91, 33, 182, 0.2);
}

#customer-dashboard-pane .wff-btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 4px 8px rgba(91, 33, 182, 0.25);
}

#customer-dashboard-pane .wff-input-readonly,
#customer-dashboard-pane .wff-input-readonly:focus,
#customer-dashboard-pane .wff-readonly-value {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
  box-shadow: none;
}

#customer-dashboard-pane .wff-input-readonly {
  cursor: not-allowed;
}

#customer-dashboard-pane .wff-readonly-value {
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  padding: 0 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

#customer-dashboard-pane .wff-help-text {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

#customer-dashboard-pane .wff-account-help {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ede9fe;
  border-radius: 0.75rem;
  background: #fbfaff;
}

#customer-dashboard-pane .wff-account-help p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #4b5563;
}

#customer-dashboard-pane .wff-feedback {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

#customer-dashboard-pane .wff-feedback.is-success {
  color: #059669;
}

#customer-dashboard-pane .wff-feedback.is-error {
  color: #dc2626;
}

#customer-dashboard-pane .wff-required {
  color: #dc2626;
}

#customer-dashboard-pane .wff-detail-table tbody tr.wff-row-shortfall > td {
  background: #faf1f6;
}

#customer-dashboard-pane .wff-detail-table tbody tr.wff-row-shortfall > td.wff-dt-qty {
  color: #9d174d;
  font-weight: 700;
}

#customer-dashboard-pane .wff-row-highlight {
  background: #fdf6ff !important;
  outline: 2px solid var(--lavender);
  outline-offset: -2px;
  position: relative;
  animation: wff-highlight-pulse 0.6s ease;
}

#customer-dashboard-pane .wff-detail-table tbody tr.wff-row-shortfall.wff-row-highlight > td {
  background: #f8ecf4 !important;
}

@keyframes wff-highlight-pulse {
  0% {
    background: #f3e8ff;
  }
  60%,
  100% {
    background: #fdf6ff;
  }
}

@media (max-width: 600px) {
  #customer-dashboard-pane .wff-filters-body {
    padding: 0.85rem 1rem;
  }

  #customer-dashboard-pane .wff-toolbar {
    padding: 0.5rem 0;
  }

  #customer-dashboard-pane .wff-order-table th,
  #customer-dashboard-pane .wff-order-table td {
    padding: 0.5rem 0.6rem;
  }

  #customer-dashboard-pane .wff-order-table .wff-col-fulfill,
  #customer-dashboard-pane .wff-order-table .wff-th-fulfill,
  #customer-dashboard-pane .wff-order-table .wff-col-actions,
  #customer-dashboard-pane .wff-order-table .wff-th-actions {
    display: none;
  }

  #customer-dashboard-pane .wff-detail-wrap {
    margin: 0.5rem 0.5rem 0.75rem;
  }
}

.wff-dup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 10, 30, 0.55);
  animation: wff-fade-in 0.12s ease;
}

@keyframes wff-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wff-dup-dialog {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 20px 60px rgba(91, 33, 182, 0.18);
  font-family: 'Inter', system-ui, sans-serif;
  animation: wff-slide-up 0.14s ease;
  contain: layout style paint;
}

@keyframes wff-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wff-dup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  background: #5b21b6;
}

.wff-dup-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.wff-dup-close {
  padding: 0 0.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.wff-dup-close:hover {
  color: #fff;
}

.wff-dup-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.wff-dup-intro {
  margin: 0 0 1rem;
  color: #334155;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.wff-dup-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.wff-dup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.wff-dup-table thead {
  background: #f8f7fc;
}

.wff-dup-table th {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.wff-dup-th-c {
  text-align: center;
}

.wff-dup-table td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

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

.wff-dup-td-plant {
  color: #334155;
  font-weight: 600;
}

.wff-dup-td {
  color: #64748b;
}

.wff-dup-td-qty {
  color: #1e293b;
  font-weight: 700;
  text-align: center;
}

.wff-dup-status {
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.wff-dup-yes {
  color: #047857;
}

.wff-dup-no {
  color: #b91c1c;
}

.wff-dup-avail {
  background: #fafffe;
}

.wff-dup-unavail {
  background: #fffafa;
  opacity: 0.7;
}

.wff-dup-foot {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8f7fc;
}

.wff-dup-btn-cancel,
.wff-dup-btn-confirm {
  padding: 0.5rem 1.1rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s;
}

.wff-dup-btn-cancel {
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.wff-dup-btn-cancel:hover {
  background: #f1f5f9;
}

.wff-dup-btn-confirm {
  color: #fff;
  background: #5b21b6;
  border: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(91, 33, 182, 0.25);
}

.wff-dup-btn-confirm:hover {
  background: #6d28d9;
}

.wff-dup-btn-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #7c3aed;
  box-shadow: none;
}

/* Checkbox column in Reorder modal */
.wff-dup-th-check,
.wff-dup-td-check {
  width: 2.25rem;
  text-align: center;
  padding-left: 0.75rem;
  padding-right: 0.25rem;
}

.wff-dup-check {
  width: 1rem;
  height: 1rem;
  accent-color: #5b21b6;
  cursor: pointer;
}

.wff-dup-unavail .wff-dup-check {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Primary Reorder button — desktop table */
#customer-dashboard-pane .wff-btn-reorder {
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  background: #5b21b6;
  border: 1px solid #5b21b6;
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--fast);
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(91, 33, 182, 0.22);
}

#customer-dashboard-pane .wff-btn-reorder:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.3);
  transform: translateY(-1px);
}

/* Primary Reorder button — mobile card */
#customer-dashboard-pane .wff-dash-btn-reorder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: #5b21b6;
  border: 1px solid #5b21b6;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--fast);
  box-shadow: 0 2px 6px rgba(91, 33, 182, 0.2);
}

#customer-dashboard-pane .wff-dash-btn-reorder:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  box-shadow: 0 3px 10px rgba(91, 33, 182, 0.28);
  transform: translateY(-1px);
}

/* (Old account identity/tips/defaults styles removed in Phase 3 — replaced by wff-acct-* classes) */

/* Placed + Ready badge colors defined in canonical badge section above */

/* ─── Phase 2: Collapsed filter bar ─── */

#customer-dashboard-pane .wff-filter-primary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

#customer-dashboard-pane .wff-filter-search-wrap {
  position: relative;
}

#customer-dashboard-pane .wff-filter-search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.85rem;
  height: 0.85rem;
  color: var(--subtle);
  pointer-events: none;
}

#customer-dashboard-pane .wff-input--search {
  padding-left: 2rem;
}

#customer-dashboard-pane .wff-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.35rem;
  padding: 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--fast);
  flex-shrink: 0;
}

#customer-dashboard-pane .wff-filter-toggle-icon {
  width: 0.85rem;
  height: 0.85rem;
}

#customer-dashboard-pane .wff-filter-toggle:hover {
  border-color: var(--lavender);
  background: #faf8ff;
}

#customer-dashboard-pane .wff-filter-toggle--active {
  background: rgba(91, 33, 182, 0.06);
  border-color: var(--lavender);
  color: var(--purple);
}

#customer-dashboard-pane .wff-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.35rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--fast);
  flex-shrink: 0;
}

#customer-dashboard-pane .wff-search-submit:hover:not(:disabled) {
  background: var(--pink);
  border-color: var(--pink);
}

#customer-dashboard-pane .wff-search-submit:disabled {
  cursor: wait;
  opacity: 0.8;
}

#customer-dashboard-pane .wff-search-submit-icon {
  width: 0.9rem;
  height: 0.9rem;
}

#customer-dashboard-pane .wff-btn-refresh--compact {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.4rem;
}

#customer-dashboard-pane .wff-btn-refresh--compact svg {
  width: 0.9rem;
  height: 0.9rem;
}

#customer-dashboard-pane .wff-btn-refresh--spinning svg {
  animation: wff-spin 0.7s linear infinite;
}

#customer-dashboard-pane .wff-filter-panel {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
  animation: wff-slideDown 0.15s ease;
}

@media (max-width: 600px) {
  #customer-dashboard-pane .wff-filter-primary-row {
    flex-direction: column;
  }

  #customer-dashboard-pane .wff-filter-primary-row .wff-filter-cell--grow {
    min-width: 0;
  }

  #customer-dashboard-pane .wff-filter-toggle,
  #customer-dashboard-pane .wff-search-submit,
  #customer-dashboard-pane .wff-btn-refresh--compact {
    align-self: flex-start;
  }
}

/* ─── Inline detail expansion ─── */

#customer-dashboard-pane .wff-inline-detail {
  padding: 0.85rem 1rem 1rem;
  animation: wff-slideDown 0.2s ease;
}

/* ─── Phase 2: Progress steps ─── */

.wff-progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1rem 0;
}

.wff-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.wff-progress-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--border, #e2e8f0);
  background: var(--border, #e2e8f0);
  transition: all 0.2s ease;
}

.wff-progress-step--current .wff-progress-dot {
  width: 0.9rem;
  height: 0.9rem;
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.15);
}

.wff-progress-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle, #94a3b8);
  white-space: nowrap;
}

.wff-progress-step--done .wff-progress-label {
  color: var(--text, #1e293b);
}

.wff-progress-step--current .wff-progress-label {
  font-weight: 800;
}

.wff-progress-line {
  flex: 1;
  height: 2px;
  min-width: 1rem;
  background: var(--border, #e2e8f0);
  margin: 0 0.15rem;
  margin-bottom: 1.2rem;
  border-radius: 1px;
}

@media (max-width: 480px) {
  .wff-progress-label {
    font-size: 0.5rem;
  }
}

/* ─── Phase 3: Account tab redesign ─── */

#customer-dashboard-pane .wff-acct-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  #customer-dashboard-pane .wff-acct-layout {
    grid-template-columns: 1fr 16rem;
  }
}

#customer-dashboard-pane .wff-acct-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#customer-dashboard-pane .wff-acct-id-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  overflow: hidden;
}

#customer-dashboard-pane .wff-acct-id-field {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-right: 1px solid var(--border);
}

#customer-dashboard-pane .wff-acct-id-field:last-child {
  border-right: none;
}

#customer-dashboard-pane .wff-acct-id-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#customer-dashboard-pane .wff-acct-managed-note {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: var(--subtle);
  line-height: 1.4;
}

#customer-dashboard-pane .wff-acct-id-row--secondary {
  border-top: 1px solid var(--border, #e5e7eb);
}

#customer-dashboard-pane .wff-acct-id-val--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  letter-spacing: 0.04em;
}

#customer-dashboard-pane .wff-acct-address-block {
  padding: 0.75rem 1rem 0.25rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

#customer-dashboard-pane .wff-acct-address-val {
  margin-top: 0.25rem;
  line-height: 1.45;
}
#customer-dashboard-pane .wff-acct-form-intro {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

#customer-dashboard-pane .wff-acct-form-grid {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 480px) {
  #customer-dashboard-pane .wff-acct-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  #customer-dashboard-pane .wff-acct-form-wide {
    grid-column: 1 / -1;
  }
}

#customer-dashboard-pane .wff-acct-form-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#customer-dashboard-pane .wff-acct-form-actions .wff-feedback {
  margin: 0;
}

/* Account sidebar tip cards */
#customer-dashboard-pane .wff-acct-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#customer-dashboard-pane .wff-acct-tip-card {
  padding: 1rem;
  border: 1px solid rgba(91, 33, 182, 0.1);
  border-radius: 0.6rem;
  background: rgba(91, 33, 182, 0.02);
}

#customer-dashboard-pane .wff-acct-tip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(91, 33, 182, 0.08);
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
}

#customer-dashboard-pane .wff-acct-tip-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--purple);
}

#customer-dashboard-pane .wff-acct-tip-title {
  margin: 0 0 0.25rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--purple);
}

#customer-dashboard-pane .wff-acct-tip-text {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--muted);
}

#customer-dashboard-pane .wff-acct-tip-link {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#customer-dashboard-pane .wff-acct-tip-link:hover {
  color: var(--purple);
}

@media (max-width: 767px) {
  #customer-dashboard-pane .wff-acct-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #customer-dashboard-pane .wff-acct-tip-card {
    flex: 1;
    min-width: 200px;
  }
}

/* ─── Phase 2: Reorder button spinner ─── */

.wff-btn-spinner {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wff-spin 0.6s linear infinite;
  vertical-align: middle;
}

/* ─── Phase 1: Ready Date column ─── */

#customer-dashboard-pane .wff-order-table .wff-th-ready {
  white-space: nowrap;
}

#customer-dashboard-pane .wff-cell-ready {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pink);
  white-space: nowrap;
}

#customer-dashboard-pane .wff-cell-ready--empty {
  color: var(--subtle);
  font-weight: 400;
}

@media (max-width: 600px) {
  #customer-dashboard-pane .wff-order-table .wff-col-ready,
  #customer-dashboard-pane .wff-order-table .wff-th-ready {
    display: none;
  }
}

/* ─── Phase 1: Empty state ─── */

.wff-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.wff-empty-state-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--lavender, #af69ee) 16%, #fff);
  color: var(--purple, #5b21b6);
}

.wff-empty-state-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: inherit;
  opacity: 0.9;
  margin: 0;
}

.wff-empty-state-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple, #5b21b6);
  margin: 0 0 0.5rem;
}

.wff-empty-state-text {
  font-size: 0.8125rem;
  color: var(--muted, #64748b);
  max-width: 28rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.wff-empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--purple, #5b21b6);
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(91, 33, 182, 0.25);
}

.wff-empty-state-cta:hover {
  background: #6d28d9;
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
  transform: translateY(-1px);
}

/* ─── Current / Past order sections ─── */
#customer-dashboard-pane .wff-orders-section {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

/* Current Orders: faint purple wash (active / in progress) */
#customer-dashboard-pane .wff-current-section {
  background:
    linear-gradient(180deg, rgba(91, 33, 182, 0.05), rgba(91, 33, 182, 0.02));
  border-color: rgba(91, 33, 182, 0.13);
}

/* Past Orders: faint pink wash (completed history) */
#customer-dashboard-pane .wff-past-section {
  background:
    linear-gradient(180deg, rgba(219, 39, 119, 0.045), rgba(219, 39, 119, 0.015));
  border-color: rgba(219, 39, 119, 0.12);
}

#customer-dashboard-pane .wff-section-head {
  margin-bottom: 0.75rem;
}

#customer-dashboard-pane .wff-section-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.01em;
}

#customer-dashboard-pane .wff-section-heading svg {
  width: 1.05rem;
  height: 1.05rem;
}

#customer-dashboard-pane .wff-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.45rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--purple);
  background: rgba(91, 33, 182, 0.1);
  border-radius: 99px;
}

#customer-dashboard-pane .wff-past-section .wff-section-heading {
  color: var(--pink);
}

#customer-dashboard-pane .wff-past-section .wff-section-count {
  color: var(--pink);
  background: rgba(219, 39, 119, 0.12);
}

/* Inner cards sit flat on the tinted panel (no competing shadows) */
#customer-dashboard-pane .wff-current-card,
#customer-dashboard-pane .wff-past-section .wff-card {
  box-shadow: none;
}

#customer-dashboard-pane .wff-past-section .wff-card {
  border-color: rgba(219, 39, 119, 0.14);
}

/* Filter bar reads as a light toolbar, not a heavy panel */
#customer-dashboard-pane .wff-filter-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

#customer-dashboard-pane .wff-filter-card .wff-filters-body {
  padding: 0;
}

/* Tighten the gap between the filter bar and the past-orders table */
#customer-dashboard-pane .wff-filter-card + .wff-card {
  margin-top: 0.85rem;
}

/* Sections are now separated by their tinted panels, so the divided
   variant just adds a little extra breathing room between them. */
#customer-dashboard-pane .wff-past-section.wff-divided {
  margin-top: 1.5rem;
}

/* Hide the filter bar entirely when the account has no orders */
#customer-dashboard-pane .wff-dash-empty .wff-filter-card {
  display: none;
}

/* Past-orders footer: range readout + pagination on one line */
#customer-dashboard-pane .wff-past-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}

#customer-dashboard-pane .wff-past-range {
  font-size: 0.75rem;
  color: var(--muted);
}

#customer-dashboard-pane .wff-past-foot .wff-pagination {
  margin: 0;
  padding: 0;
  border-top: none;
  justify-content: flex-end;
}

/* Hide section chrome when there are no orders (clean, unboxed empty state) */
#customer-dashboard-pane .wff-dash-empty .wff-section-head {
  display: none;
}
#customer-dashboard-pane .wff-dash-empty .wff-orders-section {
  margin-top: 0;
  padding: 0;
  background: none;
  border-color: transparent;
}

/* ─── Current order cards ─── */
#customer-dashboard-pane .wff-current-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#customer-dashboard-pane .wff-current-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#customer-dashboard-pane .wff-current-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#customer-dashboard-pane .wff-current-card-id {
  flex: 0 0 auto;
}

#customer-dashboard-pane .wff-current-card-head .wff-track {
  flex: 1 1 auto;
  margin-top: 0;
}

#customer-dashboard-pane .wff-current-card-head .wff-badge {
  flex: 0 0 auto;
}

#customer-dashboard-pane .wff-current-card-num {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

#customer-dashboard-pane .wff-current-card-date {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

#customer-dashboard-pane .wff-current-card-caption {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
}

#customer-dashboard-pane .wff-current-card-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.9rem;
}

#customer-dashboard-pane .wff-current-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

#customer-dashboard-pane .wff-current-card-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

#customer-dashboard-pane .wff-fact {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

#customer-dashboard-pane .wff-fact-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
}

#customer-dashboard-pane .wff-current-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#customer-dashboard-pane .wff-current-card-detail {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

/* ─── Moving package tracker ─── */
#customer-dashboard-pane .wff-track {
  position: relative;
  margin-top: 0.7rem;
  padding: 0.35rem 0.25rem 0;
}

#customer-dashboard-pane .wff-track-line {
  position: absolute;
  top: calc(0.35rem + 0.65rem - 1.5px);
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

#customer-dashboard-pane .wff-track-line-fill {
  position: relative;
  height: 100%;
  width: var(--track-progress, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  animation: wff-track-fill 0.9s ease-out both;
}

#customer-dashboard-pane .wff-track-line-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  background-size: 45% 100%;
  background-repeat: no-repeat;
  animation: wff-track-sheen 1.8s linear infinite;
}

#customer-dashboard-pane .wff-track-nodes {
  position: relative;
  display: flex;
  z-index: 1;
}

#customer-dashboard-pane .wff-track-node {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

#customer-dashboard-pane .wff-track-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 99px;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--subtle);
}

#customer-dashboard-pane .wff-track-dot svg {
  width: 0.7rem;
  height: 0.7rem;
}

#customer-dashboard-pane .wff-track-node.is-done .wff-track-dot {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

#customer-dashboard-pane .wff-track-node.is-current .wff-track-dot {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  animation: wff-track-pulse 1.7s ease-in-out infinite;
}

#customer-dashboard-pane .wff-track-node.is-current .wff-track-dot svg {
  animation: wff-track-bob 1.7s ease-in-out infinite;
}

#customer-dashboard-pane .wff-track-label {
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

#customer-dashboard-pane .wff-track-node.is-done .wff-track-label,
#customer-dashboard-pane .wff-track-node.is-current .wff-track-label {
  color: var(--text);
}

@keyframes wff-track-fill {
  from {
    width: 0;
  }
  to {
    width: var(--track-progress, 0%);
  }
}

@keyframes wff-track-sheen {
  0% {
    background-position: -60% 0;
  }
  100% {
    background-position: 160% 0;
  }
}

@keyframes wff-track-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(219, 39, 119, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(219, 39, 119, 0);
  }
}

@keyframes wff-track-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #customer-dashboard-pane .wff-track-line-fill,
  #customer-dashboard-pane .wff-track-line-fill::after,
  #customer-dashboard-pane .wff-track-node.is-current .wff-track-dot,
  #customer-dashboard-pane .wff-track-node.is-current .wff-track-dot svg,
  #customer-dashboard-pane .wff-search-loading-orbit {
    animation: none;
  }
}

@media (max-width: 767px) {
  /* Order # + status badge share the top row; the tracker wraps to its
     own full-width line below so the step labels never collide. */
  #customer-dashboard-pane .wff-current-card-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
  }
  #customer-dashboard-pane .wff-current-card-id {
    flex: 1 1 auto;
  }
  #customer-dashboard-pane .wff-current-card-head .wff-badge {
    order: 1;
    flex: 0 0 auto;
  }
  #customer-dashboard-pane .wff-current-card-head .wff-track {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    margin-top: 0.35rem;
  }
}

/* ─── Compact mobile layout (reduce nesting + visual weight) ─── */
@media (max-width: 600px) {
  /* Thinner tinted section panels so cards aren't double-boxed */
  #customer-dashboard-pane .wff-orders-section {
    margin-top: 1rem;
    padding: 0.75rem 0.7rem 0.85rem;
  }

  #customer-dashboard-pane .wff-past-section.wff-divided {
    margin-top: 1.1rem;
  }

  #customer-dashboard-pane .wff-section-head {
    margin-bottom: 0.6rem;
  }

  #customer-dashboard-pane .wff-section-heading {
    font-size: 1.02rem;
  }

  /* Current order cards: tighter padding + gaps */
  #customer-dashboard-pane .wff-current-list {
    gap: 0.7rem;
  }

  #customer-dashboard-pane .wff-current-card {
    padding: 0.7rem 0.8rem;
  }

  #customer-dashboard-pane .wff-current-card-num {
    font-size: 0.875rem;
  }

  #customer-dashboard-pane .wff-current-card-foot {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    gap: 0.5rem 0.85rem;
  }

  #customer-dashboard-pane .wff-current-card-facts {
    gap: 0.3rem 0.85rem;
    font-size: 0.78rem;
  }

  /* Past order mobile cards: trim padding, snug meta grid */
  #customer-dashboard-pane .wff-dash-order-card {
    padding: 0.8rem 0.85rem;
  }

  #customer-dashboard-pane .wff-dash-order-card-head,
  #customer-dashboard-pane .wff-dash-order-card-meta {
    margin-bottom: 0.6rem;
  }

  #customer-dashboard-pane .wff-dash-order-card-meta {
    gap: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  #customer-dashboard-pane .wff-past-foot {
    padding: 0.65rem 0.85rem;
  }

  /* Filter card breathing room scaled down */
  #customer-dashboard-pane .wff-filter-card + .wff-card {
    margin-top: 0.65rem;
  }
}

/* Shared-login My Account: form + why-upgrade side by side */
#customer-dashboard-pane .wff-universal-upgrade {
  max-width: 56rem;
  margin: 0 auto;
}

#customer-dashboard-pane .wff-universal-upgrade-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  #customer-dashboard-pane .wff-universal-upgrade-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.85fr);
  }
}

#customer-dashboard-pane .wff-universal-upgrade-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#customer-dashboard-pane .wff-universal-send-icon,
#customer-dashboard-pane #universal-upgrade-submit svg.wff-universal-send-icon {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

/* Order request download + CSV export (see js/customer-order-pdf.js). */
#customer-dashboard-pane .wff-detail-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.25rem 0.25rem;
}

#customer-dashboard-pane .wff-detail-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid #d8c7ee;
  background: #f2ebfa;
  color: #5d369d;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#customer-dashboard-pane .wff-detail-download:hover {
  background: #e7d9f6;
  border-color: #c3a9e4;
}

#customer-dashboard-pane .wff-search-submit--ghost {
  background: transparent;
  border: 1px solid var(--border, #d5d8de);
  color: inherit;
}

#customer-dashboard-pane .wff-search-submit--ghost:hover {
  background: rgba(93, 54, 157, 0.08);
}

/* Order request facts + notes at the top of an expanded order (portal-data.js). */
#customer-dashboard-pane .wff-detail-info {
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border, #d5d8de);
  border-radius: 0.5rem;
  background: rgba(93, 54, 157, 0.03);
}

#customer-dashboard-pane .wff-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

#customer-dashboard-pane .wff-detail-facts dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

#customer-dashboard-pane .wff-detail-facts dd {
  margin: 0.1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

#customer-dashboard-pane .wff-detail-note {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border, #d5d8de);
}

#customer-dashboard-pane .wff-detail-note-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

#customer-dashboard-pane .wff-detail-note-body {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* CSV export loading modal (order history Export CSV). */
.wff-csv-export-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 10, 30, 0.55);
  animation: wff-fade-in 0.12s ease;
}

.wff-csv-export-overlay.wff-hidden,
.wff-csv-export-overlay.hidden {
  display: none;
}

.wff-csv-export-dialog {
  width: 100%;
  max-width: 22rem;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 20px 60px rgba(91, 33, 182, 0.18);
  font-family: 'Inter', system-ui, sans-serif;
  animation: wff-slide-up 0.14s ease;
}

.wff-csv-export-spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 1rem;
  border: 2.5px solid #e2e8f0;
  border-top-color: #5d369d;
  border-radius: 50%;
  animation: wff-spin 0.7s linear infinite;
}

.wff-csv-export-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e1b2e;
}

.wff-csv-export-count {
  margin: 0.45rem 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  min-height: 1.25em;
}

.wff-csv-export-track {
  height: 0.35rem;
  border-radius: 999px;
  background: #ede9fe;
  overflow: hidden;
}

.wff-csv-export-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #5d369d;
  transition: width 0.2s ease;
}
