﻿/* ===== FAQ: document checklist table ===== */
/* Add at the END of your main stylesheet */

/* Scroll box.
   contain: inline-size stops the 620px table from stretching any floated /
   flex / table-cell parent (.row, .full-float, .faq-point-desc ul li ...),
   which is what normally breaks horizontal scrolling. */
div.doc-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    contain: inline-size;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y !important;
    float: none !important;
    clear: both;
    margin-bottom: 15px;
}

/* The table sits inside an FAQ list item: drop the bullet/indent there
   and keep that item exactly as wide as the FAQ answer */
.faq-point-desc ul li:has(.doc-scroll),
.faq-point-desc ol li:has(.doc-scroll) {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    overflow: hidden;
}

    .faq-point-desc ul li:has(.doc-scroll)::before {
        display: none !important;
    }

.faq-point-desc ul:has(.doc-scroll),
.faq-point-desc ol:has(.doc-scroll) {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
}

table.doc-table {
    display: table !important;
    width: 100% !important;
    min-width: 620px !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse;
    border: 1px solid var(--lightgrey);
    font-size: 11px;
    line-height: 1.25;
    color: var(--charcoal);
    margin: 0;
    margin-top:10px;
    background: #fff;
}

    /* beats your global "table tr td { padding: 5px 10px }" and ".table-responsive tr td" */
    table.doc-table > thead > tr > th,
    table.doc-table > tbody > tr > th,
    table.doc-table > tbody > tr > td {
        padding: 1px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        border: 1px solid var(--lightgrey) !important;
        text-align: left;
        vertical-align: middle;
        color: var(--charcoal);
    }

    table.doc-table > thead.color-primary > tr > th {
        background-color: var(--burgundy);
        color: #fff;
        font-weight: 600;
    }

    table.doc-table > tbody > tr > th {
        font-weight: 600;
    }

        /* keep the long first column from eating the table */
        table.doc-table > thead > tr > th:first-child,
        table.doc-table > tbody > tr > th:first-child {
            width: 200px;
            min-width: 160px;
        }

    table.doc-table .fa.color-primary {
        font-family: FontAwesome;
        font-size: 14px;
        line-height: 1;
        color: var(--burgundy);
    }


    table.doc-table.doc-table-sm {
        min-width: 0 !important;
    }