/* Mantém o rodapé no fim da viewport quando a página tem pouco conteúdo. */
html,
body {
    min-height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    margin: 0;
}

.page-content {
    flex: 1 0 auto;
    width: 100%;
}

.br-footer {
    flex-shrink: 0;
}

.app-dialog {
    width: min(500px, calc(100% - 2rem));
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.app-dialog::backdrop {
    background: rgb(0 0 0 / 60%);
}

.app-dialog .br-modal {
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: var(--surface-rounder-md, 8px);
}

.app-messages {
    position: fixed;
    z-index: var(--z-index-layer-4, 9999);
    top: var(--spacing-scale-2x, 16px);
    right: var(--spacing-scale-2x, 16px);
    width: min(420px, calc(100% - 2rem));
}

.app-messages .br-message {
    box-shadow: var(--surface-shadow-md);
}
