/* Portalled menus inherit colours, but must not inherit the theme's 100vh shell. */
html body .floating-action-menu.kai-menu-portal,
html body .floating-action-menu.cash-ledger-action-menu {
  min-height: 0 !important;
  height: auto !important;
  max-height: calc(100dvh - 16px) !important;
  grid-auto-rows: max-content !important;
  align-content: start !important;
  gap: 4px !important;
  padding: 6px !important;
  overflow-y: auto !important;
  box-sizing: border-box;
}
html body .floating-action-menu.cash-ledger-action-menu > button {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 10px !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
html body .floating-action-menu.cash-ledger-action-menu > button > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
html body .floating-action-menu.cash-ledger-action-menu > .ledger-receipt { color: #344362 !important; background: #f5f7fb !important; }
html body .floating-action-menu.cash-ledger-action-menu > .ledger-edit { color: #2457a8 !important; background: #eff5ff !important; }
html body .floating-action-menu.cash-ledger-action-menu > .ledger-reverse { color: #875007 !important; background: #fff7e7 !important; }
html body .floating-action-menu.cash-ledger-action-menu > .danger { color: #b52d40 !important; background: #fff0f2 !important; }
html body .floating-action-menu.cash-ledger-action-menu > button:hover { filter: brightness(.95); }
html body .floating-action-menu.cash-ledger-action-menu > button:focus-visible { outline: 2px solid #1572e8 !important; outline-offset: -2px; }
