#curriculog-list-column-results-content .list-name,
#curriculog-import-required-column .list-name {
  gap: 0.5rem;
  min-width: 0;
}

#curriculog-list-column-results-content .summary-item,
#curriculog-import-required-column .summary-item,
#curriculog-list-column-results-content .list-item-info,
#curriculog-import-required-column .list-item-info {
  min-width: 0;
}

#curriculog-list-column-results-content .list-name .list-name-text,
#curriculog-import-required-column .list-name .list-name-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#curriculog-list-column-results-content .multi-approve-checkbox,
#curriculog-import-required-column .multi-approve-checkbox {
  flex: 0 0 3.75rem;
}

#curriculog-list-column-results-content .approve-check-label,
#curriculog-import-required-column .approve-check-label {
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: 0;
  white-space: nowrap;
}

/* Preserve the legacy card action hit areas. The shared CUI bundle also styles
   these buttons for modern cards. */
body:not(.modern-ui-body) #curriculog-content:not(.modern-ui) #curriculog-list-column-results-content > li .proposal-list-card-actions {
  align-items: stretch;
  bottom: 0;
  display: none;
  justify-content: flex-end;
  position: absolute;
  right: 5px;
  top: 0;
  /* Keep row actions below the legacy dialogs and flyovers. Their parent
     stacking context prevents the shared .actions z-index from escaping. */
  z-index: 1;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui) #curriculog-list-column-results-content > li .proposal-list-card-actions > .actions {
  align-items: stretch;
  display: flex;
  float: none;
  gap: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  position: static;
  z-index: auto;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui) #curriculog-list-column-results-content > li .proposal-list-card-actions > .actions > li {
  align-items: center;
  display: flex;
  flex: 0 0 60px;
  height: 100%;
  justify-content: center;
  margin: 0;
  padding: 0;
  /* Firefox uses the intrinsic width when sizing the absolute action bar.
     Include the decision indicator's full slot, not just its smaller circle. */
  width: 60px;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui) #curriculog-list-column-results-content > li .proposal-list-card-actions > .actions button {
  align-items: center;
  border: 0;
  border-radius: 0;
  display: flex;
  flex: 0 0 60px;
  height: 100%;
  justify-content: center;
  line-height: normal;
  margin: 0;
  min-width: 60px;
  min-height: 0;
  padding: 0;
  background-position: center;
  background-repeat: no-repeat;
  width: 60px;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui).dashboard-page #curriculog-list-column-results-content > li .proposal-list-card-actions,
body:not(.modern-ui-body) #curriculog-content:not(.modern-ui) #curriculog-list-column-results-content > li:is(:hover, :focus, .focus-within, .active) .proposal-list-card-actions {
  display: flex;
}

/* Classic user proposal cards keep their actions visible at rest. Hover and
   focus still apply the legacy row highlight without hiding the icons. */
body:not(.modern-ui-body) #curriculog-content.proposals-page.user:not(.modern-ui) #curriculog-list-column-results-content > li .proposal-list-card-actions {
  display: flex;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui).proposals-page #curriculog-list-column-results-content > li .proposal-list-card-actions {
  right: 0;
}

body:not(.modern-ui-body) #curriculog-content.dashboard-page.admin:not(.modern-ui) #curriculog-list-column-results-content > li .proposal-list-card-actions {
  right: 0;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui).agenda-page #curriculog-list-column-results-content > li .proposal-list-card-actions {
  right: 30px;
}

/* The legacy approval-process template places label, select, and create link
   directly in this container. Keep Sort by stacked while the create action
   stays aligned at the far right. */
body:not(.modern-ui-body) #curriculog-content:not(.modern-ui).approval-processes-page #curriculog-list-column-results-sorting {
  align-items: start;
  box-sizing: border-box;
  column-gap: 12px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) max-content;
  grid-template-rows: auto auto;
  padding: 5px 0 7px;
  row-gap: 4px;
  width: 100%;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui).approval-processes-page #curriculog-list-column-results-sorting > label[for="curriculog-sorting"] {
  clear: none;
  float: none;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0;
  text-align: left;
  width: auto;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui).approval-processes-page #curriculog-list-column-results-sorting > select#curriculog-sorting {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  width: 150px;
}

body:not(.modern-ui-body) #curriculog-content:not(.modern-ui).approval-processes-page #curriculog-list-column-results-sorting > .new-process-tab {
  align-self: start;
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
}

/* Legacy settings keeps each proposal-comment checkbox directly before its
   label; reset the older summary form's floated label/input columns. */
#curriculog-summary-column .summary-content .transparency-comments-card .legacy-transparency-comment-option {
  align-items: center;
  display: flex;
  gap: 6px;
  margin: 0 0 6px;
}

#curriculog-summary-column .summary-content .transparency-comments-card .legacy-transparency-comment-option input[type="checkbox"] {
  clear: none;
  float: none;
  flex: 0 0 auto;
  margin: 0;
}

#curriculog-summary-column .summary-content .transparency-comments-card .legacy-transparency-comment-option label.checkbox {
  clear: none;
  display: inline-block;
  float: none;
  margin: 0;
  padding: 0;
  text-align: left;
  width: auto;
}
