/* App-only rules for the Ops pages: page frame, sign-in, controls, tooltip.
   Components and tokens are in ops.css (the design kit); keep them there. */

html, body { margin: 0; height: 100%; background: #f6f6f4; }
/* The nav column's tint and rule run the full page height, even past the
   sticky nav on long pages. */
.ops-app { min-height: 100vh; background: linear-gradient(to right, #fbfbfa 215px, var(--o-line) 215px, var(--o-line) 216px, var(--o-page) 216px); }
.ops-nav { position: sticky; top: 0; height: 100vh; box-sizing: border-box; }
.ops-ni { text-decoration: none; }
.ops-ni:hover { background: var(--o-hover); }
.ops-ni:focus-visible, .ops-ctl:focus-within, .btn:focus-visible, .tv:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.ops-navfoot .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ops-navfoot .tv { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--o-muted); cursor: pointer; }
.ops-navfoot .tv:hover { background: var(--o-hover); color: var(--o-ink); }
.ops-navfoot .tv svg.i { width: 15px; height: 15px; }
.ops-classic { padding: 0 8px 4px; color: var(--o-muted); text-decoration: none; }
.ops-classic:hover { color: var(--o-ink); }
.ops-top { position: sticky; top: 0; z-index: 5; }
.ops-ctl select { border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; outline: none; }
.ops-body { max-width: 1400px; box-sizing: border-box; width: 100%; }
.ops-loading { padding: 40px 0; color: var(--o-muted); font-size: 14px; }
.ops-newdata { height: 28px; margin-left: 10px; border: 0; cursor: pointer; }

.ops-login { min-height: 100vh; display: grid; place-items: center; }
.ops-login form { width: 340px; padding: 28px; gap: 14px; }
.ops-login label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--o-ink2); }
.ops-login input { height: 36px; padding: 0 10px; border: 0; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--o-line); font: inherit; color: var(--o-ink); }
.ops-login input:focus { outline: 2px solid var(--ai); outline-offset: 0; }
.ops-login .err { min-height: 18px; margin: 0; color: var(--crit-t); font-size: 14px; }
.ops-login .btn { height: 36px; justify-content: center; cursor: pointer; border: 0; }
.ops-login p { margin: 0; }

.ops-tip { position: fixed; left: 0; top: 0; z-index: 50; display: none; max-width: 320px; padding: 8px 10px; border-radius: 6px;
  background: #0b0b0b; color: #fff; font: 500 12px/1.45 Inter, system-ui, sans-serif; pointer-events: none; white-space: normal; }
[data-tip] { cursor: default; }

/* Top bar with a breadcrumb, and a phone: the nav folds into a strip on top. */
.ops-top { min-width: 0; }
.ops-top .ops-ctl { flex: none; }
@media (max-width: 820px) {
  .ops-app { display: block; background: var(--o-page); }
  .ops-nav { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: center; gap: 4px; padding: 6px 10px; border-right: 0; border-bottom: 1px solid var(--o-line); }
  .ops-brand { margin: 0; flex: none; } .ops-brand .env, .ops-navfoot .who, .ops-nl { display: none; }
  .ops-ni { flex: none; } .ops-ni span { white-space: nowrap; }
  .ops-navfoot { margin: 0 0 0 auto; padding: 0 4px; flex: none; }
  .ops-classic { display: none; }
  .ops-top { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 12px; gap: 8px; position: static; }
  .ops-top .sp { display: none; }
  .crumbs { flex: 1 1 100%; flex-wrap: wrap; }
  .ops-chips { position: static; padding: 8px 12px; }
  .ops-body { padding: 12px 12px 32px; }
  .ops-side { width: 100vw; }
}

/* A local snapshot says so, quietly, above everything else on the page. */
.ops-snap { padding: 6px 28px; background: var(--o-track); border-bottom: 1px solid var(--o-line); font-size: 12px; color: var(--o-ink2); line-height: 1.4; }
.ops-fresh.frozen::before { background: var(--o-faint); }
@media (max-width: 820px) { .ops-snap { padding: 6px 12px; } }

/* A month in progress says so on every page, and says how far it runs. */
.ops-sofar { margin: 0 0 16px; padding: 8px 12px; border-radius: 8px; background: var(--o-track); font-size: 14px; color: var(--o-ink2); }
.ops-sofar b { color: var(--o-ink); font-weight: 600; }

/* A phone: one column. Rows stack, an incident reads top to bottom, and a chart
   built on fixed columns keeps its proportions and scrolls inside its card, never
   the whole page. Page stylesheets load after this one, hence the two classes. */
@media (max-width: 820px) {
  .ops.ops-app .ops-row { display: block; }
  .ops.ops-app .ops-row > * + * { margin-top: 16px; }
  .ops.ops-app .panel { min-width: 0; max-width: 100%; overflow-x: auto; }
  .ops.ops-app .panel-h { flex-wrap: wrap; }
  .ops.ops-app .panel-h .tt { flex: 1 1 100%; }
  .ops.ops-app .l-herorow, .ops.ops-app .ov-two, .ops.ops-app .cst-hero, .ops.ops-app .l-incb { grid-template-columns: minmax(0, 1fr); }
  .ops.ops-app .l-herorow .kpis { box-shadow: none; }
  .ops.ops-app .kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops.ops-app .inc { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ops.ops-app .inc > * { justify-self: start; max-width: 100%; }
  .ops.ops-app .inc .tt { justify-self: stretch; }
  .ops.ops-app .inc .ov-inc-r, .ops.ops-app .l-inc .l-incr { flex-wrap: wrap; }
  .ops.ops-app .inc .imp { align-items: flex-start; }
  .ops.ops-app .cst-hero { padding-right: 0; }
  .ops.ops-app .cst-cnt { grid-template-columns: repeat(2, auto); }
  .ops.ops-app .cst-bul { grid-template-columns: minmax(0, 1fr); }
  .ops.ops-app .cst-vb { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ops.ops-app .cst-vax { display: none; }
  .ops.ops-app .l-ln { grid-template-columns: 130px minmax(0, 1fr); }
  .ops.ops-app .l-lnx span:not(:first-child):not(:last-child) { display: none; }
  .ops.ops-app .st.l-st, .ops.ops-app .st-ax.l-st { min-width: 1040px; }
  .ops.ops-app .cst-cov { padding: 0 20px 16px; }
  .ops.ops-app .dp.cmp-dp { min-width: 620px; }
  .ops.ops-app .l-pr { min-width: 640px; }
}
