/* ============================================================
   page-vendor-import.css — vendor_stockout Excel 匯入
   group: monitor · uses ewoooc-tokens-v2-alias
   ============================================================ */

.stockout-import-stack { display: grid; gap: 22px; }

.stockout-import-header,
.stockout-upload-panel,
.stockout-import-card {
  background: var(--momo-bg-surface);
  border: 1px solid var(--momo-border-light);
  border-radius: 8px;
}

.stockout-import-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 18px;
  padding: 22px;
}

.stockout-import-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: var(--momo-accent-strong);
  background: var(--momo-accent-soft);
  border-radius: var(--momo-radius-pill);
  font-size: 11px;
  font-weight: 800;
}

.stockout-import-title {
  margin: 0;
  color: var(--momo-text-primary);
  font-size: 30px;
  font-weight: 800;
}

.stockout-import-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--momo-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.stockout-import-actions,
.stockout-result-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stockout-import-actions.is-header,
.stockout-import-actions.is-result {
  margin-top: 14px;
}

.stockout-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  color: var(--momo-text-primary);
  background: var(--momo-bg-paper);
  border: 1px solid var(--momo-border-light);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--momo-transition-base);
}

.stockout-action:hover {
  color: var(--momo-text-primary);
  border-color: var(--momo-border-strong);
  transform: translateY(-1px);
}

.stockout-action.is-primary {
  color: var(--momo-text-inverse);
  background: var(--momo-ink);
  border-color: var(--momo-ink);
}

.stockout-file-picker {
  margin-top: 14px;
}

.stockout-import-note {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--momo-text-inverse);
  background: var(--momo-ink);
  border-radius: 8px;
}

.stockout-import-note-label {
  color: rgba(250, 247, 240, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.stockout-import-note-value {
  color: var(--momo-text-inverse);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.stockout-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 0;
  overflow: hidden;
}

.stockout-dropzone {
  display: grid;
  min-height: 330px;
  cursor: pointer;
  place-items: center;
  padding: 30px;
  background: var(--momo-bg-surface);
  border: 0;
  border-right: 1px solid var(--momo-border-light);
  transition: var(--momo-transition-base);
}

.stockout-dropzone:hover,
.stockout-dropzone.is-dragover {
  background: var(--momo-bg-paper);
}

.stockout-dropzone-inner {
  max-width: 520px;
  text-align: center;
}

.stockout-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--momo-accent-strong);
  background: var(--momo-accent-soft);
  border-radius: 8px;
  font-size: 24px;
}

.stockout-dropzone-title {
  margin: 18px 0 8px;
  color: var(--momo-text-primary);
  font-size: 20px;
  font-weight: 800;
}

.stockout-dropzone-subtitle {
  margin: 0;
  color: var(--momo-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.stockout-import-side {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  background: var(--momo-bg-paper);
}

.stockout-import-card { padding: 16px; }

.stockout-card-label {
  color: var(--momo-text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.stockout-card-title {
  margin-top: 8px;
  color: var(--momo-text-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.stockout-card-meta {
  margin-top: 8px;
  color: var(--momo-text-tertiary);
  font-size: 12px;
  line-height: 1.7;
}

.stockout-file-panel,
.stockout-progress-panel,
.stockout-result-panel,
.stockout-error-panel {
  display: none;
  padding: 18px;
  background: var(--momo-bg-surface);
  border: 1px solid var(--momo-border-light);
  border-radius: 8px;
}

.stockout-file-panel.is-visible,
.stockout-progress-panel.is-visible,
.stockout-result-panel.is-visible,
.stockout-error-panel.is-visible {
  display: block;
}

.stockout-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stockout-file-name {
  color: var(--momo-text-primary);
  font-size: 14px;
  font-weight: 800;
  word-break: break-word;
}

.stockout-file-size {
  color: var(--momo-text-tertiary);
  font-size: 11px;
  white-space: nowrap;
}

.stockout-progress-track {
  height: 8px;
  overflow: hidden;
  background: var(--momo-bg-paper);
  border: 1px solid var(--momo-border-light);
  border-radius: var(--momo-radius-pill);
}

.stockout-progress-label {
  margin-bottom: 8px;
}

.stockout-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--momo-accent);
  animation: stockout-pulse 1.1s ease-in-out infinite alternate;
}

.stockout-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stockout-result-cell {
  padding: 14px;
  background: var(--momo-bg-paper);
  border: 1px solid var(--momo-border-light);
  border-radius: 6px;
}

.stockout-result-value {
  color: var(--momo-text-primary);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.stockout-result-label {
  margin-top: 8px;
  color: var(--momo-text-secondary);
  font-size: 11px;
}

.stockout-batch-id {
  margin-top: 14px;
  color: var(--momo-text-secondary);
  font-size: 12px;
}

.stockout-error-panel {
  color: var(--momo-danger);
  background: rgba(214, 83, 68, 0.08);
  border-color: rgba(214, 83, 68, 0.22);
}

@keyframes stockout-pulse {
  from { opacity: 0.48; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .stockout-import-header,
  .stockout-upload-panel { grid-template-columns: 1fr; }
  .stockout-dropzone {
    border-right: 0;
    border-bottom: 1px solid var(--momo-border-light);
  }
}

@media (max-width: 720px) {
  .stockout-import-stack {
    gap: 14px;
  }

  .stockout-import-header {
    gap: 14px;
    padding: 16px;
  }

  .stockout-import-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stockout-action {
    min-height: 36px;
    padding: 8px 10px;
  }

  .stockout-import-note {
    gap: 6px;
    padding: 12px;
  }

  .stockout-import-note-value {
    font-size: 15px;
    line-height: 1.45;
  }

  .stockout-dropzone {
    min-height: 240px;
    padding: 18px;
  }

  .stockout-upload-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .stockout-dropzone-title {
    margin: 14px 0 6px;
    font-size: 18px;
  }

  .stockout-dropzone-subtitle {
    font-size: 12px;
    line-height: 1.6;
  }

  .stockout-file-picker {
    margin-top: 12px;
  }

  .stockout-import-side {
    gap: 8px;
    padding: 12px;
  }

  .stockout-import-card,
  .stockout-file-panel,
  .stockout-progress-panel,
  .stockout-result-panel,
  .stockout-error-panel {
    padding: 12px;
  }

  .stockout-file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stockout-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stockout-result-cell {
    padding: 12px;
  }

  .stockout-result-value {
    font-size: 22px;
  }

  .stockout-import-title { font-size: 26px; }
}

@media (max-width: 420px) {
  .stockout-import-title {
    font-size: 24px;
  }

  .stockout-import-subtitle {
    font-size: 12px;
  }

  .stockout-dropzone {
    min-height: 220px;
    padding: 16px;
  }
}
