/* 7.8 Cybersecurity issue management (`ui/pages/clauses/issue_management/`). The
   register, its strips and band and the pick chips reuse 7.3's and 7.5's classes, the
   date trio and the empty state 7.6's, the read outs 7.7's and the instructions card
   body 7.2's, all loaded before this sheet. Narrow rules follow a container, never the
   viewport. */

/* Region C: the ISS register's tracks: the title, kind, status with its days, found,
   affects and disclosure, then Remove. They fit the 830px card at 1440 and at 1366
   without the drawer. Below that the register scrolls inside its own box, and its rows
   keep their least width: the tracks, the eight 10px gaps and the line's 18px insets,
   all of it, or the open row's band runs out of row to stay put in (T1, T4). */
.aucra-iss-register.aucra-req-register .aucra-register-head,
.aucra-iss-register.aucra-req-register .aucra-register-line,
.aucra-iss-register.aucra-req-register .aucra-register-under {
  --aucra-cols-narrow: 20px 56px minmax(100px, 1fr) 84px 120px 80px 96px 92px 28px;
}
.aucra-iss-register {
  --aucra-reg-min: 792px;
}
@container aucra-req-register (max-width: 791px) {
  .aucra-iss-register .aucra-register {
    overflow-x: auto;
  }
  .aucra-iss-register .aucra-register > .aucra-register-head,
  .aucra-iss-register .aucra-register > .aucra-register-row {
    min-width: var(--aucra-reg-min);
  }
  .aucra-iss-register .aucra-band-slot,
  .aucra-iss-register .aucra-register-under {
    position: sticky;
    left: 0;
    width: 100cqw;
  }
  .aucra-iss-register .aucra-register-under {
    --aucra-cols-narrow: minmax(0, 1fr);
  }
  .aucra-iss-register .aucra-register-under .aucra-register-under-cell {
    grid-column: 1 / -1;
  }
}
/* The derived status over its "Closed after" or "Open since" line. */
.aucra-iss-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* The empty log's date and its gap line under the register, inset as a row's text;
   nothing at all once the log has a row. */
.aucra-iss-none {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 18px 14px;
}
.aucra-iss-none:not(:has(.aucra-field, .aucra-req-strip)) {
  display: none;
}
/* Found by takes its column's width, as 7.6's selects do. */
.aucra-iss-band .aucra-field > .q-select {
  align-self: stretch;
}

/* Region B: 7.8.1's fold on the card's content edge, as 7.6.1's, over 7.8.3's text. */
.aucra-guidance.aucra-boxed.aucra-iss-fold {
  margin-top: 14px;
}
.aucra-iss-fold + .aucra-requirement {
  padding-top: 0;
}

/* The instructions card: the read outs sit in the card body's own inset. */
.aucra-iss-instructions > .aucra-iss-reads {
  padding: 0;
}
