/* SeverityIQ theme — the TemplateMo 623 NovaPay visual system
 * applied to the app's own screens. The vendor stylesheet defines the
 * palette (--bg/--sky/...) and shared components (nav, buttons,
 * typography); THIS file adds the app's form/table/console surfaces
 * on top, using the same design tokens. Fonts are self-hosted
 * variable woff2 files (no remote calls). */

/* ---- self-hosted variable fonts (latin subset) ---- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/vendor/tm623/2026-09-12/fonts/rP2Hp2ywxg089UriCZOIHQ-6c1e961057d2473c0b110390bc876d36.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/vendor/tm623/2026-09-12/fonts/QGYvz_MVcBeNP4NJtEtq-fdf9c509a8095ffa556117f486a94a8d.woff2') format('woff2');
}

code, pre {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---- the nav bar (override of the template's floating band) ----
 * The template's nav is a transparent band that falls into place
 * (translateY(36px)) and gains a fill only in its JS-driven
 * `.scrolled` state — a 95%-opaque copy of the page's own color,
 * i.e. NO visible bar (nv-reported on sev2). The app's nav is a real
 * bar: opaque, one tone lighter than the page, pinned to the viewport
 * top, edged with a hairline. The id selector (#mainNav, 1-0-0)
 * outranks the vendor's `nav.scrolled` (0-1-1) so no JS state class
 * is part of the look — the bar renders before any script runs. The
 * height is a MINIMUM: when the org-management subnav is present the
 * bar grows to accommodate it (one nav element, two rows). */
#mainNav {
  transform: none;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  height: auto;
  min-height: var(--nav-h);
  flex-wrap: wrap;
}

/* The org-management SUBNAV row — INSIDE the single nav element
 * (the one-nav contract). A second flex row: the org name on the
 * left, the tabs after, horizontally scrollable on small screens. */
.nav-sub {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px max(48px, calc((100vw - var(--max-w)) / 2)) 8px;
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.nav-sub .nav-sub-org {
  margin-right: auto;
  color: var(--text3);
  font-size: 13px;
  white-space: nowrap;
  padding-right: 16px;
}
.nav-sub a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-sub a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}
.nav-sub a.active {
  color: var(--sky);
}
/* Pages with the subnav pad for the taller fixed bar. */
main.has-subnav {
  --subnav-h: 46px;
}

/* ---- layout shell ---- */
.siq-main {
  max-width: var(--max-w, 1280px);
  margin: 0 auto;
  /* The nav is FIXED at the top (68px, solid state); content must
     never slide under it — the observed /orgs overlap. Pages with
     the org subnav set --subnav-h for the taller fixed bar. */
  padding: calc(var(--nav-h) + var(--subnav-h, 0px) + 40px) 24px 72px;
  width: 100%;
  box-sizing: border-box;
}
.siq-main-narrow {
  max-width: 560px;
  margin: 0 auto;
}

.siq-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}

.siq-card h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--text);
}
.siq-card .siq-sub {
  color: var(--text2);
  font-size: 14px;
  margin: 0 0 22px;
}

/* ---- forms ---- */
.siq-form label {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin: 14px 0 6px;
}
.siq-form input[type='text'],
.siq-form input[type='email'],
.siq-form input[type='password'],
.siq-form input[type='number'],
.siq-form select,
.siq-form input:not([type]) {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  transition: border-color .4s var(--silk), box-shadow .4s var(--silk);
}
.siq-form input:focus, .siq-form select:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky4);
}
.siq-form button[type='submit'], .siq-form .siq-btn {
  margin-top: 22px;
  width: 100%;
}
.siq-form .siq-hint {
  font-size: 12px;
  color: var(--text3);
  margin: 4px 0 0;
}

.siq-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .siq-field-row { grid-template-columns: 1fr; }
}

/* ---- flash messages ---- */
.siq-flash {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 0 0 16px;
  border: 1px solid transparent;
}
.siq-flash-ok {
  color: var(--green);
  border-color: var(--green);
  background: rgba(61, 204, 142, .08);
}
.siq-flash-err {
  color: var(--red);
  border-color: var(--red);
  background: rgba(232, 90, 90, .08);
}

/* ---- roster/console tables ---- */
.siq-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.siq-table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.siq-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  vertical-align: middle;
}
.siq-table tr:last-child td { border-bottom: none; }
.siq-table .siq-inline-form { display: inline; margin: 0; }
.siq-table .siq-inline-form button {
  margin: 0 4px 0 0;
  padding: 5px 12px;
  font-size: 12px;
}

/* ---- console cards + sections ---- */
.siq-section h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 28px 0 12px;
}

/* ---- footer ---- */
.siq-footer {
  border-top: 1px solid var(--border);
  padding: 24px max(48px, calc((100vw - var(--max-w)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text3);
  font-size: 13px;
}
.siq-footer a { color: var(--text2); }
.siq-footer a:hover { color: var(--sky); }

/* ---- the per-org management bar (four screens) ---- */
.org-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin: 0 0 24px;
  overflow-x: auto;
}
.org-tabs a {
  color: var(--text2);
  text-decoration: none;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.org-tabs a:hover {
  color: var(--text);
}
.org-tabs a.active {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

/* ---- keyboard focus (template base + explicit ring) ---- */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

/* ---- misc ---- */
.siq-mono {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  word-break: break-all;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  display: inline-block;
  color: var(--sky2);
}
.siq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.siq-list li {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 8px 0;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: .03em;
}
details.siq-details {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text2);
}
details.siq-details summary { cursor: pointer; color: var(--sky); }
/* ---- The dismissible hints (the charter's guidance rule) ---- */
.siq-hint {
  position: relative;
  border: 1px solid var(--border);
  border-left: 3px solid var(--sky);
  border-radius: 8px;
  background: rgba(74, 158, 232, .06);
  padding: 12px 56px 12px 16px;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text2);
}
.siq-hint p { margin: 0; }
.siq-hint-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
}
.siq-hint-close:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ---- The cross-document view transition (the user's white-flash
 * review): the browser holds the old paint across navigations — the
 * POST→redirect→GET chain never shows the provisional white canvas.
 * Graceful: browsers without it behave as before. ---- */
@view-transition {
  navigation: auto;
}

/* ---- The screen-reader-only utility (a11y) ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
