:root {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: #27313a;
  background: #f5f7fa;
  font-synthesis: none;
  letter-spacing: 0;
  --el-color-primary: #087f78;
  --el-color-primary-light-3: #4aaba5;
  --el-color-primary-light-5: #82c8c2;
  --el-color-primary-light-7: #b3dfda;
  --el-color-primary-light-8: #d0eae7;
  --el-color-primary-light-9: #e8f5f3;
  --el-color-primary-dark-2: #06655f;
  --el-border-radius-base: 6px;
}
* { box-sizing: border-box; letter-spacing: 0; }
html, body, #app { height: 100%; overflow: hidden; }
body { margin: 0; font-size: 14px; }
.settings-page { max-width: 1160px; }
.settings-block { background: white; border: 1px solid #e0e7e9; border-radius: 8px; padding: 24px; margin-bottom: 22px; }
.settings-block > h2 { margin-bottom: 20px; }
.printer-default-label { margin-left: 10px; color: #087f78; }
.template-grid { display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 20px; }
.variable-list { display: flex; gap: 7px; align-content: flex-start; flex-wrap: wrap; }
.variable-list p { width:100%; margin: 0 0 6px; color:#7c8992; }
.variable-list .el-button { margin-left:0; }
.template-actions { margin-top:18px; }
.template-preview { font: inherit; font-size: 17px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; padding:24px; background:#f8fafb; border:1px solid #e0e7e9; }
.customer-heading { margin-top:22px; }
.copyable-field { font:inherit; color:inherit; padding:5px 8px; margin:-5px -8px; border:0; border-radius:5px; background:transparent; cursor:pointer; text-align:left; overflow-wrap:anywhere; }
.copyable-field:hover { background:#e6f3ef; }
.copyable-field:focus-visible { outline:2px solid #087f78; }
.copyable-field:disabled { cursor:default; color:#88949b; }
.audio-books-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.audio-books-grid.single-book { grid-template-columns:1fr; }
.audio-books-grid .audio-book { min-width:0; margin:0; }
.book-number { display:inline-flex; align-items:center; justify-content:center; width:26px;height:26px;border-radius:50%;background:#e7f4f0;color:#087f78;margin-right:10px;font-size:13px; }
.source-summary { display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px;background:white;border:1px solid #e0e7e9;border-radius:8px; }
.source-summary p,.output-summary p { overflow-wrap:anywhere; }
.end-number { display:flex;justify-content:space-between;gap:16px;padding:12px 0; }
.end-number output { font-size:18px; font-variant-numeric:tabular-nums; }
.output-summary { padding:20px 0; }
.output-summary-heading { display:flex;align-items:center;justify-content:space-between;gap:18px; }
.auto-print-switch { display:flex;align-items:center;gap:10px;color:#4b5b64;font-size:13px;cursor:pointer;white-space:nowrap; }
.auto-print-hint { display:block;margin-top:7px;color:#087f78; }
.stage-progress { background:white;padding:22px;border:1px solid #e0e7e9;border-radius:8px;margin-bottom:22px; }
.upload-heading { margin-top:30px; }
.printed-template { font:inherit; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.thermal-preview { max-width:380px; margin-inline:auto; }
.cloud-login { position:fixed; inset:0; z-index:1000; min-height:100vh; display:grid; place-items:center; padding:20px; background:#f5f7fa; overflow:auto; }
.cloud-login form { background:white;max-width:450px;width:100%;padding:32px;border-radius:10px;border:1px solid #dde7e4; }
.cloud-login label { display:block;margin-top:20px; }
.cloud-login input { display:block;width:100%;padding:12px;border:1px solid #bfcac6;margin-top:8px;border-radius:5px; }
.cloud-login button { margin-top:22px;padding:12px;width:100%;background:#087f78;color:white;border:0;border-radius:5px;cursor:pointer; }
@media print { .thermal-sheet { font-size:12pt !important;line-height:1.6 !important; } }
@media(max-width:1100px){ .template-grid { grid-template-columns:minmax(0,1fr) 160px; } .audio-books-grid { gap:12px; } .audio-books-grid .audio-book { padding:16px; } }
@media(max-width:700px){ .template-grid { grid-template-columns:1fr; } .audio-books-grid { grid-template-columns:1fr; } .settings-block { padding:16px; } .output-summary-heading { align-items:flex-start;flex-direction:column; } .auto-print-switch { white-space:normal; } .browser-client .sidebar { position:static;width:100%;max-height:none; } .browser-client .brand,.browser-client .nav-caption,.browser-client .sidebar-bottom{display:none;} .browser-client .main-menu{display:flex;overflow-x:auto;} .browser-client .main-menu .el-menu-item{flex-shrink:0;margin:4px;height:40px;} .browser-client .workspace{margin-left:0;} .browser-client .topbar{display:none;} }
.stat-link { cursor: pointer; background: transparent; border: 0; text-align: left; color: inherit; font: inherit; }
.stat-link:hover { background: #edf7f5; }
.stat-link:focus-visible { outline: 2px solid #087f78; outline-offset: -2px; }
.action-strip { margin-bottom: 20px; }
.settings-section { max-width: 780px; }
.settings-section h2 { margin-bottom: 18px; }
.weight-value { font-variant-numeric: tabular-nums; color: var(--el-color-primary-dark-2); }
.form-hint { margin-left: 10px; color: var(--el-text-color-secondary); font-size: 12px; }
.audio-book { padding: 22px; border: 1px solid #e0e7e9; background: white; border-radius: 8px; margin-bottom: 18px; }
.filename-range { color: #087f78; padding: 12px; background: #eef7f5; overflow-wrap: anywhere; }
.job-print-root { display: none; }
.work-sheet-title { font-size: 17pt; font-weight: 800; text-align: center; padding-bottom: 4pt; border-bottom: 1px solid #000; }
.work-order-no { font-size: 10.5pt; margin-top: 3mm; text-align: center; }
.work-order-barcode { display: block; width: 100%; height: 20mm; margin: 2mm 0 1mm; }
.work-order-barcode rect:not(:first-child) { fill: #000; }
.production-board-query { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.production-board-query .el-input { flex: 1; max-width: 520px; }
.rate-template-toolbar .clear-rate-template { margin-left: auto; }
.work-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 3mm; border: 1px solid #9aa7b2; font-size: 9.5pt; line-height: 1.25; }
.work-meta > div { min-width: 0; padding: 1.5mm 2mm; border-bottom: 1px solid #c8d0d6; }
.work-meta > div:nth-child(odd) { border-right: 1px solid #c8d0d6; }
.work-meta > div:nth-last-child(-n + 2) { border-bottom: 0; }
.work-meta strong { font-weight: 800; }
.work-books-title { font-size: 12pt; font-weight: 700; margin-top: 10pt; border-bottom: 1px solid #000; padding-bottom: 2pt; }
.work-books { margin-top: 4pt; font-size: 10.5pt; line-height: 1.5; }
.work-books-dense { display: grid; grid-auto-flow: column; grid-template-rows: repeat(8, auto); grid-auto-columns: minmax(0, 1fr); column-gap: 3mm; line-height: 1.32; }
.work-books-dense-note { font-size: 9pt; line-height: 1.18; }
.work-books-dense-note ~ .work-note-alert { margin-top: 5pt; font-size: 11pt; }
.work-books-dense-note ~ .work-note-title { margin-top: 4pt; font-size: 9.5pt; }
.work-books-dense-note ~ .work-note-content { margin-top: 2pt; padding: 3pt; font-size: 9.5pt; line-height: 1.25; }
.work-multi-pen-alert { margin: 7pt 0; padding: 4pt; color: #b42318; border: 1pt solid #b42318; background: #fff0ed; text-align: center; font-size: 12pt; font-weight: 800; }
.work-pen-group { margin-top: 8pt; }
.work-pen-title { padding-bottom: 2pt; border-bottom: 1pt solid #000; font-size: 12pt; font-weight: 800; }
.work-pen-divider { margin: 8pt 0 1pt; border-top: 1pt dashed #555; }
.order-pen-groups { display: grid; gap: 12px; margin: 18px 0 10px; }
.order-pen-group { padding: 16px; border: 1px solid var(--el-color-primary-light-7); border-radius: 8px; background: #fbfefd; }
.order-pen-group .section-heading { margin-bottom: 10px; }
.order-pen-group h3 { margin: 0; font-size: 15px; color: var(--el-color-primary-dark-2); }
.add-pen-group { margin-top: 2px; }
.production-pen-summary { display: grid; gap: 3px; margin: 3px 0 9px; }
.production-pen-summary strong { color: var(--el-color-primary-dark-2); }
.production-pen-summary span { color: var(--el-text-color-secondary); font-size: 12px; }
.multi-pen-warning { display: inline-block; margin: 0 0 5px; padding: 2px 6px; color: #b42318; background: #fff0ed; border-radius: 3px; font-size: 12px; font-weight: 700; }
.pen-production-group { grid-column: 1 / -1; border-color: var(--el-color-primary-light-6); background: #fbfefd; }
.nested-audio-book { background: #fff; }
.order-table-pen-group { display: grid; gap: 2px; margin: 2px 0 8px; font-size: 12px; }
.order-table-pen-group span { color: var(--el-text-color-secondary); }
.detail-group-book { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--el-border-color-lighter); }
@media(max-width:700px){ .order-pen-group { padding: 12px; } .order-pen-group .form-grid { grid-template-columns: 1fr; } }
.work-book-line { break-inside: avoid; }
.work-note-alert { margin-top: 10pt; color: #d40000; font-size: 12pt; font-weight: 800; text-align: center; line-height: 1.25; }
.work-note-title { margin-top: 7pt; font-weight: 700; font-size: 10pt; }
.work-note-content { margin-top: 3pt; font-size: 10pt; line-height: 1.45; border: 1px solid #d40000; padding: 4pt; }
@media print {
  @page { size: 76mm 130mm; margin: 0; }
  html, body { width: 76mm !important; height: 130mm !important; margin: 0 !important; min-height: 0 !important; background: white !important; color: black !important; }
  body > * { display: none !important; }
  body > .job-print-root { display: block !important; }
  /* 邮政预印纸：顶端为 EMS 标识，底端为预印条码和路由码，均不得覆盖。 */
  .job-sheet { box-sizing: border-box; width: 76mm; height: 130mm; margin: 0; padding: 15mm 4mm 10mm; break-after: page; page-break-after: always; overflow: hidden; overflow-wrap: anywhere; color: #000 !important; font-family: 'Microsoft YaHei', 'SimHei', sans-serif; font-weight: 400; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .job-sheet:last-child { break-after: auto; page-break-after: auto; }
  .job-sheet, .job-sheet * { color: #000 !important; }
  .express-print-root .ems-print-page { box-sizing: border-box; width: 76mm !important; height: 130mm !important; margin: 0; overflow: hidden; }
}
button, input, textarea { font-family: inherit; }
a { color: var(--el-color-primary); }
.app-shell { height: 100%; min-height: 0; overflow: hidden; }
.mobile-app-shell { height: 100%; min-height: 0; overflow: hidden; background: #f4f7f7; }
.mobile-header { position: fixed; inset: 0 0 auto; z-index: 30; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: #fff; border-bottom: 1px solid #e3eae9; box-shadow: 0 2px 10px rgba(22, 52, 49, .06); }
.mobile-brand { display: inline-flex; align-items: center; gap: 8px; color: #173d3b; font-size: 17px; }
.mobile-brand .el-icon { color: #0b8f85; }
.mobile-cloud-state { display: inline-flex; align-items: center; gap: 6px; color: #6c7f80; font-size: 12px; }
.mobile-cloud-state i { width: 7px; height: 7px; border-radius: 50%; background: #37ad7c; box-shadow: 0 0 0 3px #e5f6ee; }
.mobile-page-main { height: 100%; min-height: 0; overflow-y: auto; padding: 78px 14px 92px; scrollbar-gutter: stable; }
.mobile-page-main > section { max-width: 720px; margin: 0 auto; }
.mobile-page-main .page-heading { margin-bottom: 18px; }
.mobile-page-main .page-heading h1 { font-size: 22px; color: #203735; }
.mobile-page-main .eyebrow { margin-top: 4px; }
.mobile-page-main .filter-bar { gap: 8px; margin-bottom: 12px; }
.mobile-page-main .filter-bar .el-input { max-width: none; flex: 1 1 100%; }
.mobile-page-main .filter-bar .el-select { width: 100%; }
.mobile-page-main .table-surface { overflow-x: auto; }
/* 手机订单表格只保留客户与操作两列；客户信息不再被压窄，操作按钮靠右并保留足够点击面积。 */
.mobile-page-main .table-surface .el-table { min-width: 0; }
.mobile-page-main .table-surface .el-table .cell { padding-inline: 12px; }
.mobile-page-main .table-surface .customer-name { font-size: 17px; line-height: 1.5; white-space: nowrap; }
.mobile-page-main .table-surface .mono.small { display: inline-block; margin-top: 4px; font-size: 13px; white-space: nowrap; }
.mobile-page-main .mobile-order-status .el-tag { font-size: 12px; }
.mobile-page-main .mobile-order-remark .order-remark-warning { margin-top: 0; }
.mobile-page-main .mobile-order-remark .order-remark-text { margin-top: 3px; font-size: 13px; line-height: 1.5; }
.mobile-page-main .order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 12px; min-height: 52px; }
.mobile-page-main .order-actions .el-button { min-height: 38px; margin: 0; padding: 7px 4px; font-size: 16px; }
.mobile-page-main .order-actions .el-button + .el-button { margin-left: 0; }
.mobile-page-main .result-grid { grid-template-columns: 1fr; gap: 12px; }
.mobile-page-main .order-result { padding: 16px; border-radius: 10px; box-shadow: 0 2px 8px rgba(26, 58, 55, .04); }
.mobile-page-main .result-fields { grid-template-columns: 48px minmax(0,1fr); gap: 8px 10px; }
.mobile-page-main .order-form { max-width: none; }
.mobile-page-main .form-section { margin-top: 16px; padding: 16px; border: 1px solid #e1e9e8; border-radius: 10px; background: #fff; }
.mobile-page-main .form-section:first-of-type { margin-top: 0; }
.mobile-page-main .form-section h2 { margin-bottom: 14px; font-size: 15px; }
.mobile-page-main .form-grid { grid-template-columns: 1fr; gap: 0; }
.mobile-page-main .span-two { grid-column: auto; }
.mobile-page-main .smart-input { display: block; margin-bottom: 12px; }
.mobile-page-main .smart-input .el-input { margin-bottom: 8px; }
/* 两个客户信息快捷操作始终并列，左侧粘贴，右侧智能识别。 */
.mobile-page-main .smart-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.mobile-page-main .smart-actions .el-button { width: 100%; min-width: 0; margin: 0; }
.mobile-page-main .smart-paste-button { border-color: #75bdb7; color: #087f78; background: #f4fbfa; }
.mobile-page-main .smart-identify-button { font-weight: 600; }
.mobile-page-main .form-actions { position: sticky; bottom: 0; z-index: 4; margin: 8px -16px -16px; padding: 12px 16px; background: rgba(255,255,255,.96); border-top: 1px solid #e5eceb; }
.page-heading-actions { display: flex; align-items: center; gap: 8px; }
.page-heading-actions .el-button + .el-button { margin-left: 0; }
.mobile-cost-page { display: grid; gap: 16px; }
.mobile-cost-page .page-heading { margin-bottom: 0; }
.cost-range-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.cost-range-bar .el-button { flex: 0 0 auto; margin-left: 0; min-height: 38px; }
.cost-date-picker { width: 100%; }
.cost-summary-surface { padding: 20px; border: 1px solid #cfe3df; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(21, 74, 68, .05); }
.cost-summary-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; color: #087f78; }
.cost-summary-heading h2 { margin-top: 3px; color: #203735; font-size: 16px; }
.cost-kicker { color: #778988; font-size: 12px; font-variant-numeric: tabular-nums; }
.cost-total { display: block; margin: 13px 0 18px; color: #075f59; font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e5eeec; }
.cost-metric-grid > div { display: grid; gap: 5px; min-width: 0; padding: 14px 10px 0 0; }
.cost-metric-grid > div + div { padding-left: 12px; border-left: 1px solid #e5eeec; }
.cost-metric-grid span { color: #718180; font-size: 12px; }
.cost-metric-grid strong { color: #263c3a; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cost-note { margin: 14px 0 0; color: #7a8988; font-size: 12px; line-height: 1.6; }
.cost-section { padding: 18px 16px; border: 1px solid #e1e9e8; border-radius: 8px; background: #fff; }
.cost-section .section-heading { margin-bottom: 14px; }
.cost-section h2 { display: inline-flex; align-items: center; gap: 7px; }
.cost-section h2 .el-icon { color: #087f78; }
.cost-breakdown { border-top: 1px solid #edf1f0; }
.cost-breakdown-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid #edf1f0; }
.cost-breakdown-row > div { display: grid; gap: 3px; min-width: 0; }
.cost-breakdown-row span { color: #81908f; font-size: 12px; }
.cost-breakdown-row > strong { color: #075f59; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-settings .el-form-item { margin-bottom: 18px; }
.cost-settings .el-input-number { width: min(100%, 250px); }
.form-help { margin: 7px 0 0; line-height: 1.5; }
.book-cost-list { border-top: 1px solid #edf1f0; }
.book-cost-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf1f0; }
.book-cost-row > div { display: grid; gap: 4px; min-width: 0; }
.book-cost-row .el-input-number { flex: 0 0 142px; width: 142px; }
.cost-save-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.mobile-tabbar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); height: 68px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid #dfe8e6; box-shadow: 0 -3px 14px rgba(26, 58, 55, .08); }
.mobile-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #839391; font: inherit; font-size: 11px; cursor: pointer; }
.mobile-tabbar button.active { color: #087f78; font-weight: 600; }
.mobile-tabbar button.active .el-icon { transform: translateY(-1px); }
@media(min-width:701px) {
  .mobile-app-shell { max-width: 520px; margin: 0 auto; border-inline: 1px solid #e1e9e8; box-shadow: 0 0 24px rgba(30, 59, 56, .08); }
  .mobile-header, .mobile-tabbar { left: 50%; right: auto; width: min(520px, 100%); transform: translateX(-50%); }
}
@media(max-width:420px) {
  .mobile-cost-page .page-heading { align-items: flex-start; }
  .mobile-cost-page .page-heading-actions { width: 100%; justify-content: space-between; }
  .cost-metric-grid { grid-template-columns: 1fr; gap: 0; }
  .cost-metric-grid > div, .cost-metric-grid > div + div { grid-template-columns: 1fr auto; align-items: center; padding: 10px 0; border-left: 0; border-bottom: 1px solid #e5eeec; }
  .cost-metric-grid > div:last-child { border-bottom: 0; }
  .cost-metric-grid strong { text-align: right; }
  .book-cost-row { align-items: flex-start; }
  .book-cost-row .el-input-number { flex-basis: 132px; width: 132px; }
}
.sidebar { width: 200px; position: fixed; inset: 0 auto 0 0; background: #242a30; color: #fff; display: flex; flex-direction: column; z-index: 20; overflow-y: auto; }
.brand { height: 104px; display: flex; align-items: center; gap: 12px; padding: 0 24px; font-size: 22px; font-weight: 700; white-space: nowrap; }
.brand .el-icon { color: #64d0bd; flex-shrink: 0; }
.brand span { display: block; font-size: 12px; font-weight: 400; color: #bfc8cc; margin-top: 6px; }
.nav-caption { color: #a3adb4; font-size: 11px; padding: 16px 25px 12px; }
.main-menu { border: 0 !important; background: transparent !important; --el-menu-text-color: #c5cdd1; --el-menu-hover-bg-color: #30383e; --el-menu-active-color: #fff; }
.main-menu .el-menu-item { height: 47px; margin: 3px 12px; border-radius: 5px; padding-left: 13px !important; }
.main-menu .el-menu-item.is-active { background: #087f78; }
.sidebar-bottom { margin-top: auto; padding: 24px 19px; color: #b3bfc3; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #70c7a1; }
.version { margin-left: auto; color: #89969d; }
.workspace { margin-left: 200px; min-width: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid #e5e9ed; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; gap: 16px; }
.breadcrumb { font-size: 12px; color: #7f8990; white-space: nowrap; }
.breadcrumb span { margin: 0 14px; color: #c5cbd0; }
.breadcrumb strong { color: #343e45; font-weight: 500; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.toolbar .el-button + .el-button { margin-left: 0; }
.toolbar > .el-button.is-icon { width: 32px; }
.local-label { font-size: 12px; color: #7c868c; border-left: 1px solid #e5e9ed; padding-left: 14px; }
.page-main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; max-width: 1560px; width: 100%; margin: 0 auto; padding: 28px 30px 40px; scrollbar-gutter: stable; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
h1 { font-size: 24px; line-height: 1.4; margin: 0; font-weight: 650; }
h2 { font-size: 16px; line-height: 1.5; margin: 0; font-weight: 600; }
h3 { font-size: 14px; margin: 0; }
.eyebrow { font-size: 12px; color: #78838b; margin: 7px 0 0; line-height: 1.6; }
.muted { color: #8a949c; }
.mono { font-family: Consolas, monospace; font-variant-numeric: tabular-nums; }
.page-alert { margin-bottom: 18px; }
.section { border-top: 1px solid #e2e7eb; margin-top: 24px; padding-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.filter-bar .el-input { max-width: 330px; }
.filter-bar .el-select { width: 160px; }
.table-surface { border: 1px solid #e4e9ed; background: #fff; border-radius: 6px; overflow: hidden; }
.el-table { --el-table-header-bg-color: #f8fafb; --el-table-header-text-color: #6d7881; --el-table-row-hover-bg-color: #f2f8f7; }
.el-table th.el-table__cell { height: 46px; font-size: 12px; font-weight: 500; }
.el-table td.el-table__cell { padding: 13px 0; }
.el-table .cell { overflow-wrap: anywhere; }
.el-table .el-button + .el-button { margin-left: 9px; }
.customer-name { font-weight: 600; color: #25313a; margin-bottom: 5px; }
.small { font-size: 12px; }
.pagination { display: flex; justify-content: flex-end; margin-top: 20px; }
.stats-band { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: #fff; border-block: 1px solid #e5e9ed; margin-bottom: 28px; }
.stat { padding: 24px; border-right: 1px solid #e5e9ed; }
.stat:last-child { border-right: 0; }
.stat-label { color: #76818a; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.stat-value { font-size: 30px; font-weight: 600; margin-top: 12px; font-variant-numeric: tabular-nums; }
.stat:nth-child(2) .stat-value { color: #087f78; }
.stat:nth-child(3) .stat-value { color: #bd8525; }
.stat:nth-child(4) .stat-value { color: #5779aa; }
.stat:nth-child(5) .stat-value { color: #c43d3d; }
.search-input .el-input__wrapper { min-height: 52px; font-size: 15px; }
.search-input { margin-bottom: 22px; }
.result-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.order-result { border: 1px solid #e1e7eb; background: #fff; border-radius: 6px; min-width: 0; padding: 20px; }
.result-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.result-name { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.result-phone { display: block; font-size: 13px; color: #7d888f; margin-top: 7px; font-family: Consolas, monospace; }
.result-fields { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 11px 12px; font-size: 13px; margin-bottom: 18px; }
.result-fields > :nth-child(odd) { color: #8a949b; }
.result-fields > :nth-child(even) { overflow-wrap: anywhere; }
.result-bottom { border-top: 1px solid #edf0f2; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.result-actions { display: flex; align-items: center; gap: 6px; }
.order-form { max-width: 1080px; }
.form-section { border-top: 1px solid #e2e7eb; padding-top: 22px; margin-top: 22px; }
.form-section:first-child { margin-top: 0; }
.form-section h2 { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
.form-grid > * { min-width: 0; }
.span-two { grid-column: 1 / -1; }
.el-form-item__label { font-size: 13px !important; }
.el-input-number { max-width: 100%; }
.smart-input { display: flex; align-items: start; gap: 12px; margin-bottom: 24px; }
.smart-input .el-textarea { flex: 1; }
.smart-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-row-has-remark td.el-table__cell { background: #fff0ed !important; }
.order-row-has-remark .customer-name { color: #b42318; }
.order-remark-warning { margin-top: 5px; color: #d94b3d; font-size: 12px; font-weight: 600; line-height: 1.4; }
.order-remark-text { color: #c23b2b; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-order-status { margin-top: 8px; }
.mobile-order-remark { margin-top: 7px; padding-top: 7px; border-top: 1px solid #f2c9c2; }
.top-status-button { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 5px; padding: 4px 3px; color: #52606a; font-size: 12px; cursor: pointer; white-space: nowrap; }
.top-status-button:hover { color: #087f78; }
.status-item { display: inline-flex; align-items: center; gap: 5px; }
.status-upload { color: #b06f1e; font-weight: 600; }
.upload-task-entry { margin-left: 5px; }
.upload-task-count { min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: #c8892c; color: #fff; font-size: 11px; margin-left: 2px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #aab4bb; }
.status-dot.ok, .status-dot.ready { background: #27a36a; }
.status-dot.error { background: #d94b3d; }
.status-dot.checking { background: #d59b2f; }
.system-status-dialog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.status-card { border: 1px solid #e1e7eb; border-radius: 6px; padding: 14px; display: grid; gap: 8px; min-width: 0; }
.status-card span { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.status-card small { color: #75818a; line-height: 1.5; overflow-wrap: anywhere; }
.upload-task-list { display: grid; gap: 10px; }
.upload-task-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid #e1e7eb; background: #fff; border-radius: 6px; padding: 16px 18px; }
.upload-task-main { min-width: 0; flex: 1; }
.upload-task-main .section-heading { margin-bottom: 5px; }
.upload-order-summary { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 7px; color: #53666b; font-size: 13px; line-height: 1.45; }
.upload-order-summary span { overflow-wrap: anywhere; }
.upload-order-remark { margin: 5px 0 8px; padding: 7px 9px; border: 1px solid #f1b5aa; border-radius: 5px; color: #b42318; background: #fff4f1; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.after-sales-list { display: grid; gap: 12px; }
.after-sales-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; border: 1px solid #f0c9b5; border-left: 4px solid #d87540; border-radius: 6px; background: #fffaf7; padding: 16px 18px; }
.after-sales-main { min-width: 0; }
.after-sales-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.after-sales-title { font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.after-sales-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 8px; color: #627178; font-size: 13px; line-height: 1.5; }
.after-sales-reason { margin-top: 12px; padding: 9px 11px; border-radius: 5px; background: #fff0e9; color: #9f3c16; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.after-sales-actions { display: flex; align-items: center; gap: 8px; }
.after-sales-history { margin-top: 11px; color: #6d7a80; font-size: 12px; line-height: 1.5; }
.task-error { color: #c23b2b; font-size: 13px; overflow-wrap: anywhere; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid #e2e7eb; padding-top: 20px; margin-top: 26px; }
.page-title-row { display:flex; align-items:center; gap:10px; }
.page-title-row h1 { margin:0; }
.manual-waybill-page { max-width:1180px; }
.manual-waybill-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:28px; align-items:start; }
.manual-waybill-form { min-width:0; padding-top:2px; }
.manual-waybill-section-title { margin-bottom:16px; align-items:center; }
.manual-waybill-section-title h2, .manual-waybill-subheading { margin:0; font-size:18px; }
.required-mark { color:#d94b3d; }
.entry-mode .el-radio-button__inner { min-width:112px; }
.manual-smart-box { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:stretch; padding:14px; background:#f6faf9; border:1px solid #d9ebe7; border-radius:6px; }
.manual-smart-actions { display:flex; align-items:flex-end; gap:8px; flex-wrap:wrap; }
.manual-query-box { min-height:82px; padding:14px; background:#f6faf9; border:1px solid #d9ebe7; border-radius:6px; }
.manual-order-results { display:grid; gap:7px; margin-top:10px; }
.manual-order-results button { display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:8px; width:100%; padding:10px 12px; border:1px solid #dce8e5; border-radius:5px; background:#fff; color:#334; text-align:left; cursor:pointer; }
.manual-order-results button:hover { border-color:#4aaba5; background:#f0f8f6; }
.manual-order-results small { color:#6f7c83; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.manual-waybill-fields { margin-top:20px; }
.manual-region-inputs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; width:100%; }
.manual-waybill-divider { height:1px; background:#e2e8e7; margin:24px 0 20px; }
.manual-waybill-subheading { margin-bottom:18px; }
.manual-waybill-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:20px; margin-top:5px; border-top:1px solid #e2e8e7; color:#75818a; font-size:13px; }
.waybill-preview-panel { position:sticky; top:0; min-width:0; padding:18px; border:1px solid #e0e7e9; border-radius:7px; background:#fff; }
.waybill-preview-panel .section-heading { margin-bottom:14px; }
.waybill-preview-panel .section-heading h2 { margin:0; font-size:16px; }
.waybill-preview-panel .section-heading span { color:#7d898f; font-size:12px; }
.waybill-paper { width:248px; aspect-ratio:76 / 130; margin:0 auto; padding:14px 13px 12px; border:1px solid #b8c4c4; background:#fff; box-shadow:0 4px 14px rgba(26,57,55,.10); color:#171d1d; overflow:hidden; }
.waybill-paper-header { display:flex; align-items:baseline; justify-content:space-between; padding-bottom:8px; border-bottom:2px solid #222; font-size:13px; }
.waybill-paper-header small { font-size:8px; }
.waybill-paper-body { display:grid; gap:8px; padding-top:12px; font-size:10px; }
.waybill-field { display:grid; grid-template-columns:34px minmax(0,1fr); gap:6px; line-height:1.35; }
.waybill-field > span, .waybill-note > span { color:#5d6668; }
.waybill-field > strong, .waybill-note > strong { overflow-wrap:anywhere; }
.waybill-field.address { min-height:46px; }
.waybill-note { display:grid; gap:4px; min-height:68px; padding:7px; border:1px solid #202526; line-height:1.45; }
.waybill-paper-code { display:flex; align-items:stretch; justify-content:center; gap:2px; height:40px; margin-top:18px; padding:0 9px; }
.waybill-paper-code i { display:block; height:100%; background:#15191a; }
.waybill-preview-caption { margin:13px 2px 0; color:#718087; font-size:12px; line-height:1.55; }
.manual-records-section { margin-top:36px; padding-top:24px; border-top:1px solid #e1e7e7; }
.manual-records-section .section-heading { margin-bottom:16px; }
.manual-records-section h2 { margin:0 0 5px; font-size:18px; }
.manual-record-filter { width:250px; }
.table-subline { display:block; margin-top:3px; color:#78848a; font-size:12px; }
.manual-record-detail { display:grid; grid-template-columns:88px minmax(0,1fr); gap:14px 16px; margin:0; line-height:1.55; }
.manual-record-detail dt { color:#7c898f; }
.manual-record-detail dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.manual-record-error { color:#b42318; }
.manual-waybill-ems-preview { display:flex; flex-direction:column; align-items:center; gap:16px; margin-top:18px; padding:16px; background:#f2f4f7; }
.manual-waybill-ems-preview img { max-width:100%; max-height:48vh; width:auto; height:auto; object-fit:contain; }
.book-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
.detail-item { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 14px; padding: 15px 0; border-bottom: 1px solid #e7ecef; line-height: 1.7; }
.detail-item dt { color: #839098; }
.detail-item dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.board-column { min-width: 0; }
.board-heading { display: flex; justify-content: space-between; padding: 12px 0; margin-bottom: 12px; border-bottom: 2px solid #a7b2bb; }
.board-column:nth-child(2) .board-heading { border-color: #dcad55; }
.board-column:nth-child(3) .board-heading { border-color: #63bba9; }
.board-order { background: #fff; border: 1px solid #e2e7eb; border-radius: 6px; padding: 16px; margin-bottom: 12px; }
.board-order p { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.board-order .el-button { margin-top: 10px; }
.pen-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.pen-item { border: 1px solid #e1e7eb; border-radius: 6px; background: #fff; padding: 24px; min-width: 0; }
.pen-item > .el-icon { color: #087f78; margin-bottom: 20px; }
.pen-item:nth-child(2) > .el-icon { color: #b08a2c; }
.pen-item:nth-child(3) > .el-icon { color: #6686b4; }
.pen-item h2 { font-size: 19px; margin-bottom: 18px; }
.pen-item dl { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 16px 10px; font-size: 13px; }
.pen-item dt { color: #849099; }
.pen-item dd { margin: 0; overflow-wrap: anywhere; }
.filename { border-top: 1px solid #edf0f2; padding-top: 18px; margin-top: 20px; color: #087f78; overflow-wrap: anywhere; }
.preview-layout { display: grid; grid-template-columns: minmax(230px,300px) minmax(0,1fr); gap: 30px; }
.preview-config { border-right: 1px solid #e1e6ea; padding-right: 28px; }
.preview-config .el-form-item { margin-bottom: 22px; }
.preview-summary { margin: 16px 0; font-size: 13px; color: #64717a; }
.empty-loading { min-height: 200px; }
@media (max-width: 1100px) {
  .page-main { padding: 24px 20px; }
  .topbar { padding-inline: 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .board { gap: 12px; }
  .stat { padding: 20px 14px; }
  .pen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { width: 200px; }
  .page-main { padding: 18px 14px; }
  .topbar { height: auto; min-height: 64px; padding: 12px 14px; flex-wrap: wrap; }
  .local-label { display: none; }
  h1 { font-size: 21px; }
  .form-grid, .detail-grid, .board, .preview-layout, .manual-waybill-layout { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .preview-config { border-right: 0; padding-right: 0; }
  .smart-input { flex-direction: column; }
  .top-status-button, .upload-task-entry { display: none; }
  .system-status-dialog { grid-template-columns: 1fr; }
  .after-sales-item { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .after-sales-actions { justify-content: flex-end; }
  .pagination { justify-content: flex-start; overflow-x: auto; }
  .manual-waybill-layout { gap:24px; }
  .waybill-preview-panel { position:static; }
  .manual-smart-box { grid-template-columns:1fr; }
  .manual-region-inputs { grid-template-columns:1fr; }
  .manual-smart-actions { justify-content:flex-end; }
  .manual-records-section .section-heading { align-items:stretch; }
  .manual-record-filter { width:100%; }
}
