.sales-fulfillment-page {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  color: var(--suya-text, #172b4d);
}

.ledger-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.ledger-section-head h2 {
  margin: 3px 0 4px;
  color: var(--suya-text, #172b4d);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.ledger-section-head p {
  margin: 0;
  color: var(--suya-text-secondary, #64748b);
  font-size: 13px;
}

.ledger-eyebrow {
  color: var(--suya-primary, #0f766e);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.ledger-readonly-chip {
  flex: 0 0 auto;
  margin-top: 4px;
}

.ledger-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  transition: opacity .18s ease;
}

.ledger-stat-grid.is-loading { opacity: .58; }

.ledger-stat-card {
  min-height: 102px;
  padding: 16px 18px;
}

.ledger-stat-card .stat-val {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
}

.ledger-stat-helper {
  margin-top: 6px;
  color: var(--suya-text-muted, #94a3b8);
  font-size: 11px;
}

.ledger-filter-bar {
  align-items: center;
  margin-bottom: 0;
}

.ledger-filter-bar .el-input,
.ledger-filter-bar .el-select {
  flex: 0 0 auto;
  min-width: 0;
}

.ledger-table-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.ledger-table-card.is-loading .ledger-table {
  opacity: .6;
  pointer-events: none;
}

.ledger-table-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--suya-border-light, #e2e8f0);
  background: var(--suya-surface, #fff);
}

.ledger-table-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ledger-table-toolbar strong {
  color: var(--suya-text, #172b4d);
  font-size: 14px;
}

.ledger-table-toolbar span {
  color: var(--suya-text-secondary, #64748b);
  font-size: 12px;
}

.ledger-error-text {
  color: #b91c1c !important;
  font-weight: 600;
}

.ledger-table {
  --el-table-border-color: var(--suya-border-light, #e2e8f0);
  border-radius: 0 !important;
}

.ledger-table .el-table__header-wrapper th.el-table__cell {
  height: 44px;
}

.ledger-table .el-table__body-wrapper td.el-table__cell {
  padding-block: 10px;
  vertical-align: top;
}

.ledger-cell-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ledger-cell-sub {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--suya-text-secondary, #64748b);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-order-link {
  color: var(--suya-primary, #0f766e);
  font-weight: 700;
  text-decoration: none;
}

.ledger-order-link:hover { text-decoration: underline; }

.ledger-number {
  color: var(--suya-text, #172b4d);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.ledger-reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ledger-loading-overlay {
  position: absolute;
  inset: 54px 0 52px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--suya-primary-dark, #115e59);
  font-size: 13px;
  font-weight: 650;
  background: rgba(248, 250, 252, .72);
  backdrop-filter: blur(1px);
}

.ledger-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 118, 110, .2);
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: ledger-spin .72s linear infinite;
}

.ledger-pagination {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 14px;
  border-top: 1px solid var(--suya-border-light, #e2e8f0);
  background: var(--suya-surface, #fff);
}

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

@media (max-width: 1280px) {
  .ledger-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ledger-spinner { animation-duration: 1.5s; }
}

