/* KOSMOS 6.1.339 - global Font Awesome containment guard.
 * Prevents inline SVG icons from inheriting media/chart dimensions and exploding
 * to container size. Font Awesome icons remain sized by font-size only.
 */
svg.svg-inline--fa,
svg[data-prefix][data-icon].svg-inline--fa{
  display:inline-block!important;
  box-sizing:content-box!important;
  width:1em!important;
  min-width:1em!important;
  max-width:1em!important;
  height:1em!important;
  min-height:1em!important;
  max-height:1em!important;
  overflow:visible!important;
  vertical-align:-.125em!important;
  flex:0 0 1em!important;
}
svg.svg-inline--fa.fa-fw{width:1.25em!important;min-width:1.25em!important;max-width:1.25em!important;flex-basis:1.25em!important}
svg.svg-inline--fa.fa-spin,svg.svg-inline--fa.fa-pulse{transform-origin:center center!important}

/* Standalone/business pages: never allow an icon element to become a media box. */
i.fa,i.fas,i.far,i.fab,i.fa-solid,i.fa-regular,i.fa-brands{
  object-fit:initial!important;
  max-width:none;
  max-height:none;
}

/* Report editor: explicit containment for every icon location involved in the incident. */
body.kosmos-page-new-rapport :is(.section-header,.client-detail,.info-text,.qr-url-field,.qr-url-preview,.signature-input-heading,.btn,.media-limit-reached,.photo-watermark-position-title,.photo-watermark-position-current,.report-plugin-card,.report-reset-danger-zone) > svg.svg-inline--fa,
body.kosmos-page-new-rapport :is(.section-header,.client-detail,.info-text,.qr-url-field,.qr-url-preview,.signature-input-heading,.btn,.media-limit-reached,.photo-watermark-position-title,.photo-watermark-position-current,.report-plugin-card,.report-reset-danger-zone) svg.svg-inline--fa{
  width:1em!important;
  min-width:1em!important;
  max-width:1em!important;
  height:1em!important;
  min-height:1em!important;
  max-height:1em!important;
}

/* Deliberate large placeholder icons remain controlled by font-size, never by width/height. */
body.kosmos-page-new-rapport .add-card svg.svg-inline--fa,
body.kosmos-page-new-rapport .qr-url-preview svg.svg-inline--fa{
  width:1em!important;height:1em!important;min-width:1em!important;min-height:1em!important;max-width:1em!important;max-height:1em!important;
}
