/* ===== 2026.v6495(光年指令)：资产端全局状态三色统一 =====
   规则（用户定义）：
     · 过期      = 正红  #dc2626（浅红底 #fef2f2 / 红边 #fecaca）
     · 临期(30天) = 正黄  文字 #a16207（黄底 #fefce8 / 黄边 #fde047）
     · 正常      = 绿    #15803d（浅绿底 #f0fdf4 / 绿边 #bbf7d0）
   作用范围：资产端全部列表/卡片标签（年检、二级维护、保险三段、证件、合同、二级维护等）。
   说明：本文件独立引入（asset-only.css 末尾有大括号异常，追加会失效）。 */

/* ---------- 过期：正红 ---------- */
html body[data-module="asset"] .lw-tag.is-danger,
html body[data-module="asset"] .lw-tag.is-exp,
html body[data-module="asset"] .lw-tag.is-over,
html body[data-module="asset"] .lw-ins3 .seg.st-exp,
html body[data-module="asset"] .lw-ins3 .seg.st-over,
html body[data-module="asset"] .lw-fld.is-danger .lw-fld-v,
html body[data-module="asset"] .lw-exp.is-danger{
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
  font-weight: 700 !important;
}

/* ---------- 临期（30 天内）：正黄 ---------- */
html body[data-module="asset"] .lw-tag.is-warn,
html body[data-module="asset"] .lw-ins3 .seg.st-warn,
html body[data-module="asset"] .lw-fld.is-warn .lw-fld-v,
html body[data-module="asset"] .lw-exp.is-warn{
  background: #fefce8 !important;
  color: #a16207 !important;
  border-color: #fde047 !important;
  font-weight: 700 !important;
}

/* ---------- 正常：绿 ---------- */
html body[data-module="asset"] .lw-tag.is-ok,
html body[data-module="asset"] .lw-ins3 .seg.st-ok,
html body[data-module="asset"] .lw-fld.is-ok .lw-fld-v,
html body[data-module="asset"] .lw-exp.is-ok{
  background: #f0fdf4 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}

/* ---------- 未录入：灰 ---------- */
html body[data-module="asset"] .lw-tag.is-empty,
html body[data-module="asset"] .lw-ins3 .seg.st-none,
html body[data-module="asset"] .lw-exp.is-empty{
  background: #f8fafc !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  font-weight: 500 !important;
}

/* 保险段汉字保持青色（不随状态变） */
html body[data-module="asset"] .lw-ins3 .seg i{
  color: #0d9488 !important;
  font-weight: 700 !important;
}

/* 顶部筛选胶囊（年检临期/已过期）同步三色 */
html body[data-module="asset"] .a-chip.is-warn,
html body[data-module="asset"] #at-exp-tip.is-warn{
  background: #fefce8 !important;
  color: #a16207 !important;
  border-color: #fde047 !important;
}
html body[data-module="asset"] .a-chip.is-danger,
html body[data-module="asset"] #at-exp-tip.is-danger{
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

/* ===== 2026.v6497：半挂车列表（#aj-list / 卡片）同样套用三色 =====
   这些位置的旧规则特异性较高（style.css / veh-align.css），这里用同等前缀提权覆盖。 */

/* 过期 = 正红 */
html body[data-module="asset"] #aj-list .lw-tag.is-danger,
html body[data-module="asset"] #aj-list .lw-tag.lw-insp.is-danger,
html body[data-module="asset"] #aj-list .xh-upload-item .lw-tag.is-danger,
html body[data-module="asset"] #veh-cards .lw-tag.is-danger,
html body[data-module="asset"] .xh-upload-item .lw-tag.is-danger{
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
  font-weight: 700 !important;
}

/* 临期（30 天内）= 正黄 */
html body[data-module="asset"] #aj-list .lw-tag.is-warn,
html body[data-module="asset"] #aj-list .lw-tag.lw-insp.is-warn,
html body[data-module="asset"] #aj-list .xh-upload-item .lw-tag.is-warn,
html body[data-module="asset"] #veh-cards .lw-tag.is-warn,
html body[data-module="asset"] .xh-upload-item .lw-tag.is-warn{
  background: #fefce8 !important;
  color: #a16207 !important;
  border-color: #fde047 !important;
  font-weight: 700 !important;
}

/* 正常 = 绿 */
html body[data-module="asset"] #aj-list .lw-tag.lw-insp:not(.is-warn):not(.is-danger):not(.is-empty),
html body[data-module="asset"] #veh-cards .lw-tag.lw-insp:not(.is-warn):not(.is-danger):not(.is-empty){
  background: #f0fdf4 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}
