/* AuCRA INSIGHT kit layer, the small fields: the rules of kit/picked_list.py,
   kit/tip.py, kit/committed_flag.py, kit/committed_states.py and
   kit/select_groups.py. Split from kit.css by concern and
   linked last of the kit's sheets (ui/styles.py), so the cascade runs in the
   order it was written. */

/* ---- kit/picked_list.py ---- */

.aucra-picked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aucra-picked-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aucra-picked-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.aucra-picked-empty { font-size: 12.5px; color: var(--muted); }
.aucra-picked-gap { font-size: 12.5px; color: var(--gold-deep); }

/* ---- kit/tip.py ---- */

/* A tag that takes the caret so the keyboard opens its tooltip. */
.aucra-tip {
  cursor: help;
}
.aucra-tip:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- kit/committed_flag.py ---- */

/* The flag sits at its label's left, as the mockup's pair (tool_inspector). */
.aucra-flag {
  align-self: flex-start;
}
/* Read only, for a viewer or on a row another person holds (P2-7): the picked
   side grey rather than ink, the other on the mist fill, no hover. */
.aucra-flag-readonly .aucra-toggle-option,
.aucra-flag-readonly .aucra-toggle-option:not(.on):hover,
.aucra-flag-readonly .aucra-toggle-option:not(.on):hover .q-btn__content {
  background: var(--mist);
  color: var(--muted) !important;
  cursor: default;
}
.aucra-flag-readonly .aucra-toggle-option.on {
  background: var(--muted);
}
.aucra-flag-readonly .aucra-toggle-option.on,
.aucra-flag-readonly .aucra-toggle-option.on .q-btn__content,
.aucra-flag-readonly .aucra-toggle-option.on .q-btn__content > span {
  color: #ffffff !important;
}

/* ---- kit/committed_states.py ---- */

/* Three states on one line in a 340 px panel (the threat model's review,
   artboard 15): each side keeps its words whole. */
.aucra-states .aucra-toggle-option {
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 12.5px;
}
.aucra-states .aucra-toggle-option .q-btn__content {
  flex-wrap: nowrap;
}

/* ---- kit/select_groups.py ---- */

/* A group's heading above its first option (the threat model's Category,
   artboard 15), drawn as the panel's own headings are, on a line of its own
   with the options' left edge, so every option keeps the same height. */
.q-menu .aucra-select-group {
  padding: 10px 16px 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: default;
}
