/* ─── Operator suppliers dashboard ─────────────────────────────────────────── */

.op-sup-main {
  font-family: 'DM Sans', system-ui, sans-serif;
  max-width: 960px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.op-sup-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.op-sup-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.op-sup-headline {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.op-sup-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.op-sup-sub code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

.op-sup-refresh-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.op-sup-refresh-btn:hover:not(:disabled) {
  background: var(--bg-alt);
  border-color: var(--accent);
}

.op-sup-refresh-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ─── Form card ───────────────────────────────────────────────────────────── */

.op-sup-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.op-sup-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.op-sup-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.op-sup-batch-name,
.op-sup-csv {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  outline: none;
  transition: border-color 0.15s;
}

.op-sup-batch-name:focus,
.op-sup-csv:focus {
  border-color: var(--accent);
}

.op-sup-paste-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.op-sup-paste {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.7rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 160px;
  outline: none;
  transition: border-color 0.15s;
}

.op-sup-paste:focus {
  border-color: var(--accent);
}

.op-sup-paste.has-errors {
  border-color: #dc2626;
  background: #fef2f2;
}

.op-sup-parse-errors {
  font-size: 0.82rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.op-sup-upload-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.op-sup-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.op-sup-import-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.op-sup-import-btn:hover:not(:disabled) {
  background: var(--bg-alt);
  border-color: var(--accent);
}

.op-sup-import-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.op-sup-import-btn.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inv, #faf7f4);
}

.op-sup-import-btn.is-primary:hover:not(:disabled) {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}

/* ─── Result strip ─────────────────────────────────────────────────────────── */

.op-sup-result {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.op-sup-result-line {
  font-family: inherit;
}

.op-sup-result-success {
  color: #16a34a;
  font-weight: 500;
}

.op-sup-result-error {
  color: #dc2626;
  font-weight: 500;
}

.op-sup-result-failed-row {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Recent ingests section ───────────────────────────────────────────────── */

.op-sup-recent {
  margin-bottom: 2rem;
}

.op-sup-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.op-sup-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.op-sup-empty-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.op-sup-empty-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.op-sup-error {
  color: #dc2626;
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ─── Table ────────────────────────────────────────────────────────────────── */

.op-sup-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.88rem;
}

.op-sup-table thead th {
  text-align: left;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.op-sup-table thead th.op-sup-num-col {
  text-align: right;
}

.op-sup-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.op-sup-table tbody tr:last-child {
  border-bottom: none;
}

.op-sup-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.op-sup-table tbody td {
  padding: 0.55rem 0.85rem;
  color: var(--text);
  vertical-align: middle;
}

.op-sup-table tbody td.op-sup-num-col {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.op-sup-table tbody td.op-sup-sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--text);
}

.op-sup-table tbody td.op-sup-captured {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .op-sup-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .op-sup-actions {
    width: 100%;
  }
  .op-sup-import-btn {
    flex: 1 1 auto;
  }
  .op-sup-table thead th,
  .op-sup-table tbody td {
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
  }
}
