/**
 * jQuery Sticky Table Headers - v3.0.0
 * https://github.com/jpchip/stickytable
 */
.sticky-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    width: 100%;
}

.sticky-wrap .sticky-thead,
.sticky-wrap .sticky-col,
.sticky-wrap .sticky-intersect {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
    width: auto; /* Prevent table from stretching to full size */
}

.sticky-wrap .sticky-thead {
    z-index: 100;
    width: 100%; /* Force stretch */
}

.sticky-wrap .sticky-intersect {
    opacity: 1;
    z-index: 150;

}

.sticky-wrap td,
.sticky-wrap th {
    box-sizing: border-box;
}

.sticky-col tbody tr th {
    white-space: nowrap;
}

.sticky-wrap.overflow-y {
    overflow-y: auto;
    height: calc(100vh - 81px);
    z-index: 0;
}

.sticky-col {
    top: -3px !important;
    border-right: solid 1px rgba(24, 52, 89, 0.15);
}

.sticky-col tbody {
    background: #fffffe;
}

.sticky-thead {
    background: #fffffe;
    border-bottom: solid 1px rgba(24, 52, 89, 0.15);
}

footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffe;
    padding: 10px 0;
    border-top: solid 1px rgba(24, 52, 89, 0.15);
    z-index: 1;
}

#conditions thead th {
    border-bottom: solid 1px rgba(24, 52, 89, 0.15);
}

.sticky-col tbody tr th:first-child,
#conditions tbody tr th:first-child {
    padding: 0 10px;
}

.sticky-col tbody tr th:nth-child(3),
#conditions tbody tr th:nth-child(3) {
    white-space: nowrap;
    padding-right: 10px;
    border-right: solid 1px rgba(24, 52, 89, 0.15);
}

#intersection {
    position: absolute;
    top: 0;
    left: 0;
    background: #fffffe;
    border-bottom: solid 1px rgba(24, 52, 89, 0.15);
}
