/* Height is governed by .sp-content__well, which is already sized against the
   frame and scrolls internally. The page only needs to be a flex column so the
   component list can fill whatever height the well gives it. */
.status-overview-page {
  display: flex;
  flex-direction: column;
}
.status-overview-header { flex: 0 0 auto; }
.status-summary { align-items: stretch; display: flex; gap: 7px; }
.status-summary-metric {
  align-items: center;
  background: linear-gradient(180deg,#353535 0%,#242424 100%); background-color:#242424;
  border: 1px solid rgba(0,0,0,.72);
  border-radius: 6px;
  color: #aeb2b4;
  display: grid;
  gap: 1px 9px;
  grid-template-columns: auto auto;
  min-height: 32px;
  padding: 0 10px;
}
.status-summary-metric span { color:#d0d3d5; font-size:9px; font-weight:500; text-transform:uppercase; }
.status-summary-metric strong { color: #f0f2f3; font-size: 14px; grid-column: 2; grid-row: 1; }
.status-summary-metric.is-operational strong { color: #54dc6c; }
.status-summary-metric.is-attention strong { color: #ff9a62; }
.status-toolbar {
  align-items: end;
  background: #252525;
  border-bottom: 1px solid #484848;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(330px,auto) minmax(220px,1fr) auto;
  padding: 10px 14px;
}
.status-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.status-filters button {
  background: #27292a;
  border: 1px solid #474a4c;
  border-radius: 17px;
  color: #aeb2b4;
  cursor: pointer;
  font: 500 10px "IBM Plex Sans",sans-serif;
  min-height: 30px;
  padding: 0 13px;
}
.status-filters button:hover { background: #313334; color: #e4e6e7; }
.status-filters button.is-active { background: rgba(0,199,238,.12); border-color: #00a8c7; color: #63d8eb; }
.status-search { color: #999ea1; display: flex; flex-direction: column; font-size: 9px; gap: 4px; text-transform: uppercase; }
.status-search input {
  background: #1d1f20;
  border: 1px solid #505355;
  border-radius: 5px;
  box-sizing: border-box;
  color: #e5e7e8;
  font: 400 11px "IBM Plex Sans",sans-serif;
  height: 34px;
  padding: 0 10px;
  width: 100%;
}
.status-search input:focus { border-color: #00b9db; box-shadow: 0 0 0 1px rgba(0,194,230,.18); outline: 0; }
/* The dot and its label form the first row; everything else spans beneath.
   Children are placed explicitly rather than left to auto-placement, so a
   product may append its own content without landing in the dot's column and
   stretching it away from the label. The container colour stays neutral and
   the live green sits on the label, so added content does not read as a state. */
.status-live-state { align-items: center; color: #8f9497; display: grid; font-size: 10px; gap: 2px 6px; grid-template-columns: auto minmax(0,1fr); justify-items: start; min-width: 116px; }
.status-live-state > * { grid-column: 1 / -1; }
.status-live-state > .status-live-dot { grid-column: 1; grid-row: 1; }
.status-live-state > .status-live-dot + * { grid-column: 2; grid-row: 1; color: #70db82; }
.status-live-state time { color: #8f9497; font-size: 9px; }
.status-live-dot { background: #31cc4b; border-radius: 50%; box-shadow: 0 0 7px rgba(49,204,75,.65); height: 7px; width: 7px; }
/* The overview frame clips (overflow:hidden, for its rounded corners), so the
   row list owns the scrolling. min-height:0 lets it shrink below its content
   inside the flex column, which is what allows overflow-y to engage at all. */
.status-component-list { background: var(--sp-surface); display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding: 14px; }
.status-component {
  align-items: center;
  background: #2d2f30;
  /* A row is a flex child of the list. Without this it shrinks back towards
     min-height and its content spills over the rows beneath when a product
     expands a row. min-height is a floor, not a target. */
  flex: 0 0 auto;
  border: 1px solid #484b4d;
  border-left: 3px solid #31cc4b;
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: 38px minmax(180px,1.2fr) minmax(120px,.72fr) minmax(150px,1fr) minmax(92px,.52fr) minmax(110px,.62fr);
  min-height: 72px;
  padding: 10px 13px;
}
.status-component[hidden] { display: none; }
.status-component--attention { border-left-color: #f26729; }
.status-component--offline { border-left-color: #e85c63; }
.status-component-icon {
  align-items: center;
  background: #232526;
  border: 1px solid #4a4d4f;
  border-radius: 6px;
  color: #5ed8ed;
  display: inline-flex;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.status-component--attention .status-component-icon { color: #f58a4b; }
.status-component--offline .status-component-icon { color: #f17479; }
.status-component-identity,.status-component-field { min-width: 0; }
/* Direct children only. A descendant selector would also flatten any inline
   element a product nests inside these parts. */
.status-component-identity > strong,.status-component-identity > span,.status-component-field > span,.status-component-field > strong { display: block; }
.status-component-identity strong { color: #e3e5e6; font-size: 13px; font-weight: 600; }
.status-component-identity span { color: #92979a; font-size: 10px; margin-top: 3px; }
.status-component-field span { color: #858b8e; font-size: 9px; margin-bottom: 4px; text-transform: uppercase; }
.status-component-field strong { color: #d3d6d8; font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-component-state strong { align-items: center; color: #72dd84; display: flex; gap: 7px; }
.status-component-state strong i { background: #31cc4b; border-radius: 50%; height: 7px; width: 7px; }
.status-component--attention .status-component-state strong { color: #f4a170; }
.status-component--attention .status-component-state strong i { background: #f26729; }
.status-component--offline .status-component-state strong { color: #f18a8f; }
.status-component--offline .status-component-state strong i { background: #e85c63; }
.status-component-metric strong { color: #6ed9ec; font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.status-component-updated strong { color: #aeb2b4; }
.status-empty-state { align-items: center; color: #92979a; display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; justify-content: center; min-height: 180px; }
.status-empty-state[hidden] { display: none; }
.status-empty-state i { color: #5a6063; font-size: 24px; }

@media (max-width: 900px) {
  .status-toolbar { grid-template-columns: 1fr minmax(220px,.7fr); }
  .status-live-state { grid-column: 1 / -1; }
  .status-component { grid-template-columns: 38px minmax(150px,1fr) repeat(2,minmax(100px,.7fr)); }
  .status-component-metric,.status-component-updated { grid-column: auto; }
}

@media (max-width: 767px) {
  .status-overview-page { min-height: 0; }
  .status-overview-header { align-items: stretch; flex-direction: column; gap: 10px; padding: 10px 12px; }
  .status-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .status-summary-metric { gap: 1px; grid-template-columns: 1fr; padding: 6px 8px; text-align: center; }
  .status-summary-metric strong { grid-column: 1; grid-row: 2; }
  .status-toolbar { align-items: stretch; grid-template-columns: 1fr; padding: 10px; }
  .status-search { grid-row: 1; }
  .status-live-state { grid-column: 1; }
  .status-component-list { padding: 10px; }
  .status-component { align-items: start; gap: 10px 12px; grid-template-columns: 34px minmax(0,1fr) minmax(104px,.7fr); padding: 11px; }
  .status-component-icon { grid-row: 1; }
  .status-component-identity { align-self: center; grid-column: 2 / -1; }
  .status-component-state { grid-column: 1 / -1; }
  .status-component-field:not(.status-component-state) { border-top: 1px solid #424547; padding-top: 9px; }
  .status-component-activity { grid-column: 1 / -1; }
  .status-component-metric { grid-column: 1 / 3; }
  .status-component-updated { grid-column: 3; }
  .status-component-field strong { white-space: normal; }
}
