/* A word with no spaces stays inside its box. Ordinary words still break only at spaces. */

#main-content,
.modal-content,
.swal2-html-container,
.swal2-title {
    overflow-wrap: anywhere;
}

#main-content :where(td, th),
.modal-content :where(td, th),
.swal2-html-container {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Short labels and dates stay on a word boundary. A one-character column is what stacked "PROJECT MANAGER" and "11/16/2026". */
#main-content :where(.asm-col-date, .tp-pm-col, .tp-pm-cell, .tp-type-col, .tp-status-col),
#main-content :where(td:has(.tp-type-pill), td:has(.tp-status-pill)) {
    overflow-wrap: normal;
    word-break: normal;
}

#main-content .table-responsive > .table,
#main-content table.dataTable,
#main-content table.tp-portfolio-table,
#main-content table.milestone-table {
    width: 100%;
    max-width: 100%;
}

/* User text that was locked to a single line. */
.pi-edit-project .pi-page-head__side {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.pi-edit-project .pi-page-head__code,
.pi-edit-project .selected-tag,
.mp-tag,
.tp-new .tp-plan-name,
.tp-new .tp-proj-title,
.tp-new .tp-id-cell,
.tp-new .tp-pm-cell,
.tp-new .tp-file-chip,
.tp-new .tp-file-chip a,
.file-name,
.pd-overview-card__title,
.milestone-table .milestone-name,
.milestone-history-record__summary .milestone-name,
.milestone-history-record__comments,
.dqa-activity-project,
#activitiesTable .dqa-activity-project,
.announcement-table .content-cell,
.hu-title,
.announcement-title {
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    min-width: 0;
}

.tp-new .tp-file-chip {
    max-width: 100%;
}
