/* Einheitliche Jour-Fix-Dialogbuttons. */
.baserow-dialog .modal-head > button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  background: #f6f9fc;
  color: #455a73;
  display: inline-grid;
  place-items: center;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.baserow-dialog .modal-head > button:hover {
  border-color: #b9d2f3;
  background: #eaf3ff;
  color: #256be4;
  transform: translateY(-1px);
}

.baserow-dialog .modal-head > button:focus-visible {
  outline: 3px solid rgba(57, 119, 237, .22);
  outline-offset: 2px;
}

.baserow-dialog .modal-head > button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

.baserow-dialog .modal-actions > .danger-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #efb8b8 !important;
  border-radius: 12px;
  background: #fff7f7 !important;
  color: #b53b3b !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.baserow-dialog .modal-actions > .danger-button:hover {
  border-color: #e98e8e !important;
  background: #ffeded !important;
  color: #9f2929 !important;
}

.baserow-archive-item-actions > button {
  min-height: 42px;
  padding-inline: 15px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
}

.theme-dark .baserow-dialog .modal-head > button,
body.theme-dark .baserow-dialog .modal-head > button {
  border-color: rgba(148, 183, 225, .28);
  background: #102b46;
  color: #cfe0f5;
}

.theme-dark .baserow-dialog .modal-head > button:hover,
body.theme-dark .baserow-dialog .modal-head > button:hover {
  border-color: rgba(116, 169, 255, .48);
  background: rgba(83, 154, 255, .16);
  color: #8ebcff;
}

.theme-dark .baserow-dialog .modal-actions > .danger-button,
body.theme-dark .baserow-dialog .modal-actions > .danger-button {
  border-color: rgba(248, 113, 113, .38) !important;
  background: rgba(239, 68, 68, .12) !important;
  color: #fecaca !important;
}

@media (max-width: 620px) {
  .baserow-archive-item-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baserow-archive-item-actions > button {
    width: 100%;
  }
}
