﻿/* Prism.js for syntax highlighting */
/* themes: okaidia, tomorrow etc. */
/*@import url("https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css");*/

/* Base Prism.js library */
/*@import url("https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js");
@import url("https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js");*/

/* marked.js for markdown conversion */
/*@import url("https://cdn.jsdelivr.net/npm/marked/marked.min.js");*/

.scrollable-content {
    overflow-y: auto;
    max-height: 100%;
    font-size: 10pt;
}

    /* Basic Table Styling */
    .scrollable-content pre {
        margin: 20px 0px;
        width: 100%;
        border: 1px solid var(--tw-gray-200);
        border-radius: 10px; /* Rounded track edges */
        overflow: hidden; /* Ensures content respects border-radius */
    }


    /* Basic Table Styling */
    .scrollable-content table {
        margin: 20px 0px;
        width: 100%;
        border: 1px solid var(--tw-gray-200);
        border-radius: 10px; /* Rounded track edges */
        overflow: hidden; /* Ensures content respects border-radius */
        box-shadow: 0 0 0 1px var(--tw-gray-200) inset;
        table-layout: fixed; /* Enforce a fixed layout that doesn't expand with content size */
    }

    /* Header Styling */
    .scrollable-content th {
        background-color: var(--tw-gray-200); /* Darker color for the header */
        color: var(--tw-gray-900);
        text-align: left;
        /*padding: 12px 15px;*/
        padding: 7px 10px;
        font-weight: 600;
    }

    /* Row Styling */
    .scrollable-content td {
        /*padding: 12px 15px;*/
        padding: 7px 10px;
        width: auto;
        /* Fix for text overflow */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* border-bottom: 1px solid #e0e0e0;*/
    }

        /* Add tooltip on hover to see full content */
        .scrollable-content td:hover {
            white-space: normal;
            overflow: visible;
            background-color: var(--tw-gray-300);
            position: relative;
            z-index: 1;
        }

        /* Allow Description column to be wider */
        .scrollable-content td:nth-child(2) {
            width: 40%;
        }

    /* Alternating Row Colors */
    .scrollable-content tr:nth-child(even) {
        background-color: var(--tw-gray-200);
    }

    /* Hover Effect for Rows */
    .scrollable-content tr:hover {
        background-color: var(--tw-gray-300);
    }

    /* Table Footer Styling */
    .scrollable-content tfoot td {
        font-weight: bold;
        color: var(--tw-gray-900);
        background-color: #f2f2f2;
    }

/* Responsive Table */
@media (max-width: 768px) {
    .scrollable-content table {
        display: block;
        overflow-x: auto;
    }
}


/* Copy button */
.copy-button {
    position: absolute;
    top: 10px;
    margin-top: -10px;
    right: 10px;
    background-color: var(--tw-gray-200);
    color: var(--tw-gray-800);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
}

    .copy-button:hover {
        background-color: var(--tw-primary);
        color: var(--tw-gray-100);
    }

pre {
    position: relative; /* Ensure positioning context for the button */
    padding-top: 40px; /* Adjust padding if button overlaps content */
}
