@import url('/wagtail-theme/admin-foundation.css');
@import url('/wagtail-theme/admin-layout.css');
@import url('/wagtail-theme/tenant-icfoods.css');

/* ===== Critical hotfix: normalize oversized listing action icons ===== */
body .listing td a[target="_blank"],
body .listing td a[rel*="noopener"],
body .listing td a[href*="/home"],
body .listing td a[href*="localhost:3002"],
body .w-table td a[target="_blank"],
body .w-table td a[rel*="noopener"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.32rem !important;
  font-size: 0.96rem !important;
  line-height: 1.2 !important;
}

body .listing td a[target="_blank"] svg,
body .listing td a[rel*="noopener"] svg,
body .listing td a[href*="/home"] svg,
body .listing td a[href*="localhost:3002"] svg,
body .listing td a[target="_blank"] .icon,
body .listing td a[rel*="noopener"] .icon,
body .listing td a[href*="/home"] .icon,
body .listing td a[href*="localhost:3002"] .icon,
body .w-table td a[target="_blank"] svg,
body .w-table td a[rel*="noopener"] svg,
body .w-table td a[target="_blank"] .icon,
body .w-table td a[rel*="noopener"] .icon,
body .listing td svg.icon-view,
body .listing td .icon.icon-view,
body .listing td [data-icon="view"],
body .listing td [class*="icon-view" i] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  font-size: 16px !important;
  line-height: 16px !important;
  transform: none !important;
}

/* If any row arrow is overgrown, clamp it too. */
body .listing td .icon.icon-arrow-right,
body .listing td [data-icon="arrow-right"],
body .listing td [class*="icon-arrow-right" i] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  font-size: 18px !important;
  line-height: 18px !important;
}
