.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.button-group {
  display: flex;
  gap: 10px;
  padding: 4px;
  flex-wrap: wrap;
}

.nav-button,
.action-button,
.row-action {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.15s ease;
}

.nav-button {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #222;
}

.nav-button:hover {
  background: #f8fafc;
}

.nav-button.active {
  background: #e5e7eb;
  border-color: #94a3b8;
  font-weight: 600;
}

.action-button {
  padding: 10px 16px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.action-button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.danger-button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.danger-button:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.high-danger-button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #b915da;
  background: #b915da;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.high-danger-button:hover {
  background: #8d17a4;
  border-color: #8d17a4;
}

.row-action {
  padding: 6px 10px;
  margin-right: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #222;
  font-size: 13px;
}

.row-action:hover {
  background: #f8fafc;
}

.row-action.create {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.row-action.create:hover {
  background: #dbeafe;
  border-color: #1d4ed8;
}

.row-action.delete {
  border-color: #ef4444;
  color: #b91c1c;
}

.row-action.delete:hover {
  background: #fef2f2;
}

.row-action.activate {
  border-color: #10b981;
  color: #047857;
}

.row-action.activate:hover {
  background: #ecfdf5;
}

.row-action.deactivate {
  border-color: #f59e0b;
  color: #92400e;
}

.row-action.deactivate:hover {
  background: #fffbeb;
}

.table-card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible;
}

.table-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

th {
  background: #f9fafb;
  font-size: 14px;
  font-weight: 700;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 5;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

.actions-cell {
  white-space: nowrap;
}

.sticky-identity-table th:first-child,
.sticky-identity-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 140px;
  max-width: 220px;
  background: #fff;
  box-shadow: 2px 0 0 #d1d5db;
  overflow-wrap: anywhere;
}

.sticky-identity-table thead th:first-child {
  z-index: 8;
  background: #f9fafb;
}

.sticky-identity-table .inactive-row td:first-child {
  background: #e5e7eb;
}

.empty-state {
  padding: 24px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #475569;
}

.form-card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 24px;
  max-width: 700px;
}

.form-intro {
  margin: 0 0 18px;
  color: #475569;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #2563eb;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  inline-size: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.help-text {
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
}

.field-errors,
.form-errors {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.detail-card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
}

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  padding: 14px 16px;
  background: #f9fafb;
  font-weight: 600;
}

.detail-value {
  padding: 14px 16px;
  background: #fff;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  background: #f9fafb;
}

.accordion-summary:hover {
  background: #f3f4f6;
}

.accordion-item.inactive-group {
  border-color: #cbd5e1;
  background: #e5e7eb;
}

.accordion-item.inactive-group .accordion-summary,
.accordion-item.inactive-group .accordion-summary:hover {
  background: #e5e7eb;
  color: #334155;
}

.accordion-item.inactive-group .accordion-content {
  background: #f1f5f9;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-content {
  padding: 16px;
}

.accordion-meta {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  flex-wrap: wrap;
}

.pagination-summary {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-current {
  display: inline-block;
  padding: 6px 10px;
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: 0.15s ease;
}

.pagination-button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.pagination-button.disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.inactive-row td {
  background: #e5e7eb;
  color: #000000;
}

.inline-action-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.toggle-active-button {
  cursor: pointer;
  font: inherit;
}

.muted-zero {
  color: #94a3b8;
  background: #f8fafc;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.message-item {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.message-item.success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.message-item.warning,
.message-item.error {
  border-color: #fbbf24;
  background: #fffbeb;
  color: #92400e;
}

.cleanup-action-bar {
  justify-content: flex-start;
  margin-top: 24px;
}

.cleanup-action-bar-top {
  margin-top: 0;
  margin-bottom: 20px;
}

.cleanup-section {
  max-width: 1120px;
  margin-bottom: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.cleanup-section[open] {
  border-color: #cbd5e1;
}

.cleanup-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f9fafb;
  color: #111827;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.cleanup-section-summary span:first-child {
  display: grid;
  gap: 3px;
}

.cleanup-section-summary small {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.cleanup-section-summary:hover {
  background: #f3f4f6;
}

.cleanup-section-summary::-webkit-details-marker {
  display: none;
}

.cleanup-section-summary::after {
  content: "▾";
  color: #64748b;
  font-size: 12px;
}

.cleanup-section:not([open]) .cleanup-section-summary::after {
  content: "▸";
}

.cleanup-section .empty-state {
  margin: 16px;
}

.cleanup-section-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 14px 16px 0;
  flex-wrap: wrap;
}

.cleanup-section-toggle {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
}

.cleanup-action-choice {
  min-width: 230px;
}

.cleanup-action-menu,
.cleanup-action-menu .dropdown-menu-button {
  width: 100%;
}

.cleanup-action-menu .dropdown-menu-panel {
  width: 260px;
}

.cleanup-action-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.cleanup-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}

.cleanup-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cleanup-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.cleanup-card:has(.cleanup-checkbox:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.cleanup-checkbox {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: #2563eb;
}

.cleanup-card-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cleanup-card-kicker {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cleanup-card-title {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cleanup-card-detail,
.cleanup-card-meta {
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cleanup-card-meta {
  color: #64748b;
}

/* Reusable dropdown menu component */

.dropdown-menu {
  position: relative;
}

.dropdown-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}

.dropdown-menu-button::-webkit-details-marker {
  display: none;
}

.dropdown-menu-button::after {
  content: "▾";
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
}

.dropdown-menu[open] .dropdown-menu-button {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dropdown-menu-button.icon-only {
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.dropdown-menu-button.icon-only::after {
  display: none;
}

.dropdown-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: 260px;
  padding: 6px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  z-index: 50;
}

.dropdown-menu-panel.align-right {
  left: auto;
  right: 0;
}

.dropdown-menu-panel.scrollable {
  max-height: 320px;
  overflow-y: auto;
}

.dropdown-menu-heading {
  padding: 8px 10px 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dropdown-menu-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.dropdown-menu-option:hover {
  background: #f1f5f9;
}

.dropdown-menu-option.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.dropdown-menu-option.disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}

.dropdown-menu-option.stacked {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}

.dropdown-menu-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.dropdown-menu-meta {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}

.dropdown-menu-option.disabled .dropdown-menu-meta {
  color: #94a3b8;
}

.dropdown-menu-divider {
  height: 1px;
  margin: 6px 4px;
  background: #e5e7eb;
}

.dropdown-menu-check {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.dropdown-menu-empty {
  padding: 12px 10px;
  color: #64748b;
  font-size: 13px;
}

/* Reusable searchable select component */

.searchable-select {
  position: relative;
  width: 100%;
}

.searchable-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.searchable-select-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.searchable-select-button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.searchable-select-button:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.searchable-select.open .searchable-select-button {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.searchable-select.disabled .searchable-select-button,
.searchable-select-button:disabled {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.searchable-select.disabled .searchable-select-button:hover,
.searchable-select-button:disabled:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.searchable-select-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-button strong {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
}

.searchable-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  min-width: 100%;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.searchable-select-panel[hidden] {
  display: none;
}

.searchable-select-search-wrap {
  padding: 4px 4px 7px;
  border-bottom: 1px solid #e5e7eb;
}

.searchable-select-search {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #111827;
  font: inherit;
  font-size: 13px;
}

.searchable-select-search:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.searchable-select-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  overflow-y: auto;
}

.searchable-select-action-row {
  padding: 4px 2px 7px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
}

.searchable-select-create-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.searchable-select-create-action:hover {
  background: #dbeafe;
  border-color: #1d4ed8;
}

.searchable-select-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
}

.searchable-select-option-row:hover {
  background: #f1f5f9;
}

.searchable-select-option-row.selected {
  background: #eff6ff;
}

.searchable-select-option-row.empty {
  grid-template-columns: 1fr;
}

.searchable-select-option-row.disabled {
  background: #f8fafc;
}

.searchable-select-option-row.empty .searchable-select-option,
.searchable-select-option-row.disabled .searchable-select-option {
  color: #94a3b8;
}

.searchable-select-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.searchable-select-option:hover {
  background: #f1f5f9;
}

.searchable-select-option.selected {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.searchable-select-option.empty {
  color: #64748b;
  font-weight: 600;
}

.searchable-select-option.disabled,
.searchable-select-option:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}

.searchable-select-option span {
  min-width: 0;
}

.searchable-select-option-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  overflow: hidden;
}

.searchable-select-option-label > span {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 999px; background: #94a3b8; }
.searchable-select-option-row.status-green .searchable-select-status-dot { background: #16a34a; }
.searchable-select-option-row.status-yellow .searchable-select-status-dot { background: #d99a00; }
.searchable-select-option-row.status-red .searchable-select-status-dot { background: #dc2626; }
.searchable-select-option-row.status-gray .searchable-select-status-dot { background: #94a3b8; }
.searchable-select-option-row.status-green { background: #f0fdf4; }
.searchable-select-option-row.status-yellow { background: #fffbeb; }
.searchable-select-option-row.status-red { background: #fef2f2; }
.searchable-select-option-row.status-gray { background: #f8fafc; }

.searchable-select-option-help {
  display: block;
  max-width: 100%;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-option-row.selected .searchable-select-option-help {
  color: #475569;
}

.searchable-select-option strong {
  flex: 0 0 auto;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.searchable-select-option-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
}

.searchable-select-mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.searchable-select-mini-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.searchable-select-mini-action.danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.searchable-select-mini-action.danger:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.searchable-select-empty {
  padding: 12px 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .toolbar > .filter-controls {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .toolbar > .sort-menu {
    grid-column: 1;
    grid-row: 1;
  }

  .toolbar > .action-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    text-align: center;
  }

  .toolbar > .button-group {
    grid-column: 1 / -1;
  }

  .button-group {
    gap: 8px;
    padding: 0;
  }

  .nav-button,
  .action-button,
  .danger-button,
  .high-danger-button {
    padding: 9px 12px;
  }

  .pagination {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .pagination-summary {
    width: 100%;
  }

  .pagination-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 34px) minmax(0, 1fr) repeat(2, 34px);
  }

  .pagination-current {
    justify-self: center;
    text-align: center;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  .detail-label {
    padding-bottom: 4px;
  }

  .detail-value {
    padding-top: 4px;
  }

  .cleanup-section {
    max-width: none;
  }

  .cleanup-section-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 700px) {
  .dropdown-menu,
  .dropdown-menu-button {
    width: 100%;
    max-width: none;
  }

  .dropdown-menu-panel,
  .dropdown-menu-panel.align-right {
    left: 0;
    right: auto;
    width: 100%;
    max-width: none;
  }

  .searchable-select-panel {
    max-height: 260px;
  }

  .searchable-select-option-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .searchable-select-option-actions {
    justify-content: flex-end;
    padding: 0 4px 6px;
  }
}
