/* 供应商管理 — 模块样式（基于 vehicle-management vm-*） */

@import '../../customer-management/styles/index.css';

.sm-page {
  padding-bottom: 48px;
}

.sm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--ln-muted);
}

.sm-breadcrumb-list {
  margin-bottom: 4px;
}

.sm-breadcrumb-muted {
  color: var(--ln-muted);
}

.sm-breadcrumb-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--ln-body);
  cursor: pointer;
  font: inherit;
}

.sm-breadcrumb-link:hover {
  color: var(--ln-primary);
}

.sm-breadcrumb-current {
  color: var(--ln-ink);
  font-weight: 500;
}

.sm-filter-card {
  margin-bottom: 16px;
}

.sm-table-wrap {
  overflow: auto;
}

.sm-table {
  min-width: 2200px;
}

.sm-col-code {
  min-width: 120px;
}

.sm-col-name {
  min-width: 180px;
}

.sm-col-credit {
  min-width: 180px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-col-address,
.sm-col-email,
.sm-col-remark {
  min-width: 180px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-col-time {
  min-width: 160px;
  white-space: nowrap;
}

.sm-col-actions {
  min-width: 168px;
}

.sticky-col-left {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--ln-surface-card);
}

.sticky-col-right {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--ln-surface-card);
}

.sm-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.sm-action-sep {
  color: var(--ln-hairline);
}

.sm-link-danger {
  color: var(--ln-error) !important;
}

.sm-name-link {
  font-weight: 500;
}

.sm-table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.sm-table-total {
  color: var(--ln-muted);
  font-size: 0.875rem;
}

.sm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--ln-radius-pill);
  font-size: 0.8125rem;
  background: var(--ln-canvas-soft);
}

.sm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sm-status-cooperated {
  color: #047857;
  background: #ecfdf5;
}

.sm-status-cooperated .sm-status-dot {
  background: #10b981;
}

.sm-status-negotiating {
  color: #b45309;
  background: #fffbeb;
}

.sm-status-negotiating .sm-status-dot {
  background: #f59e0b;
}

.sm-status-terminated {
  color: #b91c1c;
  background: #fef2f2;
}

.sm-status-terminated .sm-status-dot {
  background: #ef4444;
}

.sm-status-expired {
  color: #6b7280;
  background: #f3f4f6;
}

.sm-status-expired .sm-status-dot {
  background: #9ca3af;
}

.sm-create-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 80px;
}

.sm-form-card {
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card);
  box-shadow: var(--ln-shadow-soft);
  padding: 20px 24px 24px;
}

.sm-form-card-title {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ln-ink);
}

.sm-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
}

.sm-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sm-form-field-full {
  grid-column: 1 / -1;
}

.sm-form-label {
  font-size: 0.875rem;
  color: var(--ln-body);
}

.sm-required {
  color: var(--ln-error);
  margin-left: 2px;
}

.sm-form-hint {
  font-size: 0.75rem;
  color: var(--ln-muted);
}

.sm-input-disabled {
  background: var(--ln-surface-pearl) !important;
  color: var(--ln-muted) !important;
  cursor: not-allowed;
}

.sm-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.sm-upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sm-upload-zone {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sm-upload-files {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: var(--ln-muted);
}

.sm-select-placeholder {
  color: var(--ln-muted);
}

.sm-create-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  margin: 0 -32px -32px;
  background: var(--ln-surface-card);
  border-top: 1px solid var(--ln-hairline);
  box-shadow: 0 -2px 10px rgba(24, 24, 27, 0.05);
}

.sm-create-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 960px) {
  .sm-form-grid,
  .sm-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sm-form-grid,
  .sm-form-grid-2,
  .sm-upload-grid {
    grid-template-columns: 1fr;
  }
}
