/*
 * JARVIS STEP 10-G
 * REV Y
 * Unified Instrument Context
 * Presentation only.
 */

.jarvis-step10g-context {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid rgba(120, 160, 190, .18);
  border-radius: 5px;
  background: rgba(7, 18, 27, .72);
  font-size: 10px;
  line-height: 1.25;
}

.jarvis-step10g-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  letter-spacing: .08em;
}

.jarvis-step10g-head span {
  font-weight: 700;
}

.jarvis-step10g-head b {
  font-size: 8px;
  font-weight: 700;
  opacity: .65;
}

.jarvis-step10g-instrument {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(120, 160, 190, .12);
}

.jarvis-step10g-instrument > div:first-child {
  min-width: 0;
  flex: 1;
}

.jarvis-step10g-context small {
  display: block;
  margin-bottom: 2px;
  font-size: 7px;
  letter-spacing: .08em;
  opacity: .55;
}

.jarvis-step10g-instrument strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jarvis-step10g-instrument span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 8px;
  opacity: .58;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jarvis-step10g-unit {
  flex: 0 0 auto;
  text-align: right;
}

.jarvis-step10g-unit strong {
  font-size: 10px;
}

.jarvis-step10g-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-top: 8px;
}

.jarvis-step10g-grid > div {
  min-width: 0;
}

.jarvis-step10g-grid strong {
  display: block;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * Step10-G server-risk state must remain fully readable.
 *
 * Presentation only:
 * - does not calculate risk
 * - does not approve risk
 * - does not mutate the ticket
 * - does not invoke the server risk endpoint
 *
 * The authoritative value continues to come from #t3yRiskState.
 */
#step10gRisk {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.jarvis-step10g-foot {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(120, 160, 190, .12);
  font-size: 7px;
  line-height: 1.35;
  opacity: .5;
}
