﻿:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --ink: #172033;
  --muted: #657087;
  --line: #e5e9f0;
  --surface: #ffffff;
  --background: #f4f7fb;
  --sidebar: #111c35;
  --sidebar-muted: #93a3bf;
  --shadow: 0 8px 24px rgba(30, 47, 80, 0.07);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 248px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--sidebar);
  transition: transform .25s ease;
}
.brand {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
}
.brand strong { display: block; font-size: 17px; }
.brand span { display: block; margin-top: 3px; color: var(--sidebar-muted); font-size: 11px; }
.nav { flex: 1; padding: 14px 11px 20px; overflow-y: auto; font-family: SimSun, '宋体', serif; }
.nav-dashboard { margin-bottom: 10px !important; }
.nav-group { margin: 4px 0; }
.nav-group-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  color: #d3dbea;
  background: transparent;
  text-align: left;
  transition: .18s ease;
}
.nav-group-toggle:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-group-toggle > span:first-child { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.nav-group-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #9cb9ef;
  background: rgba(59,130,246,.13);
  font-size: 10px;
}
.nav-chevron { color: #7484a2; font-size: 17px; transition: transform .2s ease; }
.nav-group.open > .nav-group-toggle .nav-chevron { transform: rotate(180deg); }
.nav-group-content {
  max-height: 0;
  overflow: hidden;
  opacity: .25;
  transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
}
.nav-group.open .nav-group-content { max-height: 260px; padding: 3px 0 7px; opacity: 1; }
.nav-item {
  width: 100%;
  height: 41px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: #b7c2d5;
  background: transparent;
  text-align: left;
  transition: .18s ease;
  font-family: SimSun, '宋体', serif;
  font-size: 13px;
}
.nav-dashboard { min-height: 44px; font-size: 15px; font-weight: 700; }
.nav-group-content > .nav-item { padding-left: 18px; font-size: 13px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(59,130,246,.24); }
.nav-icon { width: 20px; color: #7f98c3; font-size: 16px; text-align: center; }
.nav-item.active .nav-icon { color: #7eb0ff; }
.sidebar-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--sidebar-muted);
  font-size: 12px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.12); }

.main { min-height: 100vh; margin-left: 248px; }
.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 { margin: 0; font-size: 21px; line-height: 1.25; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.date-chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 12px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--primary); font-size: 13px; font-weight: 700; }
.menu-button { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.content { padding: 26px 30px 42px; }
.view { display: none; }
.view.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card, .panel {
  border: 1px solid rgba(225,230,239,.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.metric-card { padding: 20px; }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.metric-symbol { min-width: 34px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 700; }
.metric-card strong { display: block; margin-top: 14px; font-size: 29px; letter-spacing: -.02em; }
.metric-card small { display: block; margin-top: 7px; color: #8a94a8; font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 18px; margin-top: 18px; }
.panel { overflow: hidden; }
.panel-header { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 16px; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.panel-body { padding: 22px; }
.panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.section-gap { margin-top: 20px; }
.warning-list { padding: 8px 20px 18px; }
.warning-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border: 0; border-bottom: 1px dashed var(--line); color: inherit; background: transparent; text-align: left; }
.warning-item:last-child { border-bottom: 0; }
.warning-item strong { display: block; font-size: 13px; }
.warning-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.warning-order:hover strong { color: var(--danger); }
.warning-value { color: var(--warning); font-weight: 700; white-space: nowrap; }
.empty-state { padding: 36px 20px; color: #8b95a8; text-align: center; }
.empty-state-icon { display: block; margin-bottom: 8px; font-size: 26px; opacity: .7; }

.form-panel { max-width: 980px; margin-inline: auto; }
.wide-panel { max-width: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 8px; color: #364158; font-size: 13px; font-weight: 600; }
.required::after { content: " *"; color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid #dce2ec;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: .18s ease;
}
.input, .select { height: 42px; padding: 0 12px; }
.file-input { padding: 7px 10px; }
.textarea { min-height: 92px; padding: 11px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus, .table-input:focus { border-color: #7aa7ff; box-shadow: 0 0 0 3px rgba(37,99,235,.09); outline: none; }
.field-hint { margin-top: 6px; color: #8a94a7; font-size: 11px; line-height: 1.5; }
.stock-hint { margin-top: 7px; color: var(--primary); font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 600; transition: .18s ease; }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { color: #475269; border-color: var(--line); background: #fff; }
.btn-secondary:hover { background: #f8fafc; }
.btn-danger { color: var(--danger); border-color: #fecaca; background: var(--danger-soft); }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { min-height: 31px; padding: 0 10px; font-size: 12px; }

.lookup-field { position: relative; }
.lookup-results {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 8;
  display: none;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #d9e1ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(30, 47, 80, .16);
}
.lookup-results.show { display: block; }
.lookup-option { width: 100%; min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 0; border-bottom: 1px solid #eef1f5; background: #fff; text-align: left; }
.lookup-option:last-child { border-bottom: 0; }
.lookup-option:hover { background: #f7faff; }
.lookup-option strong, .lookup-option small { display: block; }
.lookup-option strong { font-size: 12px; }
.lookup-option small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.lookup-option img { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.lookup-badge { padding: 5px 8px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 700; }
.lookup-empty { padding: 13px; color: var(--muted); font-size: 12px; }

.filter-bar { display: flex; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.filter-bar .input, .filter-bar .select { height: 36px; }
.search-input { min-width: 240px; flex: 1; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: #657087; background: #fbfcfe; font-size: 11px; font-weight: 700; }
td { color: #3b465d; font-size: 12px; }
tbody tr:hover { background: #fbfdff; }
tbody tr:last-child td { border-bottom: 0; }
.compact-table th, .compact-table td { padding: 12px 14px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag-in { color: var(--success); background: var(--success-soft); }
.tag-out { color: var(--danger); background: var(--danger-soft); }
.tag-material { color: #7c3aed; background: #f5f3ff; }
.tag-product { color: #0369a1; background: #f0f9ff; }
.tag-pending { color: #1d4ed8; background: #eff6ff; }
.tag-complete { color: var(--success); background: var(--success-soft); }
.tag-overdue { color: #fff; background: var(--danger); }
.stock-positive { color: var(--success); font-weight: 700; }
.stock-zero, .muted-text { color: #8b95a8; }
.pending-number { color: var(--warning); font-weight: 700; }
.row-overdue { background: #fff4f4; }
.row-overdue:hover { background: #ffeded; }
.action-link, .inline-button { border: 0; background: none; font-size: 12px; }
.action-link { color: var(--danger); }
.inline-button { margin-right: 8px; color: var(--primary); }
.action-link:hover, .inline-button:hover { text-decoration: underline; }
.file-link { color: var(--primary); font-size: 12px; text-decoration: none; }
.file-link:hover { text-decoration: underline; }
.photo-thumb { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; vertical-align: middle; }

.subsection-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 12px; }
.subsection-head h3 { margin: 0; font-size: 15px; }
.subsection-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.editable-table-wrap { border: 1px solid var(--line); border-radius: 11px; }
.editable-table { min-width: 1250px; }
.editable-table th { padding: 10px 8px; }
.editable-table td { padding: 7px 5px; }
.table-input { width: 130px; height: 34px; padding: 0 8px; border: 1px solid #dce2ec; border-radius: 7px; color: var(--ink); background: #fff; font-size: 12px; }
.table-input.small-input { width: 64px; }
.table-input.number-input { width: 96px; }
.table-input.date-input { width: 132px; }
.table-input.wide-input { width: 170px; }

.tabs { display: flex; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.tab-button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 700; }
.tab-button span { margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: #eef2f7; font-size: 10px; }
.tab-button.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.tab-button.active span { background: rgba(255,255,255,.18); }
.shipment-list { padding: 18px; }
.shipment-card { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.shipment-card:last-child { margin-bottom: 0; }
.shipment-card.overdue { border-color: #fca5a5; box-shadow: inset 4px 0 0 var(--danger); }
.shipment-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.shipment-title-line { display: flex; align-items: center; gap: 10px; }
.shipment-title-line strong { font-size: 15px; }
.shipment-card-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.shipment-actions { display: flex; align-items: center; gap: 12px; }
.progress-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--muted); background: #fbfcfe; font-size: 11px; }
.progress-track { height: 7px; flex: 1; overflow: hidden; border-radius: 999px; background: #e8edf5; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }

.bom-list { padding: 18px; }
.bom-card { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.bom-card:last-child { margin-bottom: 0; }
.bom-card summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; cursor: pointer; list-style: none; }
.bom-card summary::-webkit-details-marker { display: none; }
.bom-card summary strong, .bom-card summary small { display: block; }
.bom-card summary strong { font-size: 13px; }
.bom-card summary small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.details-hint { color: var(--primary); font-size: 11px; }
.bom-remark { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.bom-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fbfcfe; }

.data-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.data-card { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.data-card h3 { margin: 0 0 8px; font-size: 15px; }
.data-card p { min-height: 42px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.settings-grid { margin-top: 24px; max-width: 700px; }
.settings-actions { justify-content: flex-start; max-width: 700px; }
.notice { margin-top: 18px; padding: 14px 16px; border: 1px solid #bfdbfe; border-radius: 10px; color: #1e40af; background: #eff6ff; font-size: 12px; line-height: 1.7; }
.compact-notice { margin-top: 16px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15,23,42,.55); }
.modal-backdrop.show { display: flex; }
.modal { width: min(1050px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; border-radius: 15px; background: #fff; box-shadow: 0 25px 80px rgba(15,23,42,.28); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: #f3f5f8; font-size: 22px; line-height: 1; }
#shipmentForm { min-height: 0; display: flex; flex: 1; flex-direction: column; }
.modal-body { min-height: 0; overflow: auto; padding: 20px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }
.modal-table-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; }
.shipment-meta-grid { max-width: 700px; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  min-width: 230px;
  max-width: 430px;
  padding: 13px 16px;
  border-radius: 10px;
  color: #fff;
  background: #1f2937;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .22s ease;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: none; }
.toast.success { background: #047857; }
.toast.error { background: #b91c1c; }
.sidebar-overlay { display: none; }

@media (max-width: 1200px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .data-cards { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 15; display: block; background: rgba(15,23,42,.4); opacity: 0; pointer-events: none; transition: .2s ease; }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .menu-button { display: inline-grid; place-items: center; }
  .topbar { min-height: 74px; padding: 12px 16px; }
  .topbar h1 { font-size: 18px; }
  .topbar p, .date-chip { display: none; }
  .content { padding: 18px 14px 30px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric-card { padding: 16px; }
  .metric-card strong { font-size: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .panel-header, .shipment-card-header { align-items: flex-start; flex-direction: column; }
  .filter-bar { flex-direction: column; }
  .search-input { min-width: 0; }
  .subsection-head { align-items: flex-start; flex-direction: column; }
  .shipment-actions { width: 100%; justify-content: space-between; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100vh - 16px); }
}
@media (max-width: 460px) {
  .metric-grid { grid-template-columns: 1fr; }
  .topbar-right { gap: 8px; }
  .avatar { width: 34px; height: 34px; }
  .panel-body { padding: 16px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .tabs { overflow-x: auto; }
  .shipment-list { padding: 12px; }
  .modal-body { padding: 16px; }
}

/* V3：附件在页内预览 */
.file-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.preview-modal { width: min(1180px, 100%); height: min(88vh, 900px); }
.preview-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 14px;
  background: #eef2f7;
}
.preview-frame { width: 100%; height: 100%; min-height: 62vh; border: 0; border-radius: 8px; background: #fff; }
.preview-image { display: block; max-width: 100%; max-height: 68vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 30px rgba(15,23,42,.12); background: #fff; }
.preview-fallback { width: 100%; padding-top: 8px; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 780px) {
  .preview-modal { height: calc(100vh - 16px); }
  .preview-frame { min-height: 65vh; }
}

/* V4：镶件、资料库、订单库、可配置仪表盘与销售分析 */
.nav-group.open .nav-group-content { max-height: 310px; }
.tag-insert { color: #a16207; background: #fefce8; }

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dashboard-toolbar h2 { margin: 0; font-size: 17px; }
.dashboard-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.metric-grid-configurable { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.metric-card-button {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.metric-card-button:hover { border-color: #aac5ff; box-shadow: 0 10px 28px rgba(37,99,235,.09); transform: translateY(-1px); }
.metric-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric-config-option { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.metric-config-option:hover { background: #f8faff; }
.metric-config-option input { margin-top: 3px; }
.metric-config-option strong, .metric-config-option small { display: block; }
.metric-config-option strong { font-size: 13px; }
.metric-config-option small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.product-code-link, .table-primary-link {
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.product-code-link:hover, .table-primary-link:hover { text-decoration: underline; }

.file-chip-list { display: flex; flex-wrap: wrap; gap: 7px; white-space: normal; }
.file-chip {
  max-width: 240px;
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  color: #1d4ed8;
  background: #f5f8ff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.file-chip:hover { background: #eaf1ff; }
.file-input-gap { margin-top: 10px; }
.existing-file-list { display: grid; gap: 8px; }
.existing-file-item { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; margin: 0 !important; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; font-weight: 400 !important; }
.existing-file-item > span:first-child { min-width: 0; }
.existing-file-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.remove-file-check { color: var(--danger); white-space: nowrap; font-size: 11px; }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-item { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; white-space: normal; }
.detail-item.full { grid-column: 1 / -1; }
.detail-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.detail-item strong, .detail-item div { color: var(--ink); font-size: 13px; line-height: 1.65; }
.detail-section { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 11px; font-size: 14px; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 16px; padding: 13px 16px; border-radius: 10px; background: #f5f8ff; color: var(--muted); font-size: 12px; }
.summary-strip strong { color: var(--ink); }

.multi-filter { flex-wrap: wrap; }
.multi-filter .select, .multi-filter .input:not(.search-input) { max-width: 190px; }

.shipment-card > summary { list-style: none; cursor: pointer; }
.shipment-card > summary::-webkit-details-marker { display: none; }
.shipment-card:not([open]) .shipment-card-header { border-bottom: 0; }
.shipment-card-content { overflow: hidden; }
.collapse-hint { color: var(--muted); font-size: 10px; }
.shipment-card[open] .collapse-hint::before { content: "收起 · "; }
.shipment-card:not([open]) .collapse-hint::before { content: "展开 · "; }

.analysis-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.analysis-filter .input, .analysis-filter .select { width: auto; min-width: 155px; }
.analysis-filter span { color: var(--muted); font-size: 12px; }
.analysis-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.analysis-summary { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.analysis-summary span { display: block; color: var(--muted); font-size: 11px; }
.analysis-summary strong { display: block; margin-top: 9px; font-size: 18px; font-variant-numeric: tabular-nums; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 18px 18px; }
.analysis-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.analysis-card h3 { margin: 0; font-size: 15px; }
.analysis-card > p { margin: 5px 0 16px; color: var(--muted); font-size: 11px; }
.bar-list { display: grid; gap: 14px; }
.bar-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 11px; }
.bar-label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label strong { font-variant-numeric: tabular-nums; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e9eef6; }
.bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.analysis-table-panel { margin: 0 18px 18px; }

#genericModal { z-index: 90; }
#filePreviewModal { z-index: 100; }
.generic-modal { width: min(1220px, 100%); }
.generic-modal .editable-table { min-width: 1120px; }

@media (max-width: 1200px) {
  .analysis-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .dashboard-toolbar { align-items: flex-start; flex-direction: column; }
  .metric-config-grid, .detail-grid, .analysis-grid { grid-template-columns: 1fr; }
  .detail-item.full { grid-column: auto; }
  .analysis-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-filter { align-items: stretch; flex-direction: column; }
  .analysis-filter .input, .analysis-filter .select, .analysis-filter .btn { width: 100%; max-width: none; }
  .multi-filter .select, .multi-filter .input:not(.search-input) { width: 100%; max-width: none; }
  .existing-file-item { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 460px) {
  .analysis-summary-grid { grid-template-columns: 1fr; }
}


/* V5: 待上传附件、PDF识别与产品报价 */
.pending-file-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; min-height: 25px; }
.pending-file-chip { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid #bfd1f8; border-radius: 999px; background: #eef4ff; color: #214b91; overflow: hidden; }
.pending-file-chip > span { max-width: 420px; padding: 6px 8px 6px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-file-chip small { color: #71809a; margin-left: 4px; }
.pending-file-chip button { width: 28px; align-self: stretch; border: 0; border-left: 1px solid #bfd1f8; background: transparent; color: #cf2f2f; font-size: 18px; cursor: pointer; }
.pending-file-chip button:hover { background: #feecec; }
.file-action-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.recognition-status { margin-top: 8px; min-height: 20px; font-size: 12px; }
.recognition-status.working { color: #2859a6; }
.recognition-status.success { color: #087a55; }
.recognition-status.error { color: #c62828; }
.quotation-table-wrap { border: 1px solid var(--line); border-radius: 11px; }
.quotation-table { min-width: 2100px; }
.quotation-table th, .quotation-table td { padding: 7px 5px; }
.quotation-table .quote-seq { min-width: 42px; text-align: center; }
.quotation-table .table-input { min-width: 92px; }
.quotation-table .quote-drawing { min-width: 135px; }
.quotation-table .quote-name, .quotation-table .quote-material { min-width: 120px; }
.quotation-table .quote-item-remark { min-width: 150px; }
.quotation-filters { flex-wrap: wrap; }
.quotation-filters .search-input { flex: 1 1 320px; }
.quotation-filters .select, .quotation-filters input[type="date"] { flex: 0 1 190px; }
.terms-head { margin-top: 22px; }
@media (max-width: 760px) { .file-action-row { grid-template-columns: 1fr; } .pending-file-chip > span { max-width: 250px; } }


/* ========================= V6 登录、账号与权限 ========================= */
body.auth-locked { overflow: hidden; }
body.auth-locked .app-shell,
body.auth-locked .sidebar-overlay { display: none; }
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 22%, rgba(59,130,246,.23), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(37,99,235,.14), transparent 30%),
    linear-gradient(135deg, #0d1831 0%, #132347 48%, #eef4ff 48%, #f7f9fd 100%);
}
.login-screen.hidden { display: none; }
.login-shell {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 100px rgba(7,17,42,.32);
}
.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(145deg, #111d38, #17366f);
}
.login-brand-panel::before,
.login-brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(96,165,250,.16);
}
.login-brand-panel::before { width: 340px; height: 340px; right: -150px; top: -110px; }
.login-brand-panel::after { width: 250px; height: 250px; left: -120px; bottom: -100px; }
.login-brand-mark,
.login-mini-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 12px 30px rgba(37,99,235,.3);
}
.login-brand-mark { width: 58px; height: 58px; border-radius: 16px; font-size: 16px; }
.login-eyebrow { margin: 30px 0 0 !important; color: #93b8fb !important; font-size: 11px; letter-spacing: .18em; }
.login-brand-panel h1 { position: relative; margin: 12px 0 0; font-size: 38px; letter-spacing: -.03em; }
.login-brand-panel > p:not(.login-eyebrow) { position: relative; max-width: 420px; margin: 18px 0 0; color: #c8d6ee; line-height: 1.8; }
.login-feature-list { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; }
.login-feature-list span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #dce8fb; background: rgba(255,255,255,.06); font-size: 12px; }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 54px 46px; }
.login-form-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.login-mini-logo { width: 45px; height: 45px; flex: 0 0 45px; border-radius: 13px; font-size: 12px; }
.login-form-heading h2 { margin: 0; font-size: 24px; }
.login-form-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.login-form-panel .form-group + .form-group { margin-top: 18px; }
.login-input { height: 46px; }
.login-error { min-height: 20px; margin: 12px 0 2px; color: var(--danger); font-size: 12px; }
.login-submit { width: 100%; min-height: 46px; margin-top: 10px; }
.login-tip { margin: 22px 0 0; padding: 12px 14px; border-radius: 10px; color: #5e6d86; background: #f2f6fc; font-size: 11px; line-height: 1.65; }

.account-menu-wrap { position: relative; }
.account-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 9px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
}
.account-button:hover,
.account-button[aria-expanded="true"] { border-color: #bfd1f4; box-shadow: 0 5px 18px rgba(30,47,80,.08); }
.account-button-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 70px; }
.account-button-text strong { max-width: 120px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-button-text small { max-width: 120px; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-caret { color: #7b879d; font-size: 14px; }
.account-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 40;
  width: 228px;
  display: none;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(24,38,68,.18);
}
.account-dropdown.show { display: block; }
.account-dropdown button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 11px 12px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; }
.account-dropdown button:hover { background: #f4f7fb; }
.account-dropdown button span { font-size: 13px; font-weight: 650; }
.account-dropdown button small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.account-dropdown .logout-item { color: var(--danger); }

.permission-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.permission-toolbar h3 { margin: 0; font-size: 14px; }
.permission-toolbar label { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px; font-weight: 700; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.permission-group-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }
.permission-group-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); color: #29364e; background: #f5f8fc; font-size: 13px; font-weight: 700; }
.permission-children { display: grid; gap: 8px; padding: 11px 12px; }
.permission-children label { display: flex; align-items: center; gap: 8px; color: #536078; font-size: 12px; }
.permission-group-head input,
.permission-children input,
.permission-toolbar input { accent-color: var(--primary); }
.account-list-name { display: flex; flex-direction: column; gap: 3px; }
.account-list-name small { color: var(--muted); }
.permission-summary { max-width: 440px; color: #526079; font-size: 12px; line-height: 1.55; }
.account-security-note { margin-top: 18px; }
.profile-static { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: #43506a; background: #f7f9fc; font-size: 13px; }

.nav-item.permission-hidden,
.nav-group.permission-hidden { display: none !important; }

@media (max-width: 820px) {
  .login-screen { padding: 14px; background: linear-gradient(155deg, #111d38 0 32%, #f4f7fb 32% 100%); }
  .login-shell { min-height: auto; grid-template-columns: 1fr; }
  .login-brand-panel { padding: 34px 28px; }
  .login-brand-panel h1 { font-size: 29px; }
  .login-brand-panel > p:not(.login-eyebrow), .login-feature-list { display: none; }
  .login-eyebrow { margin-top: 20px !important; }
  .login-form-panel { padding: 34px 28px; }
  .permission-grid { grid-template-columns: 1fr; }
  .account-button-text { display: none; }
  .account-button { padding-right: 5px; }
  .account-caret { display: none; }
}

/* ========================= V7 安全登录与二维码快速登记 ========================= */
body.quick-mode { overflow: auto; background: #eef3f9; }
body.quick-mode .login-screen,
body.quick-mode .app-shell,
body.quick-mode .sidebar-overlay { display: none !important; }
.quick-entry-screen { min-height: 100vh; padding: 24px; background: linear-gradient(145deg, #0f1d3a 0 220px, #eef3f9 220px 100%); }
.quick-entry-screen.hidden { display: none; }
.quick-entry-shell { width: min(760px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(16,31,61,.2); }
.quick-entry-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.quick-entry-brand { display: flex; align-items: center; gap: 12px; }
.quick-entry-brand > div { display: flex; flex-direction: column; gap: 3px; }
.quick-entry-brand strong { font-size: 15px; }
.quick-entry-brand small { color: var(--muted); font-size: 10px; }
.quick-entry-main { padding: 24px; }
.quick-entry-heading { margin-bottom: 18px; }
.quick-entry-heading h1 { margin: 8px 0 4px; font-size: 25px; }
.quick-entry-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.quick-entry-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #1d4ed8; background: #eaf1ff; font-size: 11px; font-weight: 700; }
.quick-entry-notice { margin-bottom: 20px; padding: 12px 14px; border: 1px solid #f5d9a7; border-radius: 11px; color: #7a4c00; background: #fff9ed; font-size: 11px; line-height: 1.7; }
.quick-entry-form { display: grid; gap: 16px; }
.quick-entry-form .form-grid { grid-template-columns: 1fr 1fr; }
.quick-entry-form .form-actions { margin-top: 4px; }
.quick-success { margin-top: 14px; padding: 11px 13px; border-radius: 10px; color: #166534; background: #ecfdf3; font-size: 12px; }

.qr-management-button { white-space: nowrap; }
.qr-manager-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 26px; align-items: center; }
.qr-code-card { display: grid; place-items: center; min-height: 270px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.qr-code-card canvas,
.qr-code-card img { max-width: 100%; height: auto !important; }
.qr-empty-card { width: 100%; min-height: 220px; display: grid; place-items: center; gap: 12px; color: var(--muted); text-align: center; }
.qr-empty-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; color: #1d4ed8; background: #eaf1ff; font-size: 30px; }
.qr-manager-info { display: grid; gap: 13px; }
.qr-info-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.qr-info-row span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.qr-info-row strong,
.qr-info-row code { display: block; overflow-wrap: anywhere; color: #25324a; font-size: 12px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.qr-static-warning { padding: 12px 14px; border: 1px solid #f5d9a7; border-radius: 11px; color: #7a4c00; background: #fff9ed; font-size: 11px; line-height: 1.7; }
.security-strength-note { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 720px) {
  .quick-entry-screen { padding: 0; background: #eef3f9; }
  .quick-entry-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .quick-entry-header { position: sticky; top: 0; z-index: 5; padding: 14px 16px; }
  .quick-entry-main { padding: 20px 16px 30px; }
  .quick-entry-form .form-grid { grid-template-columns: 1fr; }
  .quick-entry-form .form-group.full { grid-column: auto; }
  .quick-entry-form .form-actions { flex-direction: column-reverse; }
  .quick-entry-form .form-actions .btn { width: 100%; }
  .qr-manager-layout { grid-template-columns: 1fr; }
}

/* ========================= V8 功能升级 ========================= */
.toast.warning { background: #b45309; }
.stock-negative { color: #c81e1e; font-weight: 800; }
.row-negative-stock { background: #fff1f1; }
.row-negative-stock:hover { background: #ffe5e5; }
.warning-notice { border-color: #f1b4b4 !important; color: #991b1b !important; background: #fff1f1 !important; }
.precision-warning > p { margin: 0 0 14px; color: #8a4b00; line-height: 1.7; }

.setting-switch-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 15px 17px; border: 1px solid #f0c7c7; border-radius: 12px; background: #fff8f8; cursor: pointer; }
.setting-switch-row > span:first-child { min-width: 0; }
.setting-switch-row strong { display: block; margin-bottom: 5px; color: #7f1d1d; font-size: 13px; }
.setting-switch-row small { display: block; color: #7c5d5d; font-size: 10px; line-height: 1.65; }
.switch-control { position: relative; flex: 0 0 auto; width: 48px; height: 27px; }
.switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.switch-slider { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: .2s ease; }
.switch-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.25); transition: .2s ease; }
.switch-control input:checked + .switch-slider { background: #dc2626; }
.switch-control input:checked + .switch-slider::after { transform: translateX(21px); }

.inventory-import-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inventory-import-card { display: flex; align-items: center; gap: 15px; min-height: 108px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; color: inherit; background: #fff; text-align: left; transition: .18s ease; }
.inventory-import-card:hover { border-color: #8fb0f5; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.09); }
.inventory-import-card > span { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #1d4ed8; background: #eaf1ff; font-size: 17px; font-weight: 800; }
.inventory-import-card strong, .inventory-import-card small { display: block; }
.inventory-import-card strong { margin-bottom: 6px; font-size: 14px; }
.inventory-import-card small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.import-required-notice { margin-top: 18px; padding: 14px 16px; border: 1px solid #f2d49a; border-radius: 11px; color: #7a4c00; background: #fff9ed; }
.import-required-notice p { margin: 6px 0 0; font-size: 10px; line-height: 1.7; }
.template-format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.template-format-card { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: #fff; text-align: center; transition: .18s ease; }
.template-format-card:hover { border-color: #87a9ef; box-shadow: 0 10px 25px rgba(37,99,235,.09); }
.template-format-icon { width: 62px; height: 50px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #2563eb; font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.template-format-card small { max-width: 260px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.import-progress-wrap { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.import-spinner { width: 47px; height: 47px; margin-bottom: 18px; border: 4px solid #dbe7ff; border-top-color: #2563eb; border-radius: 50%; animation: importSpin .8s linear infinite; }
@keyframes importSpin { to { transform: rotate(360deg); } }
.import-progress-wrap strong { font-size: 17px; }
.import-progress-wrap p { margin: 8px 0 18px; color: var(--muted); }
.import-progress-track { width: min(520px, 90%); height: 10px; overflow: hidden; border-radius: 999px; background: #e7edf7; }
.import-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #4f7ff0); transition: width .18s ease; }
.import-progress-wrap small { margin-top: 10px; color: var(--muted); }
.import-error-panel { padding: 17px; border: 1px solid #f1b4b4; border-radius: 11px; color: #991b1b; background: #fff1f1; }
.import-error-panel p { margin: 8px 0 0; color: #7f5656; }
.import-preview-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 13px; border-radius: 10px; background: #eef5ff; }
.import-preview-summary span { color: #805600; font-size: 10px; }
.import-preview-table { max-height: 58vh; border: 1px solid var(--line); border-radius: 10px; }
.import-preview-table .editable-table { min-width: 1450px; }
.required-import-field { background: #fffbea !important; }
.import-row-error { background: #fff1f1; }
.import-status-cell { min-width: 180px; max-width: 240px; color: #15803d; font-size: 10px; line-height: 1.45; }
.import-row-error .import-status-cell { color: #b91c1c; }
.import-time-input { min-width: 170px; }

.work-report-product-list { display: grid; gap: 12px; padding: 16px 18px 20px; }
.work-report-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.work-report-product-main { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 17px 18px; }
.work-report-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 14px; font-weight: 700; }
.work-report-product-main p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.work-report-total { min-width: 135px; text-align: right; }
.work-report-total span, .work-report-total strong { display: block; }
.work-report-total span { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.work-report-total strong { color: #1d4ed8; font-size: 17px; }
.work-report-order-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 18px 14px; border-top: 1px solid #edf0f5; background: #fbfcfe; }
.work-report-order-tags span { padding: 5px 8px; border: 1px solid #d9e2f1; border-radius: 999px; color: #475569; background: #fff; font-size: 9px; }
.work-report-form-grid { margin-bottom: 16px; }
.work-report-preview-stage { min-width: 790px; padding: 24px; background: #dfe5ed; }
.work-report-paper { width: 210mm; min-height: 297mm; margin: 0 auto; padding: 14mm 13mm; color: #111827; background: #fff; box-shadow: 0 10px 35px rgba(15,23,42,.18); font-size: 11px; }
.work-report-paper-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10px; border-bottom: 2px solid #1e293b; }
.work-report-paper-header h1 { margin: 0; font-size: 24px; letter-spacing: 6px; }
.work-report-paper-header p { margin: 5px 0 0; color: #64748b; }
.work-report-number { text-align: right; }
.work-report-number span, .work-report-number strong { display: block; }
.work-report-number span { margin-bottom: 4px; color: #64748b; font-size: 9px; }
.work-report-paper-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 13px; border: 1px solid #334155; border-bottom: 0; }
.work-report-paper-meta div { display: flex; min-height: 34px; padding: 7px 9px; border-bottom: 1px solid #94a3b8; }
.work-report-paper-meta div:nth-child(odd) { border-right: 1px solid #94a3b8; }
.work-report-paper-meta span { width: 105px; color: #475569; }
.work-report-paper-table { width: 100%; margin-top: 12px; border-collapse: collapse; }
.work-report-paper-table th, .work-report-paper-table td { padding: 7px 5px; border: 1px solid #334155; text-align: center; }
.work-report-paper-table th { background: #eef2f7; }
.work-report-paper-table tfoot td { font-weight: 700; }
.work-report-paper-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; padding-top: 12px; }
.work-report-paper-footer span { padding-bottom: 16px; border-bottom: 1px solid #64748b; }

@media (max-width: 760px) {
  .inventory-import-choice, .template-format-grid { grid-template-columns: 1fr; }
  .setting-switch-row { align-items: flex-start; }
  .work-report-product-main { grid-template-columns: 1fr; gap: 12px; }
  .work-report-total { text-align: left; }
  .work-report-preview-stage { min-width: 720px; padding: 12px; }
}


/* ========================= V9 ========================= */
.file-remove-button {
  border: 0;
  background: #fff1f2;
  color: #dc2626;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.file-remove-button:hover { background: #ffe4e6; }
.edit-add-file-label { display: block; margin-top: 12px; font-weight: 600; color: #334155; }
.process-name-cell { display: inline-block; max-width: 220px; line-height: 1.45; }
.process-default-tag { margin-left: 8px; }
.process-stage-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.process-stage-flow span { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.process-stage-flow i { color: #94a3b8; font-style: normal; }
.process-stage-textarea { min-height: 150px; }
.work-report-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.analysis-price-notice { margin: 16px 0; border: 1px solid #bfdbfe; background: #eff6ff; color: #1e40af; border-radius: 10px; padding: 11px 14px; line-height: 1.6; }
.row-muted { opacity: .62; background: #f8fafc; }
.detail-item small { display: block; margin-top: 5px; color: #64748b; font-weight: 400; }
@media (max-width: 900px) {
  .work-report-actions { width: 100%; justify-content: stretch; }
  .work-report-actions .btn { flex: 1; }
}

/* ========================= V10 订单发货管理 ========================= */
.nav-group.open .nav-group-content { max-height: 560px; }
.nav-subgroup { margin: 3px 8px; border-radius: 10px; overflow: hidden; }
.nav-subgroup.permission-hidden { display: none !important; }
.nav-subgroup-toggle {
  width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0 10px; border: 0; border-radius: 9px; color: #c7d3e8;
  background: transparent; text-align: left; transition: .18s ease; font-family: SimSun, '宋体', serif; font-size: 13px;
}
.nav-subgroup-toggle:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-subgroup-toggle > span:first-child { display: flex; align-items: center; gap: 7px; min-width: 0; }
.nav-subgroup-content { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .24s ease, opacity .18s ease, padding .2s ease; }
.nav-subgroup.open .nav-subgroup-content { max-height: 240px; padding: 3px 0 5px; opacity: 1; }
.nav-subgroup.open .nav-subgroup-toggle .nav-chevron { transform: rotate(180deg); }
.nav-subgroup-content .nav-item { padding-left: 30px; min-height: 38px; font-size: 12px; font-weight: 400; }
.nav-subgroup-content .nav-icon { width: 16px; font-size: 13px; }

/* ========================= V31.21.0 仓库管理分组 ========================= */
/* 仓库管理父组内含三个子组（原材料/镶件/成品），同时展开时内容较高，单独放宽高度上限 */
.nav-group[data-nav-group="warehouse"].open .nav-group-content { max-height: 980px; }

/* ========================= V31.21.x 页内标签（生产报工分析等） ========================= */
.inner-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 14px; }
.inner-tab { border: 0; background: transparent; padding: 9px 18px; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; border-radius: 6px 6px 0 0; font-family: inherit; }
.inner-tab:hover { color: #334155; background: #f1f5f9; }
.inner-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.filter-label { align-self: center; font-size: 13px; color: #64748b; white-space: nowrap; }

/* V31.21.3 报工分析图表 */
.analysis-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .analysis-chart-grid { grid-template-columns: 1fr; } }
.analysis-chart-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; }
.analysis-chart-card header h3 { margin: 0 0 2px; font-size: 15px; }
.analysis-chart-card header p { margin: 0 0 12px; font-size: 12px; color: #64748b; }
.analysis-bar-list { display: flex; flex-direction: column; gap: 8px; }
.analysis-bar-row { display: grid; grid-template-columns: 190px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.analysis-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; font-weight: 600; }
.analysis-bar-track { height: 14px; background: #eef2f7; border-radius: 7px; overflow: hidden; }
.analysis-bar-track i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #2563eb); border-radius: 7px; }
.analysis-bar-row strong { text-align: right; color: #1d4ed8; }
.analysis-month-trend { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 6px 2px 0; overflow-x: auto; }
.analysis-month-col { flex: 1 0 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.analysis-month-col i { display: block; width: 70%; max-width: 34px; background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 4px 4px 0 0; }
.analysis-month-col span { font-size: 11px; color: #64748b; }
.analysis-month-col small { font-size: 10px; color: #94a3b8; }

/* V31.21.3 计划与实产对比 */
.plan-actual-list { display: flex; flex-direction: column; gap: 12px; }
.plan-actual-list > div > div:first-child { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 5px; }
.plan-actual-list > div > div:first-child span { font-weight: 600; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-actual-bars { display: flex; flex-direction: column; gap: 3px; }
.plan-actual-row { display: grid; grid-template-columns: 34px 1fr 80px; gap: 8px; align-items: center; font-size: 12px; }
.plan-actual-row em { font-style: normal; color: #94a3b8; }
.plan-actual-row i { display: block; height: 10px; border-radius: 5px; background: #93c5fd; }
.plan-actual-row i.actual { background: #16a34a; }
.plan-actual-row small { text-align: right; color: #64748b; }

.negative-stock-toggle {
  width: 100%; min-height: 82px; display: flex; align-items: center; gap: 14px; padding: 15px 17px;
  border: 1px solid #dbe2ec; border-radius: 12px; color: #334155; background: #f8fafc;
  text-align: left; transition: .18s ease;
}
.negative-stock-toggle:hover { border-color: #94a3b8; background: #f1f5f9; }
.negative-stock-toggle.enabled { border-color: #dc2626; color: #fff; background: #dc2626; box-shadow: 0 8px 20px rgba(220,38,38,.18); }
.negative-stock-toggle-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #475569; background: #e2e8f0; font-size: 18px; font-weight: 800; }
.negative-stock-toggle.enabled .negative-stock-toggle-icon { color: #dc2626; background: #fff; }
.negative-stock-toggle strong { display: block; margin-bottom: 5px; font-size: 14px; }
.negative-stock-toggle small { display: block; color: #64748b; font-size: 10px; line-height: 1.6; }
.negative-stock-toggle.enabled small { color: rgba(255,255,255,.86); }

.panel-actions-left { justify-content: flex-start; }
.pending-count-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; color: #1d4ed8; background: #eaf1ff; font-size: 11px; font-weight: 700; }
.pack-quantity-input { width: 105px; }
.row-shipment-shortage { background: #fff6f6; }
.row-shipment-shortage:hover { background: #ffeded; }
.delivery-document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.delivery-document-card { min-height: 118px; display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; color: inherit; background: #fff; text-align: left; transition: .18s ease; }
.delivery-document-card:hover { border-color: #84a8f3; box-shadow: 0 10px 24px rgba(37,99,235,.10); transform: translateY(-1px); }
.delivery-document-card > span { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #166534; background: #dcfce7; font-size: 11px; font-weight: 800; }
.delivery-document-card strong, .delivery-document-card small { display: block; }
.delivery-document-card strong { margin-bottom: 7px; font-size: 14px; }
.delivery-document-card small { color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 760px) {
  .delivery-document-grid { grid-template-columns: 1fr; }
  .negative-stock-toggle { align-items: flex-start; }
}
.pending-shipment-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 20px 0; background: #fff; }

/* ========================= V11 即时负库存设置与长输入框清除 ========================= */
.clearable-input-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.clearable-input-wrap > .input {
  width: 100%;
  padding-right: 40px;
}
.clearable-input-wrap.clearable-search-wrap {
  flex: 1 1 240px;
  min-width: 240px;
}
.clear-input-button {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #eef2f7;
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.88);
  transition: opacity .14s ease, transform .14s ease, background .14s ease, color .14s ease;
}
.clearable-input-wrap.has-value .clear-input-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.clear-input-button:hover {
  color: #fff;
  background: #64748b;
}
.clear-input-button:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}
.filter-bar > .clearable-input-wrap,
.multi-filter > .clearable-input-wrap,
.quotation-filters > .clearable-input-wrap {
  flex: 1 1 240px;
}
@media (max-width: 760px) {
  .clearable-input-wrap.clearable-search-wrap,
  .filter-bar > .clearable-input-wrap,
  .multi-filter > .clearable-input-wrap,
  .quotation-filters > .clearable-input-wrap {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }
}

/* ========================= V12 发货文件、PDF 预览 ========================= */
.delivery-document-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.delivery-document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.delivery-document-row strong,
.delivery-document-row small { display: block; }
.delivery-document-row strong { margin-bottom: 5px; font-size: 14px; }
.delivery-document-row small { color: var(--muted); line-height: 1.55; }
.delivery-document-row > div:last-child { display: flex; gap: 8px; flex: 0 0 auto; }
.document-preview-backdrop { z-index: 1200; }
.document-preview-modal {
  width: min(96vw, 1480px);
  height: min(94vh, 980px);
  max-width: none;
}
.document-preview-body {
  padding: 22px;
  overflow: auto;
  background: #d9dee8;
}
.document-preview-page {
  margin: 0 auto 24px;
  width: max-content;
}
.document-preview-page:last-child { margin-bottom: 0; }
.document-preview-page-label {
  margin-bottom: 8px;
  color: #475569;
  font-size: 12px;
  text-align: center;
}
.document-preview-page-canvas {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .22);
  zoom: .72;
}
.document-preview-footer { justify-content: flex-end; }
@media (max-width: 900px) {
  .delivery-document-row { align-items: flex-start; flex-direction: column; }
  .delivery-document-row > div:last-child { width: 100%; }
  .delivery-document-row .btn { flex: 1; }
  .document-preview-page-canvas { zoom: .42; }
}
@media (max-width: 520px) {
  .document-preview-page-canvas { zoom: .3; }
}


/* ========================= V13 PDF 下载与导航层级 ========================= */
.pdf-render-stage .print-page { box-shadow: none !important; transform: none !important; }
.nav-group-toggle, .nav-item, .nav-subgroup-toggle { font-family: SimSun, '宋体', serif; }
.nav-group-toggle { font-size: 15px; font-weight: 700; }
.nav-subgroup-toggle { font-size: 13px; font-weight: 400; }

/* ========================= V14 发货对账与打印稳定性 ========================= */
.shipment-card { position: relative; }
.shipment-card.overdue {
  border-color: #fca5a5;
  box-shadow: none;
}
.shipment-card.overdue::before {
  content: '';
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--danger);
  pointer-events: none;
}
.shipment-card.overdue > summary,
.shipment-card.overdue > .shipment-card-content { position: relative; z-index: 1; }

.reconciliation-date-grid { margin-bottom: 14px; }
.reconciliation-select-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 11px 13px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafc;
}
.reconciliation-select-toolbar > div { display: flex; align-items: center; gap: 12px; }
.reconciliation-batch-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.reconciliation-batch-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease;
}
.reconciliation-batch-option:last-child { border-bottom: 0; }
.reconciliation-batch-option:hover { background: #f8fafc; }
.reconciliation-batch-option.selected { background: #eff6ff; }
.reconciliation-batch-option input { margin-top: 3px; accent-color: var(--primary); }
.reconciliation-batch-option span { min-width: 0; flex: 1; }
.reconciliation-batch-option strong,
.reconciliation-batch-option small,
.reconciliation-batch-option em { display: block; }
.reconciliation-batch-option strong { color: var(--ink); font-size: 13px; }
.reconciliation-batch-option small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.reconciliation-batch-option em { margin-top: 4px; overflow-wrap: anywhere; color: #475569; font-size: 11px; font-style: normal; }
.reconciliation-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
}
.reconciliation-section { margin-top: 18px; }
.reconciliation-section h3 { margin: 0 0 9px; font-size: 14px; }
.reconciliation-preview-wrap { max-height: 330px; }
.reconciliation-preview-wrap table { min-width: 1220px; }
.reconciliation-preview-wrap th,
.reconciliation-preview-wrap td { padding: 9px 10px; }
.warning-notice { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }

@media (max-width: 700px) {
  .reconciliation-select-toolbar { align-items: flex-start; flex-direction: column; }
  .reconciliation-select-toolbar > div { width: 100%; justify-content: flex-end; }
}


/* ========================= V16 PDF 边框、通知层级 ========================= */
.document-preview-page-canvas.portrait .print-page { height: auto !important; min-height: 297mm; overflow: visible !important; }
.document-preview-page-canvas.landscape .print-page { height: auto !important; min-height: 210mm; overflow: visible !important; }
.toast { z-index: 10000; }


/* V20-B 原材料云端读写 */
.cloud-form-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.6;
}
.cloud-form-status:empty { min-height: 0; margin-top: 0; }
.form-actions .btn[disabled] { cursor: wait; opacity: .72; }

/* V21.1 登录与设备会话安全 */
.login-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.login-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid #dce5f2;
  border-radius: 11px;
  background: #f8faff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}
.login-option:hover { border-color: #a9c4f5; background: #f2f7ff; }
.login-option:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.login-option:has(input:checked) { border-color: #75a4f4; background: #edf4ff; }
.login-option input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: #2868dc; }
.login-option span { display: grid; gap: 3px; }
.login-option strong { color: #25344e; font-size: 12px; font-weight: 700; }
.login-option small { color: #78869d; font-size: 10px; line-height: 1.45; }
.login-security-note { margin: 10px 0 0; color: #708097; font-size: 10px; line-height: 1.55; }
.login-screen[data-restoring="true"] .login-form-panel { opacity: .78; pointer-events: none; }
.login-screen[data-restoring="true"] .login-submit::after { content: ' · 正在验证设备会话'; }
@media (max-width: 520px) {
  .login-options { grid-template-columns: 1fr; }
  .login-option { min-height: 56px; }
}

/* ========================= V24 云端资料、BOM、附件与设置 ========================= */
.bom-cloud-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}.bom-cloud-grid-head,.bom-cloud-row{display:grid;grid-template-columns:120px minmax(220px,1.7fr) minmax(120px,.8fr) minmax(110px,.7fr) minmax(160px,1fr) 64px;gap:10px;align-items:center}.bom-cloud-grid-head{padding:10px 12px;background:#f5f8fd;border:1px solid #e4eaf4;border-radius:10px 10px 0 0;font-size:12px;font-weight:700;color:#52617a}.bom-cloud-row{padding:10px 12px;border:1px solid #e4eaf4;border-top:0;background:#fff}.bom-cloud-row:last-child{border-radius:0 0 10px 10px}.attachment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.attachment-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px;border:1px solid #dfe7f3;border-radius:10px;background:#f8faff;color:#18253d;text-align:left;cursor:pointer}.attachment-card:hover{border-color:#8fb3ff;background:#f1f6ff}.attachment-card small{color:#71809a}.cloud-setting-switches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cloud-setting-switches .switch-row{height:100%;padding:14px;border:1px solid #dfe7f3;border-radius:12px;background:#f9fbff}.settings-section-title{margin:24px 0 12px}.warning-notice{border-color:#f2d29a;background:#fffaf0}.row-muted{opacity:.66}.cloud-form-status{min-height:22px;margin-top:12px;color:#2563eb;font-size:13px}.existing-file-item .remove-file-check{display:inline-flex;align-items:center;gap:5px;color:#d33b32;font-size:12px}.detail-section{margin-top:18px}.detail-section h3{margin:0 0 10px}.file-input-gap{margin-top:10px}
@media(max-width:980px){.bom-cloud-grid-head{display:none}.bom-cloud-row{grid-template-columns:1fr 1fr;border-top:1px solid #e4eaf4;margin-bottom:10px;border-radius:10px}.bom-cloud-row .action-link{justify-self:start}.cloud-setting-switches{grid-template-columns:1fr}}
@media(max-width:620px){.bom-cloud-row{grid-template-columns:1fr}.attachment-grid{grid-template-columns:1fr}}

/* ========================= V25 生产管理云端化与交互修复 ========================= */
.confirm-message {
  padding: 18px;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  background: #f8faff;
  color: #26344d;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.production-progress-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.production-progress-summary.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.production-progress-summary > div {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #e0e7f2;
  border-radius: 11px;
  background: #f8faff;
}
.production-progress-summary span { color: #728099; font-size: 12px; }
.production-progress-summary strong { color: #17243d; font-size: 18px; }
.production-good { color: #07884a !important; font-weight: 700; }
.production-scrap { color: #d13c32 !important; font-weight: 700; }
#productionTaskBody td:last-child,
#productionReportBody td:last-child { white-space: nowrap; }
@media (max-width: 760px) {
  .production-progress-summary,
  .production-progress-summary.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .production-progress-summary,
  .production-progress-summary.compact { grid-template-columns: 1fr; }
}

/* V25.4 首页模式与权限批量选择 */
body.blank-home-active .content { min-height: calc(100vh - 78px); }
body.blank-home-active #pageTitle,
body.blank-home-active #pageSubtitle { display: none; }
.cloud-permission-toolbar.is-disabled,
.permission-grid.is-disabled { opacity: .58; }
.cloud-home-options label { min-height: 28px; }
.permission-group-head span { flex: 1; }


/* V25.5 权限编辑器显示优化 */
.account-custom-permission-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 18px;
  padding: 6px 2px 0;
}
.account-custom-permission-switch > span:last-child {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.account-custom-permission-switch small {
  color: #6f7d93;
  font-size: 11px;
  line-height: 1.55;
}

/* V25.7：待发货单箱数量无打断自动保存状态 */
.pack-quantity-input.pack-save-dirty { border-color: #f59e0b; background: #fffbeb; }
.pack-quantity-input.pack-save-saving { border-color: #2563eb; background: #eff6ff; }
.pack-quantity-input.pack-save-done { border-color: #10b981; background: #ecfdf5; }
.pack-quantity-input.pack-save-error { border-color: #ef4444; background: #fef2f2; }

/* ========================= V25.9 双数据区与安全清理 ========================= */
.workspace-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.workspace-selector legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  color: #26354e;
  font-size: 12px;
  font-weight: 700;
}
.workspace-option {
  display: flex;
  gap: 9px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #d7dfec;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.workspace-option:hover { border-color: #91b3ef; }
.workspace-option input { margin: 3px 0 0; accent-color: #2868dc; }
.workspace-option span { display: grid; gap: 4px; }
.workspace-option strong { color: #20304b; font-size: 12px; }
.workspace-option small { color: #718098; font-size: 10px; line-height: 1.5; }
.workspace-option:has(input:checked) { border-color: #5e91e9; background: #edf4ff; box-shadow: 0 0 0 2px rgba(40,104,220,.09); }
.workspace-option-production:has(input:checked) { border-color: #24a36a; background: #ecfbf4; box-shadow: 0 0 0 2px rgba(22,163,74,.09); }
.workspace-login-notice {
  margin: 0 0 16px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #7a4a00;
  background: #fff7e6;
  font-size: 11px;
  font-weight: 700;
}
.workspace-login-notice[data-workspace="production"] { color: #087443; background: #eafaf2; }
.workspace-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 7px !important;
  padding: 3px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: .02em;
}
.workspace-badge-test { color: #ffd98b !important; background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.3); }
.workspace-badge-production { color: #91f0bc !important; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.28); }
.workspace-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #f3c46a;
  border-radius: 12px;
  color: #704600;
  background: #fff8e8;
}
.workspace-banner.production { border-color: #85d9ae; color: #075f39; background: #eefbf5; }
.workspace-banner strong { display: block; margin-bottom: 3px; }
.workspace-banner small { color: inherit; opacity: .78; line-height: 1.55; }
.danger-zone-card { border-color: #f4b6b6; background: #fff8f8; }
.danger-zone-card h3 { color: #a91f1f; }
.record-selection-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.record-selection-toolbar .selected-count { color: #66758e; font-size: 11px; }
.record-select-cell { width: 42px; text-align: center; }
.record-select-cell input { width: 15px; height: 15px; accent-color: #dc2626; }
.batch-delete-button:disabled { opacity: .45; cursor: not-allowed; }
.shipment-delete-button { margin-left: 6px; }
.reset-confirm-grid { display: grid; gap: 14px; }
.reset-confirm-grid .critical-note { padding: 12px 14px; border: 1px solid #f2aaaa; border-radius: 10px; color: #9b1c1c; background: #fff3f3; font-size: 12px; line-height: 1.65; }
.reset-confirm-grid code { padding: 2px 5px; border-radius: 5px; background: rgba(153,27,27,.08); }
@media(max-width:680px){
  .workspace-selector { grid-template-columns: 1fr; }
  .workspace-banner { flex-direction: column; }
}

/* V25.9 双数据区与高风险清理 */
.workspace-data-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #dbe5f2;
  background: #f8fafc;
  color: #334155;
}
.workspace-data-banner strong { color: #0f172a; }
.workspace-data-banner.test { border-color: #f7d89a; background: #fffaf0; }
.workspace-data-banner.production { border-color: #9ddcb8; background: #f0fdf4; }
.data-card-critical {
  position: relative;
  border-color: #f5b4b4 !important;
  background: linear-gradient(180deg, #fffafa 0%, #fff 100%);
}
.workspace-reset-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.workspace-reset-badge.test { color: #92400e; background: #fef3c7; }
.workspace-reset-badge.production { color: #166534; background: #dcfce7; }
.workspace-reset-warning {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff1f2;
  color: #991b1b;
  line-height: 1.75;
}
.reset-final-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
}
.reset-final-check input { margin-top: 4px; }
.shipment-actions .btn-danger { margin-left: 4px; }

@media (max-width: 720px) {
  .workspace-data-banner { align-items: flex-start; flex-direction: column; gap: 6px; }
  .workspace-reset-badge { position: static; display: inline-flex; margin-bottom: 8px; }
}

/* ========================= V27 资料分层、封面图与模具修理 ========================= */
.nav-subgroup.open .nav-subgroup-content { max-height: 240px; }
.nav-alert-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #dc2626; color: #fff; font: 700 11px/1 Arial, sans-serif; box-shadow: 0 0 0 2px rgba(220,38,38,.18);
}
.multi-select { min-height: 118px; padding: 8px 10px; }
.multi-select option { padding: 7px 8px; border-radius: 6px; }
.field-hint { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.data-pill { display: inline-flex; align-items: center; margin: 2px 4px 2px 0; padding: 3px 7px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 11px; white-space: nowrap; }
.data-pill-warning { background: #fff1f2; color: #be123c; }
.product-cover-button { width: 58px; height: 46px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; cursor: pointer; }
.product-cover-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s ease; }
.product-cover-thumb.loaded { opacity: 1; }
.product-cover-placeholder { width: 58px; height: 46px; display: grid; place-items: center; border: 1px dashed #cbd5e1; border-radius: 8px; color: #94a3b8; font-size: 11px; background: #f8fafc; }
.pending-cover-chip { border-color: #2563eb !important; background: #eff6ff !important; }
.pending-cover-radio, .cover-choice { display: inline-flex; align-items: center; gap: 4px; color: #1d4ed8; font-size: 11px; white-space: nowrap; }
.cover-choice input, .pending-cover-radio input { accent-color: #2563eb; }
.file-input-gap { margin-top: 8px; }
.product-gallery { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 10px; align-items: stretch; margin-bottom: 18px; }
.gallery-main { position: relative; min-height: 280px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0f172a; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 360px; object-fit: contain; opacity: 0; transition: opacity .18s ease; }
.gallery-main img.loaded { opacity: 1; }
.gallery-main span { position: absolute; left: 12px; right: 12px; bottom: 10px; padding: 7px 10px; border-radius: 8px; background: rgba(15,23,42,.72); color: #fff; font-size: 12px; text-align: center; }
.gallery-nav { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #1e3a8a; font-size: 30px; cursor: pointer; }
.gallery-nav:hover { background: #eff6ff; }
.product-gallery-empty { display: grid; place-items: center; min-height: 150px; margin-bottom: 18px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #94a3b8; background: #f8fafc; }

.repair-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 16px 18px 0; }
.repair-summary-card { padding: 14px 16px; border: 1px solid #dbeafe; border-radius: 12px; background: #f8fbff; }
.repair-summary-card span { display: block; color: var(--muted); font-size: 12px; }
.repair-summary-card strong { display: block; margin-top: 6px; color: #1e3a8a; font-size: 25px; }
.repair-summary-card.danger { border-color: #fecaca; background: #fff7f7; }
.repair-summary-card.danger strong { color: #dc2626; }
.repair-filter-bar { grid-template-columns: minmax(280px,1fr) 180px 180px; }
.repair-content-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repair-products { margin-top: 5px; max-width: 220px; }
.repair-progress { width: 100px; height: 6px; margin: 7px 0 3px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.repair-progress i { display: block; height: 100%; border-radius: inherit; background: #2563eb; }
.row-repair-active { background: #fffdf7; }
.row-repair-overdue { background: #fff1f2; }
.row-repairing { background: #fff7ed; }
.danger-text { color: #dc2626 !important; }
.repair-form-grid .textarea { min-height: 90px; }
.repair-detail-hero { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 10px; margin-bottom: 16px; }
.repair-detail-hero > div { padding: 13px 14px; border: 1px solid #dbeafe; border-radius: 10px; background: #f8fbff; }
.repair-detail-hero span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.repair-detail-hero strong { color: #172554; font-size: 13px; }
.repair-timeline { position: relative; padding-left: 8px; }
.repair-timeline-item { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; padding-bottom: 17px; }
.repair-timeline-item::before { content: ''; position: absolute; left: 8px; top: 14px; bottom: -2px; width: 1px; background: #cbd5e1; }
.repair-timeline-item:last-child::before { display: none; }
.repair-timeline-item > i { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.repair-timeline-item strong { display: inline-block; margin-right: 10px; color: #1e3a8a; }
.repair-timeline-item span { color: var(--muted); font-size: 11px; }
.repair-timeline-item p { margin: 5px 0 0; color: #334155; line-height: 1.55; }
.mold-plan-warning { display: flex; align-items: center; gap: 10px; margin: 0 16px 14px; padding: 10px 12px; border: 1px solid #fde68a; border-radius: 9px; background: #fffbeb; color: #92400e; font-size: 12px; }
.mold-plan-warning strong { white-space: nowrap; }
.mold-plan-warning span { flex: 1; }
.mold-plan-warning.blocked { border-color: #fecaca; background: #fff1f2; color: #991b1b; }
.dashboard-repair-panel { margin-bottom: 16px; }
.dashboard-repair-list { display: grid; gap: 0; }
.dashboard-repair-item { display: grid; grid-template-columns: minmax(0,1fr) 150px 110px; gap: 12px; align-items: center; width: 100%; padding: 12px 18px; border: 0; border-top: 1px solid var(--line); background: #fff; color: inherit; text-align: left; cursor: pointer; }
.dashboard-repair-item:hover { background: #f8fbff; }
.dashboard-repair-item.overdue { background: #fff7f7; }
.dashboard-repair-item span strong, .dashboard-repair-item span small { display: block; }
.dashboard-repair-item span small { margin-top: 3px; color: var(--muted); }
.dashboard-repair-item em { color: #1d4ed8; font-style: normal; font-weight: 600; }
.dashboard-repair-item time { color: #475569; text-align: right; }

@media (max-width: 900px) {
  .repair-summary-grid, .repair-detail-hero { grid-template-columns: 1fr; }
  .repair-filter-bar { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 36px minmax(0,1fr) 36px; }
  .gallery-main img { height: 260px; }
  .dashboard-repair-item { grid-template-columns: 1fr; }
  .dashboard-repair-item time { text-align: left; }
}

/* ========================= V27.1 可搜索关联选择与资料表格对齐 ========================= */
.relation-picker { position: relative; }
.relation-picker-search { width: 100%; }
.relation-picker-options {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 5px);
  max-height: 230px; overflow-y: auto; padding: 6px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}
.relation-picker-option {
  display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px;
  background: transparent; color: #172554; text-align: left; cursor: pointer;
}
.relation-picker-option:hover { background: #eff6ff; }
.relation-picker-empty { padding: 12px 10px; color: var(--muted); font-size: 12px; }
.relation-picker-selected { display: flex; flex-wrap: wrap; gap: 7px; min-height: 34px; margin-top: 8px; }
.relation-picker-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 8px 6px 10px;
  border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1e40af; font-size: 12px;
}
.relation-picker-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relation-picker-chip button {
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
  background: #dbeafe; color: #dc2626; font-weight: 700; line-height: 18px; cursor: pointer;
}
.product-file-summary-cell { width: 118px; min-width: 118px; text-align: center !important; white-space: nowrap; vertical-align: middle; }
#view-product-library th:nth-child(10) { text-align: center; }

/* ========================= V27.3 产品资料 PDF 紧凑排版 ========================= */
.nav-group[data-nav-group="master"].open > .nav-group-content { max-height: 1180px; }
.nav-group[data-nav-group="master"] .nav-subgroup.open > .nav-subgroup-content { max-height: 260px; }
.master-entity-link {
  display: inline; padding: 0; border: 0; background: transparent; color: #1d4ed8;
  font: inherit; font-weight: 650; line-height: 1.65; text-align: left; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(37,99,235,.28); text-underline-offset: 3px;
}
.master-entity-link:hover { color: #1e40af; text-decoration-color: currentColor; }
.master-entity-stack { display: grid; gap: 4px; align-items: start; }
.product-export-options { display: grid; gap: 16px; }
.product-export-section { border: 1px solid #dbe2ec; border-radius: 12px; background: #fff; overflow: hidden; }
.product-export-section > h3 { margin: 0; padding: 12px 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; color: #172554; font-size: 14px; }
.product-export-section-body { padding: 12px 14px; }
.product-export-toggle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.product-export-toggle, .product-export-file-option {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid #e2e8f0;
  border-radius: 9px; background: #fff; color: #334155; cursor: pointer;
}
.product-export-toggle:hover, .product-export-file-option:hover { border-color: #93c5fd; background: #f8fbff; }
.product-export-toggle input, .product-export-file-option input { margin-top: 2px; accent-color: #2563eb; }
.product-export-file-list { display: grid; gap: 7px; max-height: 260px; overflow: auto; }
.product-export-file-option span { min-width: 0; }
.product-export-file-option strong, .product-export-file-option small { display: block; }
.product-export-file-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e3a8a; font-size: 12px; }
.product-export-file-option small { margin-top: 3px; color: #64748b; font-size: 11px; }
.product-export-status { min-height: 22px; color: #1d4ed8; font-size: 12px; line-height: 1.6; }
.product-export-status.error { color: #b91c1c; }
.v272-pdf-render-host { position: fixed; left: -20000px; top: 0; width: 1120px; z-index: -1; pointer-events: none; }
.v272-pdf-page {
  box-sizing: border-box; width: 1120px; height: 1584px; padding: 72px 74px 64px;
  overflow: hidden; background: #fff; color: #172033; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
.v272-pdf-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 3px solid #1d4ed8; }
.v272-pdf-header h1 { margin: 0; color: #172554; font-size: 34px; letter-spacing: 1px; }
.v272-pdf-header p { margin: 8px 0 0; color: #475569; font-size: 16px; }
.v272-pdf-header time { color: #64748b; font-size: 14px; white-space: nowrap; }
.v272-pdf-section-title { margin: 28px 0 14px; padding-left: 11px; border-left: 5px solid #2563eb; color: #172554; font-size: 22px; }
.v272-pdf-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.v272-pdf-info-item { padding: 14px 16px; border: 1px solid #dbe2ec; border-radius: 10px; background: #f8fafc; }
.v272-pdf-info-item.full { grid-column: 1 / -1; }
.v272-pdf-info-item span { display: block; color: #64748b; font-size: 13px; }
.v272-pdf-info-item strong, .v272-pdf-info-item div { display: block; margin-top: 7px; color: #172033; font-size: 16px; line-height: 1.55; white-space: pre-wrap; }
.v272-pdf-card-list { display: grid; gap: 12px; }
.v272-pdf-card { padding: 15px 17px; border: 1px solid #dbe2ec; border-radius: 10px; background: #fff; }
.v272-pdf-card h3 { margin: 0 0 8px; color: #1e3a8a; font-size: 18px; }
.v272-pdf-card p { margin: 4px 0; color: #334155; font-size: 14px; line-height: 1.55; }
.v272-pdf-image-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.v272-pdf-image-card { display: grid; grid-template-rows: 1fr auto; min-height: 610px; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; }
.v272-pdf-image-card img { width: 100%; height: 540px; object-fit: contain; background: #fff; }
.v272-pdf-image-card div { padding: 10px 12px; border-top: 1px solid #e2e8f0; color: #334155; font-size: 13px; line-height: 1.45; }
.v272-pdf-footer { position: absolute; left: 74px; right: 74px; bottom: 28px; display: flex; justify-content: space-between; color: #94a3b8; font-size: 11px; }
.v272-pdf-page { position: relative; }
.preview-modal .modal-footer #filePreviewPrint[hidden] { display: none; }
@media (max-width: 900px) {
  .product-export-toggle-grid { grid-template-columns: 1fr; }
}

/* V27.3 产品资料 PDF 紧凑首页与代表图片排版 */
.product-export-image-groups { display: grid; gap: 10px; max-height: 340px; overflow: auto; }
.product-export-image-group { margin: 0; padding: 10px; border: 1px solid #dbe2ec; border-radius: 10px; background: #f8fafc; }
.product-export-image-group legend { padding: 0 6px; color: #1e3a8a; font-size: 12px; font-weight: 700; }
.product-export-image-choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.v273-pdf-product-summary { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(250px,.85fr); gap: 14px; align-items: stretch; }
.v273-pdf-base-panel { min-width: 0; }
.v273-pdf-base-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.v273-pdf-base-grid .v272-pdf-info-item { padding: 9px 11px; border-radius: 8px; }
.v273-pdf-base-grid .v272-pdf-info-item span { font-size: 11px; }
.v273-pdf-base-grid .v272-pdf-info-item strong,
.v273-pdf-base-grid .v272-pdf-info-item div { margin-top: 4px; font-size: 13px; line-height: 1.35; }
.v273-pdf-cover-card { display: grid; grid-template-rows: minmax(0,1fr) auto; margin: 0; min-height: 286px; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; }
.v273-pdf-cover-card img { width: 100%; height: 248px; object-fit: contain; background: #fff; }
.v273-pdf-cover-empty { display: grid; place-items: center; min-height: 248px; color: #94a3b8; font-size: 14px; background: #fff; }
.v273-pdf-cover-card figcaption { padding: 8px 10px; border-top: 1px solid #e2e8f0; color: #475569; font-size: 11px; text-align: center; }
.v273-pdf-page .v272-pdf-section-title { margin: 18px 0 9px; font-size: 18px; }
.v273-pdf-relation-section { break-inside: avoid; }
.v273-pdf-relation-list { display: grid; gap: 8px; }
.v273-pdf-relation-row { display: grid; grid-template-columns: minmax(0,1fr) 132px; gap: 12px; min-height: 112px; padding: 9px 10px 9px 13px; border: 1px solid #dbe2ec; border-radius: 9px; background: #fff; }
.v273-pdf-relation-text { min-width: 0; }
.v273-pdf-relation-text h3 { margin: 0 0 6px; color: #1e3a8a; font-size: 15px; }
.v273-pdf-relation-text p { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 7px; margin: 3px 0; color: #334155; font-size: 11px; line-height: 1.35; }
.v273-pdf-relation-text p span { color: #64748b; }
.v273-pdf-relation-text p strong { overflow-wrap: anywhere; font-weight: 600; }
.v273-pdf-relation-image { display: grid; place-items: center; width: 132px; height: 94px; align-self: center; overflow: hidden; border: 1px solid #dbe2ec; border-radius: 8px; background: #f8fafc; }
.v273-pdf-relation-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.v273-pdf-relation-image-empty { color: #94a3b8; font-size: 11px; }
.v273-pdf-continuation-page .v272-pdf-page-content { padding-top: 2px; }
@media (max-width: 900px) {
  .product-export-image-choice-list { grid-template-columns: 1fr; }
}

/* V28 销售数据云端分页与按需加载 */
.server-pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border-top:1px solid #e2e8f0; background:#f8fafc; }
.server-pagination-summary { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; min-width:0; color:#64748b; font-size:13px; }
.server-pagination-summary strong { color:#0f172a; font-size:14px; }
.server-pagination-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.server-pagination-controls label { display:flex; align-items:center; gap:6px; color:#475569; font-size:13px; }
.select.select-compact { min-width:72px; height:34px; padding-top:4px; padding-bottom:4px; }
.empty-state.error-state { color:#b91c1c; }
@media (max-width: 900px) {
  .server-pagination { align-items:stretch; flex-direction:column; }
  .server-pagination-controls { justify-content:flex-start; }
}

/* ========================= V29 零件检查记录表 ========================= */
.inspection-standard-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border, #d9e1ec);
  border-radius: 10px;
  background: #f8fafc;
}
.inspection-standard-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.inspection-standard-summary span {
  color: var(--text-muted, #64748b);
  overflow-wrap: anywhere;
}
.inspection-header-grid {
  margin-top: 12px;
}
.inspection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.inspection-actions.bottom-actions {
  justify-content: flex-end;
  padding-top: 4px;
}
.inspection-editor-wrap {
  max-height: 48vh;
  border: 1px solid var(--border, #d9e1ec);
  border-radius: 10px;
}
.inspection-editor-table {
  min-width: 1120px;
}
.inspection-editor-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}
.inspection-editor-table th:nth-child(1),
.inspection-editor-table td:nth-child(1) { width: 76px; }
.inspection-editor-table th:nth-child(2),
.inspection-editor-table td:nth-child(2) { width: 160px; }
.inspection-editor-table th:nth-child(3),
.inspection-editor-table td:nth-child(3) { width: 220px; }
.inspection-editor-table th:nth-child(4),
.inspection-editor-table td:nth-child(4),
.inspection-editor-table th:nth-child(5),
.inspection-editor-table td:nth-child(5) { width: 105px; }
.inspection-editor-table th:nth-child(6),
.inspection-editor-table td:nth-child(6) { width: 120px; }
.inspection-editor-table th:nth-child(7),
.inspection-editor-table td:nth-child(7) { width: 260px; }
.inspection-editor-table th:nth-child(8),
.inspection-editor-table td:nth-child(8) { width: 70px; text-align: center; }
.compact-input {
  min-width: 0;
  height: 34px;
  padding: 6px 8px;
}
.compact-textarea {
  min-height: 52px;
  padding: 7px 8px;
  resize: vertical;
}
.warning-notice {
  border-color: #f4c86b;
  background: #fff8e8;
  color: #6f4b00;
}
@media (max-width: 900px) {
  .inspection-standard-summary { align-items: flex-start; }
  .inspection-actions.bottom-actions { justify-content: stretch; }
  .inspection-actions.bottom-actions .btn { flex: 1 1 180px; }
}

/* V29.6 产品报价记录与 Excel 导入 */
.quotation-record-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.quotation-record-summary > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.quotation-record-summary span { color: var(--muted); font-size: 13px; }
.quotation-record-summary strong { font-size: 23px; color: var(--text); }
.quotation-record-table-wrap table { min-width: 1680px; }
.quotation-record-table-wrap th:nth-child(1) { min-width: 150px; }
.quotation-record-table-wrap th:nth-child(4) { min-width: 130px; }
.quotation-record-table-wrap th:nth-child(5) { min-width: 135px; }
.quotation-record-table-wrap th:nth-child(6) { min-width: 130px; }
.quotation-record-table-wrap th:nth-child(11) { min-width: 180px; }
.quotation-record-table-wrap td:nth-child(11) {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quotation-local-notice { margin-top: 14px; }
@media (max-width: 820px) {
  .quotation-record-summary { grid-template-columns: 1fr; }
}

/* ========================= V29.7 报价纵向录入、教程、看板、注塑机管理 ========================= */

.v297-quotation-products { display: grid; gap: 18px; }
.v297-quote-product-card { border: 1px solid #d8e2f0; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 8px 24px rgba(29, 78, 216, .06); }
.v297-quote-card-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; background: linear-gradient(135deg, #eff6ff, #f8fbff); border-bottom: 1px solid #dce7f5; }
.v297-quote-card-header > div:first-child { display: flex; align-items: center; gap: 10px; }
.v297-quote-card-index { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 30px; padding: 0 12px; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 700; }
.v297-quote-section { padding: 16px 18px; border-bottom: 1px solid #edf2f7; }
.v297-quote-section:last-child { border-bottom: 0; }
.v297-quote-section h4 { margin: 0 0 12px; color: #172554; font-size: 15px; }
.v297-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.v297-section-heading h4 { margin: 0; }
.v297-quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v297-quote-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v297-quote-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.v297-insert-list { display: grid; gap: 8px; }
.v297-insert-fee-row { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(220px, 1.5fr) minmax(120px, .6fr) auto; gap: 10px; align-items: center; }
.v297-inline-summary { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f6f9ff; color: #334155; text-align: right; }
.v297-price-input-row { display: flex; gap: 8px; align-items: center; }
.v297-price-input-row .input { flex: 1; }
.v297-products-heading { margin-top: 22px; }
.v297-quote-detail-list { display: grid; gap: 12px; margin: 16px 0; }
.v297-quote-detail-card { padding: 14px; border: 1px solid #dbe5f2; border-radius: 12px; background: #fbfdff; }
.v297-quote-detail-card h4 { margin: 0 0 12px; }

.v297-tutorial-list { display: grid; gap: 12px; margin-top: 14px; }
.v297-tutorial-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px; border: 1px solid #d9e4f2; border-radius: 14px; background: #fff; }
.v297-tutorial-card h3 { margin: 8px 0 6px; }
.v297-tutorial-card p { margin: 0; color: #64748b; }
.v297-tutorial-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; color: #475569; font-size: 13px; }
.v297-tutorial-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.v297-tutorial-editor-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.v297-tutorial-editor-layout aside { border: 1px solid #dce5f1; border-radius: 12px; padding: 12px; background: #f8fafc; }
.v297-chapter-list { display: grid; gap: 6px; max-height: 380px; overflow: auto; }
.v297-chapter-button { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; width: 100%; border: 1px solid transparent; border-radius: 9px; padding: 9px 10px; background: transparent; text-align: left; cursor: pointer; color: #334155; }
.v297-chapter-button span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; font-size: 12px; }
.v297-chapter-button.active { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.v297-chapter-actions { display: flex; gap: 8px; margin-top: 10px; }
.v297-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid #d8e2ef; border-bottom: 0; border-radius: 10px 10px 0 0; background: #f8fafc; }
.v297-editor-toolbar button { border: 1px solid #d6e0ec; background: #fff; border-radius: 7px; padding: 6px 9px; cursor: pointer; }
.v297-rich-editor { min-height: 340px; max-height: 520px; overflow: auto; padding: 16px; border: 1px solid #d8e2ef; border-radius: 0 0 10px 10px; background: #fff; line-height: 1.75; outline: none; }
.v297-rich-editor:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.v297-rich-editor img { max-width: 100%; height: auto; border-radius: 8px; }
.v297-video-link-row { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(280px, 1.8fr) auto; gap: 8px; margin-bottom: 8px; }
.v297-tutorial-reading section { border-bottom: 1px solid #e5eaf1; padding: 14px 0; }
.v297-tutorial-reading section:last-child { border-bottom: 0; }
.v297-tutorial-reading h2 { font-size: 18px; }
.v297-tutorial-reading img { max-width: 100%; height: auto; }
.v297-tutorial-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.v297-tutorial-links h3 { width: 100%; margin: 0 0 4px; }
.v297-tutorial-summary { color: #475569; }

.v297-machine-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.v297-machine-list { display: grid; gap: 14px; }
.v297-machine-card { border: 1px solid #d6e2f1; border-radius: 16px; background: #fff; overflow: hidden; }
.v297-machine-card.inactive { opacity: .72; }
.v297-machine-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, #eff6ff, #f8fafc); border-bottom: 1px solid #dbe7f4; }
.v297-machine-header h3 { margin: 0 0 4px; color: #0f2f66; }
.v297-machine-header p { margin: 0; color: #64748b; }
.v297-machine-header > div:last-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.v297-machine-queue { min-height: 110px; padding: 12px; display: grid; gap: 8px; transition: background .15s, box-shadow .15s; }
.v297-machine-queue.drag-over, .v297-machine-card.drag-over { background: #eff6ff; box-shadow: inset 0 0 0 2px #3b82f6; }
.v297-drop-empty { display: grid; place-items: center; min-height: 80px; border: 2px dashed #cbd5e1; border-radius: 12px; color: #94a3b8; }
.v297-machine-task { border: 1px solid #d8e2ef; border-left: 4px solid #94a3b8; border-radius: 10px; padding: 10px 12px; background: #fff; cursor: grab; }
.v297-machine-task.primary { border-left-color: #2563eb; background: #eff6ff; }
.v297-machine-task > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.v297-machine-task > div:first-child span { color: #64748b; }
.v297-machine-task-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; font-size: 12px; color: #475569; }
.v297-machine-task-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.v297-task-sidebar { min-width: 0; }
.v297-task-sidebar-sticky { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; padding: 14px; border: 1px solid #d8e2ef; border-radius: 14px; background: #f8fafc; }
.v297-task-sidebar h3 { margin: 0 0 4px; }
.v297-task-sidebar p { margin: 0 0 12px; color: #64748b; }
.v297-task-groups { display: grid; gap: 12px; }
.v297-task-group { border: 1px solid #d7e0eb; border-radius: 12px; background: #fff; overflow: hidden; }
.v297-task-group > header { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #eaf2ff; font-size: 13px; }
.v297-task-group .v297-machine-task { margin: 8px; }

.v297-kanban { min-height: calc(100vh - 150px); padding: 18px; border-radius: 18px; background: radial-gradient(circle at 50% 0%, #123b6e 0, #071b39 43%, #031128 100%); color: #fff; box-shadow: inset 0 0 0 1px rgba(86, 184, 255, .35); }
.v297-kanban > header { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 10px 14px 20px; border-bottom: 1px solid rgba(103, 200, 255, .35); }
.v297-kanban > header h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: 3px; }
.v297-kanban > header p { margin: 0; color: #a9c8e8; }
.v297-kanban-tools { display: flex; gap: 10px; align-items: center; }
.v297-kanban-tools > strong { min-width: 220px; font-size: 18px; text-align: right; }
.v297-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.v297-kpi-grid > div { padding: 16px; border: 1px solid rgba(66, 190, 255, .38); border-radius: 14px; background: rgba(9, 52, 91, .78); text-align: center; }
.v297-kpi-grid > div span { display: block; color: #a8c7e4; }
.v297-kpi-grid > div strong { display: block; margin-top: 7px; font-size: 30px; color: #55d9ff; }
.v297-kpi-grid > div.danger strong { color: #ff5757; }
.v297-kanban-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v297-kanban-columns section { min-height: 360px; padding: 14px; border: 1px solid rgba(66, 190, 255, .35); border-radius: 14px; background: rgba(5, 34, 66, .82); }
.v297-kanban-columns h3 { margin: 0 0 12px; font-size: 20px; color: #bde8ff; }
.v297-board-row { display: grid; grid-template-columns: 1fr 1.2fr .7fr .8fr; gap: 10px; align-items: center; padding: 11px 9px; border-bottom: 1px solid rgba(115, 183, 228, .18); }
.v297-board-row:last-child { border-bottom: 0; }
.v297-board-row strong { color: #5cddff; }
.v297-board-machine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.v297-board-machine { border: 1px solid rgba(63, 200, 255, .42); border-radius: 15px; overflow: hidden; background: rgba(5, 36, 70, .86); }
.v297-board-machine.inactive { opacity: .65; }
.v297-board-machine > header { display: flex; justify-content: space-between; gap: 10px; padding: 13px 15px; background: rgba(18, 76, 123, .75); }
.v297-board-machine h3 { margin: 0 0 4px; font-size: 22px; color: #63e4ff; }
.v297-board-machine header span { color: #a8c8e7; }
.v297-board-machine header > strong { color: #8dffca; }
.v297-board-primary { padding: 16px; min-height: 120px; border-bottom: 1px solid rgba(111, 194, 239, .22); }
.v297-board-primary span { color: #a8c8e7; }
.v297-board-primary h4 { margin: 9px 0 5px; font-size: 20px; }
.v297-board-primary p { margin: 0; color: #d1e8f7; }
.v297-board-queue { padding: 10px 14px 14px; }
.v297-board-queue > div { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(127, 197, 237, .2); }
.v297-board-queue em { color: #70dfff; font-style: normal; }
.v297-board-table { margin-top: 18px; border: 1px solid rgba(66, 190, 255, .38); border-radius: 14px; overflow: hidden; background: rgba(4, 32, 63, .84); }
.v297-board-table-head, .v297-board-table-row { display: grid; grid-template-columns: .9fr 1.2fr 2fr .9fr .65fr .9fr; gap: 10px; align-items: center; padding: 12px 14px; }
.v297-board-table-head { background: rgba(18, 91, 151, .85); color: #d6f4ff; font-weight: 700; }
.v297-board-table-row { border-top: 1px solid rgba(102, 183, 231, .18); }
.v297-board-table-row strong { color: #5fe3ff; }
.v297-board-table-row.danger { background: rgba(155, 24, 38, .28); color: #ffb4b4; }
.v297-board-table-head.quality, .v297-board-table-row.quality { grid-template-columns: 1fr 1fr 1.4fr .8fr .8fr 1.1fr; }
.v297-kanban .empty-state { color: #a8c8e7; }

@media (max-width: 1280px) {
  .v297-quote-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v297-quote-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v297-machine-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .v297-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .v297-quote-grid, .v297-quote-grid.four, .v297-quote-grid.five { grid-template-columns: 1fr; }
  .v297-insert-fee-row { grid-template-columns: 1fr; }
  .v297-quote-card-header, .v297-tutorial-card, .v297-machine-header, .v297-kanban > header { align-items: flex-start; flex-direction: column; }
  .v297-tutorial-actions { width: 100%; flex-wrap: wrap; }
  .v297-tutorial-editor-layout { grid-template-columns: 1fr; }
  .v297-machine-layout { grid-template-columns: 1fr; }
  .v297-task-sidebar-sticky { position: static; max-height: none; }
  .v297-kanban-columns { grid-template-columns: 1fr; }
  .v297-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v297-board-table { overflow-x: auto; }
  .v297-board-table-head, .v297-board-table-row { min-width: 900px; }
  .v297-kanban-tools { flex-wrap: wrap; }
  .v297-kanban-tools > strong { min-width: 0; text-align: left; }
}


/* ========================= V29.8 报价分目录、发货计划电视版、注塑机性能优化 ========================= */

#view-product-quotation-records .panel { margin-bottom: 0; }

.v298-machine-performance-bar {
  display: grid;
  grid-template-columns: auto minmax(220px, 520px) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #d9e0e8);
  border-radius: 12px;
  background: #f8fafc;
}
.v298-machine-performance-bar label { font-weight: 700; }
.v297-machine-card,
.v297-task-group,
.v297-machine-task {
  content-visibility: auto;
  contain-intrinsic-size: 120px;
}
.v297-machine-list,
.v297-task-groups { contain: layout style; }

.v298-shipping-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.v298-shipping-kpis > div {
  padding: 14px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f5f8fc);
}
.v298-shipping-kpis span { display: block; color: #64748b; font-size: 13px; }
.v298-shipping-kpis strong { display: block; margin-top: 5px; font-size: 28px; color: #0f172a; }
.v298-shipping-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.v298-shipping-actions > span { margin-left: auto; color: #64748b; font-size: 13px; }
.v298-shipping-paste {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px dashed #a7b5c7;
  border-radius: 12px;
  background: #f8fafc;
}
.v298-shipping-paste summary { cursor: pointer; font-weight: 700; }
.v298-shipping-paste textarea { min-height: 120px; margin: 12px 0; }
.v298-shipping-editor-table input { min-width: 110px; }
.v298-shipping-editor-table td:nth-child(2) input { min-width: 180px; font-weight: 700; }
.v298-shipping-editor-table th,
.v298-shipping-editor-table td { white-space: nowrap; }

.v298-shipping-board-card {
  margin-top: 20px;
  padding: 26px;
  color: #f8fafc;
  background: radial-gradient(circle at top right, #173b64, #081321 58%, #050a12);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(2, 8, 23, .28);
  min-height: 520px;
}
.v298-shipping-board-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.v298-shipping-board-card > header > div:last-child { display: flex; align-items: center; gap: 12px; }
.v298-shipping-board-card h2 { margin: 3px 0 5px; font-size: clamp(30px, 3vw, 52px); letter-spacing: .08em; }
.v298-shipping-board-card p { margin: 0; color: #bfd2e7; font-size: 16px; }
.v298-board-eyebrow { color: #65d6ff; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.v298-shipping-board-table { overflow: hidden; border: 1px solid rgba(148, 203, 255, .32); border-radius: 14px; }
.v298-shipping-board-head,
.v298-shipping-board-row {
  display: grid;
  grid-template-columns: 1.15fr 2.2fr 1fr 1fr .8fr;
  align-items: center;
}
.v298-shipping-board-head { background: rgba(25, 72, 112, .9); color: #dff4ff; font-weight: 800; }
.v298-shipping-board-head span,
.v298-shipping-board-row > span { padding: 13px 15px; border-right: 1px solid rgba(148, 203, 255, .18); }
.v298-shipping-board-row { min-height: 58px; background: rgba(255,255,255,.035); border-top: 1px solid rgba(148, 203, 255, .15); font-size: clamp(15px, 1.35vw, 22px); }
.v298-shipping-board-row:nth-child(odd) { background: rgba(255,255,255,.065); }
.v298-shipping-board-row .drawing { font-weight: 850; letter-spacing: .02em; }
.v298-shipping-board-row > span:first-child { display: flex; align-items: center; gap: 10px; }
.v298-shipping-board-row em { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-style: normal; white-space: nowrap; background: #334155; color: #e2e8f0; }
.v298-shipping-board-row.today { background: rgba(239, 68, 68, .23); box-shadow: inset 5px 0 #fb7185; }
.v298-shipping-board-row.today em { background: #e11d48; color: white; }
.v298-shipping-board-row.tomorrow { background: rgba(245, 158, 11, .19); box-shadow: inset 5px 0 #fbbf24; }
.v298-shipping-board-row.tomorrow em { background: #d97706; color: white; }
.v298-shipping-board-row.future em { background: #075985; color: #e0f2fe; }
.v298-shipping-board-row.overdue { opacity: .55; }
.v298-shipping-board-card:fullscreen { border-radius: 0; margin: 0; padding: 2.3vw; overflow: auto; }
.v298-shipping-board-card:fullscreen .v298-shipping-board-row { min-height: 7vh; }
.v298-shipping-board-card:fullscreen > header .btn { display: none; }

@media (max-width: 900px) {
  .v298-machine-performance-bar { grid-template-columns: 1fr; }
  .v298-shipping-kpis { grid-template-columns: repeat(2, 1fr); }
  .v298-shipping-actions > span { width: 100%; margin-left: 0; }
  .v298-shipping-board-card { padding: 18px; overflow-x: auto; }
  .v298-shipping-board-table { min-width: 760px; }
}

/* ========================= V29.9.1 生产任务重构与更新核验 ========================= */
.erp-build-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #0f766e;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-item[data-view="sales-work-report"] { display: none !important; }

.v299-demand-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.v299-demand-summary > div {
  padding: 15px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f6f9fc);
}
.v299-demand-summary span {
  display: block;
  color: #64748b;
  font-size: 13px;
}
.v299-demand-summary strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 27px;
}
.v299-demand-table table { min-width: 1080px; }
.v299-demand-rank {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0369a1;
}
.v299-demand-table tbody tr:nth-child(-n+3) .v299-demand-rank {
  background: #fff7ed;
  color: #c2410c;
}
.v299-demand-table td:last-child { white-space: nowrap; }

.v299-shipping-demand-reference {
  margin-top: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fafc;
}
.v299-shipping-demand-reference summary {
  padding: 14px 16px;
  cursor: pointer;
  color: #334155;
  font-weight: 800;
}
.v299-shipping-demand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}
.v299-shipping-demand-grid > div {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(130px, 1fr);
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
}
.v299-shipping-demand-grid strong { color: #0f172a; }
.v299-shipping-demand-grid span { color: #475569; }
.v299-shipping-demand-grid em {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

#view-product-quotation > article[data-v299-quotation-records="true"] { display: none !important; }
#view-product-quotation-records > article[data-v299-quotation-editor="true"] { display: none !important; }

@media (max-width: 1100px) {
  .v299-demand-summary { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .v299-shipping-demand-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .erp-build-badge { min-width: 52px; padding-inline: 8px; }
  .v299-demand-summary { grid-template-columns: 1fr; }
}
.login-build-badge {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}
.login-build-badge strong {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
}

/* V30.0 注塑任务分配、手机报工与保养 */
.v300-sync-banner{margin-bottom:14px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a;line-height:1.65}.v300-assignment-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,390px);gap:18px;align-items:start}.v300-machine-list{display:grid;gap:16px}.v300-machine-card{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-soft);overflow:hidden}.v300-machine-card.drag-over{outline:3px solid rgba(37,99,235,.25);border-color:#2563eb}.v300-machine-card.inactive{opacity:.68}.v300-machine-card>header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 16px;border-bottom:1px solid var(--line);background:#f8fafc}.v300-machine-card h3{margin:0;font-size:19px}.v300-machine-card p{margin:4px 0 0;color:var(--muted)}.v300-level-ruler{display:grid;grid-template-columns:repeat(9,1fr);gap:5px;padding:10px 14px;background:#f8fafc;border-bottom:1px solid var(--line)}.v300-level-ruler span{display:grid;place-items:center;height:25px;border:1px solid #cbd5e1;border-radius:7px;color:#64748b;font-size:12px;font-weight:800}.v300-level-ruler span.filled{border-color:#60a5fa;background:#dbeafe;color:#1d4ed8}.v300-machine-queue{display:grid;gap:10px;min-height:95px;padding:12px}.v300-machine-task{display:grid;grid-template-columns:68px minmax(0,1fr) minmax(230px,auto);gap:12px;align-items:center;padding:12px;border:1px solid #dbe4ef;border-radius:12px;background:#fff;cursor:grab}.v300-machine-task.current{border-color:#2563eb;background:linear-gradient(90deg,#eff6ff,#fff);box-shadow:inset 4px 0 #2563eb}.v300-task-level{display:grid;gap:5px;text-align:center}.v300-task-level label{font-size:11px;color:#64748b}.v300-task-level select{width:58px;padding:7px;border:1px solid #cbd5e1;border-radius:8px;background:white;font-weight:900;color:#1d4ed8}.v300-task-main{min-width:0}.v300-task-main>strong,.v300-task-main>span,.v300-task-main>small,.v300-task-main>em{display:block}.v300-task-main>strong{font-size:16px}.v300-task-main>span{margin-top:2px;color:#334155}.v300-task-main>small{margin-top:4px;color:#64748b}.v300-task-main>em{margin-top:5px;color:#475569;font-size:12px;font-style:normal}.v300-progress{height:8px;margin-top:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}.v300-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#22c55e)}.v300-task-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.v300-task-controls label{display:flex;align-items:center;gap:5px;color:#64748b;font-size:12px}.v300-task-controls input{width:82px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:8px}.v300-task-sidebar{position:sticky;top:82px;max-height:calc(100vh - 110px);overflow:auto;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}.v300-task-sidebar h3{margin:0}.v300-task-sidebar>p{margin:5px 0 14px;color:var(--muted);font-size:12px}.v300-task-group{margin-bottom:10px;border:1px solid #dbe4ef;border-radius:11px;overflow:hidden;background:#fff}.v300-task-group summary{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px;background:#f8fafc;cursor:grab;list-style:none}.v300-task-group summary::-webkit-details-marker{display:none}.v300-task-group summary div strong,.v300-task-group summary div span{display:block}.v300-task-group summary div span{margin-top:3px;color:#64748b;font-size:12px}.v300-task-group summary em{max-width:150px;color:#2563eb;font-size:11px;font-style:normal;text-align:right}.v300-group-body{display:grid;gap:7px;padding:9px}.v300-unassigned-task{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:9px;background:white;cursor:grab}.v300-unassigned-task span{color:#64748b;font-size:11px}.v300-mobile-preview{height:min(760px,72vh);padding:8px;border-radius:15px;background:#0f172a}.v300-mobile-preview iframe{width:100%;height:100%;border:0;border-radius:10px;background:#f8fafc}.v300-maintenance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}.v300-maintenance-card{padding:16px;border:1px solid var(--line);border-radius:14px;background:white}.v300-maintenance-card.overdue{border-color:#fca5a5;background:#fff7f7}.v300-maintenance-card.completed{border-color:#86efac;background:#f0fdf4}.v300-maintenance-card header{display:flex;justify-content:space-between;gap:10px}.v300-maintenance-card header strong,.v300-maintenance-card header span{display:block}.v300-maintenance-card header span{margin-top:3px;color:#475569}.v300-maintenance-card header em{padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-style:normal}.v300-maintenance-card.overdue header em{background:#fee2e2;color:#b91c1c}.v300-maintenance-card.completed header em{background:#dcfce7;color:#15803d}.v300-maintenance-card>div{display:grid;gap:5px;margin-top:13px;color:#64748b;font-size:12px}.v300-maintenance-card p{min-height:20px;color:#475569}.v300-maintenance-card footer{display:flex;justify-content:flex-end;gap:8px}.v300-board-machine-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:16px}.v300-board-machine{overflow:hidden;border:1px solid rgba(125,211,252,.3);border-radius:16px;background:rgba(5,25,46,.84)}.v300-board-machine>header{display:flex;justify-content:space-between;gap:12px;padding:15px 17px;background:rgba(14,70,112,.75)}.v300-board-machine h3{margin:0;font-size:24px}.v300-board-machine header span{display:block;margin-top:4px;color:#bfdbfe}.v300-board-machine header>strong{color:#67e8f9}.v300-board-tasks{display:grid}.v300-board-tasks>div{display:grid;grid-template-columns:38px minmax(0,1fr) 58px;gap:11px;align-items:center;padding:12px 15px;border-top:1px solid rgba(125,211,252,.16)}.v300-board-tasks>div.active{background:rgba(37,99,235,.22);box-shadow:inset 5px 0 #38bdf8}.v300-board-tasks b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#1e3a5f;color:#93c5fd}.v300-board-tasks span strong,.v300-board-tasks span small{display:block}.v300-board-tasks span small{margin-top:3px;color:#b6c9dd}.v300-board-tasks i{display:block;height:6px;margin-top:7px;border-radius:999px;background:rgba(148,163,184,.25);overflow:hidden}.v300-board-tasks i em{display:block;height:100%;background:#22c55e}.v300-board-tasks mark{background:transparent;color:#67e8f9;font-weight:900;text-align:right}
@media(max-width:1100px){.v300-assignment-layout{grid-template-columns:1fr}.v300-task-sidebar{position:static;max-height:none}.v300-machine-task{grid-template-columns:58px 1fr}.v300-task-controls{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:720px){.v300-machine-task{grid-template-columns:1fr}.v300-task-level{display:flex;align-items:center}.v300-task-controls{grid-column:auto}.v300-maintenance-grid{grid-template-columns:1fr}}


/* V30.1 车间报工入口与密钥展示 */
.v301-shopfloor-access{display:grid;grid-template-columns:minmax(260px,1.2fr) minmax(220px,.8fr) auto;gap:14px;align-items:center;margin:14px 0 18px;padding:16px 18px;border:1px solid #bfdbfe;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#f8fafc);box-shadow:0 8px 24px rgba(37,99,235,.08)}
.v301-shopfloor-access h3{margin:0 0 5px;font-size:16px;color:#0f172a}.v301-shopfloor-access p{margin:0;color:#64748b;font-size:13px;line-height:1.6}
.v301-access-value{display:flex;flex-direction:column;gap:5px}.v301-access-value span{font-size:12px;color:#64748b}.v301-access-value code{display:block;padding:10px 12px;border:1px dashed #60a5fa;border-radius:10px;background:#fff;color:#1d4ed8;font-size:15px;font-weight:800;letter-spacing:.04em;user-select:all;word-break:break-all}
.v301-access-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.v301-access-actions .btn{white-space:nowrap}
.v301-preview-key{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a}.v301-preview-key code{font-size:15px;font-weight:800;user-select:all}
@media(max-width:1050px){.v301-shopfloor-access{grid-template-columns:1fr}.v301-access-actions{justify-content:flex-start}}

/* V30.3 车间云服务自检 */
.v302-endpoint-hint{margin-top:8px;font-size:12px;color:#64748b}.v302-endpoint-hint code{word-break:break-all}.v302-service-state{grid-column:1/-1;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#475569;font-size:13px}.v302-service-state[data-state="checking"]{background:#eff6ff;color:#1d4ed8}.v302-service-state[data-state="ok"]{background:#ecfdf5;color:#166534}.v302-service-state[data-state="error"]{background:#fef2f2;color:#b91c1c}.v302-health-error code{display:block;margin:6px 0 12px;padding:10px;border-radius:8px;background:#f8fafc;word-break:break-all}

/* ========================= V30.8 生产任务分配与统一看板 ========================= */
.v300-sync-banner{font-size:13px;line-height:1.55;padding:9px 12px}
.v304-shopfloor-access{margin:12px 0 16px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#f8fafc);box-shadow:0 8px 24px rgba(37,99,235,.06);overflow:hidden}
.v304-shopfloor-access>summary{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:13px 16px;cursor:pointer;list-style:none}.v304-shopfloor-access>summary::-webkit-details-marker{display:none}.v304-shopfloor-access>summary span strong,.v304-shopfloor-access>summary span small{display:block}.v304-shopfloor-access>summary span strong{font-size:15px;color:#0f172a}.v304-shopfloor-access>summary span small{margin-top:3px;color:#64748b;font-size:12px;font-weight:400}.v304-shopfloor-access>summary em{padding:5px 9px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-style:normal;font-weight:800}.v304-shopfloor-access[open]>summary em{font-size:0}.v304-shopfloor-access[open]>summary em::after{content:'收起';font-size:11px}.v304-access-content{display:grid;grid-template-columns:minmax(260px,1.2fr) minmax(220px,.8fr) auto;gap:14px;align-items:center;padding:0 16px 16px}.v304-access-content p{margin:0;color:#64748b;font-size:12px;line-height:1.55}.v304-access-content .v302-service-state{grid-column:1/-1}
.v300-assignment-layout{grid-template-columns:minmax(0,1fr) minmax(330px,390px)}.v300-machine-column{min-width:0}.v304-machine-filter-bar{display:grid;grid-template-columns:minmax(190px,1fr) minmax(230px,1.3fr) auto;gap:10px;align-items:end;margin-bottom:12px;padding:12px;border:1px solid #dbe4ef;border-radius:13px;background:#f8fafc}.v304-machine-filter-bar label{display:grid;gap:5px;color:#475569;font-size:12px;font-weight:800}.v304-machine-filter-bar span{padding-bottom:9px;color:#64748b;font-size:12px;white-space:nowrap}.v304-pending-filter{display:grid;gap:7px;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e2e8f0}.v304-pending-filter label{color:#334155;font-size:12px;font-weight:800}.v304-pending-filter span{color:#64748b;font-size:11px}
.v300-machine-card>header{cursor:default}.v304-machine-body[hidden]{display:none!important}.v300-level-ruler span{background:#e5e7eb;color:#64748b}.v300-level-ruler span.completed{border-color:#4ade80;background:#dcfce7;color:#15803d}.v300-level-ruler span.current{border-color:#60a5fa;background:#dbeafe;color:#1d4ed8}.v300-level-ruler span.pending{border-color:#d1d5db;background:#e5e7eb;color:#64748b}.v300-machine-task.pending{background:#fafafa;border-color:#e5e7eb}.v304-waiting-label{padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:800}.v300-machine-task[hidden]{display:none!important}
.v304-kanban-entry{overflow:hidden}.v304-board-frame{height:calc(100vh - 180px);min-height:680px;padding:0 14px 14px}.v304-board-frame iframe{width:100%;height:100%;border:0;border-radius:16px;background:#020617}
@media(max-width:1050px){.v304-access-content{grid-template-columns:1fr}.v304-machine-filter-bar{grid-template-columns:1fr}.v304-machine-filter-bar span{padding-bottom:0}.v304-board-frame{height:760px;min-height:0}}

/* V30.8 全自动超产与动态等级 */
.v305-completed-count{display:inline-flex;align-items:center;margin-right:6px;padding:4px 8px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:11px;font-weight:900}
.v305-excess-row{background:#fff7ed}.v305-excess-value{color:#c2410c}.v300-machine-card header p{display:flex;gap:4px;flex-wrap:wrap}


/* ========================= V30.8 生产任务池分类视图 ========================= */
.v306-task-scope-tabs{display:flex;gap:8px;padding:14px 18px 0}
.v306-task-scope-tabs button{display:flex;align-items:center;gap:8px;padding:10px 15px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#475569;font-weight:900;cursor:pointer}
.v306-task-scope-tabs button b{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#e2e8f0;color:#334155}
.v306-task-scope-tabs button.active{border-color:#60a5fa;background:#eff6ff;color:#1d4ed8}
.v306-task-scope-tabs button.active b{background:#2563eb;color:#fff}
.v306-task-controls{grid-template-columns:minmax(260px,1fr) 250px}
.v306-task-group-row td{padding:9px 14px!important;background:#f1f5f9!important;color:#334155;border-top:1px solid #cbd5e1;border-bottom:1px solid #dbe4ef}
.v306-task-group-row strong{font-size:13px}.v306-task-group-row span{margin-left:12px;color:#64748b;font-size:12px}
@media(max-width:900px){.v306-task-controls{grid-template-columns:1fr}.v306-task-scope-tabs{overflow:auto}}
/* V30.8 稳定性审计：等待 ERP 确认完成 */
.v300-machine-task:has(.v304-waiting-label) input:disabled { opacity:.65; cursor:not-allowed; }

/* ========================= V31.5 登录体验、修模项目流程与账号通知 ========================= */
.login-progress {
  min-height: 18px;
  margin: 7px 0 0;
  color: #526079;
  font-size: 11px;
  line-height: 1.55;
}
.login-progress:empty { min-height: 0; margin: 0; }
.login-progress[data-state="pending"]::before,
.login-progress[data-state="retry"]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border: 2px solid #93c5fd;
  border-top-color: #2563eb;
  border-radius: 50%;
  vertical-align: -1px;
  animation: v309-login-spin .8s linear infinite;
}
.login-progress[data-state="retry"] { color: #b45309; }
.login-progress[data-state="success"] { color: #047857; }
.login-progress[data-state="success"]::before { content: "✓"; margin-right: 6px; font-weight: 800; }
@keyframes v309-login-spin { to { transform: rotate(360deg); } }

.account-button { position: relative; }
.account-button.has-notification { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.account-notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(239,68,68,.32);
}
.account-dropdown button > span { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-dropdown-count {
  min-width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.repair-project-panel { overflow: hidden; }
.repair-project-heading { align-items: flex-start; }
.repair-project-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.repair-project-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 99px; background: #3b82f6; }
.repair-project-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #e6ebf3;
  background: linear-gradient(180deg, #fbfdff, #f7faff);
}
.repair-project-toolbar-note { color: #64748b; font-size: 11px; text-align: right; }
.repair-kanban-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 15px 17px 20px;
  background: #f3f6fb;
  scrollbar-width: thin;
}
.repair-kanban {
  min-width: 1240px;
  display: grid;
  grid-template-columns: repeat(5, minmax(228px, 1fr));
  gap: 13px;
  align-items: start;
}
.repair-kanban-column {
  min-height: 540px;
  padding: 10px;
  border: 1px solid #e0e7f1;
  border-radius: 15px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 7px 20px rgba(30,47,80,.04);
}
.repair-kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px 3px 8px;
}
.repair-kanban-column-head > span { display: flex; align-items: center; gap: 8px; }
.repair-kanban-column-head i { width: 9px; height: 9px; border-radius: 50%; background: #64748b; box-shadow: 0 0 0 4px #e2e8f0; }
.repair-kanban-column[data-stage="reported"] .repair-kanban-column-head i { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }
.repair-kanban-column[data-stage="repairing"] .repair-kanban-column-head i { background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.repair-kanban-column[data-stage="sample"] .repair-kanban-column-head i { background: #8b5cf6; box-shadow: 0 0 0 4px #ede9fe; }
.repair-kanban-column[data-stage="customer"] .repair-kanban-column-head i { background: #0f766e; box-shadow: 0 0 0 4px #ccfbf1; }
.repair-kanban-column[data-stage="completed"] .repair-kanban-column-head i { background: #059669; box-shadow: 0 0 0 4px #d1fae5; }
.repair-kanban-column-head strong { font-size: 13px; }
.repair-kanban-column-head em { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; color: #475569; background: #e9eef6; font-size: 11px; font-style: normal; font-weight: 800; }
.repair-kanban-list { display: grid; gap: 10px; }
.repair-kanban-empty { padding: 36px 12px; color: #94a3b8; font-size: 11px; text-align: center; }

.repair-project-card {
  position: relative;
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid #dce5f1;
  border-radius: 13px;
  color: #172033;
  background: #fff;
  text-align: left;
  box-shadow: 0 5px 14px rgba(30,47,80,.05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.repair-project-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #64748b; }
.repair-project-card.priority-high::before { background: #f97316; }
.repair-project-card.priority-urgent::before { background: #ef4444; }
.repair-project-card:hover { transform: translateY(-2px); border-color: #9dbcf4; box-shadow: 0 11px 24px rgba(37,99,235,.11); }
.repair-project-card.overdue { border-color: #fecaca; background: linear-gradient(145deg, #fff, #fff7f7); }
.repair-project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.repair-project-card-head > span:first-child { min-width: 0; }
.repair-project-card-head strong { display: block; overflow: hidden; color: #132443; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.repair-project-card-head small { display: block; margin-top: 4px; overflow: hidden; color: #64748b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.repair-project-priority { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #526079; background: #eef2f7; font-size: 9px; font-style: normal; font-weight: 800; }
.priority-high .repair-project-priority { color: #c2410c; background: #ffedd5; }
.priority-urgent .repair-project-priority { color: #b91c1c; background: #fee2e2; }
.repair-project-content { min-height: 40px; margin: 0; overflow: hidden; color: #334155; font-size: 11px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.repair-project-person { display: flex; align-items: center; gap: 8px; }
.repair-project-person > i { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 9px; color: #1d4ed8; background: #dbeafe; font-size: 11px; font-style: normal; font-weight: 800; }
.repair-project-person > span { min-width: 0; }
.repair-project-person small, .repair-project-person strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repair-project-person small { color: #94a3b8; font-size: 9px; }
.repair-project-person strong { margin-top: 2px; color: #475569; font-size: 10px; }
.repair-project-milestones { display: grid; gap: 4px; padding: 8px 9px; border-radius: 9px; background: #f7f9fc; }
.repair-project-milestones span { overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.repair-project-progress { height: 5px; overflow: hidden; border-radius: 999px; background: #e5eaf1; }
.repair-project-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #2563eb); }
.repair-project-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.repair-project-card-foot strong { color: #1d4ed8; font-size: 10px; }
.repair-project-card-foot small { color: #94a3b8; font-size: 9px; }

.repair-create-shell { display: grid; gap: 14px; }
.repair-form-section {
  padding: 15px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fbfcff;
}
.repair-form-section > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #1e3a8a; font-size: 13px; }
.repair-form-section > h3::before { content: ""; width: 4px; height: 15px; border-radius: 99px; background: #3b82f6; }
.repair-form-section > p { margin: -7px 0 13px; color: #718096; font-size: 10px; line-height: 1.6; }
.repair-form-section .textarea { min-height: 96px; }
.repair-account-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.repair-account-chip { position: relative; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #dfe7f2; border-radius: 11px; background: #fff; cursor: pointer; transition: .15s ease; }
.repair-account-chip:hover { border-color: #93b4ee; background: #f7faff; }
.repair-account-chip:has(input:checked) { border-color: #60a5fa; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37,99,235,.07); }
.repair-account-chip input { position: absolute; opacity: 0; pointer-events: none; }
.repair-account-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 9px; color: #1d4ed8; background: #dbeafe; font-size: 11px; font-weight: 800; }
.repair-account-chip > span:last-child { min-width: 0; }
.repair-account-chip strong, .repair-account-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repair-account-chip strong { font-size: 11px; }
.repair-account-chip small { margin-top: 2px; color: #8290a7; font-size: 9px; }

.repair-detail-shell { display: grid; gap: 15px; }
.repair-project-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(135px, .7fr));
  gap: 10px;
  padding: 17px;
  overflow: hidden;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(130deg, #12264c, #1d4ed8);
  box-shadow: 0 13px 30px rgba(29,78,216,.18);
}
.repair-project-detail-hero::after { content: ""; position: absolute; width: 210px; height: 210px; right: -100px; top: -125px; border-radius: 50%; background: rgba(255,255,255,.09); }
.repair-project-detail-hero > div { position: relative; z-index: 1; min-width: 0; }
.repair-project-detail-hero span { display: block; color: #bfdbfe; font-size: 9px; }
.repair-project-detail-hero strong { display: block; margin-top: 5px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.repair-project-detail-main strong { font-size: 17px; }
.repair-project-detail-main small { display: block; margin-top: 6px; color: #dbeafe; font-size: 10px; line-height: 1.5; }
.repair-flow-stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 4px 5px 1px; }
.repair-flow-step { position: relative; display: grid; justify-items: center; gap: 6px; color: #94a3b8; font-size: 9px; text-align: center; }
.repair-flow-step::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: #e2e8f0; }
.repair-flow-step:first-child::before { display: none; }
.repair-flow-step i { position: relative; z-index: 1; width: 29px; height: 29px; display: grid; place-items: center; border: 2px solid #d8e0eb; border-radius: 50%; color: #94a3b8; background: #fff; font-style: normal; font-weight: 800; }
.repair-flow-step.done, .repair-flow-step.active { color: #1d4ed8; font-weight: 700; }
.repair-flow-step.done::before, .repair-flow-step.active::before { background: #60a5fa; }
.repair-flow-step.done i { border-color: #2563eb; color: #fff; background: #2563eb; }
.repair-flow-step.active i { border-color: #2563eb; color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 5px rgba(37,99,235,.08); }
.repair-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.repair-detail-card { padding: 13px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.repair-detail-card.full { grid-column: 1 / -1; }
.repair-detail-card > span { display: block; color: #8190a7; font-size: 9px; }
.repair-detail-card > strong, .repair-detail-card > div { display: block; margin-top: 5px; color: #334155; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.repair-detail-card.notice { border-color: #bfdbfe; background: #f5f9ff; }
.repair-project-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 14px; border: 1px solid #dbeafe; border-radius: 13px; background: linear-gradient(180deg, #f8fbff, #f2f7ff); }
.repair-project-actions .btn { min-height: 36px; }
.repair-sample-card, .repair-feedback-card { padding: 14px; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; }
.repair-sample-card h3, .repair-feedback-card h3 { margin: 0 0 10px; font-size: 13px; }
.repair-sample-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #6d28d9; background: #ede9fe; font-size: 9px; font-weight: 800; }
.repair-feedback-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.repair-feedback-choice button { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid #dfe6ef; border-radius: 12px; color: #334155; background: #fff; text-align: left; }
.repair-feedback-choice button:hover, .repair-feedback-choice button.selected { border-color: #60a5fa; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.repair-feedback-choice button > i { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 10px; color: #fff; background: #2563eb; font-size: 16px; font-style: normal; font-weight: 900; }
.repair-feedback-choice button:nth-child(2) > i { background: #f97316; }
.repair-feedback-choice strong, .repair-feedback-choice small { display: block; }
.repair-feedback-choice strong { font-size: 12px; }
.repair-feedback-choice small { margin-top: 4px; color: #718096; font-size: 9px; line-height: 1.45; }

.notification-center-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #64748b; font-size: 11px; }
.notification-center-list { display: grid; gap: 8px; max-height: min(600px, 62vh); overflow-y: auto; padding-right: 3px; }
.notification-center-item { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px 13px; border: 1px solid #e2e8f0; border-radius: 12px; color: #334155; background: #fff; text-align: left; }
.notification-center-item:hover { border-color: #9ebcf0; background: #f8fbff; }
.notification-center-item > i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.notification-center-item.unread { border-color: #bfdbfe; background: #f5f9ff; }
.notification-center-item.unread > i { background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.notification-center-item span { min-width: 0; }
.notification-center-item strong, .notification-center-item small, .notification-center-item time { display: block; }
.notification-center-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.notification-center-item small { margin-top: 4px; color: #64748b; font-size: 10px; line-height: 1.5; }
.notification-center-item time { margin-top: 5px; color: #94a3b8; font-size: 9px; }
.notification-center-item em { padding: 5px 8px; border-radius: 999px; color: #1d4ed8; background: #dbeafe; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }

@media (max-width: 1100px) {
  .repair-project-detail-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repair-project-detail-main { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .repair-project-toolbar { grid-template-columns: 1fr; }
  .repair-project-toolbar-note { text-align: left; }
  .repair-kanban-wrap { padding: 11px 10px 16px; }
  .repair-kanban { min-width: 1110px; grid-template-columns: repeat(5, 210px); }
  .repair-kanban-column { min-height: 450px; }
  .repair-account-picker { grid-template-columns: 1fr; }
  .repair-project-detail-hero, .repair-detail-grid { grid-template-columns: 1fr; }
  .repair-project-detail-main, .repair-detail-card.full { grid-column: auto; }
  .repair-flow-stepper { overflow-x: auto; grid-template-columns: repeat(5, 100px); justify-content: start; padding-bottom: 10px; }
  .repair-feedback-choice { grid-template-columns: 1fr; }
  .notification-center-item { grid-template-columns: 9px minmax(0, 1fr); }
  .notification-center-item em { grid-column: 2; justify-self: start; }
}

/* V31.5 实际标记结构补充 */
.repair-project-summary { grid-template-columns: repeat(4, minmax(0,1fr)); }
.repair-project-summary small { display: block; margin-top: 5px; color: #718096; font-size: 9px; line-height: 1.45; }
.repair-project-legend { display: flex; justify-content: flex-end; gap: 12px; color: #718096; font-size: 10px; }
.repair-project-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #94a3b8; }
.legend-dot.urgent { background: #ef4444; }
.legend-dot.overdue { border: 2px solid #fca5a5; background: #fff; }
.repair-kanban-column-head > span { min-width: 0; display: block; }
.repair-kanban-column-head strong, .repair-kanban-column-head small { display: block; }
.repair-kanban-column-head small { margin-top: 3px; color: #8390a5; font-size: 9px; line-height: 1.35; }
.repair-kanban-column[data-stage="intake"] .repair-kanban-column-head::before,
.repair-kanban-column[data-stage="repair"] .repair-kanban-column-head::before,
.repair-kanban-column[data-stage="sample"] .repair-kanban-column-head::before,
.repair-kanban-column[data-stage="customer"] .repair-kanban-column-head::before,
.repair-kanban-column[data-stage="done"] .repair-kanban-column-head::before { content: ""; width: 9px; height: 9px; flex: 0 0 9px; margin-right: 1px; border-radius: 50%; background: #64748b; box-shadow: 0 0 0 4px #e2e8f0; }
.repair-kanban-column[data-stage="intake"] .repair-kanban-column-head::before { background:#f59e0b;box-shadow:0 0 0 4px #fef3c7; }
.repair-kanban-column[data-stage="repair"] .repair-kanban-column-head::before { background:#2563eb;box-shadow:0 0 0 4px #dbeafe; }
.repair-kanban-column[data-stage="sample"] .repair-kanban-column-head::before { background:#8b5cf6;box-shadow:0 0 0 4px #ede9fe; }
.repair-kanban-column[data-stage="customer"] .repair-kanban-column-head::before { background:#0f766e;box-shadow:0 0 0 4px #ccfbf1; }
.repair-kanban-column[data-stage="done"] .repair-kanban-column-head::before { background:#059669;box-shadow:0 0 0 4px #d1fae5; }
.repair-project-card-top { display:flex;align-items:flex-start;justify-content:space-between;gap:8px; }
.repair-project-card-top strong { min-width:0;overflow:hidden;color:#132443;font-size:13px;text-overflow:ellipsis;white-space:nowrap; }
.repair-project-card-top em { flex:0 0 auto;padding:4px 7px;border-radius:999px;color:#526079;background:#eef2f7;font-size:9px;font-style:normal;font-weight:800; }
.priority-high .repair-project-card-top em { color:#c2410c;background:#ffedd5; }
.priority-urgent .repair-project-card-top em { color:#b91c1c;background:#fee2e2; }
.repair-project-number { overflow:hidden;color:#8290a7;font-size:9px;text-overflow:ellipsis;white-space:nowrap; }
.repair-project-notify { overflow:hidden;color:#64748b;font-size:9px;text-overflow:ellipsis;white-space:nowrap; }
.repair-project-form { display:grid;gap:14px; }
.repair-form-section-title { display:flex;align-items:center;gap:10px;margin-bottom:14px; }
.repair-form-section-title > span { width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border-radius:9px;color:#fff;background:#2563eb;font-size:11px;font-weight:800; }
.repair-form-section-title strong, .repair-form-section-title small { display:block; }
.repair-form-section-title strong { color:#1e3a8a;font-size:13px; }
.repair-form-section-title small { margin-top:3px;color:#7c8aa1;font-size:9px; }
.repair-main-textarea { min-height:110px!important; }
.repair-optional-section { border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc; }
.repair-optional-section summary { padding:13px 15px;color:#475569;font-size:11px;font-weight:700;cursor:pointer; }
.repair-optional-section[open] summary { border-bottom:1px dashed #d8e0ea; }
.repair-optional-section > .form-grid { padding:14px 15px; }
.repair-workflow-stepper { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:2px 0 15px;padding:7px 4px 2px; }
.repair-workflow-step { position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;color:#94a3b8;text-align:center; }
.repair-workflow-step::before { content:"";position:absolute;top:15px;right:50%;width:100%;height:2px;background:#e2e8f0; }
.repair-workflow-step:first-child::before { display:none; }
.repair-workflow-step i { position:relative;z-index:1;width:31px;height:31px;display:grid;place-items:center;border:2px solid #d8e0eb;border-radius:50%;color:#94a3b8;background:#fff;font-size:10px;font-style:normal;font-weight:800; }
.repair-workflow-step span strong, .repair-workflow-step span small { display:block; }
.repair-workflow-step span strong { font-size:10px; }
.repair-workflow-step span small { margin-top:3px;font-size:8px; }
.repair-workflow-step.complete, .repair-workflow-step.current { color:#1d4ed8; }
.repair-workflow-step.complete::before, .repair-workflow-step.current::before { background:#60a5fa; }
.repair-workflow-step.complete i { border-color:#2563eb;color:#fff;background:#2563eb; }
.repair-workflow-step.current i { border-color:#2563eb;color:#2563eb;background:#eff6ff;box-shadow:0 0 0 5px rgba(37,99,235,.08); }
.repair-project-detail-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px; }
.repair-project-detail-grid > section { min-width:0;padding:14px;border:1px solid #e2e8f0;border-radius:13px;background:#fff; }
.repair-project-detail-grid h3 { margin:0 0 10px;color:#1e3a8a;font-size:12px; }
.repair-project-main-content { min-height:60px;padding:11px;border-radius:10px;color:#334155;background:#f7f9fc;font-size:11px;line-height:1.65;white-space:pre-wrap; }
.repair-project-detail-grid dl { display:grid;gap:7px;margin:11px 0 0; }
.repair-project-detail-grid dl > div { display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;padding-top:7px;border-top:1px dashed #e2e8f0; }
.repair-project-detail-grid dt { color:#8390a5;font-size:9px; }
.repair-project-detail-grid dd { min-width:0;margin:0;color:#475569;font-size:10px;overflow-wrap:anywhere; }
.repair-sample-status, .repair-customer-result { display:grid;gap:5px;margin-bottom:8px;padding:11px;border-radius:10px;background:#f7f9fc; }
.repair-sample-status strong, .repair-sample-status small, .repair-customer-result strong, .repair-customer-result small { display:block; }
.repair-sample-status strong, .repair-customer-result strong { color:#334155;font-size:11px; }
.repair-sample-status small, .repair-customer-result small { color:#718096;font-size:9px;line-height:1.5; }
.repair-sample-status.ready { background:#ede9fe; }
.repair-sample-status.shipped, .repair-customer-result.passed { background:#ecfdf5; }
.repair-customer-result.issue { background:#fff7ed; }
.repair-activity-section { padding:14px;border:1px solid #e2e8f0;border-radius:13px;background:#fbfcff; }
@media (max-width: 1000px) { .repair-project-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .repair-project-summary,.repair-project-detail-grid { grid-template-columns:1fr; }.repair-workflow-stepper{overflow-x:auto;grid-template-columns:repeat(5,100px);justify-content:start;padding-bottom:9px}.repair-project-legend{justify-content:flex-start} }


/* ========================= V31.5 登录恢复、统一看板入口与制造业销售分析 ========================= */
.login-reconnect{width:100%;margin-top:9px;border-color:#f59e0b;background:#fff8e6;color:#92400e;font-weight:900}.login-reconnect:hover{background:#ffefc2}.login-progress[data-state="retry"]{color:#b45309;background:#fff7dd;border:1px solid #fde2a7;padding:8px 10px;border-radius:9px}.v297-kanban-tools{flex-wrap:wrap;justify-content:flex-end}.v297-kanban-tools [data-v310-copy-board]{border-color:#9bc4ff}.analysis-header-badge{padding:7px 11px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-weight:800;font-size:12px}.manufacturing-analysis-shell{overflow:visible}.manufacturing-analysis-filter{position:sticky;top:66px;z-index:4;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);padding:12px;border:1px solid var(--line);border-radius:12px}.manufacturing-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:16px}.manufacturing-kpi-grid article{padding:16px;border:1px solid #dbe5f1;border-radius:14px;background:linear-gradient(145deg,#fff,#f7faff);box-shadow:0 9px 24px rgba(25,55,95,.06)}.manufacturing-kpi-grid article.risk{border-color:#fecaca;background:linear-gradient(145deg,#fff,#fff1f2)}.manufacturing-kpi-grid span,.manufacturing-kpi-grid small{display:block;color:#64748b}.manufacturing-kpi-grid strong{display:block;margin:7px 0 4px;font-size:25px;color:#0f2747}.manufacturing-kpi-grid article.risk strong{color:#be123c}.manufacturing-analysis-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:14px;margin-top:14px}.manufacturing-analysis-grid.lower{grid-template-columns:1fr 1.25fr}.manufacturing-chart-card{padding:17px;border:1px solid #dbe5f1;border-radius:15px;background:#fff;box-shadow:0 10px 28px rgba(31,62,100,.06)}.manufacturing-chart-card>header{display:flex;justify-content:space-between;gap:16px;margin-bottom:12px}.manufacturing-chart-card h3{margin:0;font-size:18px}.manufacturing-chart-card p{margin:4px 0 0;color:#718096}.manufacturing-chart-card>header>span{color:#64748b;font-size:12px}.manufacturing-trend{width:100%;height:245px;overflow:visible}.manufacturing-trend .axis{stroke:#cbd5e1;stroke-width:1}.manufacturing-trend .trend-line{fill:none;stroke:#2563eb;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.manufacturing-trend circle{fill:#fff;stroke:#2563eb;stroke-width:3}.manufacturing-trend text{fill:#64748b;font-size:12px}.trend-month-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:7px;margin-top:2px}.trend-month-stats div{padding:8px;border-radius:9px;background:#f6f9fd;text-align:center}.trend-month-stats span,.trend-month-stats strong,.trend-month-stats small{display:block}.trend-month-stats span,.trend-month-stats small{color:#718096}.trend-month-stats strong{margin:3px 0;color:#17365f}.health-rings{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:8px 0 20px}.health-ring{--value:0;position:relative;display:grid;place-items:center;aspect-ratio:1;border-radius:50%;background:conic-gradient(#2563eb calc(var(--value)*1%),#e7eef7 0)}.health-ring:before{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}.health-ring strong,.health-ring span{position:relative;z-index:1}.health-ring strong{font-size:24px;color:#17365f}.health-ring span{font-size:11px;color:#64748b}.health-ring.warning{background:conic-gradient(#f59e0b calc(var(--value)*1%),#e7eef7 0)}.manufacturing-insights{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.manufacturing-insights div{padding:10px;border-radius:10px;background:#f6f9fd}.manufacturing-insights span,.manufacturing-insights strong{display:block}.manufacturing-insights span{color:#64748b;font-size:12px}.manufacturing-insights strong{margin-top:3px;font-size:22px}.customer-share-list>div{margin-bottom:12px}.customer-share-list>div>div{display:flex;justify-content:space-between;gap:12px}.customer-share-list i{display:block;height:8px;margin:6px 0;border-radius:999px;background:#e7eef7;overflow:hidden}.customer-share-list i i{height:100%;margin:0;background:linear-gradient(90deg,#2563eb,#38bdf8)}.customer-share-list small{color:#718096}.delivery-risk-list{display:grid;gap:8px;max-height:390px;overflow:auto}.risk-order{display:grid;grid-template-columns:1.25fr .7fr 1fr .8fr;gap:10px;align-items:center;padding:10px 12px;border-left:4px solid #94a3b8;border-radius:9px;background:#f8fafc}.risk-order.overdue{border-color:#e11d48;background:#fff1f2}.risk-order.due7{border-color:#f59e0b;background:#fffbeb}.risk-order.unscheduled{border-color:#64748b}.risk-order span strong,.risk-order span small{display:block}.risk-order span small{color:#718096}.risk-order em{text-align:right;font-style:normal;font-weight:800;color:#17365f}.manufacturing-product-panel{margin-top:14px}.manufacturing-product-panel .analysis-risk-row{background:#fff7ed}.analysis-empty-chart{display:grid;place-items:center;height:245px;color:#94a3b8}.manual-access-visible{display:block}.manual-access-title{display:flex;justify-content:space-between;gap:14px;color:#cbd5e1}.manual-access-title span{color:#94a3b8;font-size:13px}@media(max-width:1280px){.manufacturing-kpi-grid{grid-template-columns:repeat(3,1fr)}.manufacturing-analysis-grid,.manufacturing-analysis-grid.lower{grid-template-columns:1fr}}@media(max-width:760px){.manufacturing-kpi-grid{grid-template-columns:1fr 1fr}.health-rings{grid-template-columns:repeat(3,minmax(90px,1fr))}.risk-order{grid-template-columns:1fr 1fr}.manufacturing-analysis-filter{position:static}}

/* V31.5 sales analysis data-completeness warning */
.manufacturing-product-panel .warning-text {
  color: #b45309;
  font-weight: 800;
}


/* ========================= V31.5 已发货批次修订 ========================= */
.shipment-edit-table .table-input{min-width:96px}
.shipment-edit-line-removed{opacity:.55;background:#f8fafc}
.shipment-edit-line-removed td{text-decoration:none}
.shipment-edit-line-removed td:not(:last-child){color:#94a3b8}
.shipment-edit-line-removed .action-link{color:#2563eb}
#deliveryBatchEditStatus{font-weight:700;color:#2563eb}
#deliveryBatchEditSummary{margin-top:14px}

/* V31.5 超额任务自动平账 */
.v312-over-balance{font-weight:900;color:#c2410c;background:#fff7ed!important}
.v312-net-plan{font-weight:900;color:#166534;background:#f0fdf4!important}
.v312-settlement-line{display:grid;gap:2px;margin:3px 0;padding:5px 8px;border-radius:8px;background:#f0fdf4;color:#166534;white-space:nowrap}
.v312-settlement-line strong{font-size:12px}.v312-settlement-line span{font-size:11px;color:#475569}
@media(max-width:900px){.v306-task-scope-tabs{padding-bottom:4px}.v306-task-scope-tabs button{white-space:nowrap}}


/* V31.5 产品问题收集与统一密钥 */
.v313-access-settings{margin-top:24px}.v313-access-settings .data-card strong{display:block;margin:8px 0 14px;word-break:break-all}.v313-product-issues .panel-body{display:grid;gap:16px}.v313-issue-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.v313-issue-summary>div{padding:16px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fafc}.v313-issue-summary span,.v313-issue-summary strong{display:block}.v313-issue-summary span{color:#64748b;font-size:12px}.v313-issue-summary strong{margin-top:5px;font-size:26px}.tag.warning{background:#fff7ed;color:#c2410c}.tag.danger{background:#fef2f2;color:#dc2626}.tag.success{background:#ecfdf5;color:#15803d}@media(max-width:760px){.v313-issue-summary{grid-template-columns:repeat(2,1fr)}}


/* V31.5 操作审计日志 */
.v314-audit-filters{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:12px;align-items:end;margin-bottom:16px}.v314-audit-filter-actions{grid-column:1/-1;margin:0;justify-content:flex-start}.v314-audit-table-wrap{max-height:58vh;overflow:auto}.v314-audit-table-wrap table{min-width:1120px}.v314-audit-table-wrap th{position:sticky;top:0;z-index:1;background:var(--panel,#fff)}.v314-audit-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:14px;color:var(--muted,#64748b)}.v314-audit-footer>div{display:flex;align-items:center;gap:10px}.v314-audit-summary{padding:14px 16px;border:1px solid var(--border,#dbe3ef);border-radius:14px;background:#f8fafc;margin-bottom:16px}.v314-audit-summary p{margin:8px 0}.v314-audit-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.v314-audit-detail-grid section{min-width:0}.v314-audit-detail-grid h3{margin:0 0 8px}.v314-audit-detail-grid pre{margin:0;max-height:46vh;overflow:auto;padding:14px;border-radius:12px;background:#0f172a;color:#e2e8f0;font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-word}@media(max-width:1200px){.v314-audit-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}}@media(max-width:760px){.v314-audit-filters{grid-template-columns:1fr 1fr}.v314-audit-detail-grid{grid-template-columns:1fr}.v314-audit-footer{align-items:flex-start;flex-direction:column}}


/* ========================= V31.5 产品生产问题资料库 ========================= */
.v315-product-library .panel-body{display:grid;gap:16px}.v315-library-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fafc}.v315-library-note>span{padding:6px 10px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-weight:800;font-size:12px}.v315-library-note small{margin-left:auto;color:#64748b}.v315-library-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 220px;gap:12px}.v315-library-content{display:grid;gap:18px}.v315-name-group{padding:16px;border:1px solid #dbe4ef;border-radius:16px;background:#fff}.v315-name-group>header{margin-bottom:12px}.v315-name-group h3{margin:0;color:#102647;font-size:18px}.v315-name-group p{margin:4px 0 0;color:#64748b;font-size:12px}.v315-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:12px}.v315-product-grid.standalone{padding:2px}.v315-product-card{display:grid;gap:9px;text-align:left;padding:15px;border:1px solid #dbe4ef;border-radius:14px;background:linear-gradient(145deg,#fff,#f8fbff);color:#102647;cursor:pointer;transition:.18s ease;box-shadow:0 4px 14px rgba(15,41,75,.04)}.v315-product-card:hover{transform:translateY(-2px);border-color:#93b8ff;box-shadow:0 10px 24px rgba(37,99,235,.12)}.v315-product-card.disabled{opacity:.67;background:#f8fafc}.v315-product-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.v315-product-card-top strong{font-size:15px}.v315-product-card-top em{font-style:normal;font-size:11px;padding:3px 7px;border-radius:999px;background:#ecfdf5;color:#15803d}.v315-product-card.disabled em{background:#f1f5f9;color:#64748b}.v315-drawing-no{font-weight:800;color:#2563eb;word-break:break-all}.v315-product-card-stats{display:flex;gap:14px;color:#64748b;font-size:12px}.v315-product-card-stats b{color:#0f172a;font-size:15px}.v315-product-modal{display:grid;gap:16px}.v315-product-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;border:1px solid #dbe4ef;border-radius:15px;background:#f8fafc}.v315-product-modal-head>div{display:grid;gap:4px}.v315-product-modal-head span,.v315-product-modal-head small{color:#64748b;font-size:12px}.v315-product-modal-head strong{font-size:18px;color:#102647}.v315-issue-list{display:grid;gap:14px}.v315-issue-group{border:1px solid #dbe4ef;border-radius:16px;overflow:hidden;background:#fff}.v315-issue-group>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px;background:#f8fbff;border-bottom:1px solid #e5edf7}.v315-issue-group>header span,.v315-cause>span{display:block;color:#64748b;font-size:11px;font-weight:800;margin-bottom:5px}.v315-issue-group h4{margin:0;font-size:16px;color:#102647;white-space:pre-wrap}.v315-issue-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.v315-cause{padding:14px 16px}.v315-cause p{margin:0;white-space:pre-wrap;line-height:1.65;color:#334155}.v315-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:10px;padding:0 16px 16px}.v315-photo-card{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);gap:9px;align-items:center;padding:8px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.v315-photo-card>button:first-child{width:72px;height:64px;padding:0;border:0;border-radius:9px;overflow:hidden;background:#e2e8f0;cursor:pointer}.v315-photo-card img{width:100%;height:100%;object-fit:cover;display:block}.v315-photo-card.load-failed img{display:none}.v315-photo-card>div{min-width:0;display:grid;gap:3px}.v315-photo-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.v315-photo-card span,.v315-photo-card time{color:#64748b;font-size:10px}.v315-photo-delete{position:absolute;right:4px;top:4px;width:22px;height:22px;border:0;border-radius:50%;background:#fff;color:#dc2626;box-shadow:0 2px 8px #0002;cursor:pointer}.v315-no-photo{grid-column:1/-1;padding:18px;text-align:center;border:1px dashed #cbd5e1;border-radius:12px;color:#94a3b8}.v315-issue-group>footer{padding:10px 16px;border-top:1px solid #eef2f7;color:#64748b;font-size:10px}.pending-file-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.pending-file-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #dbe4ef;border-radius:999px;background:#f8fafc;font-size:12px}.pending-file-chip button{border:0;background:transparent;color:#dc2626;cursor:pointer}.pending-file-chip small{color:#64748b}
@media(max-width:760px){.v315-library-toolbar{grid-template-columns:1fr}.v315-library-note small{width:100%;margin-left:0}.v315-product-grid{grid-template-columns:1fr}.v315-product-modal-head,.v315-issue-group>header{align-items:stretch;flex-direction:column}.v315-issue-actions{justify-content:flex-start}.v315-photo-grid{grid-template-columns:1fr}}

/* V31.7 发货计划、质检任务与岗位精简产品资料 */
.v317-shipping-kpis,.v317-quality-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;margin-bottom:14px}.v317-shipping-kpis>div,.v317-quality-summary>div{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:linear-gradient(135deg,#fff,#f7faff)}.v317-shipping-kpis span,.v317-quality-summary span{display:block;color:var(--muted);font-size:12px}.v317-shipping-kpis strong,.v317-quality-summary strong{display:block;margin-top:4px;font-size:24px;color:var(--text)}.v317-shipping-kpis .overdue{background:#fff1f1;border-color:#fecaca}.v317-shipping-kpis .overdue strong{color:#b91c1c}
.v317-shipping-group{border:1px solid var(--border);border-radius:12px;margin:10px 0;overflow:hidden;background:#fff}.v317-shipping-group>summary{display:grid;grid-template-columns:auto auto 1fr;gap:10px;align-items:center;padding:13px 14px;cursor:pointer;list-style:none}.v317-shipping-group>summary::-webkit-details-marker{display:none}.v317-shipping-group>summary strong{font-size:15px}.v317-shipping-group>summary span{border-radius:999px;padding:2px 8px;background:#eef2f7;color:#475569;font-size:12px}.v317-shipping-group>summary em{text-align:right;color:var(--muted);font-size:12px;font-style:normal}.v317-shipping-group.overdue>summary{background:#fff1f2;color:#991b1b}.v317-shipping-group.today>summary{background:#fff7ed;color:#9a3412}.v317-shipping-group.tomorrow>summary{background:#fffbeb;color:#92400e}.v317-shipping-group.future>summary{background:#eff6ff;color:#1d4ed8}.v317-shipping-group .table-wrap{border-top:1px solid var(--border)}.v317-group-add{margin:10px 14px 14px}
.v317-quality-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700}.v317-quality-status.pending{background:#f1f5f9;color:#475569}.v317-quality-status.working{background:#dbeafe;color:#1d4ed8}.v317-quality-status.complete{background:#dcfce7;color:#15803d}.v317-time-label{display:block;margin-top:3px;color:var(--muted)}
.v317-key-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:16px;border:1px solid var(--border);border-radius:14px;background:#f8fafc}.v317-key-card span{grid-column:1/-1;color:var(--muted);font-size:12px}.v317-key-card strong{font-size:18px;word-break:break-all}.v317-key-form{margin-top:16px}
.v317-limited-product{display:grid;gap:16px}.v317-limited-head{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center}.v317-limited-head h2{margin:4px 0;font-size:26px}.v317-limited-head p{margin:0;color:var(--muted)}.product-cover-placeholder.large,.product-cover-button.large{width:140px;height:110px}.product-cover-button.large .product-cover-thumb{width:100%;height:100%;object-fit:contain}.v317-product-relations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v317-product-relations section,.v317-product-file-section{border:1px solid var(--border);border-radius:12px;padding:14px;background:#fff}.v317-product-relations h3,.v317-product-file-section h3{margin:0 0 10px}.v317-product-relations section>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px dashed var(--border)}.v317-product-relations section>div:first-of-type{border-top:0}.v317-product-relations span{color:var(--muted)}
.v317-quality-panel .table-wrap{max-height:62vh}.v317-quality-panel td small{display:block;color:var(--muted)}
@media(max-width:900px){.v317-shipping-kpis,.v317-quality-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.v317-limited-head{grid-template-columns:1fr}.v317-product-relations{grid-template-columns:1fr}.v317-shipping-group>summary{grid-template-columns:auto auto}.v317-shipping-group>summary em{grid-column:1/-1;text-align:left}}


/* ========================= V31.8.1 质检手机预览与发货草稿保护 ========================= */
.v318-mobile-preview{display:grid;place-items:center;min-height:min(680px,72vh);padding:14px;border:1px solid #dbe4ef;border-radius:18px;background:#eef2f7}
.v318-mobile-preview iframe{width:min(430px,100%);height:min(740px,70vh);min-height:560px;border:1px solid #cbd5e1;border-radius:24px;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.18)}
.v318-shipping-draft{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;border-color:#f0c36a;background:#fff8e8}
.v318-shipping-draft .inline-button{margin-left:auto;border:0;background:transparent;color:#9a5d00;font-weight:800;text-decoration:underline;cursor:pointer}
@media(max-width:620px){.v318-mobile-preview{min-height:560px;padding:8px}.v318-mobile-preview iframe{min-height:520px;height:68vh;border-radius:16px}.v318-shipping-draft .inline-button{margin-left:0}}


/* ========================= V31.9 模具更换提醒 ========================= */
.nav-tertiary-list { margin: 0 0 3px; }
.nav-subgroup-content .nav-tertiary-item { padding-left: 48px; min-height: 34px; font-size: 12px; color: #b9c9e7; position: relative; }
.nav-subgroup-content .nav-tertiary-item::before { content: ''; position: absolute; left: 31px; top: 0; bottom: 50%; width: 1px; background: rgba(148, 163, 184, .35); }
.nav-subgroup-content .nav-tertiary-item::after { content: ''; position: absolute; left: 31px; top: 50%; width: 10px; height: 1px; background: rgba(148, 163, 184, .35); }
.v319-nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: #2563eb; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.v319-nav-badge.alert { background: #dc2626; }
.v319-mold-kpis { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; margin-bottom: 16px; }
.v319-mold-kpis > div { border: 1px solid #dbe5f3; border-radius: 14px; padding: 14px 16px; background: #f8fbff; }
.v319-mold-kpis span { display: block; color: #64748b; font-size: 12px; }
.v319-mold-kpis strong { display: block; margin-top: 4px; color: #0f2748; font-size: 26px; }
.v319-mold-kpis .rejected { background: #fff4f4; border-color: #fecaca; }
.v319-mold-kpis .rejected strong { color: #b91c1c; }
.v319-mold-table td { vertical-align: top; }
.v319-mold-change-main { min-width: 250px; }
.v319-mold-change-main strong { display: block; color: #0f2748; font-size: 14px; }
.v319-mold-change-main small { display: block; margin-top: 3px; color: #64748b; }
.v319-change-route { min-width: 210px; }
.v319-change-route span { display: block; }
.v319-change-route b { color: #1d4ed8; }
.v319-mold-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.v319-mold-status.pending { background: #eff6ff; color: #1d4ed8; }
.v319-mold-status.claimed { background: #fff7ed; color: #c2410c; }
.v319-mold-status.completed { background: #ecfdf5; color: #047857; }
.v319-mold-status.rejected { background: #fee2e2; color: #b91c1c; }
.v319-mold-row.rejected { background: #fff7f7; }
.v319-reject-reason { margin-top: 6px; max-width: 360px; padding: 8px 10px; border-left: 3px solid #dc2626; border-radius: 6px; background: #fff1f2; color: #991b1b; line-height: 1.55; }
.v319-notify-people { display: block; margin-top: 4px; color: #7f1d1d; font-size: 12px; }
.v319-action-stack { display: flex; flex-wrap: wrap; gap: 6px; min-width: 145px; }
.v319-action-stack .btn { padding: 6px 10px; min-height: 32px; }
.v319-reject-form .repair-account-picker { max-height: 240px; overflow: auto; }
.v319-mold-block-banner { margin-top: 8px; padding: 8px 10px; border: 1px solid #fca5a5; border-radius: 9px; background: #fff1f2; color: #991b1b; font-size: 12px; font-weight: 700; line-height: 1.5; }
.v300-machine-task.v319-mold-rejected { border-color: #ef4444 !important; background: #fff5f5 !important; box-shadow: inset 4px 0 0 #dc2626; }
.v300-machine-task.v319-mold-rejected .v300-task-main > strong,
.v300-machine-task.v319-mold-rejected .v300-task-main > span { color: #b91c1c; }
.v300-machine-card.v319-machine-blocked { border-color: #fca5a5; box-shadow: 0 0 0 2px rgba(220, 38, 38, .08); }
.notification-center-item.mold-change em { background: #fee2e2; color: #b91c1c; }
@media (max-width: 900px) {
  .v319-mold-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* V31.10 模具提醒状态筛选与发货回退 */
.v3110-mold-kpis{margin-bottom:18px!important}
.v3110-mold-kpi{display:grid;gap:4px;min-width:0;padding:15px 16px;border:1px solid #dbe4ef;border-radius:14px;background:#fff;color:#334155;text-align:left;cursor:pointer;box-shadow:0 5px 16px rgba(15,23,42,.04);transition:.16s ease}
.v3110-mold-kpi:hover{border-color:#93c5fd;transform:translateY(-1px)}.v3110-mold-kpi span{font-size:12px}.v3110-mold-kpi strong{font-size:25px;color:#0f172a}.v3110-mold-kpi small{color:#64748b;font-size:10px}
.v3110-mold-kpi.selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.12)}.v3110-mold-kpi.selected strong{color:#1d4ed8}.v3110-mold-kpi.rejected.selected{border-color:#dc2626;background:#fff1f2}.v3110-mold-kpi.rejected.selected strong{color:#b91c1c}
.v3110-mold-rule{margin:0 0 20px!important;padding:14px 16px!important;line-height:1.65}.v3110-current-filter{align-self:center;padding:8px 11px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800}
@media(max-width:760px){.v3110-mold-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v3110-mold-kpi{padding:12px}}

/* V31.10.9 模具更换提醒计划变化标识 */
.v31101-plan-changed,
.v31101-plan-retargeted {
  display: block;
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.45;
}
.v31101-plan-changed {
  background: #fff7ed;
  color: #9a3412;
}
.v31101-plan-retargeted {
  background: #eff6ff;
  color: #1d4ed8;
}

/* V31.10.9 操作日志大页、分页数量与双时间展示 */
.v314-audit-table-wrap{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
.v314-audit-table-wrap table{min-width:1480px!important}
.v314-audit-table-wrap th{position:sticky;top:0;z-index:1;background:var(--panel,#fff)}
.v31103-page-size{display:flex;align-items:center;gap:8px;color:var(--muted,#64748b);font-size:13px}
.v31103-page-size .select{width:105px;min-width:105px}
.v31103-sync-delay{margin-top:4px;color:#b45309;font-size:12px;font-weight:700}
.v314-audit-panel .panel-body{padding-bottom:24px}
@media(max-width:760px){.v31103-page-size{width:100%}.v314-audit-table-wrap table{min-width:1320px!important}}


/* V31.10.9：附件尾部 × 删除与操作日志显式工具栏 */
.existing-file-item{position:relative}
.existing-file-item>span:first-child{flex:1;min-width:0}
.file-remove-button.v31104-file-x{
  display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;
  border:1px solid #fecaca;border-radius:50%;background:#fff;color:#dc2626;
  font-size:20px;font-weight:800;line-height:1;cursor:pointer;
}
.file-remove-button.v31104-file-x:hover{background:#fef2f2;border-color:#f87171;transform:scale(1.04)}
.v31104-audit-panel .panel-body{display:grid;gap:14px}
.v31104-audit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 14px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc}
.v31104-audit-quick{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.v31104-page-size{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800;color:#334155;white-space:nowrap}
.v31104-page-size .select{width:118px;min-width:118px}
.v314-audit-table-wrap{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
@media(max-width:720px){.v31104-audit-toolbar{align-items:stretch}.v31104-audit-quick{width:100%}.v31104-page-size{width:100%;justify-content:space-between}.v31104-page-size .select{flex:1}}

/* V31.10.9 production level states */
.v300-level-ruler span.unproduced{border-color:#f87171;background:#fee2e2;color:#b91c1c}.v300-machine-task.completed{border-color:#4ade80;background:#f0fdf4;box-shadow:inset 4px 0 #16a34a}
