/* GVN v7.17 – responsive treatment-location table, no horizontal scrolling. */
.gvn-current-page .gvn-bo-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    margin: 18px 0 32px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(16,45,75,.045);
}
.gvn-current-page .gvn-bo-table {
    display: table;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: visible;
}
.gvn-current-page .gvn-bo-table thead th,
.gvn-current-page .gvn-bo-table tbody td {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 11px 9px;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    line-height: 1.45;
}
.gvn-current-page .gvn-bo-table thead th {
    font-size: clamp(10px, .85vw, 12px);
    font-weight: 750;
    letter-spacing: 0;
    background: #f3f7fb;
    border-bottom: 1px solid #d8e4ee;
    color: #123b65;
}
.gvn-current-page .gvn-bo-table tbody td {
    font-size: clamp(11px, .88vw, 13px);
    font-weight: 400;
    color: #263e58;
    border-bottom: 1px solid #e8edf3;
}
.gvn-current-page .gvn-bo-table tbody td.is-primary {
    min-width: 0;
    font-weight: 750;
    color: #0d2f51;
}
.gvn-current-page .gvn-bo-table tbody tr:nth-child(even) td { background: #fbfcfe; }
.gvn-current-page .gvn-bo-table tbody tr:hover td { background: #f2f8fd; }
.gvn-current-page .gvn-bo-table tbody tr:last-child td { border-bottom: none; }
.gvn-current-page .gvn-bo-table tbody tr[hidden] { display: none !important; }
.gvn-current-page .gvn-bo-table td a {
    color: #155b94;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.gvn-current-page .gvn-bo-table td a:hover,
.gvn-current-page .gvn-bo-table td a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 900px) {
    /* At tablet/mobile widths, a vertical record shows every field without clipping. */
    .gvn-current-page .gvn-bo-table-wrap {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }
    .gvn-current-page .gvn-bo-table {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        overflow: visible;
    }
    .gvn-current-page .gvn-bo-table thead { display: none; }
    .gvn-current-page .gvn-bo-table tbody,
    .gvn-current-page .gvn-bo-table tr,
    .gvn-current-page .gvn-bo-table td {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .gvn-current-page .gvn-bo-table tbody tr {
        margin: 0 0 12px;
        overflow: hidden;
        border: 1px solid #dbe5ee;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 15px rgba(20,50,80,.04);
    }
    .gvn-current-page .gvn-bo-table tbody tr[hidden] { display: none !important; }
    .gvn-current-page .gvn-bo-table tbody td,
    .gvn-current-page .gvn-bo-table tbody td.is-primary {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 11px 15px;
        font-size: 13px;
        white-space: normal;
        background: #fff !important;
        border-bottom: 1px solid #edf1f5;
    }
    .gvn-current-page .gvn-bo-table tbody td.is-empty { display: none; }
    .gvn-current-page .gvn-bo-table tbody td:last-child { border-bottom: 0; }
    .gvn-current-page .gvn-bo-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #406d91;
        font-size: 11px;
        font-weight: 750;
        line-height: 1.3;
        text-transform: none;
        letter-spacing: 0;
    }
    .gvn-current-page .gvn-bo-table tbody td.is-primary {
        font-size: 15px;
        font-weight: 750;
    }
}

/* v7.18 – give imported treatment-location directories a little more horizontal room.
   This targets only pages containing a CSV/XLSX directory, not the whole website. */
@media (min-width: 901px) {
    body main.page.gvn-current-page:has(.gvn-bo-table-wrap) {
        box-sizing: border-box;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: min(1460px, calc(100vw - 32px)) !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .gvn-current-page .gvn-bo-table thead th,
    .gvn-current-page .gvn-bo-table tbody td {
        padding-left: 8px;
        padding-right: 8px;
    }
    .gvn-current-page .gvn-bo-table tbody td.is-primary,
    .gvn-current-page .gvn-bo-table tbody td.is-email,
    .gvn-current-page .gvn-bo-table tbody td.is-email a {
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }
}
