/* Verified Stay and Safety module styles. Design tokens only, from styles.css.
   Navy #0B2A50 / red #C6202E / pale #DCE7F2 / cream #FAF8F3 system. */

/* Mandatory disclaimer on the oversight and case surfaces. Deliberately louder
   than a notice: these are public demo routes, never government access. */
.st-gov-disclaimer {
  background: var(--navy); color: var(--white);
  border-radius: 12px; padding: 0.7rem 0.95rem; margin-top: 0.9rem;
  font-size: 0.78rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.01em;
}

/* label + value rows, used on every stay surface */
.st-rows { margin-top: 0.2rem; }
.st-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.st-row:last-child { border-bottom: 0; }
.st-row .k {
  font-size: 0.7rem; font-weight: 700; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.08em; flex: 0 0 auto;
}
.st-row .v { font-size: 0.9rem; font-weight: 700; color: var(--navy); text-align: right; }
.st-bad { color: var(--red); }
.st-pending { color: var(--warn); }
.st-locked {
  display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--warn); background: rgba(185, 106, 0, 0.12);
  border-radius: 100px; padding: 0.16rem 0.5rem;
}

/* yes / no flags */
.st-flag {
  display: inline-flex; align-items: center; gap: 0.32rem;
  font-size: 0.78rem; font-weight: 700; border-radius: 100px; padding: 0.2rem 0.62rem;
}
.st-flag svg { width: 13px; height: 13px; }
.st-flag.yes { background: rgba(30, 125, 79, 0.12); color: var(--ok); }
.st-flag.no { background: var(--pale); color: var(--slate); }

/* status timeline */
.st-tl { margin-top: 0.5rem; position: relative; }
.st-tl-step { display: flex; gap: 0.85rem; position: relative; padding-bottom: 1.1rem; }
.st-tl-step:last-child { padding-bottom: 0; }
.st-tl-step::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 2px;
  width: 2px; background: var(--pale-sea);
}
.st-tl-step:last-child::before { display: none; }
.st-tl-step.done::before { background: var(--ok); }
.st-tl-dot {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800;
  background: var(--pale); color: var(--slate); border: 2px solid transparent;
}
.st-tl-dot svg { width: 16px; height: 16px; }
.st-tl-step.done .st-tl-dot { background: var(--ok); color: var(--white); }
.st-tl-step.current .st-tl-dot { background: var(--white); color: var(--navy); border-color: var(--red); }
.st-tl-body { flex: 1; padding-top: 0.15rem; }
.st-tl-body b { font-size: 0.92rem; font-weight: 700; }
.st-tl-body p { font-size: 0.8rem; color: var(--slate); margin-top: 0.2rem; line-height: 1.5; }
.st-tl-state {
  display: inline-block; margin-left: 0.5rem; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: 100px; padding: 0.14rem 0.45rem;
  background: var(--pale); color: var(--slate); vertical-align: middle;
}
.st-tl-step.done .st-tl-state { background: rgba(30, 125, 79, 0.12); color: var(--ok); }
.st-tl-step.current .st-tl-state { background: rgba(198, 32, 46, 0.1); color: var(--red); }

/* exception cards, about records and never about a person */
.st-ex {
  background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--slate);
  padding: 0.9rem 1rem; margin-top: 0.6rem; box-shadow: var(--shadow-soft);
}
.st-ex.bad { border-left-color: var(--red); }
.st-ex.warn { border-left-color: var(--warn); }
.st-ex.info { border-left-color: var(--navy); }
.st-ex b { font-size: 0.92rem; font-weight: 700; }
.st-ex p { font-size: 0.82rem; color: var(--slate); margin-top: 0.25rem; line-height: 1.5; }
.st-ex-refer {
  display: inline-block; margin-top: 0.55rem; font-size: 0.72rem; font-weight: 700;
  color: var(--navy); background: var(--pale); border-radius: 100px; padding: 0.24rem 0.7rem;
}
.st-ex-chip {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; border-radius: 100px; padding: 0.16rem 0.5rem;
  margin: 0.35rem 0.3rem 0 0;
}
.st-ex-chip.bad { background: rgba(198, 32, 46, 0.1); color: var(--red); }
.st-ex-chip.warn { background: rgba(185, 106, 0, 0.12); color: var(--warn); }
.st-ex-chip.info { background: var(--pale); color: var(--navy); }
.st-ex-chip.ok { background: rgba(30, 125, 79, 0.12); color: var(--ok); }
.st-chiprow { display: block; }

/* registration cards + logs */
.st-reg { margin-top: 0.7rem; }
.st-log-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border: 1px solid rgba(11, 42, 80, 0.05);
  border-radius: 14px; padding: 0.72rem 0.9rem; margin-top: 0.55rem;
  box-shadow: var(--shadow-soft);
}
.st-log-row b { font-size: 0.84rem; display: block; }
.st-log-row small { color: var(--slate); font-size: 0.72rem; display: block; margin-top: 0.1rem; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.st-dot.ok { background: var(--ok); }
.st-dot.info { background: var(--navy); }
.st-dot.warn { background: var(--warn); }
.st-dot.bad { background: var(--red); }

/* provider desk result hero */
.st-hero {
  border-radius: var(--radius); padding: 1.5rem 1.2rem 1.35rem;
  text-align: center; color: var(--white); margin-top: 1rem; box-shadow: var(--shadow);
}
.st-hero.ok { background: linear-gradient(135deg, #1E7D4F 0%, #15603B 100%); }
.st-hero.bad { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); }
.st-hero .st-hicon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 0.7rem;
  background: rgba(255, 255, 255, 0.16); border: 2.5px solid rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.st-hero .st-hicon svg { width: 28px; height: 28px; }
.st-hero b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.st-hero p { font-size: 0.85rem; opacity: 0.92; margin-top: 0.35rem; line-height: 1.5; }

/* oversight: unit picker + case rows */
.st-rolegrid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 0.6rem; }
.st-rolecard {
  background: var(--white); border: 1.5px solid rgba(11, 42, 80, 0.08); border-radius: var(--radius);
  padding: 0.85rem 0.95rem; display: flex; align-items: center; gap: 0.8rem;
  text-align: left; box-shadow: var(--shadow-soft); font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.st-rolecard:hover { transform: translateY(-2px); }
.st-rolecard[aria-pressed="true"] { border-color: var(--navy); background: var(--pale); }
.st-rolecard .ic {
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.st-rolecard .ic svg { width: 18px; height: 18px; }
.st-rolecard[aria-pressed="true"] .ic { background: var(--red); }
.st-rolecard b { font-size: 0.92rem; font-weight: 700; color: var(--navy); }

.st-case-row {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border: 1px solid rgba(11, 42, 80, 0.05); border-radius: 14px;
  padding: 0.8rem 0.9rem; margin-top: 0.55rem; box-shadow: var(--shadow-soft);
  font-family: inherit; color: var(--navy); text-align: left;
  transition: transform 0.15s ease;
}
.st-case-row:hover { transform: translateY(-1px); }
.st-case-row b { font-size: 0.88rem; display: block; }
.st-case-row small { color: var(--slate); font-size: 0.72rem; display: block; margin-top: 0.1rem; }
.st-case-row svg { width: 18px; height: 18px; color: var(--slate); transform: rotate(180deg); flex: 0 0 auto; }

/* case events */
.st-event {
  display: flex; gap: 0.8rem; background: var(--white); border-radius: 14px;
  border: 1px solid rgba(11, 42, 80, 0.05); padding: 0.8rem 0.9rem; margin-top: 0.55rem;
  box-shadow: var(--shadow-soft);
}
.st-event .ic {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.st-event .ic svg { width: 17px; height: 17px; }
.st-event b { font-size: 0.88rem; font-weight: 700; }
.st-event p { font-size: 0.8rem; color: var(--slate); margin-top: 0.15rem; line-height: 1.45; }
.st-event small { font-size: 0.7rem; color: var(--slate); display: block; margin-top: 0.25rem; }

/* data export */
.st-dump {
  background: var(--white); border-radius: 12px; padding: 1rem; font-size: 0.7rem;
  overflow: auto; max-height: 240px; border: 1px solid var(--line);
}

@media (max-width: 370px) {
  .st-row { flex-direction: column; gap: 0.2rem; }
  .st-row .v { text-align: left; }
}
