/* 7.11 Third-party component cybersecurity management (`ui/pages/clauses/third_party/`). The
   head and the No state are 7.7's (`pages_production.css`), the cards 7.2's, the register
   rows, bands, read outs and strips 7.3's, 7.4's and 7.5's, all loaded before this sheet.
   Narrow rules follow a container, never the viewport. */

/* A card's body: its read outs, fields and strip in one column. */
.aucra-tp-body {
  container: aucra-tp / inline-size;
  gap: 12px;
}
.aucra-tp-reads {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aucra-tp-fields {
  min-width: 0;
}

/* C1's lead and its way to 7.5, on one line while they fit. */
.aucra-tp-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

/* The strip: six cells in two columns, one column in a narrow card (D5). */
.aucra-tp-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@container aucra-tp (max-width: 560px) {
  .aucra-tp-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}
.aucra-tp-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.aucra-tp-cell-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.aucra-tp-cell-title {
  font-size: 13px;
  font-weight: 500;
}
.aucra-tp-cell-gap {
  flex: 1;
}
.aucra-tp-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.aucra-tp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pass);
}
.aucra-tp-mark-missing .aucra-tp-dot {
  background: var(--line-strong);
}

/* C4: one report per row, ruled apart; the id and title on one line with Remove. */
.aucra-tp-report {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.aucra-tp-report-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.aucra-tp-report-id {
  font-size: 13px;
  color: var(--muted);
}
.aucra-tp-report-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
}
/* Add an issue: the dashed add control of the strip's pickers (M3), on a text button. */
.q-btn.aucra-tp-add-issue {
  height: 26px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  align-self: auto;
}
.q-btn.aucra-tp-add-issue:hover {
  border-color: var(--gold);
}
.q-btn.aucra-tp-add-issue .q-icon {
  font-size: 13px;
}
.aucra-tp-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Remove record closes the band, at its left edge. */
.aucra-tp-band > .aucra-tp-remove {
  align-self: flex-start;
}

/* An open record at the artboard's width (M8): 78px in from the card's left edge and
   18px from its right, the card body's 18px padding taken off both. Narrow, the kit's
   margins stand. */
@media (min-width: 1201px) {
  @container aucra-req-register (min-width: 640px) {
    .aucra-tp-register .aucra-register-detail {
      margin-left: 60px;
      margin-right: 0;
    }
  }
}
