/* Preserve the current history layout; absent sensors leave no blank cards. */
#cHistGrid .ch-cell[hidden]{display:none!important}
.station-usage-badge{display:flex;align-items:center;gap:8px;flex:none;max-width:220px;min-height:38px;padding:6px 10px;border:1px solid rgba(49,168,191,.3);border-radius:8px;background:rgba(8,43,59,.7);color:var(--text2,#dcebf0);box-sizing:border-box;font-family:var(--panel-font);line-height:1.35}
.station-usage-badge[hidden]{display:none!important}
.station-usage-badge svg{width:22px;height:22px;flex:none;fill:none;stroke:#20c9b5;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.station-usage-badge span{display:flex;flex-direction:column;gap:2px}
.station-usage-badge b{font-size:11px;font-weight:600;white-space:nowrap}
.station-usage-badge small{font-size:9px;color:var(--text-dim,#9fb8c2);white-space:nowrap}
.station-usage-badge[data-usage^="admin"] svg{stroke:#20c9f4}
html[data-theme="day"] .station-usage-badge{background:rgba(240,249,250,.85);border-color:#c9dfe3;color:#244550}
@media(max-width:760px){.station-usage-badge{padding:5px 8px;gap:6px}.station-usage-badge b{font-size:10px}.station-usage-badge small{font-size:8.5px}.station-usage-badge svg{width:19px;height:19px}}
#view-overview.ov-off-field .ov-water{display:none!important}
html[data-panel-placement="off-field"] body.overview-active #cropHeader{grid-template-columns:minmax(0,1fr);max-width:1320px;margin-inline:auto}
#view-overview.ov-off-field{max-width:1320px;margin-inline:auto}
#view-overview.ov-off-field .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"measures measures" "chart chart" "forecast forecast" "micro micro" "station quick"}
#view-overview.ov-off-field .ov-measures{grid-area:measures}#view-overview.ov-off-field .ov-chart{grid-area:chart}#view-overview.ov-off-field .ov-forecast{grid-area:forecast}#view-overview.ov-off-field .ov-micro{grid-area:micro}#view-overview.ov-off-field .ov-station{grid-area:station}#view-overview.ov-off-field .ov-quick{grid-area:quick}
#view-overview .ov-history-section{margin-top:14px}
#view-overview .ov-history-section .ch-sub{font-size:11px;line-height:1.5;margin-bottom:10px}
#view-overview.ov-off-field #microGrid{display:flex;flex-direction:column;gap:18px}
#view-overview .ov-history-group{min-width:0}
#view-overview .ov-history-group h3{margin:0 0 10px;color:var(--text2);font-size:12px;font-weight:600}
#view-overview .ov-history-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#view-overview .ov-history-metrics .cell{min-width:0;padding:13px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;min-height:94px}
#view-overview .ov-history-metrics .cell b{font-size:18px;white-space:nowrap}
#view-overview .ov-history-metrics .cell span{font-size:11px;line-height:1.45}
#view-overview .ov-history-year{padding-top:16px;border-top:1px solid var(--border,rgba(49,168,191,.2))}
#view-overview .ov-history-note{margin:10px 0 0;color:var(--text-dim);font-size:10px;line-height:1.5}
#view-overview .four-metrics .ov-history-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){#view-overview.ov-off-field .overview-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"measures" "chart" "forecast" "micro" "station" "quick"}}
@media(max-width:640px){#view-overview .ov-history-metrics,#view-overview .four-metrics .ov-history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#view-overview .ov-history-now:not(.four-metrics) .ov-history-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}#view-overview .ov-history-metrics .cell b{font-size:15px}#view-overview .ov-history-metrics .cell span{font-size:10px}}
