/* ANH meter page */
.anh-module { width: 100%; }
.anh-page-grid { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 2fr); gap: 12px; }
.anh-single-phase-grid { grid-template-rows: auto auto auto; }
.anh-single-phase-grid .anh-battery-card { grid-column: 1; grid-row: 1 / span 3; }
.anh-single-phase-grid .anh-single-input { grid-column: 2; grid-row: 1; }
.anh-single-phase-grid .anh-single-load { grid-column: 2; grid-row: 2; }
.anh-single-phase-grid .anh-single-ebus { grid-column: 2; grid-row: 3; }
.anh-bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.anh-module .card { padding: 16px; }
.anh-card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text-secondary); font-size: 11px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; }
.anh-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.anh-purple { background: var(--purple); } .anh-blue { background: var(--info); } .anh-green { background: #15803d; } .anh-success { background: var(--success); }
.anh-soc-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 16px; }
.anh-soc-ring { position: relative; width: 140px; height: 140px; }
.anh-soc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anh-soc-bg, .anh-soc-fg { fill: none; stroke-width: 10; }
.anh-soc-bg { stroke: #f0f0eb; }
.anh-soc-fg { stroke: var(--purple); stroke-linecap: round; stroke-dasharray: 263.9; transition: stroke-dashoffset .6s ease; }
.anh-soc-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 32px; font-weight: 700; }
.anh-soc-label { color: var(--text-secondary); font-size: 16px; font-weight: 600; }
.anh-kpi-grid { display: grid; gap: 8px; }
.anh-kpi-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.anh-kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.anh-kpi-box { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-panel); }
.anh-label { color: var(--text-secondary); font-size: 10px; font-weight: 500; letter-spacing: .3px; }
.anh-value { margin-top: 2px; color: var(--text-primary); font-size: 16px; font-weight: 600; }
.anh-value span { margin-left: 3px; color: var(--text-secondary); font-family: var(--font-sans); font-size: 11px; font-weight: 400; }
.anh-table-scroll { overflow-x: auto; }
.anh-phase-table { width: 100%; border-collapse: collapse; min-width: 390px; }
.anh-phase-table th { padding: 6px 8px; border-bottom: 1px solid var(--border-default); color: var(--text-secondary); font-size: 10px; font-weight: 500; letter-spacing: .3px; text-align: right; }
.anh-phase-table th:first-child { text-align: left; }
.anh-phase-table td { padding: 12px 8px; border-bottom: 1px solid var(--border-default); font-size: 13px; text-align: right; white-space: nowrap; }
.anh-phase-table td:first-child { color: var(--text-primary); font-family: var(--font-sans); font-size: 12px; font-weight: 500; text-align: left; }
.anh-phase-table tr:last-child td { border-bottom: none; }
.anh-phase-chip { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.anh-phase-chip.phase-0 { background: #ef4444; } .anh-phase-chip.phase-1 { background: #f59e0b; } .anh-phase-chip.phase-2 { background: #3b82f6; }
.anh-inline-kpis { margin-top: 12px; } .anh-center { text-align: center; }
.anh-section-label { margin: 12px 0 8px; padding: 10px 0 6px; border-bottom: 1px solid var(--border-default); color: var(--text-primary); font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.anh-energy-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.anh-energy-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-panel); }
.anh-energy-box > span { color: var(--text-secondary); font-size: 11px; } .anh-energy-box strong { font-size: 14px; } .anh-energy-box small { margin-left: 3px; color: var(--text-secondary); font-family: var(--font-sans); font-size: 11px; font-weight: 400; }
.anh-empty { padding: 48px 20px !important; text-align: center; } .anh-empty strong { color: var(--text-primary); } .anh-empty p { margin: 6px 0 0; color: var(--text-secondary); font-size: 13px; }
@media (max-width: 900px) {
    .anh-page-grid, .anh-bottom-grid { grid-template-columns: 1fr; }
    .anh-single-phase-grid { grid-template-rows: none; }
    .anh-single-phase-grid .anh-battery-card,
    .anh-single-phase-grid .anh-single-input,
    .anh-single-phase-grid .anh-single-load,
    .anh-single-phase-grid .anh-single-ebus { grid-column: auto; grid-row: auto; }
}
@media (max-width: 480px) { .anh-kpi-grid-2, .anh-kpi-grid-3, .anh-energy-row { grid-template-columns: 1fr; } }
