/* Custom styles for VTL Engine documentation */

/* Error messages table - make it full width with proper text wrapping */
.error-messages-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.error-messages-table td,
.error-messages-table th {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* First column (Code) - fixed narrow width */
.error-messages-table td:first-child,
.error-messages-table th:first-child {
    width: 10% !important;
    min-width: 80px !important;
}

/* Make the table container not scroll horizontally */
.wy-table-responsive {
    overflow-x: visible !important;
}

/* Ensure the main content area can expand */
.wy-nav-content {
    max-width: none !important;
}

/* Code elements in table cells should wrap */
.error-messages-table code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* Version selector styling based on version type */

/* Default (older stable versions) - white text */
.rst-versions .rst-current-version {
    color: #ffffff !important;
}

/* Latest stable version - green text */
.rst-versions.version-latest .rst-current-version {
    color: #2ecc71 !important;
}

/* Pre-release versions (rc, alpha, beta) - orange text */
.rst-versions.version-prerelease .rst-current-version {
    color: #f39c12 !important;
}

/* Development/main branch - blue text */
.rst-versions.version-development .rst-current-version {
    color: #5dade2 !important;
}
