/* =====================================================================
   东嘉生物 ERP · 全站样式
   主题色：RAL 6016 绿松石绿 #295C3A（侧栏深墨绿渐变 + 内容区浅色长表格）
   约定：颜色一律走这里的 token，页面与扩展模块不要再写死十六进制。
   状态色与主题色分开——红色只用于报错/危险，不再兼作品牌色。
   ===================================================================== */
:root {
  /* 品牌色阶（RAL 6016 及其明暗派生） */
  --brand: #295c3a;
  --brand-700: #1d4230;
  --brand-900: #12301f;
  --brand-500: #35764c;
  --brand-300: #7fb595;
  --brand-100: #dcebe1;
  --brand-soft: #edf4ef;
  --brand-ink: #143223;
  --hi: #3ec593;              /* 提亮用的高明度绿松，只用于光条/高亮/图表 */

  /* 中性 */
  --bg: #f2f5f3;
  --bg-2: #e9eeeb;
  --panel: #ffffff;
  --ink: #17211c;
  --ink-2: #526158;
  --ink-3: #88968d;
  --line: #dfe6e1;
  --line-2: #cdd8d1;

  /* 侧栏（深色科技面） */
  --side-bg: #10231a;
  --side-bg-2: #0b1811;
  --side-ink: #c6d6cb;
  --side-ink-2: #8fa598;
  --side-hi: #ffffff;
  --side-line: rgba(255, 255, 255, .07);
  --side-hover: rgba(62, 197, 147, .1);
  --side-active: rgba(62, 197, 147, .16);

  /* 语义色 */
  --ok: #1f8a4c;
  --ok-soft: #e6f4ec;
  --warn: #a9701a;
  --warn-soft: #fbf1de;
  --info: #2c6fa8;
  --info-soft: #e8f1f8;
  --danger: #c0402f;
  --danger-ink: #93261a;
  --danger-soft: #fbeae7;

  --radius: 11px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 32, 24, .05), 0 8px 24px rgba(16, 32, 24, .06);
  --shadow-lg: 0 20px 48px rgba(12, 30, 20, .18);
  --glow: 0 0 0 1px rgba(62, 197, 147, .28), 0 6px 18px rgba(41, 92, 58, .22);
  --grad-brand: linear-gradient(135deg, var(--brand-900), var(--brand) 62%, var(--brand-500));
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(41, 92, 58, .07), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--info); text-decoration: none; }
.hide { display: none !important; }
.mono { font-family: var(--mono); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 1px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(41, 92, 58, .22); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(1000px 520px at 12% -12%, rgba(62, 197, 147, .22), transparent 58%),
    radial-gradient(760px 460px at 92% 108%, rgba(41, 92, 58, .28), transparent 60%),
    linear-gradient(160deg, #0d1f16, #12301f 58%, #16402a);
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: var(--shadow-lg);
  padding: 30px 26px 24px;
}
.login-card h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: .3px; }
.login-card p.sub { margin: 0 0 20px; color: var(--ink-3); font-size: 13px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea,
input[type=text], input[type=search], input[type=number], input[type=date], input[type=datetime-local],
input[type=password], input[type=file], select, textarea {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus,
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(41, 92, 58, .12);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; cursor: pointer; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .06s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--grad-brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(18, 48, 31, .25), 0 6px 16px rgba(41, 92, 58, .18);
}
.btn.primary:hover { border-color: var(--brand-500); box-shadow: var(--glow); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }
.hint { color: var(--ink-3); font-size: 12px; margin-top: 10px; line-height: 1.7; }

/* ---------------- 布局 ---------------- */
.shell { display: grid; grid-template-columns: 246px 1fr; min-height: 100vh; }
.side {
  background:
    radial-gradient(560px 240px at 0% 0%, rgba(62, 197, 147, .16), transparent 62%),
    linear-gradient(178deg, var(--side-bg), var(--side-bg-2) 58%, #0a150f);
  color: var(--side-ink);
  padding: 0 0 24px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid rgba(62, 197, 147, .14);
  z-index: 45;
}
.brand {
  padding: 18px 18px 14px; margin: 0 0 6px;
  font-weight: 650; color: #fff; font-size: 17px; letter-spacing: .4px;
  border-bottom: 1px solid var(--side-line);
  position: relative;
}
.brand::after {
  content: ""; position: absolute; left: 18px; bottom: -1px; width: 46px; height: 2px;
  background: linear-gradient(90deg, var(--hi), transparent);
  border-radius: 2px;
}
.brand small { display: block; font-weight: 400; color: var(--side-ink-2); font-size: 11.5px; margin-top: 3px; letter-spacing: .3px; }

.nav-search { padding: 10px 14px 8px; position: sticky; top: 0; background: linear-gradient(180deg, #0e2018, rgba(14, 32, 24, .92)); z-index: 2; }
.nav-search input {
  width: 100%; padding: 8px 11px; font-size: 13px;
  color: var(--side-hi); background: rgba(255, 255, 255, .06);
  border: 1px solid var(--side-line); border-radius: 9px; outline: none;
}
.nav-search input::placeholder { color: #7f938a; }
.nav-search input:focus { border-color: rgba(62, 197, 147, .5); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(62, 197, 147, .12); }

.nav-sec + .nav-sec { border-top: 1px solid var(--side-line); }
.nav-sec-h {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 13px 14px 11px; margin: 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: .2px;
  color: #e7f0ea;
  transition: color .14s ease, background .14s ease;
}
.nav-sec-h:hover, .nav-sec-h.open, .nav-sec-h.active { color: #fff; background: rgba(62, 197, 147, .06); }
.nav-sec-ic { width: 17px; height: 17px; flex: 0 0 17px; color: var(--brand-300); opacity: .95; }
.nav-sec-h:hover .nav-sec-ic, .nav-sec-h.open .nav-sec-ic, .nav-sec-h.active .nav-sec-ic { color: var(--hi); }
.nav-sec-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-sec-n {
  font-size: 11px; font-weight: 600; color: var(--side-ink-2);
  background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 1px 7px;
  font-variant-numeric: tabular-nums;
}
.nav-sec-h.active .nav-sec-n { color: #dff5ec; background: rgba(62, 197, 147, .2); }
.nav-caret { font-style: normal; font-size: 13px; color: #93a99c; transition: transform .16s ease; }
.nav-sec-b { display: none; padding-bottom: 8px; }
.nav-sec-b.open { display: block; animation: navIn .16s ease-out; }
@keyframes navIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav-sub {
  padding: 9px 16px 4px 40px; font-size: 11px; letter-spacing: .5px;
  color: #7f938a;
}
.nav-grp + .nav-grp .nav-sub { border-top: 1px dashed var(--side-line); margin-top: 6px; padding-top: 12px; }
.nav-item {
  display: block; padding: 8px 14px 8px 40px; margin: 1px 8px;
  color: #ccdacf; font-size: 14px; cursor: pointer; text-decoration: none;
  border-radius: 8px; border-left: 2px solid transparent;
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: var(--side-hover); color: #fff; }
.nav-item.active {
  background: var(--side-active); color: #fff; font-weight: 600;
  border-left-color: var(--hi); box-shadow: inset 0 0 0 1px rgba(62, 197, 147, .12);
}

.main { min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 rgba(41, 92, 58, .04);
}
.topbar .title { font-weight: 650; font-size: 16px; letter-spacing: .2px; }
.topbar .who { margin-left: auto; color: var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(41, 92, 58, .28);
}
.avatar-wrap {
  position: relative;
  display: inline-block;
}
.avatar-wrap:hover .avatar-upload-hint {
  opacity: 1;
}
.content { padding: 18px 20px 40px; }

/* ---------------- 卡片 / 面板 ---------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-brand); opacity: 0; transition: opacity .16s ease;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--brand-300); box-shadow: 0 2px 4px rgba(16, 32, 24, .05), 0 12px 28px rgba(41, 92, 58, .1); transform: translateY(-1px); }
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--hi), var(--brand-300) 45%, transparent);
  opacity: .3; transition: opacity .14s ease;
}
.card:hover::before { opacity: 1; }
.card .k { color: var(--ink-2); font-size: 12px; }
.card .v { font-size: 24px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.2px; color: var(--brand-ink); }
.card .v small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.card.accent { border-color: var(--brand-300); }
.card.accent::before {
  left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; opacity: 1;
  background: linear-gradient(180deg, var(--hi), var(--brand));
}
.card.accent .v { color: var(--brand); }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: 14px; overflow: hidden;
  transition: box-shadow .16s ease;
}
.panel:hover { box-shadow: var(--shadow-lg); }
.panel-h {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdfc, #f5f9f6);
  position: relative;
}
.panel-h::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-brand); opacity: 0; transition: opacity .16s ease;
}
.panel:hover .panel-h::before { opacity: 1; }
.panel-h h3 { margin: 0; font-size: 15.5px; font-weight: 650; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.panel-h h3 small { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.panel-h h3::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--hi), var(--brand)); }
.panel-h .sp { flex: 1; }
.panel-b { padding: 14px 16px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid th {
  background: linear-gradient(180deg, #f4f8f5, #eef3f0); color: var(--ink-2); font-weight: 600; position: sticky; top: 0;
  letter-spacing: .2px;
  border-bottom: 2px solid var(--brand-300);
}
table.grid tbody tr:nth-child(even) { background: #fafcfb; }
table.grid tr:hover td { background: var(--brand-soft); }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid tbody tr { transition: background .12s ease; }

/* 排产中心：待确认行内展开的「料 / 工期 / 档期」结论 */
tr.dec-tr { cursor: pointer; }
tr.dec-tr .dec-caret { display: inline-block; color: var(--ink-3); transition: transform .12s ease; }
tr.dec-tr.open .dec-caret { transform: rotate(90deg); color: var(--brand); }
tr.dec-detail > td { background: var(--brand-soft); white-space: normal; padding: 12px 14px; }
.dec-t { font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.dec-box { display: flex; flex-wrap: wrap; gap: 14px; }
.dec-box > div { min-width: 190px; flex: 1 1 190px; }
/* 就地展开的「工艺版本 + 完整物料表」：一款产品一张卡，卡里直接铺物料明细 */
.dec-item { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px 12px; }
.dec-item + .dec-item { margin-top: 8px; }
.dec-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.dec-head > div { min-width: 100px; }
.dec-head > div:last-child { flex: 1 1 280px; min-width: 280px; }
.dec-item table.grid { border-color: var(--line); }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }

.toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1; min-width: 160px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 16px; color: var(--ink-3); font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------------- 徽标 ---------------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--info-soft); color: var(--info); font-weight: 500; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.gray { background: #eef1ef; color: var(--ink-2); }

/* ---------------- 弹窗 / 抽屉 ---------------- */
.mask, .modal-overlay {
  position: fixed; inset: 0; background: rgba(12, 26, 18, .46); backdrop-filter: blur(2px);
  z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; width: min(760px, 100%); max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.modal-h {
  padding: 14px 18px; display: flex; align-items: center; gap: 10px; position: relative;
  border-bottom: 1px solid var(--brand-100);
  background: linear-gradient(180deg, var(--brand-soft), #fff);
  border-radius: 16px 16px 0 0;
}
/* 左侧品牌色条：弹窗和侧栏一眼是同一套系统 */
.modal-h::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); border-radius: 16px 0 0 0; }
.modal-h h3, .modal-h h4 { margin: 0; font-size: 15px; font-weight: 650; color: var(--brand-ink); }
.modal-h .x { margin-left: auto; cursor: pointer; color: var(--ink-3); font-size: 20px; line-height: 1; }
.modal-sub { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.modal-b { padding: 16px 18px; overflow-y: auto; }
.modal-f {
  padding: 12px 18px; display: flex; gap: 8px; justify-content: flex-end; align-items: center;
  border-top: 1px solid var(--brand-100); background: var(--brand-soft); border-radius: 0 0 16px 16px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { margin: 0; }
.ro { background: #f4f6f5 !important; color: var(--ink-2); }

/* ---------------- 弹窗内的分组、候选下拉、附件上传 ---------------- */
.cf-sec { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--brand); }
.cf-sec:first-child { margin-top: 0; }
.cf-sec::after { content: ''; flex: 1; height: 1px; background: var(--brand-100); }
.cf-tag { font-weight: 600; font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; background: #fff; }
.cf-tag.need { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.cf-tag.done { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.req { color: var(--danger); font-style: normal; margin-left: 2px; }
.muted { color: var(--ink-3); }
a.link, button.link {
  font: inherit; color: var(--brand-500); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
a.link:hover, button.link:hover { color: var(--brand-ink); }
.btn.xs { padding: 3px 8px; font-size: 12px; }

.pick { position: relative; }
.pick-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; display: none;
  max-height: 220px; overflow-y: auto; padding: 4px; background: #fff;
  border: 1px solid var(--brand-100); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.pick-list.open { display: block; }
.pick-list button {
  display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none;
  border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink);
}
.pick-list button:hover { background: var(--brand-soft); color: var(--brand-ink); }
.pick-empty { padding: 8px 10px; font-size: 12px; color: var(--ink-3); }
.pick-hint { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.ck-late { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ck-late input { width: auto; padding: 0; }

.up-zone {
  border: 1.5px dashed var(--brand-300); border-radius: var(--radius); background: var(--brand-soft);
  padding: 16px; cursor: pointer; transition: border-color .14s ease, background .14s ease;
}
.up-zone:hover, .up-zone.over { border-color: var(--brand-500); background: #e4efe8; }
.up-main { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--brand-ink); }
.up-main svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--brand); }
.up-tip { margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.up-file {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px;
  border: 1px solid var(--brand-100); border-radius: var(--radius-sm); background: #fff; font-size: 13px;
}
.up-ic {
  flex: none; width: 26px; height: 26px; border-radius: 6px; background: var(--brand-100);
  color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.up-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.up-size { color: var(--ink-3); font-size: 12px; }
.up-view { margin-left: auto; color: var(--brand-500); white-space: nowrap; }

.cf-note { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--brand-100); border-radius: var(--radius-sm); background: var(--brand-soft); }
.cf-sum { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.cf-sum b { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.cf-sub { margin-top: 6px; font-size: 12px; color: var(--ink-2); }

/* ---------------- 主子表明细行（建单/编辑） ---------------- */
.modal.wide { width: min(1000px, 100%); }
.lines-wrap { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.lines-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.lines-h .sp { margin-left: auto; }
.lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.lines th, .lines td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.lines th { background: #f4f8f5; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.lines input, .lines select { width: 100%; padding: 6px 8px; font-size: 13px; }
.lines td.sub { color: var(--brand-ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.lines td.ref { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.lines .ln-ver { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.lines .ln-ver.warn { color: var(--warn); }
.lines .ln-del { border: 0; background: none; color: var(--ink-3); font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.lines .ln-del:hover { color: var(--danger); background: var(--danger-soft); }
.lines .line-sum { display: flex; gap: 16px; justify-content: flex-end; align-items: baseline; padding: 10px 8px 0; font-size: 13px; color: var(--ink-2); }
.lines .line-sum b { color: var(--brand); font-variant-numeric: tabular-nums; }
.lines .line-sum .hint { margin-right: auto; font-size: 12px; color: var(--ink-3); }

/* ---------------- 追溯 / 流程 ---------------- */
.trace-line { position: relative; padding-left: 22px; }
.trace-line::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--brand-300), var(--line)); }
.trace-node { position: relative; padding: 0 0 18px 0; }
.trace-node::before {
  content: ""; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
}
.trace-node h4 { margin: 0 0 4px; font-size: 13px; }
.trace-node .meta { color: var(--ink-3); font-size: 12px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; font-size: 13px; }
.kv .k { color: var(--ink-3); }

/* ---------------- 数据表总览 ---------------- */
.tbl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 8px; }
.tbl-cell {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfdfc;
  color: var(--ink); transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.tbl-cell:hover { border-color: var(--brand-300); background: var(--brand-soft); box-shadow: var(--glow); }
.tbl-cell b { font-size: 13px; font-weight: 600; }
.tbl-cell small { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }

/* ---------------- 移动端 ---------------- */
.mnav-btn { display: none; }
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: 0 auto 0 0; width: 262px; z-index: 70;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .side.open { transform: none; box-shadow: 8px 0 32px rgba(0, 0, 0, .32); }
  .mnav-btn { display: inline-flex; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .content { padding: 14px 12px 32px; }
  .topbar { padding: 10px 12px; }
  .topbar .who span.name { display: none; }
  table.grid th, table.grid td { padding: 9px 10px; }
  .mask { padding: 0; align-items: flex-end; }
  .modal { border-radius: 16px 16px 0 0; max-height: 92vh; }
}

/* ---------------- 排产看板 ---------------- */
.gantt { min-width: 820px; padding: 10px 12px; }
.gantt-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: center;
  padding: 3px 0; border-bottom: 1px solid transparent;
}
.gantt-row.head { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.gantt-row.head .gantt-label { font-size: 12px; color: var(--ink-3); }
.gantt-label { font-size: 13px; overflow: hidden; }
.gantt-track { display: grid; gap: 2px; }
.gantt-day { text-align: center; font-size: 11px; color: var(--ink-3); }
.gantt-bar {
  height: 26px; border-radius: 6px; color: #fff; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  white-space: nowrap; opacity: .94;
}
.gantt-bar:hover { opacity: 1; box-shadow: var(--glow); }
.gantt-bar.late { box-shadow: 0 0 0 2px var(--warn) inset; }

/* ---------------- 移动端细节：首列冻结 + 加大点击区 ---------------- */
@media (max-width: 880px) {
  table.grid thead th:first-child,
  table.grid tbody td:first-child {
    position: sticky; left: 0; z-index: 1;
    background: #fff; box-shadow: 1px 0 0 var(--line);
  }
  table.grid thead th:first-child { background: #f4f8f5; }
  .btn.sm { min-height: 34px; padding: 6px 12px; }
  .modal-f { flex-wrap: wrap; }
  .modal-f .btn { flex: 1 1 auto; min-height: 40px; }
  .toolbar input[type=search] { min-width: 0; }
  .pager { padding-bottom: 18px; }
}

/* 打印：只留单据主体 */
@media print {
  .side, .top, .panel-h, .mask, .toast, .btn { display: none !important; }
  body { background: #fff !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  #printSheet { box-shadow: none !important; border: 0 !important; max-width: none !important; }
}

/* ---------------- 车间模式 ----------------
   车间平板戴手套点、老师傅老花眼看，标准字号偏小。
   一键放大字号/按钮/表格行高，不动业务逻辑。 */
#wsToggle { font-size: 13px; }
#wsToggle.on { background: var(--ok-soft); border-color: var(--brand-300); color: var(--ok); font-weight: 600; }

body.shop { font-size: 16.5px; }
body.shop .nav-item { padding: 12px 14px 12px 42px; font-size: 15.5px; }
body.shop .nav-sec-h { font-size: 16.5px; padding: 15px 14px 12px; }
body.shop .nav-sub { font-size: 12.5px; }
body.shop .topbar { min-height: 58px; }
body.shop .topbar .title { font-size: 19px; }
body.shop .btn { padding: 12px 20px; font-size: 16px; border-radius: 10px; }
body.shop .btn.sm { padding: 9px 14px; font-size: 15px; }
body.shop .input, body.shop select, body.shop textarea,
body.shop input[type=text], body.shop input[type=search], body.shop input[type=number],
body.shop input[type=date], body.shop input[type=password] { padding: 12px 14px; font-size: 16px; }
body.shop table.grid { font-size: 15px; }
body.shop table.grid th, body.shop table.grid td { padding: 14px 12px; }
body.shop .panel-h h3 { font-size: 18px; }
body.shop .badge { font-size: 13px; padding: 3px 9px; }
body.shop .panel { border-radius: 12px; }
body.shop .login-card { max-width: 440px; }
body.shop .login-card h1 { font-size: 24px; }
body.shop .nav-search { padding: 12px 14px 10px; }
body.shop .nav-search input { padding: 11px 12px; font-size: 15px; }

/* ---------------- 单据中心：左类型 + 右列表 ---------------- */
.doc-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.doc-rail { border-right: 1px solid var(--line); padding-right: 12px; }
.doc-rail-h { font-size: 12px; color: var(--ink-3); margin: 0 0 8px 12px; letter-spacing: .4px; }
.doc-main { min-width: 0; }
.doc-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.doc-filters select, .doc-filters input { min-height: 36px; }
.doc-filters .doc-kw { min-width: 180px; flex: 1; }
.doc-dash { color: var(--ink-3); font-size: 12px; }
.doc-count { font-size: 12px; color: var(--ink-3); }
.doc-table { max-height: 62vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-table table.grid { border: 0; }
.doc-table thead th { position: sticky; top: 0; background: #f4f8f5; z-index: 2; }
.doc-table tbody tr:hover { background: var(--brand-soft); }
.doc-empty { text-align: center; color: var(--ink-3); padding: 26px 0; }
.doc-table .num, .doc-table td.num { font-variant-numeric: tabular-nums; text-align: right; }

@media (max-width: 900px) {
  .doc-wrap { grid-template-columns: 1fr; }
  .doc-rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .doc-rail .doc-rail-h { margin-left: 0; }
}
/* 窄屏单据表：收掉次要列，避免横向滚动 */
@media (max-width: 1100px) {
  .doc-table th:nth-child(5), .doc-table td:nth-child(5) { display: none; }
}
@media (max-width: 820px) {
  .doc-table th:nth-child(4), .doc-table td:nth-child(4) { display: none; }
}

/* =====================================================================
   首页 · 经营指挥中心
   ===================================================================== */
.dash-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr);
  gap: 18px; padding: 26px 28px; margin-bottom: 16px;
  border-radius: 18px; color: #eaf6ef;
  background:
    radial-gradient(900px 380px at 82% -20%, rgba(62, 197, 147, .38), transparent 62%),
    radial-gradient(620px 340px at -8% 120%, rgba(62, 197, 147, .16), transparent 62%),
    linear-gradient(135deg, #0b1d14, #123123 52%, #1a4a30);
  box-shadow: 0 22px 48px rgba(10, 28, 18, .28);
  animation: dashRise .55s cubic-bezier(.2, .7, .2, 1) both;
}
.dash-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(127, 181, 149, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 181, 149, .09) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(760px 360px at 72% 18%, #000 28%, transparent 76%);
  mask-image: radial-gradient(760px 360px at 72% 18%, #000 28%, transparent 76%);
  animation: dashGrid 20s linear infinite;
}
.dash-hero::after {
  content: ""; position: absolute; z-index: -1; width: 400px; height: 400px;
  right: -110px; top: -150px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 18%, rgba(62, 197, 147, .5) 30%, transparent 46% 100%);
  filter: blur(30px); opacity: .55; animation: dashSpin 18s linear infinite;
}
.dash-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .18em;
  color: #a9d9bf; text-transform: uppercase;
}
.dash-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hi);
  box-shadow: 0 0 0 0 rgba(62, 197, 147, .6); animation: dashPulse 2s ease-out infinite;
}
.dash-hero-title { margin: 10px 0 6px; font-size: 30px; line-height: 1.2; letter-spacing: .4px; color: #fff; font-weight: 700; }
.dash-hero-title em { font-style: normal; color: var(--hi); text-shadow: 0 0 26px rgba(62, 197, 147, .45); }
.dash-hero-meta { color: #b9d5c5; font-size: 12.5px; line-height: 1.9; }
.dash-hero-meta b { color: #e5f5ec; font-weight: 500; }
.dash-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.dash-hero-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
  border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07); color: #e9f7ef; font-size: 12.5px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.dash-hero-btn:hover { background: rgba(62, 197, 147, .18); border-color: rgba(62, 197, 147, .55); color: #fff; transform: translateY(-1px); }
.dash-hero-btn.primary {
  background: linear-gradient(135deg, var(--hi), #2ba878); border-color: transparent; color: #062216; font-weight: 650;
  box-shadow: 0 8px 24px rgba(62, 197, 147, .3);
}
.dash-hero-btn.primary:hover { box-shadow: 0 10px 30px rgba(62, 197, 147, .45); }
.dash-hero-btn:active { transform: translateY(1px); }
.dash-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dash-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  color: #d8ecdf; font-size: 12px; backdrop-filter: blur(6px);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
a.dash-chip:hover { background: rgba(62, 197, 147, .18); border-color: rgba(62, 197, 147, .5); color: #fff; }
.dash-chip b { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
.dash-hero-side {
  position: relative; display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; gap: 12px; text-align: right;
}
.dash-when b { display: block; font-size: 24px; font-weight: 650; letter-spacing: .6px; color: #fff; font-variant-numeric: tabular-nums; }
.dash-when span { font-size: 12px; color: #a9cbb8; }
.dash-orbit { position: relative; width: 124px; height: 124px; display: grid; place-items: center; }
.dash-orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(62, 197, 147, .35); }
.dash-orbit-ring.r1 { inset: 0; animation: dashPulse 3.2s ease-out infinite; }
.dash-orbit-ring.r2 { inset: 12px; border-color: rgba(255, 255, 255, .16); animation: dashSpin 22s linear infinite; border-style: dashed; }
.dash-orbit .avatar-wrap { position: relative; z-index: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.dash-orbit img, .dash-orbit .avatar-wrap > div { border: 2px solid rgba(62, 197, 147, .55) !important; }
.dash-weather { font-size: 11.5px; color: #b9d5c5; display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.dash-weather b { color: #fff; font-size: 15px; }
.dash-online { width: 6px; height: 6px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 10px var(--hi); }

.dash-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dash-kpi {
  --tone: var(--brand-500); --tone-soft: var(--brand-soft);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px;
  padding: 14px 15px 12px; border-radius: 14px; color: inherit; text-decoration: none;
  background: linear-gradient(165deg, #fff, #f8fbf9);
  border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(16, 32, 24, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: dashRise .5s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms + 80ms);
}
.dash-kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--tone), transparent); opacity: .75;
}
.dash-kpi::after {
  content: ""; position: absolute; width: 130px; height: 130px; right: -46px; top: -54px; border-radius: 50%;
  background: radial-gradient(circle, var(--tone-soft), transparent 68%); opacity: 0; transition: opacity .2s ease;
}
.dash-kpi:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: 0 16px 32px rgba(20, 50, 35, .12); }
.dash-kpi:hover::after { opacity: 1; }
.dash-kpi[data-tone="info"] { --tone: var(--info); --tone-soft: var(--info-soft); }
.dash-kpi[data-tone="warn"] { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.dash-kpi[data-tone="danger"] { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.dash-kpi-top { display: flex; align-items: center; justify-content: space-between; }
.dash-kpi-ico {
  width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center;
  color: var(--tone); background: var(--tone-soft); border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
}
.dash-kpi-ico svg { width: 17px; height: 17px; }
.dash-kpi-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.dash-kpi.alert .dash-kpi-pulse { background: var(--tone); box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 45%, transparent); animation: dashPulse 2.2s ease-out infinite; }
.dash-kpi-label { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); }
.dash-kpi-v { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.4px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.dash-kpi-v.money { font-size: 20px; letter-spacing: -.2px; }
.dash-kpi.alert .dash-kpi-v { color: var(--tone); }
.dash-kpi-foot { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.dash-kpi-foot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tone); opacity: .8; }

.dash-grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); gap: 14px; margin-bottom: 14px; }
.dash-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dash-panel { margin: 0 !important; }
.dash-panel .panel-h { padding: 13px 17px; }
.dash-chart-sum { display: flex; gap: 20px; text-align: right; }
.dash-chart-sum b { display: block; font-size: 16px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.dash-chart-sum span { font-size: 10.5px; color: var(--ink-3); }
.dash-chart-body { padding: 10px 14px 12px; }
.dash-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dash-grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.dash-axis { fill: var(--ink-3); font-size: 10px; }
.dash-bar { transform-box: fill-box; transform-origin: center bottom; animation: dashBar .75s cubic-bezier(.2, .7, .2, 1) both; }
.dash-amount-line {
  fill: none; stroke: var(--brand-300); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(41, 92, 58, .18));
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: dashDraw 1.3s .25s ease both;
}
.dash-amount-area { opacity: 0; animation: dashFade .9s .35s ease both; }
.dash-legend { display: flex; gap: 16px; padding: 6px 4px 0; font-size: 11px; color: var(--ink-3); }
.dash-legend i { display: inline-block; width: 10px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dash-legend i.bar { background: linear-gradient(180deg, var(--hi), var(--brand-500)); }
.dash-legend i.line { height: 3px; border-radius: 2px; background: var(--brand-300); vertical-align: 2px; }
.dash-chart-empty { text-align: center; color: var(--ink-3); font-size: 12px; padding: 6px 0 0; }

.dash-goals { display: flex; flex-direction: column; }
.dash-goal { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.dash-goal:last-child { border-bottom: 0; padding-bottom: 2px; }
.dash-goal-ring {
  --p: 0; width: 52px; height: 52px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--hi) calc(var(--p) * 1%), var(--brand-100) 0);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(41, 92, 58, .06);
}
.dash-goal-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.dash-goal-ring span { position: relative; font-size: 12px; font-weight: 700; color: var(--brand-700); }
.dash-goal-main { min-width: 0; flex: 1; }
.dash-goal-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.dash-goal-meta { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.dash-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.dash-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.dash-row-main { flex: 1; min-width: 0; }
.dash-row-main b { font-weight: 600; }
.dash-row-sub { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.dash-num { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dash-ann { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.dash-ann:last-child { border-bottom: 0; }
.dash-ann b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.dash-ann span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.dash-ann.urgent b { color: var(--danger); }

.dash-dock { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.dash-dock-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: #fbfdfc; color: var(--ink); font-size: 12.5px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.dash-dock-item:hover { border-color: var(--brand-300); background: var(--brand-soft); transform: translateY(-1px); box-shadow: var(--glow); }
.dash-dock-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.dash-dock-ico svg { width: 14px; height: 14px; }

@keyframes dashRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes dashPulse { 0% { box-shadow: 0 0 0 0 rgba(62, 197, 147, .45); } 70% { box-shadow: 0 0 0 9px rgba(62, 197, 147, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 197, 147, 0); } }
@keyframes dashSpin { to { transform: rotate(360deg); } }
@keyframes dashGrid { to { background-position: 44px 44px, 44px 44px; } }
@keyframes dashBar { from { transform: scaleY(.02); opacity: .25; } to { transform: scaleY(1); opacity: 1; } }
@keyframes dashDraw { to { stroke-dashoffset: 0; } }
@keyframes dashFade { to { opacity: 1; } }

@media (max-width: 1400px) { .dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1180px) {
  .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .dash-hero { grid-template-columns: 1fr; padding: 20px; border-radius: 14px; }
  .dash-hero-title { font-size: 24px; }
  .dash-hero-side { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; text-align: left; }
  .dash-orbit { width: 92px; height: 92px; }
  .dash-weather { justify-content: flex-start; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .dash-chart-sum { gap: 12px; }
}
@media (max-width: 520px) {
  .dash-kpi-v { font-size: 22px; }
  .dash-kpi-v.money { font-size: 17px; }
  .dash-hero-stats { gap: 6px; }
  .dash-chip { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-hero, .dash-hero::before, .dash-hero::after, .dash-kpi, .dash-bar, .dash-amount-line,
  .dash-amount-area, .dash-orbit-ring, .dash-live, .dash-kpi-pulse { animation: none !important; }
}
