
/* ===== E 批次：细节体验（ui-polish.js） ===== */
.oa-toast--with-actions {
  text-align: left;
  padding: 14px 18px;
}
.oa-toast__message {
  line-height: 1.45;
}
.oa-toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}
.oa-toast__action-btn {
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  background: rgba(255, 255, 255, 0.65);
  color: inherit;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.oa-toast__action-btn--primary {
  background: currentColor;
  color: #fff;
  border-color: transparent;
}
.oa-toast--error .oa-toast__action-btn--primary {
  background: #b91c1c;
}
.oa-toast--success .oa-toast__action-btn--primary {
  background: #047857;
}

.btn--loading {
  opacity: 0.82;
  cursor: wait;
}
.btn--saved-flash {
  background: color-mix(in srgb, var(--ds-success, #16a34a) 14%, #fff) !important;
  border-color: color-mix(in srgb, var(--ds-success, #16a34a) 35%, var(--ds-border, #e2e8f0)) !important;
}

.ui-doc-no,
.ui-doc-no-wrap .approval-doc-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  letter-spacing: -0.01em;
}
.ui-doc-no-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}
.ui-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-default-tertiary, #94a3b8);
  cursor: pointer;
  flex-shrink: 0;
}
.ui-copy-btn:hover {
  background: color-mix(in srgb, var(--ds-brand, #2563eb) 10%, #fff);
  color: var(--ds-brand, #2563eb);
}
.ui-copy-btn__icon {
  font-size: 14px;
  line-height: 1;
}

.ui-num--money {
  display: inline-block;
  min-width: 4.5em;
}
.ui-num--neg {
  color: var(--ds-danger-emphasis, #b91c1c);
}
.table--polish .ui-num--money,
.table--polish td.text-right,
.table--polish th.text-right {
  font-variant-numeric: tabular-nums;
}

.table--sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ds-bg-surface, #fff);
  box-shadow: 0 1px 0 var(--ds-border, #e2e8f0);
}

.ui-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.ui-status-pill--pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.ui-status-pill--progress {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}
.ui-status-pill--done {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}
.ui-status-pill--rejected {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.ui-status-pill--draft,
.ui-status-pill--neutral {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.ui-flow-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin: 0 0 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ds-brand, #2563eb) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--ds-brand, #2563eb) 18%, var(--ds-border, #e2e8f0));
  font-size: 13px;
  color: var(--ds-text, #334155);
}
.ui-flow-context__sep {
  color: var(--text-default-tertiary, #94a3b8);
}
.ui-flow-context__part strong {
  font-weight: 600;
  color: var(--ds-text-emphasis, #0f172a);
}

.ui-last-saved {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-default-tertiary, #94a3b8);
}

.ui-attach-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px;
  border: 1.5px dashed var(--ds-border, #cbd5e1);
  border-radius: 10px;
  background: var(--background-default-secondary, #f8fafc);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ui-attach-zone:hover,
.ui-attach-zone:focus-within {
  border-color: color-mix(in srgb, var(--ds-brand, #2563eb) 45%, var(--ds-border));
  background: color-mix(in srgb, var(--ds-brand, #2563eb) 4%, #fff);
}
.ui-attach-zone--compact {
  padding: 12px;
}
.ui-attach-zone__icon {
  font-size: 22px;
  line-height: 1;
  opacity: 0.75;
}
.ui-attach-zone__hint {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text, #334155);
}
.ui-attach-zone__formats {
  margin: 0;
  font-size: 11px;
  color: var(--text-default-tertiary, #94a3b8);
}

@media (max-width: 1024px) {
  .table--workbench.table--polish {
    min-width: 720px;
  }
  .table-container--scroll-hint::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(to left, rgba(248, 250, 252, 0.95), transparent);
  }
  .table-container--scroll-hint {
    position: relative;
  }
}

/* ===== 不符合标准玉米处置 ===== */
.nsc-disposal-page .nsc-disposal-card {
  border: 1px solid var(--ds-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.nsc-disposal-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ds-border, #e2e8f0);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.nsc-disposal-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-text-emphasis, #0f172a);
}
.nsc-disposal-card__subtitle {
  margin-top: 4px !important;
  font-size: 13px;
  color: var(--text-default-secondary, #64748b);
  max-width: 42rem;
}
.nsc-disposal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
}
.nsc-disposal-legend__sep {
  color: #cbd5e1;
}
.nsc-disposal-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nsc-disposal-legend__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.nsc-disposal-legend__badge--return { background: #ea580c; }
.nsc-disposal-legend__badge--sold { background: #059669; }
.nsc-disposal-legend__badge--waived { background: #64748b; }
.nsc-disposal-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.nsc-disposal-table {
  margin: 0;
  font-size: 13px;
}
.nsc-disposal-table thead th {
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
}
.nsc-disposal-table tbody td {
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  padding-top: 10px;
  padding-bottom: 10px;
}
.nsc-disposal-table tbody tr:last-child td {
  border-bottom: none;
}
.nsc-disposal-table tbody tr:hover {
  background: #fafbfc;
}
.nsc-disposal-table__actions-col {
  min-width: 15.5rem;
  white-space: nowrap;
}
.nsc-disposal-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 600;
}
.nsc-disposal-task {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
}
.nsc-disposal-kg {
  font-weight: 600;
  color: #0f172a;
}
.nsc-disposal-inbound {
  font-size: 12px;
}
.nsc-disposal-time {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.nsc-disposal-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.nsc-disposal-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.nsc-disposal-act:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.nsc-disposal-act:active {
  background: #f1f5f9;
}
.nsc-disposal-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}
.nsc-disposal-empty__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #cbd5e1;
}
.nsc-disposal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nsc-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}
.nsc-status-badge--return {
  background: #ffedd5;
  color: #c2410c;
}
.nsc-status-badge--sold {
  background: #d1fae5;
  color: #047857;
}
.nsc-status-badge--waived {
  background: #e2e8f0;
  color: #64748b;
}
