/* Hallmark · v2.0.0 · genre: modern-minimal · shape: app screen · checked: 2026-11-18 */
/* 工作入口、作业身份和办理状态需要在首屏看清。 */
:root {
  --font-ui: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --canvas: #edf2f7;
  --surface: #ffffff;
  --surface-tint: #f3f7fb;
  --sidebar: #f8fafd;
  --line: #dce5ef;
  --control-line: #a9bbce;
  --ink: #172c45;
  --muted: #4f627a;
  --blue: #185a9d;
  --blue-hover: #104780;
  --blue-soft: #e6f0fb;
  --focus: #2172ba;
  --nav-ink: #f2f8ff;
  --nav-muted: #c4d6ea;
  --nav-bg: #173b61;
  --nav-edge: #62829f;
  --success-ink: #176047;
  --success-bg: #e6f4ee;
  --warning-ink: #86500d;
  --warning-bg: #fff2dc;
  --danger-ink: #a02b3f;
  --danger-bg: #fbeaf0;
  --dash-bg: #10233a;
  --dash-surface: #172d48;
  --dash-line: #33506d;
  --dash-ink: #eef5ff;
  --dash-muted: #bed3ea;
  --dash-mint: #6ae3b7;
  --dash-amber: #ffd28b;
  --dash-rose: #ffa4ad;
  --radius-panel: 12px;
  --radius-control: 7px;
  --ui-step: 24px;
  --max-work: 1440px;
  --el-color-primary: var(--blue);
  --el-color-primary-light-3: #3778b4;
  --el-color-primary-light-5: #699ac8;
  --el-color-primary-light-7: #a9c7e5;
  --el-color-primary-light-8: #c7dcf0;
  --el-color-primary-light-9: var(--blue-soft);
  --el-color-primary-dark-2: var(--blue-hover);
  --el-text-color-primary: var(--ink);
  --el-text-color-regular: var(--muted);
  --el-border-color: var(--control-line);
  --el-border-radius-base: var(--radius-control);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow-x: clip; font-family: var(--font-ui); background: var(--canvas); color: var(--ink); }
body { font-size: 14px; line-height: 1.5; }
::selection { background: var(--blue-soft); color: var(--ink); }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
h1, h2 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
#app { height: 100%; }

.layout { display: flex; flex-direction: column; height: 100%; }
.topbar { min-height: 60px; background: var(--nav-bg); color: var(--nav-ink); display: flex; align-items: center; padding: 8px var(--ui-step); gap: 12px; flex-shrink: 0; }
.topbar .brand { font-size: 18px; font-weight: 700; min-width: 0; }
.topbar .brand small { font-size: 12px; font-weight: 400; color: var(--nav-muted); margin-left: 12px; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 13px; color: var(--nav-muted); }
.topbar .el-button { height: 32px; }
.topbar .el-button + .el-button { margin-left: 0; }
.topbar .demo-autoplay { background: transparent; color: var(--nav-ink); border-color: var(--nav-edge); }
.topbar .demo-autoplay:hover:not(:disabled) { background: var(--blue); color: var(--nav-ink); }
.topbar :focus-visible { outline-color: var(--nav-ink); }
.body { flex: 1; display: flex; min-height: 0; }
.side { width: 196px; background: var(--sidebar); border-right: 1px solid var(--line); flex-shrink: 0; }
.side .el-menu { padding: 16px 12px; border-right: 0; background: transparent; }
.side .el-menu-item { height: 44px; line-height: 44px; padding: 0 12px; margin-bottom: 4px; color: var(--muted); border-radius: var(--radius-control); }
.side .el-menu-item:hover { background: var(--surface-tint); color: var(--ink); }
.side .el-menu-item.is-active { background: var(--blue-soft); color: var(--blue-hover); font-weight: 700; }
.menu-count { margin-left: auto; background: var(--blue-soft); color: var(--blue-hover); border-radius: 12px; font-size: 12px; line-height: 20px; min-width: 20px; padding: 0 6px; text-align: center; }
.side .is-active .menu-count { background: var(--surface); }
.main { --main-gutter-y: var(--ui-step); flex: 1; overflow: auto; padding: var(--main-gutter-y) 28px; }
.main > :where(div, section) { max-width: var(--max-work); margin-inline: auto; min-width: 0; }

.page-title { font-size: 25px; line-height: 1.3; font-weight: 700; margin: 0 0 16px; }
.screen-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.screen-head .page-title { margin: 0; }
.screen-meta { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.screen-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.screen-actions .el-button { margin: 0; min-height: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 20px; margin-bottom: 16px; min-width: 0; }
.card h3 { margin: 0 0 12px; font-size: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 16px 20px; min-width: 0; }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 25px; line-height: 1.3; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .value.warn { color: var(--warning-ink); }
.stat .value.blue { color: var(--blue); }
.workbench-stats { gap: 0; padding-block: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.workbench-stats .stat { padding-block: 6px; border: 0; border-radius: 0; }
.workbench-stats .stat + .stat { border-inline-start: 1px solid var(--line); }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(264px, .38fr); align-items: start; gap: 16px; }
.task-empty { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 56px; padding: 8px 12px; background: var(--surface-tint); border-radius: var(--radius-control); }
.task-empty p { margin: 0; color: var(--muted); }
.recent-jobs { margin-top: 20px; }
.recent-job { display: grid; width: 100%; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--ink); background: var(--surface); font: inherit; cursor: pointer; }
.recent-job:hover { background: var(--surface-tint); }
.recent-job small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.recent-ref { justify-self: end; text-align: end; font-size: 13px; color: var(--blue-hover); font-variant-numeric: tabular-nums; }
.pipeline { margin: 0; padding: 0; list-style: none; }
.pipe { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.pipe .n { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--blue-hover); }
.pipe .t { font-size: 14px; }
.pipe small { color: var(--muted); font-size: 12px; }

.main .el-table {
  --el-table-border-color: var(--line);
  --el-table-header-text-color: var(--muted);
  --el-table-header-bg-color: var(--surface-tint);
  --el-table-row-hover-bg-color: var(--blue-soft);
  --el-table-text-color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.main .el-table :is(td, th).el-table__cell { padding-block: 10px; }
.order-ref.el-button { height: auto; min-height: 28px; font-variant-numeric: tabular-nums; font-weight: 650; }

.notice { background: #fdf6ec; color: #b88230; border: 1px solid #faecd8; border-radius: 4px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; }

.bars { display: flex; align-items: flex-end; gap: 18px; height: 200px; padding: 10px 0 0; border-bottom: 1px solid #dcdfe6; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar .fill { width: 60%; background: #2f6fbf; border-radius: 3px 3px 0 0; }
.bar .fill.cur { background: #3a8c4f; }
.bar .v { font-size: 12px; color: #606266; margin-bottom: 4px; }
.bar-labels { display: flex; gap: 18px; }
.bar-labels span { flex: 1; text-align: center; font-size: 12px; color: #909399; padding-top: 6px; }

.hbar { display: flex; align-items: center; margin: 8px 0; font-size: 13px; }
.hbar .name { width: 70px; color: #606266; }
.hbar .track { flex: 1; background: #f0f2f5; height: 16px; border-radius: 8px; overflow: hidden; }
.hbar .track div { height: 100%; background: #2f6fbf; }
.hbar .num { width: 50px; text-align: right; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; font-size: 13px; margin-bottom: 16px; }
.detail-grid .k { color: #909399; }
.action-box { background: #f4f8fd; border: 1px solid #d9e6f7; border-radius: 6px; padding: 14px; margin: 16px 0; }
.action-box .title { font-weight: bold; margin-bottom: 10px; color: #1f4e8c; }

/* ---------- 登录页 ---------- */
.login { height: 100%; display: flex; align-items: center; justify-content: center; gap: 80px; position: relative;
  background: linear-gradient(135deg, #10305f 0%, #1f4e8c 55%, #2f6fbf 100%); color: #fff; }
.login-left { max-width: 480px; }
.ll-title { font-size: 34px; font-weight: bold; letter-spacing: 2px; }
.ll-sub { margin-top: 12px; font-size: 15px; opacity: .85; }
.ll-points { margin-top: 36px; padding-left: 20px; line-height: 2.2; font-size: 15px; opacity: .92; }
.login-box { width: 380px; background: #fff; color: #303133; border-radius: 10px; padding: 36px 34px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.lb-title { font-size: 20px; font-weight: bold; margin-bottom: 24px; }
.login-foot { position: absolute; bottom: 18px; font-size: 12px; opacity: .6; }

/* ---------- 顶栏铃铛、待办弹层 ---------- */
.bell { position: relative; cursor: pointer; padding: 8px; display: flex; color: var(--nav-ink); background: transparent; border: 0; border-radius: var(--radius-control); }
.bell:hover { background: var(--blue); }
.bell-n { position: absolute; top: 0; right: -4px; background: var(--blue-soft); color: var(--blue-hover); font-size: 11px; border-radius: 9px; min-width: 16px; line-height: 16px; text-align: center; padding: 0 4px; }
.pop-title { font-weight: bold; margin-bottom: 8px; }
.pop-item { width: 100%; display: grid; text-align: left; padding: 8px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; }
.pop-item:hover { background: var(--surface-tint); }

/* ---------- 抽屉 ---------- */
.drawer-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.drawer-bar .spacer { flex: 1; }

/* ---------- 流程图 ---------- */
.flow { font-size: 12px; }
.flow-legend { color: #909399; margin-bottom: 10px; }
.flow-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.lg.done { background: #e1f3d8; border: 1px solid #67c23a; }
.lg.cur { background: #fdf0e0; border: 2px solid #f39c12; }
.lg.todo { background: #fff; border: 1px solid #c0c4cc; }
.lg.skip { background: #f4f4f5; border: 1px dashed #c0c4cc; }
.flow-row { display: flex; align-items: stretch; gap: 10px; background: #f8fafc; border: 1px solid #e4ebf5; border-radius: 8px; padding: 8px; }
.flow-stage { width: 64px; flex-shrink: 0; border-radius: 6px; color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.5; }
.flow-stage.s1, .flow-stage.s2, .flow-stage.s5 { background: #1f5fae; }
.flow-stage.s3, .flow-stage.s4 { background: #2e7d43; }
.flow-body { flex: 1; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.flow-down { text-align: center; color: #1f5fae; font-size: 12px; margin: 3px 0; }
.arrow { color: #8aa4c8; font-size: 16px; padding: 0 2px; }
.branch { display: flex; flex-direction: column; gap: 6px; }
.lane { display: flex; align-items: center; gap: 4px; }
.fnode { position: relative; width: 150px; background: var(--surface); border: 1px solid var(--control-line); border-radius: 6px; padding: 6px 8px; }
.fnode.wide { width: auto; flex: 1; }
.fnode .ft { font-weight: bold; color: #1f4e8c; font-size: 13px; }
.fnode .fs { color: #909399; margin: 2px 0; }
.fnode .fw { color: #606266; }
.fnode .ck { color: #67c23a; margin-left: 4px; }
.fnode .tm { color: #e6a23c; margin-left: 4px; font-weight: normal; font-size: 11px; }
.fnode.done { background: #f0f9eb; border-color: #67c23a; }
.fnode.cur { background: var(--warning-bg); border: 2px solid var(--warning-ink); }
.fnode.skip { background: #f4f4f5; border-style: dashed; opacity: .55; }
.fnode.skip .ft { color: #909399; }
.fcur { position: absolute; top: -9px; right: 6px; background: #f39c12; color: #fff; font-size: 11px; padding: 0 6px; border-radius: 8px; }

/* ---------- 设计稿 ---------- */
.thumbs { display: flex; flex-wrap: wrap; gap: 18px; }
.thumb { width: 240px; font-size: 13px; }
.thumb .tv { margin: 6px 0 2px; }
.thumb .fb { margin-top: 4px; color: #e6a23c; font-size: 12px; background: #fdf6ec; padding: 4px 6px; border-radius: 4px; }

/* ---------- 领导驾驶舱 ---------- */
.main.dark { background: var(--dash-bg); }
.dash { color: var(--dash-ink); background: var(--dash-bg); min-height: 100%; padding-block: 4px; }
.dash:fullscreen { max-width: none; padding: 24px; overflow: auto; }
.dash-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.dash-title { font-size: 25px; line-height: 1.3; font-weight: 700; color: var(--dash-ink); flex: 1; margin: 0; }
.dash-time { font-size: 13px; color: var(--dash-muted); }
.dash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dk { background: var(--dash-surface); border: 1px solid var(--dash-line); border-radius: var(--radius-panel); min-width: 0; padding: 12px 16px; }
.dl { font-size: 13px; color: var(--dash-muted); }
.dv { font-size: 22px; font-weight: 700; margin-top: 6px; color: var(--dash-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dv.green { color: var(--dash-mint); }
.dv.orange { color: var(--dash-amber); }
.dv.red { color: var(--dash-rose); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dash-card { background: var(--dash-surface); border: 1px solid var(--dash-line); border-radius: var(--radius-panel); padding: 14px 16px; min-width: 0; }
.dash-card.span2 { grid-column: span 2; }
.dc-t { font-size: 15px; font-weight: 650; color: var(--dash-ink); margin-bottom: 8px; }
.chart { height: 250px; }
.warn-list { height: 250px; overflow: auto; }
.wl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--dash-line); font-size: 13px; }
.wd { min-width: 56px; text-align: center; background: var(--dash-amber); color: var(--dash-bg); border-radius: 5px; font-size: 12px; font-weight: 700; padding: 2px 4px; }
.wd.late { background: var(--dash-rose); }
.wn { flex: 1; color: var(--dash-ink); }
.ws { color: var(--dash-muted); font-size: 12px; }

/* ---------- 车间手机端 ---------- */
.mobile-page { display: flex; gap: 40px; align-items: flex-start; justify-content: center; }
.mobile-side { width: 300px; }
.phone { width: 375px; height: 740px; background: #f2f4f7; border: 12px solid #1c1c1e; border-radius: 42px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 16px 40px rgba(0,0,0,.25); flex-shrink: 0; }
.phone-status { display: flex; justify-content: space-between; padding: 8px 22px 4px; font-size: 12px; background: #1f4e8c; color: #fff; }
.phone-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 12px; background: #1f4e8c; color: #fff; font-size: 17px; }
.ph-l, .ph-r { width: 64px; font-size: 14px; cursor: pointer; }
.ph-r { text-align: right; }
.phone-body { flex: 1; overflow: auto; padding: 12px; }
.m-hello { font-size: 15px; color: #606266; margin: 4px 4px 12px; }
.m-hello b { color: #1f4e8c; font-size: 20px; }
.m-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); cursor: pointer; }
.m-top { display: flex; justify-content: space-between; font-size: 13px; }
.m-step { background: #e8f0fb; color: #1f4e8c; padding: 2px 8px; border-radius: 10px; }
.m-due { color: #909399; }
.m-due.late { color: #f56c6c; font-weight: bold; }
.m-name { font-size: 19px; font-weight: bold; margin: 10px 0 4px; }
.m-name.big { font-size: 22px; }
.m-sub { font-size: 14px; color: #909399; }
.m-btn { width: 100%; margin-top: 12px; height: 48px; border: none; border-radius: 10px; background: #2e7d43; color: #fff; font-size: 18px; font-weight: bold; cursor: pointer; font-family: inherit; }
.m-btn.warn { background: #e6a23c; }
.m-btn.ghost { background: #fff; color: #1f4e8c; border: 1px solid #1f4e8c; }
.m-empty { text-align: center; color: #c0c4cc; margin-top: 80px; font-size: 16px; }
.m-detail { background: #fff; border-radius: 12px; padding: 16px; }
.m-no { color: #909399; font-size: 13px; }
.m-row { display: flex; padding: 9px 0; border-bottom: 1px solid #f0f2f5; font-size: 15px; }
.m-row span { width: 80px; color: #909399; flex-shrink: 0; }

/* ---------- 单据打印 ---------- */
.print-area { background: #fff; padding: 24px 30px; color: #000; font-family: SimSun, serif; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 10px; }
.pd-org { font-size: 15px; }
.pd-title { font-size: 26px; font-weight: bold; letter-spacing: 6px; margin-top: 6px; font-family: SimHei, sans-serif; }
.pd-qr { width: 92px; height: 92px; }
.pd-qrt { font-size: 11px; }
.pd-no { margin: 10px 0; font-size: 14px; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-table th, .pd-table td { border: 1px solid #000; padding: 8px 10px; text-align: left; }
.pd-table th { background: #f2f2f2; width: 16%; font-weight: normal; }
.pd-sign { display: flex; justify-content: space-between; margin-top: 28px; font-size: 14px; }
.pd-sign span { width: 30%; border-bottom: 1px solid #000; padding-bottom: 18px; }
.pd-foot { margin-top: 18px; font-size: 11px; color: #666; text-align: right; }
@media print {
  body.printing * { visibility: hidden !important; }
  body.printing .print-area, body.printing .print-area * { visibility: visible !important; }
  body.printing .print-area { position: fixed; left: 0; top: 0; width: 100%; padding: 10mm; }
}

/* ---------- 自动演示字幕条 ---------- */
.autobar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3000; background: rgba(16,33,63,.92); color: #fff;
  border-radius: 28px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.3); max-width: 80vw; }
.ab-step { background: #37d39b; color: #10213f; font-weight: bold; border-radius: 16px; padding: 3px 12px; font-size: 13px; white-space: nowrap; }
.ab-text { font-size: 15px; }

.auto-hit { outline: 2px solid var(--focus); outline-offset: 2px; }
.autobar .el-radio-button__inner { padding: 5px 10px; }

/* ---------- 订单详情：左右分屏 ---------- */
.dw { display: flex; gap: 18px; align-items: flex-start; }
.dw-left { width: 40%; flex-shrink: 0; }
.dw-right { flex: 1; min-width: 0; }
.dw-right .fnode { width: 128px; }
.dw-right .fnode.wide { width: auto; }
.action-box .step-form .el-form-item { margin-bottom: 12px; }
.act-btns { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.info-line { line-height: 1.6; color: #1f4e8c; background: #eef4fc; border-radius: 4px; padding: 6px 10px; font-size: 13px; width: 100%; }
.upl { display: flex; align-items: center; }
.auto-field { background: var(--warning-bg); border-radius: 6px; }
.kd { background: #fff; border: 1px solid #ebeef5; border-radius: 6px; padding: 12px 14px; }
.kd-t { font-weight: bold; margin-bottom: 8px; font-size: 14px; }
.kd-row { display: flex; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed #f0f2f5; }
.kd-row .k { width: 86px; color: #909399; flex-shrink: 0; }

/* ---------- 排产看板 ---------- */
.plan-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 16px; margin-bottom:12px; }
.card .plan-header h3 { margin:0; }
.plan-legend { display:flex; flex-wrap:wrap; align-items:center; gap:5px 14px; list-style:none; margin:0; padding:0; }
.plan-legend li { display:inline-flex; align-items:center; gap:5px; color:var(--muted); font-size:12px; }
.plan-mark { flex:none; width:12px; height:12px; }
.plan-legend .plan-mark { box-sizing:border-box; width:18px; height:16px; padding:2px; border-radius:3px; }
[data-plan-state="run"] { --plan-fill:var(--action-fill, #ee5102); --plan-ink:var(--action-ink, #191817); }
[data-plan-state="wait"] { --plan-fill:var(--info, #3c6284); }
[data-plan-state="ok"] { --plan-fill:var(--success-ink); }
.g-bar, .plan-legend .plan-mark { background:var(--plan-fill); color:var(--plan-ink, white); }
.g-today, .plan-today-key { background:var(--danger-ink); }
.plan-today-key { display:inline-block; width:2px; height:13px; margin-inline:4px; }
.gantt { font-size: 12px; }
.gantt .g-row { min-inline-size:calc(170px + var(--plan-days) * 18px); }
.g-row { display: flex; align-items: center; border-bottom: 1px solid #f0f2f5; min-height: 52px; }
.g-head { min-height: 26px; color: #909399; }
.g-name { width: 170px; flex-shrink: 0; padding-right: 10px; font-size: 13px; }
.g-load { height: 6px; background: #f0f2f5; border-radius: 3px; margin: 5px 0 2px; overflow: hidden; }
.g-load div { height: 100%; background: #2f6fbf; }
.g-track { position: relative; flex: 1; height: 100%; min-height: 26px; display: flex; }
.g-track.plan-slots {
  display:grid; grid-template-columns:repeat(var(--plan-days), minmax(0, 1fr));
  grid-auto-flow:row dense; grid-auto-rows:26px; row-gap:4px;
  height:auto; margin-block:6px;
}
.g-day { flex: 1; text-align: center; border-left: 1px solid #f5f5f5; }
.g-bar { display:flex; align-items:center; gap:4px; min-width:0; height:26px; padding:0 5px; border:0; border-radius:4px; font:inherit; overflow:hidden; text-align:start; cursor:pointer; }
.g-label { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.g-bar:focus-visible { outline:2px solid var(--ink); outline-offset:2px; z-index:2; }
.g-today { position:absolute; top:0; bottom:0; width:2px; z-index:1; pointer-events:none; }
@media (forced-colors:active) {
  .g-bar, .plan-legend .plan-mark { border:1px solid ButtonText; }
  .g-today, .plan-today-key { border-inline-start:2px solid CanvasText; }
}

/* ---------- 手机端表单 ---------- */
.m-sec { margin: 14px 0 8px; font-weight: bold; color: #1f4e8c; font-size: 16px; }
.step-form.big .el-form-item__label { font-size: 15px; }
.step-form.big .el-input__inner, .step-form.big .el-input-number { font-size: 16px; }
.step-form.big .el-checkbox { margin-right: 14px; }
/* Shared navigation for the office, suppliers and project teams. */
.side,.main { min-width:0; }
.side { overflow-y:auto; }
.account-select { min-width: 0; }
.account-select select { max-width:240px; padding:6px 24px 6px 10px; font:inherit; font-size:14px; color:var(--ink); border:1px solid var(--control-line); border-radius:var(--radius-control); background:var(--surface); }
.ledger-filters { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:16px; }
.ledger-filters .el-input { flex: 1 1 224px; max-width:330px; min-width: 0; }
.ledger-filters .el-select { width:145px; }
.ledger-stats { grid-template-columns:repeat(auto-fit,minmax(min(100%, 164px),1fr)); }
@media(max-width:1120px){
  .workbench-grid { grid-template-columns:minmax(0,1fr); gap:0; }
  .dash-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .dash-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px){
  .topbar { min-height:52px; padding:8px 12px; gap:8px; flex-wrap:wrap; }
  .topbar .brand { flex:1 1 100%; font-size:16px; }
  .topbar .brand small { font-size:11px; margin-left:8px; }
  .topbar .spacer { display:none; }
  .account-select select { max-width:min(100%,182px); }
  .topbar .el-button+.el-button { margin-left:0; }
  .body { flex-direction:column; }
  .side { flex:0 0 auto; width:100%; overflow-x:auto; border:0; border-bottom:1px solid var(--line); }
  .side .el-menu { display:flex; width:max-content; padding:6px 8px; gap:4px; }
  .side .el-menu-item { height:40px; line-height:40px; padding-inline:12px; margin:0; }
  .main { --main-gutter-y:16px; padding-inline:12px; }
  .page-title,.dash-title { font-size:22px; }
  .screen-head { margin-bottom:16px; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .workbench-stats .stat { padding:8px 12px; }
  .workbench-stats .stat:nth-child(3) { border-inline-start:0; }
  .workbench-stats .stat:nth-child(n+3) { border-block-start:1px solid var(--line); }
  .workbench-stats { padding-block:4px; }
  .main .card { padding:12px; }
  .recent-job { grid-template-columns:minmax(0,1fr); gap:4px; }
  .recent-ref { justify-self:start; text-align:start; }
  .dash-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dash-grid { grid-template-columns:minmax(0,1fr); }
  .dash-card.span2 { grid-column:auto; }
  .dash-title { flex-basis:100%; }
  .phone { max-width:100%; }
  .dw,.mobile-page { flex-direction:column; }
  .dw .dw-left,.dw .dw-right,.mobile-side { width:100%; min-width:0; }
  .autobar { max-width:95vw; width:95vw; flex-wrap:wrap; border-radius:8px; }
  .autobar .ab-text { font-size:13px; }
}
@media(prefers-reduced-motion: reduce){
  .side .el-menu-item,.main .el-button,.pf-root button { transition:none; }
}
@media print{
  body:has(#app .print-sheet) > :not(#app) { display:none!important; }
  body:has(.print-sheet) .layout,body:has(.print-sheet) .body,body:has(.print-sheet) .main {
    display:block!important; height:auto!important; overflow:visible!important; padding:0!important; margin:0!important;
  }
  body:has(.print-sheet) .topbar,body:has(.print-sheet) .side,
  body:has(.print-sheet) .autobar,body:has(.print-sheet) .el-overlay { display:none!important; }
}
