/* HKA_TELEMETRY_ROWS_V111 — one full-width station per list row. */
#telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(1180px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
  height: auto !important;
  max-height: min(740px, calc(100vh - 48px)) !important;
  max-height: min(740px, calc(100dvh - 48px)) !important;
  box-sizing: border-box;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden !important;
  background: #fff !important;
  color: #24384f;
  border: 1px solid #dce3eb !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 52px #19364d26;
  font: 12px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  z-index: 240000 !important;
}
#telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide[aria-hidden="true"] { display: none !important; }
#telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide > header {
  flex: 0 0 auto; display: grid !important; grid-template-columns: minmax(0, 1fr) 28px 28px;
  min-height: 44px; gap: 6px; padding: 8px 12px !important;
  box-sizing: border-box; background: #fff !important; border-bottom: 1px solid #e7ecf1;
}
#telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide > header h2 {
  margin: 0 !important; font: 650 14px/1.35 Inter, system-ui, sans-serif !important;
  letter-spacing: 0; color: #24384f !important;
}
#telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide > header button {
  width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 5px;
  border: 1px solid #dfe6ed; border-radius: 6px; background: #f8fafc !important;
  color: #49647e !important; box-shadow: none;
}
#telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide > header .hka-telemetry-close {
  padding: 0; font-size: 20px; font-weight: 400;
}
#telemetryDashboardPanel.hka-telemetry-wide .htt-tabs {
  display: flex; gap: 3px; padding: 7px 12px 0; margin: 0;
  flex: 0 0 auto; border-bottom: 1px solid #e4eaf0; background: #fff;
}
html body #telemetryDashboardPanel.hka-telemetry-wide .htt-tab {
  appearance: none; display: flex; align-items: center; justify-content: center;
  gap: 7px; min-width: 0; min-height: 34px; margin: 0; padding: 7px 12px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 5px 5px 0 0;
  color: #627389 !important; background: transparent !important;
  font: 600 12px/1.35 Inter, system-ui, sans-serif; letter-spacing: 0; cursor: pointer;
  box-shadow: none; text-transform: none;
}
html body #telemetryDashboardPanel.hka-telemetry-wide .htt-tab[aria-selected="true"] {
  color: #195c9c !important; background: #f0f5fb !important; border-bottom-color: #286ba9;
}
html body #telemetryDashboardPanel.hka-telemetry-wide .htt-tab:hover { background: #f5f8fb !important; }
html body #telemetryDashboardPanel.hka-telemetry-wide .htt-tab:focus-visible,
#telemetryDashboardPanel.hka-telemetry-wide #telemetryDashboardList:focus-visible {
  outline: 2px solid #286ba9; outline-offset: -2px;
}
#telemetryDashboardPanel.hka-telemetry-wide .htt-count {
  display: inline-flex; justify-content: center; align-items: center;
  min-width: 19px; min-height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 4px; background: #edf1f5; color: #627389; font-size: 10px;
  font-variant-numeric: tabular-nums;
}
#telemetryDashboardPanel.hka-telemetry-wide [aria-selected="true"] .htt-count { background: #dfeaf7; color: #195c9c; }
#telemetryDashboardPanel.hka-telemetry-wide > .hka-list-search { flex: 0 0 auto; padding: 7px 12px; }
#telemetryDashboardPanel.hka-telemetry-wide > .hka-list-search input {
  min-height: 32px; height: 32px; padding: 6px 9px; border-radius: 6px; font-size: 12px;
}
#telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide #telemetryDashboardList {
  display: block !important; flex: 1 1 auto; min-height: 0; max-height: none !important;
  overflow: auto !important; padding: 0 12px !important;
  background: #fff; scrollbar-color: #c2ceda #f5f7fa; overscroll-behavior: contain;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-row {
  display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 12px;
  width: 100%; min-width: 0; margin: 0 !important; padding: 10px 3px;
  box-sizing: border-box; background: #fff; border: 0;
  border-bottom: 1px solid #e7ecf1; border-radius: 0; box-shadow: none;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-row:hover { background: #f8fafc; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-photo-stack { flex: 0 0 44px; width: 44px; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-photo {
  aspect-ratio: 1; height: 44px; border-radius: 5px; background: #f0f3f7;
  border-color: #e1e7ee;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-photo img { height: 100%; object-fit: cover; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-photo > span { font-size: 16px; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-weather,
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-station-indicator.is-tma {
  margin-top: 3px; min-height: 0; gap: 1px;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-weather svg,
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-tma-icon-svg { width: 17px; height: 14px; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-weather-label,
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-station-indicator-label {
  font-size: 9px; font-weight: 500; line-height: 1.25; max-width: 100%;
  overflow: visible; white-space: normal; overflow-wrap: anywhere;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-content {
  flex: 1 1 0;
  display: grid; grid-template-columns: minmax(180px, .85fr) minmax(0, 2fr);
  column-gap: 16px; row-gap: 3px; align-content: start; min-width: 0;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-row-head {
  grid-column: 1; grid-row: 1; align-items: flex-start; flex-wrap: wrap; gap: 5px 9px;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-name { gap: 5px; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-name > strong {
  color: #24384f; font-size: 12px; font-weight: 650; line-height: 1.4;
  white-space: normal; overflow: visible; overflow-wrap: anywhere;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-name img { width: 12px; height: 12px; flex-basis: 12px; }
/* The type is already stated by the selected tab. */
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-type { display: none; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-datetime {
  grid-column: 1; grid-row: 2; align-self: start; flex-wrap: wrap; gap: 3px 7px;
  margin-top: 0; color: #75859a; font-size: 10px; font-weight: 400; line-height: 1.45;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-datetime time + time { padding-left: 7px; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-state { gap: 4px; font-size: 10px; font-weight: 500; line-height: 1.5; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-state i { width: 5px; height: 5px; box-shadow: none; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics {
  grid-column: 2; grid-row: 1 / span 2; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 6px; margin: 0;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics > div {
  padding: 3px 8px; min-width: 0; border: 0; border-left: 1px solid #e7ecf1;
  border-radius: 0; background: transparent; box-sizing: border-box;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics span {
  color: #6b7e93; font-size: 10px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics b {
  margin-top: 2px; color: #24384f; font-size: 15px; font-weight: 650;
  line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics small { font-size: 10px; font-weight: 500; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics.is-climate {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics.is-climate > div {
  min-height: 0; grid-template-columns: 14px minmax(0, 1fr); column-gap: 5px;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-aws-parameter-icon { width: 14px; height: 18px; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-aws-icon-svg { width: 14px; height: 14px; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-aws-label {
  white-space: normal; overflow: visible; text-overflow: clip;
}
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-empty,
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-loading { grid-column: 1 / -1; min-height: 72px; font-size: 12px; }
#telemetryDashboardPanel.hka-telemetry-wide .htt-empty { flex: 0 0 auto; margin: 0; padding: 9px 12px; color: #6b7e93; font: 12px/1.45 Inter, system-ui, sans-serif; }
#telemetryDashboardPanel.hka-telemetry-wide .htt-empty[hidden] { display: none !important; }
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-row[hidden],
#telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-row[data-hka-list-filtered="true"] { display: none !important; }
/* Keep hidden categories hidden, including when the reader inserts fresh rows. */
#telemetryDashboardPanel[data-hka-telemetry-tab="rainfall"] .telemetry-dashboard-row:not([data-station-type="rainfall"]),
#telemetryDashboardPanel[data-hka-telemetry-tab="tma"] .telemetry-dashboard-row:not([data-station-type="tma"]),
#telemetryDashboardPanel[data-hka-telemetry-tab="climate"] .telemetry-dashboard-row:not([data-station-type="climate"]) { display: none !important; }
@media (max-width: 820px) {
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-content {
    display: block;
  }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-datetime { margin-top: 3px; }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics { margin-top: 7px; }
}
@media (max-width: 600px) {
  #telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide {
    width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 24px) !important; max-height: calc(100dvh - 24px) !important;
    border-radius: 8px !important;
  }
  #telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide > header {
    grid-template-columns: minmax(0, 1fr) 34px 34px; padding: 6px 9px !important; gap: 5px;
  }
  #telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide > header button { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
  #telemetryDashboardPanel.hka-telemetry-wide .htt-tabs { padding: 4px 7px 0; gap: 2px; }
  html body #telemetryDashboardPanel.hka-telemetry-wide .htt-tab { flex: 1 1 0; min-height: 42px; gap: 4px; padding: 6px 4px; font-size: 11px; }
  #telemetryDashboardPanel.hka-telemetry-wide .htt-label { min-width: 0; text-align: center; }
  #telemetryDashboardPanel.hka-telemetry-wide .htt-count { flex: 0 0 auto; min-width: 17px; padding: 0 4px; font-size: 9px; }
  #telemetryDashboardPanel.hka-telemetry-wide > .hka-list-search { padding: 6px 8px; }
  #telemetryDashboardPanel.hka-telemetry-wide > .hka-list-search input { height: 36px; font-size: 16px; }
  #telemetryDashboardPanel#telemetryDashboardPanel.hka-telemetry-wide #telemetryDashboardList { padding: 0 8px !important; }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-row { gap: 8px; padding: 9px 0; }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-photo-stack { flex-basis: 40px; width: 40px; }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-photo { height: 40px; }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics { gap: 4px; }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics.is-climate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics > div { padding: 3px 5px; }
  #telemetryDashboardPanel.hka-telemetry-wide .telemetry-dashboard-metrics b { font-size: 14px; }
}
