/* AVstackr invoice modal — the Saved invoices window's own rules on Project Details.
   ========================================================================
   Built to docs/superpowers/specs/2026-11-07-invoice-modal-visual-refresh-design.md (D2, D5). The
   author-facing shell (frame, header, body, notices, panel, field register, saved view, footer,
   buttons, links, badges, chips and numbers) is shared with the other author-facing windows in
   author-modal.css, as `am-` classes; that file carries the register, the colour token table and the
   --am-radius-* steps declared on .am-modal. This file holds only what the invoice window alone
   uses, every class `inv-` prefixed: the modal element wears `am-modal inv-modal`. Every other rule
   the window needs is the shell's. Colours are --app-* tokens only; no literal colours and no
   important flags.

   Promotion rule: a class used by a second author-facing window moves to author-modal.css as `am-`.
   ======================================================================== */

/* ── shell ──────────────────────────────────────────────────────────────── */

/* The shared rule's max-width: calc(100vw - 48px) already bounds the width on small screens. */
.inv-modal { width: 880px; }

/* The spacing between the body's blocks: the saved-invoices row or the notice, then the saved panel. */
.inv-modal .am-body { gap: 24px; }

/* New invoice sits in the header beside the close button: it takes the free space the close button's auto margin
   would, so the two stay together at the right. */
.inv-modal .inv-new-invoice { margin-left: auto; }
.inv-modal .inv-new-invoice + .am-close { margin-left: 0; }
