@layer components {
  /* ─── Dialogs over the Účtovníctvo page ─── */

  /* Inviting a client, the firm's deadlines: a head with the title and the
     cross, then the body the frame holds. */
  .accounting-dialog {
    background: var(--color-surface);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lifted);
    color: var(--color-ink);
    inline-size: min(52rem, calc(100dvw - 2rem));
    max-block-size: calc(100dvh - 2rem);
    padding: 0;

    &::backdrop {
      background: oklch(from var(--color-surface-inverted) l c h / 55%);
    }
  }

  .accounting-dialog__head {
    align-items: center;
    border-block-end: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
  }

  .accounting-dialog__title {
    font-size: 1.5rem;
    margin: 0;
  }

  .accounting-dialog__body {
    padding: 1.5rem 2rem;
  }

  .accounting-dialog__lead {
    color: var(--color-ink-secondary);
    margin: 0 0 1.5rem;
  }

  .accounting-dialog__foot {
    border-block-start: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: flex-end;
    margin: 1.5rem -2rem 0;
    padding: 1.25rem 2rem 0;
  }
}
