/* 20260906-hardware-maintenance-1 — scoped to the combined hardware view. */
.hm-page {
    --hm-bg: #1b1e20; --hm-panel: #25292c; --hm-head: #303538; --hm-border: #495054;
    --hm-text: #f0f1f2; --hm-muted: #b0b5b8; --hm-dim: #90989c;
    box-sizing: border-box; min-height: 100%; width: 100%; min-width: 0; padding: 16px;
    background: var(--hm-bg); color: var(--hm-text); font: 12px/1.45 Roboto, Arial, sans-serif;
    container-type: inline-size; overflow: visible;
}
.hm-page *, .hm-page *::before, .hm-page *::after { box-sizing: border-box; }
.hm-page h1, .hm-page h2, .hm-page p { margin: 0; }
.hm-page h1 { font-size: 23px; font-weight: 600; line-height: 1.25; }
.hm-page h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.hm-page button, .hm-page input, .hm-page select {
    font: inherit; color: var(--hm-text); background: #373d41; border: 1px solid #626a6f;
    border-radius: 3px; min-height: 32px; padding: 5px 9px; max-width: 100%;
}
.hm-page button { cursor: pointer; }
.hm-page button:hover { background: #495155; }
.hm-page button:disabled { opacity: .6; cursor: progress; }
.hm-page :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hm-page button.hm-link { padding: 1px 0; min-height: 24px; border: 0; background: transparent; text-align: left; text-decoration: underline; text-underline-offset: 3px; color: #edf0f1; }
.hm-page button.hm-link:hover { color: #fff; text-decoration-thickness: 2px; }
.hm-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 13px; }
.hm-heading p { color: var(--hm-muted); font-size: 11px; margin-top: 5px; }
.hm-toolbar { display: flex; gap: 7px; flex-wrap: wrap; justify-content: end; flex: 0 0 auto; }
.hm-mission-strip { display: grid; grid-template-columns: minmax(160px, 2fr) repeat(5, minmax(70px, 1fr)); border: 1px solid var(--hm-border); background: #252a2d; }
.hm-mission-strip > div { padding: 9px 11px; min-width: 0; border-right: 1px solid var(--hm-border); }
.hm-mission-strip > div:last-child { border: 0; }
.hm-mission-strip span { display: block; color: var(--hm-dim); text-transform: uppercase; font-size: 10px; margin-bottom: 3px; }
.hm-mission-strip strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.hm-context { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 7px 2px 10px; color: var(--hm-muted); font-size: 11px; }
.hm-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: 2px 0 13px; }
.hm-page .hm-kpis > button { text-align: left; display: flex; flex-direction: column; gap: 7px; padding: 12px; min-width: 0; min-height: 112px; background: #2c3236; border: 1px solid var(--hm-border); }
.hm-page .hm-kpis > button:hover { background: #3c4449; }
.hm-kpis span { text-transform: uppercase; font-size: 10px; color: #c0c5c8; }
.hm-kpis strong { font-size: 24px; line-height: 1.15; font-weight: 500; overflow-wrap: normal; }
.hm-kpis small { font-size: 10px; color: var(--hm-muted); }
.hm-main-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .75fr); gap: 12px; margin-bottom: 12px; align-items: stretch; }
.hm-panel { min-width: 0; background: var(--hm-panel); border: 1px solid var(--hm-border); border-radius: 3px; overflow: hidden; scroll-margin-top: 10px; }
.hm-panel-heading { background: var(--hm-head); padding: 9px 11px; border-bottom: 1px solid var(--hm-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.hm-panel-heading > span { font-size: 10px; color: var(--hm-muted); }
#hm-health { grid-column: 3; }
#hm-trends { grid-column: 2; }
.hm-main-grid .hm-table-scroll { max-height: 370px; overflow-y: auto; }
.hm-main-grid table thead { position: sticky; top: 0; z-index: 1; }
.hm-table-scroll { width: 100%; overflow-x: auto; scrollbar-color: #687176 #292e31; }
.hm-page table { border-collapse: collapse; width: 100%; table-layout: auto; background: transparent; color: var(--hm-text); }
.hm-page th { font-weight: 500; color: #bbc2c6; background: #303639; font-size: 10px; text-transform: uppercase; text-align: left; }
.hm-page th, .hm-page td { padding: 8px 10px; border-bottom: 1px solid #454d52; vertical-align: top; overflow-wrap: normal; word-break: normal; line-height: 1.4; }
.hm-page th, .hm-page td, .hm-page button.hm-link,
#openmct-app .hm-page th, #openmct-app .hm-page td, #openmct-app .hm-page button.hm-link {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
}
.hm-page td { font-size: 11px; }
.hm-page tbody tr:last-child td { border-bottom: 0; }
.hm-page tbody tr:nth-child(even) { background: #292f33; }
.hm-page tbody tr[data-row-action] { cursor: pointer; }
.hm-page tbody tr[data-row-action]:hover { background: #3a4247; }
.hm-page td small { display: block; color: var(--hm-dim); margin-top: 3px; font-size: 10px; }
.hm-page .hm-number { text-align: right; font-variant-numeric: tabular-nums; }
.hm-page .hm-empty { padding: 18px 12px; color: var(--hm-muted); font-size: 12px; line-height: 1.7; }
.hm-empty .hm-link { margin-left: 5px; }
.hm-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 10px; }
.hm-filters label { display: flex; flex-direction: column; gap: 4px; color: var(--hm-muted); font-size: 10px; min-width: 145px; max-width: 100%; }
.hm-filters select { min-width: 145px; }
.hm-search { flex: 1; }
.hm-search input { width: 100%; min-width: 150px; }
.hm-legend { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 10px 9px; }
.hm-page .hm-legend button { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 6px; background: transparent; border-color: #5d666c; font-size: 10px; }
.hm-page .hm-legend button[aria-pressed="false"] { color: #939b9f; border-style: dashed; }
.hm-legend-line { display: inline-block; width: 14px; height: 2px; background: currentColor; }
.hm-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 0 10px 9px; max-height: 330px; overflow-y: auto; }
.hm-chart { border: 1px solid #414a50; background: #202629; border-radius: 2px; }
.hm-page .hm-chart-link { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: left; }
.hm-page .hm-chart-link:hover { background: #2c353b; }
.hm-chart svg { display: block; width: 100%; height: 145px; }
.hm-chart svg text { font-family: Roboto, Arial, sans-serif; font-size: 9px; fill: #b1bbc0; }
.hm-chart svg .hm-svg-title { fill: #e0e6e9; font-size: 10px; }
.hm-chart svg .hm-gridline { stroke: #424c52; stroke-width: .6; }
.hm-chart svg .hm-trend-line { fill: none; stroke: #d4dde2; stroke-width: 1.5; }
.hm-chart svg circle { fill: #edf3f6; }
.hm-chart-empty { color: var(--hm-muted); padding: 24px 12px; font-size: 12px; }
.hm-note { padding: 9px 11px; color: var(--hm-muted); font-size: 10px; line-height: 1.55; }
.hm-health-layout { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 15px; align-items: center; }
.hm-page button.hm-donut, .hm-page button.hm-donut:hover,
#openmct-app .hm-page button.hm-donut, #openmct-app .hm-page button.hm-donut:hover {
    width: 132px; height: 132px; margin: 0 auto; padding: 0; position: relative;
    border: 0; border-radius: 50%; display: grid; place-items: center;
    appearance: none; box-shadow: none;
    background: transparent !important;
}
.hm-donut-ring { display: block; width: 132px; height: 132px; }
.hm-donut-ring circle { fill: none; stroke-width: 19px; }
.hm-donut-ring .hm-donut-track { stroke: #505b62; }
.hm-donut-ring .hm-donut-value { stroke: #b5c0c6; }
.hm-donut > .hm-donut-center { position: absolute; inset: 19px; width: 94px; height: 94px; border-radius: 50%; background: var(--hm-panel); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hm-donut strong { font-size: 24px; font-weight: 500; }
.hm-donut span { font-size: 9px; color: var(--hm-muted); }
.hm-page .hm-health-summary button { display: flex; justify-content: space-between; gap: 10px; width: 100%; background: transparent; border: 0; border-bottom: 1px solid #50595f; padding: 6px 0; border-radius: 0; text-align: left; font-size: 11px; }
.hm-health-summary p { margin-top: 8px; color: var(--hm-muted); font-size: 10px; }
.hm-operations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
#hm-signals { margin-bottom: 12px; }
#hm-signals table { min-width: 690px; }
.hm-footer { display: flex; justify-content: space-between; gap: 15px; color: var(--hm-muted); font-size: 10px; padding: 3px 1px 8px; }
.hm-announcement { color: #e2e6e9; font-size: 11px; }
.hm-page .hm-drawer { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); margin: 20px 20px 20px auto; padding: 0; background: #272e33; color: var(--hm-text); border: 1px solid #73808a; border-radius: 5px; box-shadow: 0 10px 45px #0008; overflow: auto; }
.hm-drawer::backdrop { background: #0007; }
.hm-drawer-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px; background: #363f45; border-bottom: 1px solid #53616a; position: sticky; top: 0; }
.hm-page .hm-drawer-heading h2 { text-transform: none; font-size: 17px; }
.hm-drawer dl { margin: 0; padding: 4px 15px 15px; }
.hm-drawer dl > div { padding: 10px 0; border-bottom: 1px solid #414e57; }
.hm-drawer dt { color: #aab9c2; font-size: 10px; text-transform: uppercase; margin-bottom: 4px; }
.hm-drawer dd { margin: 0; color: #f0f3f5; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
@container (max-width: 1150px) {
    .hm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-main-grid { grid-template-columns: minmax(0, 1fr); }
    #hm-trends, #hm-health { grid-column: auto; grid-row: auto; }
    .hm-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-health-layout { grid-template-columns: 140px minmax(140px, 1fr); }
    .hm-operations-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 720px) {
    .hm-heading, .hm-context { flex-direction: column; gap: 8px; }
    .hm-toolbar { justify-content: start; }
    .hm-mission-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-mission-strip > div { border-bottom: 1px solid var(--hm-border); }
    .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-kpis strong { font-size: 21px; }
    .hm-charts { grid-template-columns: minmax(0, 1fr); }
    .hm-panel table { min-width: 500px; }
    .hm-footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .hm-page *, .hm-page *::before, .hm-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
