/* Force longtable width control - MUST use fixed layout for width control */
.longtable table {
    table-layout: fixed !important;   /* Required for width specifications to work */
    width: 100% !important;
}

/* Override RTD theme responsive behavior */
.wy-table-responsive {
    overflow: visible !important;
}

.wy-table-responsive table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Prevent wrapping in all columns by default */
.longtable td,
.longtable th {
    padding: 4px 6px !important;      /* Default is usually 8px 12px */
    white-space: nowrap !important;   /* keep text on one line */
    overflow: hidden !important;      /* hide overflow if needed */
    text-overflow: ellipsis !important; /* show "…" for cut-off text */
}

/* Allow wrapping ONLY in the Description column (6th column) */
.longtable td:nth-child(1),
.longtable th:nth-child(1) {
    white-space: normal !important;   /* wrapping allowed */
    word-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Fixed widths for each column */
.longtable td:nth-child(1),
.longtable th:nth-child(1) { width: 73% !important; }  /* Name and Description*/

.longtable td:nth-child(2),
.longtable th:nth-child(2) { width: 8% !important; }   /* Min */

.longtable td:nth-child(3),
.longtable th:nth-child(3) { width: 6% !important; }   /* Max */

.longtable td:nth-child(4),
.longtable th:nth-child(4) { width: 4% !important; }   /* Default */

.longtable td:nth-child(5),
.longtable th:nth-child(5) { width: 4% !important; }  /* Mandatory/Optional */

/* Style italic text in first column only */
.longtable td:nth-child(1) em,
.longtable th:nth-child(1) em {
    color: #1e6ba6;
    font-style: italic;
}


