/* 资产台账 — full-width table, then map, then selected detail */
.assets-master {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.assets-master .table-scroll { overflow-x: auto; }
.assets-master .dense-table { width: 100%; }
.assets-master .dense-table td { white-space: nowrap; }

.assets-count { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.assets-count b { color: var(--ink); }

.a-name { font-weight: 600; }

.dim-row-idle td:first-child { border-left: 1px dashed var(--idle); }
.dim-row-wake td:first-child { border-left: 3px solid var(--wake); }
.dim-row-alive td:first-child { border-left: 3px solid var(--alive); }
.dim-row-idle .a-name { color: #5F6B79; }
.dim-row-idle .t-id { opacity: 0.75; }
.dim-row-alive { background: var(--alive-bg); }
.dim-row-alive .a-name { color: #2E6B44; }

.assets-master .dense-table tbody tr.dim-row-idle.selected { background: var(--idle-bg); }
.assets-master .dense-table tbody tr.dim-row-wake.selected { background: var(--wake-bg); }
.assets-master .dense-table tbody tr.dim-row-alive.selected { background: var(--alive-bg); }

.assets-mini-map {
  margin-top: 16px;
  padding: 16px 20px 12px;
}
.assets-mini-map .card-title { font-size: 13.5px; margin-bottom: 8px; }
.assets-mini-map .chart { height: 220px; }

.assets-detail {
  margin-top: 16px;
  scroll-margin-top: 72px;
}

.assets-detail .door-in {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 28px 32px;
  align-items: start;
  padding: 22px 24px;
}
.detail-title { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.detail-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr auto;
  gap: 18px 20px;
  align-items: start;
}
.detail-kpis > div { display: flex; flex-direction: column; }
.detail-kpis small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.detail-kpis strong { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.detail-kpis em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.detail-score { align-items: center; text-align: center; }
.score-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.score-hint a {
  display: inline-block;
  margin: 4px 0 0 6px;
  color: #9A6613;
  font-weight: 700;
}
.score-hint a:hover { text-decoration: underline; }

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  grid-template-rows: 118px 118px;
  gap: 8px;
}
.photo-mosaic .thumb { width: 100%; height: 100%; min-height: 0; }
.floorplan {
  grid-row: span 2;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  gap: 4px;
}
.floorplan span { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.floorplan svg { flex: 1; width: 100%; }

.detail-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tele-card { padding: 18px 20px; min-width: 0; }
.tele-card .chart { height: 140px; margin-top: 8px; }
.tele-metric { font-size: 20px; white-space: nowrap; }
.tele-metric small { font-size: 12px; margin-left: 4px; }
.ratio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.ratio-block { margin-top: 0; }
.ratio-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.ratio-head small { color: var(--ink-3); }
.ratio-head b { font-variant-numeric: tabular-nums; font-weight: 700; flex-shrink: 0; }
.ratio-block .sbar { width: 100% !important; display: block !important; min-width: 0; }
.tele-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #A03327;
  background: var(--danger-bg);
  border-radius: var(--r-s);
  padding: 9px 12px;
}

.detail-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
.detail-info .card { padding: 18px 20px; }
.kv-row {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 6px 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row small { color: var(--ink-3); }
.kv-row span { text-align: left; font-variant-numeric: tabular-nums; line-height: 1.5; min-width: 0; }
.kv-row .mono { font-size: 12px; overflow-wrap: anywhere; }

.detail-info .timeline li { padding-bottom: 18px; }
.detail-info .tl-body { line-height: 1.55; }
.detail-info .tl-body small { display: block; margin-top: 4px; line-height: 1.5; }

@media (max-width: 1280px) {
  .detail-hero { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .detail-charts, .detail-info { grid-template-columns: 1fr; }
}
