/* ============================================================
   2026-11-12：锁密码通知 字体/颜色/大小 对齐 锁电量通知
   基准（hx-script-08 的 .hx-dn-*）：
     行      padding 9px 6px · gap 9px · 下边框 var(--border-light)
     文字    13px / line-height 1.42 / var(--text-primary)
     绿      #3f9e6a   橙 #c9801f   红 #d6453b（加粗 700）
   ============================================================ */
#hx-dpn-card .hx-dpn-row {
  font-size: 13px !important;
  line-height: 1.42 !important;
  padding: 9px 6px !important;
  gap: 9px !important;
  border-bottom: 1px solid var(--border-light, #f0f0f0) !important;
}
#hx-dpn-card .hx-dpn-row:last-child { border-bottom: none !important; }
#hx-dpn-card .hx-dpn-room {
  color: var(--text-primary, #1f2d3d) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  min-width: 46px !important;
}
#hx-dpn-card .hx-dpn-name {
  color: #3f9e6a !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
  font-weight: 400 !important;
}
/* 剩余天数徽章：与锁电量的 红/橙/绿 完全同色系 */
#hx-dpn-card .hx-dpn-left {
  font-size: 11.5px !important;
  padding: 1px 7px !important;
  border-radius: 9px !important;
  font-weight: 600 !important;
}
#hx-dpn-card .hx-dpn-left.exp  { background: #fdeeec !important; color: #d6453b !important; font-weight: 700 !important; }
#hx-dpn-card .hx-dpn-left.warn { background: #fdf6ea !important; color: #c9801f !important; font-weight: 700 !important; }
#hx-dpn-card .hx-dpn-left.norm { background: #eaf7ef !important; color: #3f9e6a !important; }
#hx-dpn-card .hx-dpn-btn {
  font-size: 11.5px !important;
  padding: 3px 10px !important;
}
/* 列表：向下拖动滚动，外框尺寸不变 */
#hx-dpn-card .hx-dpn-list {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  scrollbar-width: thin;
}
#hx-dpn-card .hx-dpn-list::-webkit-scrollbar { width: 6px; }
#hx-dpn-card .hx-dpn-list::-webkit-scrollbar-thumb { background: #d8dce3; border-radius: 3px; }
#hx-dpn-card .hx-dpn-list::-webkit-scrollbar-track { background: transparent; }
/* 汇总徽章 */
#hx-dpn-card .hx-dpn-badge { font-size: 11px !important; font-weight: 600 !important; }

/* 2026-11-12：锁密码通知每行强制单行，行高与锁电量一致（37px 视觉高度）
   姓名过长用省略号，不换行，避免把行撑成两行 */
#hx-dpn-card .hx-dpn-row {
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
}
#hx-dpn-card .hx-dpn-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#hx-dpn-card .hx-dpn-room {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
#hx-dpn-card .hx-dpn-left,
#hx-dpn-card .hx-dpn-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
