/* Scope control for the monitor inventory. Shared by the agentic
   security page and the whitepaper assessment page. */

[data-inventory] {
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--slate-700);
}

[data-inventory] > p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  max-width: 720px;
  margin: 0 0 var(--sp-4);
}

.inv-count-note {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  max-width: 720px;
  margin: 0 0 var(--sp-3);
}

.inv-count-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 var(--sp-4);
}

.inv-count-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: var(--sp-2);
}

.inv-count-table th,
.inv-count-table td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}

.inv-count-table th {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.inv-options {
  border: 0;
  padding: 0;
  margin: 0 0 var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  max-width: 900px;
}

.inv-options[hidden] {
  display: none !important;
}

.inv-options legend {
  flex: 1 0 100%;
  font-size: inherit;
  font-weight: 700;
  color: var(--slate-900);
  padding: 0;
  margin-bottom: var(--sp-1);
}

.inv-option {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: inherit;
  line-height: 1.35;
  color: var(--slate-800);
  background: #fff;
  cursor: pointer;
  max-width: 100%;
}

.inv-option[hidden] {
  display: none !important;
}

.inv-option:has(input:checked) {
  background: var(--cosai-navy, #0b1f33);
  color: #fff;
  border-color: var(--cosai-navy, #0b1f33);
}

.inv-option input {
  margin-top: 0.2rem;
  accent-color: var(--cosai-blue, #1a3a6b);
}

.inv-option:has(input:focus-visible) {
  outline: 2px solid var(--cosai-blue, #1a3a6b);
  outline-offset: 2px;
}

.inv-defs {
  flex: 1 0 100%;
  margin: var(--sp-3) 0 0;
  max-width: 720px;
}

.inv-defs dt {
  font-weight: 700;
  color: var(--slate-900);
  margin-top: var(--sp-2);
}

.inv-defs dd {
  margin: 0.15rem 0 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#inventory-evidence-note,
.inv-find {
  flex: 1 0 100%;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  max-width: 720px;
}

.inv-find {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: var(--sp-3);
}

.inv-find input {
  font: inherit;
  font-weight: 400;
  max-width: 28rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius, 6px);
}

.inv-find input:focus-visible {
  outline: 2px solid var(--cosai-blue, #1a3a6b);
  outline-offset: 2px;
}

#inventory-status {
  font-size: inherit;
  color: var(--slate-800);
  max-width: 720px;
  min-height: 1.4em;
  margin: 0 0 var(--sp-4);
}

.inv-scroll {
  overflow-x: auto;
  margin: 0 0 var(--sp-6);
  min-width: 0;
  max-width: 100%;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  font-size: inherit;
  min-width: 640px;
}

.inv-table th,
.inv-table td {
  text-align: left;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}

.inv-table th {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}

.inv-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: inherit;
  color: var(--slate-600);
  padding-top: var(--sp-3);
  max-width: 720px;
}

.inv-id {
  font-family: inherit;
  white-space: nowrap;
}

.inv-record {
  min-width: 9rem;
  max-width: 16rem;
}
