/* ===========================================================
   车辆维保工单系统 · 全局样式增强（UI 优化 + 移动端适配）
   基础层为视觉打磨（桌面/移动通用），@media 段为手机适配。
   =========================================================== */
:root{
  --primary:#1a73e8;
  --primary-d:#1668d0;
  --bg:#f5f6f8;
  --card:#fff;
  --text:#1a1a1a;
  --muted:#888;
  --border:#e6e8eb;
  --radius:10px;
}
html{ -webkit-text-size-adjust:100%; }
body{ min-height:100vh; }

/* ---- 品牌与头部 ---- */
.logo{ color:var(--primary); letter-spacing:.5px; }
header{ border-bottom:1px solid var(--border); }

/* ---- 输入框焦点态 ---- */
.f input, .f select, .f textarea,
input, select, textarea{
  outline:none;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
.f input:focus, .f select:focus, .f textarea:focus,
input:focus, select:focus, textarea:focus{
  border-color:var(--primary) !important;
  box-shadow:0 0 0 3px rgba(26,115,232,.12);
}
input[type=checkbox]{ accent-color:var(--primary); width:16px; height:16px; vertical-align:-3px; }
input[type=file]{ font-size:13px; }

/* ---- 按钮 ---- */
.btn{ transition:all .15s ease; border-radius:6px; }
.btn:hover{ box-shadow:0 1px 3px rgba(0,0,0,.08); }
.btn:active{ transform:translateY(1px) scale(.98); }
.btn.p{ background:var(--primary); border-color:var(--primary);
        box-shadow:0 1px 3px rgba(26,115,232,.28); }
.btn.p:hover{ background:var(--primary-d); border-color:var(--primary-d); }
.btn.d:hover{ border-color:#c5221f; color:#c5221f; background:#fff5f4; }

/* ---- 卡片 ---- */
.card{ transition:box-shadow .15s ease; border:1px solid #f0f1f3; }
.card:hover{ box-shadow:0 3px 12px rgba(0,0,0,.08); }

/* ---- 分区标题（带左侧色条，与现有内联风格一致）---- */
h2{ font-weight:600; }
h3{ font-size:15px; margin-bottom:12px; color:#222; }
section.pane h2[style*="border-left"]{ background:linear-gradient(90deg,rgba(26,115,232,.06),transparent);
  padding:6px 8px; border-radius:0 6px 6px 0; }

/* ---- 表格 ---- */
th{ font-weight:600; letter-spacing:.3px; }
tbody tr{ transition:background .12s; }

/* ---- 看板 KPI ---- */
.kpi{ transition:transform .15s, box-shadow .15s; border:1px solid #f0f1f3; }
.kpi:hover{ transform:translateY(-2px); box-shadow:0 4px 14px rgba(0,0,0,.1); }
.kpi .n{ letter-spacing:.5px; }

/* ---- 通知铃铛 ---- */
.bell{ position:relative; font-size:18px; cursor:pointer; padding:4px 6px; line-height:1;
       border-radius:8px; transition:background .15s; }
.bell:hover{ background:#f1f3f4; }
.badge{ position:absolute; top:-2px; right:-2px; min-width:16px; height:16px; padding:0 4px;
        background:#d93025; color:#fff; font-size:11px; line-height:16px; text-align:center;
        border-radius:9px; box-shadow:0 0 0 2px #fff; }
.notif-panel{ position:absolute; top:52px; right:14px; width:320px; max-width:92vw;
              background:#fff; border:1px solid var(--border); border-radius:10px;
              box-shadow:0 8px 28px rgba(0,0,0,.16); z-index:60; overflow:hidden; }
.notif-head{ display:flex; justify-content:space-between; align-items:center;
             padding:10px 14px; border-bottom:1px solid #f0f0f0; font-weight:600; }
.notif-list{ max-height:60vh; overflow-y:auto; }
.notif-empty{ padding:24px; text-align:center; color:var(--muted); font-size:13px; }
.notif-item{ padding:10px 14px; border-bottom:1px solid #f4f4f4; cursor:pointer; transition:background .12s; }
.notif-item:hover{ background:#f8f9fa; }
.notif-item.unread{ background:#f3f8ff; }
.notif-item .nt{ display:flex; justify-content:space-between; align-items:baseline; }
.notif-item .nt b{ font-size:13px; color:#1a1a1a; }
.notif-item .ntime{ font-size:11px; color:var(--muted); flex-shrink:0; margin-left:8px; }
.notif-item .nc{ font-size:12px; color:#666; margin-top:3px; line-height:1.6; }

/* ---- 状态标签补充 ---- */
.t-driver{ background:#ede7f6; color:#5e35b1; }
.t-void{ background:#f1f3f4; color:#80868b; text-decoration:line-through; }

/* 财务状态标签（未对账/已对账/报销中/报销完毕=已打款） */
.t-recon{ background:#fef7e0; color:#b06000; }
.t-reconed{ background:#e8f0fe; color:#1a73e8; }
.t-reimb{ background:#f3e8fd; color:#8430ce; }
.t-reimbed{ background:#e6f4ea; color:#1e8e3e; }

/* ---- 提示条 ---- */
.alert{ line-height:1.6; }
.small{ line-height:1.6; }

/* ---- 附件弹窗 ---- */
.modal{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); align-items:center; justify-content:center; z-index:999; }
.modal-box{ background:#fff; border-radius:12px; width:min(680px,92vw); max-height:86vh; overflow:auto; box-shadow:0 8px 30px rgba(0,0,0,.25); }
.modal-hd{ display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid #eee; font-size:15px; }
.modal-hd .x{ cursor:pointer; font-size:22px; line-height:1; color:#888; }
.modal-hd .x:hover{ color:#333; }
.evgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; padding:16px; }
.evitem{ border:1px solid #eee; border-radius:8px; padding:8px; text-align:center; }
.evimg{ position:relative; min-height:100px; display:flex; align-items:center; justify-content:center; background:#f5f6f8; border-radius:6px; }
.evph{ position:absolute; font-size:12px; color:#999; }
.evitem img{ position:relative; z-index:1; max-width:100%; max-height:160px; border-radius:6px; }
.evitem .small{ margin-top:6px; word-break:break-all; }

/* 工单列表：外采子单行（挂在主单下方，统计仍按 1 单计） */
tr.sub-row{ background:#f8fafd; color:#555; font-size:13px; }
tr.sub-row td{ padding-top:5px; padding-bottom:5px; border-bottom:1px dashed #e3ebf5; }
tr.sub-row .tag{ font-size:11px; padding:1px 7px; }
tr.suborder-row{ background:#fffaf0; color:#7a5a00; font-size:13px; }
tr.suborder-row td{ padding-top:5px; padding-bottom:5px; border-bottom:1px dashed #f0e0b8; }
tr.suborder-row .tag{ font-size:11px; padding:1px 7px; }

/* ===========================================================
   数据看板：Hero KPI · 交通灯状态条 · 异常优先列表
   =========================================================== */
.dash-h{ display:flex; align-items:center; gap:8px; font-size:15px; margin-bottom:14px;
  padding-left:10px; border-left:4px solid var(--primary); }

/* Hero KPI 卡片 */
.kpi-card{ display:flex; align-items:center; gap:12px; background:var(--card);
  border:1px solid #f0f1f3; border-radius:14px; padding:16px 18px; position:relative; overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s; }
.kpi-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--ac,#1a73e8); }
.kpi-card:hover{ transform:translateY(-3px); box-shadow:0 6px 18px rgba(0,0,0,.1); border-color:#e3e6ea; }
.kpi-ic{ width:42px; height:42px; flex:0 0 42px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background:rgba(26,115,232,.12); background:color-mix(in srgb, var(--ac,#1a73e8) 12%, #fff);
  color:var(--ac,#1a73e8); }
.kpi-ic svg{ width:22px; height:22px; }
.kpi-body{ min-width:0; }
.kpi-val{ font-size:24px; font-weight:700; line-height:1.1; color:#1a1a1a; letter-spacing:.3px; }
.kpi-lab{ font-size:12px; color:var(--muted); margin-top:3px; }

/* 交通灯状态条 */
.status-bar{ display:flex; height:14px; border-radius:8px; overflow:hidden; background:#eef0f2; gap:2px; }
.status-seg{ height:100%; transition:width .3s ease; }
.status-legend{ display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:12px; }
.sl-item{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:#444; }
.sl-item i{ width:10px; height:10px; border-radius:3px; display:inline-block; }
.sl-item b{ color:#1a1a1a; }
.sl-item[onclick]{ cursor:pointer; padding:2px 6px; border-radius:6px; }
.sl-item[onclick]:hover{ background:#f0f6ff; }

/* 送修厂排行 / 类型占比 微调 */
#dGarage .rk, #dType .rk{ color:var(--muted); font-weight:600; text-align:center; width:30px; }
.dash-cols{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* 异常优先列表 */
.dash-needs{ border:1px solid #fde293; background:linear-gradient(180deg,#fffdf5,#fff); }
.need-list{ display:flex; flex-direction:column; gap:8px; }
.need-item{ display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid #f0f1f3;
  border-radius:10px; background:#fff; cursor:pointer;
  transition:background .12s, box-shadow .12s; }
.need-item:hover{ background:#f8faff; box-shadow:0 2px 8px rgba(26,115,232,.08); }
.need-item .tag{ flex:0 0 auto; }
.need-main{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; font-size:13px; overflow:hidden; }
.need-main b{ color:#1a1a1a; }
.need-pl{ color:#333; }
.need-main .small{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.need-fee{ font-size:14px; font-weight:600; color:#1a1a1a; flex:0 0 auto; }
.need-go{ flex:0 0 auto; white-space:nowrap; }
.dash-empty{ text-align:center; color:var(--muted); padding:18px 0; font-size:13px; }

/* 时间范围切换 */
.dash-top{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap; margin-bottom:14px; }
.dash-seg{ display:inline-flex; background:#eef0f2; border-radius:10px; padding:3px; gap:2px; }
.dash-seg button{ border:0; background:transparent; padding:6px 14px; border-radius:8px; cursor:pointer;
  font-size:13px; color:#555; transition:all .15s; }
.dash-seg button:hover{ color:var(--primary); }
.dash-seg button.on{ background:#fff; color:var(--primary); font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.dash-meta{ font-size:12px; color:var(--muted); }

/* 费用构成环形图 */
.ana-cost{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.donut{ width:152px; height:152px; border-radius:50%; position:relative; flex:0 0 152px;
  box-shadow:0 1px 3px rgba(0,0,0,.06); }
.donut-c{ position:absolute; inset:26px; background:#fff; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:18px; font-weight:700; color:#1a1a1a; line-height:1.1; }
.donut-c span{ font-size:11px; font-weight:400; color:var(--muted); margin-top:2px; }
.donut-legend{ display:flex; flex-wrap:wrap; gap:8px 18px; flex:1; min-width:200px; }
.donut-legend .sl-item em{ color:var(--muted); font-style:normal; font-size:12px; margin-left:2px; }

/* 车辆维修 Top10 条形 */
.vbar-list{ display:flex; flex-direction:column; gap:12px; }
.vbar{ display:flex; align-items:center; gap:12px; }
.vbar-rk{ width:24px; height:24px; flex:0 0 24px; border-radius:50%; background:rgba(26,115,232,.12);
  color:var(--primary); font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.vbar-body{ flex:1; min-width:0; }
.vbar-top{ display:flex; justify-content:space-between; align-items:baseline; font-size:13px; margin-bottom:4px; }
.vbar-top .small{ color:var(--muted); }

/* 各负责人维度 */
.owner-list{ display:flex; flex-direction:column; gap:10px; }
.owner-row{ padding:12px 14px; border:1px solid #f0f1f3; border-radius:10px; background:#fff;
  transition:box-shadow .15s; }
.owner-row:hover{ box-shadow:0 2px 8px rgba(0,0,0,.06); }
.owner-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; }
.owner-head b{ font-size:14px; color:#1a1a1a; }
.owner-bar{ height:8px; }
.owner-sub{ display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted);
  margin-top:6px; flex-wrap:wrap; }
.owner-sub .t-rep, .owner-sub .t-arch{ padding:2px 8px; border-radius:10px; font-size:12px; }
.owner-fee{ font-size:14px; font-weight:700; color:#1a1a1a; }

/* ===========================================================
   首页 & 合并看板：公告/通知/待办/概览 + 周期并行 + 月度横向对比
   =========================================================== */
.home-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
/* 公告 */
.ann-list{ display:flex; flex-direction:column; gap:12px; }
.ann-item{ padding-bottom:10px; border-bottom:1px solid #f0f1f3; }
.ann-item:last-child{ border-bottom:0; padding-bottom:0; }
.ann-h{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:4px; }
.ann-h b{ font-size:14px; color:#1a1a1a; }
.ann-c{ font-size:13px; color:#555; line-height:1.6; }
.ann-att{ display:inline-block; margin-top:6px; font-size:12px; color:#1a73e8; text-decoration:none; border:1px solid #d2e3fc; background:#f0f6ff; border-radius:6px; padding:3px 10px; }
.ann-att:hover{ background:#e2edff; }
.ann-post{ margin-top:12px; padding-top:12px; border-top:1px dashed #e0e0e0; display:flex; flex-direction:column; gap:8px; }
.ann-post input, .ann-post textarea{ width:100%; padding:8px 10px; border:1px solid #ddd; border-radius:8px;
  font-size:13px; font-family:inherit; resize:vertical; }

/* 周期并行对比 */
.period-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.period-col{ border:1px solid #f0f1f3; border-radius:12px; overflow:hidden; background:#fff; }
.period-h{ padding:10px 14px; font-size:13px; font-weight:600; color:#fff; }
.period-h.today{ background:linear-gradient(135deg,#1a73e8,#4c8ef7); }
.period-h.week{ background:linear-gradient(135deg,#1e8e3e,#3cb371); }
.period-h.month{ background:linear-gradient(135deg,#b06000,#f9ab00); }
.period-body{ padding:8px 14px 12px; }
.pk{ display:flex; align-items:baseline; justify-content:space-between; padding:7px 0; border-bottom:1px dashed #f0f1f3; font-size:13px; }
.pk:last-child{ border-bottom:0; }
.pk span{ color:var(--muted); }
.pk b{ font-size:16px; color:#1a1a1a; }

/* 月度横向对比 */
.mcompare{ display:flex; flex-direction:column; gap:12px; }
.mcompare-row{ display:flex; align-items:center; gap:14px; }
.mc-label{ width:52px; flex:0 0 52px; font-size:13px; color:#444; text-align:right; }
.mc-bars{ flex:1; display:flex; flex-direction:column; gap:5px; }
.mc-bar{ display:flex; align-items:center; gap:8px; }
.mc-name{ width:30px; flex:0 0 30px; font-size:12px; color:var(--muted); }
.mc-bar .bar{ flex:1; }
.mc-val{ width:64px; flex:0 0 64px; font-size:12px; color:#333; text-align:right; }
.bar.sm{ height:9px; }
.bar.amber i{ background:#f9ab00; }

/* 月度对比（近6月·竖版柱状图） */
.mcv-legend{ display:flex; gap:18px; margin-top:6px; font-size:12px; color:#555; }
.mcv-legend i{ display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:middle; }
.mcompare-v{ display:flex; align-items:flex-end; gap:10px; height:220px; padding:16px 6px 0; }
.mcv-col{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; height:100%; }
.mcv-bars{ flex:1; width:100%; display:flex; align-items:flex-end; justify-content:center; gap:7px; }
.mcv-col .vbar{ width:30%; max-width:30px; border-radius:4px 4px 0 0; min-height:2px; }
.mcv-col .vbar.n{ background:#1a73e8; }
.mcv-col .vbar.f{ background:#f9ab00; }
.mcv-val{ font-size:11px; color:#555; margin-top:7px; white-space:nowrap; }
.mcv-label{ font-size:12px; color:#222; margin-top:5px; font-weight:600; }

/* 首页数据概览 */
.home-dash-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.hd-cell{ border:1px solid #f0f1f3; border-radius:12px; padding:14px; text-align:center;
  background:linear-gradient(180deg,#fbfcff,#fff); }
.hd-l{ font-size:12px; color:var(--muted); }
.hd-v{ font-size:30px; font-weight:700; color:var(--primary); line-height:1.2; }
.hd-v span{ font-size:13px; font-weight:400; color:var(--muted); margin-left:2px; }
.hd-s{ font-size:12px; color:#555; margin-top:4px; }
.hd-cell.hd-link{ cursor:pointer; transition:box-shadow .15s, transform .15s; }
.hd-cell.hd-link:hover{ box-shadow:0 4px 16px rgba(26,115,232,.16); transform:translateY(-1px); }
.hd-jump{ font-size:11px; color:var(--primary); margin-left:4px; font-weight:600; }
.hd-metrics{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:10px; }
.hd-metric{ font-size:12px; color:#333; background:#f1f5fb; border:1px solid #e3eaf5;
  border-radius:999px; padding:2px 9px; cursor:pointer; line-height:1.7; white-space:nowrap; }
.hd-metric:hover{ background:#e8f0fe; border-color:#c6dafc; color:var(--primary); }
.hd-metric b{ font-weight:700; }

/* 车辆分析看板 */
.va-kpis{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-top:12px; }
.dist-row{ display:flex; align-items:center; gap:10px; padding:5px 0; }
.dist-l{ width:76px; font-size:12px; color:#555; text-align:right; flex:none; }
.dist-bar{ flex:1; }
.dist-v{ width:130px; font-size:12px; color:#333; flex:none; }
.t-exp{ background:#fce8e6; color:#c5221f; }
@media (max-width:900px){ .va-kpis{ grid-template-columns:repeat(2,1fr); } }

/* ===========================================================
   布局：左侧导航 + 顶栏时间 + 待办分组
   =========================================================== */
header{ gap:12px; }
.hd-time{ flex:0 0 auto; margin-left:16px; text-align:left; font-size:13px; color:#5f6368; font-variant-numeric:tabular-nums; white-space:nowrap; }
.hd-time b{ color:#1a1a1a; }
.hd-time .hd-clock{ color:var(--primary); font-weight:600; letter-spacing:.5px; }
.sidebar{ position:fixed; left:0; top:56px; bottom:0; width:200px; background:#fff;
  border-right:1px solid var(--border); padding:14px 12px; overflow-y:auto; z-index:9; }
.sidebar nav{ display:flex; flex-direction:column; gap:6px; flex-wrap:nowrap; }
.sidebar nav button{ width:100%; text-align:left; padding:11px 14px; border-radius:10px;
  font-size:14px; color:#444; border:0; background:transparent; cursor:pointer;
  transition:background .12s, color .12s; }
.sidebar nav button:hover{ background:#eef4ff; color:var(--primary); }
.sidebar nav button.on{ background:var(--primary); color:#fff; font-weight:600; }
main{ margin-left:200px; margin-right:auto; }

/* 待办分组：异常 / 审批 */
.todo-cols{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.todo-sec{ border:1px solid #f0f1f3; border-radius:10px; padding:10px 12px; background:#fcfcfd; }
.todo-sec-h{ display:flex; align-items:center; justify-content:space-between; font-size:13px;
  font-weight:600; color:#333; margin-bottom:8px; }
.todo-cnt{ min-width:20px; height:20px; padding:0 6px; background:var(--primary); color:#fff;
  font-size:12px; line-height:20px; text-align:center; border-radius:10px; font-weight:600; }
.todo-sec .dash-empty{ padding:14px 0; font-size:12px; }

/* ===========================================================
   车辆档案：新能源车 / 三轮车 双 Tab
   =========================================================== */
.vtabs{ display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.vtabs .vtab{ border:1px solid var(--border); background:#fff; border-radius:10px;
  padding:9px 16px; font-size:14px; cursor:pointer; color:#444;
  transition:all .15s ease; }
.vtabs .vtab:hover{ border-color:var(--primary); color:var(--primary); }
.vtabs .vtab b{ margin-left:5px; font-weight:700; }
.vtabs .vtab.on{ background:var(--primary); color:#fff; border-color:var(--primary);
  box-shadow:0 1px 3px rgba(26,115,232,.28); }

/* ===========================================================
   手机适配：≤768px
   =========================================================== */
@media (max-width:768px){
  /* 头部改为静态，导航下沉为底部固定 Tab 栏 */
  header{
    position:static;
    padding:10px 12px;
    height:auto;
  }
  .logo{ font-size:15px; margin-right:12px; white-space:nowrap; }
  .user{ font-size:12px; gap:6px; flex-shrink:0; }
  .user #uname{ display:inline-block; max-width:88px; overflow:hidden;
                text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
  .user .btn{ padding:4px 9px; font-size:12px; }
  .role{ padding:2px 8px; }

  /* 底部导航：可横向滑动，避免 7 个 Tab 拥挤 */
  nav{
    position:fixed; left:0; right:0; bottom:0; top:auto;
    flex-wrap:nowrap;
    gap:0;
    background:#fff;
    border-top:1px solid var(--border);
    box-shadow:0 -2px 10px rgba(0,0,0,.08);
    padding:6px 4px;
    z-index:50;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  nav button, .sidebar nav button{
    flex:0 0 auto;
    width:auto;   /* 覆盖桌面 .sidebar nav button 的 width:100%，否则每个 Tab 占满整屏宽 */
    padding:9px 13px;
    font-size:12px;
    border-radius:9px;
    white-space:nowrap;
    color:#555;
  }
  nav button.on{ background:var(--primary); color:#fff; font-weight:600; }

  /* 下拉子菜单：底部导航上方的全宽浮层。
     nav 为 overflow-x:auto（纵向随之变 auto 裁剪），absolute 子菜单会被裁掉且
     从屏幕底边向下弹出不可见；改用 fixed 浮层向上展开，不受滚动容器裁剪影响 */
  .nav-drop > .drop-menu{
    position:fixed;
    left:8px; right:8px;
    top:auto; bottom:calc(66px + env(safe-area-inset-bottom, 0px));
    min-width:0; width:auto;
    max-height:52vh; overflow-y:auto;
    box-shadow:0 -8px 28px rgba(20,40,80,.22);
    z-index:70;
  }
  .nav-drop > .drop-menu button{ display:block; width:100%; text-align:left;
    padding:12px 14px; font-size:14px; border-radius:8px; }

  /* 主内容留底部导航空间 */
  main{ padding:12px; padding-bottom:66px; max-width:100%; }

  /* 卡片更紧凑、圆角更大 */
  .card{ padding:14px; margin-bottom:12px; border-radius:12px; }

  /* 车辆档案双 Tab 在手机上并列铺满 */
  .vtabs .vtab{ flex:1 1 0; min-width:0; text-align:center; padding:10px 8px; font-size:13px; }

  /* 表单网格单列 */
  .grid{ grid-template-columns:1fr !important; gap:10px; }

  /* 表格横向滚动，列不折行 */
  table{ display:block; width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  th,td{ white-space:nowrap; padding:10px 12px; font-size:13px; }

  /* 触控目标放大 */
  .btn{ padding:8px 14px; font-size:13px; }
  .row{ gap:8px; }
  h2{ font-size:15px; }

  /* 明细行（维保项目六列）在手机上更易点 */
  #items .row{ align-items:flex-end; }

  /* 看板：双列变单列，KPI 与待处理项紧凑化 */
  .dash-cols{ grid-template-columns:1fr; }
  .kpi-val{ font-size:22px; }
  .kpi-card{ padding:13px 14px; gap:10px; }
  .kpi-ic{ width:38px; height:38px; flex-basis:38px; }
  .need-item{ flex-wrap:wrap; gap:8px 10px; }
  .need-main{ flex-basis:100%; order:2; }
  .need-fee{ order:3; }
  .need-go{ order:4; margin-left:auto; }

  /* 数据分析看板移动端 */
  .dash-top{ margin-bottom:10px; }
  .dash-seg button{ padding:6px 11px; font-size:12px; }
  .ana-cost{ gap:16px; }
  .donut{ width:128px; height:128px; flex-basis:128px; }
  .donut-c{ inset:22px; font-size:16px; }
  .owner-row{ padding:9px 12px; }

  /* 左侧导航 → 移动端底部 Tab；顶栏时间缩小 */
  .sidebar{ display:contents; }
  .sidebar nav{ flex-direction:row; }
  main{ margin-left:0; }
  .hd-time{ font-size:11px; }
  .hd-time b{ font-size:11px; }

  /* 首页 / 合并看板移动端 */
  .home-grid{ grid-template-columns:1fr; }
  .period-cols{ grid-template-columns:1fr; }
  .home-dash-grid{ grid-template-columns:1fr; }
  .hd-v{ font-size:26px; }
  .mcompare-row{ gap:10px; }
  .ann-post{ margin-top:10px; }
  .todo-cols{ grid-template-columns:1fr; }
}

/* 刘海屏安全区 */
@supports(padding:max(0px)){
  @media (max-width:768px){
    nav{ padding-bottom:calc(6px + env(safe-area-inset-bottom)); }
    main{ padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
  }
}

/* ===========================================================
   维修价格库 · 选择面板
   =========================================================== */
.pp-item{ display:flex; align-items:baseline; gap:10px; padding:8px 10px;
  border:1px solid #eef0f2; border-radius:8px; margin-bottom:6px; cursor:pointer;
  background:#fff; transition:border-color .12s, background .12s; }
.pp-item:hover{ border-color:var(--primary); background:#f5f9ff; }
.pp-item b{ font-size:13px; color:#1a1a1a; flex:1; min-width:0; }
.pp-item .small{ white-space:nowrap; }

/* 看板可点行（按维修类型表）与费用构成环形图：点击跳转对应类型工单列表 */
tr.row-click{ cursor:pointer; }
tr.row-click:hover td{ background:#f0f6ff; }
/* 看板跳转带入的列表额外筛选：可清除标签 */
.filter-chips{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:10px 0 2px; min-height:0; }
.filter-chips:empty{ display:none; }
.fc-label{ font-size:13px; color:#666; }
.fc-chip{ display:inline-flex; align-items:center; gap:6px; font-size:13px; background:#e8f0fe; color:#1a73e8;
  border:1px solid #c6dbff; border-radius:14px; padding:3px 10px; }
.fc-chip a{ cursor:pointer; color:#1a73e8; font-weight:700; margin-left:2px; text-decoration:none; }
.fc-chip a:hover{ color:#d93025; }

/* 车辆档案：从工单系统自动抓取的派生字段（只读） */
td.derived{ color:#1565c0; font-weight:600; background:#eef4ff; }
