/* Keep existing ESS components within their grid tracks; wide tables scroll locally. */
.mx-barracuda-shell .mx-message-log-page,
.mx-barracuda-shell .mx-inbound-protection-page,
.mx-barracuda-shell .mx-inbox-defense-page,
.mx-barracuda-shell .mx-accounts-page {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.mx-console-content .grid > *,
.mx-message-log-page > *,
.mx-inbound-protection-page > *,
.mx-inbox-defense-page > *,
.mx-accounts-page > * {
  min-width: 0;
}
.mx-console-content .mx-core-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.mx-console-content pre.mx-domain-command-block {
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 1024px) {
  /* The rail remains one scrollable row, including its Settings button. */
  .mx-barracuda-shell .mx-rail-logo,
  .mx-barracuda-shell .mx-rail-nav,
  .mx-barracuda-shell .mx-rail-bottom-action {
    flex-shrink: 0;
  }
}
@media (max-width: 640px) {
  .mx-intelligence-page [class*="grid-cols-[110px_1fr_90px]"] {
    grid-template-columns: 65px minmax(0, 1fr) 55px;
    overflow-wrap: anywhere;
  }
  /* Audit event names and timestamps must wrap independently. */
  .mx-console-content > .card > .border-b > .flex.justify-between {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .mx-console-content > .card > .border-b > .flex.justify-between > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
/* Threat indicators and relationship URLs can contain arbitrarily long tokens. */
.mx-console-content .mx-intelligence-page { overflow-wrap: anywhere; }
/* Nine desktop filters must also fit when the navigation panel is open. */
@media (min-width: 1025px) {
  .mx-barracuda-shell .mx-message-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    min-width: 0;
  }
  .mx-barracuda-shell .mx-message-filter-grid .mx-message-search-field {
    grid-column: span 2;
  }
}
