/* =========================================================
   Technical Details page only (resources/views/technical-details.blade.php)
   Every rule is scoped to .brx-tech-page so nothing here
   can affect any other page.
   ========================================================= */

/* ---------- Tabs ---------- */
.brx-tech-page .brx-tech__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 40px auto 30px;
    padding: 6px;
    background: var(--white);
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(10, 22, 21, .06);
}

.brx-tech-page .brx-tech__tab {
    padding: 14px 30px;
    border: 0;
    border-radius: 60px;
    background: transparent;
    font-family: var(--font_outfit);
    font-size: 17px;
    font-weight: 500;
    color: #3d4746;
    white-space: nowrap;
    transition: background-color .3s ease, color .3s ease;
}

.brx-tech-page .brx-tech__tab:hover {
    color: var(--secondary);
}

.brx-tech-page .brx-tech__tab.active {
    background: var(--secondary);
    color: var(--white);
}

/* ---------- Table card ---------- */
.brx-tech-page .brx-tech__card {
    overflow: hidden;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(10, 22, 21, .06);
}

.brx-tech-page .brx-tech__card .table-responsive {
    margin: 0;
}

.brx-tech-page .brx-tech-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
    color: #141414;
}

.brx-tech-page .brx-tech-table thead th {
    padding: 20px 24px;
    background: var(--secondary);
    font-family: var(--font_outfit);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .01em;
    vertical-align: middle;
    color: var(--white);
    text-align: left;
}

.brx-tech-page .brx-tech-table td {
    padding: 14px 24px;
    border-bottom: 1px solid #edf1f0;
    vertical-align: middle;
    font-family: var(--font_instrument);
}

.brx-tech-page .brx-tech-table td:first-child {
    font-weight: 500;
    width: 32%;
}

.brx-tech-page #pane-slabs .brx-tech-table td:last-child {
    white-space: nowrap;
}

.brx-tech-page .brx-tech-table td:nth-child(3) {
    font-weight: 600;
    color: var(--secondary);
}

.brx-tech-page .brx-tech-table tbody tr:not(.brx-tech-table__group):hover td {
    background: #f6f9f8;
}

/* Group heading rows (Regulatory, Structural, ...) */
.brx-tech-page .brx-tech-table__group th {
    padding: 14px 24px 12px;
    background: #eef4f3;
    border-bottom: 1px solid #dde7e5;
    font-family: var(--font_outfit);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--secondary);
    text-align: left;
}

.brx-tech-page .brx-tech-table sup {
    font-size: 10px;
    top: -.5em;
}

/* GVT / PGVT table: the value column is the 4th one */
.brx-tech-page #pane-gvt .brx-tech-table td:nth-child(3) {
    font-weight: 400;
    color: #141414;
}

.brx-tech-page #pane-gvt .brx-tech-table td:nth-child(4) {
    font-weight: 600;
    color: var(--secondary);
}

/* ---------- Footnotes ---------- */
.brx-tech-page .brx-tech__notes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 18px 4px 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #6f7a79;
}

.brx-tech-page .brx-tech__notes sup {
    margin-right: 3px;
    color: var(--secondary);
    font-weight: 600;
}

@media (max-width: 767px) {
    /* keep the property name visible while the table scrolls sideways */
    /* .brx-tech-page .brx-tech-table thead th:first-child,
    .brx-tech-page .brx-tech-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        min-width: 170px;
        box-shadow: 6px 0 10px -6px rgba(10, 22, 21, .18);
    } */

    .brx-tech-page .brx-tech-table thead th:first-child {
        background: var(--secondary);
    }

    .brx-tech-page .brx-tech-table td:first-child {
        background: var(--white);
    }

    .brx-tech-page .brx-tech-table__group th span {
        position: sticky;
        left: 16px;
        display: inline-block;
    }

    .brx-tech-page .brx-tech__tab {
        padding: 12px 18px;
        font-size: 15px;
    }

    .brx-tech-page .brx-tech-table thead th,
    .brx-tech-page .brx-tech-table td,
    .brx-tech-page .brx-tech-table__group th {
        padding-left: 16px;
        padding-right: 16px;
    }
}
