/* ========== 全局 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.6;
}

/* ========== 导航 ========== */
.navbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.nav-logo { font-size: 24px; }

.nav-tabs { display: flex; gap: 4px; }

.nav-tab {
  padding: 8px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
  transition: all 0.2s;
}

.nav-tab:hover { background: var(--gray-100); }
.nav-tab.active {
  background: var(--primary);
  color: white;
}

.nav-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-500);
}

.nav-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-stats .stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ========== 视图 ========== */
.view { display: none; padding: 24px; max-width: 960px; margin: 0 auto; }
.view.active { display: block; }

/* ========== 表单 ========== */
.form-container {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.form-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.form-header h2 { font-size: 20px; color: var(--gray-900); }
.form-header p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.form-section {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-100);
}

.form-section:last-of-type { border-bottom: none; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.section-icon { font-size: 20px; }
.section-title h3 { font-size: 16px; font-weight: 600; color: var(--gray-800); }

.toggle-label {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 400;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { grid-column: 1 / -1; }

.form-item label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.req { color: var(--danger); }

.form-item input,
.form-item select,
.form-item textarea {
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  color: var(--gray-800);
  font-family: inherit;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-item input::placeholder,
.form-item textarea::placeholder {
  color: var(--gray-400);
}

/* ========== 营养表 ========== */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.nutrition-table th {
  background: var(--gray-100);
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}

.nutrition-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-100);
}

.nutrition-table input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 13px;
}

.btn-add-nutrition {
  padding: 8px 16px;
  border: 1px dashed var(--gray-300);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--gray-600);
  font-size: 13px;
  transition: all 0.2s;
}

.btn-add-nutrition:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-remove-nutrition {
  padding: 4px 10px;
  border: none;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* ========== 文件上传 ========== */
.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-placeholder { color: var(--gray-500); }
.upload-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.upload-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

.file-list { margin-top: 12px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 6px;
  font-size: 13px;
}

.file-item .file-icon { font-size: 18px; }
.file-item .file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .file-size { color: var(--gray-400); font-size: 12px; }
.file-item .file-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

/* ========== 按钮 ========== */
.form-actions {
  padding: 24px 32px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: white;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-100); }

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover { background: #15803d; }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #b91c1c; }

/* ========== 成功弹窗 ========== */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.success-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.success-icon { font-size: 48px; margin-bottom: 16px; }
.success-content h3 { font-size: 20px; margin-bottom: 8px; }
.success-content p { color: var(--gray-500); margin-bottom: 24px; }
.success-content .btn { margin: 0 6px; }

/* ========== 审核列表 ========== */
.review-container { max-width: 960px; margin: 0 auto; }

.review-header { margin-bottom: 20px; }
.review-header h2 { font-size: 20px; margin-bottom: 16px; }

.review-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group { display: flex; gap: 4px; }

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  background: white;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-600);
  transition: all 0.2s;
}

.filter-btn .count {
  display: inline-block;
  background: var(--gray-100);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 4px;
}

.filter-btn:hover { background: var(--gray-50); }

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.filter-btn.active .count { background: rgba(255,255,255,0.2); }

.search-box input {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  width: 240px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 提报卡片 */
.review-list { display: flex; flex-direction: column; gap: 12px; }

.review-card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
  border-left: 4px solid var(--gray-300);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.review-card.status-pending { border-left-color: var(--warning); }
.review-card.status-approved { border-left-color: var(--success); }
.review-card.status-rejected { border-left-color: var(--danger); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.card-brand {
  font-size: 13px;
  color: var(--gray-500);
  margin-left: 8px;
}

.status-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.pending { background: var(--warning-light); color: #92400e; }
.status-badge.approved { background: var(--success-light); color: #166534; }
.status-badge.rejected { background: var(--danger-light); color: #991b1b; }

.card-info {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--gray-600);
  flex-wrap: wrap;
}

.card-info span { display: flex; align-items: center; gap: 4px; }
.card-info .info-label { color: var(--gray-400); }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  font-size: 12px;
  color: var(--gray-400);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }

/* ========== 详情弹窗 ========== */
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.detail-content {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-header h3 { font-size: 18px; }

.detail-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px 8px;
}
.detail-close:hover { color: var(--gray-600); }

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-field .field-label {
  font-size: 12px;
  color: var(--gray-400);
}

.detail-field .field-value {
  font-size: 14px;
  color: var(--gray-800);
}

.detail-nutrition {
  width: 100%;
  border-collapse: collapse;
}

.detail-nutrition th, .detail-nutrition td {
  padding: 6px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}

.detail-nutrition th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
}

.detail-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 13px;
}

.detail-file a {
  color: var(--primary);
  text-decoration: none;
}
.detail-file a:hover { text-decoration: underline; }

.detail-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.review-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
  resize: vertical;
  font-family: inherit;
}

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .navbar { padding: 0 12px; }
  .nav-brand span:last-child { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .review-filters { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .form-section, .form-actions, .form-header { padding: 16px; }
}

/* ========== 新增：价格块/上传块/提示 ========== */
.section-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}

.price-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.price-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.price-block .form-grid { margin-bottom: 12px; }

.upload-block {
  margin-bottom: 20px;
}

.upload-block:last-child { margin-bottom: 0; }

.upload-block-header {
  margin-bottom: 8px;
}

.upload-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.upload-block-title .req {
  font-size: 12px;
  font-weight: 400;
  color: var(--danger);
  margin-left: 4px;
}

.file-upload-area.compact {
  padding: 20px;
}

.file-upload-area.compact .upload-icon { font-size: 24px; }
.file-upload-area.compact p { font-size: 13px; }

/* 价格渠道标签 */
.price-channel-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}

.price-channel-label.offline { background: var(--warning-light); color: #92400e; }
.price-channel-label.hypermarket { background: var(--primary-light); color: var(--primary-dark); }
.price-channel-label.online { background: var(--success-light); color: #166534; }

/* 详情中的文件展示 */
.detail-file-group {
  margin-bottom: 16px;
}

.detail-file-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.detail-file-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-file-images a {
  display: inline-block;
}

.detail-file-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

.detail-file-images .file-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
}

.detail-file-images .file-doc span {
  font-size: 28px;
}

/* 价格汇总展示 */
.price-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.price-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px;
  flex: 1;
  min-width: 140px;
}

.price-item .price-label {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.price-item .price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.price-item .price-remark {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ========== 营养分级 ========== */
.grade-badge {
  display: inline-block;
  padding: 1px 8px;
  margin-left: 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.grade-badge:empty { display: none; }

.grade-badge.low {
  background: var(--success-light);
  color: #166534;
  border-color: #86efac;
}

.grade-badge.mid {
  background: var(--warning-light);
  color: #92400e;
  border-color: #fcd34d;
}

.grade-badge.high {
  background: var(--danger-light);
  color: #991b1b;
  border-color: #fca5a5;
}

.grade-legend {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-600);
}

.grade-legend .legend-title { font-weight: 600; color: var(--gray-700); }
.grade-legend .legend-item { display: inline-flex; align-items: center; }
.grade-legend .legend-hint { color: var(--gray-500); font-size: 12px; }

.grade-table {
  margin-top: 12px;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.grade-table th, .grade-table td {
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  text-align: center;
}

.grade-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}

.grade-table th.col-low { color: #166534; background: var(--success-light); }
.grade-table th.col-mid { color: #92400e; background: var(--warning-light); }
.grade-table th.col-high { color: #991b1b; background: var(--danger-light); }

/* ========== 登录页 ========== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #a93226 100%);
  position: relative;
  overflow: hidden;
}

/* 背景装饰圆 */
.login-bg-deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.login-bg-deco-1 { width: 400px; height: 400px; top: -120px; right: -80px; }
.login-bg-deco-2 { width: 300px; height: 300px; bottom: -100px; left: -60px; }
.login-bg-deco-3 { width: 200px; height: 200px; top: 40%; left: 55%; background: rgba(255, 255, 255, 0.04); }

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.login-logo-img {
  width: 300px;
  max-width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 26px;
  box-sizing: content-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.login-header h1 {
  font-size: 22px;
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 2px;
}

.login-company {
  font-size: 12px;
  color: var(--gray-400);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.login-field input {
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.login-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
}

.login-btn {
  width: 100%;
  padding: 13px;
  font-size: 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  border: none;
  color: white;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.login-btn:hover {
  opacity: 0.92;
}

.login-btn:active {
  transform: scale(0.98);
}

.login-footer {
  margin-top: 24px;
  text-align: center;
}

.login-hint {
  font-size: 12px;
  color: var(--gray-400);
}

/* ========== 导航栏用户区域 ========== */
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.user-role {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.user-role.role-admin {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.user-role.role-supplier {
  background: var(--success-light);
  color: #166534;
}

.btn-logout {
  padding: 6px 14px;
  border: 1px solid var(--gray-300);
  background: white;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-600);
  transition: all 0.2s;
}

.btn-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

/* ========== 用户管理 ========== */
.user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s;
}

.user-card:hover {
  box-shadow: var(--shadow-md);
}

.user-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.user-self {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 400;
  margin-left: 4px;
}

.user-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  align-items: center;
}

.user-card-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ========== 用户编辑表单 ========== */
.user-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-form .form-item input,
.user-form .form-item select {
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
}

.user-form .form-item input:focus,
.user-form .form-item select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* navStats hidden by default for supplier */
.nav-stats:empty { display: none; }

/* 检测报告有效期 */
.report-validity {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff5f5;
  border: 1px dashed #e74c3c;
  border-radius: 8px;
  font-size: 13px;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.report-validity-label { font-weight: 600; }
.report-validity-date { font-weight: 600; font-family: monospace; }
.report-validity-sep { color: var(--gray-500); }
.report-validity-hint { margin-left: auto; font-size: 12px; color: var(--gray-500); }
.file-item-validity {
  display: block;
  font-size: 11px;
  color: #c0392b;
  margin-top: 2px;
}
.file-item-validity.warn { color: #e67e22; }
