/**
 * admin-tables.css
 *
 * General overflow guard for server-rendered admin tables (anything built with
 * Drupal's theme('table', $header, $rows), e.g. the moderation dashboard at
 * admin/content/moderation). Core's theme_table() emits a bare
 * <table class="sticky-enabled"> with no width/wrapping rules, so a single long
 * cell (a long Description, a URL, an unbroken string) stretches its column and
 * pushes the whole table — and the page — past the viewport edge.
 *
 * Scoped to .page-admin (Drupal adds this body class on every admin/* path) so
 * front-end layout tables and the teacher-search cards are left untouched.
 */

/* Keep the table within its container instead of growing to fit content. */
.page-admin table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

/* Let long, space-less content wrap so one cell can't blow out the column
   widths. overflow-wrap:anywhere drops each cell's min-content to a single
   character, which lets the table shrink back inside max-width:100%. */
.page-admin th,
.page-admin td {
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}
