/* Shared reading rhythm. Keep theme colors, controls and numeric cells intact. */
:where(main, #content, .public-form, .public-page) :where(p, dd, .client-notice, .action-feedback, .agenda-notice) {
  text-align: left;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
:where(main, #content, .public-form, .public-page) :where(h1, h2, h3, h4, label, summary) {
  overflow-wrap: anywhere;
}
:where(.client-notice, .action-feedback, .overdue-alert, .attention-panel) > :where(p, ul, ol) + :where(p, ul, ol) {
  margin-top: 8px;
}
:where(.client-notice, .action-feedback, .overdue-alert, .attention-panel) > :where(ul, ol) {
  padding-inline-start: 20px;
}

/* The wizard footer shares the body's inset instead of touching the card edge. */
.rework-kickoff-wizard > .client-flow-footer {
  padding: 16px 22px;
  align-items: center;
  text-align: left;
  line-height: 1.5;
  gap: 12px 16px;
}
.rework-kickoff-wizard > .client-flow-footer > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rework-kickoff-wizard > .wbody,
.rework-kickoff-wizard > .wbody > * {
  min-width: 0;
  max-width: 100%;
}

/* Notes, notices and refresh follow the same sidebar text axis as navigation. */
.client-header-actions.pside-foot > .nav-i {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 40px;
  padding: 8px 10px;
  white-space: normal;
  line-height: 1.4;
}

/* Let long notice groups use the page width before the delivery lists. */
.rework-report-layout {
  grid-template-columns: minmax(0, 1fr);
}
.rework-report-layout > .yotech-report-notices,
.rework-report-layout > .rework-report-content {
  grid-column: 1;
  grid-row: auto;
  min-width: 0;
}
#clientStatusAlerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px 24px;
  align-items: start;
}
#clientStatusAlerts > .client-warning-group {
  min-width: 0;
  margin: 0;
}
.client-warning-group > summary {
  align-items: flex-start;
  text-align: left;
  line-height: 1.5;
}
.client-warning-title {
  min-width: 0;
  align-items: flex-start;
}
.client-warning-title svg,
.client-warning-group > summary > b {
  flex-shrink: 0;
}
.client-warning-items button {
  width: 100%;
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .rework-kickoff-wizard > .client-flow-footer {
    padding: 16px;
    align-items: flex-start;
  }
  .rework-kickoff-wizard > .client-flow-footer > .client-actions {
    margin-inline-start: 0;
    width: 100%;
    justify-content: flex-start;
  }
  #clientStatusAlerts {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
