/* Phase 5 / Batch 4: presentation only; restricted to existing system views. */
/* Reports: long titles and controls remain usable at narrow widths. */
.afaq-system-body .afaq-reports-overview,
.afaq-system-body .afaq-reports-overview .afaq-title-row,
.afaq-system-body .afaq-reports-overview .afaq-title-row > div{min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-reports-overview .afaq-title-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.afaq-system-body .afaq-reports-overview .afaq-title-row :is(h2,p){overflow-wrap:anywhere}
/* Base report tab styles are owned by ui-communication.css; only breakpoint overrides follow. */
.afaq-system-body .afaq-report-tabs a:focus-visible{outline:3px solid var(--afaq-primary,#208c87);outline-offset:2px}
/* Existing application support phone/WhatsApp fields, without adding a new support route. */
.afaq-system-body .afaq-saas-panel,
.afaq-system-body .afaq-saas-field-grid,
.afaq-system-body .afaq-saas-field-grid > *{min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-saas-field-grid :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-saas-panel :is(h2,h3,p,label){overflow-wrap:anywhere}
@media(max-width:600px){
 .afaq-system-body .afaq-reports-overview .afaq-title-row{align-items:stretch}
 .afaq-system-body .afaq-reports-overview .afaq-title-row > .afaq-btn{width:100%;justify-content:center;box-sizing:border-box;min-height:44px}
 .afaq-system-body .afaq-report-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .afaq-system-body .afaq-report-tabs a{min-width:0;white-space:normal}
 .afaq-system-body .afaq-saas-field-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:340px){.afaq-system-body .afaq-report-tabs{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.afaq-system-body .afaq-report-tabs a{transition:none}}
