/* Update 4 — 2026-11-02: lower the floating Savings and Loans actions slightly.
   Deliberately scoped to the detail modals. No account, ledger or click-handler changes. */

/* Savings: preserve the approved floating style while decreasing the empty bottom gutter. */
body.rufiyaa-liquid-glass:not(.rufiyaa-admin-mode) #modal-root .modal.u4sg-sticky-details > .u4sg-detail-footer,
#modal-root .modal.u4sg-sticky-details > .u4sg-detail-footer {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 540px) {
  body.rufiyaa-liquid-glass:not(.rufiyaa-admin-mode) #modal-root .modal.u4sg-sticky-details > .u4sg-detail-footer,
  #modal-root .modal.u4sg-sticky-details > .u4sg-detail-footer {
    padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Loans: modal bottom padding and absolute button offset both contributed
   to the larger empty gap. Adjust together; keep scroll padding and hit area. */
#modal-root .modal.u4lo-detail-modal {
  padding-bottom: 8px !important;
}
#modal-root .modal.u4lo-detail-modal .u4lo-detail-footer {
  bottom: calc(5px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 600px) {
  #modal-root .modal.u4lo-detail-modal {
    padding-bottom: 7px !important;
  }
}
