/* 仿现代前�?dev server（常�?:3000）风格：深色侧栏 + 浅色主区 + 分栏登录 */

:root {
  --bg-page: #0f1419;
  --bg-sidebar: #111827;
  --bg-main: #f3f4f6;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --success: #10b981;
  --danger: #ef4444;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- 分栏登录 / 注册 ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    min-height: 200px;
    padding: 2rem !important;
  }
}

.auth-brand {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 50%, #1e3a5f 100%);
  color: #f8fafc;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.25), transparent 50%);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
}

.auth-brand-company {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.05em;
}

.auth-brand h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-brand p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 28rem;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-main);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 2rem 2.25rem;
}

.auth-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.auth-card .subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.auth-card .btn-success {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: center;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- 应用壳：侧栏 + 主内�?---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-logo {
  padding: 1.25rem 1.25rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-nav {
  padding: 0.75rem 0;
  flex: 1;
}

.app-nav a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s;
}

.app-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.app-nav a.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.15);
  border-left-color: var(--accent);
}

.app-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #9ca3af;
}

.app-sidebar-footer a {
  color: #d1d5db;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  height: 56px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: var(--shadow);
}

.app-topbar h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.app-topbar-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.app-topbar-meta a {
  margin-left: 0.75rem;
}

.app-content {
  padding: 1.5rem;
  flex: 1;
}

.panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  margin-bottom: 0;
  flex: 1 1 180px;
}

.data-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table td input {
  width: 100%;
  min-width: 72px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

.data-table .actions {
  white-space: nowrap;
}

/* 用户审核：访问记录折叠列 */
.user-access-log-cell {
  max-width: 300px;
  vertical-align: top;
  font-size: 0.8125rem;
}

.user-access-log-details summary {
  cursor: pointer;
  color: var(--text);
}

.user-access-log-details[open] summary {
  color: var(--text-muted);
}

.user-access-log-list {
  margin: 0.4rem 0 0 1rem;
  padding: 0;
  list-style: disc;
  color: var(--text-muted);
}

.user-access-log-list li {
  margin: 0.15rem 0;
}

.user-access-log-empty {
  color: var(--text-muted);
}

.btn-inline {
  margin-right: 0.35rem;
}

.page-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* 无权限页 */
.denied-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  padding: 2rem;
}

.denied-card {
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.denied-card h2 {
  margin: 0 0 0.5rem;
}

.denied-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* ---------- 参考图报价页样式（字体与版式优化） ---------- */
.fibon-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #e4e6eb 0%, #d8dbe2 100%);
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

.fibon-topbar {
  min-height: 32px;
  background: linear-gradient(180deg, #5a5a5a 0%, #4a4a4a 100%);
  color: #f3f4f6;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.fibon-topbar-inner,
.fibon-navbar-inner,
.fibon-main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.fibon-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.fibon-top-links a {
  color: #fff;
  margin-left: 12px;
  font-size: 12px;
  opacity: 0.95;
}

.fibon-top-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.fibon-navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fibon-navbar-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fibon-brand {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: #374151;
  letter-spacing: -0.02em;
}

.fibon-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 0;
}

.fibon-menu a {
  color: #374151;
  margin: 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.fibon-menu a.fibon-menu-home {
  font-size: 17px;
  font-weight: 800;
  color: #1e40af;
  letter-spacing: 0.5px;
}

.fibon-menu a:hover {
  text-decoration: none;
  color: #1d4ed8;
}

.fibon-menu a.fibon-menu-active {
  color: #1d4ed8;
  font-weight: 600;
}

/* 主导航：财务核算下拉（库�?/ 用量统计 / 财务分析�?*/
.fibon-menu-dropdown {
  position: relative;
  margin: 0 10px;
}

.fibon-menu-dropdown-label {
  cursor: default;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
  padding: 4px 0;
  display: inline-block;
}

.fibon-menu-dropdown:hover .fibon-menu-dropdown-label,
.fibon-menu-dropdown:focus-within .fibon-menu-dropdown-label {
  color: #1d4ed8;
}

.fibon-menu-dropdown-label.fibon-menu-active {
  color: #1d4ed8;
  font-weight: 600;
}

.fibon-menu-dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 2px;
  min-width: 168px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  z-index: 300;
}

.fibon-menu-dropdown:hover .fibon-menu-dropdown-panel,
.fibon-menu-dropdown:focus-within .fibon-menu-dropdown-panel {
  display: block;
}

.fibon-menu-dropdown-panel a {
  display: block;
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.fibon-menu-dropdown-panel a:hover {
  text-decoration: none;
  color: #1d4ed8;
  background: #f3f4f6;
}

.fibon-menu-dropdown-panel a.fibon-menu-active {
  color: #1d4ed8;
  font-weight: 600;
  background: #eff6ff;
}

/* 财务子模块页：主内容 + 右侧子导�?*/
.finance-module-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 100%;
}

.finance-module-main-col {
  flex: 1;
  min-width: 0;
}

.finance-module-side-rail {
  flex-shrink: 0;
  width: 132px;
  position: sticky;
  top: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.finance-side-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.finance-side-rail-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.finance-side-rail-nav a:hover {
  color: #1d4ed8;
  background: #f3f4f6;
}

.finance-side-rail-nav a.is-active {
  color: #1d4ed8;
  font-weight: 600;
  background: #eff6ff;
  border-left-color: #2563eb;
}

.order-review-approve-form {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
  vertical-align: middle;
}

.order-review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.order-review-card--hl {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.order-review-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.order-review-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.order-review-card-dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 16px;
  font-size: 13px;
}

.order-review-card-dl > div {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.order-review-card-dl dt {
  margin: 0;
  flex-shrink: 0;
  color: #6b7280;
  font-weight: 500;
}

.order-review-card-dl dd {
  margin: 0;
  color: #1f2937;
  word-break: break-word;
}

.order-review-card-dl-full {
  grid-column: 1 / -1;
}

.order-review-card-amt {
  font-weight: 600;
}

.order-review-card-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* 豆包 AI 核对包：�?JS 读取后写入剪贴板，不占用版面 */
.order-review-ai-pack-ta {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.order-review-lines-head {
  margin-bottom: 8px;
}

.order-review-lines-head .order-review-lines-title {
  margin: 0;
}

.order-review-lines-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.order-review-lines-table .order-review-line-audit-row td {
  vertical-align: middle;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.order-review-audit-seq {
  width: 3.5rem;
}

.order-review-audit-cell {
  text-align: center;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12px;
}

.order-review-audit-cell--placeholder {
  color: #d1d5db;
}

.order-review-audit-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  max-width: 100%;
}

.order-review-audit-label span {
  line-height: 1.25;
  color: #374151;
}

.order-review-lines-empty-cell {
  text-align: center;
  padding: 14px 10px;
}

.order-review-approve-btn:disabled,
.order-review-approve-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
}

.order-review-approve-btn:disabled:hover,
.order-review-approve-btn[disabled]:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
}

.order-review-approve-btn.order-review-approve-btn--ready:not(:disabled) {
  opacity: 1;
}

.order-review-approve-btn {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.order-review-lines-wrap {
  margin-top: 0;
}

.order-review-voucher-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.order-review-voucher-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.order-review-voucher-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.order-review-voucher-item {
  margin: 0;
}

.order-review-voucher-img {
  display: block;
  max-width: 220px;
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .finance-module-layout {
    flex-direction: column;
  }

  .finance-module-side-rail {
    width: 100%;
    position: static;
  }

  .finance-side-rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .finance-side-rail-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 6px 10px;
  }

  .finance-side-rail-nav a.is-active {
    border-left-color: transparent;
    border-bottom-color: #2563eb;
  }
}

.finance-module-page .finance-module-intro {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

.finance-module-body {
  margin-top: 20px;
}

.finance-flash {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.finance-flash--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.finance-flash--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.finance-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.finance-panel:last-child {
  margin-bottom: 0;
}

.finance-panel-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.finance-form-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}

.finance-ribbon-row-form {
  margin: 0;
  display: inline-block;
}

.finance-ribbon-cell-label {
  display: block;
  margin: 0;
  min-width: 7em;
}

.finance-ribbon-cell-label input {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  width: 100%;
  max-width: 11em;
  box-sizing: border-box;
}

.finance-ribbon-cell-label input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.finance-ribbon-op-cell {
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}

.finance-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.finance-form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.finance-form-row input,
.finance-form-row select,
.finance-form-row textarea {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
}

.finance-form-row textarea {
  min-height: 72px;
  resize: vertical;
}

.finance-form-row input:focus,
.finance-form-row select:focus,
.finance-form-row textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.finance-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #fff;
}

.finance-btn:hover {
  background: #1d4ed8;
}

.finance-btn-secondary {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #374151;
}

.finance-btn-secondary:hover {
  background: #f3f4f6;
}

.finance-date-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.finance-date-filters .finance-form-row {
  min-width: auto;
}

.finance-recon-customer-row input[type="text"] {
  min-width: min(100%, 320px);
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.finance-recon-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.finance-recon-remark {
  max-width: 280px;
  word-break: break-word;
}

.tech-manual-page .tech-manual-section {
  margin-top: 26px;
}

.tech-manual-list {
  margin: 10px 0 0;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: #374151;
}

.tech-manual-list li {
  margin-bottom: 0.55rem;
}

.tech-manual-def-table th:first-child,
.tech-manual-def-table td:first-child {
  width: 118px;
  white-space: nowrap;
  vertical-align: top;
}

.finance-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #374151;
}

.finance-table th,
.finance-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.finance-table th {
  background: #f9fafb;
  font-weight: 600;
  white-space: nowrap;
}

.finance-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.finance-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.finance-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.finance-stat-card dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: none;
}

.finance-stat-card dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.finance-muted {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.finance-usage-block {
  margin-bottom: 22px;
}

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

.finance-usage-subhead {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.5;
}

.finance-usage-table th.finance-usage-num,
.finance-usage-table td.finance-usage-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.finance-usage-table tfoot .finance-usage-tfoot-row th,
.finance-usage-table tfoot .finance-usage-tfoot-row td {
  background: #f1f5f9;
  font-weight: 600;
  border-top: 2px solid #e2e8f0;
}

.finance-code-path {
  font-size: 13px;
  color: #4b5563;
  word-break: break-all;
}

.order-list-page {
  padding: 20px 22px 28px;
}

.order-list-mod {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.order-list-mod:last-child {
  margin-bottom: 0;
}

.order-list-mod-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.order-list-mod-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.order-list-mod-title-row .order-list-mod-title {
  margin: 0;
  flex: 0 0 auto;
}

.order-list-unpaid-date-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
}

.order-list-unpaid-date-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.order-list-unpaid-date-caption {
  white-space: nowrap;
}

.order-list-unpaid-date-input {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
}

.order-list-unpaid-date-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.order-list-unpaid-date-confirm {
  margin: 0;
}

/* 订单列表页「订单日期」工具条：与待付款区分，主按钮为蓝色 */
.order-list-mod-list-date .order-list-unpaid-date-confirm,
.order-list-mod-list-date .order-list-unpaid-preset {
  background: #2563eb;
  color: #fff;
  border: 1px solid #1d4ed8;
  font-weight: 600;
}

.order-list-mod-list-date .order-list-unpaid-preset:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.order-list-mod-list-date .order-list-unpaid-preset.is-active {
  background: #1e3a8a;
  border-color: #1e40af;
  color: #fff;
}

.order-list-mod-list-date > .order-list-list-date-intro {
  margin: 0 0 12px;
}

.order-list-unpaid-presets {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.order-list-unpaid-preset {
  margin: 0;
  font-weight: 600;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  line-height: 1.25;
}

.order-list-unpaid-preset:hover {
  background: #e5e7eb;
  color: #1f2937;
  text-decoration: none;
}

.order-list-unpaid-preset.is-active {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.order-list-unpaid-date-clear {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  margin-left: 2px;
}

.order-list-unpaid-date-clear:hover {
  text-decoration: none;
  color: #1d4ed8;
}

.order-list-mod-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7280;
}

.order-list-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.order-list-search-label {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  margin: 0;
}

.order-list-search-input {
  flex: 1;
  min-width: 220px;
  max-width: 520px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

.order-list-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.order-list-search-btn {
  margin: 0;
}

.order-list-search-clear {
  font-size: 14px;
  color: #2563eb;
  font-weight: 600;
}

.order-list-search-clear:hover {
  text-decoration: none;
  color: #1d4ed8;
}

.order-list-mod-list .order-list-note {
  margin-top: 0;
}

.order-list-unpaid-total,
.order-list-day-total {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 15px;
  color: #78350f;
}

.order-list-unpaid-total-value,
.order-list-day-total-value {
  font-size: 18px;
  color: #b45309;
}

.order-list-mod-all-hint {
  margin-bottom: 10px;
}

.order-list-mod-pager {
  padding-bottom: 14px;
}

.order-list-mod-pager .order-list-pager-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.order-list-mod-pending {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 48px);
}

.order-pending-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  background: #fde68a;
  border-radius: 999px;
  vertical-align: middle;
}

.order-pending-migrate code {
  font-size: 12px;
}

.order-pending-empty {
  margin-bottom: 0;
}

.order-pending-table-wrap {
  margin-top: 8px;
}

.order-list-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.order-list-pager-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.order-list-pager-summary {
  margin: 0 0 14px;
  font-size: 13px;
  color: #4b5563;
}

.order-list-pager-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
}

.order-list-jump-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 14px;
  color: #374151;
}

.order-list-jump-label {
  margin: 0;
  font-weight: 500;
}

.order-list-jump-input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.order-list-jump-suffix {
  margin-right: 4px;
}

.order-list-jump-btn {
  margin: 0;
}

.order-list-col-seq {
  width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.order-list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin: 0;
  font-size: 14px;
}

.order-list-pagination .order-page-link {
  color: #2563eb;
  font-weight: 600;
}

.order-list-pagination .order-page-link:hover {
  text-decoration: none;
  color: #1d4ed8;
}

.order-list-pagination .order-page-disabled {
  color: #9ca3af;
}

.order-list-pagination .order-page-current {
  color: #374151;
}

.order-list-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.order-list-empty {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.order-list-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.order-list-table {
  width: 100%;
  margin: 0;
}

/* biz 双行合并格（出货�?/ 审核材料�?/ 报价预览表均�?order-list-table）：水平垂直居中 */
.fibon-table.order-list-table td[rowspan="2"] {
  text-align: center;
  vertical-align: middle;
}

.order-list-col-addr {
  max-width: 220px;
  word-break: break-word;
  font-size: 12px;
  color: #4b5563;
}

.order-list-col-remark {
  max-width: 200px;
  word-break: break-word;
  font-size: 12px;
  color: #4b5563;
}

.order-ref-link {
  color: #2563eb;
  font-weight: 600;
}

.order-ref-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.order-paid-yes {
  color: #059669;
  font-weight: 600;
}

.order-paid-no {
  color: #b45309;
  font-weight: 600;
}

.order-amount-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-list-col-action {
  white-space: nowrap;
  vertical-align: middle;
}

.quick-ship-table .quick-ship-tracking-cell {
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  max-width: 18rem;
  vertical-align: middle;
}

.quick-ship-tracking-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quick-ship-tracking-input {
  flex: 1 1 10rem;
  min-width: 8rem;
  max-width: 14rem;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}

.quick-ship-tracking-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.quick-ship-tracking-display {
  display: inline-block;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  font-size: 14px;
  color: #1f2937;
}

.quick-ship-action-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.quick-ship-na {
  color: #9ca3af;
}

/* 快速发货：未发货时「未收货」为状态文案（需先发货后再点未收货按钮） */
.quick-ship-status-done {
  font-weight: 600;
}

/* 未发货时「未收货」仍为按钮外形，禁用避免误点 */
.quick-ship-btn-receive-wait:disabled,
.quick-ship-btn-receive-wait[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  border-color: #d1d5db;
  color: #6b7280;
  background: #f3f4f6;
}

/* 待付款列�?�?确认收款居中弹层 */
.order-collect-paid-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.order-collect-paid-overlay[hidden] {
  display: none !important;
}

/* 订单详情 �?删除本订单确认弹�?*/
.order-delete-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.order-delete-overlay[hidden] {
  display: none !important;
}

.order-delete-dialog {
  width: 100%;
  max-width: 400px;
  margin: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 28px 28px 24px;
}

.order-delete-dialog-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.order-delete-dialog-hint {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.55;
}

.order-delete-password-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 12px;
}

.order-delete-password-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.order-delete-error {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #b91c1c;
}

.order-delete-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.order-collect-paid-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.order-collect-paid-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 28px 28px 24px;
  animation: order-collect-paid-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes order-collect-paid-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.order-collect-paid-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.order-collect-paid-sub {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.55;
}

.order-collect-paid-form {
  margin: 0;
}

.order-collect-paid-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.order-collect-paid-cancel {
  background: #fff !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.order-collect-paid-cancel:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
}

.order-collect-paid-confirm {
  background: #059669 !important;
}

.order-collect-paid-confirm:hover {
  background: #047857 !important;
}

.customer-orders-page .customer-orders-back,
.order-detail-page .customer-orders-back {
  margin: 0 0 12px;
  font-size: 14px;
}

.customer-orders-page .customer-orders-back a,
.order-detail-page .customer-orders-back a {
  color: #2563eb;
}

.customer-orders-meta {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.customer-orders-meta p {
  margin: 4px 0;
}

.order-detail-dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  margin: 0 0 20px;
  font-size: 14px;
}

.order-detail-dl dt {
  margin: 0;
  color: #6b7280;
  font-weight: 600;
}

.order-detail-dl dd {
  margin: 0;
  color: #1f2937;
}

/* 订单详情 dl：成组包�?dt/dd，配�?display:contents 参与网格；打印专用行�?.order-detail-dl-remark-print */
.order-detail-dl-row {
  display: contents;
}

.order-detail-dl-remark-print {
  display: none;
}

.order-detail-lines-title {
  margin: 20px 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #374151;
}

.order-detail-original-voucher-section {
  margin-top: 20px;
}

.order-detail-original-voucher-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #374151;
}

.order-detail-original-voucher-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}

.order-detail-original-voucher {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.order-detail-voucher-img-wrap {
  display: inline-block;
  margin: 0 12px 12px 0;
  vertical-align: top;
}

.order-detail-voucher-img {
  display: block;
  max-width: 280px;
  max-height: 220px;
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.order-detail-mat-remark-above {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.order-detail-mat-remark-above-label {
  font-weight: 700;
  color: #374151;
  margin-right: 8px;
}

.order-detail-mat-remark-above-text {
  word-break: break-word;
  white-space: pre-wrap;
}

.order-detail-mat-block-meta td.order-detail-mat-block-meta-cell {
  padding: 0;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.order-detail-mat-block-inner {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #1f2937;
}

.order-detail-mat-block-line + .order-detail-mat-block-line {
  margin-top: 6px;
}

.order-detail-mat-block-k {
  font-weight: 700;
  color: #374151;
  margin-right: 8px;
}

.order-detail-mat-block-v {
  word-break: break-word;
  white-space: pre-wrap;
}

/* 出货单主标题（原订单明细�?*/
.order-detail-page .order-shipment-sheet-title {
  text-align: center;
  width: 100%;
}

.order-detail-page #order-print-sheet-title {
  white-space: pre-line;
}

.fibon-nav-btn {
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.fibon-nav-btn:hover {
  text-decoration: none;
  background: #1d4ed8;
}

.fibon-main {
  padding: 28px 0 40px;
}

.quote-box {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  padding: 22px 24px 26px;
}

.quote-original-voucher-block {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 20px 24px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quote-original-voucher-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.quote-original-voucher-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.quote-original-voucher-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.quote-original-voucher-dropzone {
  min-height: 100px;
  padding: 16px 14px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
  outline: none;
  cursor: text;
}

.quote-original-voucher-dropzone::before {
  content: '点击此处聚焦后粘贴图片，或将图片拖入此区�?;
  display: block;
  text-align: center;
}

.quote-original-voucher-dropzone:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  color: #334155;
}

.quote-original-voucher-dropzone.is-dragover {
  border-color: #059669;
  background: #ecfdf5;
}

.quote-original-voucher-thumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.quote-original-voucher-thumb-item {
  margin: 0;
  padding: 0;
  max-width: 200px;
}

.quote-original-voucher-thumb-img {
  display: block;
  max-width: 200px;
  max-height: 160px;
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

.quote-original-voucher-remove-btn {
  margin-top: 6px;
}

.quote-original-voucher-tools {
  margin-top: 10px;
}

.quote-price-guide {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 20px 24px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quote-price-guide-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.quote-price-tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.quote-price-tier-tab {
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.25;
}

.quote-price-tier-tab:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.quote-price-tier-tab.is-active {
  color: #fff;
  background: #2563eb;
  border-color: #1d4ed8;
}

.quote-price-guide-note {
  margin: 0 0 18px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* 单价表：外壳为真�?<table> 三列 td，子表固�?244px（不�?min(244px,100%)，避免父级宽度未定时 100%�? 热缩列消失） */
#quote-price-tables-mount {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.qpg-shell-table {
  border-collapse: separate;
  border-spacing: 28px 0;
  margin: 0;
  padding: 0;
  width: auto;
  max-width: none;
  table-layout: fixed;
  border: none;
  background: transparent;
}

.qpg-shell-cell {
  vertical-align: top;
  width: 244px;
  padding: 0;
  margin: 0;
  border: none;
  box-sizing: border-box;
}

.qpg-unit {
  box-sizing: border-box;
  width: 244px;
  max-width: 244px;
}

.qpg-resu-heading-spacer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.qpg-shell-cell-wuzi,
.qpg-shell-cell-wumeihua {
  width: auto;
  max-width: 100%;
  padding-top: 8px;
}

.qpg-unit-wuzi,
.qpg-unit-wumeihua {
  width: auto;
  max-width: 100%;
}

table.quote-price-guide-table-wuzi,
table.quote-price-guide-table-wumeihua {
  min-width: 360px;
}

/* 无字热缩 / 无字梅花 四列表：不沿用两列表 244px 固定�?*/
#quote-price-guide .quote-price-guide-table-wuzi,
#quote-price-guide .quote-price-guide-table-wumeihua {
  width: auto;
  max-width: 100%;
  min-width: 360px;
  table-layout: auto;
}

#quote-price-guide .quote-price-guide-table-wuzi th,
#quote-price-guide .quote-price-guide-table-wuzi td,
#quote-price-guide .quote-price-guide-table-wumeihua th,
#quote-price-guide .quote-price-guide-table-wumeihua td {
  width: auto;
  min-width: 4.5em;
  max-width: none;
}

#quote-price-guide .quote-price-guide-table-wuzi .quote-price-guide-wuzi-per-m,
#quote-price-guide .quote-price-guide-table-wumeihua .quote-price-guide-wumeihua-per-kg {
  display: inline-block;
  min-width: 3.2em;
  padding: 4px 6px;
  font-size: 14px;
  line-height: 1.25;
  color: #374151;
  background: #f3f4f6;
  border-radius: 4px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  table.qpg-shell-table,
  table.qpg-shell-table tbody,
  table.qpg-shell-table tr {
    display: block;
    width: 100%;
  }

  table.qpg-shell-table tr {
    margin: 0;
  }

  .qpg-shell-cell {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .qpg-shell-cell:last-child {
    margin-bottom: 0;
  }

  .qpg-unit {
    width: 100%;
    max-width: 100%;
  }

  .qpg-resu-heading-spacer {
    display: none;
  }

  .qpg-shell-cell-wuzi,
  .qpg-shell-cell-wumeihua {
    display: block;
    width: 100%;
  }

  .qpg-unit-wuzi,
  .qpg-unit-wumeihua {
    width: 100%;
    max-width: 100%;
  }

  #quote-price-guide .quote-price-guide-table,
  #quote-price-guide .quote-price-guide-table-resu-half,
  #quote-price-guide .quote-price-guide-table-wuzi,
  #quote-price-guide .quote-price-guide-table-wumeihua {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }
}

.quote-price-guide-subtitle {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

/* 报价页：老客户查询后的历史订单明细（单价表下方） */
.quote-customer-order-history {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 20px 24px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quote-customer-order-history-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.quote-customer-order-history-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #b45309;
  line-height: 1.5;
}

.quote-customer-order-history-empty,
.quote-customer-order-history-no-lines {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.quote-customer-order-history-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.quote-customer-order-history-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.quote-customer-order-history-head {
  margin-bottom: 12px;
}

.quote-customer-order-history-subtitle {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: #374151;
}

.quote-customer-order-history-order-link {
  color: #2563eb;
  text-decoration: none;
}

.quote-customer-order-history-order-link:hover {
  text-decoration: underline;
}

.quote-customer-order-history-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
}

.quote-customer-order-history-dl dt {
  margin: 0;
  font-weight: 600;
  color: #6b7280;
}

.quote-customer-order-history-dl dd {
  margin: 0;
  word-break: break-word;
}

.quote-customer-order-history-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
}

.quote-customer-order-history-table {
  font-size: 13px;
}

.quote-customer-order-history-print {
  max-width: 220px;
  word-break: break-word;
}

.quote-customer-order-history-action {
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

/* 客户 ID + 地址：整块卡�?*/
.customer-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 18px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.customer-block-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

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

.customer-required-star {
  color: #dc2626;
  font-weight: 700;
  margin-right: 2px;
}

.customer-block-label {
  flex: 0 0 84px;
  padding-top: 7px;
  font-size: 14px;
  color: #374151;
  font-weight: 600;
  text-align: right;
}

.customer-block-field {
  flex: 1;
  min-width: 0;
}

.customer-block-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-block-input-id {
  flex: 1 1 220px;
  min-width: 0;
}

.customer-ref-query-btn {
  flex: 0 0 auto;
}

.customer-block-paid-filter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
  color: #4b5563;
}

.customer-block-paid-label {
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.customer-block-paid-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}

.customer-block-paid-option input {
  margin: 0;
  cursor: pointer;
}

.customer-ref-status-wrap {
  margin: 0 0 14px;
  padding: 0 0 0 96px;
}

.customer-ref-status-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.customer-ref-status-heading.customer-ref-status-old {
  color: #1d4ed8;
}

.customer-ref-status-heading.customer-ref-status-new {
  color: #059669;
}

.customer-block-input {
  width: 100%;
  max-width: 360px;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.customer-block-input-wide {
  max-width: 640px;
}

.customer-block-textarea {
  display: block;
  width: 100%;
  max-width: 640px;
  min-height: 76px;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.customer-block-input:focus,
.customer-block-textarea:focus {
  outline: none;
  border-color: #1f67e8;
  box-shadow: 0 0 0 2px rgba(31, 103, 232, 0.15);
}

/* 第一步：外层整体�?+ 内层白卡片，内容居中、大�?*/
.material-step-shell {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #e6e9f0 0%, #dce0e8 100%);
  border: 1px solid #b8c0ce;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}

.material-step-box {
  background: #fff;
  border: 1px solid #cfd4de;
  border-radius: 10px;
  padding: 28px 28px 30px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.material-step-title {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 600;
  color: #dc2626;
  line-height: 1.4;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

/* 材料下拉行（在外框内，不再单独成卡片�?*/
.material-picker-block {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 auto 0;
  box-shadow: none;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.material-picker-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
}

.material-picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  width: 100%;
}

.material-step-actions {
  text-align: center;
  padding-top: 0;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* 第二步提示浮层 */
.step-two-hint-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  padding: 28px 48px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.45);
  pointer-events: none;
  white-space: nowrap;
  animation: step-two-fade-in-out 4s ease forwards;
  text-align: center;
}

@keyframes step-two-fade-in-out {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  8% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
}

@media (max-width: 768px) {
  .step-two-hint-overlay {
    font-size: 14px;
    padding: 12px 16px;
    white-space: normal;
    word-break: normal;
    max-width: 92vw;
    border-radius: 12px;
    line-height: 1.5;
    box-sizing: border-box;
  }
}

/* 箭头：左右红色箭头指向「新增材料型号」按钮 */
.material-btn-arrow {
  font-size: 42px;
  color: #dc2626;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.45));
}

.material-btn-arrow-left {
  animation: arrow-point-right 1.2s ease-in-out infinite;
}

.material-btn-arrow-right {
  animation: arrow-point-left 1.2s ease-in-out infinite;
}

@keyframes arrow-point-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@keyframes arrow-point-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

/* .material-btn.material-btn-step 写在 .material-btn 之后，否则会�?font-size:14px 覆盖 */

/* 第一步内材质行：加高优先�?+ !important，避免被 .fibon-page 继承或原�?select 吃掉字号 */
.material-step-shell .material-picker-label {
  font-size: 20px !important;
  color: #1f2937;
  font-weight: 600;
  white-space: nowrap;
}

.material-step-shell select.material-picker-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid #c5cad3;
  background-color: #fff;
  border-radius: 6px;
  font-size: 20px !important;
  line-height: 1.35;
  color: #111827;
  min-height: 44px;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.material-step-shell select.material-picker-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.material-step-shell select.material-picker-select::-ms-expand {
  display: none;
}

#material-blocks-container {
  margin-bottom: 8px;
}

.material-panel-wrap {
  margin-bottom: 20px;
}

.material-panel-wrap:last-child {
  margin-bottom: 0;
}

.quick-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.quick-row select,
.quick-row input {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
}

.material-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: background 0.15s, transform 0.05s;
}

.material-btn:hover {
  background: #1d4ed8;
}

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

/* 双类选择�?+ 置于 .material-btn 之后，覆盖其 14px 字号 */
.material-btn.material-btn-step {
  font-size: 25px !important;
  padding: calc(12px + 2.5px) 32px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
}

.material-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.material-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.material-block-remark {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.material-block-remark-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}

.material-block-remark-input {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.material-block-remark-input:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.15);
}

.material-header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.material-header-tools .material-len-shortcuts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transform: translateX(-40px);
}

.material-header-tools .material-len-shortcuts-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.material-header-tools .btn-len-from-print {
  white-space: nowrap;
}

.material-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 20px;
  line-height: 1.45;
  color: #b91c1c;
  font-weight: 700;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

/* 型号 + 切割两个下拉同一行对齐，避免「半切」单独换行顶到最左侧 */
.material-header .mat-header-model-cut-wrap {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.material-header .mat-model-edit,
.material-header .mat-cut-edit {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  font-family: inherit;
  line-height: 1.35;
  min-width: 4.2em;
  max-width: 10.8rem;
  padding: 4px 30px 4px 8px;
  margin: 0;
  border: 1px dashed rgba(185, 28, 28, 0.55);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.98);
  box-sizing: border-box;
  vertical-align: baseline;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px 14px;
}

.material-header .mat-cut-edit {
  max-width: 8.5rem;
}

.material-header .mat-model-edit::-ms-expand,
.material-header .mat-cut-edit::-ms-expand {
  display: none;
}

.material-header .mat-model-edit:focus,
.material-header .mat-cut-edit:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
  background-color: #fff;
}

.material-header .mat-label-mid {
  flex: 0 0 auto;
  line-height: 1.35;
  padding: 4px 0;
}

.btn-delete-model {
  border: 1px solid #dc2626;
  color: #dc2626;
  background: #fff;
  padding: 7px 14px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-delete-model:hover {
  background: #fff5f5;
}

.mat-model-picker-group,
.mat-color-picker-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fibon-table .col-print {
  min-width: 220px;
  width: 38%;
}

.fibon-table .col-row-color {
  min-width: 5.5em;
  width: 7.5em;
}

.fibon-table .col-row-color select.resu-row-color {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: inherit;
  background: #fff;
  cursor: pointer;
}

.fibon-table .col-row-color select.resu-row-color:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px #93c5fd;
}

.fibon-table .col-row-color select.resu-row-color.sequential-row-locked {
  cursor: not-allowed;
  background: #f3f4f6;
  color: #9ca3af;
}

.fibon-table .col-qty,
.fibon-table .col-len {
  width: 120px;
}

/* 订单录入等材料表：价格列需容纳「￥�? 多位整数 + 小数，勿与数�?长度同宽导致只露出前两位 */
.fibon-table .col-price {
  min-width: 12ch;
  width: 12ch;
  max-width: none;
  box-sizing: border-box;
}

.fibon-table .col-hint {
  min-width: 100px;
}

.fibon-table-wrap {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

/* 报价单：每个材料块表格下合计数量、总价（与数量/价格列同侧对齐） */
.material-block-subtotal-row {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 14px;
}

.material-block-subtotal-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px 28px;
  font-size: 14px;
  color: #374151;
}

.material-block-subtotal-qty-line strong,
.material-block-subtotal-price-line strong {
  font-weight: 700;
}

.material-block-subtotal-price-line strong {
  color: #b91c1c;
  font-size: 16px;
}

.fibon-table {
  width: 100%;
  border-collapse: collapse;
}

.fibon-table th,
.fibon-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.fibon-table th {
  text-align: center;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  font-weight: 600;
  color: #4b5563;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* 单价表（#quote-price-guide）：固定总宽 244px（两列各 120px + 边框），不依赖父级百分比 */
#quote-price-guide .quote-price-guide-table {
  width: 244px;
  max-width: 244px;
  min-width: 244px;
  margin-bottom: 0;
  table-layout: fixed;
  box-sizing: border-box;
}

#quote-price-guide .quote-price-guide-table-resu-half {
  width: 244px;
  max-width: 244px;
  min-width: 244px;
}

#quote-price-guide .quote-price-guide-table-resu-half th,
#quote-price-guide .quote-price-guide-table-resu-half td {
  width: 50%;
  min-width: 0;
  max-width: none;
}

#quote-price-guide .quote-price-guide-table th,
#quote-price-guide .quote-price-guide-table td {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  box-sizing: border-box;
  padding: 6px 4px;
  text-align: center;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  font-size: 14px;
  line-height: 1.25;
}

#quote-price-guide .quote-price-guide-table td .quote-price-guide-rate-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  background: #fff;
  outline: none;
}

#quote-price-guide .quote-price-guide-table td .quote-price-guide-rate-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.45);
}

.fibon-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.fibon-table tbody tr:hover {
  background: #f0f9ff;
}

.fibon-table td input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 13px;
  line-height: 1.4;
  padding: 5px 6px;
  border-radius: 4px;
  background: transparent;
}

.fibon-table td input:focus {
  background: #fff;
  box-shadow: 0 0 0 1px #93c5fd;
}

.fibon-table td input.sequential-row-locked {
  cursor: not-allowed;
  background: #f3f4f6 !important;
  color: #9ca3af;
}

.fibon-table td input.sequential-row-locked:focus {
  box-shadow: none;
}

/* 当前材料型号表格：行距约为默认的 50%（收紧单元格与输入框内边距） */
.material-panel .fibon-table th,
.material-panel .fibon-table td {
  padding: 4px 5px;
  line-height: 1.2;
}

.material-panel .fibon-table th {
  font-size: 17px;
}

.material-panel .fibon-table td {
  font-size: 19px;
}

.material-panel .fibon-table td input {
  padding: 2px 3px;
  line-height: 1.2;
  font-size: 18px;
}

.material-panel .fibon-table .col-row-color select.resu-row-color {
  font-size: 18px;
  padding: 2px 4px;
  line-height: 1.2;
}

.material-panel .fibon-table .tiny-btn {
  font-size: 19px;
}

/* 热缩标识管：印刷内容列附�?*/
.material-panel .fibon-table td.col-print-resu {
  min-width: 200px;
  vertical-align: top;
}

.material-panel .resu-print-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.material-panel .resu-print-cell .input-print {
  flex: 1 1 120px;
  min-width: 100px;
}

.material-panel .resu-print-img-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.material-panel .resu-print-img-label .resu-print-img-btn {
  display: inline-block;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 4px;
}

.material-panel .resu-print-img-label input.resu-print-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.material-panel .resu-print-img-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.material-panel .resu-print-preview {
  max-height: 140px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.order-detail-print-mix .order-detail-print-img-wrap {
  margin-top: 8px;
}

.order-detail-print-mix .order-detail-print-img-link {
  display: inline-block;
}

.order-detail-print-img-thumb {
  display: block;
  max-width: 220px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

@media print {
  .order-detail-print-img-thumb {
    max-width: 180px;
    max-height: 140px;
  }
}

.material-panel .fibon-table tbody tr.meihua-len-warn-below > td.meihua-len-warn-below-msg {
  padding: 4px 6px 5px;
  font-size: 18px;
  line-height: 1.25;
}

/* 梅花管：单只长度超过 80mm 警示 */
.fibon-table td.col-len input.meihua-len-over-limit {
  color: #dc2626 !important;
  font-weight: 600;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 1px #fecaca;
}

.fibon-table td.col-len input.meihua-len-over-limit:focus {
  background: #fff5f5 !important;
  box-shadow: 0 0 0 2px #f87171;
}

/* 问题提示警示：高对比黄底红字 */
.fibon-table td.col-hint input.meihua-hint-warn {
  background: #ffd400 !important;
  color: #8b0000 !important;
  font-weight: 700;
  border: 1px solid #b91c1c !important;
  box-shadow: inset 0 0 0 1px rgba(139, 0, 0, 0.35);
}

.fibon-table td.col-hint input.meihua-hint-warn:focus {
  background: #ffdf33 !important;
  color: #6b0000 !important;
  box-shadow: inset 0 0 0 1px rgba(139, 0, 0, 0.45), 0 0 0 2px #b91c1c;
}

/* 梅花�?/ 贴纸 单只长度超标：整行红�?+ 下方说明�?*/
.fibon-table tbody tr.meihua-row-len-warn > td {
  border-top: 2px solid #dc2626;
  border-bottom: 2px solid #dc2626;
}

.fibon-table tbody tr.meihua-row-len-warn > td:first-child {
  border-left: 2px solid #dc2626;
}

.fibon-table tbody tr.meihua-row-len-warn > td:last-child {
  border-right: 2px solid #dc2626;
}

.fibon-table tbody tr.meihua-len-warn-below > td.meihua-len-warn-below-msg {
  border-left: 2px solid #dc2626;
  border-right: 2px solid #dc2626;
  border-bottom: 2px solid #dc2626;
  border-top: none;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.checkbox-col {
  width: 35px;
  text-align: center;
  vertical-align: middle;
}

.checkbox-col input[type="checkbox"] {
  vertical-align: middle;
  margin: 0;
}

.index-col {
  width: 60px;
  text-align: center;
}

.action-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tiny-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.tiny-btn:hover {
  background: #1d4ed8;
}

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

.tiny-btn.warn {
  background: #ef4444;
}

.tiny-btn.warn:hover {
  background: #dc2626;
}

.quote-grand-total {
  margin-top: 20px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: right;
  font-size: 16px;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.quote-grand-total-line {
  display: block;
}

.quote-grand-total-line + .quote-grand-total-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}

.quote-grand-total-label {
  font-weight: 600;
  margin-right: 8px;
}

.quote-grand-total-value {
  font-size: 20px;
  color: #b45309;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quote-grand-total-tax-line {
  font-size: 15px;
  color: #4b5563;
}

.quote-grand-total-tax-label {
  font-weight: 600;
  margin-right: 8px;
}

.quote-grand-total-tax-value {
  font-size: 18px;
  color: #1d4ed8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quote-grand-total-tax-hint {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}

.quote-amount-received-row {
  margin-top: 12px;
  padding: 12px 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 14px;
  color: #374151;
}

.quote-amount-received-label {
  font-weight: 600;
  flex-shrink: 0;
}

.quote-amount-received-input {
  width: 140px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
}

.quote-amount-received-vat-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.quote-amount-received-vat-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.order-detail-vat13-note {
  font-size: 0.92em;
  color: #6b7280;
  font-weight: 500;
}

.quote-amount-received-hint {
  font-size: 12px;
  color: #6b7280;
  flex: 1 1 200px;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding-top: 8px;
}

.submit-quote-btn {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
  transition: filter 0.15s, transform 0.05s;
}

.submit-quote-btn:hover {
  filter: brightness(1.05);
}

.submit-quote-btn:active {
  transform: scale(0.99);
}

/* 报价页内错误提示 */
.fibon-main .alert-error {
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 14px;
}

@media (max-width: 768px) {
  .fibon-navbar-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    justify-content: center;
  }

  .fibon-brand {
    font-size: 20px;
    width: 100%;
    text-align: center;
  }

  .fibon-menu {
    width: 100%;
    justify-content: center;
  }

  .fibon-menu a {
    margin: 4px 8px;
    font-size: 13px;
  }

  .fibon-nav-btn {
    margin-top: 6px;
  }

  .quote-box {
    padding: 16px;
  }

  .material-step-shell {
    padding: 10px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .material-step-box {
    padding: 18px 14px 20px;
  }

  .material-step-title {
    font-size: 19px;
    margin-bottom: 16px;
    text-align: left;
  }

  .material-step-shell .material-picker-label {
    font-size: 20px !important;
  }

  .material-step-shell select.material-picker-select {
    font-size: 20px !important;
    min-height: 42px;
    padding: 9px 34px 9px 12px;
    background-position: right 8px center;
    background-size: 16px 16px;
  }

  .material-btn.material-btn-step {
    font-size: 25px !important;
    padding: calc(10px + 2.5px) 22px;
  }

  .customer-block-label {
    flex: 0 0 72px;
    font-size: 13px;
  }

  .customer-ref-status-wrap {
    padding-left: 0;
  }

  .fibon-table th,
  .fibon-table td {
    font-size: 12px;
    padding: 6px 8px;
  }

  #quote-price-guide .quote-price-guide-table th,
  #quote-price-guide .quote-price-guide-table td {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    padding: 6px 4px;
    font-size: 14px;
  }

  #quote-price-guide .quote-price-guide-table td .quote-price-guide-rate-input {
    font-size: 14px;
    padding: 4px 4px;
  }

  .material-panel .fibon-table th,
  .material-panel .fibon-table td {
    padding: 3px 4px;
    font-size: 17px;
  }

  .fibon-table td input {
    font-size: 12px;
  }

  .material-panel .fibon-table td input {
    font-size: 17px;
    padding: 2px 2px;
  }

  .material-panel .fibon-table .tiny-btn {
    font-size: 18px;
  }

  /* 热缩标识管：颜色下拉手机窄屏下缩小字号，避免选项文字显示不全 */
  .material-panel .fibon-table .col-row-color select.resu-row-color {
    font-size: 13px;
    padding: 2px 3px;
  }
}

/* ---------- 技术存证（列表 / 详情）：手机窄屏 ---------- */
@media (max-width: 768px) {
  .order-list-page.tech-manual-page {
    padding: 12px 12px 20px;
  }

  .order-list-page.tech-manual-page .order-list-title {
    font-size: 20px;
    line-height: 1.35;
  }

  .order-list-page.tech-manual-page .order-list-mod {
    padding: 12px 12px 14px;
  }

  .order-list-page.tech-manual-page .order-list-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .order-list-page.tech-manual-page .order-list-search-label {
    width: 100%;
  }

  .order-list-page.tech-manual-page .order-list-search-input {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .order-list-page.tech-manual-page .order-list-search-btn,
  .order-list-page.tech-manual-page .order-list-search-clear {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .order-list-page.tech-manual-page .order-list-unpaid-date-form {
    flex-direction: column;
    align-items: stretch;
  }

  .order-list-page.tech-manual-page .order-list-unpaid-date-label {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .order-list-page.tech-manual-page .order-list-unpaid-date-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .order-list-page.tech-manual-page .order-list-unpaid-date-label,
  .order-list-page.tech-manual-page .order-list-unpaid-date-confirm,
  .order-list-page.tech-manual-page .order-list-unpaid-presets,
  .order-list-page.tech-manual-page .order-list-unpaid-date-clear {
    width: 100%;
    box-sizing: border-box;
  }

  .order-list-page.tech-manual-page .order-list-unpaid-presets {
    justify-content: flex-start;
  }

  .order-list-page.tech-manual-page .order-list-unpaid-preset,
  .order-list-page.tech-manual-page .order-list-unpaid-date-confirm {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .order-list-page.tech-manual-page .order-list-table-wrap {
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px 2px;
    -webkit-overflow-scrolling: touch;
  }

  .order-list-page.tech-manual-page .order-list-table {
    font-size: 12px;
  }

  .order-list-page.tech-manual-page .order-list-table th,
  .order-list-page.tech-manual-page .order-list-table td {
    padding: 6px 6px;
    word-break: break-word;
  }

  .order-list-page.tech-manual-page .order-list-table th {
    font-size: 12px;
  }

  .order-list-page.tech-manual-page .tech-manual-def-table th:first-child,
  .order-list-page.tech-manual-page .tech-manual-def-table td:first-child {
    width: auto;
    min-width: 2.75rem;
    max-width: 4.5rem;
    white-space: normal;
  }

  .order-list-page.tech-manual-page .order-detail-dl {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .order-list-page.tech-manual-page .order-detail-dl dt {
    margin-bottom: 2px;
  }

  .order-list-page.tech-manual-page .order-detail-dl dd {
    margin-bottom: 10px;
    word-break: break-word;
  }

  .order-list-page.tech-manual-page #tech-param-file-input,
  .order-list-page.tech-manual-page #tech-param-upload-form .order-list-search-btn {
    width: 100%;
  }

  .order-list-page.tech-manual-page .order-detail-voucher-img-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    text-align: center;
  }

  .order-list-page.tech-manual-page .order-detail-voucher-img {
    max-width: min(100%, 360px);
    max-height: none;
    margin: 0 auto;
  }

  .order-list-page.tech-manual-page .finance-usage-block {
    padding: 10px 12px 12px;
  }

  .order-list-page.tech-manual-page .order-list-note {
    line-height: 1.6;
  }
}

/* ---------- 订单明细：屏幕打印工具栏 ---------- */
.order-print-toolbar-stack {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-print-toolbar-stack > .order-print-toolbar {
  margin-bottom: 0;
}

.order-print-toolbar {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.order-print-toolbar-label-row {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.order-print-toolbar a.order-print-btn {
  text-decoration: none;
}

.order-print-btn {
  padding: 8px 18px;
  font-weight: 600;
}

.order-label-print-toolbar-extras {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  font-size: 13px;
  color: #374151;
}

.order-label-print-toolbar-extra {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-label-print-toolbar-label {
  font-weight: 600;
  white-space: nowrap;
}

.order-label-print-toolbar-select {
  min-width: 4.5em;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
}

/* 标签拆包弹窗 �?表格及输入框 */
.order-label-bag-unified-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #374151;
}

.order-label-bag-input-inline {
  width: 100px;
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: center;
}

.order-label-bag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.order-label-bag-table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #374151;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.order-label-bag-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.order-label-bag-input {
  width: 90px;
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: center;
}

.order-label-bag-input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.order-label-bag-row-unsplittable {
  color: #9ca3af;
  font-style: italic;
}

.order-label-bag-row-unsplittable td {
  color: #9ca3af;
}

.order-print-sheet {
  position: relative;
}

.order-print-time {
  margin: -6px 0 16px;
  font-size: 12px;
  color: #6b7280;
}

.order-a4-print-meta {
  margin-left: 12px;
  font-size: 13px;
  color: #4b5563;
  vertical-align: middle;
}

.order-a4-print-ledger {
  margin: -10px 0 16px;
  font-size: 12px;
  color: #6b7280;
}

.order-a4-print-ledger .order-a4-print-reset-btn {
  margin-left: 10px;
  vertical-align: middle;
  font-size: 12px;
  padding: 3px 10px;
}

/* 出货单打印页脚公司名（order_detail 打印前由 JS 写入 --print-footer-company�?*/
:root {
  --print-footer-company: "沛县斐博奈商贸有限公�?;
}

/* ---------- 订单明细：A4 打印 ---------- */
.print-only { display: none; }
@media print {
  @page {
    size: A4;
    margin: 14mm 16mm 26mm 16mm;
    @bottom-center {
      content: var(--print-footer-company) "　�?" counter(page) " �?/ �?" counter(pages) " �?;
      font-size: 12pt !important;
      color: #000 !important;
      font-family: "Microsoft YaHei", "PingFang SC", SimHei, sans-serif;
    }
  }

  .quote-box.order-detail-page {
    page: auto;
  }

  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  /* 打印：备注排在「下单时间」下一行（屏幕仍显示在上方�?*/
  .order-detail-dl-remark-print {
    display: contents !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .fibon-topbar,
  .fibon-navbar {
    display: none !important;
  }

  .fibon-page,
  .fibon-main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    background: #fff !important;
    background-image: none !important;
  }

  .fibon-page {
    min-height: 0 !important;
  }

  .quote-box.order-detail-page {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    font-size: 15pt !important;
  }

  .order-print-main-title,
  .order-detail-page .order-shipment-sheet-title {
    margin: 0 0 8pt !important;
    font-size: 22pt !important;
    color: #000 !important;
    page-break-after: avoid;
    text-align: center !important;
    width: 100% !important;
  }

  #order-print-sheet-title {
    white-space: pre-line !important;
    text-align: center !important;
  }

  .order-detail-dl {
    grid-template-columns: 110px 1fr !important;
    gap: 4pt 10pt !important;
    margin-bottom: 12pt !important;
    font-size: 14pt !important;
    page-break-inside: avoid;
  }

  .order-detail-dl dt {
    color: #333 !important;
  }

  .order-detail-dl dd {
    color: #000 !important;
  }

  /* 打印：订单备注较信息区加大约三级字号并加粗（dl 默认 14pt �?18pt�?*/
  .order-detail-dl-remark-print dt,
  .order-detail-dl-remark-print dd {
    font-size: 18pt !important;
    font-weight: 700 !important;
  }

  .order-detail-dl a {
    color: #000 !important;
    text-decoration: none !important;
  }

  .order-detail-lines-title {
    margin: 12pt 0 8pt !important;
    font-size: 18pt !important;
    color: #000 !important;
    page-break-after: avoid;
  }

  .order-detail-mat-remark-above {
    margin: 0 0 8pt !important;
    padding: 6pt 8pt !important;
    font-size: 18pt !important;
    font-weight: 700 !important;
    color: #000 !important;
    background: #f0f0f0 !important;
    border: 1px solid #333 !important;
    border-radius: 0 !important;
    page-break-inside: avoid;
  }

  .order-detail-mat-remark-above-label {
    color: #000 !important;
    margin-right: 6pt !important;
  }

  .order-detail-mat-block-meta td.order-detail-mat-block-meta-cell {
    background: #f0f0f0 !important;
    border-bottom: 1px solid #333 !important;
    page-break-inside: avoid;
    text-align: center !important;
  }

  /* 打印：材料表内「印刷备注」居中，字号较原 13pt 累计加大五档并加�?*/
  .order-detail-mat-block-inner {
    padding: 6pt 8pt !important;
    font-size: 24pt !important;
    font-weight: 700 !important;
    color: #000 !important;
    text-align: center !important;
  }

  .order-detail-mat-block-k {
    color: #000 !important;
    margin-right: 6pt !important;
    font-weight: 700 !important;
  }

  .order-detail-mat-block-v {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    font-weight: 700 !important;
  }

  .order-list-table-wrap {
    overflow: visible !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
  }

  /* 材料明细表：打印宋体 14 磅、加粗；行距与内边距压到最小以省纸 */
  .order-detail-page .fibon-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    font-family: "SimSun", "NSimSun", "STSong", "Songti SC", "Noto Serif CJK SC", serif !important;
    font-size: 14pt !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .order-detail-page .fibon-table .order-detail-print-no-price {
    display: none !important;
  }

  .order-detail-page .fibon-table th,
  .order-detail-page .fibon-table td {
    border: 1px solid #333 !important;
    padding: 1px 4px !important;
    line-height: 1 !important;
    color: #000 !important;
    background: #fff !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    word-break: break-all !important;
    vertical-align: top !important;
  }

  /* 双行 rowspan：覆盖上行「材料明细」td �?vertical-align: top */
  .fibon-table.order-list-table td[rowspan="2"] {
    text-align: center !important;
    vertical-align: middle !important;
  }

  .order-detail-page .fibon-table thead th {
    background: #f0f0f0 !important;
    font-weight: 700 !important;
  }

  .order-detail-page .fibon-table tbody tr {
    page-break-inside: avoid;
  }

  .order-detail-page .order-detail-print-img-wrap {
    page-break-inside: avoid;
  }

  .order-detail-page .order-detail-print-img-thumb {
    max-width: 180px !important;
    max-height: 140px !important;
    display: block !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .order-paid-yes,
  .order-paid-no {
    color: #000 !important;
    font-weight: 600 !important;
  }

  .alert {
    border: 1px solid #000 !important;
    color: #000 !important;
  }
}

/* 报价页：主区�?+ 右侧草稿入口 */
.quote-page-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  max-width: 100%;
}

.quote-page-layout-core {
  flex: 1;
  min-width: 0;
}

.quote-cart-rail-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 14px 16px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-cart-rail-btn:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.quote-cart-rail-icon {
  font-size: 22px;
  line-height: 1;
}

.quote-cart-rail-text {
  font-weight: 600;
}

.quote-cart-badge-count {
  min-width: 22px;
  text-align: center;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
}

.submit-quote-stash-btn {
  background: #6b7280;
}

.submit-quote-stash-btn:hover {
  background: #4b5563;
}

.submit-quote-preview-btn {
  background: #1d4ed8;
}

.submit-quote-preview-btn:hover {
  background: #1e40af;
}

.submit-quote-buy-btn {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.submit-quote-buy-btn:hover {
  background: #dc2626;
  filter: brightness(1.08);
}

/* 报价页：订单预览弹层 */
.quote-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 32px;
  box-sizing: border-box;
  overflow-y: auto;
}

.quote-preview-overlay[hidden] {
  display: none !important;
}

.quote-preview-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 0;
}

.quote-preview-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid #e5e7eb;
}

.quote-preview-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px 12px 0 0;
}

.quote-preview-toolbar-hint {
  font-size: 13px;
  color: #6b7280;
  flex: 1 1 auto;
}

.quote-preview-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-preview-mount {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.quote-preview-sheet {
  max-width: 100%;
}

.quote-preview-time-line {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}

.quote-preview-banner {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.quote-preview-dl {
  margin-bottom: 20px;
}

.quote-preview-mat-title {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.quote-preview-material-block:first-child .quote-preview-mat-title {
  margin-top: 0;
}

.quote-preview-mat-remark {
  margin: 0 0 10px;
  font-size: 13px;
  color: #374151;
}

.quote-preview-table-wrap {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
}

.quote-preview-table {
  width: auto;
  font-size: 13px;
}

.quote-preview-table th,
.quote-preview-table td {
  text-align: center;
}

.quote-preview-table td.quote-preview-double-merge {
  vertical-align: middle;
}

.quote-preview-mat-subtotal {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.quote-preview-empty-mat {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

/* 仅用于报价预览浮层打印：隐藏整页再只显示 overlay；须排除合同打印、订单详情等整页打印 */
@media print {
  body:not(.contract-print-body):not(.order-detail-print-page) * {
    visibility: hidden;
  }

  #quote-preview-overlay:not([hidden]),
  #quote-preview-overlay:not([hidden]) * {
    visibility: visible;
  }

  #quote-preview-overlay:not([hidden]) {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #quote-preview-overlay[hidden] {
    display: none !important;
  }

  .quote-preview-backdrop,
  .quote-preview-toolbar {
    display: none !important;
    visibility: hidden !important;
  }

  #quote-preview-overlay:not([hidden]) .quote-preview-panel {
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: none !important;
  }

  #quote-preview-overlay:not([hidden]) .quote-preview-mount {
    overflow: visible !important;
    padding: 0 !important;
  }
}

/* 确认下单页微信付款弹层 */
.buy-now-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.buy-now-pay-overlay[hidden] {
  display: none !important;
}

.buy-now-pay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 0;
}

.buy-now-pay-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.buy-now-pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #07c160;
  color: #fff;
}

.buy-now-pay-title {
  font-size: 18px;
  font-weight: 700;
}

.buy-now-pay-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-now-pay-close:hover {
  background: rgba(255,255,255,0.35);
}

.buy-now-pay-body {
  padding: 24px 20px;
  text-align: center;
}

.buy-now-pay-qr-box {
  margin-bottom: 16px;
}

.buy-now-pay-qr-svg {
  width: 200px;
  height: 200px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  display: block;
  margin: 0 auto 10px;
}

.buy-now-pay-qr-label {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.buy-now-pay-info {
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
  margin-bottom: 0;
}

.buy-now-pay-amount-label {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 4px;
}

.buy-now-pay-amount {
  font-size: 32px;
  font-weight: 800;
  color: #dc2626;
  margin: 0;
}

.buy-now-pay-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.buy-now-pay-footer .tiny-btn {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  width: 100%;
}

.buy-now-pay-footer .tiny-btn:hover {
  background: #f3f4f6;
}

/* 暂存草稿列表�?*/
.quote-cart-back {
  margin: 0 0 16px;
}

.quote-cart-page-box {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 22px 24px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quote-cart-page-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.quote-cart-page-note {
  margin: 0 0 20px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
}

.quote-cart-empty {
  padding: 20px 0;
  color: #6b7280;
  font-size: 14px;
}

.quote-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.quote-cart-item-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.quote-cart-item-meta {
  font-size: 12px;
  color: #9ca3af;
}

.quote-cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 720px) {
  .quote-page-layout {
    flex-direction: column;
  }

  .quote-cart-rail-btn {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }
}

/* ---------- 销售合�?---------- */
.contract-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.contract-list-new-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.contract-list-new {
  flex-shrink: 0;
}

.contract-list-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.contract-list-actions {
  white-space: nowrap;
}

.contract-list-actions .tiny-btn {
  margin-right: 6px;
}

.contract-list-col-upper {
  max-width: 200px;
  font-size: 12px;
  color: #4b5563;
}

.contract-flash {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.contract-flash-ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.contract-flash-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.contract-edit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.contract-edit-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contract-party-a-card {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
}

.contract-party-a-card-title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.contract-party-a-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contract-party-a-card-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  line-height: 1.45;
  color: #374151;
}

.contract-party-a-card-list li span {
  flex: 0 0 4.5em;
  color: #6b7280;
  font-weight: 600;
}

.contract-form-section-title {
  margin: 22px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

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

@media (max-width: 720px) {
  .contract-form-grid {
    grid-template-columns: 1fr;
  }
}

.contract-field-span2 {
  grid-column: 1 / -1;
}

.contract-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #374151;
}

.contract-field span {
  font-weight: 600;
}

.contract-field .req {
  color: #dc2626;
  font-style: normal;
}

.contract-field input,
.contract-field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

.contract-field-block {
  grid-column: 1 / -1;
}

.contract-lines-wrap {
  margin-bottom: 16px;
}

.contract-lines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.contract-lines-table th,
.contract-lines-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  vertical-align: top;
}

.contract-lines-table th {
  background: #f9fafb;
  font-weight: 600;
  text-align: left;
}

.contract-lines-table .col-spec {
  width: 12%;
}

.contract-lines-table .col-qty,
.contract-lines-table .col-price,
.contract-lines-table .col-total {
  width: 10%;
}

.contract-lines-table .col-act {
  width: 48px;
  text-align: center;
}

.contract-lines-table input,
.contract-lines-table textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.contract-totals-grid {
  margin-bottom: 8px;
}

.contract-clauses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contract-form-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.contract-print-body {
  background: #e5e7eb;
  padding: 16px;
}

.contract-print-toolbar {
  max-width: 900px;
  margin: 0 auto 12px;
  display: flex;
  gap: 8px;
}

.contract-print-sheet {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 28px 32px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.contract-print-title {
  text-align: center;
  font-size: 22px;
  margin: 0 0 16px;
  font-weight: 700;
}

.contract-print-meta {
  margin: 6px 0;
  font-size: 14px;
}

.contract-print-h2 {
  font-size: 15px;
  margin: 18px 0 8px;
}

.contract-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.contract-print-table th,
.contract-print-table td {
  border: 1px solid #111;
  padding: 8px 10px;
  vertical-align: top;
}

.contract-print-table th {
  background: #f3f4f6;
}

.contract-print-total {
  margin: 12px 0 18px;
  font-size: 14px;
  font-weight: 600;
}

.contract-print-amount-note {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
}

.contract-print-clause {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.55;
}

.contract-print-sign-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 13px;
}

.contract-print-sign-table td {
  border: 1px solid #111;
  padding: 12px 14px;
  vertical-align: top;
  width: 50%;
}

.contract-print-sign-cell p {
  margin: 4px 0;
}

/* 甲方电子章：按主体分 modifier；斐博奈�?assets/contract_seal_fibonai.png */
.contract-print-party-a-seal-anchor {
  position: relative;
  z-index: 0;
  margin-top: 4px;
}

.contract-print-party-a-seal-anchor > p {
  position: relative;
  z-index: 1;
}

.contract-print-party-a-seal-anchor.contract-print-party-a-seal--fibonai {
  min-height: 4.2cm;
}

.contract-print-party-a-seal-anchor.contract-print-party-a-seal--fibonai::before,
.contract-print-party-a-seal-anchor.contract-print-party-a-seal--zhuanfei-sh::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4.2cm;
  height: 4.2cm;
  margin-top: -2.1cm;
  z-index: 0;
  mix-blend-mode: multiply;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  pointer-events: none;
}

.contract-print-party-a-seal-anchor.contract-print-party-a-seal--fibonai::before {
  background: url("contract_seal_fibonai.png") center / contain no-repeat;
}

.contract-print-party-a-seal-anchor.contract-print-party-a-seal--zhuanfei-sh {
  min-height: 4.2cm;
}

.contract-print-party-a-seal-anchor.contract-print-party-a-seal--zhuanfei-sh::before {
  background: url("contract_seal_zhuanfei_sh.png?v=18") center / contain no-repeat;
}

/* ---------- 微信二维码弹窗 ---------- */
.wx-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

.wx-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  max-width: 320px;
  width: 82%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.wx-modal-box img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.wx-modal-box p {
  margin: 14px 0 0;
  font-size: 14px;
  color: #374151;
}

.wx-modal-close {
  margin-top: 14px;
  padding: 6px 24px;
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
