#database-workspace .database-delete-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -4px 0 10px;
  color: #6d4a4d;
  font-size: 10.5px;
}

#database-workspace .database-delete-context-actions {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
}

#database-workspace .database-delete-context-actions[hidden] {
  display: none;
}

#database-workspace #database-selected-count,
#database-workspace #database-selected-patch-count {
  margin-right: auto;
  color: #59636f;
}

#database-table .database-select-column {
  width: 34px;
  min-width: 34px;
  text-align: center;
}

#database-table .database-select-row,
#database-table #database-select-page {
  width: 14px;
  height: 14px;
  margin: 0;
  vertical-align: middle;
}

#database-patches-table .database-patch-select-column {
  width: 34px;
  min-width: 34px;
  text-align: center;
}

#database-patches-table .database-select-patch,
#database-patches-table #database-select-all-patches {
  width: 14px;
  height: 14px;
  margin: 0;
  vertical-align: middle;
}

#database-workspace .database-delete-toolbar[hidden] {
  display: none;
}

#database-patches-table.has-delete-actions th:last-child,
#database-patches-table.has-delete-actions td:last-child {
  width: 104px;
  text-align: right;
}

#database-patches-table .database-delete-patch {
  min-width: 68px;
  white-space: nowrap;
}

.database-delete-settings {
  border-color: #d7b9bc !important;
  background: #fffafa;
}

.database-delete-assignment-control {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eadadd;
}

.database-delete-assignment-control > span,
.database-delete-method-note {
  display: block;
  margin-top: 5px;
  color: #687482;
  font-size: 10.5px;
  line-height: 1.45;
}

.database-delete-checklist-head {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.database-delete-checklist-head .label {
  margin: 0;
}

.database-delete-checklist-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #737d88;
  font-size: 9.5px;
  white-space: nowrap;
}

.database-delete-mark-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #405f83;
  cursor: pointer;
}

.database-delete-mark-all input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #426f9f;
}

.database-delete-mark-all:has(input:disabled) {
  color: #a4abb3;
  cursor: default;
}

.database-delete-checklist-tools button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #405f83;
  font: inherit;
  cursor: pointer;
}

.database-delete-checklist-tools button:hover {
  color: #173f6d;
  text-decoration: underline;
}

.database-delete-checklist-tools button:disabled {
  color: #a4abb3;
  cursor: default;
  text-decoration: none;
}

.database-delete-checklist {
  max-height: 142px;
  overflow: auto;
  border: 1px solid #cfd6de;
  border-radius: 5px;
  background: #fff;
}

.database-delete-checklist:focus-visible {
  border-color: #7395bb;
  outline: 2px solid rgb(86 135 191 / 18%);
  outline-offset: 1px;
}

.database-delete-checklist-option {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-bottom: 1px solid #edf0f3;
  color: #344253;
  font-size: 10.5px;
  line-height: 1.3;
  cursor: pointer;
}

.database-delete-checklist-option:last-child {
  border-bottom: 0;
}

.database-delete-checklist-option:hover {
  background: #f6f8fa;
}

.database-delete-checklist-option:has(input:checked) {
  background: #f2f6fa;
  color: #253c57;
  font-weight: 600;
}

.database-delete-checklist-option input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #426f9f;
}

.database-delete-checklist-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.database-delete-checklist-empty {
  display: block;
  padding: 9px;
  color: #7a838d;
  font-size: 10.5px;
}

.database-delete-safety {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #d7b9bc;
  border-radius: 6px;
  background: #fff4f4;
  color: #60383c;
  font-size: 10.5px;
  line-height: 1.45;
}

.database-delete-safety b {
  color: #8d252e;
}

.database-delete-match-count {
  max-width: 620px;
  line-height: 1.45;
  white-space: pre-line;
}

#database-delete-matches:disabled {
  border-color: #d4c8c9;
  background: #e8e3e4;
  color: #8c8182;
}

@media (max-width: 720px) {
  .database-delete-safety {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
