/* v7.16.82.201 — responsive operational forms; presentation only. */
/* Scope to Afaq operational surfaces; leave inline filters, wizards, and compact cards intact. */
.afaq-system-body .afaq-content :is(.afaq-form-grid,.afaq-card > form.afaq-form) > :is(label,.afaq-field,.afaq-form-field){min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-content :is(.afaq-form-grid,.afaq-card > form.afaq-form) > :is(label,.afaq-field,.afaq-form-field) :is(input,select,textarea){box-sizing:border-box;width:100%;max-width:100%;min-width:0}
/* Keep descriptive text and action groups full width. */
.afaq-system-body .afaq-content .afaq-form-grid > :is(.afaq-form-actions,fieldset,hr,h2,h3,h4,p,.afaq-note,.afaq-gallery-uploader),
.afaq-system-body .afaq-content .afaq-form-grid > label:has(textarea),
.afaq-system-body .afaq-content .afaq-form-grid > label:has(select[multiple]){grid-column:1/-1}
@media(min-width:1280px){
 /* Four related fields (such as the child's four name parts) share a row on wide screens. */
 .afaq-system-body .afaq-content .afaq-card .afaq-form-grid:has(> :nth-child(4)):not(.afaq-filter-bar):not(.afaq-role-grid):not(.afaq-special-layout){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
 .afaq-system-body .afaq-content .afaq-card > form.afaq-form:has(> label:nth-of-type(4)):not(.afaq-inline-form):not(.afaq-wizard):not(.afaq-wizard-form):not(.afaq-filter-form):not(.afaq-search-form):not(.afaq-special-layout){grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}
}
@media(min-width:761px) and (max-width:1279px){
 .afaq-system-body .afaq-content .afaq-card .afaq-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .afaq-system-body .afaq-content .afaq-card .afaq-form-grid,
 .afaq-system-body .afaq-content .afaq-card > form.afaq-form:not(.afaq-inline-form):not(.afaq-filter-form):not(.afaq-search-form):not(.afaq-wizard):not(.afaq-wizard-form){grid-template-columns:minmax(0,1fr)}
 .afaq-system-body .afaq-content :is(input,select,textarea){font-size:max(16px,1em)}
}
/* Readable field captions above controls; no markup or data changes. */
.afaq-system-body .afaq-content .afaq-form-grid > label{display:flex;flex-direction:column;align-items:stretch;gap:6px}
