/* Shared layout for the forms hosted in a RtrWebDrawer (ADO 5735). The panel is a
   single flex column that claims the drawer's full height, so the field group
   sits at the top and the action row lands at the bottom no matter how few
   fields a given form has.

   Global (not scoped) for the same reason as detail-grid.css: more than one
   component uses it, and Blazor scoped CSS doesn't cross component files.

   .rtr-web-drawer__body is itself a flex column with a 16px gap — .df is its only
   child, so that gap never applies and the spacing here is the whole story. */
.df {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.df__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Two numeric fields sharing a row inside .df__fields. */
.df__pair {
    display: flex;
    gap: 12px;
}

/* A short field sharing a row with one or more switches (e.g. Sort · Required ·
   Hidden). Wraps rather than squeezing, since the drawer is only 420px wide by
   default and a narrow one would otherwise crush the numeric field. */
.df__row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.df__switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rtr-web-text-muted);
}

/* margin-top:auto is what pins this to the bottom; the border reads as the
   footer edge once the fields stop well short of it. */
.df__actions {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--rtr-web-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
