/* Macros SPA — refinamentos sobre o CSS legado .macros-* */

.macros-spa .page-header-macro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.macros-spa .macro-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.macros-spa .macro-modal {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  margin: 0;
}

.macros-spa .dropdown-menu-macro.show {
  display: block;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
}

.macros-spa .dropdown-menu-macro .dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.macros-spa .dropdown-menu-macro .dropdown-item:hover {
  background: #f8fafc;
}

.macros-spa .dropdown-menu-macro .dropdown-item.danger {
  color: #b91c1c;
}

.macros-spa .list-item-actions {
  position: relative;
}

.macros-spa .macro-token-row .btn {
  font-size: 12px;
}

.chat-macro-select {
  min-width: 180px;
}
