/* SellerAdmin — thin layer on top of SellerPanel.seller.css */

:root {
  --ink: #14161a;
  --muted: #6b6f78;
  --line: #ececea;
}

.seller-admin-body .topbar__user-name {
  color: var(--seller-muted);
  font-size: 0.9rem;
  margin-right: 0.35rem;
}

.seller-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.seller-panel-card {
  background: var(--seller-surface, #fff);
  border: 1px solid var(--seller-border, #e5e7eb);
  border-radius: var(--seller-radius, 10px);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
}

.seller-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.seller-form-field input,
.seller-form-field select,
.seller-form-field textarea {
  width: 100%;
}

.seller-admin-body .seller-form-field input[type="checkbox"],
.seller-admin-body .seller-form-field input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex: 0 0 auto;
}

.seller-select {
  border: 1px solid var(--seller-border, #e5e7eb);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--seller-text, #111827);
}


.seller-badge--ok {
  background: #dcfce7;
  color: #166534;
}

.seller-badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.seller-badge--off {
  background: #fee2e2;
  color: #991b1b;
}

.seller-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.seller-check-list label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.seller-check-list input {
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
}

.sa-role-module {
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #eceae6;
  border-radius: 12px;
  background: #fafaf9;
}

.sa-role-module strong {
  display: block;
  margin-bottom: 0.55rem;
}

.sa-role-module code {
  margin-left: 0.35rem;
  color: #6b6f78;
  font-size: 0.78rem;
}

.seller-table {
  width: 100%;
  border-collapse: collapse;
}

.seller-table th,
.seller-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--seller-border, #e5e7eb);
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}

.seller-table th {
  background: #fbfaf8;
  color: var(--seller-muted, #6b7280);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.seller-table-card .tbl-foot {
  border-top: 1px solid var(--seller-border, #e5e7eb);
}

.seller-toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  flex: 1;
}

.seller-content > .seller-page-title {
  margin-top: 0;
}

/* Pill buttons across the admin shell */
.seller-admin-body .seller-btn,
.seller-admin-body .seller-btn-primary,
.seller-admin-body .seller-btn-secondary,
.seller-admin-body .seller-btn-danger,
.seller-admin-body .sa-dash-reset,
.seller-admin-body .sa-note-edit,
.seller-admin-body .sa-note-pdf,
.seller-admin-body .sa-note-submit,
.seller-admin-body .sa-note-remove,
.seller-admin-body .sa-user-save,
.seller-admin-body .seller-product-form-footer__btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--sa-line, #ebe9e4);
  border-radius: 999px;
  background: #fff;
  color: var(--sa-ink-2, #3f434b);
  box-shadow: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.seller-admin-body .seller-btn i,
.seller-admin-body .sa-dash-reset i,
.seller-admin-body .sa-note-edit i,
.seller-admin-body .sa-note-pdf i,
.seller-admin-body .sa-note-submit i,
.seller-admin-body .sa-note-remove i,
.seller-admin-body .sa-user-save i,
.seller-admin-body .seller-product-form-footer__btn--primary i {
  color: var(--sa-muted, #737780);
  font-size: 0.95rem;
  line-height: 1;
}

.seller-admin-body .seller-btn:hover,
.seller-admin-body .seller-btn-primary:hover,
.seller-admin-body .seller-btn-secondary:hover,
.seller-admin-body .seller-btn-danger:hover,
.seller-admin-body .sa-dash-reset:hover,
.seller-admin-body .sa-note-edit:hover,
.seller-admin-body .sa-note-pdf:hover,
.seller-admin-body .sa-note-submit:hover,
.seller-admin-body .sa-note-remove:hover,
.seller-admin-body .sa-user-save:hover,
.seller-admin-body .seller-product-form-footer__btn--primary:hover {
  border-color: var(--seller-primary, #e53935);
  background: rgba(229, 57, 53, 0.08);
  color: var(--seller-primary, #e53935);
}

.seller-admin-body .seller-btn:hover i,
.seller-admin-body .sa-dash-reset:hover i,
.seller-admin-body .sa-note-edit:hover i,
.seller-admin-body .sa-note-pdf:hover i,
.seller-admin-body .sa-note-submit:hover i,
.seller-admin-body .sa-note-remove:hover i,
.seller-admin-body .sa-user-save:hover i,
.seller-admin-body .seller-product-form-footer__btn--primary:hover i {
  color: var(--seller-primary, #e53935);
}

.seller-admin-body td .seller-btn {
  margin: 0.15rem 0.35rem 0.15rem 0;
}

/* Dashboard */
.sa-dash {
  --sa-card: #fff;
  --sa-line: #ebe9e4;
  --sa-line-soft: #f2f1ed;
  --sa-ink: #16181d;
  --sa-ink-2: #3f434b;
  --sa-muted: #737780;
  --sa-radius: 14px;
  --sa-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.04);
  --sa-shadow-hover: 0 6px 18px rgba(16, 24, 40, 0.08);
  --sa-brand: var(--seller-primary, #e53935);
  --sa-brand-soft: rgba(229, 57, 53, 0.08);
  --sa-up: #15803d;
  --sa-up-soft: #e8f6ed;
  --sa-down: #c62828;
  --sa-down-soft: #fdecec;
  --sa-new: #4f46e5;
  --sa-packed: #d97706;
  --sa-dispatched: #2563eb;
  --sa-delivered: #16a34a;
  --sa-cancelled: #dc2626;
  --sa-rto: #ea580c;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1480px;
  margin: 0 auto;
  color: var(--sa-ink);
}

.sa-dash .sa-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Header + filters */
.sa-dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.sa-dash-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sa-brand);
}

.sa-dash-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sa-dash-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--sa-muted);
}

.sa-dash-filters {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem;
  background: var(--sa-card);
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  box-shadow: var(--sa-shadow);
  overflow: visible;
}

.sa-dash-filters .order-date-range {
  position: static;
}

.sa-dash-filters .order-date-range__trigger {
  border-color: transparent;
  background: #f7f6f3;
  min-height: 2.3rem;
}

.sa-dash-filters .order-date-range__panel {
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  z-index: 80;
  width: min(540px, calc(100vw - var(--seller-sidebar-width, 268px) - 3rem));
}

.sa-dash-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.sa-dash-select i {
  position: absolute;
  left: 0.7rem;
  color: var(--sa-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.sa-dash-select select {
  appearance: none;
  min-width: 210px;
  max-width: 300px;
  min-height: 2.3rem;
  padding: 0.45rem 2rem 0.45rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--seller-radius, 10px);
  background: #f7f6f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%23737780'%3E%3Cpath d='M1.6 5.2a.75.75 0 0 1 1.06 0L8 10.54l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 6.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  color: var(--sa-ink);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.sa-dash-select select:focus,
.sa-dash-filters .order-date-range__trigger:focus-visible {
  outline: 2px solid var(--sa-brand-soft);
  border-color: var(--sa-brand);
}

.sa-dash-apply {
  min-height: 2.3rem;
}

.sa-dash-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.6rem;
  min-height: 2.3rem;
  border-radius: 8px;
  color: var(--sa-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.sa-dash-reset:hover {
  color: var(--sa-ink);
  background: #f7f6f3;
}

.sa-dash-notice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
}

.sa-dash-notice i {
  font-size: 1.1rem;
}

.sa-dash-notice strong {
  margin-left: auto;
  white-space: nowrap;
  color: #c2410c;
}

.sa-dash-notice:hover {
  background: #ffedd5;
}

/* Quick actions */
.sa-dash-shortcuts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sa-dash-shortcuts__label {
  margin-right: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sa-muted);
}

.sa-dash-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--sa-line);
  border-radius: 999px;
  background: var(--sa-card);
  color: var(--sa-ink-2);
  font-size: 0.84rem;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.sa-dash-shortcut i {
  color: var(--sa-muted);
  transition: color 0.15s ease;
}

.sa-dash-shortcut:hover {
  border-color: var(--sa-brand);
  color: var(--sa-brand);
  background: var(--sa-brand-soft);
}

.sa-dash-shortcut:hover i {
  color: var(--sa-brand);
}

/* KPI cards */
.sa-dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.sa-dash-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.15rem 1rem;
  background: var(--sa-card);
  border: 1px solid var(--sa-line);
  border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadow);
}

.sa-dash-kpi__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sa-dash-kpi__icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--sa-brand-soft);
  color: var(--sa-brand);
  font-size: 0.95rem;
}

.sa-dash-kpi--orders .sa-dash-kpi__icon { background: #eef2ff; color: var(--sa-new); }
.sa-dash-kpi--aov .sa-dash-kpi__icon { background: #ecfdf3; color: var(--sa-delivered); }
.sa-dash-kpi--return_rate .sa-dash-kpi__icon { background: #fff7ed; color: var(--sa-rto); }
.sa-dash-kpi--settlement .sa-dash-kpi__icon { background: #f0f9ff; color: #0369a1; }

.sa-dash-kpi__label {
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--sa-muted);
}

.sa-dash-kpi__value {
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sa-dash-kpi__foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.4rem;
  font-size: 0.78rem;
  color: var(--sa-muted);
}

.sa-dash-kpi__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--sa-muted);
  text-decoration: none;
}

.sa-dash-kpi__link:hover {
  color: var(--sa-brand);
}

.sa-dash-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.sa-dash-delta.is-up { background: var(--sa-up-soft); color: var(--sa-up); }
.sa-dash-delta.is-down { background: var(--sa-down-soft); color: var(--sa-down); }
.sa-dash-delta.is-flat { background: #f2f2f0; color: var(--sa-muted); }

/* Generic card */
.sa-dash-row {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.sa-dash-row--pipeline { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.sa-dash-row--insights { grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); }
.sa-dash-row--sellers { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }

.sa-dash-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--sa-card);
  border: 1px solid var(--sa-line);
  border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadow);
}

.sa-dash-card--flush {
  padding-bottom: 0.25rem;
}

.sa-dash-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sa-dash-card__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sa-dash-card__head p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--sa-muted);
}

.sa-dash-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sa-brand);
  text-decoration: none;
}

.sa-dash-link:hover i {
  transform: translateX(2px);
}

.sa-dash-link i {
  transition: transform 0.15s ease;
}

/* Distribution bar */
.sa-dash-pipebar {
  display: flex;
  gap: 3px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--sa-line-soft);
}

.sa-dash-pipebar__empty {
  flex: 1;
}

.sa-dash-pipebar__seg {
  flex-basis: 0;
  min-width: 6px;
}

.sa-dash-pipebar__seg.is-new { background: var(--sa-new); }
.sa-dash-pipebar__seg.is-packed { background: var(--sa-packed); }
.sa-dash-pipebar__seg.is-dispatched { background: var(--sa-dispatched); }
.sa-dash-pipebar__seg.is-delivered { background: var(--sa-delivered); }
.sa-dash-pipebar__seg.is-cancelled { background: var(--sa-cancelled); }
.sa-dash-pipebar__seg.is-rto { background: var(--sa-rto); }
.sa-dash-pipebar__seg.is-active { background: var(--sa-delivered); }
.sa-dash-pipebar__seg.is-pending { background: var(--sa-packed); }
.sa-dash-pipebar__seg.is-suspended { background: var(--sa-cancelled); }

/* Pipeline stages */
.sa-dash-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.sa-dash-stage {
  --stage: var(--sa-muted);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.85rem 0.8rem;
  border: 1px solid var(--sa-line);
  border-radius: 12px;
  background: #fcfcfb;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sa-dash-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--stage);
}

.sa-dash-stage.is-new { --stage: var(--sa-new); }
.sa-dash-stage.is-packed { --stage: var(--sa-packed); }
.sa-dash-stage.is-dispatched { --stage: var(--sa-dispatched); }
.sa-dash-stage.is-delivered { --stage: var(--sa-delivered); }
.sa-dash-stage.is-cancelled { --stage: var(--sa-cancelled); }
.sa-dash-stage.is-rto { --stage: var(--sa-rto); }

a.sa-dash-stage:hover {
  border-color: var(--stage);
  box-shadow: var(--sa-shadow-hover);
  transform: translateY(-1px);
}

.sa-dash-stage__icon {
  margin-bottom: 0.35rem;
  color: var(--stage);
  font-size: 1.05rem;
}

.sa-dash-stage__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sa-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-dash-stage__value {
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sa-dash-stage__share {
  font-size: 0.72rem;
  color: var(--sa-muted);
}

.sa-dash-stage.is-empty .sa-dash-stage__value {
  color: #b3b5ba;
}

/* Needs attention */
.sa-dash-attention.is-hot {
  border-color: rgba(229, 57, 53, 0.22);
  background: linear-gradient(180deg, #fff8f7 0%, #fff 60%);
}

.sa-dash-attention__badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border-radius: 10px;
  background: #f2f2f0;
  color: var(--sa-muted);
  font-size: 1rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.sa-dash-attention.is-hot .sa-dash-attention__badge {
  background: var(--sa-brand);
  color: #fff;
}

.sa-dash-attention__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-dash-attention__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--sa-line-soft);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.sa-dash-attention__row:hover {
  border-color: var(--sa-line);
  background: #faf9f7;
}

.sa-dash-attention__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #f2f2f0;
  color: var(--sa-muted);
}

.sa-dash-attention__row.is-hot .sa-dash-attention__icon {
  background: var(--sa-brand-soft);
  color: var(--sa-brand);
}

.sa-dash-attention__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sa-dash-attention__text strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.sa-dash-attention__text small {
  font-size: 0.75rem;
  color: var(--sa-muted);
}

.sa-dash-attention__count {
  font-size: 1rem;
  font-weight: 700;
  color: #9a9ca2;
  font-variant-numeric: tabular-nums;
}

.sa-dash-attention__row.is-hot .sa-dash-attention__count {
  color: var(--sa-brand);
}

.sa-dash-attention__chev {
  color: #b3b5ba;
  font-size: 0.8rem;
}

/* Chart */
.sa-dash-chart {
  position: relative;
  padding-left: 0.25rem;
}

.sa-dash-chart__grid {
  position: absolute;
  inset: 1.6rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.sa-dash-chart__grid span {
  border-top: 1px dashed var(--sa-line);
}

.sa-dash-chart__bars {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1rem;
  height: 250px;
}

.sa-dash-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.sa-dash-chart__track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding-top: 1.6rem;
  box-sizing: border-box;
}

.sa-dash-chart__bar {
  position: relative;
  width: min(44px, 70%);
  min-height: 0;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #f3a19f 0%, #f6c3c2 100%);
  transition: background 0.15s ease;
}

.sa-dash-chart__col.is-current .sa-dash-chart__bar,
.sa-dash-chart__col:hover .sa-dash-chart__bar {
  background: linear-gradient(180deg, var(--sa-brand) 0%, #ef6b68 100%);
}

.sa-dash-chart__tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: var(--sa-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.sa-dash-chart__col.is-current .sa-dash-chart__tip,
.sa-dash-chart__col:hover .sa-dash-chart__tip {
  opacity: 1;
}

.sa-dash-chart__label {
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--sa-muted);
}

.sa-dash-chart__col.is-current .sa-dash-chart__label {
  color: var(--sa-ink);
  font-weight: 700;
}

/* Ranked list */
.sa-dash-rank {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-dash-rank__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sa-dash-rank__pos {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 7px;
  background: #f2f2f0;
  color: var(--sa-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.sa-dash-rank__item:first-child .sa-dash-rank__pos,
.sa-dash-rank__pos.is-top {
  background: var(--sa-brand-soft);
  color: var(--sa-brand);
}

.sa-dash-rank__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.sa-dash-rank__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.sa-dash-rank__line strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-dash-rank__line b {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.sa-dash-rank__line b small {
  font-weight: 500;
  color: var(--sa-muted);
}

.sa-dash-rank__meta {
  overflow: hidden;
  font-size: 0.74rem;
  color: var(--sa-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-dash-meter {
  display: block;
  height: 6px;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: var(--sa-line-soft);
  overflow: hidden;
}

.sa-dash-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sa-brand);
}

/* Seller base */
.sa-dash-legend {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-dash-legend li + li {
  border-top: 1px solid var(--sa-line-soft);
}

.sa-dash-legend a,
.sa-dash-legend li > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.25rem;
  color: inherit;
  text-decoration: none;
}

.sa-dash-legend a:hover .sa-dash-legend__label {
  color: var(--sa-brand);
}

.sa-dash-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.sa-dash-legend__dot.is-active { background: var(--sa-delivered); }
.sa-dash-legend__dot.is-pending { background: var(--sa-packed); }
.sa-dash-legend__dot.is-suspended { background: var(--sa-cancelled); }
.sa-dash-legend__dot.is-verified { background: #15803d; }
.sa-dash-legend__dot.is-unverified { background: #c2410c; }

.sa-dash-legend__label {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 550;
}

.sa-dash-legend__share {
  font-size: 0.76rem;
  color: var(--sa-muted);
  font-variant-numeric: tabular-nums;
}

.sa-dash-legend strong {
  min-width: 2.5rem;
  font-size: 0.95rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sa-dash-newsellers {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #f7f6f3;
  font-size: 0.82rem;
  color: var(--sa-ink-2);
}

.sa-dash-newsellers strong {
  font-size: 0.95rem;
  color: var(--sa-ink);
}

.sa-dash-newsellers__icon {
  color: var(--sa-packed);
}

/* Table */
.sa-dash-table-wrap {
  margin: 0 -1.25rem;
  overflow-x: auto;
}

.sa-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.sa-dash-table th {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--sa-line);
  border-bottom: 1px solid var(--sa-line);
  background: #faf9f7;
  color: var(--sa-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.sa-dash-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--sa-line-soft);
  vertical-align: middle;
}

.sa-dash-table tbody tr:last-child td {
  border-bottom: 0;
}

.sa-dash-table tbody tr:hover td {
  background: #fcfbfa;
}

.sa-dash-table th:first-child,
.sa-dash-table td:first-child {
  padding-left: 1.25rem;
}

.sa-dash-table th:last-child,
.sa-dash-table td:last-child {
  padding-right: 1.25rem;
}

.sa-dash-table__rank {
  width: 3rem;
}

.sa-dash-table__share {
  width: 22%;
  min-width: 140px;
}

.sa-dash-share {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sa-dash-share .sa-dash-meter {
  flex: 1;
  margin: 0;
}

.sa-dash-share small {
  min-width: 2.2rem;
  color: var(--sa-muted);
  font-size: 0.76rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sa-dash-seller {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.sa-dash-seller__avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--sa-new);
  font-size: 0.8rem;
  font-weight: 700;
}

.sa-dash-seller > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sa-dash-seller strong {
  font-weight: 600;
}

.sa-dash-seller small {
  font-size: 0.74rem;
  color: var(--sa-muted);
}

.sa-dash-table__actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.sa-dash-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--sa-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sa-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sa-dash-iconbtn + .sa-dash-iconbtn {
  margin-left: 0.3rem;
}

.sa-dash-iconbtn:hover {
  border-color: var(--sa-brand);
  color: var(--sa-brand);
}

/* Empty states */
.sa-dash-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 180px;
  padding: 1.5rem 1rem;
  border: 1px dashed var(--sa-line);
  border-radius: 12px;
  background: #fcfcfb;
  text-align: center;
}

.sa-dash-card--flush .sa-dash-empty {
  margin-bottom: 1rem;
}

.sa-dash-empty i {
  margin-bottom: 0.35rem;
  color: #c3c5ca;
  font-size: 1.6rem;
}

.sa-dash-empty strong {
  font-size: 0.9rem;
  font-weight: 650;
}

.sa-dash-empty span {
  max-width: 280px;
  font-size: 0.8rem;
  color: var(--sa-muted);
}

/* Responsive */
@media (max-width: 1360px) {
  .sa-dash-pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .sa-dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sa-dash-row--pipeline,
  .sa-dash-row--insights,
  .sa-dash-row--sellers {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .sa-dash-header {
    align-items: stretch;
  }

  .sa-dash-filters {
    width: 100%;
  }

  .sa-dash-select,
  .sa-dash-select select {
    flex: 1;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .sa-dash-kpis,
  .sa-dash-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-dash-filters .order-date-range__panel {
    left: 0;
    right: auto;
    width: min(540px, calc(100vw - 2rem));
  }
}

/* Seller view — same section layout as seller settings */
.sa-seller-view .page-head__actions {
  align-items: center;
  flex-wrap: wrap;
}

.sa-seller-view .input-group .input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sa-seller-view .input-group__verify.is-off {
  color: #c62828;
  cursor: default;
}

.sa-seller-view .input-group__verify.is-off:hover {
  background: transparent;
}

.sa-seller-view .set-nav {
  z-index: 2;
}

.sa-verify-btn {
  margin-top: 0.65rem;
  align-self: flex-start;
}

.sa-proof {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: 1px dashed #e4e1db;
  border-radius: 12px;
  background: #faf9f7;
}

.sa-proof img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.sa-proof__open,
.sa-proof__file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9f1239;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.sa-seller-view a.pickup-pin-btn {
  text-decoration: none;
}

.sa-proof--empty {
  flex-direction: row;
  align-items: center;
  color: #8b9099;
  font-size: 0.82rem;
}

.sa-seller-view .save-bar {
  position: sticky;
  bottom: 0.75rem;
}

@media (max-width: 900px) {
  .sa-seller-view .set-grid {
    grid-template-columns: 1fr;
  }

  .sa-seller-view .set-nav {
    position: static;
  }

  .sa-seller-view .field-grid {
    grid-template-columns: 1fr;
  }
}

/* Sellers directory */
.sa-sellers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1480px;
  margin: 0 auto;
}

.sa-sellers-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.sa-sellers-create {
  flex-shrink: 0;
  min-height: 2.4rem;
}

.sa-sellers-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--sa-line, #ebe9e4);
  border-radius: 12px;
  box-shadow: var(--sa-shadow, 0 1px 2px rgba(16, 24, 40, 0.04));
}

.sa-sellers-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 280px;
  min-width: 220px;
  margin: 0;
}

.sa-sellers-search i {
  position: absolute;
  left: 0.75rem;
  color: var(--sa-muted, #737780);
  pointer-events: none;
}

.sa-sellers-search input {
  width: 100%;
  min-height: 2.3rem;
  padding: 0.45rem 0.8rem 0.45rem 2.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f7f6f3;
  color: var(--sa-ink, #16181d);
  font: inherit;
  font-size: 0.875rem;
}

.sa-sellers-search input:focus,
.sa-sellers-filters .sa-dash-select select:focus {
  outline: 2px solid var(--sa-brand-soft, rgba(229, 57, 53, 0.08));
  border-color: var(--sa-brand, #e53935);
}

.sa-sellers-card {
  gap: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.seller-admin-body .seller-table-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.seller-admin-body .seller-table,
.seller-admin-body .sa-dash-table {
  border-collapse: separate;
  border-spacing: 0 0.45rem;
}

.seller-admin-body .seller-table thead th,
.seller-admin-body .sa-dash-table thead th {
  background: #fff;
  border-top: 1px solid #ebe9e4;
  border-bottom: 1px solid #ebe9e4;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  color: #5c616a;
}

.seller-admin-body .seller-table thead th:first-child,
.seller-admin-body .sa-dash-table thead th:first-child {
  border-left: 1px solid #ebe9e4;
  border-radius: 12px 0 0 12px;
}

.seller-admin-body .seller-table thead th:last-child,
.seller-admin-body .sa-dash-table thead th:last-child {
  border-right: 1px solid #ebe9e4;
  border-radius: 0 12px 12px 0;
}

.seller-admin-body .seller-table tbody td,
.seller-admin-body .sa-dash-table tbody td {
  background: #fff;
  border-top: 1px solid #ebe9e4;
  border-bottom: 1px solid #ebe9e4;
  vertical-align: middle;
}

.seller-admin-body .seller-table tbody td:first-child,
.seller-admin-body .sa-dash-table tbody td:first-child {
  border-left: 1px solid #ebe9e4;
  border-radius: 12px 0 0 12px;
}

.seller-admin-body .seller-table tbody td:last-child,
.seller-admin-body .sa-dash-table tbody td:last-child {
  border-right: 1px solid #ebe9e4;
  border-radius: 0 12px 12px 0;
}

.seller-admin-body .seller-table tbody tr:hover td,
.seller-admin-body .sa-dash-table tbody tr:hover td {
  background: #fff;
  border-color: #e4d5d3;
}

.seller-admin-body .seller-table-card .tbl-foot,
.sa-sellers-card .tbl-foot {
  margin: 0.15rem 0 0;
  padding: 0.85rem 0.25rem;
  border-top: 0;
}

.sa-sellers-card .sa-dash-table-wrap,
.seller-admin-body .sa-dash-card--flush .sa-dash-table-wrap {
  margin: 0;
}

.sa-sellers-contact {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sa-sellers-contact span,
.sa-sellers-location {
  font-size: 0.86rem;
}

.sa-sellers-contact small {
  color: var(--sa-muted, #737780);
  font-size: 0.76rem;
}

.sa-sellers-gstin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--sa-ink-2, #3f434b);
}

.sa-sellers-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.sa-sellers-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sa-sellers-status.is-ok { background: #e8f6ed; color: #15803d; }
.sa-sellers-status.is-pending { background: #fff7ed; color: #c2410c; }
.sa-sellers-status.is-off { background: #fdecec; color: #c62828; }

.sa-dash-seller__avatar.is-ok { background: #e8f6ed; color: #15803d; }
.sa-dash-seller__avatar.is-pending { background: #fff7ed; color: #c2410c; }
.sa-dash-seller__avatar.is-off { background: #fdecec; color: #c62828; }

.sa-sellers-table__actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.sa-sellers-table__actions form {
  display: none;
}

.sa-dash-iconbtn.is-approve:hover {
  border-color: #15803d;
  color: #15803d;
}

.sa-dash-iconbtn.is-suspend:hover {
  border-color: #c62828;
  color: #c62828;
}

.seller-orders-page .order-status-bar__dot.is-approval { background: #f59e0b; }
.seller-orders-page .order-status-bar__dot.is-active { background: #22c55e; }
.seller-orders-page .order-status-bar__dot.is-drafts { background: #6366f1; }
.seller-orders-page .order-status-bar__dot.is-disabled { background: #94a3b8; }

.sa-product-hint {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #f3d7a1;
  border-radius: 12px;
  background: #fff8eb;
  color: #8a5a12;
  font-size: 0.92rem;
}

.sa-product-thumb-link {
  display: inline-flex;
}

.sa-product-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f4f5;
  border: 1px solid #eceae6;
}

.sa-product-thumb--lg {
  width: 88px;
  height: 88px;
}

.sa-product-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
}

.seller-table-clip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-badge--revision {
  background: #fde8e8;
  color: #c62828;
}

.seller-badge--product-1 { background: #e8f6ed; color: #15803d; }
.seller-badge--product-2 { background: #eef2ff; color: #3730a3; }
.seller-badge--product-3 { background: #fff7ed; color: #c2410c; }
.seller-badge--product-4 { background: #fff7ed; color: #c2410c; }
.seller-badge--product-0 { background: #f3f4f6; color: #6b7280; }

.seller-admin-body td .seller-btn + .seller-btn,
.seller-admin-body td form + .seller-btn {
  margin-left: 0.35rem;
}

.sa-change-log {
  margin: 1rem 0;
  padding: 1rem 1.1rem 0.25rem;
}

.sa-change-log__value {
  white-space: pre-wrap;
  max-width: 28rem;
  vertical-align: top;
}

.sa-change-log__images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sa-log-sku {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.sa-log-table th:nth-child(4),
.sa-log-table td:nth-child(4),
.sa-log-table th:nth-child(5),
.sa-log-table td:nth-child(5) {
  white-space: nowrap;
}

.sa-stock-log-table th:nth-child(4),
.sa-stock-log-table td:nth-child(4),
.sa-stock-log-table th:nth-child(5),
.sa-stock-log-table td:nth-child(5) {
  white-space: nowrap;
}

.sa-log-modal {
  max-width: 860px;
}

.sa-log-modal .modal-um__body {
  max-height: min(70vh, 640px);
  overflow: auto;
}

.sa-log-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
  color: #6b7280;
  font-size: 0.86rem;
}

.sa-log-detail__note {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.sa-log-detail__table {
  overflow: auto;
  margin-bottom: 0.9rem;
  border: 1px solid var(--sa-line, #e7e5e4);
  border-radius: 12px;
}

.sa-seller-warehouses .sec + .sec {
  margin-top: 1rem;
}

.sa-wh-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
}

.sa-wh-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--sa-line, #e7e5e4);
  border-radius: 12px;
  background: #fff;
}

.sa-wh-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sa-wh-card__top strong {
  font-size: 1rem;
}

.sa-wh-card__code {
  margin-top: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: #3f434b;
}

.sa-wh-card p {
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.sa-wh-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.sa-wh-edit {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.sa-wh-modal {
  max-width: 680px;
  max-height: min(92vh, 820px);
  overflow: auto;
}

.sa-wh-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
}

.sa-wh-modal-grid .is-wide {
  grid-column: 1 / -1;
}

.sa-wh-modal .modal-um__foot {
  margin: 0.25rem -24px -20px;
}

.sa-wh-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .sa-wh-modal-grid {
    grid-template-columns: 1fr;
  }
}

.sa-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sa-hsn-result {
  margin-bottom: 1rem;
}

.sa-hsn-columns {
  margin-top: 1.25rem;
}

.seller-admin-body .seller-form-field input[type="file"].seller-product-input {
  padding: 0.45rem 0.7rem;
}

.seller-admin-body .sa-ticket-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line, #ececea);
}

.seller-admin-body .sa-ticket-filters .seller-search {
  flex: 1 1 14rem;
  min-width: 0;
}

.seller-admin-body .sa-ticket-table-wrap {
  overflow-x: auto;
}

.seller-admin-body .page-help .help-card .card__head {
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .seller-admin-body .page-help .help-kpi,
  .seller-admin-body .page-help .help-grid,
  .seller-admin-body .page-ticket-view .tv-grid {
    grid-template-columns: 1fr;
  }

  .seller-admin-body .page-help .help-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sa-note-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.sa-note-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.sa-note-actions form {
  margin: 0;
}

.sa-note-table th:nth-child(3),
.sa-note-table td:nth-child(3),
.sa-note-table th:nth-child(4),
.sa-note-table td:nth-child(4) {
  white-space: nowrap;
}

.sa-note-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.85rem 0 1rem;
  font-size: 0.92rem;
}

.sa-note-view-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sa-note-card--view .seller-form-field input,
.sa-note-card--view .sa-note-items input {
  width: 100%;
  border: 1px solid #e6e4e0;
  border-radius: 8px;
  padding: 0.62rem 0.75rem;
  background: #f3f4f6;
  color: #44403c;
  font: inherit;
  font-size: 0.9rem;
}

.seller-admin-body .sa-note-card.seller-table-card {
  background: #fff;
  border: 1px solid #eceae6;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 1.35rem 1.4rem 1.2rem;
}

.sa-note-form .seller-select,
.sa-note-form textarea,
.sa-note-form .sa-note-order input[type="search"] {
  width: 100%;
  border: 1px solid #e6e4e0;
  border-radius: 8px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: inherit;
}

.sa-note-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.sa-note-form .seller-form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #1c1917;
}

.sa-note-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 1.15rem;
}

.sa-note-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.sa-note-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  margin: 0.35rem 0 0.25rem auto;
  max-width: 280px;
}

.sa-note-summary__row {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: #1c1917;
}

.sa-note-summary__row input {
  width: 100%;
  border: 1px solid #e6e4e0;
  border-radius: 8px;
  background: #f3f4f6;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  color: #57534e;
}

.seller-admin-body .sa-note-card .sa-note-add {
  margin: 0.15rem 0 1rem;
  border-radius: 8px;
  background: #fff;
}

.sa-note-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.1rem;
}

.sa-note-order {
  position: relative;
}

.sa-note-order input[type="search"] {
  width: 100%;
  border: 1px solid var(--seller-border, #e7e5e4);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  background: #fff;
}

.sa-note-order input[type="search"]:disabled {
  background: #f5f5f4;
  color: #a8a29e;
}

.sa-note-order-hint,
.sa-note-rate-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #78716c;
}

.sa-note-order-results {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: 4.35rem;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20, 22, 26, 0.12);
}

.sa-note-order-results button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-bottom: 1px solid #f5f5f4;
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.sa-note-order-results button:hover,
.sa-note-order-results button:focus {
  background: #2563eb;
  color: #fff;
}

.sa-note-order-empty {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.84rem;
  color: #78716c;
}

.sa-note-items-wrap {
  overflow-x: auto;
}

.sa-note-items {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.sa-note-items th,
.sa-note-items td {
  padding: 0.5rem 0.45rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eceae6;
}

.sa-note-items th {
  font-size: 0.88rem;
  font-weight: 650;
  color: #1c1917;
}

.sa-note-items select,
.sa-note-items input {
  width: 100%;
  border: 1px solid #e6e4e0;
  border-radius: 8px;
  padding: 0.48rem 0.55rem;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
}

.sa-note-items th:nth-child(3),
.sa-note-items th:nth-child(4),
.sa-note-items th:nth-child(5),
.sa-note-items td:nth-child(3),
.sa-note-items td:nth-child(4),
.sa-note-items td:nth-child(5) {
  width: 96px;
}

.sa-note-items input[readonly] {
  background: #f5f5f4;
}

.sa-note-other-name {
  margin-top: 0.35rem;
}

.sa-note-other-name[hidden] {
  display: none;
}

.sa-note-items th:first-child,
.sa-note-items td:first-child {
  min-width: 360px;
}

.sa-note-lines-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 0.7rem;
}

.sa-note-lines-head h2 {
  margin: 0;
  font-size: 1rem;
}

.sa-note-line {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.55fr 0.7fr 0.6fr 1.6fr auto;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 0.65rem;
}

.sa-note-line label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.sa-note-line__remove {
  width: auto;
  min-width: 2.4rem;
  justify-self: start;
}

.sa-note-line input,
.sa-note-line select {
  width: 100%;
  border: 1px solid var(--seller-border, #e7e5e4);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: inherit;
  background: #fff;
}

@media (max-width: 1100px) {
  .sa-note-selects,
  .sa-note-notes {
    grid-template-columns: 1fr;
  }

  .sa-note-summary {
    max-width: none;
  }

  .sa-note-line {
    grid-template-columns: 1fr 1fr 0.6fr 0.7fr;
  }
}

@media (max-width: 900px) {
  .sa-sellers-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sa-sellers-filters {
    width: 100%;
  }

  .sa-note-line {
    grid-template-columns: 1fr 1fr;
  }
}

.seller-admin-body .sa-user-card {
  background: #fff;
  border: 1px solid #eceae6;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 1.35rem 1.4rem 1.2rem;
}

.sa-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1.25rem;
}

.sa-user-card .seller-form-field {
  margin-bottom: 0.85rem;
}

.sa-user-card .seller-form-field input,
.sa-user-card .seller-form-field textarea {
  width: 100%;
  border: 1px solid #e6e4e0;
  border-radius: 8px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: inherit;
}

.sa-user-hint {
  margin: 0.35rem 0 0;
  color: #6b6f78;
  font-size: 0.8rem;
  line-height: 1.4;
}

.sa-user-enable {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.35rem 0 1.15rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #eceae6;
  border-radius: 10px;
  background: #fafaf9;
  cursor: pointer;
}

.sa-user-enable input {
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
}

.sa-user-enable span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sa-user-enable strong {
  font-size: 0.9rem;
}

.sa-user-enable small {
  color: #6b6f78;
  font-size: 0.8rem;
}

.sa-user-roles__head h2 {
  margin: 0;
  font-size: 1rem;
}

.sa-user-roles__head p {
  margin: 0.2rem 0 0.75rem;
  color: #6b6f78;
  font-size: 0.84rem;
}

.sa-user-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}

.sa-user-role {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #eceae6;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.sa-user-role input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: 0 0 auto;
}

.sa-user-role:has(input:checked) {
  border-color: #e53935;
  background: #fff7f7;
}

.sa-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .sa-user-grid {
    grid-template-columns: 1fr;
  }

  .sa-user-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

.sa-settle-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sa-settle-kpi {
  background: #fff;
  border: 1px solid #eceae6;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sa-settle-kpi span {
  display: block;
  color: #6b6f78;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.sa-settle-kpi strong {
  font-size: 1.15rem;
  font-weight: 650;
}

.sa-settle-edit {
  margin-bottom: 1rem;
}

.sa-settle-sub {
  color: #6b6f78;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.sa-amt--debit {
  color: #c62828;
}

.sa-amt--credit {
  color: #1b7f4a;
}

.sa-note-actions form {
  display: inline-flex;
  margin: 0;
}


