/* ==========================================================================
   柏德知声 · 声学科技风主题 (Direction B)
   深空灰底 + 电光青(#00E5C3) / 霓虹蓝(#3D9BFF) + 声波·均衡器视觉元素
   设计原则：实心工业质感、硬朗线条、高对比数字；不用玻璃拟态/紫色光晕
   ========================================================================== */

:root {
  /* 底层 */
  --bg:            #0F1216;
  --bg-grad-1:     #101620;
  --bg-grad-2:     #0B0E12;
  --surface:       #171D24;
  --surface-2:     #1D242D;
  --surface-3:     #232B35;
  --border:        #252E38;
  --border-strong: #34414F;

  /* 文字 */
  --text:          #E8EEF5;
  --text-dim:      #95A3B4;
  --text-faint:    #64748B;

  /* 品牌色 */
  --accent:        #00E5C3;   /* 电光青 —— 主强调 */
  --accent-deep:   #00B39A;
  --accent-soft:   rgba(0, 229, 195, .12);
  --accent-2:      #3D9BFF;   /* 霓虹蓝 —— 次强调 */
  --accent-2-soft: rgba(61, 155, 255, .13);

  /* 语义色 */
  --ok:     #2ED573;
  --warn:   #FFB020;
  --danger: #FF5C6C;
  --info:   #7C9CFF;

  --radius:   9px;
  --radius-s: 6px;
  --shadow:   0 2px 10px rgba(0, 0, 0, .35);
  --shadow-l: 0 10px 30px rgba(0, 0, 0, .45);
  --sidebar-w: 232px;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #4ff5db; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; letter-spacing: .2px; }
h1 { font-size: 21px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2b343f; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a4553; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #141A21 0%, #10151B 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-mark { flex: 0 0 34px; }
.brand-text { line-height: 1.25; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: 1.5px; }
.brand-sub {
  font-size: 10px; color: var(--text-faint); letter-spacing: 2.2px; text-transform: uppercase;
}

.nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav-group {
  font-size: 10.5px; color: var(--text-faint); letter-spacing: 2px;
  padding: 14px 10px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; margin: 2px 0;
  border-radius: var(--radius-s);
  color: var(--text-dim); font-size: 13.5px;
  border-left: 2px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  color: var(--accent); border-left-color: var(--accent); font-weight: 600;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .9; }
.nav-item .badge-count {
  margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 10px;
  background: var(--surface-3); color: var(--text-dim);
}
.nav-item .badge-count.alert { background: rgba(255, 92, 108, .18); color: var(--danger); }

.sidebar-foot {
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-faint); display: flex; align-items: center; gap: 8px;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(46, 213, 115, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 213, 115, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(46, 213, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

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

.topbar {
  height: 58px; flex: 0 0 58px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
  background: rgba(15, 18, 22, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 30;
}
.topbar .page-title { font-size: 15.5px; font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .today { font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 11px 5px 6px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--border);
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05221d; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.user-chip .u-name { font-size: 13px; }
.user-chip .u-role { font-size: 10.5px; color: var(--text-faint); }

.content { flex: 1; padding: 22px; max-width: 1560px; width: 100%; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { margin: 0; font-size: 14.5px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

/* ---------- 声波 / 均衡器元素 ---------- */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq span {
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: eqbar 1.1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 40%; animation-delay: -.9s; }
.eq span:nth-child(2) { height: 75%; animation-delay: -.5s; }
.eq span:nth-child(3) { height: 100%; animation-delay: -.2s; }
.eq span:nth-child(4) { height: 60%; animation-delay: -.7s; }
.eq span:nth-child(5) { height: 85%; animation-delay: -.35s; }
@keyframes eqbar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .eq span, .dot-live { animation: none; }
}

.wave-strip { height: 3px; background:
  linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .55; }

/* ---------- KPI ---------- */
.kpi-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
}
.kpi {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px 15px;
}
.kpi::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.kpi .k-label { font-size: 12px; color: var(--text-dim); letter-spacing: .4px; }
.kpi .k-value {
  font-size: 27px; font-weight: 700; margin-top: 5px; line-height: 1.15;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.kpi .k-value .unit { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-left: 3px; }
.kpi .k-foot { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.kpi.accent .k-value { color: var(--accent); }
.kpi.blue   .k-value { color: var(--accent-2); }
.kpi.warn   .k-value { color: var(--warn); }
.kpi.danger .k-value { color: var(--danger); }
.kpi.ok     .k-value { color: var(--ok); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; font-size: 13.5px; font-family: inherit;
  border-radius: var(--radius-s); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); cursor: pointer;
  transition: background .14s, border-color .14s, transform .06s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: #465566; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent; color: #04211c; font-weight: 700;
}
.btn-primary:hover { background: linear-gradient(135deg, #2cf0d3, var(--accent)); color: #04211c; }
.btn-blue { background: var(--accent-2-soft); border-color: rgba(61,155,255,.45); color: #9dc8ff; }
.btn-blue:hover { background: rgba(61,155,255,.22); }
.btn-danger { background: rgba(255,92,108,.12); border-color: rgba(255,92,108,.4); color: #ff9aa5; }
.btn-danger:hover { background: rgba(255,92,108,.22); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }
.btn-lg { padding: 10px 22px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .6px;
  color: var(--text-dim); text-transform: none;
  padding: 10px 14px; border-bottom: 1px solid var(--border-strong);
  background: var(--surface-2); white-space: nowrap;
}
table.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .money { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.tbl .mono { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
table.tbl .row-link { cursor: pointer; }
.empty-row td { text-align: center; color: var(--text-faint); padding: 26px 0 !important; }

/* ---------- 徽章 / 状态 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px; font-size: 12px; line-height: 1.7;
  border: 1px solid transparent; white-space: nowrap;
}
.tag-gray   { background: var(--surface-3); color: var(--text-dim); border-color: var(--border-strong); }
.tag-accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(0,229,195,.35); }
.tag-blue   { background: var(--accent-2-soft); color: #86bcff; border-color: rgba(61,155,255,.35); }
.tag-ok     { background: rgba(46,213,115,.13); color: var(--ok); border-color: rgba(46,213,115,.3); }
.tag-warn   { background: rgba(255,176,32,.13); color: var(--warn); border-color: rgba(255,176,32,.3); }
.tag-danger { background: rgba(255,92,108,.13); color: var(--danger); border-color: rgba(255,92,108,.32); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; gap: 14px 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 12.5px; color: var(--text-dim); }
.field .req { color: var(--danger); margin-left: 2px; }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=tel], input[type=email], input[type=search],
select, textarea {
  font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--bg-2, #12171d); border: 1px solid var(--border-strong);
  border-radius: var(--radius-s); padding: 8px 11px; width: 100%;
  transition: border-color .14s, box-shadow .14s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: #55636f; }
textarea { resize: vertical; min-height: 72px; }
select option { background: var(--surface-2); }
.help { font-size: 11.5px; color: var(--text-faint); }
.errlist { color: var(--danger); font-size: 12.5px; margin: 2px 0 0; padding-left: 16px; }

.form-actions {
  display: flex; gap: 10px; align-items: center;
  padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--border);
}
.form-actions .spacer { flex: 1; }

/* ---------- 工具条 / 筛选 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.toolbar input[type=search], .toolbar input[type=text] { width: auto; min-width: 220px; }
.toolbar select { width: auto; min-width: 120px; }

/* ---------- 消息提示 ---------- */
.messages { position: fixed; top: 68px; right: 22px; z-index: 90; display: flex; flex-direction: column; gap: 9px; }
.msg {
  min-width: 240px; max-width: 400px; padding: 11px 15px; font-size: 13.5px;
  border-radius: var(--radius-s); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-l); animation: slidein .22s ease-out;
}
.msg.success { border-left-color: var(--ok); }
.msg.error   { border-left-color: var(--danger); }
.msg.warning { border-left-color: var(--warn); }
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- 登录页（v2：全屏声波/均衡器动态背景 + 左品牌右表单） ---------- */
.login-page {
  position: relative; min-height: 100vh; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(0,229,195,.14), transparent 62%),
    radial-gradient(900px 560px at 104% 112%, rgba(61,155,255,.16), transparent 62%),
    linear-gradient(160deg, #111823 0%, #0B0E12 55%, #080A0D 100%);
}
#login-bg { position: fixed; inset: 0; z-index: 0; display: block; }
.login-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 42%, rgba(6,8,11,.72) 100%);
}
.login-shell {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 0;
  max-width: 1160px; min-height: 100vh; margin: 0 auto; padding: 40px 30px;
}

/* 左侧品牌展示 */
.showcase { padding-right: 60px; }
.showcase-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.mark-ring { position: relative; width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center; }
.mark-ring::before, .mark-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0,229,195,.35); animation: ring 3.6s ease-out infinite;
}
.mark-ring::after { animation-delay: 1.8s; }
@keyframes ring {
  0%   { transform: scale(.72); opacity: .85; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .mark-ring::before, .mark-ring::after { animation: none; } }
.showcase-name { font-size: 34px; font-weight: 700; letter-spacing: 10px; line-height: 1.15; }
.showcase-sub { font-size: 11.5px; letter-spacing: 4px; color: var(--text-faint); text-transform: uppercase; margin-top: 4px; }
.showcase-slogan {
  font-size: 15.5px; color: var(--text-dim); letter-spacing: .5px; margin: 0 0 14px;
  border-left: 2px solid var(--accent); padding-left: 12px;
}
.showcase-eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin: 20px 0 26px; }
.showcase-eq span {
  width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: eqbar 1.25s ease-in-out infinite;
}
.showcase-eq span:nth-child(1)  { height: 34%; animation-delay: -.10s }
.showcase-eq span:nth-child(2)  { height: 62%; animation-delay: -.80s }
.showcase-eq span:nth-child(3)  { height: 88%; animation-delay: -.35s }
.showcase-eq span:nth-child(4)  { height: 48%; animation-delay: -1.05s }
.showcase-eq span:nth-child(5)  { height: 100%; animation-delay: -.55s }
.showcase-eq span:nth-child(6)  { height: 70%; animation-delay: -.20s }
.showcase-eq span:nth-child(7)  { height: 40%; animation-delay: -.95s }
.showcase-eq span:nth-child(8)  { height: 82%; animation-delay: -.45s }
.showcase-eq span:nth-child(9)  { height: 55%; animation-delay: -.70s }
.showcase-eq span:nth-child(10) { height: 30%; animation-delay: -.05s }
.showcase-eq span:nth-child(11) { height: 74%; animation-delay: -.60s }
.showcase-eq span:nth-child(12) { height: 46%; animation-delay: -.25s }

.motto { display: flex; align-items: stretch; margin-top: 6px; }
.motto-item {
  position: relative;
  flex: 0 0 140px;            /* 等宽列：间距与竖线位置必然均匀，不受下方英文注宽度影响 */
  display: flex; flex-direction: column; align-items: center;
}
.motto-item + .motto-item::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 16px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}
.motto-word {
  font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: 9px;
  background: linear-gradient(135deg, #EAF2FA 6%, var(--accent) 58%, var(--accent-2) 104%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.motto-en {
  font-size: 11px; letter-spacing: 3.4px; color: var(--text-dim);
  text-transform: uppercase; margin-top: 7px;
}

/* 右侧登录卡片 */
.login-panel { display: flex; justify-content: flex-end; }
.login-card {
  width: 100%; max-width: 400px; padding: 34px 32px 28px;
  background: linear-gradient(180deg, rgba(28,35,44,.96), rgba(20,26,33,.98));
  border: 1px solid var(--border-strong);
  border-radius: 14px; box-shadow: 0 22px 60px rgba(0,0,0,.6);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}
.login-card h2 { font-size: 17px; margin: 0 0 2px; }
.login-card .l-sub { font-size: 12.5px; color: var(--text-faint); margin: 0 0 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.login-foot { margin-top: 20px; text-align: center; font-size: 11.5px; color: var(--text-faint); }
.login-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; margin-bottom: 16px;
}

@media (max-width: 1000px) {
  .login-shell { grid-template-columns: 1fr; max-width: 460px; padding: 30px 22px; }
  .showcase { display: none; }
  .login-panel { justify-content: center; }
}

/* ---------- 客资快速登记行（沿用 Excel 的一行一条录入习惯） ---------- */
.quick-grid {
  display: grid; gap: 10px 12px;
  grid-template-columns: 130px 1.1fr 1.2fr 1.2fr 1fr 110px 110px 84px 84px auto;
  align-items: end;
}
.quick-grid .field > label { font-size: 11.5px; }
.quick-grid .field.chk { align-items: center; }
.quick-grid .field.chk > label { margin-bottom: 0; }
.quick-grid .field.chk input[type=checkbox] { width: auto; }
.quick-grid .field.wide { grid-column: 1 / span 7; }
.quick-grid .field.act button { width: 100%; }
@media (max-width: 1300px) {
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
  .quick-grid .field.wide { grid-column: 1 / -1; }
}

/* ---------- 分区切换标签 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
  padding: 9px 16px; font-size: 13.5px; color: var(--text-dim); cursor: pointer;
  border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- 状态步骤条（施工单进度） ---------- */
.steps { display: flex; align-items: center; gap: 0; margin: 4px 0 20px; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step .dot {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
  background: var(--surface-3); color: var(--text-faint); border: 1px solid var(--border-strong);
}
.step .lbl { font-size: 12.5px; color: var(--text-faint); }
.step .line { flex: 1; height: 2px; background: var(--border); margin: 0 9px; }
.step.done .dot { background: var(--accent-soft); color: var(--accent); border-color: rgba(0,229,195,.5); }
.step.done .lbl { color: var(--text); }
.step.current .dot { background: var(--accent); color: #04211c; border-color: var(--accent); }
.step.current .lbl { color: var(--accent); font-weight: 600; }

/* ---------- 在库车看板 ---------- */
.bay-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bay {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 15px; position: relative;
  border-top: 2px solid var(--border-strong);
}
.bay.working { border-top-color: var(--accent); }
.bay.waiting { border-top-color: var(--warn); }
.bay .bay-plate {
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--text);
}
.bay .bay-car { font-size: 12.5px; color: var(--text-dim); }
.bay .bay-job { font-size: 12.5px; color: var(--text-faint); margin-top: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bay .bay-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--text-faint); }

/* ---------- 其他 ---------- */
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.right { text-align: right; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.dl { display: grid; grid-template-columns: 104px 1fr; gap: 9px 14px; font-size: 13.5px; }
.dl dt { color: var(--text-faint); }
.dl dd { margin: 0; }

.alert-bar {
  padding: 11px 15px; border-radius: var(--radius-s); font-size: 13.5px;
  background: rgba(255,176,32,.09); border: 1px solid rgba(255,176,32,.3); color: #ffd68a;
}
.alert-bar.danger { background: rgba(255,92,108,.09); border-color: rgba(255,92,108,.3); color: #ffb3bb; }
.alert-bar.info { background: var(--accent-2-soft); border-color: rgba(61,155,255,.3); color: #a8cdff; }

.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 14px 18px; font-size: 13px; }
.pager a, .pager span.cur {
  padding: 4px 10px; border-radius: var(--radius-s); border: 1px solid var(--border);
}
.pager a { color: var(--text-dim); background: var(--surface-2); }
.pager a:hover { color: var(--accent); border-color: var(--accent); }
.pager span.cur { background: var(--accent-soft); color: var(--accent); border-color: rgba(0,229,195,.4); }

@media print {
  .sidebar, .topbar, .toolbar, .messages { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; color: #000; }
}
