.wf-dlg-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--wf-space-4);
}

.wf-dlg {
    background: var(--wf-surface);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    width: 100%;
    max-height: calc(100vh - (var(--wf-space-4) * 2));
    display: flex;
    flex-direction: column;
    outline: none;
}

.wf-dlg-sm { max-width: 420px; }
.wf-dlg-md { max-width: 640px; }
.wf-dlg-lg { max-width: 880px; }

.wf-dlg-header {
    display: flex;
    align-items: center;
    gap: var(--wf-space-3);
    padding: var(--wf-space-4) var(--wf-space-5);
    border-bottom: 1px solid var(--wf-border);
}

.wf-dlg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--wf-radius-md);
    background: var(--wf-surface-alt);
    color: var(--wf-text-muted);
    flex: none;
}

.wf-dlg-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--wf-text);
}

.wf-dlg-close {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--wf-text-subtle);
    border-radius: var(--wf-radius-md);
    cursor: pointer;
}
.wf-dlg-close:hover { background: var(--wf-surface-alt); color: var(--wf-text); }

.wf-dlg-body {
    padding: var(--wf-space-5);
    overflow-y: auto;
}

.wf-dlg-footer {
    display: flex;
    align-items: center;
    gap: var(--wf-space-2);
    padding: var(--wf-space-4) var(--wf-space-5);
    border-top: 1px solid var(--wf-border);
}

/* ---------- Drawer lateral (Primitivos/Drawer.razor) ---------- */
.wf-drawer-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--wf-brand-navy) 35%, transparent); z-index: 1000; }
.wf-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; background: var(--wf-surface); box-shadow: var(--wf-shadow-lg);
             display: flex; flex-direction: column; outline: none; }
.wf-drawer-cabecalho { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--wf-border); }
.wf-drawer-titulo { font-size: 16px; font-weight: 700; color: var(--wf-text); }
.wf-drawer-subtitulo { font-size: 12px; color: var(--wf-text-muted); margin-top: 2px; }
.wf-drawer-corpo { flex: 1; overflow: auto; padding: 16px 20px; }
.wf-drawer-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--wf-border); background: var(--wf-surface-alt); }
