/* Overview view. Shared layout lives in app.css. */

/* ---- attention list ---- */
.ov-att { padding-bottom: 0; overflow: hidden; }
.ov-att .card-body { margin: 0 calc(-1 * var(--sp-4)); }
.ov-att-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.ov-att-list li + li { border-top: 1px solid var(--line-soft); }
.ov-att-list li:has(.is-critical) + li:has(.is-critical) { border-top-color: var(--bad-line); }
.ov-att-row {
  display: grid;
  grid-template-columns: 112px 248px minmax(0, 1fr) 56px 112px;
  align-items: center;
  column-gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  color: var(--text);
}
.ov-att-row:hover { background: var(--surface-2); text-decoration: none; }
.ov-att-row:focus-visible { outline-offset: -2px; }
.ov-att-row.is-critical { background: var(--bad-wash); }
.ov-att-row.is-critical:hover { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }
.ov-att-title { font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
.ov-att-detail { color: var(--text-2); line-height: var(--lh-tight); }
.ov-att-count { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; text-align: right; }
.ov-att-go { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; color: var(--accent); font-size: var(--fs-sm); }
.ov-att-go .icon { transform: rotate(-90deg); }
.ov-clear {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text-2);
}
.ov-clear .icon { color: var(--ok); }

/* ---- tiles ---- */
.ov-kpis { display: flex; flex-direction: column; gap: var(--sp-1); }
.ov-kpis .tile .plot { margin-top: auto; padding-top: var(--sp-1); }
.ov-note { color: var(--muted); font-size: var(--fs-xs); }

/* ---- tables: this column takes the free width and its text clips, so the table never scrolls sideways ---- */
.tbl td.ov-fill { width: 100%; max-width: 0; }
.ov-clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-q-name { color: var(--text); font-weight: var(--fw-medium); line-height: var(--lh-tight); }
.ov-q-meta { margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-tight); }

/* A half-width table leaves too little room for a queue title. */
@media (max-width: 1240px) {
  .ov-split { grid-template-columns: minmax(0, 1fr); }
}
/* 9 tiles stay in rows of 3, with no hole at the end. */
@media (max-width: 1240px) {
  .ov-kpis .tiles > :last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 1000px) {
  .ov-kpis .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ov-att-row { grid-template-columns: 112px minmax(0, 1fr) auto; row-gap: 2px; }
  .ov-att-title { grid-column: 2; grid-row: 1; }
  .ov-att-count { grid-column: 3; grid-row: 1; }
  .ov-att-detail { grid-column: 2 / -1; grid-row: 2; }
  .ov-att-go { grid-column: 2 / -1; grid-row: 3; justify-content: flex-start; }
}
