/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 11 2026 | 13:56:51 */
/* =====================================================================
   MS-37 · Table columns — one spacing structure for every GravityView table
   Companion to 6849 ms-datatable.css (MS-36, colours). This record owns
   column sizing; page records no longer set column widths.

   WHY
   Page records sized columns by position (th:nth-child(n){width:x%}) in a
   fixed layout. When a view gains or loses a column (e.g. the bulk-select
   checkbox), every width lands on the wrong column, and cells are cut off
   ("...") or spill out of the table. Here each column sizes to what is in it:
   short values (pills, phones, emails, balances, links) stay on one line and
   are never cut; text wraps between words. A table that is genuinely wider
   than the screen scrolls sideways inside its card.

   SCOPE
   - Every table.gv-table-view, except the sticky-header copy
     ([data-datot-sticky], 6229 sizes it from the real table) and
     Admin Finance (page 1355, sized by its own JS 6331).
   - Same selector prefix trick as 6849 to beat page records' !important.
   Rollback: deactivate this record, reactivate 6115, clear the Kinsta cache.
   ===================================================================== */

/* ---- layout: columns size to their content ------------------------- */
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) {
	table-layout: auto !important;
	width: 100% !important;
}
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > thead > tr > th,
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tfoot > tr > th,
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
	hyphens: none !important;
	padding: 12px 10px !important;
}

/* ---- header labels wrap between words, never mid-word -------------- */
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > thead > tr > th,
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tfoot > tr > th {
	overflow-wrap: normal !important;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

/* ---- select column: just the checkbox ------------------------------ */
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > thead > tr > th.gv-bulk-actions-column,
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tfoot > tr > th.gv-bulk-actions-column,
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td.gv-bulk-actions-column,
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td:has(> label > input.gv-bulk-actions-entry) {
	width: 1% !important;
	padding-left: 14px !important;
	padding-right: 4px !important;
	text-align: center !important;
	white-space: nowrap !important;
}

/* ---- short values: one line, never cut ----------------------------- */
/* Status chips, phones, emails and buttons. Longer link pills (entry links,
   balances) are allowed to wrap between words, see below. */
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td :is(.gv-cpill, [class*="gv-chip"], a[href^="tel:"], a[href^="mailto:"], button, .button) {
	white-space: nowrap !important;
	max-width: none !important;
	overflow: visible !important;
	text-overflow: clip !important;
}
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td :is([data-type="email"], [data-type="phone"]) {
	white-space: nowrap !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
}

/* ---- longer link pills: wrap between words when space is tight ------
   Entry links ("01/11/2026 for Tuition Nov 2026", "$600.00 (Name)") and
   balance pills stay on one line when there is room, and wrap between
   words (never mid-word) when the table would otherwise be too wide.
   MS-38. */
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td :is([class^="gv-bal"], a[href*="/entry/"]) {
	white-space: normal !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
}

/* ---- lists inside a cell (Gravity Forms list fields, e.g. Terms) ------
   Size them to their content and wrap between words only. Without this a
   list's fixed layout gives its column no minimum width and its labels
   break letter by letter. MS-37 fix. */
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td table {
	table-layout: auto !important;
	width: auto !important;
	min-width: 100% !important;
}
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td table :is(th, td) {
	white-space: normal !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
}

/* ---- Datot (view 562, 18 columns) ------------------------------------
   ID numbers and Download links never break at hyphens; slightly tighter
   side padding so all 18 columns fit a desktop screen. MS-38. */
html body:not(#ms-dt-a):not(#ms-dt-b) .gv-container-562 table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td.gv-field-12-custom,
html body:not(#ms-dt-a):not(#ms-dt-b) .gv-container-562 table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td.gv-field-12-custom * {
	white-space: nowrap !important;
}
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) .gv-container-562 table.gv-table-view:not([data-datot-sticky] table) > thead > tr > th,
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) .gv-container-562 table.gv-table-view:not([data-datot-sticky] table) > tbody > tr > td {
	padding-left: 8px !important;
	padding-right: 8px !important;
}

/* ---- too wide for the screen: scroll sideways inside the card ------ */
html body:not(#ms-dt-a):not(#ms-dt-b):not(.page-id-1355) .table-scroll-wrapper {
	overflow-x: auto !important;
	overflow-y: hidden !important;
	max-height: none !important;
}
